From e548d820c9098862e5ab9f9e6d2353f1a7fe0f80 Mon Sep 17 00:00:00 2001 From: John Payne Date: Tue, 26 Jul 2022 09:36:33 -0500 Subject: [PATCH 01/13] implement mods screen & tnt is now mod --- CMakeLists.txt | 7 ++-- MinecraftC/Entity.c | 8 ++++- MinecraftC/Entity.h | 6 ++-- MinecraftC/GUI/GUIScreen.c | 10 ++++++ MinecraftC/GUI/GUIScreen.h | 10 ++++++ MinecraftC/GUI/ModsScreen.c | 41 +++++++++++++++++++++++ MinecraftC/GUI/ModsScreen.h | 14 ++++++++ MinecraftC/GUI/OptionsScreen.c | 16 ++++++++- MinecraftC/GameSettings.c | 30 +++++++++++++++++ MinecraftC/GameSettings.h | 5 +++ MinecraftC/Level/Level.c | 2 +- MinecraftC/Level/Tile/Block.c | 8 +++-- MinecraftC/Level/Tile/Block.h | 2 +- MinecraftC/Level/Tile/TNTBlock.c | 6 +++- MinecraftC/Minecraft.c | 6 ++-- MinecraftC/{Particle => Mods}/PrimedTNT.c | 8 +++-- MinecraftC/{Particle => Mods}/PrimedTNT.h | 4 +++ 17 files changed, 168 insertions(+), 15 deletions(-) create mode 100644 MinecraftC/GUI/ModsScreen.c create mode 100644 MinecraftC/GUI/ModsScreen.h rename MinecraftC/{Particle => Mods}/PrimedTNT.c (96%) rename MinecraftC/{Particle => Mods}/PrimedTNT.h (94%) diff --git a/CMakeLists.txt b/CMakeLists.txt index c932a3e..ee44343 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,8 @@ set(MINECRAFTC_SOURCES MinecraftC/GUI/LevelNameScreen.h MinecraftC/GUI/LoadLevelScreen.c MinecraftC/GUI/LoadLevelScreen.h + MinecraftC/GUI/ModsScreen.c + MinecraftC/GUI/ModsScreen.h MinecraftC/GUI/OptionsScreen.c MinecraftC/GUI/OptionsScreen.h MinecraftC/GUI/PauseScreen.c @@ -83,8 +85,8 @@ set(MINECRAFTC_SOURCES MinecraftC/Level/Level.c MinecraftC/Level/Level.h MinecraftC/Level/NextTickListEntry.h - MinecraftC/Particle/PrimedTNT.c - MinecraftC/Particle/PrimedTNT.h + MinecraftC/Mods/PrimedTNT.c + MinecraftC/Mods/PrimedTNT.h MinecraftC/Particle/Particle.c MinecraftC/Particle/Particle.h MinecraftC/Particle/ParticleManager.c @@ -171,6 +173,7 @@ add_definitions( -DSDL_DYNAMIC_API=0 -DSDL_VIDEO_OPENGL_EGL=0 -DSDL_VIDEO_RENDER_OGL_ES2=0 + -DMINECRAFTC_MODS ) if(APPLE) diff --git a/MinecraftC/Entity.c b/MinecraftC/Entity.c index dc386af..7f23945 100644 --- a/MinecraftC/Entity.c +++ b/MinecraftC/Entity.c @@ -2,7 +2,7 @@ #include "Level/Level.h" #include "Player/Player.h" #include "Utilities/SinTable.h" -#include "Particle/PrimedTNT.h" +#include "Mods/PrimedTNT.h" void EntityCreate(Entity * entity, Level * level) { *entity = (struct Entity) { @@ -84,7 +84,9 @@ void EntityTurn(Entity * entity, float rx, float ry) { void EntityTick(Entity * entity) { if (entity->type == EntityTypeParticle) { ParticleTick(entity); return; } +#if MINECRAFTC_MODS if (entity->type == EntityTypePrimedTNT) { PrimedTNTTick(entity); return; } +#endif entity->oldWalkDistance = entity->walkDistance; entity->xo = entity->x; @@ -272,10 +274,14 @@ void EntityPlaySound(Entity * entity, char * name, float volume, float pitch) { } bool EntityIsPickable(Entity * entity) { +#if MINECRAFTC_MODS if (entity->type == EntityTypePrimedTNT) { return PrimedTNTIsPickable(entity); } +#endif return false; } void EntityRender(Entity * entity, TextureManager * textures, float t) { +#if MINECRAFTC_MODS if (entity->type == EntityTypePrimedTNT) { PrimedTNTRender(entity, textures, t); return; } +#endif } diff --git a/MinecraftC/Entity.h b/MinecraftC/Entity.h index f7f2841..caf076e 100644 --- a/MinecraftC/Entity.h +++ b/MinecraftC/Entity.h @@ -2,7 +2,7 @@ #include "Physics/AABB.h" #include "Render/TextureManager.h" #include "Player/Player.h" -#include "Particle/PrimedTNT.h" +#include "Mods/PrimedTNT.h" #include "Particle/Particle.h" typedef enum EntityType { @@ -39,8 +39,10 @@ typedef struct Entity { EntityType type; union { PlayerData player; - PrimedTNTData tnt; ParticleData particle; +#if MINECRAFTC_MODS + PrimedTNTData tnt; +#endif }; } Entity; diff --git a/MinecraftC/GUI/GUIScreen.c b/MinecraftC/GUI/GUIScreen.c index eced6f7..8d72085 100644 --- a/MinecraftC/GUI/GUIScreen.c +++ b/MinecraftC/GUI/GUIScreen.c @@ -5,6 +5,7 @@ #include "ControlsScreen.h" #include "ErrorScreen.h" #include "GenerateLevelScreen.h" +#include "ModsScreen.h" #include "LevelNameScreen.h" #include "LoadLevelScreen.h" #include "OptionsScreen.h" @@ -28,6 +29,9 @@ void GUIScreenRender(GUIScreen * screen, int mx, int my) { if (screen->type == GUIScreenTypeGenerateLevel) { GenerateLevelScreenRender(screen, mx, my); } if (screen->type == GUIScreenTypeLevelName) { LevelNameScreenRender(screen, mx, my); } if (screen->type == GUIScreenTypeLoadLevel) { LoadLevelScreenRender(screen, mx, my); return; } +#if MINECRAFTC_MODS + if (screen->type == GUIScreenTypeMods) { ModsScreenRender(screen, mx, my); } +#endif if (screen->type == GUIScreenTypeOptions) { OptionsScreenRender(screen, mx, my); } if (screen->type == GUIScreenTypePause) { PauseScreenRender(screen, mx, my); } if (screen->type == GUIScreenTypeSaveLevel) { LoadLevelScreenRender(screen, mx, my); return; } @@ -84,6 +88,9 @@ void GUIScreenOnButtonClicked(GUIScreen * screen, Button * button) { if (screen->type == GUIScreenTypeGenerateLevel) { GenerateLevelScreenOnButtonClicked(screen, button); return; } if (screen->type == GUIScreenTypeLevelName) { LevelNameScreenOnButtonClicked(screen, button); return; } if (screen->type == GUIScreenTypeLoadLevel) { LoadLevelScreenOnButtonClicked(screen, button); return; } +#if MINECRAFTC_MODS + if (screen->type == GUIScreenTypeMods) { ModsScreenOnButtonClicked(screen, button); } +#endif if (screen->type == GUIScreenTypeOptions) { OptionsScreenOnButtonClicked(screen, button); return; } if (screen->type == GUIScreenTypePause) { PauseScreenOnButtonClicked(screen, button); return; } if (screen->type == GUIScreenTypeSaveLevel) { LoadLevelScreenOnButtonClicked(screen, button); return; } @@ -106,6 +113,9 @@ void GUIScreenOnOpen(GUIScreen * screen) { if (screen->type == GUIScreenTypeGenerateLevel) { GenerateLevelScreenOnOpen(screen); return; } if (screen->type == GUIScreenTypeLevelName) { LevelNameScreenOnOpen(screen); return; } if (screen->type == GUIScreenTypeLoadLevel) { LoadLevelScreenOnOpen(screen); return; } +#if MINECRAFTC_MODS + if (screen->type == GUIScreenTypeMods) { ModsScreenOnOpen(screen); } +#endif if (screen->type == GUIScreenTypeOptions) { OptionsScreenOnOpen(screen); return; } if (screen->type == GUIScreenTypePause) { PauseScreenOnOpen(screen); return; } if (screen->type == GUIScreenTypeSaveLevel) { LoadLevelScreenOnOpen(screen); return; } diff --git a/MinecraftC/GUI/GUIScreen.h b/MinecraftC/GUI/GUIScreen.h index 74c8bf4..8691074 100644 --- a/MinecraftC/GUI/GUIScreen.h +++ b/MinecraftC/GUI/GUIScreen.h @@ -16,6 +16,9 @@ typedef enum GUIScreenType { GUIScreenTypeOptions, GUIScreenTypePause, GUIScreenTypeSaveLevel, +#if MINECRAFTC_MODS + GUIScreenTypeMods, +#endif } GUIScreenType; typedef struct GUIScreen { @@ -60,6 +63,13 @@ typedef struct GUIScreen { char * title; GameSettings * settings; } options; +#if MINECRAFTC_MODS + struct ModsScreenData { + struct GUIScreen * parent; + char * title; + GameSettings * settings; + } mods; +#endif }; } GUIScreen; diff --git a/MinecraftC/GUI/ModsScreen.c b/MinecraftC/GUI/ModsScreen.c new file mode 100644 index 0000000..15058a2 --- /dev/null +++ b/MinecraftC/GUI/ModsScreen.c @@ -0,0 +1,41 @@ +#if MINECRAFTC_MODS +#include "ModsScreen.h" +#include "Screen.h" +#include "../Minecraft.h" + +void ModsScreenCreate(ModsScreen * screen, GUIScreen * parent, GameSettings * settings) { + GUIScreenCreate(screen); + screen->type = GUIScreenTypeMods; + screen->mods.parent = parent; + screen->mods.title = "Mods"; + screen->mods.settings = settings; +} + +void ModsScreenOnOpen(ModsScreen * screen) { + for (int i = 0; i < screen->mods.settings->modsCount; i++) { + screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); + String text = GameSettingsGetSetting(screen->mods.settings, screen->mods.settings->settingsCount + i); + ButtonCreateSize(&screen->buttons[i], i, screen->width / 2 - 155 + i % 2 * 160, screen->height / 6 + 24 * (i / 2 + 1) - 24, 150, 20, text); + } + screen->buttons[1].active = false; + Button button; + ButtonCreate(&button, 200, screen->width / 2 - 100, screen->height / 6 + 168, "Done"); + screen->buttons = ListPush(screen->buttons, &button); +} + +void ModsScreenRender(ModsScreen * screen, int mx, int my) { + ScreenDrawFadingBox(0, 0, screen->width, screen->height, 0x05050060, 0x303060A0); + ScreenDrawCenteredString(screen->font, screen->mods.title, screen->width / 2, 20, 0xFFFFFFFF); +} + +void ModsScreenOnButtonClicked(ModsScreen * screen, Button * button) { + if (button->id < 100 && button->active) { + GameSettingsToggleSetting(screen->mods.settings, screen->mods.settings->settingsCount + button->id); + StringSet(&button->text, GameSettingsGetSetting(screen->mods.settings, screen->mods.settings->settingsCount + button->id)); + } + if (button->id == 200) { + MinecraftSetCurrentScreen(screen->minecraft, screen->mods.parent); + } +} + +#endif diff --git a/MinecraftC/GUI/ModsScreen.h b/MinecraftC/GUI/ModsScreen.h new file mode 100644 index 0000000..51065a8 --- /dev/null +++ b/MinecraftC/GUI/ModsScreen.h @@ -0,0 +1,14 @@ +#pragma once +#if MINECRAFTC_MODS +#include "GUIScreen.h" + +typedef GUIScreen ModsScreen; + +typedef struct ModsScreenData ModsScreenData; + +void ModsScreenCreate(ModsScreen * screen, GUIScreen * parent, GameSettings * settings); +void ModsScreenOnOpen(ModsScreen * screen); +void ModsScreenRender(ModsScreen * screen, int mx, int my); +void ModsScreenOnButtonClicked(ModsScreen * screen, Button * button); + +#endif diff --git a/MinecraftC/GUI/OptionsScreen.c b/MinecraftC/GUI/OptionsScreen.c index 2215a9f..4634708 100644 --- a/MinecraftC/GUI/OptionsScreen.c +++ b/MinecraftC/GUI/OptionsScreen.c @@ -1,5 +1,6 @@ #include "OptionsScreen.h" #include "ControlsScreen.h" +#include "ModsScreen.h" #include "Screen.h" #include "../Minecraft.h" @@ -16,9 +17,15 @@ void OptionsScreenOnOpen(OptionsScreen * screen) { screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); ButtonCreateSize(&screen->buttons[i], i, screen->width / 2 - 155 + i % 2 * 160, screen->height / 6 + 24 * (i / 2 + 1) - 24, 150, 20, GameSettingsGetSetting(screen->options.settings, i)); } - +#if MINECRAFTC_MODS + screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); + ButtonCreate(&screen->buttons[ListLength(screen->buttons) - 1], 100, screen->width / 2 - 100, screen->height / 6 + 108, "Controls..."); + screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); + ButtonCreate(&screen->buttons[ListLength(screen->buttons) - 1], 150, screen->width / 2 - 100, screen->height / 6 + 132, "Mods..."); +#else screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); ButtonCreate(&screen->buttons[ListLength(screen->buttons) - 1], 100, screen->width / 2 - 100, screen->height / 6 + 132, "Controls..."); +#endif screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); ButtonCreate(&screen->buttons[ListLength(screen->buttons) - 1], 200, screen->width / 2 - 100, screen->height / 6 + 168, "Done"); } @@ -34,6 +41,13 @@ void OptionsScreenOnButtonClicked(OptionsScreen * screen, Button * button) { ControlsScreenCreate(controls, screen, screen->options.settings); MinecraftSetCurrentScreen(screen->minecraft, controls); } +#if MINECRAFTC_MODS + if (button->id == 150) { + ModsScreen * mods = malloc(sizeof(ModsScreen)); + ModsScreenCreate(mods, screen, &screen->minecraft->settings); + MinecraftSetCurrentScreen(screen->minecraft, mods); + } +#endif if (button->id == 200) { MinecraftSetCurrentScreen(screen->minecraft, screen->options.parent); } diff --git a/MinecraftC/GameSettings.c b/MinecraftC/GameSettings.c index f31410c..970a85a 100644 --- a/MinecraftC/GameSettings.c +++ b/MinecraftC/GameSettings.c @@ -35,6 +35,10 @@ static void Load(GameSettings * settings) { if (strcmp(line, keyName) == 0) { settings->bindings[i]->key = StringToInt(value); } StringFree(keyName); } +#if MINECRAFTC_MODS + if (strcmp(line, "explodingTNT") == 0) { settings->explodingTNT = strcmp(value, "true") == 0; } + if (strcmp(line, "raytracing") == 0) { settings->raytracing = strcmp(value, "true") == 0; } +#endif StringFree(value); StringFree(line); } @@ -99,6 +103,15 @@ static void Save(GameSettings * settings) { SDL_RWwrite(file, line, StringLength(line), 1); StringFree(keyName); } +#if MINECRAFTC_MODS + StringSet(&line, settings->explodingTNT ? "true\n" : "false\n"); + StringConcatFront("explodingTNT:", &line); + SDL_RWwrite(file, line, StringLength(line), 1); + + StringSet(&line, settings->raytracing ? "true\n" : "false\n"); + StringConcatFront("raytracing:", &line); + SDL_RWwrite(file, line, StringLength(line), 1); +#endif StringFree(line); SDL_RWclose(file); } @@ -125,6 +138,9 @@ void GameSettingsCreate(GameSettings * settings, Minecraft * minecraft) { .loadLocationKey = (KeyBinding){ .name = "Load location", .key = SDL_SCANCODE_R }, .bindings = ListCreate(sizeof(KeyBinding *)), .settingsCount = 8, +#if MINECRAFTC_MODS + .modsCount = 2, +#endif .minecraft = minecraft, }; settings->file = StringCreate(minecraft->workingDirectory); @@ -165,6 +181,10 @@ void GameSettingsToggleSetting(GameSettings * settings, int setting) { settings->limitFramerate = !settings->limitFramerate; SDL_GL_SetSwapInterval(settings->limitFramerate ? 1 : 0); } +#if MINECRAFTC_MODS + if (setting == 8) { settings->explodingTNT = !settings->explodingTNT; } + if (setting == 9) { settings->raytracing = !settings->raytracing; } +#endif Save(settings); } @@ -205,6 +225,16 @@ String GameSettingsGetSetting(GameSettings * settings, int setting) { string = StringCreate("Limit framerate: "); StringConcat(&string, settings->limitFramerate ? "ON" : "OFF"); break; +#if MINECRAFTC_MODS + case 8: + string = StringCreate("Exploding TNT: "); + StringConcat(&string, settings->explodingTNT ? "ON" : "OFF"); + break; + case 9: + string = StringCreate("Raytracing: "); + StringConcat(&string, settings->raytracing ? "ON" : "OFF"); + break; +#endif default: string = StringCreate("Error"); break; diff --git a/MinecraftC/GameSettings.h b/MinecraftC/GameSettings.h index 88c2310..c377e68 100644 --- a/MinecraftC/GameSettings.h +++ b/MinecraftC/GameSettings.h @@ -30,6 +30,11 @@ typedef struct GameSettings { KeyBinding saveLocationKey; KeyBinding loadLocationKey; List(KeyBinding *) bindings; +#if MINECRAFTC_MODS + bool explodingTNT; + bool raytracing; + int modsCount; +#endif struct Minecraft * minecraft; String file; int settingsCount; diff --git a/MinecraftC/Level/Level.c b/MinecraftC/Level/Level.c index 801febf..a29c4d3 100644 --- a/MinecraftC/Level/Level.c +++ b/MinecraftC/Level/Level.c @@ -3,7 +3,7 @@ #include "../Render/LevelRenderer.h" #include "../Utilities/Log.h" #include "../Utilities/SinTable.h" -#include "../Particle/PrimedTNT.h" +#include "../Mods/PrimedTNT.h" #include "../Minecraft.h" void LevelCreate(Level * level, ProgressBarDisplay * progressBar, int size) { diff --git a/MinecraftC/Level/Tile/Block.c b/MinecraftC/Level/Tile/Block.c index d3a6a2e..bb1dded 100644 --- a/MinecraftC/Level/Tile/Block.c +++ b/MinecraftC/Level/Tile/Block.c @@ -257,8 +257,12 @@ void BlockUpdate(Block * block, Level * level, int x, int y, int z, RandomGenera if (IsLiquidBlock(block->type)) { LiquidBlockUpdate(block, level, x, y, z, random); return; } } -void BlockSpawnBreakParticles(Block * block, Level * level, int x, int y, int z, ParticleManager * particles) { - if (block->type == BlockTypeTNT) { TNTBlockSpawnBreakParticles(block, level, x, y, z, particles); } +void BlockSpawnBreakParticles(Block * block, Level * level, int x, int y, int z, ParticleManager * particles, GameSettings * settings) { +#if MINECRAFTC_MODS + if (block->type == BlockTypeTNT && settings->explodingTNT) { + TNTBlockSpawnBreakParticles(block, level, x, y, z, particles); + } +#endif for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { for (int k = 0; k < 4; k++) { diff --git a/MinecraftC/Level/Tile/Block.h b/MinecraftC/Level/Tile/Block.h index 12ef3e4..d1099df 100644 --- a/MinecraftC/Level/Tile/Block.h +++ b/MinecraftC/Level/Tile/Block.h @@ -100,7 +100,7 @@ AABB BlockGetCollisionAABB(Block * block, int x, int y, int z); bool BlockIsOpaque(Block * block); bool BlockIsSolid(Block * block); void BlockUpdate(Block * block, struct Level * level, int x, int y, int z, RandomGenerator * random); -void BlockSpawnBreakParticles(Block * block, struct Level * level, int x, int y, int z, ParticleManager * particles); +void BlockSpawnBreakParticles(Block * block, struct Level * level, int x, int y, int z, ParticleManager * particles, GameSettings * settings); LiquidType BlockGetLiquidType(Block * block); void BlockOnNeighborChanged(Block * block, struct Level * level, int x, int y, int z, BlockType tile); void BlockOnPlaced(Block * block, struct Level * level, int x, int y, int z); diff --git a/MinecraftC/Level/Tile/TNTBlock.c b/MinecraftC/Level/Tile/TNTBlock.c index b1c3832..0004b03 100644 --- a/MinecraftC/Level/Tile/TNTBlock.c +++ b/MinecraftC/Level/Tile/TNTBlock.c @@ -1,6 +1,6 @@ #include "TNTBlock.h" #include "../Level.h" -#include "../../Particle/PrimedTNT.h" +#include "../../Mods/PrimedTNT.h" void TNTBlockCreate(TNTBlock * block, TileSound sound, float particleGravity) { BlockCreate(block, BlockTypeTNT, 8, sound, particleGravity); @@ -11,14 +11,18 @@ int TNTBlockGetTextureID(TNTBlock * block, int face) { } void TNTBlockExplode(TNTBlock * block, Level * level, int x, int y, int z) { +#if MINECRAFTC_MODS PrimedTNT * tnt = malloc(sizeof(PrimedTNT)); PrimedTNTCreate(tnt, level, x + 0.5, y + 0.5, z + 0.5); tnt->tnt.life = RandomIntegerRange(5, 14); LevelAddEntity(level, tnt); +#endif } void TNTBlockSpawnBreakParticles(TNTBlock * block, Level * level, int x, int y, int z, ParticleManager * particles) { +#if MINECRAFTC_MODS PrimedTNT * tnt = malloc(sizeof(PrimedTNT)); PrimedTNTCreate(tnt, level, x + 0.5, y + 0.5, z + 0.5f); LevelAddEntity(level, tnt); +#endif } diff --git a/MinecraftC/Minecraft.c b/MinecraftC/Minecraft.c index 1abef4d..fea6a49 100644 --- a/MinecraftC/Minecraft.c +++ b/MinecraftC/Minecraft.c @@ -17,7 +17,7 @@ #include "Render/ShapeRenderer.h" #include "Level/Generator/LevelGenerator.h" #include "Particle/WaterDropParticle.h" -#include "Particle/PrimedTNT.h" +#include "Mods/PrimedTNT.h" static void CheckGLError(Minecraft * minecraft, char * msg) { int error = glGetError(); @@ -158,9 +158,11 @@ static void OnMouseClicked(Minecraft * minecraft, int button) { } if (!minecraft->selected.null) { +#if MINECRAFTC_MODS if (minecraft->selected.entityPosition == 1 && button == SDL_BUTTON_LEFT && minecraft->selected.entity->type == EntityTypePrimedTNT) { PrimedTNTOnHit(minecraft->selected.entity); } +#endif if (minecraft->selected.entityPosition == 0) { int vx = minecraft->selected.x; int vy = minecraft->selected.y; @@ -183,7 +185,7 @@ static void OnMouseClicked(Minecraft * minecraft, int button) { if (block->sound.type != TileSoundTypeNone) { LevelPlaySoundAt(level, (char *)block->sound.name, vx, vy, vz, (TileSoundGetVolume(block->sound) + 1.0) / 2.0, TileSoundGetPitch(block->sound) * 0.8); } - BlockSpawnBreakParticles(block, level, vx, vy, vz, &minecraft->particleManager); + BlockSpawnBreakParticles(block, level, vx, vy, vz, &minecraft->particleManager, &minecraft->settings); } } } else { diff --git a/MinecraftC/Particle/PrimedTNT.c b/MinecraftC/Mods/PrimedTNT.c similarity index 96% rename from MinecraftC/Particle/PrimedTNT.c rename to MinecraftC/Mods/PrimedTNT.c index 3d12ff1..36f08d2 100644 --- a/MinecraftC/Particle/PrimedTNT.c +++ b/MinecraftC/Mods/PrimedTNT.c @@ -1,6 +1,8 @@ +#if MINECRAFTC_MODS + #include "PrimedTNT.h" -#include "SmokeParticle.h" -#include "TerrainParticle.h" +#include "../Particle/SmokeParticle.h" +#include "../Particle/TerrainParticle.h" #include "../Utilities/SinTable.h" #include "../Utilities/OpenGL.h" #include "../Level/Level.h" @@ -101,3 +103,5 @@ void PrimedTNTRender(PrimedTNT * tnt, TextureManager * textures, float dt) { glPopMatrix(); glPopMatrix(); } + +#endif diff --git a/MinecraftC/Particle/PrimedTNT.h b/MinecraftC/Mods/PrimedTNT.h similarity index 94% rename from MinecraftC/Particle/PrimedTNT.h rename to MinecraftC/Mods/PrimedTNT.h index 4fb3812..6e2fe02 100644 --- a/MinecraftC/Particle/PrimedTNT.h +++ b/MinecraftC/Mods/PrimedTNT.h @@ -1,4 +1,6 @@ #pragma once +#if MINECRAFTC_MODS + #include #include "../Render/TextureManager.h" @@ -17,3 +19,5 @@ void PrimedTNTOnHit(PrimedTNT * tnt); bool PrimedTNTIsPickable(PrimedTNT * tnt); void PrimedTNTTick(PrimedTNT * tnt); void PrimedTNTRender(PrimedTNT * tnt, TextureManager * textures, float t); + +#endif From f7b719d0dbc9038c8ce5bce39eb69a819e6c55d4 Mon Sep 17 00:00:00 2001 From: John Payne Date: Wed, 27 Jul 2022 07:50:50 -0500 Subject: [PATCH 02/13] larger world gen mod --- MinecraftC/GUI/GenerateLevelScreen.c | 10 ++++++++-- MinecraftC/GameSettings.c | 12 +++++++++++- MinecraftC/GameSettings.h | 1 + MinecraftC/Level/Generator/LevelGenerator.c | 7 +++++++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/MinecraftC/GUI/GenerateLevelScreen.c b/MinecraftC/GUI/GenerateLevelScreen.c index 01b46a9..531ba39 100644 --- a/MinecraftC/GUI/GenerateLevelScreen.c +++ b/MinecraftC/GUI/GenerateLevelScreen.c @@ -15,12 +15,18 @@ void GenerateLevelScreenOnOpen(GenerateLevelScreen * screen) { ButtonCreate(&screen->buttons[1], 1, screen->width / 2 - 100, screen->height / 4 + 24, "Normal"); screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); ButtonCreate(&screen->buttons[2], 2, screen->width / 2 - 100, screen->height / 4 + 48, "Huge"); +#if MINECRAFTC_MODS + if (screen->minecraft->settings.largerWorldGen) { + screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); + ButtonCreate(&screen->buttons[3], 3, screen->width / 2 - 100, screen->height / 4 + 72, "Extra huge"); + } +#endif screen->buttons = ListPush(screen->buttons, &(Button){ 0 }); - ButtonCreate(&screen->buttons[3], 3, screen->width / 2 - 100, screen->height / 4 + 120, "Cancel"); + ButtonCreate(&screen->buttons[ListLength(screen->buttons) - 1], 100, screen->width / 2 - 100, screen->height / 4 + 120, "Cancel"); } void GenerateLevelScreenOnButtonClicked(GenerateLevelScreen * screen, Button * button) { - if (button->id == 3) { + if (button->id == 100) { MinecraftSetCurrentScreen(screen->minecraft, screen->generateLevel.parent); } else { MinecraftRegenerateLevel(screen->minecraft, button->id); diff --git a/MinecraftC/GameSettings.c b/MinecraftC/GameSettings.c index 970a85a..41189f7 100644 --- a/MinecraftC/GameSettings.c +++ b/MinecraftC/GameSettings.c @@ -38,6 +38,7 @@ static void Load(GameSettings * settings) { #if MINECRAFTC_MODS if (strcmp(line, "explodingTNT") == 0) { settings->explodingTNT = strcmp(value, "true") == 0; } if (strcmp(line, "raytracing") == 0) { settings->raytracing = strcmp(value, "true") == 0; } + if (strcmp(line, "largerWorldGen") == 0) { settings->largerWorldGen = strcmp(value, "true") == 0; } #endif StringFree(value); StringFree(line); @@ -111,6 +112,10 @@ static void Save(GameSettings * settings) { StringSet(&line, settings->raytracing ? "true\n" : "false\n"); StringConcatFront("raytracing:", &line); SDL_RWwrite(file, line, StringLength(line), 1); + + StringSet(&line, settings->largerWorldGen ? "true\n" : "false\n"); + StringConcatFront("largerWorldGen:", &line); + SDL_RWwrite(file, line, StringLength(line), 1); #endif StringFree(line); SDL_RWclose(file); @@ -139,7 +144,7 @@ void GameSettingsCreate(GameSettings * settings, Minecraft * minecraft) { .bindings = ListCreate(sizeof(KeyBinding *)), .settingsCount = 8, #if MINECRAFTC_MODS - .modsCount = 2, + .modsCount = 3, #endif .minecraft = minecraft, }; @@ -184,6 +189,7 @@ void GameSettingsToggleSetting(GameSettings * settings, int setting) { #if MINECRAFTC_MODS if (setting == 8) { settings->explodingTNT = !settings->explodingTNT; } if (setting == 9) { settings->raytracing = !settings->raytracing; } + if (setting == 10) { settings->largerWorldGen = !settings->largerWorldGen; } #endif Save(settings); } @@ -234,6 +240,10 @@ String GameSettingsGetSetting(GameSettings * settings, int setting) { string = StringCreate("Raytracing: "); StringConcat(&string, settings->raytracing ? "ON" : "OFF"); break; + case 10: + string = StringCreate("Larger world gen: "); + StringConcat(&string, settings->largerWorldGen ? "ON" : "OFF"); + break; #endif default: string = StringCreate("Error"); diff --git a/MinecraftC/GameSettings.h b/MinecraftC/GameSettings.h index c377e68..d64c0b0 100644 --- a/MinecraftC/GameSettings.h +++ b/MinecraftC/GameSettings.h @@ -33,6 +33,7 @@ typedef struct GameSettings { #if MINECRAFTC_MODS bool explodingTNT; bool raytracing; + bool largerWorldGen; int modsCount; #endif struct Minecraft * minecraft; diff --git a/MinecraftC/Level/Generator/LevelGenerator.c b/MinecraftC/Level/Generator/LevelGenerator.c index 1693b38..56066fd 100644 --- a/MinecraftC/Level/Generator/LevelGenerator.c +++ b/MinecraftC/Level/Generator/LevelGenerator.c @@ -8,6 +8,7 @@ #include "../../Utilities/SinTable.h" #include "../Tile/Block.h" #include "../Level.h" +#include "../../Minecraft.h" void LevelGeneratorCreate(LevelGenerator * generator, ProgressBarDisplay * progressBar) { *generator = (LevelGenerator) { @@ -165,6 +166,12 @@ void LevelGeneratorGenerate(LevelGenerator * generator, int width, int depth, Le if (NoiseCompute(&n3, x, y) / 8.0 > 0.0) { v2 = v1; } float m = fmaxf(v1, v2) / 2.0; if (m < 0.0) { m *= 0.8; } +#if MINECRAFTC_MODS + if (generator->progressBar->minecraft->settings.largerWorldGen) { + float dist = sqrtf((x / (float)w - 0.5) * (x / (float)w - 0.5) + (y / (float)d - 0.5) * (y / (float)d - 0.5)); + m -= powf(fminf(dist * 2.0, 1.0), 10.0) * 10.0; + } +#endif heights[x + y * w] = m; } } From 646e8427aad999c2a15a04ff9b21ae7362a1f658 Mon Sep 17 00:00:00 2001 From: John Payne Date: Wed, 27 Jul 2022 18:36:51 -0500 Subject: [PATCH 03/13] implement octree generation for raytracing --- MinecraftC/GUI/ModsScreen.c | 1 - MinecraftC/GameSettings.c | 9 ++- MinecraftC/Level/Level.c | 29 +++++++++ MinecraftC/Level/Level.h | 9 +++ MinecraftC/Mods/Octree.c | 115 ++++++++++++++++++++++++++++++++++++ MinecraftC/Mods/Octree.h | 18 ++++++ 6 files changed, 179 insertions(+), 2 deletions(-) create mode 100644 MinecraftC/Mods/Octree.c create mode 100644 MinecraftC/Mods/Octree.h diff --git a/MinecraftC/GUI/ModsScreen.c b/MinecraftC/GUI/ModsScreen.c index 15058a2..59f5b54 100644 --- a/MinecraftC/GUI/ModsScreen.c +++ b/MinecraftC/GUI/ModsScreen.c @@ -17,7 +17,6 @@ void ModsScreenOnOpen(ModsScreen * screen) { String text = GameSettingsGetSetting(screen->mods.settings, screen->mods.settings->settingsCount + i); ButtonCreateSize(&screen->buttons[i], i, screen->width / 2 - 155 + i % 2 * 160, screen->height / 6 + 24 * (i / 2 + 1) - 24, 150, 20, text); } - screen->buttons[1].active = false; Button button; ButtonCreate(&button, 200, screen->width / 2 - 100, screen->height / 6 + 168, "Done"); screen->buttons = ListPush(screen->buttons, &button); diff --git a/MinecraftC/GameSettings.c b/MinecraftC/GameSettings.c index 41189f7..ac8b4d8 100644 --- a/MinecraftC/GameSettings.c +++ b/MinecraftC/GameSettings.c @@ -188,7 +188,14 @@ void GameSettingsToggleSetting(GameSettings * settings, int setting) { } #if MINECRAFTC_MODS if (setting == 8) { settings->explodingTNT = !settings->explodingTNT; } - if (setting == 9) { settings->raytracing = !settings->raytracing; } + if (setting == 9) { + settings->raytracing = !settings->raytracing; + if (settings->raytracing) { + LevelCreateOctree(&settings->minecraft->level); + } else { + LevelDestroyOctree(&settings->minecraft->level); + } + } if (setting == 10) { settings->largerWorldGen = !settings->largerWorldGen; } #endif Save(settings); diff --git a/MinecraftC/Level/Level.c b/MinecraftC/Level/Level.c index a29c4d3..a124002 100644 --- a/MinecraftC/Level/Level.c +++ b/MinecraftC/Level/Level.c @@ -15,6 +15,7 @@ void LevelCreate(Level * level, ProgressBarDisplay * progressBar, int size) { .skyColor = 0x99CCFFFF, .fogColor = 0xffffffff, .cloudColor = 0xffffffff, + .progressBar = progressBar, }; RandomGeneratorCreate(&level->random, time(NULL)); level->randomValue = (int)RandomGeneratorInteger(&level->random); @@ -92,6 +93,8 @@ void LevelRegenerate(Level * level, int size) { } void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks) { + free(level->blocks); + free(level->lightBlockers); level->width = w; level->depth = d; level->height = h; @@ -107,7 +110,33 @@ void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks) { } level->tickList = ListClear(level->tickList); LevelFindSpawn(level); +#if MINECRAFTC_MODS + if (level->progressBar->minecraft->settings.raytracing) { + LevelDestroyOctree(level); + LevelCreateOctree(level); + } +#endif +} + +#if MINECRAFTC_MODS +void LevelCreateOctree(Level * level) { + ProgressBarDisplaySetText(level->progressBar, "Creating octree.."); + OctreeCreate(&level->octree, level); + for (int x = 0; x < level->width; x++) { + ProgressBarDisplaySetProgress(level->progressBar, x * 100 / (level->width - 1)); + for (int y = 0; y < level->depth; y++) { + for (int z = 0; z < level->height; z++) { + BlockType tile = LevelGetTile(level, x, y, z); + if (tile != BlockTypeNone) { OctreeSet(&level->octree, x, y, z, tile); } + } + } + } +} + +void LevelDestroyOctree(Level * level) { + OctreeDestroy(&level->octree); } +#endif void LevelFindSpawn(Level * level) { int i = 0; diff --git a/MinecraftC/Level/Level.h b/MinecraftC/Level/Level.h index 163cc56..85ac6b5 100644 --- a/MinecraftC/Level/Level.h +++ b/MinecraftC/Level/Level.h @@ -10,6 +10,7 @@ #include "../GUI/FontRenderer.h" #include "../Entity.h" #include "Generator/LevelGenerator.h" +#include "../Mods/Octree.h" typedef struct Level { int width, height, depth; @@ -31,6 +32,10 @@ typedef struct Level { List(Entity *) entities; ParticleManager * particleEngine; LevelGenerator generator; + ProgressBarDisplay * progressBar; +#ifdef MINECRAFTC_MODS + Octree octree; +#endif } Level; void LevelCreate(Level * level, ProgressBarDisplay * progressBar, int size); @@ -38,6 +43,10 @@ void LevelRegenerate(Level * level, int size); bool LevelLoad(Level * level, char * filePath); bool LevelSave(Level * level, char * filePath, char * name); void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks); +#ifdef MINECRAFTC_MODS +void LevelCreateOctree(Level * level); +void LevelDestroyOctree(Level * level); +#endif void LevelFindSpawn(Level * level); void LevelCalculateLightDepths(Level * level, int x0, int y0, int x1, int y1); void LevelSetRenderer(Level * level, struct LevelRenderer * listener); diff --git a/MinecraftC/Mods/Octree.c b/MinecraftC/Mods/Octree.c new file mode 100644 index 0000000..e5be3e7 --- /dev/null +++ b/MinecraftC/Mods/Octree.c @@ -0,0 +1,115 @@ +#if MINECRAFTC_MODS + +#include "Octree.h" +#include "../Level/Level.h" + +static inline int pow2i(int n) { + if (n < 0) { return 0; } + int p = 1; + while (n-- > 0) { p *= 2; } + return p; +} + +static inline int log2i(int p) { + int n = 0; + while (p > 1) { + n++; + p /= 2; + } + return n; +} + +static inline int maxi(int a, int b) { + return a < b ? b : a; +} + +void OctreeCreate(Octree * tree, struct Level * level) { + *tree = (Octree) { + .level = level, + .depth = log2i(maxi(level->width, maxi(level->height, level->depth))), + }; + // 1 + 8 + 64 + ... + 8^(n-1) + // = (8^n - 1) / 7 + // = (8^log2(size) - 1) / 7 + // = (size^3 - 1) / 7 + tree->size = pow2i(tree->depth); + tree->masks = malloc((tree->size * tree->size * tree->size - 1) / 7); +} + +static bool Reset(Octree * tree, int startIndex, int maskOffset, int baseX, int baseY, int baseZ, int size, int depth, int x, int y, int z) { + uint8_t bit = (x >= baseX + size / 2) + 2 * (y >= baseY + size / 2) + 4 * (z >= baseZ + size / 2); + if (((tree->masks[startIndex + maskOffset] >> bit) & 1) == 0) { + return false; + } + if (depth == tree->depth - 1) { + LevelSetTile(tree->level, x, y, z, BlockTypeNone); + tree->masks[startIndex + maskOffset] &= ~(1 << bit); + return tree->masks[startIndex + maskOffset] == 0; + } + int ix = ((bit >> 0) & 1) * (size / 2); + int iy = ((bit >> 1) & 1) * (size / 2); + int iz = ((bit >> 2) & 1) * (size / 2); + if (Reset(tree, startIndex + pow2i(3 * depth), 8 * maskOffset + bit, baseX + ix, baseY + iy, baseZ + iz, size / 2, depth + 1, x, y, z)) { + tree->masks[startIndex + maskOffset] &= ~(1 << bit); + return tree->masks[startIndex + maskOffset] == 0; + } + return false; +} + +void OctreeSet(Octree * tree, int x, int y, int z, BlockType tile) { + if (x < 0 || y < 0 || z < 0 || x >= tree->size || y >= tree->size || z >= tree->size) { + return; + } + int startIndex = 0, maskOffset = 0; + int baseX = 0, baseY = 0, baseZ = 0; + int size = tree->size; + if (tile == BlockTypeNone) { + Reset(tree, startIndex, maskOffset, baseX, baseY, baseZ, size, 0, x, y, z); + } else { + for (int depth = 0; depth < tree->depth; depth++) { + uint8_t bit = (x >= baseX + size / 2) + 2 * (y >= baseY + size / 2) + 4 * (z >= baseZ + size / 2); + tree->masks[startIndex + maskOffset] |= 1 << bit; + maskOffset = 8 * maskOffset + bit; + startIndex += pow2i(3 * depth); + baseX += ((bit >> 0) & 1) * (size / 2); + baseY += ((bit >> 1) & 1) * (size / 2); + baseZ += ((bit >> 2) & 1) * (size / 2); + size /= 2; + if (depth == tree->depth - 1) { + LevelSetTile(tree->level, x, y, z, tile); + } + } + } +} + +BlockType OctreeGet(Octree * tree, int x, int y, int z) { + if (x < 0 || y < 0 || z < 0 || x >= tree->size || y >= tree->size || z >= tree->size) { + return; + } + int startIndex = 0, maskOffset = 0; + int baseX = 0, baseY = 0, baseZ = 0; + int size = tree->size; + for (int depth = 0; depth < tree->depth; depth++) { + uint8_t mask = tree->masks[startIndex + maskOffset]; + uint8_t bit = (x >= baseX + size / 2) + 2 * (y >= baseY + size / 2) + 4 * (z >= baseZ + size / 2); + if (((mask >> bit) & 1) == 0) { + return BlockTypeNone; + } + maskOffset = 8 * maskOffset + bit; + startIndex += pow2i(3 * depth); + baseX += ((bit >> 0) & 1) * (size / 2); + baseY += ((bit >> 1) & 1) * (size / 2); + baseZ += ((bit >> 2) & 1) * (size / 2); + size /= 2; + if (depth == tree->depth - 1) { + return LevelGetTile(tree->level, x, y, z); + } + } + return BlockTypeNone; +} + +void OctreeDestroy(Octree * tree) { + free(tree->masks); +} + +#endif diff --git a/MinecraftC/Mods/Octree.h b/MinecraftC/Mods/Octree.h new file mode 100644 index 0000000..5fdce39 --- /dev/null +++ b/MinecraftC/Mods/Octree.h @@ -0,0 +1,18 @@ +#pragma once +#if MINECRAFTC_MODS + +#include "../Level/Tile/Block.h" + +typedef struct Octree { + struct Level * level; + int depth; + int size; + uint8_t * masks; +} Octree; + +void OctreeCreate(Octree * tree, struct Level * level); +void OctreeSet(Octree * tree, int x, int y, int z, BlockType tile); +BlockType OctreeGet(Octree * tree, int x, int y, int z); +void OctreeDestroy(Octree * tree); + +#endif From a2d7d3e4799011088fc175bb97069ea6c7071d01 Mon Sep 17 00:00:00 2001 From: John Payne Date: Wed, 27 Jul 2022 22:32:54 -0500 Subject: [PATCH 04/13] implement proof of concept raytracer --- CMakeLists.txt | 7 + MinecraftC/GameSettings.c | 9 +- MinecraftC/Level/Level.c | 7 + MinecraftC/Level/Level.h | 4 +- MinecraftC/Minecraft.c | 30 +++- MinecraftC/Mods/Octree.c | 6 +- MinecraftC/Mods/Octree.h | 1 + MinecraftC/Mods/OctreeRenderer.c | 160 ++++++++++++++++++ MinecraftC/Mods/OctreeRenderer.h | 25 +++ MinecraftC/Utilities/OpenCL.h | 10 ++ MinecraftC/Utilities/OpenGL.h | 3 + Resources/Shaders/Raytracer.cl | 136 +++++++++++++++ Resources/Shaders/Raytracer.h | 275 +++++++++++++++++++++++++++++++ Scripts/EmbedResources.py | 6 +- 14 files changed, 669 insertions(+), 10 deletions(-) create mode 100644 MinecraftC/Mods/OctreeRenderer.c create mode 100644 MinecraftC/Mods/OctreeRenderer.h create mode 100644 MinecraftC/Utilities/OpenCL.h create mode 100644 Resources/Shaders/Raytracer.cl create mode 100644 Resources/Shaders/Raytracer.h diff --git a/CMakeLists.txt b/CMakeLists.txt index ee44343..501ed55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,10 @@ set(MINECRAFTC_SOURCES MinecraftC/Level/Level.c MinecraftC/Level/Level.h MinecraftC/Level/NextTickListEntry.h + MinecraftC/Mods/Octree.c + MinecraftC/Mods/Octree.h + MinecraftC/Mods/OctreeRenderer.c + MinecraftC/Mods/OctreeRenderer.h MinecraftC/Mods/PrimedTNT.c MinecraftC/Mods/PrimedTNT.h MinecraftC/Particle/Particle.c @@ -133,6 +137,7 @@ set(MINECRAFTC_SOURCES MinecraftC/Utilities/List.h MinecraftC/Utilities/Log.c MinecraftC/Utilities/Log.h + MinecraftC/Utilities/OpenCL.h MinecraftC/Utilities/OpenGL.h MinecraftC/Utilities/Random.c MinecraftC/Utilities/Random.h @@ -156,6 +161,7 @@ set(MINECRAFTC_SOURCES MinecraftC/SessionData.h MinecraftC/Timer.c MinecraftC/Timer.h + Resources/Shaders/Raytracer.cl ) if(MSVC) @@ -196,6 +202,7 @@ if(APPLE) "-framework GameController" "-framework IOKit" "-framework Metal" + "-framework OpenCL" "-framework OpenGL" ) elseif(WIN32) diff --git a/MinecraftC/GameSettings.c b/MinecraftC/GameSettings.c index ac8b4d8..5e21f65 100644 --- a/MinecraftC/GameSettings.c +++ b/MinecraftC/GameSettings.c @@ -3,6 +3,7 @@ #include "GameSettings.h" #include "Minecraft.h" #include "Utilities/Log.h" +#include "Mods/OctreeRenderer.h" static void Load(GameSettings * settings) { SDL_RWops * file = SDL_RWFromFile(settings->file, "r"); @@ -191,9 +192,15 @@ void GameSettingsToggleSetting(GameSettings * settings, int setting) { if (setting == 9) { settings->raytracing = !settings->raytracing; if (settings->raytracing) { - LevelCreateOctree(&settings->minecraft->level); + if (OctreeRendererInitialize(settings->minecraft->width, settings->minecraft->height)) { + LevelCreateOctree(&settings->minecraft->level); + OctreeRendererSetOctree(&settings->minecraft->level.octree); + } else { + settings->raytracing = false; + } } else { LevelDestroyOctree(&settings->minecraft->level); + OctreeRendererDestroy(); } } if (setting == 10) { settings->largerWorldGen = !settings->largerWorldGen; } diff --git a/MinecraftC/Level/Level.c b/MinecraftC/Level/Level.c index a124002..2222465 100644 --- a/MinecraftC/Level/Level.c +++ b/MinecraftC/Level/Level.c @@ -5,6 +5,7 @@ #include "../Utilities/SinTable.h" #include "../Mods/PrimedTNT.h" #include "../Minecraft.h" +#include "../Mods/OctreeRenderer.h" void LevelCreate(Level * level, ProgressBarDisplay * progressBar, int size) { *level = (Level) { @@ -114,6 +115,7 @@ void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks) { if (level->progressBar->minecraft->settings.raytracing) { LevelDestroyOctree(level); LevelCreateOctree(level); + OctreeRendererSetOctree(&level->octree); } #endif } @@ -240,6 +242,11 @@ bool LevelSetTileNoNeighborChange(Level * level, int x, int y, int z, BlockType if (tile != BlockTypeNone) { BlockOnAdded(&Blocks.table[tile], level, x, y, z); } LevelCalculateLightDepths(level, x, z, 1, 1); if (level->renderer != NULL) { LevelRendererQueueChunks(level->renderer, x - 1, y - 1, z - 1, x + 1, y + 1, z + 1); } +#if MINECRAFTC_MODS + if (level->progressBar->minecraft->settings.raytracing) { + OctreeSet(&level->octree, x, y, z, tile); + } +#endif return true; } diff --git a/MinecraftC/Level/Level.h b/MinecraftC/Level/Level.h index 85ac6b5..5f19624 100644 --- a/MinecraftC/Level/Level.h +++ b/MinecraftC/Level/Level.h @@ -33,7 +33,7 @@ typedef struct Level { ParticleManager * particleEngine; LevelGenerator generator; ProgressBarDisplay * progressBar; -#ifdef MINECRAFTC_MODS +#if MINECRAFTC_MODS Octree octree; #endif } Level; @@ -43,7 +43,7 @@ void LevelRegenerate(Level * level, int size); bool LevelLoad(Level * level, char * filePath); bool LevelSave(Level * level, char * filePath, char * name); void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks); -#ifdef MINECRAFTC_MODS +#if MINECRAFTC_MODS void LevelCreateOctree(Level * level); void LevelDestroyOctree(Level * level); #endif diff --git a/MinecraftC/Minecraft.c b/MinecraftC/Minecraft.c index fea6a49..9d1bd6f 100644 --- a/MinecraftC/Minecraft.c +++ b/MinecraftC/Minecraft.c @@ -18,6 +18,7 @@ #include "Level/Generator/LevelGenerator.h" #include "Particle/WaterDropParticle.h" #include "Mods/PrimedTNT.h" +#include "Mods/OctreeRenderer.h" static void CheckGLError(Minecraft * minecraft, char * msg) { int error = glGetError(); @@ -79,6 +80,11 @@ void MinecraftCreate(Minecraft * minecraft, int width, int height, bool fullScre GameSettingsCreate(&minecraft->settings, minecraft); SDL_GL_SetSwapInterval(minecraft->settings.limitFramerate ? 1 : 0); cs_music_set_volume((float)minecraft->settings.music); +#if MINECRAFTC_MODS + if (minecraft->settings.raytracing && !OctreeRendererInitialize(minecraft->frameWidth, minecraft->frameHeight)) { + minecraft->settings.raytracing = false; + } +#endif TextureManagerCreate(&minecraft->textureManager, &minecraft->settings); AnimatedTexture * lavaTexture = malloc(sizeof(AnimatedTexture)); LavaTextureCreate(lavaTexture); @@ -838,7 +844,24 @@ void MinecraftRun(Minecraft * minecraft) { if (i == 1) { glColorMask(true, true, true, true); } } - +#if MINECRAFTC_MODS + if (minecraft->settings.raytracing) { + OctreeRendererEnqueue(); + RendererEnableGUIMode(renderer); + glEnable(GL_TEXTURE_2D); + glBindTexture(GL_TEXTURE_2D, OctreeRenderer.textureID); + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glColor4f(1.0, 1.0, 1.0, 0.8); + ShapeRendererBegin(); + ShapeRendererVertexUV(0.0, minecraft->height, 0.0, 0.0, 0.0); + ShapeRendererVertexUV(minecraft->width, minecraft->height, 0.0, 2.0, 0.0); + ShapeRendererVertexUV(minecraft->width, 0.0, 0.0, 2.0, 2.0); + ShapeRendererVertexUV(0.0, 0.0, 0.0, 0.0, 2.0); + ShapeRendererEnd(); + glDisable(GL_BLEND); + } +#endif HUDScreenRender(&minecraft->hud, delta, mx, my); if (minecraft->currentScreen != NULL) { GUIScreenRender(minecraft->currentScreen, mx, my); } @@ -881,6 +904,11 @@ void MinecraftPause(Minecraft * minecraft) { } void MinecraftDestroy(Minecraft * minecraft) { +#if MINECRAFTC_MODS + if (minecraft->settings.raytracing) { + OctreeRendererDestroy(); + } +#endif StringFree(minecraft->debug); } diff --git a/MinecraftC/Mods/Octree.c b/MinecraftC/Mods/Octree.c index e5be3e7..1fb312a 100644 --- a/MinecraftC/Mods/Octree.c +++ b/MinecraftC/Mods/Octree.c @@ -33,7 +33,8 @@ void OctreeCreate(Octree * tree, struct Level * level) { // = (8^log2(size) - 1) / 7 // = (size^3 - 1) / 7 tree->size = pow2i(tree->depth); - tree->masks = malloc((tree->size * tree->size * tree->size - 1) / 7); + tree->maskCount = (tree->size * tree->size * tree->size - 1) / 7; + tree->masks = calloc(tree->maskCount, 1); } static bool Reset(Octree * tree, int startIndex, int maskOffset, int baseX, int baseY, int baseZ, int size, int depth, int x, int y, int z) { @@ -75,9 +76,6 @@ void OctreeSet(Octree * tree, int x, int y, int z, BlockType tile) { baseY += ((bit >> 1) & 1) * (size / 2); baseZ += ((bit >> 2) & 1) * (size / 2); size /= 2; - if (depth == tree->depth - 1) { - LevelSetTile(tree->level, x, y, z, tile); - } } } } diff --git a/MinecraftC/Mods/Octree.h b/MinecraftC/Mods/Octree.h index 5fdce39..c84db9a 100644 --- a/MinecraftC/Mods/Octree.h +++ b/MinecraftC/Mods/Octree.h @@ -7,6 +7,7 @@ typedef struct Octree { struct Level * level; int depth; int size; + int maskCount; uint8_t * masks; } Octree; diff --git a/MinecraftC/Mods/OctreeRenderer.c b/MinecraftC/Mods/OctreeRenderer.c new file mode 100644 index 0000000..d8a7bf2 --- /dev/null +++ b/MinecraftC/Mods/OctreeRenderer.c @@ -0,0 +1,160 @@ +#if MINECRAFTC_MODS + +#include "OctreeRenderer.h" +#include "../Utilities/OpenGL.h" +#include "../Level/Level.h" +#include "../Utilities/Log.h" +#include "../../Resources/Shaders/Raytracer.h" + +struct OctreeRenderer OctreeRenderer = { 0 }; + +bool OctreeRendererInitialize(int width, int height) { + OctreeRenderer.width = width; + OctreeRenderer.height = height; + glGenTextures(1, &OctreeRenderer.textureID); + glBindTexture(GL_TEXTURE_2D, OctreeRenderer.textureID); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); + glBindTexture(GL_TEXTURE_2D, 0); + + cl_platform_id platform; + if (clGetPlatformIDs(1, &platform, NULL) < 0) { + LogError("Couldn't find a suitable platform for OpenCL\n"); + return false; + } + if (clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &OctreeRenderer.device, NULL) == CL_DEVICE_NOT_FOUND) { + LogError("No supported GPU found\n"); + return false; + } + + cl_context_properties properties[] = { +#ifdef __APPLE__ + CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, + (cl_context_properties)CGLGetShareGroup(CGLGetCurrentContext()), +#elif defined(_WIN32) + CL_GL_CONTEXT_KHR, (cl_context_properties)wglGetCurrentContext(), + CL_WGL_HDC_KHR, (cl_context_properties)wglGetCurrentDC(), + CL_CONTEXT_PLATFORM, (cl_context_properties)platform, +#elif defined(__linux__) + CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(), + CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(), + CL_CONTEXT_PLATFORM, (cl_context_properties)platform, +#endif + 0, + }; + + int error; + OctreeRenderer.context = clCreateContext(properties, 1, &OctreeRenderer.device, NULL, NULL, &error); + if (error < 0) { + LogError("Failed to create context: %i\n", error); + return false; + } + + OctreeRenderer.shader = clCreateProgramWithSource(OctreeRenderer.context, 1, &(const char *){ (const char *)Resource_Shaders_Raytrace }, &(size_t){ sizeof(Resource_Shaders_Raytrace) }, &error); + if (error < 0) { + LogError("Failed to create shader program: %i\n", error); + return false; + } + + error = clBuildProgram(OctreeRenderer.shader, 0, NULL, NULL, NULL, NULL); + if (error < 0) { + size_t logSize; + clGetProgramBuildInfo(OctreeRenderer.shader, OctreeRenderer.device, CL_PROGRAM_BUILD_LOG, 0, NULL, &logSize); + char * log = malloc(logSize); + clGetProgramBuildInfo(OctreeRenderer.shader, OctreeRenderer.device, CL_PROGRAM_BUILD_LOG, logSize, log, NULL); + LogError("Failed to compile shader program: %s\n", log); + free(log); + return false; + } + + OctreeRenderer.queue = clCreateCommandQueue(OctreeRenderer.context, OctreeRenderer.device, 0, &error); + if (error < 0) { + LogError("Failed to create command queue: %i\n", error); + return false; + } + OctreeRenderer.kernel = clCreateKernel(OctreeRenderer.shader, "trace", &error); + if (error < 0) { + LogError("Failed to create kernel: %i\n", error); + return false; + } + + OctreeRenderer.textureBuffer = clCreateFromGLTexture(OctreeRenderer.context, CL_MEM_WRITE_ONLY, GL_TEXTURE_2D, 0, OctreeRenderer.textureID, &error); + if (error < 0) { LogFatal("Failed to create texture buffer: %i %i\n", error, CL_INVALID_GL_OBJECT); } + error = clSetKernelArg(OctreeRenderer.kernel, 3, sizeof(cl_mem), &OctreeRenderer.textureBuffer); + if (error < 0) { + LogError("Failed to set kernel arguments: %i\n", error); + return false; + } + return true; +} + +void OctreeRendererSetOctree(Octree * tree) { + OctreeRenderer.octree = tree; + + int error; + OctreeRenderer.octreeBuffer = clCreateBuffer(OctreeRenderer.context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, tree->maskCount, tree->masks, &error); + if (error < 0) { + LogFatal("Failed to create octree buffer: %i\n", error); + } + OctreeRenderer.blockBuffer = clCreateBuffer(OctreeRenderer.context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, tree->level->width * tree->level->height * tree->level->depth, tree->level->blocks, &error); + if (error < 0) { + LogFatal("Failed to create block buffer: %i\n", error); + } + + error = clSetKernelArg(OctreeRenderer.kernel, 0, sizeof(unsigned int), &tree->depth); + error |= clSetKernelArg(OctreeRenderer.kernel, 1, sizeof(cl_mem), &OctreeRenderer.octreeBuffer); + error |= clSetKernelArg(OctreeRenderer.kernel, 2, sizeof(cl_mem), &OctreeRenderer.blockBuffer); + if (error < 0) { + LogFatal("Failed to set kernel arguments: %i\n", error); + } +} + +void OctreeRendererEnqueue() { + glFinish(); + Player * player = OctreeRenderer.octree->level->player; + float a = player->xRot * M_PI / 180.0, b = (180.0 - player->yRot) * M_PI / 180.0; + float x = player->x, y = player->y, z = player->z; + float matrix[16] = { + cosf(b), 0.0, -sinf(b), 0.0, + sinf(a) * sinf(b), cosf(a), sinf(a) * cosf(b), 0.0, + cosf(a) * sinf(b), -sinf(a), cosf(a) * cosf(b), 0.0, + x, y, z, 1.0 + }; + //Matrix4x4 camera = Matrix4x4Multiply(Matrix4x4FromTranslate(player->Position), Matrix4x4FromEulerAngles((float3){ 180.0 - player->Rotation.y, player->Rotation.x, 0.0 } * rad)); + int error = clSetKernelArg(OctreeRenderer.kernel, 4, sizeof(matrix), &matrix); + if (error < 0) { + LogFatal("Failed to set kernel argument: %i\n", error); + } + error = clEnqueueAcquireGLObjects(OctreeRenderer.queue, 1, &OctreeRenderer.textureBuffer, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to aquire gl texture: %i\n"); + } + error = clEnqueueNDRangeKernel(OctreeRenderer.queue, OctreeRenderer.kernel, 2, NULL, (size_t[]){ OctreeRenderer.width, OctreeRenderer.height }, (size_t[]){ 1, 1 }, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to enqueue octree renderer: %i\n"); + } + error = clEnqueueReleaseGLObjects(OctreeRenderer.queue, 1, &OctreeRenderer.textureBuffer, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to release gl texture: %i\n"); + } + clFinish(OctreeRenderer.queue); +} + +void OctreeRendererDestroy() { + glFinish(); + clFinish(OctreeRenderer.queue); + clReleaseMemObject(OctreeRenderer.textureBuffer); + clReleaseMemObject(OctreeRenderer.octreeBuffer); + clReleaseMemObject(OctreeRenderer.blockBuffer); + clReleaseKernel(OctreeRenderer.kernel); + clReleaseCommandQueue(OctreeRenderer.queue); + clReleaseProgram(OctreeRenderer.shader); + clReleaseContext(OctreeRenderer.context); + clReleaseDevice(OctreeRenderer.device); + glDeleteTextures(1, &OctreeRenderer.textureID); +} + +#endif diff --git a/MinecraftC/Mods/OctreeRenderer.h b/MinecraftC/Mods/OctreeRenderer.h new file mode 100644 index 0000000..54c6d79 --- /dev/null +++ b/MinecraftC/Mods/OctreeRenderer.h @@ -0,0 +1,25 @@ +#pragma once +#if MINECRAFTC_MODS + +#include "../Utilities/OpenCL.h" +#include "Octree.h" + +struct OctreeRenderer { + int width, height; + cl_device_id device; + cl_context context; + cl_program shader; + cl_kernel kernel; + cl_command_queue queue; + cl_mem octreeBuffer, blockBuffer; + cl_mem textureBuffer; + uint32_t textureID; + Octree * octree; +} extern OctreeRenderer; + +bool OctreeRendererInitialize(int width, int height); +void OctreeRendererSetOctree(Octree * tree); +void OctreeRendererEnqueue(void); +void OctreeRendererDestroy(void); + +#endif diff --git a/MinecraftC/Utilities/OpenCL.h b/MinecraftC/Utilities/OpenCL.h new file mode 100644 index 0000000..8f76279 --- /dev/null +++ b/MinecraftC/Utilities/OpenCL.h @@ -0,0 +1,10 @@ +#pragma once + +#if defined(__APPLE__) + #include + #include + #include +#else + #include + #include +#endif diff --git a/MinecraftC/Utilities/OpenGL.h b/MinecraftC/Utilities/OpenGL.h index 72f1359..356f217 100644 --- a/MinecraftC/Utilities/OpenGL.h +++ b/MinecraftC/Utilities/OpenGL.h @@ -3,6 +3,9 @@ #if defined(__APPLE__) #include #include + #include + #include + #include #elif defined(_WIN32) #include #include diff --git a/Resources/Shaders/Raytracer.cl b/Resources/Shaders/Raytracer.cl new file mode 100644 index 0000000..049fbd4 --- /dev/null +++ b/Resources/Shaders/Raytracer.cl @@ -0,0 +1,136 @@ + +float3 MatrixTransformPoint(float16 l, float3 r) { + return (float3) { + r.x * l.s0 + r.y * l.s4 + r.z * l.s8 + l.sC, + r.x * l.s1 + r.y * l.s5 + r.z * l.s9 + l.sD, + r.x * l.s2 + r.y * l.s6 + r.z * l.sA + l.sE, + }; +} + +void RayBox(float3 r, float3 o, float3 bmin, float3 bmax, float * enter, float * exit) { + float3 inv = 1.0 / r; + float3 t1 = (bmin - o) * inv; + float3 t2 = (bmax - o) * inv; + float3 tn = fmin(t1, t2); + float3 tf = fmax(t1, t2); + *enter = fmax(tn.x, fmax(tn.y, tn.z)); + *exit = fmin(tf.x, fmin(tf.y, tf.z)); +} + +bool RayBoxIntersection(float3 r, float3 o, float3 bmin, float3 bmax, float * dist) { + float n, f; + RayBox(r, o, bmin, bmax, &n, &f); + *dist = n; + return f > n && f > 0.0; +} + +float3 BoxNormal(float3 hit, float3 bmin, float3 bmax) { + return normalize(round((hit - (bmin + bmax) / 2.0) / (fabs(bmin - bmax)) * 1.0001)); +} + +bool RayTreeIntersection(__global uchar * octree, __global uchar * blocks, float3 ray, float3 origin, float size, float depth, float3 * hit, uchar * tile, float3 * normal) { + float dist; + if (!RayBoxIntersection(ray, origin, (float3){ 0.0, 0.0, 0.0 }, (float3){ 1.0, 1.0, 1.0 } * size, &dist)) { + *hit = ray * dist + origin; + //*tile = 255; + return false; + } + if (dist > depth) { + *hit = ray * dist + origin; + *tile = 254; + return false; + } + + *hit = origin + max(dist, 0.0) * ray; + float3 base = { 0.0, 0.0, 0.0 }; + float mid = size / 2.0; + int level = 0; + int offset = 0; + while (level < 8) { + uchar mask = octree[(int)((pow(8.0, float(level)) - 1.0) / 7.0) + offset]; + uint q = (hit->x > base.x + mid) + 2 * (hit->y > base.y + mid) + 4 * (hit->z > base.z + mid); + base += mid * convert_float3(((uint3){ q, q, q } >> (uint3){ 0, 1, 2 }) & 1); + + if (((mask >> q) & 1) == 0) { + float enter, exit; + RayBox(ray, *hit, base, base + mid, &enter, &exit); + //if (exit - enter < 0.05) { *tile = 253; break; } + *hit += exit * ray + sign(ray) * size * 0.000001; + + if (hit->x >= size || hit->y >= size || hit->z >= size || hit->x <= 0.0 || hit->y <= 0.0 || hit->z <= 0.0) { + return false; + } + + base = (float3){ 0.0, 0.0, 0.0 }; + mid = size / 2.0; + offset = 0; + level = 0; + continue; + } + + offset = 8 * offset + int(q); + + if (level == 7) { + *hit -= 0.000001 * sign(ray) * size; + *normal = BoxNormal(*hit, base, base + mid); + int3 v = convert_int3(base); + if (v.x >= 0 && v.y >= 0 && v.z >= 0 && v.x < 256 && v.y < 64 && v.z < 256) { + *tile = blocks[(v.y * 256 + v.z) * 256 + 256]; + return true; + } else { + *tile = 0; + return false; + } + } + + mid /= 2.0; + level++; + } + return false; +} + +float3 BGColor(float3 ray) { + return (float3){ 0.6, 0.8, 1.0 }; + //return ray; + //return (float3){ 0.0, 0.0, 0.0 }; +} + +__kernel void trace(uint treeDepth, __global uchar * octree, __global uchar * blocks, __write_only image2d_t texture, float16 camera) { + int x = get_global_id(0); + int y = get_global_id(1); + int width = get_global_size(0); + int height = get_global_size(1); + float2 uv = (float2){ 1.0 - 2.0 * (float)x / width, 2.0 * (float)y / height - 1.0 }; + uv.x *= (float)width / height; + + float fov = 70.0; + float3 origin = MatrixTransformPoint(camera, (float3){ 0.0, 0.0, 0.0 }); + float3 ray = normalize(MatrixTransformPoint(camera, (float3){ uv * 0.5, 0.5 / tanpi(fov / 360.0) }) - origin); + + float4 finalColor = { BGColor(ray), 1.0 }; + float depth = 1.0 / 0.0; + float3 lightPos = { 50.0, 50.0, -200.0 }; + + float3 hit, normal; + uchar tile; + if (RayTreeIntersection(octree, blocks, ray, origin, 256.0, depth, &hit, &tile, &normal) && distance(hit, origin) < depth) { + //finalColor.xyz = (float3){ 1.0, 1.0, 1.0 }; + depth = distance(hit, origin); + float3 lightDir = normalize(lightPos - hit); + float diff = max(dot(lightDir, normal), -1.0); + finalColor.xyz = (float3){ 1.0, 1.0, 1.0 } * (diff * 0.25 + 0.75); + + /*float3 shadowHit; + if (RayTreeIntersection(octree, blocks, lightDir, hit + 0.001 * lightDir, 256.0, distance(hit, lightPos), &shadowHit, &tile, &normal)) + { + finalColor.xyz *= 0.7; + }*/ + + float w = clamp(depth / 200.0, 0.0, 1.0); + finalColor.xyz = finalColor.xyz * (1.0 - w) + BGColor(ray) * w; + } + if (tile == 255) { finalColor.xyz = (float3){ 1.0, 0.0, 0.0 }; } + if (tile == 254) { finalColor.xyz = (float3){ 0.0, 1.0, 0.0 }; } + if (tile == 253) { finalColor.xyz = (float3){ 0.0, 0.0, 0.0 }; } + write_imagef(texture, (int2){ x, y }, finalColor); +} diff --git a/Resources/Shaders/Raytracer.h b/Resources/Shaders/Raytracer.h new file mode 100644 index 0000000..ae966c0 --- /dev/null +++ b/Resources/Shaders/Raytracer.h @@ -0,0 +1,275 @@ +static const unsigned char Resource_Shaders_Raytrace[] = { + 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, + 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, + 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, + 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, + 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, + 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, + 0x2e, 0x73, 0x44, 0x2c, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, + 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, + 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, + 0x73, 0x45, 0x2c, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, + 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, + 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, + 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, + 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, + 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x74, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, + 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, + 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, + 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, + 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, + 0x6e, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, + 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, + 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, + 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x6e, 0x2c, + 0x20, 0x66, 0x3b, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x2c, 0x20, 0x6f, + 0x2c, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x26, 0x6e, + 0x2c, 0x20, 0x26, 0x66, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, + 0x6e, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x20, 0x3e, 0x20, 0x6e, + 0x20, 0x26, 0x26, 0x20, 0x66, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x42, 0x6f, 0x78, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x62, 0x6d, 0x61, 0x78, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x72, 0x6f, 0x75, 0x6e, 0x64, + 0x28, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2b, 0x20, + 0x62, 0x6d, 0x61, 0x78, 0x29, 0x20, 0x2f, 0x20, 0x32, 0x2e, 0x30, 0x29, 0x20, 0x2f, 0x20, 0x28, + 0x66, 0x61, 0x62, 0x73, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x62, 0x6d, 0x61, 0x78, + 0x29, 0x29, 0x20, 0x2a, 0x20, 0x31, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x29, 0x29, 0x3b, 0x0a, 0x7d, + 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x6f, 0x63, 0x74, 0x72, + 0x65, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x73, 0x69, + 0x7a, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x75, + 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x3b, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x2c, 0x20, + 0x26, 0x64, 0x69, 0x73, 0x74, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x68, 0x69, 0x74, + 0x20, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x3b, 0x0a, 0x09, 0x09, 0x2f, 0x2f, 0x2a, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x35, 0x3b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x2a, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x3b, 0x0a, 0x09, + 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x34, 0x3b, 0x0a, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, + 0x0a, 0x0a, 0x09, 0x2a, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x20, 0x2b, 0x20, 0x6d, 0x61, 0x78, 0x28, 0x64, 0x69, 0x73, 0x74, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x29, 0x20, 0x2a, 0x20, 0x72, 0x61, 0x79, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x6d, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x2f, 0x20, 0x32, + 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x3d, + 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, + 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x20, 0x3c, 0x20, 0x38, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x6d, 0x61, 0x73, 0x6b, 0x20, 0x3d, 0x20, 0x6f, 0x63, 0x74, 0x72, 0x65, 0x65, 0x5b, + 0x28, 0x69, 0x6e, 0x74, 0x29, 0x28, 0x28, 0x70, 0x6f, 0x77, 0x28, 0x38, 0x2e, 0x30, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x28, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x29, 0x29, 0x20, 0x2d, 0x20, + 0x31, 0x2e, 0x30, 0x29, 0x20, 0x2f, 0x20, 0x37, 0x2e, 0x30, 0x29, 0x20, 0x2b, 0x20, 0x6f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x69, 0x6e, 0x74, 0x20, 0x71, 0x20, + 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x78, 0x20, 0x3e, 0x20, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x78, 0x20, 0x2b, 0x20, 0x6d, 0x69, 0x64, 0x29, 0x20, 0x2b, 0x20, 0x32, 0x20, 0x2a, 0x20, + 0x28, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x79, 0x20, 0x3e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, + 0x20, 0x2b, 0x20, 0x6d, 0x69, 0x64, 0x29, 0x20, 0x2b, 0x20, 0x34, 0x20, 0x2a, 0x20, 0x28, 0x68, + 0x69, 0x74, 0x2d, 0x3e, 0x7a, 0x20, 0x3e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x2b, + 0x20, 0x6d, 0x69, 0x64, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x3d, + 0x20, 0x6d, 0x69, 0x64, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x28, 0x28, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x71, 0x2c, 0x20, 0x71, 0x2c, 0x20, 0x71, 0x20, 0x7d, 0x20, 0x3e, 0x3e, 0x20, 0x28, 0x75, 0x69, + 0x6e, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x32, 0x20, 0x7d, 0x29, + 0x20, 0x26, 0x20, 0x31, 0x29, 0x3b, 0x0a, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x28, + 0x6d, 0x61, 0x73, 0x6b, 0x20, 0x3e, 0x3e, 0x20, 0x71, 0x29, 0x20, 0x26, 0x20, 0x31, 0x29, 0x20, + 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x2a, 0x68, 0x69, + 0x74, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, + 0x6d, 0x69, 0x64, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, + 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2f, 0x2f, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, + 0x69, 0x74, 0x20, 0x2d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, + 0x35, 0x29, 0x20, 0x7b, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x33, + 0x3b, 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x68, + 0x69, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2a, 0x20, 0x72, 0x61, 0x79, + 0x20, 0x2b, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x73, + 0x69, 0x7a, 0x65, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x3b, 0x0a, + 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x78, 0x20, 0x3e, + 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x79, + 0x20, 0x3e, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2d, + 0x3e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, + 0x74, 0x2d, 0x3e, 0x78, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7c, 0x7c, 0x20, 0x68, + 0x69, 0x74, 0x2d, 0x3e, 0x79, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7c, 0x7c, 0x20, + 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x7a, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x61, 0x73, 0x65, + 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x6d, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x2f, 0x20, 0x32, 0x2e, + 0x30, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x30, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, + 0x0a, 0x0a, 0x09, 0x09, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x38, 0x20, 0x2a, + 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x2b, 0x20, 0x69, 0x6e, 0x74, 0x28, 0x71, 0x29, + 0x3b, 0x0a, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x3d, + 0x3d, 0x20, 0x37, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x68, 0x69, 0x74, 0x20, 0x2d, + 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x67, + 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x42, 0x6f, 0x78, 0x4e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x28, 0x2a, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, + 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x6d, 0x69, 0x64, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x62, 0x61, 0x73, 0x65, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, + 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, + 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, + 0x32, 0x35, 0x36, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x20, + 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x32, 0x35, 0x36, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x32, 0x35, 0x36, 0x20, 0x2b, 0x20, + 0x76, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x32, 0x35, 0x36, 0x20, 0x2b, 0x20, 0x32, 0x35, 0x36, + 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, + 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x0a, 0x09, 0x09, 0x6d, 0x69, 0x64, + 0x20, 0x2f, 0x3d, 0x20, 0x32, 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x09, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x2b, 0x2b, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, + 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x36, 0x2c, 0x20, 0x30, 0x2e, 0x38, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x2f, 0x2f, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x72, 0x61, 0x79, 0x3b, 0x0a, 0x09, 0x2f, 0x2f, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, + 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, + 0x61, 0x63, 0x65, 0x28, 0x75, 0x69, 0x6e, 0x74, 0x20, 0x74, 0x72, 0x65, 0x65, 0x44, 0x65, 0x70, + 0x74, 0x68, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x2a, 0x20, 0x6f, 0x63, 0x74, 0x72, 0x65, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, + 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, + 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, + 0x6d, 0x65, 0x72, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x78, 0x20, 0x3d, + 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x30, + 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, + 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x28, 0x30, 0x29, 0x3b, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, + 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x28, 0x31, 0x29, 0x3b, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x32, 0x2e, + 0x30, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, + 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, + 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, + 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, + 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, + 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, + 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x2c, 0x20, 0x30, 0x2e, + 0x35, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, + 0x33, 0x36, 0x30, 0x2e, 0x30, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x69, + 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x42, 0x47, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, + 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x20, 0x3d, + 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2f, 0x20, 0x30, 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x20, 0x3d, 0x20, 0x7b, + 0x20, 0x35, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x35, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x2d, 0x32, 0x30, + 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x68, 0x69, 0x74, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, 0x75, 0x63, + 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, + 0x61, 0x79, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x28, 0x6f, 0x63, 0x74, 0x72, 0x65, 0x65, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, + 0x32, 0x35, 0x36, 0x2e, 0x30, 0x2c, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x2c, 0x20, 0x26, 0x68, + 0x69, 0x74, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, + 0x68, 0x69, 0x74, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x20, 0x3c, 0x20, 0x64, + 0x65, 0x70, 0x74, 0x68, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2f, 0x2f, 0x66, 0x69, 0x6e, 0x61, + 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x20, + 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x20, + 0x2d, 0x20, 0x68, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x64, 0x69, 0x66, 0x66, 0x20, 0x3d, 0x20, 0x6d, 0x61, 0x78, 0x28, 0x64, 0x6f, 0x74, 0x28, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, + 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, + 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x64, 0x69, 0x66, 0x66, 0x20, 0x2a, 0x20, + 0x30, 0x2e, 0x32, 0x35, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x37, 0x35, 0x29, 0x3b, 0x0a, 0x0a, 0x09, + 0x09, 0x2f, 0x2a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, + 0x48, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x54, 0x72, + 0x65, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, + 0x63, 0x74, 0x72, 0x65, 0x65, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x30, + 0x2e, 0x30, 0x30, 0x31, 0x20, 0x2a, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, + 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x2c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x29, 0x2c, + 0x20, 0x26, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x48, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x74, 0x69, + 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x0a, 0x09, 0x09, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x37, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x2a, + 0x2f, 0x0a, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x63, + 0x6c, 0x61, 0x6d, 0x70, 0x28, 0x64, 0x65, 0x70, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x32, 0x30, 0x30, + 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, + 0x3d, 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, + 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x77, 0x29, 0x20, 0x2b, 0x20, 0x42, + 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x77, 0x3b, + 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x32, 0x35, 0x35, 0x29, 0x20, 0x7b, 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x20, 0x7d, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x32, 0x35, 0x34, 0x29, 0x20, 0x7b, 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x32, 0x35, 0x33, 0x29, 0x20, 0x7b, 0x20, 0x66, 0x69, 0x6e, 0x61, + 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, + 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, + 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x00 +}; diff --git a/Scripts/EmbedResources.py b/Scripts/EmbedResources.py index 5b0cb42..8c9866e 100644 --- a/Scripts/EmbedResources.py +++ b/Scripts/EmbedResources.py @@ -28,7 +28,7 @@ def embed_png(filePath, outPath): image.close() -def embed_ogg(filePath, outPath): +def embed_file(filePath, outPath): input, output = open(filePath, 'rb'), open(outPath, 'w') cName = filePath[len(RESOURCE_PATH) + 1:-4].replace('/', '_') output.write(f'static const unsigned char Resource_{cName}[] = {{') @@ -45,4 +45,6 @@ def embed_ogg(filePath, outPath): if filePath.endswith('.png'): embed_png(filePath, filePath[:-4] + '.h') elif filePath.endswith('.ogg'): - embed_ogg(filePath, filePath[:-4] + '.h') + embed_file(filePath, filePath[:-4] + '.h') + elif filePath.endswith('.cl'): + embed_file(filePath, filePath[:-3] + '.h') From 47ca2953ca02a2e433d8f48df0412aa0a92a1481 Mon Sep 17 00:00:00 2001 From: John Payne Date: Fri, 29 Jul 2022 19:55:04 -0500 Subject: [PATCH 05/13] change from octree to distance field --- CMakeLists.txt | 7 +- MinecraftC/GameSettings.c | 13 +- MinecraftC/Level/Level.c | 58 +++-- MinecraftC/Level/Level.h | 7 +- MinecraftC/Minecraft.c | 52 ++-- MinecraftC/Mods/Octree.c | 113 --------- MinecraftC/Mods/Octree.h | 19 -- MinecraftC/Mods/OctreeRenderer.c | 160 ------------- MinecraftC/Mods/OctreeRenderer.h | 25 -- MinecraftC/Mods/Raytracer.c | 265 ++++++++++++++++++++ MinecraftC/Mods/Raytracer.h | 33 +++ Resources/Shaders/DistanceField.cl | 23 ++ Resources/Shaders/DistanceField.h | 43 ++++ Resources/Shaders/Raytracer.cl | 145 +++-------- Resources/Shaders/Raytracer.h | 373 ++++++++++------------------- Scripts/EmbedResources.py | 2 +- 16 files changed, 612 insertions(+), 726 deletions(-) delete mode 100644 MinecraftC/Mods/Octree.c delete mode 100644 MinecraftC/Mods/Octree.h delete mode 100644 MinecraftC/Mods/OctreeRenderer.c delete mode 100644 MinecraftC/Mods/OctreeRenderer.h create mode 100644 MinecraftC/Mods/Raytracer.c create mode 100644 MinecraftC/Mods/Raytracer.h create mode 100644 Resources/Shaders/DistanceField.cl create mode 100644 Resources/Shaders/DistanceField.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 501ed55..c084641 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,10 +85,8 @@ set(MINECRAFTC_SOURCES MinecraftC/Level/Level.c MinecraftC/Level/Level.h MinecraftC/Level/NextTickListEntry.h - MinecraftC/Mods/Octree.c - MinecraftC/Mods/Octree.h - MinecraftC/Mods/OctreeRenderer.c - MinecraftC/Mods/OctreeRenderer.h + MinecraftC/Mods/Raytracer.c + MinecraftC/Mods/Raytracer.h MinecraftC/Mods/PrimedTNT.c MinecraftC/Mods/PrimedTNT.h MinecraftC/Particle/Particle.c @@ -161,6 +159,7 @@ set(MINECRAFTC_SOURCES MinecraftC/SessionData.h MinecraftC/Timer.c MinecraftC/Timer.h + Resources/Shaders/DistanceField.cl Resources/Shaders/Raytracer.cl ) diff --git a/MinecraftC/GameSettings.c b/MinecraftC/GameSettings.c index 5e21f65..5f747b3 100644 --- a/MinecraftC/GameSettings.c +++ b/MinecraftC/GameSettings.c @@ -3,7 +3,7 @@ #include "GameSettings.h" #include "Minecraft.h" #include "Utilities/Log.h" -#include "Mods/OctreeRenderer.h" +#include "Mods/Raytracer.h" static void Load(GameSettings * settings) { SDL_RWops * file = SDL_RWFromFile(settings->file, "r"); @@ -192,15 +192,14 @@ void GameSettingsToggleSetting(GameSettings * settings, int setting) { if (setting == 9) { settings->raytracing = !settings->raytracing; if (settings->raytracing) { - if (OctreeRendererInitialize(settings->minecraft->width, settings->minecraft->height)) { - LevelCreateOctree(&settings->minecraft->level); - OctreeRendererSetOctree(&settings->minecraft->level.octree); - } else { + LevelCreateDistanceField(&settings->minecraft->level); + if (!RaytracerInitialize(&settings->minecraft->textureManager, &settings->minecraft->level, settings->minecraft->frameWidth, settings->minecraft->frameHeight)) { settings->raytracing = false; + LevelDestroyDistanceField(&settings->minecraft->level); } } else { - LevelDestroyOctree(&settings->minecraft->level); - OctreeRendererDestroy(); + LevelDestroyDistanceField(&settings->minecraft->level); + RaytracerDestroy(); } } if (setting == 10) { settings->largerWorldGen = !settings->largerWorldGen; } diff --git a/MinecraftC/Level/Level.c b/MinecraftC/Level/Level.c index 2222465..106dd04 100644 --- a/MinecraftC/Level/Level.c +++ b/MinecraftC/Level/Level.c @@ -5,7 +5,7 @@ #include "../Utilities/SinTable.h" #include "../Mods/PrimedTNT.h" #include "../Minecraft.h" -#include "../Mods/OctreeRenderer.h" +#include "../Mods/Raytracer.h" void LevelCreate(Level * level, ProgressBarDisplay * progressBar, int size) { *level = (Level) { @@ -62,6 +62,11 @@ bool LevelLoad(Level * level, char * filePath) { level->player->xRot = prx; level->player->yRot = pry; SDL_RWclose(file); +#if MINECRAFTC_MODS + if (level->progressBar->minecraft->settings.raytracing) { + RaytracerReload(); + } +#endif return true; } @@ -91,6 +96,11 @@ bool LevelSave(Level * level, char * filePath, char * name) { void LevelRegenerate(Level * level, int size) { LevelDestroy(level); LevelCreate(level, level->generator.progressBar, size); +#if MINECRAFTC_MODS + if (level->progressBar->minecraft->settings.raytracing) { + RaytracerReload(); + } +#endif } void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks) { @@ -113,30 +123,28 @@ void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks) { LevelFindSpawn(level); #if MINECRAFTC_MODS if (level->progressBar->minecraft->settings.raytracing) { - LevelDestroyOctree(level); - LevelCreateOctree(level); - OctreeRendererSetOctree(&level->octree); + LevelDestroyDistanceField(level); + LevelCreateDistanceField(level); } #endif } #if MINECRAFTC_MODS -void LevelCreateOctree(Level * level) { - ProgressBarDisplaySetText(level->progressBar, "Creating octree.."); - OctreeCreate(&level->octree, level); +void LevelCreateDistanceField(Level * level) { + level->distanceField = malloc(level->width * level->height * level->depth); + ProgressBarDisplaySetText(level->progressBar, "Preparing rays.."); for (int x = 0; x < level->width; x++) { ProgressBarDisplaySetProgress(level->progressBar, x * 100 / (level->width - 1)); for (int y = 0; y < level->depth; y++) { for (int z = 0; z < level->height; z++) { - BlockType tile = LevelGetTile(level, x, y, z); - if (tile != BlockTypeNone) { OctreeSet(&level->octree, x, y, z, tile); } + level->distanceField[(y * level->height + z) * level->width + x] = LevelGetTile(level, x, y, z) == BlockTypeNone ? 255 : 0; } } } } -void LevelDestroyOctree(Level * level) { - OctreeDestroy(&level->octree); +void LevelDestroyDistanceField(Level * level) { + free(level->distanceField); } #endif @@ -244,7 +252,24 @@ bool LevelSetTileNoNeighborChange(Level * level, int x, int y, int z, BlockType if (level->renderer != NULL) { LevelRendererQueueChunks(level->renderer, x - 1, y - 1, z - 1, x + 1, y + 1, z + 1); } #if MINECRAFTC_MODS if (level->progressBar->minecraft->settings.raytracing) { - OctreeSet(&level->octree, x, y, z, tile); + if (tile == BlockTypeNone) { + uint8_t min = 255; + for (int i = -1; i <= 1; i++) { + for (int j = -1; j <= 1; j++) { + for (int k = -1; k <= 1; k++) { + if (y + j < 0 || y + j >= level->depth || x + i < 0 || x + i >= level->width || z + k < 0 || z + k >= level->height || (i == j && j == k)) { + continue; + } + uint8_t d = level->distanceField[((y + j) * level->height + z + k) * level->width + x + i]; + min = d + 1 < min ? d + 1 : min; + } + } + } + level->distanceField[(y * level->height + z) * level->width + x] = min; + } else { + level->distanceField[(y * level->height + z) * level->width + x] = 0; + Raytracer.iteration = 0; + } } #endif return true; @@ -589,6 +614,11 @@ Entity * LevelFindPlayer(Level * level) { void LevelDestroy(Level * level) { ListFree(level->entities); ListFree(level->tickList); - if (level->lightBlockers != NULL) { free(level->lightBlockers); } - if (level->blocks != NULL) { free(level->blocks); } + free(level->lightBlockers); + free(level->blocks); +#if MINECRAFTC_MODS + if (level->progressBar->minecraft->settings.raytracing) { + LevelDestroyDistanceField(level); + } +#endif } diff --git a/MinecraftC/Level/Level.h b/MinecraftC/Level/Level.h index 5f19624..deb09ef 100644 --- a/MinecraftC/Level/Level.h +++ b/MinecraftC/Level/Level.h @@ -10,7 +10,6 @@ #include "../GUI/FontRenderer.h" #include "../Entity.h" #include "Generator/LevelGenerator.h" -#include "../Mods/Octree.h" typedef struct Level { int width, height, depth; @@ -34,7 +33,7 @@ typedef struct Level { LevelGenerator generator; ProgressBarDisplay * progressBar; #if MINECRAFTC_MODS - Octree octree; + uint8_t * distanceField; #endif } Level; @@ -44,8 +43,8 @@ bool LevelLoad(Level * level, char * filePath); bool LevelSave(Level * level, char * filePath, char * name); void LevelSetData(Level * level, int w, int d, int h, uint8_t * blocks); #if MINECRAFTC_MODS -void LevelCreateOctree(Level * level); -void LevelDestroyOctree(Level * level); +void LevelCreateDistanceField(Level * level); +void LevelDestroyDistanceField(Level * level); #endif void LevelFindSpawn(Level * level); void LevelCalculateLightDepths(Level * level, int x0, int y0, int x1, int y1); diff --git a/MinecraftC/Minecraft.c b/MinecraftC/Minecraft.c index 9d1bd6f..b64ca6f 100644 --- a/MinecraftC/Minecraft.c +++ b/MinecraftC/Minecraft.c @@ -18,7 +18,7 @@ #include "Level/Generator/LevelGenerator.h" #include "Particle/WaterDropParticle.h" #include "Mods/PrimedTNT.h" -#include "Mods/OctreeRenderer.h" +#include "Mods/Raytracer.h" static void CheckGLError(Minecraft * minecraft, char * msg) { int error = glGetError(); @@ -80,11 +80,6 @@ void MinecraftCreate(Minecraft * minecraft, int width, int height, bool fullScre GameSettingsCreate(&minecraft->settings, minecraft); SDL_GL_SetSwapInterval(minecraft->settings.limitFramerate ? 1 : 0); cs_music_set_volume((float)minecraft->settings.music); -#if MINECRAFTC_MODS - if (minecraft->settings.raytracing && !OctreeRendererInitialize(minecraft->frameWidth, minecraft->frameHeight)) { - minecraft->settings.raytracing = false; - } -#endif TextureManagerCreate(&minecraft->textureManager, &minecraft->settings); AnimatedTexture * lavaTexture = malloc(sizeof(AnimatedTexture)); LavaTextureCreate(lavaTexture); @@ -95,6 +90,11 @@ void MinecraftCreate(Minecraft * minecraft, int width, int height, bool fullScre FontRendererCreate(&minecraft->font, &minecraft->settings, "Default.png", &minecraft->textureManager); glViewport(0, 0, minecraft->frameWidth, minecraft->frameHeight); LevelCreate(&minecraft->level, &minecraft->progressBar, 1); +#if MINECRAFTC_MODS + if (minecraft->settings.raytracing && !RaytracerInitialize(&minecraft->textureManager, &minecraft->level, minecraft->frameWidth, minecraft->frameHeight)) { + minecraft->settings.raytracing = false; + } +#endif PlayerCreate(&minecraft->player, &minecraft->level); EntityResetPosition(&minecraft->player); minecraft->level.player = &minecraft->player; @@ -389,6 +389,11 @@ void MinecraftRun(Minecraft * minecraft) { glViewport(0, 0, minecraft->frameWidth, minecraft->frameHeight); HUDScreenDestroy(&minecraft->hud); HUDScreenCreate(&minecraft->hud, minecraft, minecraft->width, minecraft->height); +#if MINECRAFTC_MODS + if (minecraft->settings.raytracing) { + RaytracerResize(minecraft->frameWidth, minecraft->frameHeight); + } +#endif if (minecraft->currentScreen != NULL) { int w = minecraft->width * 240 / minecraft->height; int h = minecraft->height * 240 / minecraft->height; @@ -500,8 +505,12 @@ void MinecraftRun(Minecraft * minecraft) { if (renderer->entity != NULL) { minecraft->selected = (MovingObjectPosition){ .entityPosition = 1, .entity = renderer->entity }; } - + +#if MINECRAFTC_MODS + for (int i = 0; i < 2 && !minecraft->settings.raytracing; i++) { +#else for (int i = 0; i < 2; i++) { +#endif if (minecraft->settings.anaglyph) { if (i == 0) { glColorMask(false, true, true, false); } else { glColorMask(true, false, false, false); } @@ -846,19 +855,26 @@ void MinecraftRun(Minecraft * minecraft) { } #if MINECRAFTC_MODS if (minecraft->settings.raytracing) { - OctreeRendererEnqueue(); - RendererEnableGUIMode(renderer); + RaytracerEnqueue(delta, timer->lastHR, minecraft->settings.viewBobbing); + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); glEnable(GL_TEXTURE_2D); - glBindTexture(GL_TEXTURE_2D, OctreeRenderer.textureID); + glBindTexture(GL_TEXTURE_2D, Raytracer.textureID); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glColor4f(1.0, 1.0, 1.0, 0.8); - ShapeRendererBegin(); - ShapeRendererVertexUV(0.0, minecraft->height, 0.0, 0.0, 0.0); - ShapeRendererVertexUV(minecraft->width, minecraft->height, 0.0, 2.0, 0.0); - ShapeRendererVertexUV(minecraft->width, 0.0, 0.0, 2.0, 2.0); - ShapeRendererVertexUV(0.0, 0.0, 0.0, 0.0, 2.0); - ShapeRendererEnd(); + glBegin(GL_QUADS); + glColor4f(1.0, 1.0, 1.0, 1.0); + glTexCoord2f(0.0, 0.0); + glVertex2f(-1.0, -1.0); + glTexCoord2f(1.0, 0.0); + glVertex2f(1.0, -1.0); + glTexCoord2f(1.0, 1.0); + glVertex2f(1.0, 1.0); + glTexCoord2f(0.0, 1.0); + glVertex2f(-1.0, 1.0); + glEnd(); glDisable(GL_BLEND); } #endif @@ -906,7 +922,7 @@ void MinecraftPause(Minecraft * minecraft) { void MinecraftDestroy(Minecraft * minecraft) { #if MINECRAFTC_MODS if (minecraft->settings.raytracing) { - OctreeRendererDestroy(); + RaytracerDestroy(); } #endif StringFree(minecraft->debug); diff --git a/MinecraftC/Mods/Octree.c b/MinecraftC/Mods/Octree.c deleted file mode 100644 index 1fb312a..0000000 --- a/MinecraftC/Mods/Octree.c +++ /dev/null @@ -1,113 +0,0 @@ -#if MINECRAFTC_MODS - -#include "Octree.h" -#include "../Level/Level.h" - -static inline int pow2i(int n) { - if (n < 0) { return 0; } - int p = 1; - while (n-- > 0) { p *= 2; } - return p; -} - -static inline int log2i(int p) { - int n = 0; - while (p > 1) { - n++; - p /= 2; - } - return n; -} - -static inline int maxi(int a, int b) { - return a < b ? b : a; -} - -void OctreeCreate(Octree * tree, struct Level * level) { - *tree = (Octree) { - .level = level, - .depth = log2i(maxi(level->width, maxi(level->height, level->depth))), - }; - // 1 + 8 + 64 + ... + 8^(n-1) - // = (8^n - 1) / 7 - // = (8^log2(size) - 1) / 7 - // = (size^3 - 1) / 7 - tree->size = pow2i(tree->depth); - tree->maskCount = (tree->size * tree->size * tree->size - 1) / 7; - tree->masks = calloc(tree->maskCount, 1); -} - -static bool Reset(Octree * tree, int startIndex, int maskOffset, int baseX, int baseY, int baseZ, int size, int depth, int x, int y, int z) { - uint8_t bit = (x >= baseX + size / 2) + 2 * (y >= baseY + size / 2) + 4 * (z >= baseZ + size / 2); - if (((tree->masks[startIndex + maskOffset] >> bit) & 1) == 0) { - return false; - } - if (depth == tree->depth - 1) { - LevelSetTile(tree->level, x, y, z, BlockTypeNone); - tree->masks[startIndex + maskOffset] &= ~(1 << bit); - return tree->masks[startIndex + maskOffset] == 0; - } - int ix = ((bit >> 0) & 1) * (size / 2); - int iy = ((bit >> 1) & 1) * (size / 2); - int iz = ((bit >> 2) & 1) * (size / 2); - if (Reset(tree, startIndex + pow2i(3 * depth), 8 * maskOffset + bit, baseX + ix, baseY + iy, baseZ + iz, size / 2, depth + 1, x, y, z)) { - tree->masks[startIndex + maskOffset] &= ~(1 << bit); - return tree->masks[startIndex + maskOffset] == 0; - } - return false; -} - -void OctreeSet(Octree * tree, int x, int y, int z, BlockType tile) { - if (x < 0 || y < 0 || z < 0 || x >= tree->size || y >= tree->size || z >= tree->size) { - return; - } - int startIndex = 0, maskOffset = 0; - int baseX = 0, baseY = 0, baseZ = 0; - int size = tree->size; - if (tile == BlockTypeNone) { - Reset(tree, startIndex, maskOffset, baseX, baseY, baseZ, size, 0, x, y, z); - } else { - for (int depth = 0; depth < tree->depth; depth++) { - uint8_t bit = (x >= baseX + size / 2) + 2 * (y >= baseY + size / 2) + 4 * (z >= baseZ + size / 2); - tree->masks[startIndex + maskOffset] |= 1 << bit; - maskOffset = 8 * maskOffset + bit; - startIndex += pow2i(3 * depth); - baseX += ((bit >> 0) & 1) * (size / 2); - baseY += ((bit >> 1) & 1) * (size / 2); - baseZ += ((bit >> 2) & 1) * (size / 2); - size /= 2; - } - } -} - -BlockType OctreeGet(Octree * tree, int x, int y, int z) { - if (x < 0 || y < 0 || z < 0 || x >= tree->size || y >= tree->size || z >= tree->size) { - return; - } - int startIndex = 0, maskOffset = 0; - int baseX = 0, baseY = 0, baseZ = 0; - int size = tree->size; - for (int depth = 0; depth < tree->depth; depth++) { - uint8_t mask = tree->masks[startIndex + maskOffset]; - uint8_t bit = (x >= baseX + size / 2) + 2 * (y >= baseY + size / 2) + 4 * (z >= baseZ + size / 2); - if (((mask >> bit) & 1) == 0) { - return BlockTypeNone; - } - maskOffset = 8 * maskOffset + bit; - startIndex += pow2i(3 * depth); - baseX += ((bit >> 0) & 1) * (size / 2); - baseY += ((bit >> 1) & 1) * (size / 2); - baseZ += ((bit >> 2) & 1) * (size / 2); - size /= 2; - if (depth == tree->depth - 1) { - return LevelGetTile(tree->level, x, y, z); - } - } - return BlockTypeNone; -} - -void OctreeDestroy(Octree * tree) { - free(tree->masks); -} - -#endif diff --git a/MinecraftC/Mods/Octree.h b/MinecraftC/Mods/Octree.h deleted file mode 100644 index c84db9a..0000000 --- a/MinecraftC/Mods/Octree.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once -#if MINECRAFTC_MODS - -#include "../Level/Tile/Block.h" - -typedef struct Octree { - struct Level * level; - int depth; - int size; - int maskCount; - uint8_t * masks; -} Octree; - -void OctreeCreate(Octree * tree, struct Level * level); -void OctreeSet(Octree * tree, int x, int y, int z, BlockType tile); -BlockType OctreeGet(Octree * tree, int x, int y, int z); -void OctreeDestroy(Octree * tree); - -#endif diff --git a/MinecraftC/Mods/OctreeRenderer.c b/MinecraftC/Mods/OctreeRenderer.c deleted file mode 100644 index d8a7bf2..0000000 --- a/MinecraftC/Mods/OctreeRenderer.c +++ /dev/null @@ -1,160 +0,0 @@ -#if MINECRAFTC_MODS - -#include "OctreeRenderer.h" -#include "../Utilities/OpenGL.h" -#include "../Level/Level.h" -#include "../Utilities/Log.h" -#include "../../Resources/Shaders/Raytracer.h" - -struct OctreeRenderer OctreeRenderer = { 0 }; - -bool OctreeRendererInitialize(int width, int height) { - OctreeRenderer.width = width; - OctreeRenderer.height = height; - glGenTextures(1, &OctreeRenderer.textureID); - glBindTexture(GL_TEXTURE_2D, OctreeRenderer.textureID); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); - glBindTexture(GL_TEXTURE_2D, 0); - - cl_platform_id platform; - if (clGetPlatformIDs(1, &platform, NULL) < 0) { - LogError("Couldn't find a suitable platform for OpenCL\n"); - return false; - } - if (clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &OctreeRenderer.device, NULL) == CL_DEVICE_NOT_FOUND) { - LogError("No supported GPU found\n"); - return false; - } - - cl_context_properties properties[] = { -#ifdef __APPLE__ - CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, - (cl_context_properties)CGLGetShareGroup(CGLGetCurrentContext()), -#elif defined(_WIN32) - CL_GL_CONTEXT_KHR, (cl_context_properties)wglGetCurrentContext(), - CL_WGL_HDC_KHR, (cl_context_properties)wglGetCurrentDC(), - CL_CONTEXT_PLATFORM, (cl_context_properties)platform, -#elif defined(__linux__) - CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(), - CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(), - CL_CONTEXT_PLATFORM, (cl_context_properties)platform, -#endif - 0, - }; - - int error; - OctreeRenderer.context = clCreateContext(properties, 1, &OctreeRenderer.device, NULL, NULL, &error); - if (error < 0) { - LogError("Failed to create context: %i\n", error); - return false; - } - - OctreeRenderer.shader = clCreateProgramWithSource(OctreeRenderer.context, 1, &(const char *){ (const char *)Resource_Shaders_Raytrace }, &(size_t){ sizeof(Resource_Shaders_Raytrace) }, &error); - if (error < 0) { - LogError("Failed to create shader program: %i\n", error); - return false; - } - - error = clBuildProgram(OctreeRenderer.shader, 0, NULL, NULL, NULL, NULL); - if (error < 0) { - size_t logSize; - clGetProgramBuildInfo(OctreeRenderer.shader, OctreeRenderer.device, CL_PROGRAM_BUILD_LOG, 0, NULL, &logSize); - char * log = malloc(logSize); - clGetProgramBuildInfo(OctreeRenderer.shader, OctreeRenderer.device, CL_PROGRAM_BUILD_LOG, logSize, log, NULL); - LogError("Failed to compile shader program: %s\n", log); - free(log); - return false; - } - - OctreeRenderer.queue = clCreateCommandQueue(OctreeRenderer.context, OctreeRenderer.device, 0, &error); - if (error < 0) { - LogError("Failed to create command queue: %i\n", error); - return false; - } - OctreeRenderer.kernel = clCreateKernel(OctreeRenderer.shader, "trace", &error); - if (error < 0) { - LogError("Failed to create kernel: %i\n", error); - return false; - } - - OctreeRenderer.textureBuffer = clCreateFromGLTexture(OctreeRenderer.context, CL_MEM_WRITE_ONLY, GL_TEXTURE_2D, 0, OctreeRenderer.textureID, &error); - if (error < 0) { LogFatal("Failed to create texture buffer: %i %i\n", error, CL_INVALID_GL_OBJECT); } - error = clSetKernelArg(OctreeRenderer.kernel, 3, sizeof(cl_mem), &OctreeRenderer.textureBuffer); - if (error < 0) { - LogError("Failed to set kernel arguments: %i\n", error); - return false; - } - return true; -} - -void OctreeRendererSetOctree(Octree * tree) { - OctreeRenderer.octree = tree; - - int error; - OctreeRenderer.octreeBuffer = clCreateBuffer(OctreeRenderer.context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, tree->maskCount, tree->masks, &error); - if (error < 0) { - LogFatal("Failed to create octree buffer: %i\n", error); - } - OctreeRenderer.blockBuffer = clCreateBuffer(OctreeRenderer.context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, tree->level->width * tree->level->height * tree->level->depth, tree->level->blocks, &error); - if (error < 0) { - LogFatal("Failed to create block buffer: %i\n", error); - } - - error = clSetKernelArg(OctreeRenderer.kernel, 0, sizeof(unsigned int), &tree->depth); - error |= clSetKernelArg(OctreeRenderer.kernel, 1, sizeof(cl_mem), &OctreeRenderer.octreeBuffer); - error |= clSetKernelArg(OctreeRenderer.kernel, 2, sizeof(cl_mem), &OctreeRenderer.blockBuffer); - if (error < 0) { - LogFatal("Failed to set kernel arguments: %i\n", error); - } -} - -void OctreeRendererEnqueue() { - glFinish(); - Player * player = OctreeRenderer.octree->level->player; - float a = player->xRot * M_PI / 180.0, b = (180.0 - player->yRot) * M_PI / 180.0; - float x = player->x, y = player->y, z = player->z; - float matrix[16] = { - cosf(b), 0.0, -sinf(b), 0.0, - sinf(a) * sinf(b), cosf(a), sinf(a) * cosf(b), 0.0, - cosf(a) * sinf(b), -sinf(a), cosf(a) * cosf(b), 0.0, - x, y, z, 1.0 - }; - //Matrix4x4 camera = Matrix4x4Multiply(Matrix4x4FromTranslate(player->Position), Matrix4x4FromEulerAngles((float3){ 180.0 - player->Rotation.y, player->Rotation.x, 0.0 } * rad)); - int error = clSetKernelArg(OctreeRenderer.kernel, 4, sizeof(matrix), &matrix); - if (error < 0) { - LogFatal("Failed to set kernel argument: %i\n", error); - } - error = clEnqueueAcquireGLObjects(OctreeRenderer.queue, 1, &OctreeRenderer.textureBuffer, 0, NULL, NULL); - if (error < 0) { - LogFatal("Failed to aquire gl texture: %i\n"); - } - error = clEnqueueNDRangeKernel(OctreeRenderer.queue, OctreeRenderer.kernel, 2, NULL, (size_t[]){ OctreeRenderer.width, OctreeRenderer.height }, (size_t[]){ 1, 1 }, 0, NULL, NULL); - if (error < 0) { - LogFatal("Failed to enqueue octree renderer: %i\n"); - } - error = clEnqueueReleaseGLObjects(OctreeRenderer.queue, 1, &OctreeRenderer.textureBuffer, 0, NULL, NULL); - if (error < 0) { - LogFatal("Failed to release gl texture: %i\n"); - } - clFinish(OctreeRenderer.queue); -} - -void OctreeRendererDestroy() { - glFinish(); - clFinish(OctreeRenderer.queue); - clReleaseMemObject(OctreeRenderer.textureBuffer); - clReleaseMemObject(OctreeRenderer.octreeBuffer); - clReleaseMemObject(OctreeRenderer.blockBuffer); - clReleaseKernel(OctreeRenderer.kernel); - clReleaseCommandQueue(OctreeRenderer.queue); - clReleaseProgram(OctreeRenderer.shader); - clReleaseContext(OctreeRenderer.context); - clReleaseDevice(OctreeRenderer.device); - glDeleteTextures(1, &OctreeRenderer.textureID); -} - -#endif diff --git a/MinecraftC/Mods/OctreeRenderer.h b/MinecraftC/Mods/OctreeRenderer.h deleted file mode 100644 index 54c6d79..0000000 --- a/MinecraftC/Mods/OctreeRenderer.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#if MINECRAFTC_MODS - -#include "../Utilities/OpenCL.h" -#include "Octree.h" - -struct OctreeRenderer { - int width, height; - cl_device_id device; - cl_context context; - cl_program shader; - cl_kernel kernel; - cl_command_queue queue; - cl_mem octreeBuffer, blockBuffer; - cl_mem textureBuffer; - uint32_t textureID; - Octree * octree; -} extern OctreeRenderer; - -bool OctreeRendererInitialize(int width, int height); -void OctreeRendererSetOctree(Octree * tree); -void OctreeRendererEnqueue(void); -void OctreeRendererDestroy(void); - -#endif diff --git a/MinecraftC/Mods/Raytracer.c b/MinecraftC/Mods/Raytracer.c new file mode 100644 index 0000000..6e57133 --- /dev/null +++ b/MinecraftC/Mods/Raytracer.c @@ -0,0 +1,265 @@ +#if MINECRAFTC_MODS + +#include "Raytracer.h" +#include "../Utilities/OpenGL.h" +#include "../Level/Level.h" +#include "../Utilities/Log.h" +#include "../../Resources/Shaders/Raytracer.h" +#include "../../Resources/Shaders/DistanceField.h" + +struct OctreeRenderer Raytracer = { 0 }; + +bool RaytracerInitialize(TextureManager * textures, Level * level, int width, int height) { + Raytracer.width = width; + Raytracer.height = height; + Raytracer.textures = textures; + Raytracer.level = level; + glGenTextures(1, &Raytracer.textureID); + glBindTexture(GL_TEXTURE_2D, Raytracer.textureID); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); + glBindTexture(GL_TEXTURE_2D, 0); + + cl_platform_id platform; + if (clGetPlatformIDs(1, &platform, NULL) < 0) { + LogError("Couldn't find a suitable platform for OpenCL\n"); + return false; + } + if (clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &Raytracer.device, NULL) == CL_DEVICE_NOT_FOUND) { + LogError("No supported GPU found\n"); + return false; + } + + cl_context_properties properties[] = { +#ifdef __APPLE__ + CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, + (cl_context_properties)CGLGetShareGroup(CGLGetCurrentContext()), +#elif defined(_WIN32) + CL_GL_CONTEXT_KHR, (cl_context_properties)wglGetCurrentContext(), + CL_WGL_HDC_KHR, (cl_context_properties)wglGetCurrentDC(), + CL_CONTEXT_PLATFORM, (cl_context_properties)platform, +#elif defined(__linux__) + CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(), + CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(), + CL_CONTEXT_PLATFORM, (cl_context_properties)platform, +#endif + 0, + }; + + int error; + Raytracer.context = clCreateContext(properties, 1, &Raytracer.device, NULL, NULL, &error); + if (error < 0) { + LogError("Failed to create context: %i\n", error); + return false; + } + + Raytracer.raytracer = clCreateProgramWithSource(Raytracer.context, 1, &(const char *){ (const char *)Resource_Shaders_Raytracer }, &(size_t){ sizeof(Resource_Shaders_Raytracer) }, &error); + if (error < 0) { + LogError("Failed to create shader program: %i\n", error); + return false; + } + Raytracer.distanceFieldShader = clCreateProgramWithSource(Raytracer.context, 1, &(const char *){ (const char *)Resource_Shaders_DistanceField }, &(size_t){ sizeof(Resource_Shaders_DistanceField) }, &error); + if (error < 0) { + LogError("Failed to create shader program: %i\n", error); + return false; + } + + error = clBuildProgram(Raytracer.raytracer, 0, NULL, NULL, NULL, NULL); + if (error < 0) { + size_t logSize; + clGetProgramBuildInfo(Raytracer.raytracer, Raytracer.device, CL_PROGRAM_BUILD_LOG, 0, NULL, &logSize); + char * log = malloc(logSize); + clGetProgramBuildInfo(Raytracer.raytracer, Raytracer.device, CL_PROGRAM_BUILD_LOG, logSize, log, NULL); + LogError("Failed to compile shader program: %s\n", log); + free(log); + return false; + } + + error = clBuildProgram(Raytracer.distanceFieldShader, 0, NULL, NULL, NULL, NULL); + if (error < 0) { + size_t logSize; + clGetProgramBuildInfo(Raytracer.distanceFieldShader, Raytracer.device, CL_PROGRAM_BUILD_LOG, 0, NULL, &logSize); + char * log = malloc(logSize); + clGetProgramBuildInfo(Raytracer.distanceFieldShader, Raytracer.device, CL_PROGRAM_BUILD_LOG, logSize, log, NULL); + LogError("Failed to compile shader program: %s\n", log); + free(log); + return false; + } + + Raytracer.queue = clCreateCommandQueue(Raytracer.context, Raytracer.device, 0, &error); + if (error < 0) { + LogError("Failed to create command queue: %i\n", error); + return false; + } + Raytracer.traceKernel = clCreateKernel(Raytracer.raytracer, "trace", &error); + if (error < 0) { + LogError("Failed to create kernel: %i\n", error); + return false; + } + Raytracer.iteratekernel = clCreateKernel(Raytracer.distanceFieldShader, "iterate", &error); + if (error < 0) { + LogError("Failed to create kernel: %i\n", error); + return false; + } + + Raytracer.blockBuffer = clCreateBuffer(Raytracer.context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, level->width * level->height * level->depth, level->blocks, &error); + if (error < 0) { + LogFatal("Failed to create block buffer: %i\n", error); + } + + Raytracer.outputTexture = clCreateFromGLTexture(Raytracer.context, CL_MEM_WRITE_ONLY, GL_TEXTURE_2D, 0, Raytracer.textureID, &error); + if (error < 0) { + LogError("Failed to create texture buffer: %i\n", error); + return false; + } + Raytracer.terrainTexture = clCreateFromGLTexture(Raytracer.context, CL_MEM_READ_ONLY, GL_TEXTURE_2D, 0, TextureManagerLoad(textures, "Terrain.png"), &error); + if (error < 0) { + LogError("Failed to create texture buffer: %i\n", error); + return false; + } + + Raytracer.distanceFieldBuffer = clCreateBuffer(Raytracer.context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, level->width * level->height * level->depth, level->distanceField, &error); + if (error < 0) { + LogError("Failed to create buffer: %i\n", error); + return false; + } + + error |= clSetKernelArg(Raytracer.iteratekernel, 0, sizeof(cl_mem), &Raytracer.distanceFieldBuffer); + error |= clSetKernelArg(Raytracer.iteratekernel, 2, sizeof(int), &level->width); + error |= clSetKernelArg(Raytracer.traceKernel, 0, sizeof(int), &level->width); + error |= clSetKernelArg(Raytracer.traceKernel, 1, sizeof(cl_mem), &Raytracer.distanceFieldBuffer); + error |= clSetKernelArg(Raytracer.traceKernel, 2, sizeof(cl_mem), &Raytracer.blockBuffer); + error |= clSetKernelArg(Raytracer.traceKernel, 3, sizeof(cl_mem), &Raytracer.outputTexture); + error |= clSetKernelArg(Raytracer.traceKernel, 4, sizeof(int), &Raytracer.width); + error |= clSetKernelArg(Raytracer.traceKernel, 5, sizeof(int), &Raytracer.height); + error |= clSetKernelArg(Raytracer.traceKernel, 7, sizeof(cl_mem), &Raytracer.terrainTexture); + if (error < 0) { + LogError("Failed to set kernel arguments: %i\n", error); + return false; + } + return true; +} + +void RaytracerReload() { + clFinish(Raytracer.queue); + clReleaseMemObject(Raytracer.distanceFieldBuffer); + clReleaseMemObject(Raytracer.blockBuffer); + int error; + Raytracer.distanceFieldBuffer = clCreateBuffer(Raytracer.context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, Raytracer.level->width * Raytracer.level->height * Raytracer.level->depth, Raytracer.level->distanceField, &error); + if (error < 0) { + LogError("Failed to create buffer: %i\n", error); + return false; + } + Raytracer.blockBuffer = clCreateBuffer(Raytracer.context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, Raytracer.level->width * Raytracer.level->height * Raytracer.level->depth, Raytracer.level->blocks, &error); + if (error < 0) { + LogFatal("Failed to create block buffer: %i\n", error); + } + error |= clSetKernelArg(Raytracer.iteratekernel, 0, sizeof(cl_mem), &Raytracer.distanceFieldBuffer); + error |= clSetKernelArg(Raytracer.iteratekernel, 2, sizeof(int), &Raytracer.level->width); + error |= clSetKernelArg(Raytracer.traceKernel, 0, sizeof(int), &Raytracer.level->width); + error |= clSetKernelArg(Raytracer.traceKernel, 1, sizeof(cl_mem), &Raytracer.distanceFieldBuffer); + error |= clSetKernelArg(Raytracer.traceKernel, 2, sizeof(cl_mem), &Raytracer.blockBuffer); + if (error < 0) { + LogError("Failed to set kernel arguments: %i\n", error); + return false; + } +} + +void RaytracerEnqueue(float dt, float time, bool doBobbing) { + Player * player = Raytracer.level->player; + float a = (player->xRotO + (player->xRot - player->xRot) * dt) * M_PI / 180.0; + float b = (180.0 - (player->yRotO + (player->yRot - player->yRotO) * dt)) * M_PI / 180.0; + float x = player->xo + (player->x - player->xo) * dt; + float y = player->yo + (player->y - player->yo) * dt; + float z = player->zo + (player->z - player->zo) * dt; + float matrix[16] = { + cosf(b), 0.0, -sinf(b), 0.0, + sinf(a) * sinf(b), cosf(a), sinf(a) * cosf(b), 0.0, + cosf(a) * sinf(b), -sinf(a), cosf(a) * cosf(b), 0.0, + x, y, z, 1.0 + }; + if (doBobbing) { + + } + + glFinish(); + int error = clSetKernelArg(Raytracer.iteratekernel, 1, sizeof(uint8_t), &(uint8_t){ Raytracer.iteration++ }); + error |= clEnqueueNDRangeKernel(Raytracer.queue, Raytracer.iteratekernel, 3, NULL, (size_t []){ Raytracer.level->width, Raytracer.level->depth, Raytracer.level->height }, (size_t []){ 1, 1, 1}, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to enqueue octree renderer: %i\n", error); + } + if (Raytracer.iteration == 64) { + Raytracer.iteration = 0; + } + + error = clSetKernelArg(Raytracer.traceKernel, 6, sizeof(matrix), &matrix); + error |= clSetKernelArg(Raytracer.traceKernel, 8, sizeof(int), &(int){ EntityIsUnderWater(player) }); + error |= clSetKernelArg(Raytracer.traceKernel, 9, sizeof(float), &time); + if (error < 0) { + LogFatal("Failed to set kernel argument: %i\n", error); + } + error = clEnqueueAcquireGLObjects(Raytracer.queue, 2, (cl_mem[]){ Raytracer.outputTexture, Raytracer.terrainTexture }, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to aquire gl texture: %i\n", error); + } + int groupSize = 50; + int w = Raytracer.width, h = Raytracer.height; + error = clEnqueueNDRangeKernel(Raytracer.queue, Raytracer.traceKernel, 2, NULL, (size_t[]){ w + (groupSize - w % groupSize) % groupSize, h + (groupSize - w % groupSize) % groupSize }, (size_t[]){ groupSize, 1 }, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to enqueue octree renderer: %i\n", error); + } + error = clEnqueueReleaseGLObjects(Raytracer.queue, 2, (cl_mem[]){ Raytracer.outputTexture, Raytracer.terrainTexture }, 0, NULL, NULL); + if (error < 0) { + LogFatal("Failed to release gl texture: %i\n", error); + } + clFinish(Raytracer.queue); +} + +void RaytracerResize(int width, int height) { + clReleaseMemObject(Raytracer.outputTexture); + glDeleteTextures(1, &Raytracer.textureID); + Raytracer.width = width; + Raytracer.height = height; + glGenTextures(1, &Raytracer.textureID); + glBindTexture(GL_TEXTURE_2D, Raytracer.textureID); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); + glBindTexture(GL_TEXTURE_2D, 0); + int error; + Raytracer.outputTexture = clCreateFromGLTexture(Raytracer.context, CL_MEM_WRITE_ONLY, GL_TEXTURE_2D, 0, Raytracer.textureID, &error); + if (error < 0) { + LogFatal("Failed to create texture buffer: %i\n", error); + } + error = clSetKernelArg(Raytracer.traceKernel, 3, sizeof(cl_mem), &Raytracer.outputTexture); + error |= clSetKernelArg(Raytracer.traceKernel, 4, sizeof(int), &Raytracer.width); + error |= clSetKernelArg(Raytracer.traceKernel, 5, sizeof(int), &Raytracer.height); + if (error < 0) { + LogFatal("Failed to set kernel arguments: %i\n", error); + } +} + +void RaytracerDestroy() { + glFinish(); + clFinish(Raytracer.queue); + clReleaseMemObject(Raytracer.distanceFieldBuffer); + clReleaseMemObject(Raytracer.terrainTexture); + clReleaseMemObject(Raytracer.outputTexture); + clReleaseMemObject(Raytracer.blockBuffer); + clReleaseCommandQueue(Raytracer.queue); + clReleaseKernel(Raytracer.iteratekernel); + clReleaseProgram(Raytracer.distanceFieldShader); + clReleaseKernel(Raytracer.traceKernel); + clReleaseProgram(Raytracer.raytracer); + clReleaseContext(Raytracer.context); + clReleaseDevice(Raytracer.device); + glDeleteTextures(1, &Raytracer.textureID); + Raytracer = (struct OctreeRenderer){ 0 }; +} + +#endif diff --git a/MinecraftC/Mods/Raytracer.h b/MinecraftC/Mods/Raytracer.h new file mode 100644 index 0000000..e05678a --- /dev/null +++ b/MinecraftC/Mods/Raytracer.h @@ -0,0 +1,33 @@ +#pragma once +#if MINECRAFTC_MODS + +#include "../Utilities/OpenCL.h" +#include "../Render/TextureManager.h" +#include "../Level/Tile/Block.h" + +struct OctreeRenderer { + int width, height; + cl_device_id device; + cl_context context; + cl_program raytracer; + cl_kernel traceKernel; + cl_program distanceFieldShader; + cl_kernel iteratekernel; + cl_command_queue queue; + cl_mem blockBuffer; + cl_mem outputTexture; + cl_mem terrainTexture; + cl_mem distanceFieldBuffer; + uint8_t iteration; + uint32_t textureID; + TextureManager * textures; + struct Level * level; +} extern Raytracer; + +bool RaytracerInitialize(TextureManager * textures, struct Level * level, int width, int height); +void RaytracerReload(void); +void RaytracerEnqueue(float dt, float time, bool doBobbing); +void RaytracerResize(int width, int height); +void RaytracerDestroy(void); + +#endif diff --git a/Resources/Shaders/DistanceField.cl b/Resources/Shaders/DistanceField.cl new file mode 100644 index 0000000..bda7229 --- /dev/null +++ b/Resources/Shaders/DistanceField.cl @@ -0,0 +1,23 @@ + +__kernel void iterate(__global uchar * distanceField, uchar iteration, int levelSize) { + int x = get_global_id(0); + int y = get_global_id(1); + int z = get_global_id(2); + uchar d = distanceField[(y * levelSize + z) * levelSize + x]; + if (d != iteration) { + return; + } + for (int i = -1; i <= 1; i++) { + for (int j = -1; j <= 1; j++) { + for (int k = -1; k <= 1; k++) { + if (y + j < 0 || y + j >= 64 || x + i < 0 || x + i >= levelSize || z + k < 0 || z + k >= levelSize) { + continue; + } + int n = ((y + j) * levelSize + z + k) * levelSize + x + i; + if (d + 1 < distanceField[n]) { + distanceField[n] = d + 1; + } + } + } + } +} diff --git a/Resources/Shaders/DistanceField.h b/Resources/Shaders/DistanceField.h new file mode 100644 index 0000000..9f2683f --- /dev/null +++ b/Resources/Shaders/DistanceField.h @@ -0,0 +1,43 @@ +static const unsigned char Resource_Shaders_DistanceField[] = { + 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x74, 0x65, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x78, 0x20, + 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, + 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, + 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x20, 0x7a, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x5b, 0x28, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x2b, 0x20, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x20, + 0x21, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x66, 0x6f, + 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x2d, 0x31, 0x3b, 0x20, 0x69, + 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x66, 0x6f, 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x6a, 0x20, 0x3d, 0x20, 0x2d, 0x31, 0x3b, + 0x20, 0x6a, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x3b, 0x20, 0x6a, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x09, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x6b, 0x20, 0x3d, 0x20, + 0x2d, 0x31, 0x3b, 0x20, 0x6b, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x3b, 0x20, 0x6b, 0x2b, 0x2b, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x79, 0x20, 0x2b, 0x20, 0x6a, + 0x20, 0x3c, 0x20, 0x30, 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x2b, 0x20, 0x6a, 0x20, 0x3e, 0x3d, + 0x20, 0x36, 0x34, 0x20, 0x7c, 0x7c, 0x20, 0x78, 0x20, 0x2b, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x30, + 0x20, 0x7c, 0x7c, 0x20, 0x78, 0x20, 0x2b, 0x20, 0x69, 0x20, 0x3e, 0x3d, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x7a, 0x20, 0x2b, 0x20, 0x6b, 0x20, + 0x3c, 0x20, 0x30, 0x20, 0x7c, 0x7c, 0x20, 0x7a, 0x20, 0x2b, 0x20, 0x6b, 0x20, 0x3e, 0x3d, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x28, 0x28, + 0x79, 0x20, 0x2b, 0x20, 0x6a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x7a, 0x20, 0x2b, 0x20, 0x6b, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x78, 0x20, 0x2b, 0x20, 0x69, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x20, 0x2b, 0x20, 0x31, 0x20, 0x3c, + 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x6e, + 0x5d, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x6e, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x20, 0x2b, + 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x7d, 0x0a, 0x00 +}; diff --git a/Resources/Shaders/Raytracer.cl b/Resources/Shaders/Raytracer.cl index 049fbd4..983b2e2 100644 --- a/Resources/Shaders/Raytracer.cl +++ b/Resources/Shaders/Raytracer.cl @@ -8,7 +8,7 @@ float3 MatrixTransformPoint(float16 l, float3 r) { } void RayBox(float3 r, float3 o, float3 bmin, float3 bmax, float * enter, float * exit) { - float3 inv = 1.0 / r; + float3 inv = 1.0f / r; float3 t1 = (bmin - o) * inv; float3 t2 = (bmax - o) * inv; float3 tn = fmin(t1, t2); @@ -17,120 +17,49 @@ void RayBox(float3 r, float3 o, float3 bmin, float3 bmax, float * enter, float * *exit = fmin(tf.x, fmin(tf.y, tf.z)); } -bool RayBoxIntersection(float3 r, float3 o, float3 bmin, float3 bmax, float * dist) { - float n, f; - RayBox(r, o, bmin, bmax, &n, &f); - *dist = n; - return f > n && f > 0.0; -} - -float3 BoxNormal(float3 hit, float3 bmin, float3 bmax) { - return normalize(round((hit - (bmin + bmax) / 2.0) / (fabs(bmin - bmax)) * 1.0001)); -} - -bool RayTreeIntersection(__global uchar * octree, __global uchar * blocks, float3 ray, float3 origin, float size, float depth, float3 * hit, uchar * tile, float3 * normal) { - float dist; - if (!RayBoxIntersection(ray, origin, (float3){ 0.0, 0.0, 0.0 }, (float3){ 1.0, 1.0, 1.0 } * size, &dist)) { - *hit = ray * dist + origin; - //*tile = 255; - return false; - } - if (dist > depth) { - *hit = ray * dist + origin; - *tile = 254; - return false; - } - - *hit = origin + max(dist, 0.0) * ray; - float3 base = { 0.0, 0.0, 0.0 }; - float mid = size / 2.0; - int level = 0; - int offset = 0; - while (level < 8) { - uchar mask = octree[(int)((pow(8.0, float(level)) - 1.0) / 7.0) + offset]; - uint q = (hit->x > base.x + mid) + 2 * (hit->y > base.y + mid) + 4 * (hit->z > base.z + mid); - base += mid * convert_float3(((uint3){ q, q, q } >> (uint3){ 0, 1, 2 }) & 1); - - if (((mask >> q) & 1) == 0) { - float enter, exit; - RayBox(ray, *hit, base, base + mid, &enter, &exit); - //if (exit - enter < 0.05) { *tile = 253; break; } - *hit += exit * ray + sign(ray) * size * 0.000001; - - if (hit->x >= size || hit->y >= size || hit->z >= size || hit->x <= 0.0 || hit->y <= 0.0 || hit->z <= 0.0) { - return false; - } - - base = (float3){ 0.0, 0.0, 0.0 }; - mid = size / 2.0; - offset = 0; - level = 0; - continue; - } - - offset = 8 * offset + int(q); - - if (level == 7) { - *hit -= 0.000001 * sign(ray) * size; - *normal = BoxNormal(*hit, base, base + mid); - int3 v = convert_int3(base); - if (v.x >= 0 && v.y >= 0 && v.z >= 0 && v.x < 256 && v.y < 64 && v.z < 256) { - *tile = blocks[(v.y * 256 + v.z) * 256 + 256]; - return true; - } else { - *tile = 0; - return false; - } - } - - mid /= 2.0; - level++; - } - return false; +float3 BGColor(float3 ray) { + float t = 1.0f - (1.0f - ray.y) * (1.0f - ray.y); + return t * (float3){ 0.63f, 0.8f, 1.0f } + (1.0f - t) * (float3){ 1.0f, 1.0f, 1.0f }; } -float3 BGColor(float3 ray) { - return (float3){ 0.6, 0.8, 1.0 }; - //return ray; - //return (float3){ 0.0, 0.0, 0.0 }; +bool PointInBounds(float3 v, int levelSize) { + return v.x >= 0 && v.y >= 0 && v.z >= 0 && v.x < levelSize && v.y < 64 && v.z < levelSize; } -__kernel void trace(uint treeDepth, __global uchar * octree, __global uchar * blocks, __write_only image2d_t texture, float16 camera) { +__kernel void trace(int levelSize, __global uchar * distanceField, __global uchar * blocks, __write_only image2d_t texture, int width, int height, float16 camera, __read_only image2d_t terrain, int isUnderWater, float time) { int x = get_global_id(0); int y = get_global_id(1); - int width = get_global_size(0); - int height = get_global_size(1); - float2 uv = (float2){ 1.0 - 2.0 * (float)x / width, 2.0 * (float)y / height - 1.0 }; + if (x >= width || y >= height) { + return; + } + float2 uv = (float2){ 1.0f - 2.0f * (float)x / width, 2.0f * (float)y / height - 1.0f }; uv.x *= (float)width / height; - float fov = 70.0; - float3 origin = MatrixTransformPoint(camera, (float3){ 0.0, 0.0, 0.0 }); - float3 ray = normalize(MatrixTransformPoint(camera, (float3){ uv * 0.5, 0.5 / tanpi(fov / 360.0) }) - origin); - - float4 finalColor = { BGColor(ray), 1.0 }; - float depth = 1.0 / 0.0; - float3 lightPos = { 50.0, 50.0, -200.0 }; - - float3 hit, normal; - uchar tile; - if (RayTreeIntersection(octree, blocks, ray, origin, 256.0, depth, &hit, &tile, &normal) && distance(hit, origin) < depth) { - //finalColor.xyz = (float3){ 1.0, 1.0, 1.0 }; - depth = distance(hit, origin); - float3 lightDir = normalize(lightPos - hit); - float diff = max(dot(lightDir, normal), -1.0); - finalColor.xyz = (float3){ 1.0, 1.0, 1.0 } * (diff * 0.25 + 0.75); - - /*float3 shadowHit; - if (RayTreeIntersection(octree, blocks, lightDir, hit + 0.001 * lightDir, 256.0, distance(hit, lightPos), &shadowHit, &tile, &normal)) - { - finalColor.xyz *= 0.7; - }*/ - - float w = clamp(depth / 200.0, 0.0, 1.0); - finalColor.xyz = finalColor.xyz * (1.0 - w) + BGColor(ray) * w; + float fov = 70.0f; + float3 origin = MatrixTransformPoint(camera, (float3){ 0.0f, 0.0f, 0.0f }); + float3 ray = normalize(MatrixTransformPoint(camera, (float3){ uv * 0.5f, 0.5f / tanpi(fov / 360.0f) }) - origin); + float4 fragColor = { BGColor(ray), 1.0f }; + + float t = 0; + int i = 0; + while (PointInBounds(origin + ray * t, levelSize) && i < 1024) { + int3 voxel = convert_int3(origin + ray * t); + uchar dist = distanceField[(voxel.y * levelSize + voxel.z) * levelSize + voxel.x]; + if (dist == 0) { + fragColor.xyz = (float3){ 1.0, 1.0f, 1.0f} * (float)i / 64.0; + break; + } + float enter, exit; + RayBox(ray, origin, convert_float3(voxel - (dist - 1)), convert_float3(voxel + dist), &enter, &exit); + if (exit - t < 0.001) { + exit = t + 0.001; + } + t = exit + 0.0001; + + i += 1; + if (i == 1024) { + fragColor.xyz = (float3){ 1.0, 0.0, 0.0 }; + } } - if (tile == 255) { finalColor.xyz = (float3){ 1.0, 0.0, 0.0 }; } - if (tile == 254) { finalColor.xyz = (float3){ 0.0, 1.0, 0.0 }; } - if (tile == 253) { finalColor.xyz = (float3){ 0.0, 0.0, 0.0 }; } - write_imagef(texture, (int2){ x, y }, finalColor); + write_imagef(texture, (int2){ x, y }, (float4){ fragColor.xyz, 1.0f }); } diff --git a/Resources/Shaders/Raytracer.h b/Resources/Shaders/Raytracer.h index ae966c0..28d9f84 100644 --- a/Resources/Shaders/Raytracer.h +++ b/Resources/Shaders/Raytracer.h @@ -1,4 +1,4 @@ -static const unsigned char Resource_Shaders_Raytrace[] = { +static const unsigned char Resource_Shaders_Raytracer[] = { 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, @@ -19,257 +19,124 @@ static const unsigned char Resource_Shaders_Raytrace[] = { 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, - 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, + 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, + 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, - 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x74, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, - 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, - 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, - 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, - 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, - 0x6e, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, - 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, - 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, - 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x64, - 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x6e, 0x2c, - 0x20, 0x66, 0x3b, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x2c, 0x20, 0x6f, - 0x2c, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x26, 0x6e, - 0x2c, 0x20, 0x26, 0x66, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, - 0x6e, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x20, 0x3e, 0x20, 0x6e, - 0x20, 0x26, 0x26, 0x20, 0x66, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x42, 0x6f, 0x78, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x62, 0x6d, 0x61, 0x78, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x72, 0x6f, 0x75, 0x6e, 0x64, - 0x28, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2b, 0x20, - 0x62, 0x6d, 0x61, 0x78, 0x29, 0x20, 0x2f, 0x20, 0x32, 0x2e, 0x30, 0x29, 0x20, 0x2f, 0x20, 0x28, - 0x66, 0x61, 0x62, 0x73, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x62, 0x6d, 0x61, 0x78, - 0x29, 0x29, 0x20, 0x2a, 0x20, 0x31, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x29, 0x29, 0x3b, 0x0a, 0x7d, - 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x6f, 0x63, 0x74, 0x72, - 0x65, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, - 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x73, 0x69, - 0x7a, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x75, - 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x3b, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x2c, 0x20, - 0x26, 0x64, 0x69, 0x73, 0x74, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x68, 0x69, 0x74, - 0x20, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x3b, 0x0a, 0x09, 0x09, 0x2f, 0x2f, 0x2a, 0x74, 0x69, 0x6c, - 0x65, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x35, 0x3b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, - 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x29, 0x20, 0x7b, - 0x0a, 0x09, 0x09, 0x2a, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, - 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x3b, 0x0a, 0x09, - 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x34, 0x3b, 0x0a, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, - 0x0a, 0x0a, 0x09, 0x2a, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x20, 0x2b, 0x20, 0x6d, 0x61, 0x78, 0x28, 0x64, 0x69, 0x73, 0x74, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x29, 0x20, 0x2a, 0x20, 0x72, 0x61, 0x79, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x6d, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x2f, 0x20, 0x32, - 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x3d, - 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, - 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x20, 0x3c, 0x20, 0x38, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x6d, 0x61, 0x73, 0x6b, 0x20, 0x3d, 0x20, 0x6f, 0x63, 0x74, 0x72, 0x65, 0x65, 0x5b, - 0x28, 0x69, 0x6e, 0x74, 0x29, 0x28, 0x28, 0x70, 0x6f, 0x77, 0x28, 0x38, 0x2e, 0x30, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x28, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x29, 0x29, 0x20, 0x2d, 0x20, - 0x31, 0x2e, 0x30, 0x29, 0x20, 0x2f, 0x20, 0x37, 0x2e, 0x30, 0x29, 0x20, 0x2b, 0x20, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x69, 0x6e, 0x74, 0x20, 0x71, 0x20, - 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x78, 0x20, 0x3e, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x78, 0x20, 0x2b, 0x20, 0x6d, 0x69, 0x64, 0x29, 0x20, 0x2b, 0x20, 0x32, 0x20, 0x2a, 0x20, - 0x28, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x79, 0x20, 0x3e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, - 0x20, 0x2b, 0x20, 0x6d, 0x69, 0x64, 0x29, 0x20, 0x2b, 0x20, 0x34, 0x20, 0x2a, 0x20, 0x28, 0x68, - 0x69, 0x74, 0x2d, 0x3e, 0x7a, 0x20, 0x3e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x2b, - 0x20, 0x6d, 0x69, 0x64, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x3d, - 0x20, 0x6d, 0x69, 0x64, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x28, 0x28, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x29, 0x7b, 0x20, - 0x71, 0x2c, 0x20, 0x71, 0x2c, 0x20, 0x71, 0x20, 0x7d, 0x20, 0x3e, 0x3e, 0x20, 0x28, 0x75, 0x69, - 0x6e, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x32, 0x20, 0x7d, 0x29, - 0x20, 0x26, 0x20, 0x31, 0x29, 0x3b, 0x0a, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x28, - 0x6d, 0x61, 0x73, 0x6b, 0x20, 0x3e, 0x3e, 0x20, 0x71, 0x29, 0x20, 0x26, 0x20, 0x31, 0x29, 0x20, - 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, - 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x2a, 0x68, 0x69, - 0x74, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, - 0x6d, 0x69, 0x64, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, - 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2f, 0x2f, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, - 0x69, 0x74, 0x20, 0x2d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, - 0x35, 0x29, 0x20, 0x7b, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x33, - 0x3b, 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x68, - 0x69, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2a, 0x20, 0x72, 0x61, 0x79, - 0x20, 0x2b, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x73, - 0x69, 0x7a, 0x65, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x3b, 0x0a, - 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x78, 0x20, 0x3e, - 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x79, - 0x20, 0x3e, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2d, - 0x3e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, - 0x74, 0x2d, 0x3e, 0x78, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7c, 0x7c, 0x20, 0x68, - 0x69, 0x74, 0x2d, 0x3e, 0x79, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7c, 0x7c, 0x20, - 0x68, 0x69, 0x74, 0x2d, 0x3e, 0x7a, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x29, 0x20, 0x7b, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, - 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x61, 0x73, 0x65, - 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, - 0x09, 0x6d, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x2f, 0x20, 0x32, 0x2e, - 0x30, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x30, - 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, - 0x0a, 0x0a, 0x09, 0x09, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x38, 0x20, 0x2a, - 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x2b, 0x20, 0x69, 0x6e, 0x74, 0x28, 0x71, 0x29, - 0x3b, 0x0a, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x3d, - 0x3d, 0x20, 0x37, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x68, 0x69, 0x74, 0x20, 0x2d, - 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x67, - 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x42, 0x6f, 0x78, 0x4e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x28, 0x2a, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x6d, 0x69, 0x64, 0x29, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, - 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x62, 0x61, 0x73, 0x65, 0x29, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, - 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, - 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, - 0x32, 0x35, 0x36, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x20, - 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x32, 0x35, 0x36, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x32, 0x35, 0x36, 0x20, 0x2b, 0x20, - 0x76, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x32, 0x35, 0x36, 0x20, 0x2b, 0x20, 0x32, 0x35, 0x36, - 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, - 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, - 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x0a, 0x09, 0x09, 0x6d, 0x69, 0x64, - 0x20, 0x2f, 0x3d, 0x20, 0x32, 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x09, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x2b, 0x2b, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, - 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, - 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x36, 0x2c, 0x20, 0x30, 0x2e, 0x38, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x2f, 0x2f, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x72, 0x61, 0x79, 0x3b, 0x0a, 0x09, 0x2f, 0x2f, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, - 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, - 0x61, 0x63, 0x65, 0x28, 0x75, 0x69, 0x6e, 0x74, 0x20, 0x74, 0x72, 0x65, 0x65, 0x44, 0x65, 0x70, - 0x74, 0x68, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, - 0x61, 0x72, 0x20, 0x2a, 0x20, 0x6f, 0x63, 0x74, 0x72, 0x65, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, - 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, - 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x78, 0x20, 0x3d, - 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x30, - 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, - 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, 0x0a, 0x09, 0x69, - 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x28, 0x30, 0x29, 0x3b, 0x0a, 0x09, - 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, - 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x28, 0x31, 0x29, 0x3b, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x32, 0x2e, - 0x30, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, - 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, - 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, - 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, - 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, - 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, - 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, - 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x2c, 0x20, 0x30, 0x2e, - 0x35, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, - 0x33, 0x36, 0x30, 0x2e, 0x30, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x69, - 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x42, 0x47, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, - 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x20, 0x3d, - 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2f, 0x20, 0x30, 0x2e, 0x30, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x20, 0x3d, 0x20, 0x7b, - 0x20, 0x35, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x35, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x2d, 0x32, 0x30, - 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x68, 0x69, 0x74, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, 0x75, 0x63, - 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, - 0x61, 0x79, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x6f, 0x63, 0x74, 0x72, 0x65, 0x65, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, - 0x32, 0x35, 0x36, 0x2e, 0x30, 0x2c, 0x20, 0x64, 0x65, 0x70, 0x74, 0x68, 0x2c, 0x20, 0x26, 0x68, - 0x69, 0x74, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, - 0x61, 0x6c, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, - 0x68, 0x69, 0x74, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x20, 0x3c, 0x20, 0x64, - 0x65, 0x70, 0x74, 0x68, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2f, 0x2f, 0x66, 0x69, 0x6e, 0x61, - 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x20, - 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, - 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x20, - 0x2d, 0x20, 0x68, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x64, 0x69, 0x66, 0x66, 0x20, 0x3d, 0x20, 0x6d, 0x61, 0x78, 0x28, 0x64, 0x6f, 0x74, 0x28, 0x6c, - 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, - 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, - 0x31, 0x2e, 0x30, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x64, 0x69, 0x66, 0x66, 0x20, 0x2a, 0x20, - 0x30, 0x2e, 0x32, 0x35, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x37, 0x35, 0x29, 0x3b, 0x0a, 0x0a, 0x09, - 0x09, 0x2f, 0x2a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, - 0x48, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x54, 0x72, - 0x65, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, - 0x63, 0x74, 0x72, 0x65, 0x65, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x6c, - 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x30, - 0x2e, 0x30, 0x30, 0x31, 0x20, 0x2a, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, - 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x2c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x29, 0x2c, - 0x20, 0x26, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x48, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x74, 0x69, - 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x0a, 0x09, 0x09, - 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x37, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x2a, - 0x2f, 0x0a, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x63, - 0x6c, 0x61, 0x6d, 0x70, 0x28, 0x64, 0x65, 0x70, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x32, 0x30, 0x30, - 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x29, 0x3b, 0x0a, 0x09, - 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, - 0x3d, 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, - 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x77, 0x29, 0x20, 0x2b, 0x20, 0x42, - 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x77, 0x3b, - 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, - 0x20, 0x32, 0x35, 0x35, 0x29, 0x20, 0x7b, 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x20, 0x7d, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, - 0x3d, 0x3d, 0x20, 0x32, 0x35, 0x34, 0x29, 0x20, 0x7b, 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x32, 0x35, 0x33, 0x29, 0x20, 0x7b, 0x20, 0x66, 0x69, 0x6e, 0x61, - 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, - 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, - 0x20, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x00 + 0x33, 0x20, 0x74, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, + 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, + 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, + 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, + 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, + 0x74, 0x6e, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, + 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, + 0x28, 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x7d, + 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, + 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, + 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, + 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, + 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, + 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, + 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, + 0x34, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, + 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, 0x74, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, + 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, 0x74, + 0x75, 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, + 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, + 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x69, + 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, + 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, + 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, + 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, + 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, + 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x32, 0x2e, + 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, + 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, + 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, + 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, + 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, + 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, + 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, + 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, + 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, + 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, + 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x2c, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, + 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, + 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, + 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, + 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, + 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x7d, 0x20, 0x2a, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x69, 0x20, 0x2f, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, + 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, + 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, + 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, + 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, + 0x30, 0x31, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, + 0x74, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x09, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x30, 0x30, + 0x30, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, + 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x30, 0x32, 0x34, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, + 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, + 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, + 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, + 0x3b, 0x0a, 0x7d, 0x0a, 0x00 }; diff --git a/Scripts/EmbedResources.py b/Scripts/EmbedResources.py index 8c9866e..a6da352 100644 --- a/Scripts/EmbedResources.py +++ b/Scripts/EmbedResources.py @@ -30,7 +30,7 @@ def embed_png(filePath, outPath): def embed_file(filePath, outPath): input, output = open(filePath, 'rb'), open(outPath, 'w') - cName = filePath[len(RESOURCE_PATH) + 1:-4].replace('/', '_') + cName = filePath[len(RESOURCE_PATH) + 1:filePath.rfind('.')].replace('/', '_') output.write(f'static const unsigned char Resource_{cName}[] = {{') for i, byte in enumerate(input.read()): if i % 16 == 0: output.write('\n\t') From 5be39dbc3e746f0f841af70f90a8c598fa852b57 Mon Sep 17 00:00:00 2001 From: John Payne Date: Sat, 30 Jul 2022 16:53:00 -0500 Subject: [PATCH 06/13] implement raytracer --- Resources/Shaders/Raytracer.cl | 514 +++++++++++- Resources/Shaders/Raytracer.h | 1411 +++++++++++++++++++++++++++++--- 2 files changed, 1772 insertions(+), 153 deletions(-) diff --git a/Resources/Shaders/Raytracer.cl b/Resources/Shaders/Raytracer.cl index 983b2e2..44bd88c 100644 --- a/Resources/Shaders/Raytracer.cl +++ b/Resources/Shaders/Raytracer.cl @@ -1,3 +1,172 @@ +#define EPSILON 0.0001f +#define MIN_RAY_STEP 0.001f + +#define BlockTypeNone 0 +#define BlockTypeStone 1 +#define BlockTypeGrass 2 +#define BlockTypeDirt 3 +#define BlockTypeCobbleStone 4 +#define BlockTypeWood 5 +#define BlockTypeSapling 6 +#define BlockTypeBedrock 7 +#define BlockTypeWater 8 +#define BlockTypeStillWater 9 +#define BlockTypeLava 10 +#define BlockTypeStillLava 11 +#define BlockTypeSand 12 +#define BlockTypeGravel 13 +#define BlockTypeGoldOre 14 +#define BlockTypeIronOre 15 +#define BlockTypeCoalOre 16 +#define BlockTypeLog 17 +#define BlockTypeLeaves 18 +#define BlockTypeSponge 19 +#define BlockTypeGlass 20 +#define BlockTypeRedWool 21 +#define BlockTypeOrangeWool 22 +#define BlockTypeYellowWool 23 +#define BlockTypeLimeWool 24 +#define BlockTypeGreenWool 25 +#define BlockTypeAquaGreenWool 26 +#define BlockTypeCyanWool 27 +#define BlockTypeBlueWool 28 +#define BlockTypePurpleWool 29 +#define BlockTypeIndigoWool 30 +#define BlockTypeVioletWool 31 +#define BlockTypeMagentaWool 32 +#define BlockTypePinkWool 33 +#define BlockTypeBlackWool 34 +#define BlockTypeGrayWool 35 +#define BlockTypeWhiteWool 36 +#define BlockTypeDandelion 37 +#define BlockTypeRose 38 +#define BlockTypeBrownMushroom 39 +#define BlockTypeRedMushroom 40 +#define BlockTypeGold 41 +#define BlockTypeIron 42 +#define BlockTypeDoubleSlab 43 +#define BlockTypeSlab 44 +#define BlockTypeBrick 45 +#define BlockTypeTNT 46 +#define BlockTypeBookshelf 47 +#define BlockTypeMossyCobbleStone 48 +#define BlockTypeObsidian 49 +#define BlockTypeCount 50 + +constant int TextureIDTable[256] = { + [BlockTypeStone] = 1, + [BlockTypeGrass] = 0, + [BlockTypeDirt] = 2, + [BlockTypeCobbleStone] = 16, + [BlockTypeWood] = 4, + [BlockTypeSapling] = 15, + [BlockTypeBedrock] = 17, + [BlockTypeWater] = 14, + [BlockTypeStillWater] = 14, + [BlockTypeLava] = 30, + [BlockTypeStillLava] = 30, + [BlockTypeSand] = 18, + [BlockTypeGravel] = 19, + [BlockTypeGoldOre] = 32, + [BlockTypeIronOre] = 33, + [BlockTypeCoalOre] = 34, + [BlockTypeLog] = 20, + [BlockTypeLeaves] = 22, + [BlockTypeSponge] = 48, + [BlockTypeGlass] = 49, + [BlockTypeRedWool] = 64, + [BlockTypeOrangeWool] = 65, + [BlockTypeYellowWool] = 66, + [BlockTypeLimeWool] = 67, + [BlockTypeGreenWool] = 68, + [BlockTypeAquaGreenWool] = 69, + [BlockTypeCyanWool] = 70, + [BlockTypeBlueWool] = 71, + [BlockTypePurpleWool] = 72, + [BlockTypeIndigoWool] = 73, + [BlockTypeVioletWool] = 74, + [BlockTypeMagentaWool] = 75, + [BlockTypePinkWool] = 76, + [BlockTypeBlackWool] = 77, + [BlockTypeGrayWool] = 78, + [BlockTypeWhiteWool] = 79, + [BlockTypeDandelion] = 13, + [BlockTypeRose] = 12, + [BlockTypeBrownMushroom] = 29, + [BlockTypeRedMushroom] = 28, + [BlockTypeGold] = 24, + [BlockTypeIron] = 23, + [BlockTypeDoubleSlab] = 5, + [BlockTypeSlab] = 6, + [BlockTypeBrick] = 7, + [BlockTypeTNT] = 8, + [BlockTypeBookshelf] = 35, + [BlockTypeMossyCobbleStone] = 36, + [BlockTypeObsidian] = 37, +}; + +constant float TileSideBrightness[6] = { 0.5f, 1.0f, 0.8f, 0.8f, 0.6f, 0.6f }; + +constant float3 TileSideNormal[6] = { + { 0.0f, -1.0f, 0.0f }, + { 0.0f, 1.0f, 0.0f }, + { 0.0f, 0.0f, -1.0f }, + { 0.0f, 0.0f, 1.0f, }, + { -1.0f, 0.0f, 0.0f }, + { 1.0f, 0.0f, 0.0f } +}; + +const sampler_t TerrainSampler = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_REPEAT | CLK_FILTER_NEAREST; + +int GetTextureID(uchar tile, int side) { + if (tile == BlockTypeGrass) { return side == 1 ? 0 : (side == 0 ? 2 : 3); } + if (tile == BlockTypeLog) { return side == 1 ? 21 : (side == 0 ? 21 : 20); } + if (tile == BlockTypeSlab || tile == BlockTypeDoubleSlab) { return side <= 1 ? 6 : 5; } + if (tile == BlockTypeBookshelf) { return side <= 1 ? 4 : 35; } + if (tile == BlockTypeGold || tile == BlockTypeIron) { return side == 1 ? TextureIDTable[tile] - 16 : (side == 0 ? TextureIDTable[tile] + 16 : TextureIDTable[tile]); } + if (tile == BlockTypeTNT) { return side == 0 ? 10 : (side == 1 ? 9 : 8); } + return TextureIDTable[tile]; +} + +bool HasCrossPlaneCollision(uchar tile) { + return tile == BlockTypeSapling || tile == BlockTypeDandelion || tile == BlockTypeRose || tile == BlockTypeRedMushroom || tile == BlockTypeBrownMushroom; +} + +bool ShouldDiscardTransparency(uchar tile) { + return tile == BlockTypeLeaves || HasCrossPlaneCollision(tile); +} + +float GetTileReflectiveness(uchar tile, float4 color) { + if (tile == BlockTypeGlass && color.w == 0.0f) { return 0.1f; } + if (tile == BlockTypeWater || tile == BlockTypeStillWater) { return 0.1f; } + return 0.0f; +} + +void GetTileUV(int3 voxel, float3 dimensions, float3 hit, int * side, float2 * uv) { + float3 n = hit - convert_float3(voxel); + if (fabs(n.x) < EPSILON) { + *uv = (float2){ n.z, 1.0f - n.y }; + *side = 5; + } else if (fabs(n.x - dimensions.x) < EPSILON) { + *uv = (float2){ 1.0f - n.z, 1.0 - n.y }; + *side = 4; + } else if (fabs(n.y) < EPSILON) { + *uv = n.xz; + *side = 0; + } else if (fabs(n.y - dimensions.y) < EPSILON) { + *uv = n.xz; + *side = 1; + } else if (fabs(n.z) < EPSILON) { + *uv = (float2){ 1.0f - n.x, 1.0f - n.y }; + *side = 3; + } else if (fabs(n.z - dimensions.z) < EPSILON) { + *uv = (float2){ n.x, 1.0f - n.y }; + *side = 2; + } else { + *uv = (float2){ 0.0f, 0.0f }; + *side = 0; + } +} float3 MatrixTransformPoint(float16 l, float3 r) { return (float3) { @@ -7,6 +176,15 @@ float3 MatrixTransformPoint(float16 l, float3 r) { }; } +bool RayPlaneIntersection(float3 ray, float3 origin, float3 normal, float3 center, float * dist) { + float d = dot(normal, ray); + if (fabs(d) > EPSILON) { + *dist = dot(center - origin, normal) / d; + return *dist >= 0.0f; + } + return false; +} + void RayBox(float3 r, float3 o, float3 bmin, float3 bmax, float * enter, float * exit) { float3 inv = 1.0f / r; float3 t1 = (bmin - o) * inv; @@ -17,13 +195,274 @@ void RayBox(float3 r, float3 o, float3 bmin, float3 bmax, float * enter, float * *exit = fmin(tf.x, fmin(tf.y, tf.z)); } +bool PointInBounds(float3 v, int levelSize) { + return v.x >= 0.0f && v.y >= 0.0f && v.z >= 0.0f && v.x < (float)levelSize && v.y < 64.0f && v.z < (float)levelSize; +} + +float4 WaterColor(float3 hit, __read_only image2d_t terrain) { + float2 uv = (hit - floor(hit)).xz / 16.0f + (float2){ 224.0f / 256.0f, 0.0f }; + return read_imagef(terrain, TerrainSampler, uv); +} + +float4 BedrockColor(float3 hit, __read_only image2d_t terrain) { + float2 uv = (hit - floor(hit)).xz / 16.0f + (float2){ 16.0f / 256.0f, 16.0f / 256.0f }; + return read_imagef(terrain, TerrainSampler, uv); +} + float3 BGColor(float3 ray) { - float t = 1.0f - (1.0f - ray.y) * (1.0f - ray.y); + float t = 1.0f - (1.0f - ray.y) * (1.0f - ray.y) * (1.0f - ray.y) * (1.0f - ray.y); return t * (float3){ 0.63f, 0.8f, 1.0f } + (1.0f - t) * (float3){ 1.0f, 1.0f, 1.0f }; } -bool PointInBounds(float3 v, int levelSize) { - return v.x >= 0 && v.y >= 0 && v.z >= 0 && v.x < levelSize && v.y < 64 && v.z < levelSize; +bool RayBlockIntersection(__global uchar * blocks, __read_only image2d_t terrain, float3 ray, float3 origin, int3 voxel, int levelSize, bool inWater, uchar * tile, float * enter, float * exit, float4 * color, float3 * normal) { + RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel + 1), enter, exit); + float3 dimensions = { 1.0f, 1.0f, 1.0f }; + *tile = blocks[(voxel.y * levelSize + voxel.z) * levelSize + voxel.x]; + if (*tile == BlockTypeWater || *tile == BlockTypeStillWater) { + uchar above = blocks[((voxel.y + 1) * levelSize + voxel.z) * levelSize + voxel.x]; + if (above != BlockTypeWater && above != BlockTypeStillWater) { + dimensions.y -= 0.1f; + float waterExit; + if (inWater) { + RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, &waterExit, enter); + float2 uv; + int side; + GetTileUV(voxel, dimensions, origin + ray * *enter, &side, &uv); + if (side != 1) { + return false; + } + if (*enter < waterExit || *enter < 0.0f) { + return false; + } + } else { + RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, enter, &waterExit); + if (waterExit < *enter || waterExit < 0.0f) { + return false; + } + } + } else if (inWater) { + return false; + } + } else if (*tile == BlockTypeLava || *tile == BlockTypeStillLava) { + uchar above = blocks[((voxel.y + 1) * levelSize + voxel.z) * levelSize + voxel.x]; + if (above != BlockTypeLava && above != BlockTypeStillLava) { + dimensions.y -= 0.1f; + float lavaExit; + RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, enter, &lavaExit); + if (lavaExit < *enter || lavaExit < 0.0f) { + return false; + } + } + } + else if (*tile == BlockTypeSlab) { + dimensions.y -= 0.5f; + float slabExit; + RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, enter, &slabExit); + if (slabExit < *enter || slabExit < 0.0f) { + return false; + } + } else if (*tile == BlockTypeGlass) { + int3 prevVoxel = convert_int3(origin + ray * *enter - sign(ray) * EPSILON); + uchar prevTile = blocks[(prevVoxel.y * levelSize + prevVoxel.z) * levelSize + prevVoxel.x]; + if (prevTile == BlockTypeGlass) { + return false; + } + } else if (HasCrossPlaneCollision(*tile)) { + float3 base = convert_float3(voxel); + float dist[2]; + bool intersect[2]; + intersect[0] = RayPlaneIntersection(ray, origin, normalize((float3){ 1.0f, 0.0f, 1.0f }), base + 0.5f, &dist[0]) && dist[0] > *enter && dist[0] < *exit && distance((origin + ray * dist[0]).xz, base.xz + 0.5f) < 0.5f; + intersect[1] = RayPlaneIntersection(ray, origin, normalize((float3){ 1.0f, 0.0f, -1.0f }), base + 0.5f, &dist[1]) && dist[1] > *enter && dist[1] < *exit && distance((origin + ray * dist[1]).xz, base.xz + 0.5f) < 0.5f; + + bool swap = false; + if (intersect[0] && intersect[1] && dist[1] < dist[0]) { + float d = dist[0]; + dist[0] = dist[1]; + dist[1] = d; + swap = true; + } + for (int i = 0; i < 2; i++) { + if (intersect[i]) { + float3 hit = origin + ray * dist[i]; + if ((!swap && i == 0) || (swap && i == 1)) { + *normal = normalize((float3){ 1.0f, 0.0f, 1.0f } * (1.0f - hit.z + base.z > hit.x - base.x ? -1.0f : 1.0f)); + } else { + *normal = normalize((float3){ 1.0f, 0.0f, -1.0f } * (hit.z + base.z > hit.x - base.x ? -1.0f : 1.0f)); + } + *enter = dist[i] - EPSILON * 10.0f; + float2 uv; + if ((!swap && i == 0) || (swap && i == 1)) { + uv = (float2){ distance(base.xz + (float2){ 0.1464466f, 1.0f - 0.1464466f }, hit.xz), 1.0f - (hit.y - base.y) }; + } else { + uv = (float2){ 1.0f - distance(base.xz + (float2){ 0.1464466f, 0.1464466f }, hit.xz), 1.0f - (hit.y - base.y) }; + } + int id = GetTextureID(*tile, 0); + uv = uv / 16.0f + (float2){ (float)((id % 16) << 4), (float)((id / 16) << 4) } / 256.0f; + *color = read_imagef(terrain, TerrainSampler, uv); + if (color->w != 0.0f) { + return true; + } + } + } + return false; + } + float2 uv; + int side; + GetTileUV(voxel, dimensions, origin + ray * *enter, &side, &uv); + int id = GetTextureID(*tile, side); + uv = uv / 16.0f + (float2){ (float)((id % 16) << 4), (float)((id / 16) << 4) } / 256.0f; + *color = read_imagef(terrain, TerrainSampler, uv); + if (color->w == 0.0f && ShouldDiscardTransparency(*tile)) { + return false; + } + color->xyz *= TileSideBrightness[side]; + *normal = TileSideNormal[side]; + return true; +} + +bool RayWorldIntersection(__global uchar * distanceField, __global uchar * blocks, __read_only image2d_t terrain, float3 ray, float3 origin, int levelSize, bool inWater, uchar * tile, float * enter, float * exit, float4 * color, float3 * normal) { + float t = 0; + int i = 0; + while (PointInBounds(origin + ray * t, levelSize) && i < 1024) { + int3 voxel = convert_int3(origin + ray * t); + uchar dist = distanceField[(voxel.y * levelSize + voxel.z) * levelSize + voxel.x]; + if (dist > 0) { + RayBox(ray, origin, convert_float3(voxel - (dist - 1)), convert_float3(voxel + dist), enter, exit); + } else if (RayBlockIntersection(blocks, terrain, ray, origin, voxel, levelSize, inWater, tile, enter, exit, color, normal)) { + return true; + } + + if (*exit - t < MIN_RAY_STEP) { + *exit = t + MIN_RAY_STEP; + } + t = *exit + EPSILON; + + i += 1; + if (i == 1024) { + *color = (float4){ 1.0f, 0.0f, 0.0f, 1.0f }; + } + } + RayBox(origin, ray, (float3){ 0.0f, 0.0f, 0.0f }, (float3){ levelSize, 64.0f, levelSize }, enter, exit); + return false; +} + +bool RaySceneIntersection(__global uchar * distanceField, __global uchar * blocks, __read_only image2d_t terrain, float3 ray, float3 origin, int levelSize, bool inWater, uchar * tile, float * enter, float * exit, float4 * color, float3 * normal) { + if (!RayWorldIntersection(distanceField, blocks, terrain, ray, origin, levelSize, inWater, tile, enter, exit, color, normal)) { + if (RayPlaneIntersection(ray, origin, (float3){ 0.0f, 1.0f, 0.0f }, (float3){ 0.0f, 32.0f - 0.1f, 0.0f }, enter)) { + float3 hit = origin + ray * *enter; + if (hit.x > levelSize - 1.0f || hit.z > levelSize - 1.0f || hit.x < 1.0f || hit.z < 1.0f) { + *exit = *enter + 1.0f; + *tile = BlockTypeWater; + *color = WaterColor(hit, terrain); + *normal = (float3){ 0.0f, 1.0f, 0.0f }; + return true; + } + } + if (RayPlaneIntersection(ray, origin, (float3){ 0.0f, 1.0f, 0.0f }, (float3){ 0.0f, 0.0f, 0.0f }, enter)) { + *exit = *enter + 1.0f; + *tile = BlockTypeBedrock; + *color = BedrockColor(origin + ray * *enter, terrain); + *normal = (float3){ 0.0f, 1.0f, 0.0f }; + return true; + } + return false; + } else { + return true; + } +} + +float3 TraceShadows(__global uchar * distanceField, __global uchar * blocks, __read_only image2d_t terrain, float3 ray, float3 origin, int levelSize, bool inWater, float3 color) { + float4 shadowColor = { 0.0f, 0.0f, 0.0f, 1.0f }; + uchar tile; + float enter, exit; + float waterDist = 0.0f; + float4 hitColor = { 0.0f, 0.0f, 0.0f, 0.0f }; + float3 normal; + int i = 0; + while (hitColor.w < 1.0f && i < 64) { + if (RaySceneIntersection(distanceField, blocks, terrain, ray, origin, levelSize, inWater, &tile, &enter, &exit, &hitColor, &normal)) { + if (inWater && !(tile == BlockTypeWater || tile == BlockTypeStillWater)) { + waterDist += enter; + shadowColor.w *= (1.0f - min(waterDist / 16.0f, 1.0f)); + } + shadowColor.xyz += hitColor.xyz * hitColor.w * shadowColor.w; + shadowColor.w *= 1.0f - hitColor.w; + + if (tile == BlockTypeWater || tile == BlockTypeStillWater) { + if (inWater) { + waterDist += enter; + } else { + exit = enter; + } + inWater = !inWater; + } + if (exit < MIN_RAY_STEP) { + exit = MIN_RAY_STEP; + } + origin += ray * (exit + EPSILON); + } else { + break; + } + + i += 1; + if (i == 64) { + shadowColor.xyz = (float3){ 1.0f, 0.0f, 0.0f }; + } + } + return color * shadowColor.w + (shadowColor.xyz * shadowColor.w + 0.525f * color * (1.0f - shadowColor.w)) * (1.0f - shadowColor.w); +} + +float4 TraceFog(float3 ray, float dist) { + //float w = 1.0f - exp(-dist / 512.0f ); + float w = clamp(dist / 512.0f, 0.0f, 1.0f); + float4 fog = (float4){ 1.0f, 1.0f, 1.0f, w }; + return fog; +} + +float3 TraceReflections(__global uchar * distanceField, __global uchar * blocks, __read_only image2d_t terrain, float3 ray, float3 origin, int levelSize, bool inWater, float3 lightDir, float3 color) { + float4 reflectionColor = { 0.0f, 0.0f, 0.0f, 1.0f }; + uchar tile; + float enter, exit; + float waterDist = 0.0f; + float4 hitColor = { 0.0f, 0.0f, 0.0f, 0.0f }; + float3 normal; + int i = 0; + while (hitColor.w < 1.0f && i < 64) { + if (RaySceneIntersection(distanceField, blocks, terrain, ray, origin, levelSize, inWater, &tile, &enter, &exit, &hitColor, &normal)) { + if (inWater && !(tile == BlockTypeWater || tile == BlockTypeStillWater)) { + waterDist += enter; + reflectionColor.w *= (1.0f - min(waterDist / 16.0f, 1.0f)); + } + hitColor.xyz = TraceShadows(distanceField, blocks, terrain, lightDir, origin + ray * enter + lightDir * EPSILON, levelSize, inWater, hitColor.xyz); + float4 fog = TraceFog(ray, enter); + reflectionColor.xyz += fog.xyz * fog.w * reflectionColor.w; + reflectionColor.w *= 1.0f - fog.w; + reflectionColor.xyz += hitColor.xyz * hitColor.w * reflectionColor.w; + reflectionColor.w *= 1.0f - hitColor.w; + + if (tile == BlockTypeWater || tile == BlockTypeStillWater) { + if (inWater) { + waterDist += enter; + } else { + exit = enter; + } + inWater = !inWater; + } + if (exit < MIN_RAY_STEP) { + exit = MIN_RAY_STEP; + } + origin += ray * (exit + EPSILON); + } else { + reflectionColor.xyz += BGColor(ray) * reflectionColor.w; + break; + } + + i += 1; + if (i == 64) { + reflectionColor.xyz = (float3){ 1.0f, 0.0f, 0.0f }; + } + } + return reflectionColor.xyz; } __kernel void trace(int levelSize, __global uchar * distanceField, __global uchar * blocks, __write_only image2d_t texture, int width, int height, float16 camera, __read_only image2d_t terrain, int isUnderWater, float time) { @@ -34,31 +473,70 @@ __kernel void trace(int levelSize, __global uchar * distanceField, __global ucha } float2 uv = (float2){ 1.0f - 2.0f * (float)x / width, 2.0f * (float)y / height - 1.0f }; uv.x *= (float)width / height; + if (isUnderWater) { + uv.y += sin(uv.x * (10.0 + sin(time)) + time) / (135.0f + 10.0f * sin(time)); + }; float fov = 70.0f; float3 origin = MatrixTransformPoint(camera, (float3){ 0.0f, 0.0f, 0.0f }); float3 ray = normalize(MatrixTransformPoint(camera, (float3){ uv * 0.5f, 0.5f / tanpi(fov / 360.0f) }) - origin); - float4 fragColor = { BGColor(ray), 1.0f }; + float3 lightDir = normalize((float3){ cos(14.0f / 16.0f * 2.0f * 3.141592653589f), 1.0f, sin(14.0f / 16.0f * 2.0f * 3.141592653589f) }); + bool inWater = isUnderWater; + float4 fragColor = { 0.0f, 0.0f, 0.0f, 1.0f }; - float t = 0; + if (isUnderWater) { + float4 water = read_imagef(terrain, TerrainSampler, (float2){ x / (float)width, y / (float)height } / 16.0f + (float2){ 224.0f / 256.0f, 0.0f }); + water.w *= 0.375f; + fragColor.xyz += water.xyz * water.w * fragColor.w;; + fragColor.w *= 1.0f - water.w; + } + + uchar tile; + float enter, exit; + float waterDist = 0.0f; + float4 color = { 0.0f, 0.0f, 0.0f, 0.0f }; + float3 normal; int i = 0; - while (PointInBounds(origin + ray * t, levelSize) && i < 1024) { - int3 voxel = convert_int3(origin + ray * t); - uchar dist = distanceField[(voxel.y * levelSize + voxel.z) * levelSize + voxel.x]; - if (dist == 0) { - fragColor.xyz = (float3){ 1.0, 1.0f, 1.0f} * (float)i / 64.0; + while (color.w < 1.0f && i < 64) { + if (RaySceneIntersection(distanceField, blocks, terrain, ray, origin, levelSize, inWater, &tile, &enter, &exit, &color, &normal)) { + if (inWater && !(tile == BlockTypeWater || tile == BlockTypeStillWater)) { + waterDist += enter; + fragColor.w *= (1.0f - min(waterDist / 16.0f, 1.0f)); + } + color.xyz = TraceShadows(distanceField, blocks, terrain, lightDir, origin + ray * enter + lightDir * EPSILON, levelSize, inWater, color.xyz); + float4 fog = TraceFog(ray, enter); + fragColor.xyz += fog.xyz * fog.w * fragColor.w; + fragColor.w *= 1.0f - fog.w; + float reflectiveness = GetTileReflectiveness(tile, color); + if (reflectiveness > 0.0f && !(inWater && (tile == BlockTypeWater || tile == BlockTypeStillWater))) { + float3 reflectionDir = normalize(ray - 2.0f * dot(ray, normal) * normal); + float3 rColor = TraceReflections(distanceField, blocks, terrain, reflectionDir, origin + ray * enter + reflectionDir * EPSILON, levelSize, inWater, lightDir, color.xyz); + fragColor.xyz += rColor * reflectiveness * fragColor.w; + fragColor.w *= 1.0f - reflectiveness; + } + fragColor.xyz += color.xyz * color.w * fragColor.w; + fragColor.w *= 1.0f - color.w; + + if (tile == BlockTypeWater || tile == BlockTypeStillWater) { + if (inWater) { + waterDist += enter; + } else { + exit = enter; + } + inWater = !inWater; + } + if (exit < MIN_RAY_STEP) { + exit = MIN_RAY_STEP; + } + origin += ray * (exit + EPSILON); + } else { + fragColor.xyz += BGColor(ray) * fragColor.w; break; } - float enter, exit; - RayBox(ray, origin, convert_float3(voxel - (dist - 1)), convert_float3(voxel + dist), &enter, &exit); - if (exit - t < 0.001) { - exit = t + 0.001; - } - t = exit + 0.0001; i += 1; - if (i == 1024) { - fragColor.xyz = (float3){ 1.0, 0.0, 0.0 }; + if (i == 64) { + fragColor.xyz = (float3){ 1.0f, 0.0f, 0.0f }; } } write_imagef(texture, (int2){ x, y }, (float4){ fragColor.xyz, 1.0f }); diff --git a/Resources/Shaders/Raytracer.h b/Resources/Shaders/Raytracer.h index 28d9f84..e01cf75 100644 --- a/Resources/Shaders/Raytracer.h +++ b/Resources/Shaders/Raytracer.h @@ -1,142 +1,1283 @@ static const unsigned char Resource_Shaders_Raytracer[] = { - 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, - 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, - 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, - 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, - 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, - 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, - 0x2e, 0x73, 0x44, 0x2c, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, - 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, - 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, - 0x73, 0x45, 0x2c, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, - 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, - 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, - 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, - 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, - 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x74, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, - 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, - 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, - 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, - 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, - 0x74, 0x6e, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, - 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, - 0x28, 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x7d, - 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, - 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, - 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, - 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, - 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, - 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, - 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, - 0x34, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, - 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, 0x74, - 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, - 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, - 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, - 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, 0x74, - 0x75, 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, - 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, - 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, - 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x69, - 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, - 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, - 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, - 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, - 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x29, - 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x32, 0x2e, - 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, - 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, - 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, - 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x66, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, + 0x50, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x66, 0x0a, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x6e, 0x65, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x0a, 0x23, + 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, 0x74, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, + 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x36, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, + 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, + 0x61, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, + 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x32, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x72, 0x61, 0x76, 0x65, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x31, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, + 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x35, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x31, 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, + 0x76, 0x65, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, + 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x30, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x32, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, + 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x33, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x32, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, + 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, + 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, + 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x38, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, + 0x75, 0x72, 0x70, 0x6c, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x32, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, + 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x31, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x33, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x61, + 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, + 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, + 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x36, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, + 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x33, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, + 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x39, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x34, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, + 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, + 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x34, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, + 0x72, 0x69, 0x63, 0x6b, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x34, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, + 0x68, 0x65, 0x6c, 0x66, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x37, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, + 0x65, 0x20, 0x20, 0x34, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, + 0x30, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x74, 0x20, + 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x32, + 0x35, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x2c, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x30, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, + 0x74, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x5d, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, + 0x6c, 0x69, 0x6e, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x31, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x37, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x31, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, + 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x61, 0x6e, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x39, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, + 0x64, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x33, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x33, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x33, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, + 0x6f, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x32, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, + 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x34, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x39, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x34, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x36, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x36, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, + 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x36, 0x37, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, + 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x39, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, + 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x37, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x31, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, 0x65, 0x57, 0x6f, 0x6f, + 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x32, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, + 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x37, 0x33, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x34, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, + 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x37, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, + 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x37, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, + 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x37, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x39, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x33, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, + 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x31, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x39, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, + 0x72, 0x6f, 0x6f, 0x6d, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x32, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x6f, 0x6c, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x33, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, + 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x2c, 0x0a, 0x09, + 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, + 0x20, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, + 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, + 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x36, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, + 0x69, 0x61, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x33, 0x37, 0x2c, 0x0a, 0x7d, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x74, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, + 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x36, 0x5d, 0x20, 0x3d, + 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x36, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x74, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, + 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0a, + 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, + 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x7d, 0x2c, 0x0a, 0x09, + 0x7b, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x0a, 0x7d, 0x3b, 0x0a, + 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x5f, 0x74, + 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x20, + 0x3d, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, + 0x5f, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x54, 0x52, 0x55, 0x45, 0x20, 0x7c, 0x20, 0x43, + 0x4c, 0x4b, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, + 0x54, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x4e, + 0x45, 0x41, 0x52, 0x45, 0x53, 0x54, 0x3b, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x20, 0x47, 0x65, 0x74, + 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, + 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x31, 0x20, 0x3f, 0x20, 0x30, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x20, 0x3a, 0x20, 0x33, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x32, + 0x31, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, + 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, 0x32, 0x30, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x36, 0x20, 0x3a, + 0x20, 0x35, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, + 0x73, 0x68, 0x65, 0x6c, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x73, 0x69, 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x34, 0x20, 0x3a, 0x20, + 0x33, 0x35, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, + 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, + 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, + 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2d, 0x20, 0x31, 0x36, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, + 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2b, 0x20, + 0x31, 0x36, 0x20, 0x3a, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x31, 0x30, + 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, + 0x39, 0x20, 0x3a, 0x20, 0x38, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, + 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, + 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, + 0x69, 0x6f, 0x6e, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, 0x7c, 0x7c, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x7c, 0x7c, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x3b, 0x0a, + 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, + 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, + 0x7c, 0x7c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, + 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x3b, + 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x26, 0x26, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, + 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, + 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, + 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x68, 0x69, 0x74, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x64, 0x65, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x2a, 0x20, 0x75, 0x76, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x20, + 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, + 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, + 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, + 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, + 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x64, 0x69, + 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, + 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, + 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x34, 0x3b, + 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, + 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, + 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, + 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, + 0x6e, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0a, 0x09, + 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, + 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, + 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, + 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, 0x2d, 0x20, 0x64, + 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, 0x3c, 0x20, 0x45, + 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, + 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x78, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, + 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, + 0x30, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, - 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, - 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, - 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, - 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, - 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, - 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x50, - 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x2c, 0x20, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, - 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, - 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, - 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, + 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, + 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, + 0x20, 0x6c, 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0a, 0x09, 0x09, + 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, + 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, + 0x6c, 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0a, 0x09, 0x09, 0x72, + 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, + 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, + 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, + 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, + 0x20, 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x72, 0x61, 0x79, + 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x64, 0x29, 0x20, + 0x3e, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, + 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, 0x64, 0x3b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, + 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, + 0x78, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, + 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, + 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, + 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, + 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, + 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x6e, 0x20, + 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, + 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x78, 0x2c, 0x20, + 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x6e, 0x2e, 0x7a, 0x29, + 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, + 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x79, + 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, + 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, + 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, + 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, + 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, + 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, + 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, + 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, + 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, + 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, + 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, + 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, + 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, + 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, + 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, + 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, + 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, + 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, + 0x76, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x42, 0x47, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, + 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, + 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, + 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, + 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, + 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, + 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, + 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, + 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, + 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, + 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, + 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x2c, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x3d, + 0x20, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, + 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, + 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, + 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, + 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, + 0x74, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, + 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x47, 0x65, 0x74, 0x54, + 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x31, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x77, 0x61, 0x74, 0x65, + 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, + 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, + 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, + 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, + 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x20, 0x7c, 0x7c, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, + 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, + 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, + 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, + 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, - 0x66, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, - 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x7d, 0x20, 0x2a, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x69, 0x20, 0x2f, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x3b, - 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, - 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, - 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, - 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, - 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, + 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, + 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x64, + 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, + 0x2e, 0x31, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x6c, 0x61, + 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, + 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, + 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x26, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, + 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x20, + 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, + 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x73, 0x6c, + 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, + 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, - 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, - 0x30, 0x31, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, - 0x74, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, - 0x09, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x30, 0x30, - 0x30, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, - 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x30, 0x32, 0x34, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, - 0x20, 0x31, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x20, 0x7d, - 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, - 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, - 0x3b, 0x0a, 0x7d, 0x0a, 0x00 + 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x26, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, + 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, + 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x70, 0x72, 0x65, + 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, + 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, + 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x73, 0x69, + 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, + 0x4e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76, + 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x70, + 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, + 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, + 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, + 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, + 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, + 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, + 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0a, + 0x09, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, + 0x5b, 0x32, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, + 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, + 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, + 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, + 0x30, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, + 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, + 0x30, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, + 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, + 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, + 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, + 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, + 0x31, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3e, + 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, + 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, + 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x2e, + 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, + 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, + 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, + 0x5d, 0x20, 0x3c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, + 0x5b, 0x30, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, + 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, + 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x77, + 0x61, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x09, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, + 0x20, 0x69, 0x20, 0x3c, 0x20, 0x32, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, + 0x69, 0x5d, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, + 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, + 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, + 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, + 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, + 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, + 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, + 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, + 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, + 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, + 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, + 0x2a, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, + 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, + 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, + 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, + 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, + 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, + 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, + 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, + 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, + 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, + 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, + 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, + 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, + 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, + 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, + 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, + 0x77, 0x20, 0x21, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, + 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, + 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, + 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, + 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, + 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x3b, 0x0a, 0x09, + 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, + 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, + 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, + 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, + 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, + 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, + 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, + 0x53, 0x69, 0x64, 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, + 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0a, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, + 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, + 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, + 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, + 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, + 0x20, 0x28, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, + 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, + 0x69, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, + 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, + 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, + 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, + 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, 0x30, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, + 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, 0x20, + 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, + 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, + 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, + 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, + 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, + 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, + 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, + 0x3d, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, + 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, + 0x6c, 0x20, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, + 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, + 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, + 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, + 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, + 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, + 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, + 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, + 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, + 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x33, 0x32, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, + 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, + 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, + 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, + 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, + 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, + 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, + 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, + 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, + 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, + 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x73, + 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, + 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, + 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, + 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, + 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, + 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, + 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, + 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, + 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, + 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, + 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, + 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, + 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, + 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, + 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, + 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, + 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x62, + 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, + 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, + 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, + 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, + 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, + 0x2b, 0x20, 0x28, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x32, 0x35, 0x66, 0x20, 0x2a, 0x20, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, + 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x29, 0x20, 0x2a, 0x20, + 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x34, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x2f, 0x2f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, + 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x65, 0x78, 0x70, 0x28, 0x2d, 0x64, 0x69, + 0x73, 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x29, 0x3b, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, + 0x64, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x77, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, + 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, + 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, + 0x6c, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, + 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, + 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, + 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, + 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, + 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, + 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x68, 0x69, 0x74, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, + 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, + 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, + 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, + 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, + 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, + 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, + 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, + 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, + 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, + 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, + 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, + 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, + 0x4e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, + 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, + 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, + 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, + 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x66, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, + 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x20, 0x76, 0x6f, + 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, + 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, + 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, + 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, + 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, + 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x78, 0x20, 0x3d, 0x20, + 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x30, 0x29, + 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, + 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, + 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, + 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, + 0x79, 0x20, 0x2b, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, + 0x28, 0x31, 0x30, 0x2e, 0x30, 0x20, 0x2b, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, + 0x29, 0x29, 0x20, 0x2b, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, + 0x35, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, + 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, + 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, + 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, + 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x20, + 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, 0x33, 0x36, + 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x63, 0x6f, 0x73, 0x28, 0x31, + 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, + 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, + 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x73, 0x69, + 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, + 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, + 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x62, + 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x69, 0x73, + 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, + 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x0a, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, + 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, 0x20, 0x2f, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, + 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, + 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, + 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x33, 0x37, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x72, + 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, + 0x61, 0x74, 0x65, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x3b, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, + 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, + 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, + 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, + 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, + 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, + 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, + 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, + 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, + 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, + 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, + 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x66, + 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, + 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, 0x47, 0x65, + 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, + 0x26, 0x20, 0x21, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x28, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, + 0x72, 0x61, 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x64, 0x6f, 0x74, + 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2a, 0x20, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x65, + 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x20, 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, + 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, + 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x0a, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, + 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, + 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, + 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, + 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, + 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, + 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, + 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x42, 0x47, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, + 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, + 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, + 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, + 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, + 0x75, 0x72, 0x65, 0x2c, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, + 0x79, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, + 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x00 }; From 1eb0cf82579b4eabe6acac4f6fdb4b3039b85352 Mon Sep 17 00:00:00 2001 From: John Payne Date: Sat, 30 Jul 2022 18:07:12 -0500 Subject: [PATCH 07/13] add bobbing and held block to raytracer --- CMakeLists.txt | 1 + MinecraftC/Minecraft.c | 41 +++++++++++++++++++++++++++ MinecraftC/Mods/Matrix.h | 56 +++++++++++++++++++++++++++++++++++++ MinecraftC/Mods/Raytracer.c | 21 ++++++++------ 4 files changed, 111 insertions(+), 8 deletions(-) create mode 100644 MinecraftC/Mods/Matrix.h diff --git a/CMakeLists.txt b/CMakeLists.txt index c084641..049c78b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,7 @@ set(MINECRAFTC_SOURCES MinecraftC/Level/Level.c MinecraftC/Level/Level.h MinecraftC/Level/NextTickListEntry.h + MinecraftC/Mods/Matrix.h MinecraftC/Mods/Raytracer.c MinecraftC/Mods/Raytracer.h MinecraftC/Mods/PrimedTNT.c diff --git a/MinecraftC/Minecraft.c b/MinecraftC/Minecraft.c index b64ca6f..2003369 100644 --- a/MinecraftC/Minecraft.c +++ b/MinecraftC/Minecraft.c @@ -876,6 +876,47 @@ void MinecraftRun(Minecraft * minecraft) { glVertex2f(-1.0, 1.0); glEnd(); glDisable(GL_BLEND); + + glEnable(GL_CULL_FACE); + glMatrixMode(GL_PROJECTION); + gluPerspective(70.0, (float)minecraft->width / (float)minecraft->height, 0.05, 512.0f); + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); + glClear(GL_DEPTH_BUFFER_BIT); + if (minecraft->settings.viewBobbing) { + RendererApplyBobbing(renderer, delta); + } + HeldBlock held = renderer->heldBlock; + float heldPos = held.lastPosition + (held.position - held.lastPosition) * delta; + glPushMatrix(); + glRotatef(rotx, 1.0, 0.0, 0.0); + glRotatef(roty, 0.0, 1.0, 0.0); + RendererSetLighting(renderer, true); + glPopMatrix(); + glPushMatrix(); + if (held.moving) { + float a = (held.offset + delta) / 7.0; + glTranslatef(-tsin(sqrt(a) * M_PI) * 0.4, tsin(sqrt(a) * M_PI * 2.0) * 0.2, -tsin(a * M_PI) * 0.2); + } + glTranslatef(0.7 * 0.8, -0.65 * 0.8 - (1.0 - heldPos) * 0.6, -0.9 * 0.8); + glRotatef(45.0, 0.0, 1.0, 0.0); + glEnable(GL_NORMALIZE); + if (held.moving) { + float a = (held.offset + delta) / 7.0; + glRotatef(tsin(sqrt(a) * M_PI) * 80.0, 0.0, 1.0, 0.0); + glRotatef(-tsin(a * a * M_PI), 1.0, 0.0, 0.0); + } + float brightness = LevelGetBrightness(&minecraft->level, player->x, player->y, player->z); + glColor4f(brightness, brightness, brightness, 1.0); + if (held.block != NULL) { + glScalef(0.4, 0.4, 0.4); + glTranslatef(-0.5, -0.5, -0.5); + glBindTexture(GL_TEXTURE_2D, TextureManagerLoad(&minecraft->textureManager, "Terrain.png")); + BlockRenderPreview(held.block); + } + glDisable(GL_NORMALIZE); + glPopMatrix(); + RendererSetLighting(renderer, false); } #endif HUDScreenRender(&minecraft->hud, delta, mx, my); diff --git a/MinecraftC/Mods/Matrix.h b/MinecraftC/Mods/Matrix.h new file mode 100644 index 0000000..12ac6df --- /dev/null +++ b/MinecraftC/Mods/Matrix.h @@ -0,0 +1,56 @@ +#pragma once +#if MINECRAFTC_MODS + +typedef struct Matrix4x4 { + float m00, m10, m20, m30; + float m01, m11, m21, m31; + float m02, m12, m22, m32; + float m03, m13, m23, m33; +} Matrix4x4; + +#define Matrix4x4Identity (Matrix4x4){ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 } + +static inline Matrix4x4 Matrix4x4Multiply(Matrix4x4 l, Matrix4x4 r) { + return (Matrix4x4){ + r.m00 * l.m00 + r.m10 * l.m01 + r.m20 * l.m02 + r.m30 * l.m03, + r.m00 * l.m10 + r.m10 * l.m11 + r.m20 * l.m12 + r.m30 * l.m13, + r.m00 * l.m20 + r.m10 * l.m21 + r.m20 * l.m22 + r.m30 * l.m23, + r.m00 * l.m30 + r.m10 * l.m31 + r.m20 * l.m32 + r.m30 * l.m33, + r.m01 * l.m00 + r.m11 * l.m01 + r.m21 * l.m02 + r.m31 * l.m03, + r.m01 * l.m10 + r.m11 * l.m11 + r.m21 * l.m12 + r.m31 * l.m13, + r.m01 * l.m20 + r.m11 * l.m21 + r.m21 * l.m22 + r.m31 * l.m23, + r.m01 * l.m30 + r.m11 * l.m31 + r.m21 * l.m32 + r.m31 * l.m33, + r.m02 * l.m00 + r.m12 * l.m01 + r.m22 * l.m02 + r.m32 * l.m03, + r.m02 * l.m10 + r.m12 * l.m11 + r.m22 * l.m12 + r.m32 * l.m13, + r.m02 * l.m20 + r.m12 * l.m21 + r.m22 * l.m22 + r.m32 * l.m23, + r.m02 * l.m30 + r.m12 * l.m31 + r.m22 * l.m32 + r.m32 * l.m33, + r.m03 * l.m00 + r.m13 * l.m01 + r.m23 * l.m02 + r.m33 * l.m03, + r.m03 * l.m10 + r.m13 * l.m11 + r.m23 * l.m12 + r.m33 * l.m13, + r.m03 * l.m20 + r.m13 * l.m21 + r.m23 * l.m22 + r.m33 * l.m23, + r.m03 * l.m30 + r.m13 * l.m31 + r.m23 * l.m32 + r.m33 * l.m33, + }; +} + +static inline Matrix4x4 Matrix4x4FromTranslate(float vx, float vy, float vz) { + return (Matrix4x4){ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, vx, vy, vz, 1.0 }; +} + +static inline Matrix4x4 Matrix4x4FromAxisAngle(float vx, float vy, float vz, float a) { + float c = cosf(a), c2 = 1.0 - cosf(a), s = sinf(a), xx = vx * vx, xy = vx * vy, xz = vx * vz, yy = vy * vy, yz = vy * vz, zz = vz * vz; + return (Matrix4x4){ + (xx + (yy + zz) * c), (xy * c2 + vz * s), (xz * c2 - vy * s), 0.0f, + (xy * c2 - vz * s), (yy + (xx + zz) * c), (yz * c2 + vx * s), 0.0f, + (xz * c2 + vy * s), (yz * c2 - vx * s), (zz + (xx + yy) * c), 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + }; +} + +static inline Matrix4x4 Matrix4x4FromEulerAngles(float vx, float vy, float vz) { + Matrix4x4 matrix = Matrix4x4Identity; + matrix = Matrix4x4Multiply(Matrix4x4FromAxisAngle(0.0, 0.0, 1.0, vz), matrix); + matrix = Matrix4x4Multiply(Matrix4x4FromAxisAngle(1.0, 0.0, 0.0, vy), matrix); + matrix = Matrix4x4Multiply(Matrix4x4FromAxisAngle(0.0, 1.0, 0.0, vx), matrix); + return matrix; +} + +#endif diff --git a/MinecraftC/Mods/Raytracer.c b/MinecraftC/Mods/Raytracer.c index 6e57133..274d490 100644 --- a/MinecraftC/Mods/Raytracer.c +++ b/MinecraftC/Mods/Raytracer.c @@ -1,6 +1,7 @@ #if MINECRAFTC_MODS #include "Raytracer.h" +#include "Matrix.h" #include "../Utilities/OpenGL.h" #include "../Level/Level.h" #include "../Utilities/Log.h" @@ -175,14 +176,18 @@ void RaytracerEnqueue(float dt, float time, bool doBobbing) { float x = player->xo + (player->x - player->xo) * dt; float y = player->yo + (player->y - player->yo) * dt; float z = player->zo + (player->z - player->zo) * dt; - float matrix[16] = { - cosf(b), 0.0, -sinf(b), 0.0, - sinf(a) * sinf(b), cosf(a), sinf(a) * cosf(b), 0.0, - cosf(a) * sinf(b), -sinf(a), cosf(a) * cosf(b), 0.0, - x, y, z, 1.0 - }; + Matrix4x4 camera = Matrix4x4Multiply(Matrix4x4FromTranslate(x, y, z), Matrix4x4FromEulerAngles(b, a, 0.0)); if (doBobbing) { - + float walk = player->walkDistance - player->oldWalkDistance; + walk = player->walkDistance + walk * dt; + float bob = (player->player.oldBobbing + (player->player.bobbing - player->player.oldBobbing) * dt) * M_PI / 180.0f; + float tilt = (player->player.oldTilt + (player->player.tilt - player->player.oldTilt) * dt) * M_PI / 180.0f; + Matrix4x4 bobbing = Matrix4x4Identity; + bobbing = Matrix4x4Multiply(Matrix4x4FromAxisAngle(0.0, 0.0, 1.0, -sin(walk * M_PI) * bob * 3.0), bobbing); + bobbing = Matrix4x4Multiply(Matrix4x4FromAxisAngle(1.0, 0.0, 0.0, -fabs(cos(walk * M_PI + 0.2) * bob) * 5.0), bobbing); + bobbing = Matrix4x4Multiply(Matrix4x4FromAxisAngle(1.0, 0.0, 0.0, -tilt), bobbing); + bobbing = Matrix4x4Multiply(Matrix4x4FromTranslate(-sin(walk * M_PI) * bob * 0.5, fabs(cos(walk * M_PI) * bob), 0.0), bobbing); + camera = Matrix4x4Multiply(camera, bobbing); } glFinish(); @@ -195,7 +200,7 @@ void RaytracerEnqueue(float dt, float time, bool doBobbing) { Raytracer.iteration = 0; } - error = clSetKernelArg(Raytracer.traceKernel, 6, sizeof(matrix), &matrix); + error = clSetKernelArg(Raytracer.traceKernel, 6, sizeof(camera), &camera); error |= clSetKernelArg(Raytracer.traceKernel, 8, sizeof(int), &(int){ EntityIsUnderWater(player) }); error |= clSetKernelArg(Raytracer.traceKernel, 9, sizeof(float), &time); if (error < 0) { From 8906cb163ee02dce2521c76d46e105d5e9e20f77 Mon Sep 17 00:00:00 2001 From: johnpayne-dev Date: Sat, 30 Jul 2022 22:29:12 -0500 Subject: [PATCH 08/13] add opencl support on windows --- .gitmodules | 6 + CMakeLists.txt | 33 +- External/OpenCL-Headers | 1 + External/OpenCL-ICD-Loader | 1 + Resources/Shaders/Raytracer.cl | 8 +- Resources/Shaders/Raytracer.h | 2474 ++++++++++++++++---------------- Scripts/EmbedResources.py | 4 +- 7 files changed, 1294 insertions(+), 1233 deletions(-) create mode 160000 External/OpenCL-Headers create mode 160000 External/OpenCL-ICD-Loader diff --git a/.gitmodules b/.gitmodules index d6d27b4..ff24cfa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,9 @@ [submodule "External/SDL"] path = External/SDL url = https://github.com/libsdl-org/SDL.git +[submodule "External/OpenCL-Headers"] + path = External/OpenCL-Headers + url = https://github.com/KhronosGroup/OpenCL-Headers +[submodule "External/OpenCL-ICD-Loader"] + path = External/OpenCL-ICD-Loader + url = https://github.com/KhronosGroup/OpenCL-ICD-Loader diff --git a/CMakeLists.txt b/CMakeLists.txt index 049c78b..7700711 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,8 +179,10 @@ add_definitions( -DSDL_DYNAMIC_API=0 -DSDL_VIDEO_OPENGL_EGL=0 -DSDL_VIDEO_RENDER_OGL_ES2=0 - -DMINECRAFTC_MODS ) +if(MINECRAFTC_MODS) + add_definitions(-DMINECRAFTC_MODS) +endif() if(APPLE) set(SOURCES @@ -202,15 +204,27 @@ if(APPLE) "-framework GameController" "-framework IOKit" "-framework Metal" - "-framework OpenCL" "-framework OpenGL" ) + if (MINECRAFTC_MODS) + set(LIBRARIES ${LIBRARIES} "-framework OpenCL") + endif() elseif(WIN32) set(SOURCES ${MINECRAFTC_SOURCES} ${SDL2_COMMON_SOURCES} ${SDL2_WINDOWS_SOURCES} Resources/App/AppIcon.rc + External/OpenCL-ICD-Loader/loader/icd.c + External/OpenCL-ICD-Loader/loader/icd_dispatch.c + External/OpenCL-ICD-Loader/loader/icd_dispatch_generated.c + External/OpenCL-ICD-Loader/loader/windows/icd_windows.c + External/OpenCL-ICD-Loader/loader/windows/icd_windows_apppackage.cpp + External/OpenCL-ICD-Loader/loader/windows/icd_windows_dxgk.c + External/OpenCL-ICD-Loader/loader/windows/icd_windows_envvars.c + External/OpenCL-ICD-Loader/loader/windows/icd_windows_hkr.c + External/OpenCL-ICD-Loader/loader/windows/OpenCL.def + External/OpenCL-ICD-Loader/loader/windows/OpenCL.rc ) set(LIBRARIES opengl32 @@ -219,9 +233,19 @@ elseif(WIN32) Winmm Version Imm32 + RuntimeObject + Cfgmgr32 ) elseif(UNIX) - set(SOURCES ${MINECRAFTC_SOURCES}) + set(SOURCES + ${MINECRAFTC_SOURCES} + External/OpenCL-ICD-Loader/loader/icd.c + External/OpenCL-ICD-Loader/loader/icd_dispatch.c + External/OpenCL-ICD-Loader/loader/icd_dispatch_generated.c + External/OpenCL-ICD-Loader/loader/linux/icd_linux.c + External/OpenCL-ICD-Loader/loader/linux/icd_linux_envvars.c + External/OpenCL-ICD-Loader/loader/linux/icd_exports.map + ) set(FLAGS ${FLAGS} "-I/usr/include/SDL2" "-D_GNU_SOURCE=1" "-D_REENTRANT") set(LIBRARIES m @@ -241,5 +265,8 @@ target_include_directories(MinecraftC PRIVATE External/SDL/include External/cute_headers External/stb + External/OpenCL-Headers + External/OpenCL-ICD-Loader/loader ) + target_link_libraries(MinecraftC ${LIBRARIES}) diff --git a/External/OpenCL-Headers b/External/OpenCL-Headers new file mode 160000 index 0000000..7f216e8 --- /dev/null +++ b/External/OpenCL-Headers @@ -0,0 +1 @@ +Subproject commit 7f216e8aa5317a71d91bed7edc83f3620dff763d diff --git a/External/OpenCL-ICD-Loader b/External/OpenCL-ICD-Loader new file mode 160000 index 0000000..7072cf2 --- /dev/null +++ b/External/OpenCL-ICD-Loader @@ -0,0 +1 @@ +Subproject commit 7072cf2ae9d9acb6be8f4fc956f1cdbf0675695b diff --git a/Resources/Shaders/Raytracer.cl b/Resources/Shaders/Raytracer.cl index 44bd88c..a2ab3b4 100644 --- a/Resources/Shaders/Raytracer.cl +++ b/Resources/Shaders/Raytracer.cl @@ -474,7 +474,7 @@ __kernel void trace(int levelSize, __global uchar * distanceField, __global ucha float2 uv = (float2){ 1.0f - 2.0f * (float)x / width, 2.0f * (float)y / height - 1.0f }; uv.x *= (float)width / height; if (isUnderWater) { - uv.y += sin(uv.x * (10.0 + sin(time)) + time) / (135.0f + 10.0f * sin(time)); + uv.y += sin(uv.x * (10.0f + sin(time)) + time) / (135.0f + 10.0f * sin(time)); }; float fov = 70.0f; @@ -499,7 +499,7 @@ __kernel void trace(int levelSize, __global uchar * distanceField, __global ucha int i = 0; while (color.w < 1.0f && i < 64) { if (RaySceneIntersection(distanceField, blocks, terrain, ray, origin, levelSize, inWater, &tile, &enter, &exit, &color, &normal)) { - if (inWater && !(tile == BlockTypeWater || tile == BlockTypeStillWater)) { + if (inWater) { waterDist += enter; fragColor.w *= (1.0f - min(waterDist / 16.0f, 1.0f)); } @@ -518,9 +518,7 @@ __kernel void trace(int levelSize, __global uchar * distanceField, __global ucha fragColor.w *= 1.0f - color.w; if (tile == BlockTypeWater || tile == BlockTypeStillWater) { - if (inWater) { - waterDist += enter; - } else { + if (!inWater) { exit = enter; } inWater = !inWater; diff --git a/Resources/Shaders/Raytracer.h b/Resources/Shaders/Raytracer.h index e01cf75..fb72312 100644 --- a/Resources/Shaders/Raytracer.h +++ b/Resources/Shaders/Raytracer.h @@ -1,1283 +1,1311 @@ static const unsigned char Resource_Shaders_Raytracer[] = { 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x66, 0x0a, 0x23, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, - 0x50, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x66, 0x0a, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x6e, 0x65, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x0a, 0x23, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x66, 0x0d, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, + 0x45, 0x50, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x66, 0x0d, 0x0a, 0x0d, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, + 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x30, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, 0x74, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x0a, 0x23, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, - 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x36, 0x0a, 0x23, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, - 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, - 0x61, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, - 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x32, 0x0a, 0x23, 0x64, + 0x44, 0x69, 0x72, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, + 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, 0x0d, + 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x39, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x30, 0x0d, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x31, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x31, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, - 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x35, 0x0a, - 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x31, 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, - 0x76, 0x65, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, - 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x30, 0x0a, 0x23, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x32, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, - 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x33, 0x0a, + 0x20, 0x31, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, + 0x6e, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, + 0x35, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x37, 0x0d, + 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x31, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x39, 0x0d, 0x0a, 0x23, + 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x32, 0x30, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, + 0x61, 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x32, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, + 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x34, + 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x35, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, + 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x32, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, - 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, - 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, - 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x38, 0x0a, 0x23, 0x64, + 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x32, 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x32, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, - 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x31, 0x0a, - 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x33, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x61, - 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, - 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, - 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x36, 0x0a, 0x23, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, - 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x33, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, - 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x39, 0x0a, + 0x20, 0x32, 0x39, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x30, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, + 0x6c, 0x65, 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, + 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, + 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x33, 0x0d, + 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x33, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, + 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x35, 0x0d, 0x0a, 0x23, + 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x33, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, + 0x73, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x33, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, + 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x39, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, + 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x30, + 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x34, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, - 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, - 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x34, 0x0a, 0x23, 0x64, + 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x34, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x34, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, - 0x68, 0x65, 0x6c, 0x66, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x37, 0x0a, - 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, - 0x65, 0x20, 0x20, 0x34, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, - 0x30, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x74, 0x20, - 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x32, - 0x35, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x2c, 0x0a, 0x09, 0x5b, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x30, - 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, - 0x74, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x5d, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, - 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, - 0x6c, 0x69, 0x6e, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x31, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x37, 0x2c, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x31, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x20, 0x34, 0x35, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, + 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, + 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, + 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x34, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, + 0x69, 0x61, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x39, 0x0d, + 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x35, 0x30, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x32, 0x35, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x31, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x30, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, 0x74, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x2c, + 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x62, + 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x31, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x2c, 0x0d, 0x0a, 0x09, + 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, + 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, + 0x20, 0x31, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, + 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, - 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x61, 0x6e, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x39, - 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, - 0x64, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x33, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x33, 0x2c, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, + 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, + 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x38, 0x2c, 0x0d, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, + 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x31, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x33, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, - 0x6f, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x32, 0x2c, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, - 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x34, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x39, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x34, - 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, - 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x36, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x36, 0x2c, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, - 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x36, 0x37, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x33, 0x33, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x30, + 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, + 0x61, 0x76, 0x65, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x38, 0x2c, 0x0d, + 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, + 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x3d, 0x20, 0x34, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x34, 0x2c, 0x0d, 0x0a, 0x09, + 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, 0x6e, 0x67, 0x65, + 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, + 0x20, 0x36, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, 0x6c, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, + 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, - 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x39, 0x2c, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, - 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x37, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x31, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, 0x65, 0x57, 0x6f, 0x6f, - 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x32, - 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, - 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x37, 0x33, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x34, 0x2c, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, - 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x37, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, - 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x37, 0x2c, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, - 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x37, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x39, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, - 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x33, - 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, - 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x31, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, - 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x39, 0x2c, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, - 0x72, 0x6f, 0x6f, 0x6d, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x32, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, - 0x6f, 0x6c, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x33, 0x2c, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, - 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x2c, 0x0a, 0x09, - 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x38, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, + 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x39, 0x2c, + 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, + 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x31, 0x2c, 0x0d, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, + 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x37, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x33, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, 0x74, 0x57, + 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x37, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x36, + 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, + 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x38, 0x2c, 0x0d, + 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x68, 0x69, 0x74, + 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x3d, 0x20, 0x37, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x33, 0x2c, 0x0d, 0x0a, 0x09, + 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, - 0x20, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, - 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, - 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x36, 0x2c, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, - 0x69, 0x61, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x33, 0x37, 0x2c, 0x0a, 0x7d, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x74, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, - 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x36, 0x5d, 0x20, 0x3d, - 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x36, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x74, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, - 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0a, - 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, + 0x20, 0x31, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, + 0x6f, 0x6f, 0x6d, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, + 0x38, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x6f, 0x6c, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x33, 0x2c, + 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, + 0x4e, 0x54, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x38, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x35, 0x2c, 0x0d, + 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, + 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, + 0x20, 0x3d, 0x20, 0x33, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x37, 0x2c, 0x0d, 0x0a, 0x7d, + 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x42, 0x72, 0x69, 0x67, + 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, + 0x35, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, + 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x4e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x7b, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x7d, 0x2c, 0x0a, 0x09, - 0x7b, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x0a, 0x7d, 0x3b, 0x0a, - 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x5f, 0x74, - 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x20, - 0x3d, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, - 0x5f, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x54, 0x52, 0x55, 0x45, 0x20, 0x7c, 0x20, 0x43, - 0x4c, 0x4b, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, - 0x54, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x4e, - 0x45, 0x41, 0x52, 0x45, 0x53, 0x54, 0x3b, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x20, 0x47, 0x65, 0x74, - 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x20, - 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, - 0x31, 0x20, 0x3f, 0x20, 0x30, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, - 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x20, 0x3a, 0x20, 0x33, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x32, - 0x31, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, - 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, 0x32, 0x30, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, - 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, - 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x36, 0x20, 0x3a, - 0x20, 0x35, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, - 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, - 0x73, 0x68, 0x65, 0x6c, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x69, 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x34, 0x20, 0x3a, 0x20, - 0x33, 0x35, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, - 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, - 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, - 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, - 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2d, 0x20, 0x31, 0x36, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, - 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2b, 0x20, - 0x31, 0x36, 0x20, 0x3a, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, - 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x31, 0x30, - 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, - 0x39, 0x20, 0x3a, 0x20, 0x38, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, - 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, - 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, - 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x69, 0x6c, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, - 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, - 0x69, 0x6f, 0x6e, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, 0x7c, 0x7c, 0x20, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x7d, 0x2c, 0x0d, + 0x0a, 0x09, 0x7b, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x0d, + 0x0a, 0x7d, 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x73, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x72, 0x5f, 0x74, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, + 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x5f, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x54, 0x52, + 0x55, 0x45, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, + 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, 0x54, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x46, 0x49, + 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x4e, 0x45, 0x41, 0x52, 0x45, 0x53, 0x54, 0x3b, 0x0d, 0x0a, 0x0d, + 0x0a, 0x69, 0x6e, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, + 0x44, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6e, + 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x7c, 0x7c, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x3b, 0x0a, - 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, - 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, - 0x79, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, - 0x7c, 0x7c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, - 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x3b, - 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, - 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, + 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x30, 0x20, 0x3a, + 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x20, + 0x3a, 0x20, 0x33, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, + 0x6f, 0x67, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, 0x28, 0x73, + 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, + 0x32, 0x30, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, + 0x61, 0x62, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, + 0x62, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, + 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x36, 0x20, 0x3a, 0x20, 0x35, 0x3b, 0x20, 0x7d, + 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, + 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, + 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x34, 0x20, 0x3a, 0x20, 0x33, 0x35, 0x3b, 0x20, + 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x7c, 0x7c, + 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, + 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, + 0x5d, 0x20, 0x2d, 0x20, 0x31, 0x36, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, + 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2b, 0x20, 0x31, 0x36, 0x20, + 0x3a, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x26, 0x26, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, - 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, + 0x70, 0x65, 0x54, 0x4e, 0x54, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x31, 0x30, 0x20, 0x3a, + 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x39, 0x20, + 0x3a, 0x20, 0x38, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, + 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, + 0x6c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, + 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, + 0x69, 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, + 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, + 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, + 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, + 0x6d, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x53, 0x68, + 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, 0x7c, 0x7c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, + 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x28, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, + 0x73, 0x73, 0x20, 0x26, 0x26, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3d, 0x3d, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, 0x2e, + 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x64, 0x65, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x2a, 0x20, 0x75, 0x76, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x20, - 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, - 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, - 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, - 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, - 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x64, 0x69, - 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, - 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, - 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x34, 0x3b, - 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, - 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, - 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, - 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, - 0x6e, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, - 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0a, 0x09, - 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, - 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x2a, 0x20, 0x75, 0x76, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, 0x69, 0x74, + 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, + 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, + 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x78, 0x29, + 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, - 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, 0x2d, 0x20, 0x64, - 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, 0x3c, 0x20, 0x45, - 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, - 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x78, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, - 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, - 0x30, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, - 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, - 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, - 0x20, 0x6c, 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0a, 0x09, 0x09, - 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, - 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, - 0x6c, 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0a, 0x09, 0x09, 0x72, - 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, - 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, - 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, - 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, - 0x20, 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x72, 0x61, 0x79, - 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x64, 0x29, 0x20, - 0x3e, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, - 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, - 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, 0x64, 0x3b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, - 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, - 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, - 0x78, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, - 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, - 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, - 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, - 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, - 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x6e, 0x20, - 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, + 0x64, 0x65, 0x20, 0x3d, 0x20, 0x34, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, + 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, 0x20, 0x3c, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, + 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, + 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, + 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x20, 0x2d, + 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x29, 0x20, 0x3c, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, + 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, + 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, + 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x29, 0x20, + 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, + 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, + 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, 0x2d, 0x20, + 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, 0x3c, 0x20, + 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, + 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, + 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, 0x0d, 0x0a, + 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, + 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, + 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x7d, 0x0d, + 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, + 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, + 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, + 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, + 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, + 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, + 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, + 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, + 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, + 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, 0x0d, 0x0a, + 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, + 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x64, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, + 0x72, 0x61, 0x79, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, + 0x28, 0x64, 0x29, 0x20, 0x3e, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, + 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, + 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, 0x64, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x3d, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, + 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, + 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, + 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, + 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, + 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, + 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x6e, 0x20, 0x3d, + 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, - 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x78, 0x2c, 0x20, - 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x6e, 0x2e, 0x7a, 0x29, - 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, - 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x79, - 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, - 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, - 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, - 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, - 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, - 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, - 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, - 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, - 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, - 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, - 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, - 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, - 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, - 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, - 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, - 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, - 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, - 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, - 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x7d, - 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, + 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x78, 0x2c, + 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x6e, 0x2e, 0x7a, + 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x6d, + 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, + 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, + 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, + 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, 0x69, + 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, + 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, + 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, + 0x20, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, + 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, + 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, + 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, 0x65, 0x64, + 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, + 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, + 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, 0x6f, + 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, + 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, + 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, + 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, + 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, - 0x76, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x42, 0x47, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, - 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, - 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, - 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, - 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, - 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, - 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, - 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, - 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, - 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, - 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, - 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, - 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, + 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, + 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x74, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, + 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, + 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, + 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, + 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, + 0x65, 0x6c, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x2c, 0x20, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x3d, - 0x20, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, - 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, - 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, - 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, - 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, - 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, - 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, - 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0a, 0x09, 0x09, + 0x20, 0x2b, 0x20, 0x31, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, + 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, + 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, + 0x0d, 0x0a, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, + 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, + 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, + 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, + 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, + 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, - 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, - 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, - 0x74, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, - 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x47, 0x65, 0x74, 0x54, - 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, - 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x31, 0x29, 0x20, - 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, - 0x66, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x77, 0x61, 0x74, 0x65, - 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, - 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, - 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, - 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, - 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, - 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x20, 0x7c, 0x7c, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, - 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, - 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, - 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, - 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, - 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, - 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, - 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, - 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, - 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, - 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, - 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x64, - 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, - 0x2e, 0x31, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x6c, 0x61, - 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, - 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, - 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, - 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, - 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x26, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, - 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, - 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, - 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, - 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x73, 0x6c, - 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x26, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, - 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, - 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, - 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x70, 0x72, 0x65, - 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, - 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, - 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x73, 0x69, - 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, - 0x4e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76, - 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x70, - 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, - 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, - 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, - 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, - 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, - 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, - 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0a, 0x09, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0a, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, + 0x78, 0x69, 0x74, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, + 0x21, 0x3d, 0x20, 0x31, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x20, 0x3c, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x7c, + 0x7c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, + 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, + 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, 0x74, 0x65, + 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, + 0x7c, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, + 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, + 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, + 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, + 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, + 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, + 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, + 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, + 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, + 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, + 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x6c, 0x61, 0x76, 0x61, + 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, + 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x20, 0x7c, 0x7c, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, + 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x20, + 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, + 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, + 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, + 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, + 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x26, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, + 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, + 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, + 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x6e, 0x74, 0x33, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, + 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, + 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x75, + 0x63, 0x68, 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, + 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, + 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, + 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, + 0x69, 0x66, 0x20, 0x28, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, + 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, + 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, + 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, - 0x5b, 0x32, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, - 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, - 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, - 0x30, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, - 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, - 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, - 0x30, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, - 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, - 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, - 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, - 0x31, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3e, - 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, - 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, - 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x2e, - 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, - 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, - 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, - 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, - 0x5d, 0x20, 0x3c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, - 0x5b, 0x30, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, - 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, - 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x77, - 0x61, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, - 0x09, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, - 0x20, 0x69, 0x20, 0x3c, 0x20, 0x32, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, - 0x69, 0x5d, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, - 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, - 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, - 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, - 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, - 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, - 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, - 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, + 0x5b, 0x32, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, + 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, + 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, + 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, + 0x5b, 0x30, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, + 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, + 0x5b, 0x30, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, + 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, + 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, + 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, + 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, + 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, + 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, + 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, + 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, + 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, + 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, + 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, + 0x64, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x72, + 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6f, 0x72, 0x20, + 0x28, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, + 0x32, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x69, 0x5d, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, + 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, + 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, + 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, + 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, - 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, - 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, - 0x2a, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, - 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, - 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, - 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, - 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, - 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, - 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, - 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, - 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, - 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, - 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, - 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, - 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, - 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, - 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, - 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, - 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, - 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, - 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, - 0x77, 0x20, 0x21, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, - 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, - 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, - 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, - 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, - 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x3b, 0x0a, 0x09, - 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, - 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, - 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, - 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, - 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, + 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, + 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, + 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, + 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, + 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, + 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, + 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, + 0x4f, 0x4e, 0x20, 0x2a, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, + 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, + 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x29, 0x7b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, + 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, + 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, + 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, + 0x29, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, + 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, + 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, + 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, + 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, + 0x65, 0x2c, 0x20, 0x30, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, + 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, + 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, + 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, + 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, - 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, - 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, - 0x53, 0x69, 0x64, 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, - 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0a, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, - 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, - 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, - 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, - 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, - 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, - 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, - 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, - 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, - 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, - 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, - 0x20, 0x28, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, - 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, - 0x69, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, - 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, - 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, - 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, - 0x61, 0x72, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, - 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, - 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, 0x30, 0x29, 0x20, - 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, - 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, - 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, 0x20, - 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, - 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, - 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, - 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, - 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, - 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, - 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, - 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, - 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, - 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, - 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, - 0x3d, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, - 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, - 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, - 0x6c, 0x20, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, - 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, - 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, - 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, - 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, - 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, - 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, - 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, - 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, - 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x33, 0x32, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, - 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x21, + 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, + 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, + 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x47, + 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, + 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, + 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0d, + 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, + 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x73, + 0x69, 0x64, 0x65, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, + 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, + 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, + 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, + 0x0d, 0x0a, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, + 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, + 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, + 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2d, 0x3e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, + 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, 0x69, 0x64, 0x65, + 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x54, + 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x73, 0x69, + 0x64, 0x65, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, + 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, + 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, + 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, + 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, + 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, + 0x75, 0x6e, 0x64, 0x73, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, + 0x79, 0x20, 0x2a, 0x20, 0x74, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x29, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, + 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, + 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, + 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, + 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x69, + 0x73, 0x74, 0x20, 0x3e, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, + 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, + 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, + 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, + 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, + 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, + 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, 0x20, + 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, + 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, + 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, + 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, + 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, + 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, + 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, + 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, + 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, + 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, + 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, + 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x33, 0x32, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x20, - 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, - 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, - 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, - 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, - 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, + 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, - 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, - 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, - 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, - 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, - 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x73, - 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, - 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, - 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, - 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, - 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, - 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, + 0x6f, 0x63, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, + 0x3d, 0x20, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, + 0x7d, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, + 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, + 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, + 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, + 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, + 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, + 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, + 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, + 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, + 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, + 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, + 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, + 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, + 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, + 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, + 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, + 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, + 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, + 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, + 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, + 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, + 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x28, 0x73, 0x68, + 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, + 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, + 0x30, 0x2e, 0x35, 0x32, 0x35, 0x66, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, + 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, + 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x2f, 0x2f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x65, 0x78, 0x70, 0x28, 0x2d, 0x64, 0x69, 0x73, + 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x29, 0x3b, 0x0d, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, + 0x64, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x77, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, + 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, + 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, + 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, + 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, + 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, + 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, + 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, + 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, + 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, - 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, - 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, - 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, - 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, - 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, - 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, - 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, - 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, - 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, - 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, - 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x62, - 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, - 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, - 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, - 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, - 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, - 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, - 0x2b, 0x20, 0x28, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x32, 0x35, 0x66, 0x20, 0x2a, 0x20, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, - 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x29, 0x20, 0x2a, 0x20, - 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x34, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x2f, 0x2f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, - 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x65, 0x78, 0x70, 0x28, 0x2d, 0x64, 0x69, - 0x73, 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x29, 0x3b, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, - 0x64, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x77, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, - 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, - 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, - 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, - 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, - 0x6c, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, - 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, - 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, - 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, - 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, - 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, - 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x68, 0x69, 0x74, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, - 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, - 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, - 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, - 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, - 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, - 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, - 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, - 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, + 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, + 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, + 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, + 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, + 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, + 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, - 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, - 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, - 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, - 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, - 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, - 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, - 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, - 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, - 0x4e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, - 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, - 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, - 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, - 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x66, + 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, + 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, + 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, + 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, + 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, + 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, + 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, + 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x72, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, + 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, - 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x20, 0x76, 0x6f, - 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, - 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, - 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, - 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, - 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, - 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, - 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x78, 0x20, 0x3d, 0x20, - 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x30, 0x29, - 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, - 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, - 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, - 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, - 0x79, 0x20, 0x2b, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, - 0x28, 0x31, 0x30, 0x2e, 0x30, 0x20, 0x2b, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, - 0x29, 0x29, 0x20, 0x2b, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, - 0x35, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, - 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, 0x0a, + 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, + 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, 0x74, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, 0x74, 0x75, + 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x69, + 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, + 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, + 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, + 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, + 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, 0x64, + 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0d, + 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, + 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, + 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, + 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0d, + 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, 0x79, 0x20, 0x2b, 0x3d, + 0x20, 0x73, 0x69, 0x6e, 0x28, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x2b, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x20, + 0x2b, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, 0x35, 0x2e, 0x30, + 0x66, 0x20, 0x2b, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x6e, 0x28, + 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, - 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, - 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, - 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x20, - 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, 0x33, 0x36, - 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, - 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, - 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x63, 0x6f, 0x73, 0x28, 0x31, - 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, - 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, - 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x73, 0x69, - 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, + 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, + 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, + 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, + 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, + 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, + 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, + 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, + 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x63, 0x6f, + 0x73, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, - 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x62, - 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x69, 0x73, - 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, - 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x0a, 0x09, 0x69, - 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, - 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, - 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, - 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, - 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, 0x20, 0x2f, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, - 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, - 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, - 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x33, 0x37, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x72, - 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, - 0x61, 0x74, 0x65, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, - 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x3b, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, - 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x73, 0x69, 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, + 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, + 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, + 0x3d, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, + 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, + 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, 0x20, 0x2f, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x7d, + 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, + 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x33, + 0x37, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, + 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, - 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, - 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, - 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, - 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, - 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, - 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, - 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, - 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, - 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, - 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, - 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, - 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, - 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, - 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, + 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, + 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, + 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, + 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, + 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, + 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, + 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, + 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, + 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, - 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, 0x47, 0x65, - 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, - 0x65, 0x73, 0x73, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, - 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, - 0x26, 0x20, 0x21, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x28, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, - 0x72, 0x61, 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x64, 0x6f, 0x74, - 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2a, 0x20, - 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x20, 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, - 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, - 0x65, 0x73, 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x3b, 0x0a, 0x09, 0x09, 0x09, - 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, - 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x0a, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, - 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, - 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, - 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, - 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, - 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, - 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, + 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, + 0x67, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x72, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, + 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, + 0x26, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, + 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x28, 0x72, 0x61, 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, + 0x20, 0x64, 0x6f, 0x74, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x29, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, + 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, + 0x6e, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, + 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, + 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, + 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, + 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, + 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, + 0x73, 0x73, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, + 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, + 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, + 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, + 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, + 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, - 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0a, 0x09, - 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, - 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x42, 0x47, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, - 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, - 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, - 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, - 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, - 0x75, 0x72, 0x65, 0x2c, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, - 0x79, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, - 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x00 + 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, + 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, + 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x66, + 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, + 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, + 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, + 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x00 }; diff --git a/Scripts/EmbedResources.py b/Scripts/EmbedResources.py index a6da352..73e3e05 100644 --- a/Scripts/EmbedResources.py +++ b/Scripts/EmbedResources.py @@ -5,7 +5,7 @@ RESOURCE_PATH = os.path.realpath(__file__ + '/../../Resources') def embed_png(filePath, outPath): - cName = filePath[len(RESOURCE_PATH) + 1:-4].replace('/', '_') + cName = filePath[len(RESOURCE_PATH) + 1:-4].replace(os.sep, '_') image = Image.open(filePath).convert('RGBA') pixels = image.load() @@ -30,7 +30,7 @@ def embed_png(filePath, outPath): def embed_file(filePath, outPath): input, output = open(filePath, 'rb'), open(outPath, 'w') - cName = filePath[len(RESOURCE_PATH) + 1:filePath.rfind('.')].replace('/', '_') + cName = filePath[len(RESOURCE_PATH) + 1:filePath.rfind('.')].replace(os.sep, '_') output.write(f'static const unsigned char Resource_{cName}[] = {{') for i, byte in enumerate(input.read()): if i % 16 == 0: output.write('\n\t') From d9c09d9265a878a0f55b8f2b50e152d3a9f0d297 Mon Sep 17 00:00:00 2001 From: John Payne Date: Sat, 30 Jul 2022 23:25:47 -0500 Subject: [PATCH 09/13] use submodules --- .gitmodules | 6 + External/cute_headers | 1 + External/cute_headers/cute_sound.h | 3156 ---------------- External/stb | 1 + External/stb/stb_vorbis.c | 5580 ---------------------------- MinecraftC/Minecraft.c | 12 +- MinecraftC/Sound/SoundManager.h | 2 +- 7 files changed, 15 insertions(+), 8743 deletions(-) create mode 160000 External/cute_headers delete mode 100644 External/cute_headers/cute_sound.h create mode 160000 External/stb delete mode 100644 External/stb/stb_vorbis.c diff --git a/.gitmodules b/.gitmodules index ff24cfa..a5f8aa7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,9 @@ [submodule "External/OpenCL-ICD-Loader"] path = External/OpenCL-ICD-Loader url = https://github.com/KhronosGroup/OpenCL-ICD-Loader +[submodule "External/stb"] + path = External/stb + url = https://github.com/nothings/stb.git +[submodule "External/cute_headers"] + path = External/cute_headers + url = https://github.com/johnpayne-dev/cute_headers.git diff --git a/External/cute_headers b/External/cute_headers new file mode 160000 index 0000000..07165d7 --- /dev/null +++ b/External/cute_headers @@ -0,0 +1 @@ +Subproject commit 07165d746a2ff068a2410ce64c34b226492ccd96 diff --git a/External/cute_headers/cute_sound.h b/External/cute_headers/cute_sound.h deleted file mode 100644 index 517109b..0000000 --- a/External/cute_headers/cute_sound.h +++ /dev/null @@ -1,3156 +0,0 @@ -/* - ------------------------------------------------------------------------------ - Licensing information can be found at the end of the file. - ------------------------------------------------------------------------------ - - cute_sound.h - v2.00 - - - To create implementation (the function definitions) - #define CUTE_SOUND_IMPLEMENTATION - in *one* C/CPP file (translation unit) that includes this file - - - SUMMARY - - cute_sound is a C API for loading, playing, looping, panning and fading mono - and stereo sounds, without any external dependencies other than things that ship - with standard OSs, or SDL2 for more uncommon OSs. - - For Windows cute_sound uses DirectSound. Due to the use of SSE intrinsics, MinGW - builds must be made with the compiler option: -march=native, or optionally SSE - can be disabled with CUTE_SOUND_SCALAR_MODE. More on this mode written below. - - For Apple machines cute_sound uses CoreAudio. - - For Linux builds cute_sound uses SDL2. - - An SDL2 implementation of cute_sound is available on platforms SDL2 is available, - which is pretty much everywhere. To use the SDL2 implementation of cute_sound - define CUTE_SOUND_FORCE_SDL before placing the CUTE_SOUND_IMPLEMENTATION into a - translation unit in order to force the use of SDL. Here is an example: - - #define CUTE_SOUND_FORCE_SDL - #define CUTE_SOUND_IMPLEMENTATION - #include - - If you want to use cute_sound with SDL_RWops, you must enable it by putting this - before you #include cute_sound.h: - - #define CUTE_SOUND_SDL_RWOPS - - - REVISION HISTORY - - 1.0 (06/04/2016) initial release - 1.01 (06/06/2016) load WAV from memory - separate portable and OS-specific code in cs_mix - fixed bug causing audio glitches when sounds ended - added stb_vorbis loaders + demo example - 1.02 (06/08/2016) error checking + strings in vorbis loaders - SSE2 implementation of mixer - fix typos on docs/comments - corrected volume bug introduced in 1.01 - 1.03 (07/05/2016) size calculation helper (to know size of sound in - bytes on the heap) cs_sound_size - 1.04 (12/06/2016) merged in Aaron Balint's contributions - SFFT and pitch functions from Stephan M. Bernsee - cs_mix can run on its own thread with cs_spawn_mix_thread - updated documentation, typo fixes - fixed typo in cs_malloc16 that caused heap corruption - 1.05 (12/08/2016) cs_stop_all_sounds, suggested by Aaron Balint - 1.06 (02/17/2017) port to CoreAudio for Apple machines - 1.07 (06/18/2017) SIMD the pitch shift code; swapped out old Bernsee - code for a new re-write, updated docs as necessary, - support for compiling as .c and .cpp on Windows, - port for SDL (for Linux, or any other platform). - Special thanks to DeXP (Dmitry Hrabrov) for 90% of - the work on the SDL port! - 1.08 (09/06/2017) SDL_RWops support by RobLoach - 1.09 (05/20/2018) Load wav funcs can skip all irrelevant chunks - Ref counting for playing sounds - 1.10 (08/24/2019) Introduced plugin interface, reimplemented pitch shifting - as a plugin, added optional `ctx` to alloc functions - 1.11 (04/23/2020) scalar SIMD mode and various compiler warning/error fixes - 1.12 (10/20/2021) removed old and broken assert if driver requested non- - power of two sample size for mixing updates - 2.00 (05/21/2022) redesigned the entire API for v2.00, music support, broke - the pitch/plugin interface (to be fixed), CoreAudio is not - yet tested, but the SDL2 implementation is well tested, - ALSA support is dropped entirely - - - CONTRIBUTORS - - Aaron Balint 1.04 - real time pitch - 1.04 - separate thread for cs_mix - 1.04 - bugfix, removed extra cs_free16 call for second channel - DeXP 1.07 - initial work on SDL port - RobLoach 1.08 - SDL_RWops support - Matt Rosen 1.10 - Initial experiments with cute_dsp to figure out plugin - interface needs and use-cases - fluffrabbit 1.11 - scalar SIMD mode and various compiler warning/error fixes - - - DOCUMENTATION (very quick intro) - - Steps to play audio: - - 1. create context (call cs_init) - 2. load sounds from disk into memory (call cs_load_wav, or cs_load_ogg with stb_vorbis.c) - 3. play sounds (cs_play_sound), or music (cs_music_play) - - PLUGINS - - Cute sound can add plugins at run-time to modify audio before it gets mixed. Please - refer to all the documentation near `cs_plugin_interface_t`. - - DISABLE SSE SIMD ACCELERATION - - If for whatever reason you don't want to use SSE intrinsics and instead would prefer - plain C (for example if your platform does not support SSE) then define - CUTE_SOUND_SCALAR_MODE before including cute_sound.h while also defining the - symbol definitions. Here's an example: - - #define CUTE_SOUND_IMPLEMENTATION - #define CUTE_SOUND_SCALAR_MODE - #include - - KNOWN LIMITATIONS - - * PCM mono/stereo format is the only formats the LoadWAV function supports. I don't - guarantee it will work for all kinds of wav files, but it certainly does for the common - kind (and can be changed fairly easily if someone wanted to extend it). - * Only supports 16 bits per sample. - * Mixer does not do any fancy clipping. The algorithm is to convert all 16 bit samples - to float, mix all samples, and write back to audio API as 16 bit integers. In - practice this works very well and clipping is not often a big problem. - - - FAQ - - Q : I would like to use my own memory management, how can I achieve this? - A : This header makes a couple uses of malloc/free, and cs_malloc16/cs_free16. Simply find these bits - and replace them with your own memory allocation routines. They can be wrapped up into a macro, - or call your own functions directly -- it's up to you. Generally these functions allocate fairly - large chunks of memory, and not very often (if at all). - - Q : Does this library support audio streaming? Something like System::createStream in FMOD. - A : No. Typically music files aren't that large (in the megabytes). Compare this to a typical - DXT texture of 1024x1024, at 0.5MB of memory. Now say an average music file for a game is three - minutes long. Loading this file into memory and storing it as raw 16bit samples with two channels, - would be: - - num_samples = 3 * 60 * 44100 * 2 - num_bits = num_samples * 16 - num_bytes = num_bits / 8 - num_megabytes = num_bytes / (1024 * 1024) - or 30.3mb - - So say the user has 2gb of spare RAM. That means we could fit 67 different three minute length - music files in there simultaneously. That is a ridiculous amount of spare memory. 30mb is nothing - nowadays. Just load your music file into memory all at once and then play it. - - Q : But I really need streaming of audio files from disk to save memory! Also loading my audio - files (like .OGG) takes a long time (multiple seconds). - A : It is recommended to either A) load up your music files before they are needed, perhaps during - a loading screen, or B) stream in the entire audio into memory on another thread. cs_read_mem_ogg is - a great candidate function to throw onto a job pool. Streaming is more a remnant of older machines - (like in the 90's or early 2000's) where decoding speed and RAM were real nasty bottlenecks. For - more modern machines, these aren't really concerns, even with mobile devices. If even after reading - this Q/A section you still want to stream your audio, you can try mini_al as an alternative: - https://github.com/dr-soft/mini_al -*/ - -#if !defined(CUTE_SOUND_H) - -#if defined(_WIN32) - - #if !defined _CRT_SECURE_NO_WARNINGS - #define _CRT_SECURE_NO_WARNINGS - #endif - - #if !defined _CRT_NONSTDC_NO_DEPRECATE - #define _CRT_NONSTDC_NO_DEPRECATE - #endif - -#endif - -#include -#include - -// ------------------------------------------------------------------------------------------------- -// Error handling. - -typedef enum cs_error_t -{ - CUTE_SOUND_ERROR_NONE, - CUTE_SOUND_ERROR_IMPLEMENTATION_ERROR_PLEASE_REPORT_THIS_ON_GITHUB, - CUTE_SOUND_ERROR_FILE_NOT_FOUND, - CUTE_SOUND_ERROR_INVALID_SOUND, - CUTE_SOUND_ERROR_HWND_IS_NULL, - CUTE_SOUND_ERROR_DIRECTSOUND_CREATE_FAILED, - CUTE_SOUND_ERROR_CREATESOUNDBUFFER_FAILED, - CUTE_SOUND_ERROR_SETFORMAT_FAILED, - CUTE_SOUND_ERROR_AUDIOCOMPONENTFINDNEXT_FAILED, - CUTE_SOUND_ERROR_AUDIOCOMPONENTINSTANCENEW_FAILED, - CUTE_SOUND_ERROR_FAILED_TO_SET_STREAM_FORMAT, - CUTE_SOUND_ERROR_FAILED_TO_SET_RENDER_CALLBACK, - CUTE_SOUND_ERROR_AUDIOUNITINITIALIZE_FAILED, - CUTE_SOUND_ERROR_AUDIOUNITSTART_FAILED, - CUTE_SOUND_ERROR_CANT_OPEN_AUDIO_DEVICE, - CUTE_SOUND_ERROR_CANT_INIT_SDL_AUDIO, - CUTE_SOUND_ERROR_THE_FILE_IS_NOT_A_WAV_FILE, - CUTE_SOUND_ERROR_WAV_FILE_FORMAT_CHUNK_NOT_FOUND, - CUTE_SOUND_ERROR_WAV_DATA_CHUNK_NOT_FOUND, - CUTE_SOUND_ERROR_ONLY_PCM_WAV_FILES_ARE_SUPPORTED, - CUTE_SOUND_ERROR_WAV_ONLY_MONO_OR_STEREO_IS_SUPPORTED, - CUTE_SOUND_ERROR_WAV_ONLY_16_BITS_PER_SAMPLE_SUPPORTED, - CUTE_SOUND_ERROR_CANNOT_FREE_AUDIO_SOURCE_WHILE_STILL_IN_USE, - CUTE_SOUND_ERROR_CANNOT_SWITCH_MUSIC_WHILE_PAUSED, - CUTE_SOUND_ERROR_CANNOT_CROSSFADE_WHILE_MUSIC_IS_PAUSED, - CUTE_SOUND_ERROR_CANNOT_FADEOUT_WHILE_MUSIC_IS_PAUSED, - CUTE_SOUND_ERROR_TRIED_TO_SET_SAMPLE_INDEX_BEYOND_THE_AUDIO_SOURCES_SAMPLE_COUNT, - CUTE_SOUND_ERROR_STB_VORBIS_DECODE_FAILED, - CUTE_SOUND_ERROR_OGG_UNSUPPORTED_CHANNEL_COUNT, -} cs_error_t; - -const char* cs_error_as_string(cs_error_t error); - -// ------------------------------------------------------------------------------------------------- -// Cute sound context functions. - -/** - * Pass in NULL for `os_handle`, except for the DirectSound backend this should - * be hwnd. - * play_frequency_in_Hz depends on your audio file, 44100 seems to be fine. - * buffered_samples is clamped to be at least 1024. - */ -cs_error_t cs_init(void* os_handle, unsigned play_frequency_in_Hz, int buffered_samples, void* user_allocator_context /* = NULL */); -void cs_shutdown(); - -/** - * Call this function once per game-tick. - */ -void cs_update(float dt); -void cs_set_global_volume(float volume_0_to_1); -void cs_set_global_pan(float pan_0_to_1); -void cs_set_global_pause(bool true_for_paused); -void cs_spawn_mix_thread(); -void cs_mix_thread_sleep_delay(int milliseconds); -void* cs_get_context_ptr(); -void cs_set_context_ptr(void* ctx); - -// ------------------------------------------------------------------------------------------------- -// Loaded sounds. - -typedef struct cs_audio_source_t cs_audio_source_t; - -cs_audio_source_t* cs_load_wav(const char* path, cs_error_t* err /* = NULL */); -cs_audio_source_t* cs_read_mem_wav(const void* memory, size_t size, cs_error_t* err /* = NULL */); -int cs_ref_count(cs_audio_source_t* audio); -cs_error_t cs_free_audio_source(cs_audio_source_t* audio); - -// If stb_vorbis was included *before* cute_sound go ahead and create -// some functions for dealing with OGG files. -#ifdef STB_VORBIS_INCLUDE_STB_VORBIS_H - - cs_audio_source_t* cs_load_ogg(const char* path, cs_error_t* err /* = NULL */); - cs_audio_source_t* cs_read_mem_ogg(const void* memory, size_t size, cs_error_t* err /* = NULL */); - -#endif - -// SDL_RWops specific functions -#if defined(SDL_rwops_h_) && defined(CUTE_SOUND_SDL_RWOPS) - - // Provides the ability to use cs_load_wav with an SDL_RWops object. - cs_audio_source_t* cs_load_wav_rw(SDL_RWops* context, cs_error_t* err /* = NULL */); - - #ifdef STB_VORBIS_INCLUDE_STB_VORBIS_H - - // Provides the ability to use cs_load_ogg with an SDL_RWops object. - cs_audio_source_t* cs_load_ogg_rw(SDL_RWops* rw, cs_error_t* err /* = NULL */); - - #endif - -#endif // SDL_rwops_h_ - -// ------------------------------------------------------------------------------------------------- -// Music sounds. - -cs_error_t cs_music_play(cs_audio_source_t* audio, float fade_in_time /* = 0 */); -cs_error_t cs_music_stop(float fade_out_time /* = 0 */); -void cs_music_pause(); -void cs_music_resume(); -void cs_music_set_volume(float volume_0_to_1); -void cs_music_set_pitch(float pitch); // TODO -void cs_music_set_loop(bool true_to_loop); -cs_error_t cs_music_switch_to(cs_audio_source_t* audio, float fade_out_time /* = 0 */, float fade_in_time /* = 0 */); -cs_error_t cs_music_crossfade(cs_audio_source_t* audio, float cross_fade_time /* = 0 */); - -// ------------------------------------------------------------------------------------------------- -// Playing sounds. - -typedef struct cs_playing_sound_t { uint64_t id; } cs_playing_sound_t; - -typedef struct cs_sound_params_t -{ - bool paused /* = false */; - bool looped /* = false */; - float volume /* = 1.0f */; - float pan /* = 0.5f */; - float delay /* = 0 */; -} cs_sound_params_t; - -cs_sound_params_t cs_sound_params_default(); - -cs_playing_sound_t cs_play_sound(cs_audio_source_t* audio, cs_sound_params_t params); - -bool cs_sound_is_active(cs_playing_sound_t sound); -bool cs_sound_get_is_paused(cs_playing_sound_t sound); -bool cs_sound_get_is_looped(cs_playing_sound_t sound); -float cs_sound_get_volume(cs_playing_sound_t sound); -float cs_sound_get_pitch(cs_playing_sound_t sound); // TODO -uint64_t cs_sound_get_sample_index(cs_playing_sound_t sound); -void cs_sound_set_is_paused(cs_playing_sound_t sound, bool true_for_paused); -void cs_sound_set_is_looped(cs_playing_sound_t sound, bool true_for_looped); -void cs_sound_set_volume(cs_playing_sound_t sound, float volume_0_to_1); -void cs_sound_set_pitch(cs_playing_sound_t sound, float pitch_0_to_1); // TODO -cs_error_t cs_sound_set_sample_index(cs_playing_sound_t sound, uint64_t sample_index); - -void cs_set_playing_sounds_volume(float volume_0_to_1); -void cs_stop_all_playing_sounds(); - -// ------------------------------------------------------------------------------------------------- -// Plugins. - -#define CUTE_SOUND_PLUGINS_MAX 32 - -/** - * Plugin interface. - * - * A plugin is anyone who implements one of these cs_plugin_interface_t structs - * and then calls `cs_add_plugin(ctx, plugin_ptr)`. Plugins can be implemented to - * perform custom operations on playing sounds before they mixed to the audio driver. - */ -typedef struct cs_plugin_interface_t -{ - /** - * This pointer is used to represent your plugin instance, and is pased to all callbacks as the - * `plugin_instance` pointer. This pointer is not managed by cute sound in any way. You are - * responsible for allocating and releasing all resources associated with the plugin instance. - */ - void* plugin_instance; - - /** - * Called whenever a new sound is starting to play. `playing_sound_udata` is optional, and should - * point to whatever data you would like to associate with playing sounds, on a per-playing-sound - * basis. - * - * This function is only called from user threads whenever `cs_play_sound` or `cs_insert_sound` - * is called. - */ - void (*on_make_playing_sound_fn)(void* plugin_instance, void** playing_sound_udata, cs_playing_sound_t sound); - - /** - * Called once for each time `on_make_playing_sound_fn` is called. The pointer originally assigned - * in `on_make_playing_sound_fn` will be passed back here as `playing_sound_udata`. The intent is - * to let the user free up any resources associated with the playing sound instance before the sound - * is released completely internally. - * - * This function can be called from the user thread, or from the mixer thread. - */ - void (*on_free_playing_sound_fn)(void* plugin_instance, void* playing_sound_udata, cs_playing_sound_t sound); - - /** - * Called when mixing each playing sound instance, once per channel on each playing sound instance. - * This function gives the plugin a chance to alter any audio before being mixed by cute_sound to - * the audio driver. The source audio is not alterable, however, the plugin can copy `samples_in` - * and then output modified samples in `samples_out`. - * - * `channel_index` This function is called once per source channel, so `channel_index` will be either - * 0 or 1, depending on the channel count. - * `samples_in` All audio from the playing sound's source. - * `sample_count` The number of samples in `samples_in` and expected in `samples_out`. - * `samples_out` Required to point to a valid samples buffer. The simplest case is to assign `samples_out` - * directly as `samples_in`, performing no modifications. In most cases though the plugin - * will make a copy of `(float*)samples_in`, alter the samples, and assign `samples_out` to - * point to the modified samples. `samples_out` is expected to point to a valid buffer until - * the next time `on_mix_fn` is called. Typically the plugin can hold a single buffer used - * for altered samples, and simply reuse the same buffer each time `on_mix_fn` is called. - * `playing_sound_udata` The user data `playing_sound_udata` assigned when `on_make_playing_sound_fn` was called. - * - * This function can be called from the user thread, or from the mixer thread. - */ - void (*on_mix_fn)(void* plugin_instance, int channel_index, const float* samples_in, int sample_count, float** samples_out, void* playing_sound_udata, cs_playing_sound_t sound); -} cs_plugin_interface_t; - -cs_error_t cs_add_plugin(const cs_plugin_interface_t* plugin); - -// ------------------------------------------------------------------------------------------------- -// C++ overloads. - -#ifdef __cplusplus -#endif - -#define CUTE_SOUND_H -#endif - -#ifdef CUTE_SOUND_IMPLEMENTATION -#ifndef CUTE_SOUND_IMPLEMENTATION_ONCE -#define CUTE_SOUND_IMPLEMENTATION_ONCE - -#ifndef CUTE_SOUND_MINIMUM_BUFFERED_SAMPLES -# define CUTE_SOUND_MINIMUM_BUFFERED_SAMPLES 1024 -#endif - -#if !defined(CUTE_SOUND_ASSERT) -# include -# define CUTE_SOUND_ASSERT assert -#endif - -#if !defined(CUTE_SOUND_ALLOC) - #include - #define CUTE_SOUND_ALLOC(size, ctx) malloc(size) - #define CUTE_SOUND_FREE(mem, ctx) free(mem) -#endif - -#ifndef CUTE_SOUND_MEMCPY -# include -# define CUTE_SOUND_MEMCPY memcpy -#endif - -#ifndef CUTE_SOUND_MEMSET -# include -# define CUTE_SOUND_MEMSET memset -#endif - -#ifndef CUTE_SOUND_MEMCMP -# include -# define CUTE_SOUND_MEMCMP memcmp -#endif - -#ifndef CUTE_SOUND_FOPEN -# include -# define CUTE_SOUND_FOPEN fopen -#endif - -#ifndef CUTE_SOUND_FCLOSE -# include -# define CUTE_SOUND_FCLOSE fclose -#endif - -// Platform detection. -#define CUTE_SOUND_WINDOWS 1 -#define CUTE_SOUND_APPLE 2 -#define CUTE_SOUND_LINUX 3 -#define CUTE_SOUND_SDL 4 - -#if defined(_WIN32) - - #if !defined _CRT_SECURE_NO_WARNINGS - #define _CRT_SECURE_NO_WARNINGS - #endif - - #if !defined _CRT_NONSTDC_NO_DEPRECATE - #define _CRT_NONSTDC_NO_DEPRECATE - #endif - - #define CUTE_SOUND_PLATFORM CUTE_SOUND_WINDOWS - -#elif defined(__APPLE__) - - #define CUTE_SOUND_PLATFORM CUTE_SOUND_APPLE - -#elif defined(__linux__) - - #define CUTE_SOUND_PLATFORM CUTE_SOUND_LINUX - -#else - - // Just use SDL on other esoteric platforms. - #define CUTE_SOUND_PLATFORM CUTE_SOUND_SDL - -#endif - -// Use CUTE_SOUND_FORCE_SDL to override the above macros and use the SDL port. -#ifdef CUTE_SOUND_FORCE_SDL - - #undef CUTE_SOUND_PLATFORM - #define CUTE_SOUND_PLATFORM CUTE_SOUND_SDL - -#endif - -// Platform specific file inclusions. -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - - #ifndef _WINDOWS_ - #ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN - #endif - #include - #endif - - #ifndef _WAVEFORMATEX_ - #include - #include - #endif - - #include - #undef PlaySound - - #ifdef _MSC_VER - #pragma comment(lib, "dsound.lib") - #endif - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - - #include - #include - #include - #include - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - #include - #ifndef _WIN32 - #include - #endif - -#else - - #error Unsupported platform - please choose one of CUTE_SOUND_WINDOWS, CUTE_SOUND_APPLE, CUTE_SOUND_LINUX or CUTE_SOUND_SDL. - -#endif - -#ifdef CUTE_SOUND_SCALAR_MODE - - #include - - #define CUTE_SOUND_SATURATE16(X) (int16_t)((X) > SHRT_MAX ? SHRT_MAX : ((X) < SHRT_MIN ? SHRT_MIN : (X))) - - typedef struct cs__m128 - { - float a, b, c, d; - } cs__m128; - - typedef struct cs__m128i - { - int32_t a, b, c, d; - } cs__m128i; - - cs__m128 cs_mm_set_ps(float e3, float e2, float e1, float e0) - { - cs__m128 a; - a.a = e0; - a.b = e1; - a.c = e2; - a.d = e3; - return a; - } - - cs__m128 cs_mm_set1_ps(float e) - { - cs__m128 a; - a.a = e; - a.b = e; - a.c = e; - a.d = e; - return a; - } - - cs__m128 cs_mm_load_ps(float const* mem_addr) - { - cs__m128 a; - a.a = mem_addr[0]; - a.b = mem_addr[1]; - a.c = mem_addr[2]; - a.d = mem_addr[3]; - return a; - } - - cs__m128 cs_mm_add_ps(cs__m128 a, cs__m128 b) - { - cs__m128 c; - c.a = a.a + b.a; - c.b = a.b + b.b; - c.c = a.c + b.c; - c.d = a.d + b.d; - return c; - } - - cs__m128 cs_mm_mul_ps(cs__m128 a, cs__m128 b) - { - cs__m128 c; - c.a = a.a * b.a; - c.b = a.b * b.b; - c.c = a.c * b.c; - c.d = a.d * b.d; - return c; - } - - cs__m128i cs_mm_cvtps_epi32(cs__m128 a) - { - cs__m128i b; - b.a = a.a; - b.b = a.b; - b.c = a.c; - b.d = a.d; - return b; - } - - cs__m128i cs_mm_unpacklo_epi32(cs__m128i a, cs__m128i b) - { - cs__m128i c; - c.a = a.a; - c.b = b.a; - c.c = a.b; - c.d = b.b; - return c; - } - - cs__m128i cs_mm_unpackhi_epi32(cs__m128i a, cs__m128i b) - { - cs__m128i c; - c.a = a.c; - c.b = b.c; - c.c = a.d; - c.d = b.d; - return c; - } - - cs__m128i cs_mm_packs_epi32(cs__m128i a, cs__m128i b) - { - union { - int16_t c[8]; - cs__m128i m; - } dst; - dst.c[0] = CUTE_SOUND_SATURATE16(a.a); - dst.c[1] = CUTE_SOUND_SATURATE16(a.b); - dst.c[2] = CUTE_SOUND_SATURATE16(a.c); - dst.c[3] = CUTE_SOUND_SATURATE16(a.d); - dst.c[4] = CUTE_SOUND_SATURATE16(b.a); - dst.c[5] = CUTE_SOUND_SATURATE16(b.b); - dst.c[6] = CUTE_SOUND_SATURATE16(b.c); - dst.c[7] = CUTE_SOUND_SATURATE16(b.d); - return dst.m; - } - -#else // CUTE_SOUND_SCALAR_MODE - - #include - #include - - #define cs__m128 __m128 - #define cs__m128i __m128i - - #define cs_mm_set_ps _mm_set_ps - #define cs_mm_set1_ps _mm_set1_ps - #define cs_mm_load_ps _mm_load_ps - #define cs_mm_add_ps _mm_add_ps - #define cs_mm_mul_ps _mm_mul_ps - #define cs_mm_cvtps_epi32 _mm_cvtps_epi32 - #define cs_mm_unpacklo_epi32 _mm_unpacklo_epi32 - #define cs_mm_unpackhi_epi32 _mm_unpackhi_epi32 - #define cs_mm_packs_epi32 _mm_packs_epi32 - -#endif // CUTE_SOUND_SCALAR_MODE - -#define CUTE_SOUND_ALIGN(X, Y) ((((size_t)X) + ((Y) - 1)) & ~((Y) - 1)) -#define CUTE_SOUND_TRUNC(X, Y) ((size_t)(X) & ~((Y) - 1)) - -// ------------------------------------------------------------------------------------------------- -// hashtable.h implementation by Mattias Gustavsson -// See: http://www.mattiasgustavsson.com/ and https://github.com/mattiasgustavsson/libs/blob/master/hashtable.h -// begin hashtable.h - -#ifndef HASHTABLE_MEMSET - #define HASHTABLE_MEMSET(ptr, val, n) CUTE_SOUND_MEMSET(ptr, val, n) -#endif - -#ifndef HASHTABLE_MEMCPY - #define HASHTABLE_MEMCPY(dst, src, n) CUTE_SOUND_MEMCPY(dst, src, n) -#endif - -#ifndef HASHTABLE_MALLOC - #define HASHTABLE_MALLOC(ctx, size) CUTE_SOUND_ALLOC(size, ctx) -#endif - -#ifndef HASHTABLE_FREE - #define HASHTABLE_FREE(ctx, ptr) CUTE_SOUND_FREE(ptr, ctx) -#endif - -/* ------------------------------------------------------------------------------- - Licensing information can be found at the end of the file. ------------------------------------------------------------------------------- -hashtable.h - v1.1 - Cache efficient hash table implementation for C/C++. -Do this: - #define HASHTABLE_IMPLEMENTATION -before you include this file in *one* C/C++ file to create the implementation. -*/ - -#ifndef hashtable_h -#define hashtable_h - -#ifndef HASHTABLE_U64 - #define HASHTABLE_U64 unsigned long long -#endif - -typedef struct hashtable_t hashtable_t; - -void hashtable_init( hashtable_t* table, int item_size, int initial_capacity, void* memctx ); -void hashtable_term( hashtable_t* table ); - -void* hashtable_insert( hashtable_t* table, HASHTABLE_U64 key, void const* item ); -void hashtable_remove( hashtable_t* table, HASHTABLE_U64 key ); -void hashtable_clear( hashtable_t* table ); - -void* hashtable_find( hashtable_t const* table, HASHTABLE_U64 key ); - -int hashtable_count( hashtable_t const* table ); -void* hashtable_items( hashtable_t const* table ); -HASHTABLE_U64 const* hashtable_keys( hashtable_t const* table ); - -void hashtable_swap( hashtable_t* table, int index_a, int index_b ); - - -#endif /* hashtable_h */ - -/* ----------------------- - IMPLEMENTATION ----------------------- -*/ - -#ifndef hashtable_t_h -#define hashtable_t_h - -#ifndef HASHTABLE_U32 - #define HASHTABLE_U32 unsigned int -#endif - -struct hashtable_internal_slot_t - { - HASHTABLE_U32 key_hash; - int item_index; - int base_count; - }; - -struct hashtable_t - { - void* memctx; - int count; - int item_size; - - struct hashtable_internal_slot_t* slots; - int slot_capacity; - - HASHTABLE_U64* items_key; - int* items_slot; - void* items_data; - int item_capacity; - - void* swap_temp; - }; - -#endif /* hashtable_t_h */ - -// end hashtable.h - -#define HASHTABLE_IMPLEMENTATION - -#ifdef HASHTABLE_IMPLEMENTATION -#ifndef HASHTABLE_IMPLEMENTATION_ONCE -#define HASHTABLE_IMPLEMENTATION_ONCE - -// hashtable.h implementation by Mattias Gustavsson -// See: http://www.mattiasgustavsson.com/ and https://github.com/mattiasgustavsson/libs/blob/master/hashtable.h -// begin hashtable.h (continuing from first time) - -#ifndef HASHTABLE_SIZE_T - #include - #define HASHTABLE_SIZE_T size_t -#endif - -#ifndef HASHTABLE_ASSERT - #include - #define HASHTABLE_ASSERT( x ) assert( x ) -#endif - -#ifndef HASHTABLE_MEMSET - #include - #define HASHTABLE_MEMSET( ptr, val, cnt ) ( memset( ptr, val, cnt ) ) -#endif - -#ifndef HASHTABLE_MEMCPY - #include - #define HASHTABLE_MEMCPY( dst, src, cnt ) ( memcpy( dst, src, cnt ) ) -#endif - -#ifndef HASHTABLE_MALLOC - #include - #define HASHTABLE_MALLOC( ctx, size ) ( malloc( size ) ) - #define HASHTABLE_FREE( ctx, ptr ) ( free( ptr ) ) -#endif - - -static HASHTABLE_U32 hashtable_internal_pow2ceil( HASHTABLE_U32 v ) - { - --v; - v |= v >> 1; - v |= v >> 2; - v |= v >> 4; - v |= v >> 8; - v |= v >> 16; - ++v; - v += ( v == 0 ); - return v; - } - - -void hashtable_init( hashtable_t* table, int item_size, int initial_capacity, void* memctx ) - { - initial_capacity = (int)hashtable_internal_pow2ceil( initial_capacity >=0 ? (HASHTABLE_U32) initial_capacity : 32U ); - table->memctx = memctx; - table->count = 0; - table->item_size = item_size; - table->slot_capacity = (int) hashtable_internal_pow2ceil( (HASHTABLE_U32) ( initial_capacity + initial_capacity / 2 ) ); - int slots_size = (int)( table->slot_capacity * sizeof( *table->slots ) ); - table->slots = (struct hashtable_internal_slot_t*) HASHTABLE_MALLOC( table->memctx, (HASHTABLE_SIZE_T) slots_size ); - HASHTABLE_ASSERT( table->slots ); - HASHTABLE_MEMSET( table->slots, 0, (HASHTABLE_SIZE_T) slots_size ); - table->item_capacity = (int) hashtable_internal_pow2ceil( (HASHTABLE_U32) initial_capacity ); - table->items_key = (HASHTABLE_U64*) HASHTABLE_MALLOC( table->memctx, - table->item_capacity * ( sizeof( *table->items_key ) + sizeof( *table->items_slot ) + table->item_size ) + table->item_size ); - HASHTABLE_ASSERT( table->items_key ); - table->items_slot = (int*)( table->items_key + table->item_capacity ); - table->items_data = (void*)( table->items_slot + table->item_capacity ); - table->swap_temp = (void*)( ( (uintptr_t) table->items_data ) + table->item_size * table->item_capacity ); - } - - -void hashtable_term( hashtable_t* table ) - { - HASHTABLE_FREE( table->memctx, table->items_key ); - HASHTABLE_FREE( table->memctx, table->slots ); - } - - -// from https://gist.github.com/badboy/6267743 -static HASHTABLE_U32 hashtable_internal_calculate_hash( HASHTABLE_U64 key ) - { - key = ( ~key ) + ( key << 18 ); - key = key ^ ( key >> 31 ); - key = key * 21; - key = key ^ ( key >> 11 ); - key = key + ( key << 6 ); - key = key ^ ( key >> 22 ); - HASHTABLE_ASSERT( key ); - return (HASHTABLE_U32) key; - } - - -static int hashtable_internal_find_slot( hashtable_t const* table, HASHTABLE_U64 key ) - { - int const slot_mask = table->slot_capacity - 1; - HASHTABLE_U32 const hash = hashtable_internal_calculate_hash( key ); - - int const base_slot = (int)( hash & (HASHTABLE_U32)slot_mask ); - int base_count = table->slots[ base_slot ].base_count; - int slot = base_slot; - - while( base_count > 0 ) - { - HASHTABLE_U32 slot_hash = table->slots[ slot ].key_hash; - if( slot_hash ) - { - int slot_base = (int)( slot_hash & (HASHTABLE_U32)slot_mask ); - if( slot_base == base_slot ) - { - HASHTABLE_ASSERT( base_count > 0 ); - --base_count; - if( slot_hash == hash && table->items_key[ table->slots[ slot ].item_index ] == key ) - return slot; - } - } - slot = ( slot + 1 ) & slot_mask; - } - - return -1; - } - - -static void hashtable_internal_expand_slots( hashtable_t* table ) - { - int const old_capacity = table->slot_capacity; - struct hashtable_internal_slot_t* old_slots = table->slots; - - table->slot_capacity *= 2; - int const slot_mask = table->slot_capacity - 1; - - int const size = (int)( table->slot_capacity * sizeof( *table->slots ) ); - table->slots = (struct hashtable_internal_slot_t*) HASHTABLE_MALLOC( table->memctx, (HASHTABLE_SIZE_T) size ); - HASHTABLE_ASSERT( table->slots ); - HASHTABLE_MEMSET( table->slots, 0, (HASHTABLE_SIZE_T) size ); - - for( int i = 0; i < old_capacity; ++i ) - { - HASHTABLE_U32 const hash = old_slots[ i ].key_hash; - if( hash ) - { - int const base_slot = (int)( hash & (HASHTABLE_U32)slot_mask ); - int slot = base_slot; - while( table->slots[ slot ].key_hash ) - slot = ( slot + 1 ) & slot_mask; - table->slots[ slot ].key_hash = hash; - int item_index = old_slots[ i ].item_index; - table->slots[ slot ].item_index = item_index; - table->items_slot[ item_index ] = slot; - ++table->slots[ base_slot ].base_count; - } - } - - HASHTABLE_FREE( table->memctx, old_slots ); - } - - -static void hashtable_internal_expand_items( hashtable_t* table ) - { - table->item_capacity *= 2; - HASHTABLE_U64* const new_items_key = (HASHTABLE_U64*) HASHTABLE_MALLOC( table->memctx, - table->item_capacity * ( sizeof( *table->items_key ) + sizeof( *table->items_slot ) + table->item_size ) + table->item_size); - HASHTABLE_ASSERT( new_items_key ); - - int* const new_items_slot = (int*)( new_items_key + table->item_capacity ); - void* const new_items_data = (void*)( new_items_slot + table->item_capacity ); - void* const new_swap_temp = (void*)( ( (uintptr_t) new_items_data ) + table->item_size * table->item_capacity ); - - HASHTABLE_MEMCPY( new_items_key, table->items_key, table->count * sizeof( *table->items_key ) ); - HASHTABLE_MEMCPY( new_items_slot, table->items_slot, table->count * sizeof( *table->items_key ) ); - HASHTABLE_MEMCPY( new_items_data, table->items_data, (HASHTABLE_SIZE_T) table->count * table->item_size ); - - HASHTABLE_FREE( table->memctx, table->items_key ); - - table->items_key = new_items_key; - table->items_slot = new_items_slot; - table->items_data = new_items_data; - table->swap_temp = new_swap_temp; - } - - -void* hashtable_insert( hashtable_t* table, HASHTABLE_U64 key, void const* item ) - { - HASHTABLE_ASSERT( hashtable_internal_find_slot( table, key ) < 0 ); - - if( table->count >= ( table->slot_capacity - table->slot_capacity / 3 ) ) - hashtable_internal_expand_slots( table ); - - int const slot_mask = table->slot_capacity - 1; - HASHTABLE_U32 const hash = hashtable_internal_calculate_hash( key ); - - int const base_slot = (int)( hash & (HASHTABLE_U32)slot_mask ); - int base_count = table->slots[ base_slot ].base_count; - int slot = base_slot; - int first_free = slot; - while( base_count ) - { - HASHTABLE_U32 const slot_hash = table->slots[ slot ].key_hash; - if( slot_hash == 0 && table->slots[ first_free ].key_hash != 0 ) first_free = slot; - int slot_base = (int)( slot_hash & (HASHTABLE_U32)slot_mask ); - if( slot_base == base_slot ) - --base_count; - slot = ( slot + 1 ) & slot_mask; - } - - slot = first_free; - while( table->slots[ slot ].key_hash ) - slot = ( slot + 1 ) & slot_mask; - - if( table->count >= table->item_capacity ) - hashtable_internal_expand_items( table ); - - HASHTABLE_ASSERT( !table->slots[ slot ].key_hash && ( hash & (HASHTABLE_U32) slot_mask ) == (HASHTABLE_U32) base_slot ); - HASHTABLE_ASSERT( hash ); - table->slots[ slot ].key_hash = hash; - table->slots[ slot ].item_index = table->count; - ++table->slots[ base_slot ].base_count; - - - void* dest_item = (void*)( ( (uintptr_t) table->items_data ) + table->count * table->item_size ); - memcpy( dest_item, item, (HASHTABLE_SIZE_T) table->item_size ); - table->items_key[ table->count ] = key; - table->items_slot[ table->count ] = slot; - ++table->count; - return dest_item; - } - - -void hashtable_remove( hashtable_t* table, HASHTABLE_U64 key ) - { - int const slot = hashtable_internal_find_slot( table, key ); - HASHTABLE_ASSERT( slot >= 0 ); - - int const slot_mask = table->slot_capacity - 1; - HASHTABLE_U32 const hash = table->slots[ slot ].key_hash; - int const base_slot = (int)( hash & (HASHTABLE_U32) slot_mask ); - HASHTABLE_ASSERT( hash ); - --table->slots[ base_slot ].base_count; - table->slots[ slot ].key_hash = 0; - - int index = table->slots[ slot ].item_index; - int last_index = table->count - 1; - if( index != last_index ) - { - table->items_key[ index ] = table->items_key[ last_index ]; - table->items_slot[ index ] = table->items_slot[ last_index ]; - void* dst_item = (void*)( ( (uintptr_t) table->items_data ) + index * table->item_size ); - void* src_item = (void*)( ( (uintptr_t) table->items_data ) + last_index * table->item_size ); - HASHTABLE_MEMCPY( dst_item, src_item, (HASHTABLE_SIZE_T) table->item_size ); - table->slots[ table->items_slot[ last_index ] ].item_index = index; - } - --table->count; - } - - -void hashtable_clear( hashtable_t* table ) - { - table->count = 0; - HASHTABLE_MEMSET( table->slots, 0, table->slot_capacity * sizeof( *table->slots ) ); - } - - -void* hashtable_find( hashtable_t const* table, HASHTABLE_U64 key ) - { - int const slot = hashtable_internal_find_slot( table, key ); - if( slot < 0 ) return 0; - - int const index = table->slots[ slot ].item_index; - void* const item = (void*)( ( (uintptr_t) table->items_data ) + index * table->item_size ); - return item; - } - - -int hashtable_count( hashtable_t const* table ) - { - return table->count; - } - - -void* hashtable_items( hashtable_t const* table ) - { - return table->items_data; - } - - -HASHTABLE_U64 const* hashtable_keys( hashtable_t const* table ) - { - return table->items_key; - } - - -void hashtable_swap( hashtable_t* table, int index_a, int index_b ) - { - if( index_a < 0 || index_a >= table->count || index_b < 0 || index_b >= table->count ) return; - - int slot_a = table->items_slot[ index_a ]; - int slot_b = table->items_slot[ index_b ]; - - table->items_slot[ index_a ] = slot_b; - table->items_slot[ index_b ] = slot_a; - - HASHTABLE_U64 temp_key = table->items_key[ index_a ]; - table->items_key[ index_a ] = table->items_key[ index_b ]; - table->items_key[ index_b ] = temp_key; - - void* item_a = (void*)( ( (uintptr_t) table->items_data ) + index_a * table->item_size ); - void* item_b = (void*)( ( (uintptr_t) table->items_data ) + index_b * table->item_size ); - HASHTABLE_MEMCPY( table->swap_temp, item_a, table->item_size ); - HASHTABLE_MEMCPY( item_a, item_b, table->item_size ); - HASHTABLE_MEMCPY( item_b, table->swap_temp, table->item_size ); - - table->slots[ slot_a ].item_index = index_b; - table->slots[ slot_b ].item_index = index_a; - } - - -#endif /* HASHTABLE_IMPLEMENTATION */ -#endif // HASHTABLE_IMPLEMENTATION_ONCE - -/* -contributors: - Randy Gaul (hashtable_clear, hashtable_swap ) -revision history: - 1.1 added hashtable_clear, hashtable_swap - 1.0 first released version -*/ - -/* ------------------------------------------------------------------------------- -This software is available under 2 licenses - you may choose the one you like. ------------------------------------------------------------------------------- -ALTERNATIVE A - MIT License -Copyright (c) 2015 Mattias Gustavsson -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. ------------------------------------------------------------------------------- -*/ - -// end of hashtable.h - -// ------------------------------------------------------------------------------------------------- -// Doubly list. - -typedef struct cs_list_node_t -{ - struct cs_list_node_t* next /* = this */; - struct cs_list_node_t* prev /* = this */; -} cs_list_node_t; - -typedef struct cs_list_t -{ - cs_list_node_t nodes; -} cs_list_t; - -#define CUTE_SOUND_OFFSET_OF(T, member) ((size_t)((uintptr_t)(&(((T*)0)->member)))) -#define CUTE_SOUND_LIST_NODE(T, member, ptr) ((cs_list_node_t*)((uintptr_t)ptr + CUTE_SOUND_OFFSET_OF(T, member))) -#define CUTE_SOUND_LIST_HOST(T, member, ptr) ((T*)((uintptr_t)ptr - CUTE_SOUND_OFFSET_OF(T, member))) - -void cs_list_init_node(cs_list_node_t* node) -{ - node->next = node; - node->prev = node; -} - -void cs_list_init(cs_list_t* list) -{ - cs_list_init_node(&list->nodes); -} - -void cs_list_push_front(cs_list_t* list, cs_list_node_t* node) -{ - node->next = list->nodes.next; - node->prev = &list->nodes; - list->nodes.next->prev = node; - list->nodes.next = node; -} - -void cs_list_push_back(cs_list_t* list, cs_list_node_t* node) -{ - node->prev = list->nodes.prev; - node->next = &list->nodes; - list->nodes.prev->next = node; - list->nodes.prev = node; -} - -void cs_list_remove(cs_list_node_t* node) -{ - node->prev->next = node->next; - node->next->prev = node->prev; - cs_list_init_node(node); -} - -cs_list_node_t* cs_list_pop_front(cs_list_t* list) -{ - cs_list_node_t* node = list->nodes.next; - cs_list_remove(node); - return node; -} - -cs_list_node_t* cs_list_pop_back(cs_list_t* list) -{ - cs_list_node_t* node = list->nodes.prev; - cs_list_remove(node); - return node; -} - -int cs_list_empty(cs_list_t* list) -{ - return list->nodes.next == list->nodes.prev && list->nodes.next == &list->nodes; -} - -cs_list_node_t* cs_list_begin(cs_list_t* list) -{ - return list->nodes.next; -} - -cs_list_node_t* cs_list_end(cs_list_t* list) -{ - return &list->nodes; -} - -cs_list_node_t* cs_list_front(cs_list_t* list) -{ - return list->nodes.next; -} - -cs_list_node_t* cs_list_back(cs_list_t* list) -{ - return list->nodes.prev; -} - -// ------------------------------------------------------------------------------------------------- - -const char* cs_error_as_string(cs_error_t error) { - switch (error) { - case CUTE_SOUND_ERROR_NONE: return "CUTE_SOUND_ERROR_NONE"; - case CUTE_SOUND_ERROR_IMPLEMENTATION_ERROR_PLEASE_REPORT_THIS_ON_GITHUB: return "CUTE_SOUND_ERROR_IMPLEMENTATION_ERROR_PLEASE_REPORT_THIS_ON_GITHUB"; - case CUTE_SOUND_ERROR_FILE_NOT_FOUND: return "CUTE_SOUND_ERROR_FILE_NOT_FOUND"; - case CUTE_SOUND_ERROR_INVALID_SOUND: return "CUTE_SOUND_ERROR_INVALID_SOUND"; - case CUTE_SOUND_ERROR_HWND_IS_NULL: return "CUTE_SOUND_ERROR_HWND_IS_NULL"; - case CUTE_SOUND_ERROR_DIRECTSOUND_CREATE_FAILED: return "CUTE_SOUND_ERROR_DIRECTSOUND_CREATE_FAILED"; - case CUTE_SOUND_ERROR_CREATESOUNDBUFFER_FAILED: return "CUTE_SOUND_ERROR_CREATESOUNDBUFFER_FAILED"; - case CUTE_SOUND_ERROR_SETFORMAT_FAILED: return "CUTE_SOUND_ERROR_SETFORMAT_FAILED"; - case CUTE_SOUND_ERROR_AUDIOCOMPONENTFINDNEXT_FAILED: return "CUTE_SOUND_ERROR_AUDIOCOMPONENTFINDNEXT_FAILED"; - case CUTE_SOUND_ERROR_AUDIOCOMPONENTINSTANCENEW_FAILED: return "CUTE_SOUND_ERROR_AUDIOCOMPONENTINSTANCENEW_FAILED"; - case CUTE_SOUND_ERROR_FAILED_TO_SET_STREAM_FORMAT: return "CUTE_SOUND_ERROR_FAILED_TO_SET_STREAM_FORMAT"; - case CUTE_SOUND_ERROR_FAILED_TO_SET_RENDER_CALLBACK: return "CUTE_SOUND_ERROR_FAILED_TO_SET_RENDER_CALLBACK"; - case CUTE_SOUND_ERROR_AUDIOUNITINITIALIZE_FAILED: return "CUTE_SOUND_ERROR_AUDIOUNITINITIALIZE_FAILED"; - case CUTE_SOUND_ERROR_AUDIOUNITSTART_FAILED: return "CUTE_SOUND_ERROR_AUDIOUNITSTART_FAILED"; - case CUTE_SOUND_ERROR_CANT_OPEN_AUDIO_DEVICE: return "CUTE_SOUND_ERROR_CANT_OPEN_AUDIO_DEVICE"; - case CUTE_SOUND_ERROR_CANT_INIT_SDL_AUDIO: return "CUTE_SOUND_ERROR_CANT_INIT_SDL_AUDIO"; - case CUTE_SOUND_ERROR_THE_FILE_IS_NOT_A_WAV_FILE: return "CUTE_SOUND_ERROR_THE_FILE_IS_NOT_A_WAV_FILE"; - case CUTE_SOUND_ERROR_WAV_FILE_FORMAT_CHUNK_NOT_FOUND: return "CUTE_SOUND_ERROR_WAV_FILE_FORMAT_CHUNK_NOT_FOUND"; - case CUTE_SOUND_ERROR_WAV_DATA_CHUNK_NOT_FOUND: return "CUTE_SOUND_ERROR_WAV_DATA_CHUNK_NOT_FOUND"; - case CUTE_SOUND_ERROR_ONLY_PCM_WAV_FILES_ARE_SUPPORTED: return "CUTE_SOUND_ERROR_ONLY_PCM_WAV_FILES_ARE_SUPPORTED"; - case CUTE_SOUND_ERROR_WAV_ONLY_MONO_OR_STEREO_IS_SUPPORTED: return "CUTE_SOUND_ERROR_WAV_ONLY_MONO_OR_STEREO_IS_SUPPORTED"; - case CUTE_SOUND_ERROR_WAV_ONLY_16_BITS_PER_SAMPLE_SUPPORTED: return "CUTE_SOUND_ERROR_WAV_ONLY_16_BITS_PER_SAMPLE_SUPPORTED"; - case CUTE_SOUND_ERROR_CANNOT_FREE_AUDIO_SOURCE_WHILE_STILL_IN_USE: return "CUTE_SOUND_ERROR_CANNOT_FREE_AUDIO_SOURCE_WHILE_STILL_IN_USE"; - case CUTE_SOUND_ERROR_CANNOT_SWITCH_MUSIC_WHILE_PAUSED: return "CUTE_SOUND_ERROR_CANNOT_SWITCH_MUSIC_WHILE_PAUSED"; - case CUTE_SOUND_ERROR_CANNOT_CROSSFADE_WHILE_MUSIC_IS_PAUSED: return "CUTE_SOUND_ERROR_CANNOT_CROSSFADE_WHILE_MUSIC_IS_PAUSED"; - case CUTE_SOUND_ERROR_CANNOT_FADEOUT_WHILE_MUSIC_IS_PAUSED: return "CUTE_SOUND_ERROR_CANNOT_FADEOUT_WHILE_MUSIC_IS_PAUSED"; - case CUTE_SOUND_ERROR_TRIED_TO_SET_SAMPLE_INDEX_BEYOND_THE_AUDIO_SOURCES_SAMPLE_COUNT: return "CUTE_SOUND_ERROR_TRIED_TO_SET_SAMPLE_INDEX_BEYOND_THE_AUDIO_SOURCES_SAMPLE_COUNT"; - case CUTE_SOUND_ERROR_STB_VORBIS_DECODE_FAILED: return "CUTE_SOUND_ERROR_STB_VORBIS_DECODE_FAILED"; - case CUTE_SOUND_ERROR_OGG_UNSUPPORTED_CHANNEL_COUNT: return "CUTE_SOUND_ERROR_OGG_UNSUPPORTED_CHANNEL_COUN"; - default: return "UNKNOWN"; - } -} - -// Cute sound context functions. - -void cs_mix(); - -typedef struct cs_audio_source_t -{ - int sample_rate; - int sample_count; - int channel_count; - - // Number of instances currently referencing this audio. Must be zero - // in order to safely delete the audio. References are automatically - // updated whenever playing instances are inserted into the context. - int playing_count; - - // The actual raw audio samples in memory. - void* channels[2]; -} cs_audio_source_t; - -typedef struct cs_sound_inst_t -{ - uint64_t id; - bool is_music; - bool active; - bool paused; - bool looped; - float volume; - float pan0; - float pan1; - uint64_t sample_index; - cs_audio_source_t* audio; - cs_list_node_t node; -} cs_sound_inst_t; - -typedef enum cs_music_state_t -{ - CUTE_SOUND_MUSIC_STATE_NONE, - CUTE_SOUND_MUSIC_STATE_PLAYING, - CUTE_SOUND_MUSIC_STATE_FADE_OUT, - CUTE_SOUND_MUSIC_STATE_FADE_IN, - CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0, - CUTE_SOUND_MUSIC_STATE_SWITCH_TO_1, - CUTE_SOUND_MUSIC_STATE_CROSSFADE, - CUTE_SOUND_MUSIC_STATE_PAUSED -} cs_music_state_t; - -#define CUTE_SOUND_PAGE_INSTANCE_COUNT 1024 - -typedef struct cs_inst_page_t -{ - struct cs_inst_page_t* next; - cs_sound_inst_t instances[CUTE_SOUND_PAGE_INSTANCE_COUNT]; -} cs_inst_page_t; - -typedef struct cs_context_t -{ - float global_pan /* = 0.5f */; - float global_volume /* = 1.0f */; - bool global_pause /* = false */; - float music_volume /* = 1.0f */; - float sound_volume /* = 1.0f */; - - bool music_paused /* = false */; - bool music_looped /* = true */; - float t /* = 0 */; - float fade /* = 0 */; - float fade_switch_1 /* = 0 */; - cs_music_state_t music_state /* = MUSIC_STATE_NONE */; - cs_music_state_t music_state_to_resume_from_paused /* = MUSIC_STATE_NONE */; - cs_sound_inst_t* music_playing /* = NULL */; - cs_sound_inst_t* music_next /* = NULL */; - - uint64_t instance_id_gen /* = 1 */; - hashtable_t instance_map; // - cs_inst_page_t* pages /* = NULL */; - cs_list_t playing_sounds; - cs_list_t free_sounds; - void* mem_ctx /* = NULL */; - - unsigned latency_samples; - int Hz; - int bps; - int wide_count; - cs__m128* floatA; - cs__m128* floatB; - cs__m128i* samples; - bool separate_thread; - bool running; - int sleep_milliseconds; - int plugin_count; - cs_plugin_interface_t plugins[CUTE_SOUND_PLUGINS_MAX]; - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - unsigned running_index; - int buffer_size; - LPDIRECTSOUND dsound; - LPDIRECTSOUNDBUFFER primary; - LPDIRECTSOUNDBUFFER secondary; - - // data for cs_mix thread, enable these with cs_spawn_mix_thread - CRITICAL_SECTION critical_section; - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - - unsigned index0; // read - unsigned index1; // write - unsigned samples_in_circular_buffer; - int sample_count; - - // platform specific stuff - AudioComponentInstance inst; - - // data for cs_mix thread, enable these with cs_spawn_mix_thread - pthread_t thread; - pthread_mutex_t mutex; - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - unsigned index0; // read - unsigned index1; // write - unsigned samples_in_circular_buffer; - int sample_count; - SDL_AudioDeviceID dev; - - // data for cs_mix thread, enable these with cs_spawn_mix_thread - SDL_Thread* thread; - SDL_mutex* mutex; - -#endif -} cs_context_t; - -cs_context_t* s_ctx = NULL; - -void cs_sleep(int milliseconds) -{ -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - Sleep(milliseconds); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - struct timespec ts = { 0, milliseconds * 1000000 }; - nanosleep(&ts, NULL); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - SDL_Delay(milliseconds); -#endif -} - -static void* cs_malloc16(size_t size, void* mem_ctx) -{ - (void)mem_ctx; - void* p = CUTE_SOUND_ALLOC(size + 16, mem_ctx); - if (!p) return 0; - unsigned char offset = (size_t)p & 15; - p = (void*)CUTE_SOUND_ALIGN(p + 1, 16); - *((char*)p - 1) = 16 - offset; - CUTE_SOUND_ASSERT(!((size_t)p & 15)); - return p; -} - -static void cs_free16(void* p, void* mem_ctx) -{ - (void)mem_ctx; - if (!p) return; - CUTE_SOUND_FREE((char*)p - (((size_t)*((char*)p - 1)) & 0xFF), NULL); -} - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL || CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - - static int cs_samples_written() - { - return s_ctx->samples_in_circular_buffer; - } - - static int cs_samples_unwritten() - { - return s_ctx->sample_count - s_ctx->samples_in_circular_buffer; - } - - static int cs_samples_to_mix() - { - int lat = s_ctx->latency_samples; - int written = cs_samples_written(); - int dif = lat - written; - CUTE_SOUND_ASSERT(dif >= 0); - if (dif) - { - int unwritten = cs_samples_unwritten(); - return dif < unwritten ? dif : unwritten; - } - return 0; - } - - #define CUTE_SOUND_SAMPLES_TO_BYTES(interleaved_sample_count) ((interleaved_sample_count) * s_ctx->bps) - #define CUTE_SOUND_BYTES_TO_SAMPLES(byte_count) ((byte_count) / s_ctx->bps) - - static void cs_push_bytes(void* data, int size) - { - int index1 = s_ctx->index1; - int samples_to_write = CUTE_SOUND_BYTES_TO_SAMPLES(size); - int sample_count = s_ctx->sample_count; - - int unwritten = cs_samples_unwritten(); - if (unwritten < samples_to_write) samples_to_write = unwritten; - int samples_to_end = sample_count - index1; - - if (samples_to_write > samples_to_end) { - CUTE_SOUND_MEMCPY((char*)s_ctx->samples + CUTE_SOUND_SAMPLES_TO_BYTES(index1), data, CUTE_SOUND_SAMPLES_TO_BYTES(samples_to_end)); - CUTE_SOUND_MEMCPY(s_ctx->samples, (char*)data + CUTE_SOUND_SAMPLES_TO_BYTES(samples_to_end), size - CUTE_SOUND_SAMPLES_TO_BYTES(samples_to_end)); - s_ctx->index1 = (samples_to_write - samples_to_end) % sample_count; - } else { - CUTE_SOUND_MEMCPY((char*)s_ctx->samples + CUTE_SOUND_SAMPLES_TO_BYTES(index1), data, size); - s_ctx->index1 = (s_ctx->index1 + samples_to_write) % sample_count; - } - - s_ctx->samples_in_circular_buffer += samples_to_write; - } - - static int cs_pull_bytes(void* dst, int size) - { - int index0 = s_ctx->index0; - int allowed_size = CUTE_SOUND_SAMPLES_TO_BYTES(cs_samples_written()); - int sample_count = s_ctx->sample_count; - int zeros = 0; - - if (allowed_size < size) { - zeros = size - allowed_size; - size = allowed_size; - } - - int samples_to_read = CUTE_SOUND_BYTES_TO_SAMPLES(size); - int samples_to_end = sample_count - index0; - - if (samples_to_read > samples_to_end) { - CUTE_SOUND_MEMCPY(dst, ((char*)s_ctx->samples) + CUTE_SOUND_SAMPLES_TO_BYTES(index0), CUTE_SOUND_SAMPLES_TO_BYTES(samples_to_end)); - CUTE_SOUND_MEMCPY(((char*)dst) + CUTE_SOUND_SAMPLES_TO_BYTES(samples_to_end), s_ctx->samples, size - CUTE_SOUND_SAMPLES_TO_BYTES(samples_to_end)); - s_ctx->index0 = (samples_to_read - samples_to_end) % sample_count; - } else { - CUTE_SOUND_MEMCPY(dst, ((char*)s_ctx->samples) + CUTE_SOUND_SAMPLES_TO_BYTES(index0), size); - s_ctx->index0 = (s_ctx->index0 + samples_to_read) % sample_count; - } - - s_ctx->samples_in_circular_buffer -= samples_to_read; - - return zeros; - } - -#endif - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - static DWORD WINAPI cs_ctx_thread(LPVOID lpParameter) - { - (void)lpParameter; - while (s_ctx->running) { - cs_mix(); - if (s_ctx->sleep_milliseconds) cs_sleep(s_ctx->sleep_milliseconds); - else YieldProcessor(); - } - - s_ctx->separate_thread = false; - return 0; - } - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - - static void* cs_ctx_thread(void* udata) - { - while (s_ctx->running) { - cs_mix(); - if (s_ctx->sleep_milliseconds) cs_sleep(s_ctx->sleep_milliseconds); - else pthread_yield_np(); - } - - s_ctx->separate_thread = 0; - pthread_exit(0); - return 0; - } - - static OSStatus cs_memcpy_to_coreaudio(void* udata, AudioUnitRenderActionFlags* ioActionFlags, const AudioTimeStamp* inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList* ioData) - { - int bps = s_ctx->bps; - int samples_requested_to_consume = inNumberFrames; - AudioBuffer* buffer = ioData->mBuffers; - - CUTE_SOUND_ASSERT(ioData->mNumberBuffers == 1); - CUTE_SOUND_ASSERT(buffer->mNumberChannels == 2); - int byte_size = buffer->mDataByteSize; - CUTE_SOUND_ASSERT(byte_size == samples_requested_to_consume * bps); - - int zero_bytes = cs_pull_bytes(s_ctx, buffer->mData, byte_size); - CUTE_SOUND_MEMSET(((char*)buffer->mData) + (byte_size - zero_bytes), 0, zero_bytes); - - return noErr; - } - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - int cs_ctx_thread(void* udata) - { - while (s_ctx->running) { - cs_mix(); - if (s_ctx->sleep_milliseconds) cs_sleep(s_ctx->sleep_milliseconds); - else cs_sleep(1); - } - - s_ctx->separate_thread = false; - return 0; - } - - static void cs_sdl_audio_callback(void* udata, Uint8* stream, int len) - { - int zero_bytes = cs_pull_bytes(stream, len); - CUTE_SOUND_MEMSET(stream + (len - zero_bytes), 0, zero_bytes); - } - -#endif - -static void s_add_page() -{ - cs_inst_page_t* page = (cs_inst_page_t*)CUTE_SOUND_ALLOC(sizeof(cs_inst_page_t), user_allocator_context); - for (int i = 0; i < CUTE_SOUND_PAGE_INSTANCE_COUNT; ++i) { - cs_list_init_node(&page->instances[i].node); - cs_list_push_back(&s_ctx->free_sounds, &page->instances[i].node); - } - page->next = s_ctx->pages; - s_ctx->pages = page; -} - -cs_error_t cs_init(void* os_handle, unsigned play_frequency_in_Hz, int buffered_samples, void* user_allocator_context /* = NULL */) -{ - buffered_samples = buffered_samples < CUTE_SOUND_MINIMUM_BUFFERED_SAMPLES ? CUTE_SOUND_MINIMUM_BUFFERED_SAMPLES : buffered_samples; - int sample_count = buffered_samples; - int wide_count = (int)CUTE_SOUND_ALIGN(sample_count, 4); - int bps = sizeof(uint16_t) * 2; - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - int buffer_size = buffered_samples * bps; - LPDIRECTSOUND dsound = NULL; - LPDIRECTSOUNDBUFFER primary_buffer = NULL; - LPDIRECTSOUNDBUFFER secondary_buffer = NULL; - - if (!os_handle) return CUTE_SOUND_ERROR_HWND_IS_NULL; - { - WAVEFORMATEX format = { 0, 0, 0, 0, 0, 0, 0 }; - DSBUFFERDESC bufdesc = { 0, 0, 0, 0, 0, { 0, 0, 0, 0 } }; - HRESULT res = DirectSoundCreate(0, &dsound, 0); - if (res != DS_OK) return CUTE_SOUND_ERROR_DIRECTSOUND_CREATE_FAILED; - IDirectSound_SetCooperativeLevel(dsound, (HWND)os_handle, DSSCL_PRIORITY); - bufdesc.dwSize = sizeof(bufdesc); - bufdesc.dwFlags = DSBCAPS_PRIMARYBUFFER; - - res = IDirectSound_CreateSoundBuffer(dsound, &bufdesc, &primary_buffer, 0); - if (res != DS_OK) CUTE_SOUND_ERROR_CREATESOUNDBUFFER_FAILED; - - format.wFormatTag = WAVE_FORMAT_PCM; - format.nChannels = 2; - format.nSamplesPerSec = play_frequency_in_Hz; - format.wBitsPerSample = 16; - format.nBlockAlign = (format.nChannels * format.wBitsPerSample) / 8; - format.nAvgBytesPerSec = format.nSamplesPerSec * format.nBlockAlign; - format.cbSize = 0; - res = IDirectSoundBuffer_SetFormat(primary_buffer, &format); - if (res != DS_OK) CUTE_SOUND_ERROR_SETFORMAT_FAILED; - - bufdesc.dwSize = sizeof(bufdesc); - bufdesc.dwFlags = 0; - bufdesc.dwBufferBytes = buffer_size; - bufdesc.lpwfxFormat = &format; - res = IDirectSound_CreateSoundBuffer(dsound, &bufdesc, &secondary_buffer, 0); - if (res != DS_OK) CUTE_SOUND_ERROR_SETFORMAT_FAILED; - - // Silence the initial audio buffer. - void* region1; - DWORD size1; - void* region2; - DWORD size2; - res = IDirectSoundBuffer_Lock(secondary_buffer, 0, bufdesc.dwBufferBytes, ®ion1, &size1, ®ion2, &size2, DSBLOCK_ENTIREBUFFER); - if (res == DS_OK) { - CUTE_SOUND_MEMSET(region1, 0, size1); - IDirectSoundBuffer_Unlock(secondary_buffer, region1, size1, region2, size2); - } - } - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - - AudioComponentDescription comp_desc = { 0 }; - comp_desc.componentType = kAudioUnitType_Output; - comp_desc.componentSubType = kAudioUnitSubType_DefaultOutput; - comp_desc.componentFlags = 0; - comp_desc.componentFlagsMask = 0; - comp_desc.componentManufacturer = kAudioUnitManufacturer_Apple; - - AudioComponent comp = AudioComponentFindNext(NULL, &comp_desc); - if (!comp) return CUTE_SOUND_ERROR_AUDIOCOMPONENTFINDNEXT_FAILED; - - AudioStreamBasicDescription stream_desc = { 0 }; - stream_desc.mSampleRate = (double)play_frequency_in_Hz; - stream_desc.mFormatID = kAudioFormatLinearPCM; - stream_desc.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked; - stream_desc.mFramesPerPacket = 1; - stream_desc.mChannelsPerFrame = 2; - stream_desc.mBitsPerChannel = sizeof(uint16_t) * 8; - stream_desc.mBytesPerPacket = bps; - stream_desc.mBytesPerFrame = bps; - stream_desc.mReserved = 0; - - AudioComponentInstance inst; - OSStatus ret; - AURenderCallbackStruct input; - - ret = AudioComponentInstanceNew(comp, &inst); - if (ret != noErr) return CUTE_SOUND_ERROR_AUDIOCOMPONENTINSTANCENEW_FAILED; - - ret = AudioUnitSetProperty(inst, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &stream_desc, sizeof(stream_desc)); - if (ret != noErr) return CUTE_SOUND_ERROR_FAILED_TO_SET_STREAM_FORMAT; - - ret = AudioUnitInitialize(inst); - if (ret != noErr) return CUTE_SOUND_ERROR_AUDIOUNITINITIALIZE_FAILED; - - ret = AudioOutputUnitStart(inst); - if (ret != noErr) return CUTE_SOUND_ERROR_AUDIOUNITSTART_FAILED; - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - SDL_AudioSpec wanted, have; - int ret = SDL_InitSubSystem(SDL_INIT_AUDIO); - if (ret < 0) return CUTE_SOUND_ERROR_CANT_INIT_SDL_AUDIO; - -#endif - - s_ctx = (cs_context_t*)CUTE_SOUND_ALLOC(sizeof(cs_context_t), user_allocator_context); - s_ctx->global_pan = 0.5f; - s_ctx->global_volume = 1.0f; - s_ctx->global_pause = false; - s_ctx->music_volume = 1.0f; - s_ctx->sound_volume = 1.0f; - s_ctx->music_looped = true; - s_ctx->music_paused = false; - s_ctx->t = 0; - s_ctx->fade = 0; - s_ctx->fade_switch_1 = 0; - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_NONE; - s_ctx->music_state_to_resume_from_paused = CUTE_SOUND_MUSIC_STATE_NONE; - s_ctx->music_playing = NULL; - s_ctx->music_next = NULL; - s_ctx->instance_id_gen = 1; - hashtable_init(&s_ctx->instance_map, sizeof(cs_audio_source_t*), 1024, user_allocator_context); - s_ctx->pages = NULL; - cs_list_init(&s_ctx->playing_sounds); - cs_list_init(&s_ctx->free_sounds); - s_add_page(); - s_ctx->mem_ctx = user_allocator_context; - s_ctx->latency_samples = 4096; - s_ctx->Hz = play_frequency_in_Hz; - s_ctx->bps = bps; - s_ctx->wide_count = wide_count; - s_ctx->floatA = (cs__m128*)cs_malloc16(sizeof(cs__m128) * wide_count, s_ctx->mem_ctx); - s_ctx->floatB = (cs__m128*)cs_malloc16(sizeof(cs__m128) * wide_count, s_ctx->mem_ctx); - s_ctx->samples = (cs__m128i*)cs_malloc16(sizeof(cs__m128i) * wide_count, s_ctx->mem_ctx); - s_ctx->running = true; - s_ctx->separate_thread = false; - s_ctx->sleep_milliseconds = 0; - s_ctx->plugin_count = 0; - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - s_ctx->running_index = 0; - s_ctx->buffer_size = buffer_size; - s_ctx->dsound = dsound; - s_ctx->primary = primary_buffer; - s_ctx->secondary = secondary_buffer; - InitializeCriticalSectionAndSpinCount(&s_ctx->critical_section, 0x00000400); - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - - s_ctx->index0 = 0; - s_ctx->index1 = 0; - s_ctx->samples_in_circular_buffer = 0; - s_ctx->sample_count = wide_count * 4; - s_ctx->inst = inst; - pthread_mutex_init(&s_ctx->mutex, NULL); - - input.inputProc = cs_memcpy_to_coreaudio; - input.inputProcRefCon = s_ctx; - ret = AudioUnitSetProperty(inst, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &input, sizeof(input)); - if (ret != noErr) return CUTE_SOUND_ERROR_FAILED_TO_SET_RENDER_CALLBACK; // This leaks memory, oh well. - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - SDL_memset(&wanted, 0, sizeof(wanted)); - SDL_memset(&have, 0, sizeof(have)); - wanted.freq = play_frequency_in_Hz; - wanted.format = AUDIO_S16SYS; - wanted.channels = 2; /* 1 = mono, 2 = stereo */ - wanted.samples = buffered_samples; - wanted.callback = cs_sdl_audio_callback; - wanted.userdata = s_ctx; - s_ctx->index0 = 0; - s_ctx->index1 = 0; - s_ctx->samples_in_circular_buffer = 0; - s_ctx->sample_count = wide_count * 4; - s_ctx->dev = SDL_OpenAudioDevice(NULL, 0, &wanted, &have, 0); - if (s_ctx->dev < 0) return CUTE_SOUND_ERROR_CANT_OPEN_AUDIO_DEVICE; // This leaks memory, oh well. - SDL_PauseAudioDevice(s_ctx->dev, 0); - s_ctx->mutex = SDL_CreateMutex(); - -#endif - - return CUTE_SOUND_ERROR_NONE; -} - -void cs_lock(); -void cs_unlock(); - -void cs_shutdown() -{ -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - if (s_ctx->separate_thread) { - cs_lock(); - s_ctx->running = false; - cs_unlock(); - while (s_ctx->separate_thread) cs_sleep(1); - } - - DeleteCriticalSection(&s_ctx->critical_section); - IDirectSoundBuffer_Release(s_ctx->secondary); - IDirectSoundBuffer_Release(s_ctx->primary); - IDirectSoundBuffer_Release(s_ctx->dsound); - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - SDL_DestroyMutex(s_ctx->mutex); - SDL_CloseAudioDevice(s_ctx->dev); - -#endif - - cs_inst_page_t* page = s_ctx->pages; - while (page) { - cs_inst_page_t* next = page->next; - CUTE_SOUND_FREE(page, s_ctx->mem_ctx); - page = next; - } - - cs_free16(s_ctx->floatA, s_ctx->mem_ctx); - cs_free16(s_ctx->floatB, s_ctx->mem_ctx); - cs_free16(s_ctx->samples, s_ctx->mem_ctx); - hashtable_term(&s_ctx->instance_map); - void* mem_ctx = s_ctx->mem_ctx; - (void)mem_ctx; - CUTE_SOUND_FREE(s_ctx, mem_ctx); -} - -static float s_smoothstep(float x) { return x * x * (3.0f - 2.0f * x); } - -void cs_update(float dt) -{ - if (!s_ctx->separate_thread) cs_mix(); - - switch (s_ctx->music_state) { - case CUTE_SOUND_MUSIC_STATE_FADE_OUT: - { - s_ctx->t += dt; - if (s_ctx->t >= s_ctx->fade) { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_NONE; - s_ctx->music_playing->active = false; - s_ctx->music_playing = NULL; - } else { - s_ctx->music_playing->volume = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade));; - } - } break; - - case CUTE_SOUND_MUSIC_STATE_FADE_IN: - { - s_ctx->t += dt; - if (s_ctx->t >= s_ctx->fade) { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_PLAYING; - s_ctx->t = s_ctx->fade; - } - s_ctx->music_playing->volume = s_smoothstep(1.0f - ((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0: - { - s_ctx->t += dt; - if (s_ctx->t >= s_ctx->fade) { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_SWITCH_TO_1; - s_ctx->music_playing->active = false; - s_ctx->music_playing->volume = 0; - s_ctx->t = 0; - s_ctx->fade = s_ctx->fade_switch_1; - s_ctx->fade_switch_1 = 0; - s_ctx->music_next->paused = false; - } else { - s_ctx->music_playing->volume = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade));; - } - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_1: - { - s_ctx->t += dt; - if (s_ctx->t >= s_ctx->fade) { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_PLAYING; - s_ctx->t = s_ctx->fade; - s_ctx->music_next->volume = 1.0f; - s_ctx->music_playing = s_ctx->music_next; - s_ctx->music_next = NULL; - } else { - float t = s_smoothstep(1.0f - ((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - float volume = t; - s_ctx->music_next->volume = volume; - } - } break; - - case CUTE_SOUND_MUSIC_STATE_CROSSFADE: - { - s_ctx->t += dt; - if (s_ctx->t >= s_ctx->fade) { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_PLAYING; - s_ctx->music_playing->active = false; - s_ctx->music_next->volume = 1.0f; - s_ctx->music_playing = s_ctx->music_next; - s_ctx->music_next = NULL; - } else { - float t0 = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - float t1 = s_smoothstep(1.0f - ((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - float v0 = t0; - float v1 = t1; - s_ctx->music_playing->volume = v0; - s_ctx->music_next->volume = v1; - } - } break; - - default: - break; - } -} - -void cs_set_global_volume(float volume_0_to_1) -{ - if (volume_0_to_1 < 0) volume_0_to_1 = 0; - if (volume_0_to_1 > 1) volume_0_to_1 = 1; - s_ctx->global_volume = volume_0_to_1; -} - -void cs_set_global_pan(float pan_0_to_1) -{ - if (pan_0_to_1 < 0) pan_0_to_1 = 0; - if (pan_0_to_1 > 1) pan_0_to_1 = 1; - s_ctx->global_pan = pan_0_to_1; -} - -void cs_set_global_pause(bool true_for_paused) -{ - s_ctx->global_pause = true_for_paused; -} - -void cs_lock() -{ -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - EnterCriticalSection(&s_ctx->critical_section); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - pthread_mutex_lock(&s_ctx->mutex); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - SDL_LockMutex(s_ctx->mutex); -#endif -} - -void cs_unlock() -{ -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - LeaveCriticalSection(&s_ctx->critical_section); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - pthread_mutex_unlock(&s_ctx->mutex); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - SDL_UnlockMutex(s_ctx->mutex); -#endif -} - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - -static void cs_position(int* byte_to_lock, int* bytes_to_write) -{ - // compute bytes to be written to direct sound - DWORD play_cursor; - DWORD write_cursor; - HRESULT hr = IDirectSoundBuffer_GetCurrentPosition(s_ctx->secondary, &play_cursor, &write_cursor); - if (hr != DS_OK) { - if (hr == DSERR_BUFFERLOST) { - hr = IDirectSoundBuffer_Restore(s_ctx->secondary); - } - *byte_to_lock = play_cursor; - *bytes_to_write = write_cursor; - if (!SUCCEEDED(hr)) { - return; - } - } - - DWORD status; - IDirectSoundBuffer_GetStatus(s_ctx->secondary, &status); - if (!(status & DSBSTATUS_PLAYING)) { - hr = IDirectSoundBuffer_Play(s_ctx->secondary, 0, 0, DSBPLAY_LOOPING); - if (!SUCCEEDED(hr)) { - return; - } - } - - DWORD lock = (s_ctx->running_index * s_ctx->bps) % s_ctx->buffer_size; - DWORD target_cursor = (write_cursor + s_ctx->latency_samples * s_ctx->bps); - if (target_cursor > (DWORD)s_ctx->buffer_size) target_cursor %= s_ctx->buffer_size; - target_cursor = (DWORD)CUTE_SOUND_TRUNC(target_cursor, 16); - DWORD write; - - if (lock > target_cursor) { - write = (s_ctx->buffer_size - lock) + target_cursor; - } else { - write = target_cursor - lock; - } - - *byte_to_lock = lock; - *bytes_to_write = write; -} - -static void cs_memcpy_to_directsound(int16_t* samples, int byte_to_lock, int bytes_to_write) -{ - // copy mixer buffers to direct sound - void* region1; - DWORD size1; - void* region2; - DWORD size2; - HRESULT hr = IDirectSoundBuffer_Lock(s_ctx->secondary, byte_to_lock, bytes_to_write, ®ion1, &size1, ®ion2, &size2, 0); - if (hr == DSERR_BUFFERLOST) { - IDirectSoundBuffer_Restore(s_ctx->secondary); - hr = IDirectSoundBuffer_Lock(s_ctx->secondary, byte_to_lock, bytes_to_write, ®ion1, &size1, ®ion2, &size2, 0); - } - if (!SUCCEEDED(hr)) { - return; - } - - unsigned running_index = s_ctx->running_index; - INT16* sample1 = (INT16*)region1; - DWORD sample1_count = size1 / s_ctx->bps; - memcpy(sample1, samples, sample1_count * sizeof(INT16) * 2); - samples += sample1_count * 2; - running_index += sample1_count; - - INT16* sample2 = (INT16*)region2; - DWORD sample2_count = size2 / s_ctx->bps; - memcpy(sample2, samples, sample2_count * sizeof(INT16) * 2); - samples += sample2_count * 2; - running_index += sample2_count; - - IDirectSoundBuffer_Unlock(s_ctx->secondary, region1, size1, region2, size2); - s_ctx->running_index = running_index; -} - -#endif // CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - -void cs_mix() -{ - cs__m128i* samples; - cs__m128* floatA; - cs__m128* floatB; - cs__m128 zero; - int wide_count; - int samples_to_write; - - cs_lock(); - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - int byte_to_lock; - int bytes_to_write; - cs_position(&byte_to_lock, &bytes_to_write); - - if (!bytes_to_write) goto unlock; - samples_to_write = bytes_to_write / s_ctx->bps; - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - - int bytes_to_write; - samples_to_write = cs_samples_to_mix(); - if (!samples_to_write) goto unlock; - bytes_to_write = samples_to_write * s_ctx->bps; - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX - - int ret; - snd_pcm_sframes_t frames = ctx->fns.snd_pcm_avail(ctx->pcm_handle); - if (frames == -EAGAIN) goto unlock; // No data yet. - else if (frames < 0) { /* Fatal error... How should this be handled? */ } - else if (frames == 0) goto unlock; - samples_to_write = (int)frames; - if (samples_to_write > (int)ctx->latency_samples) samples_to_write = ctx->latency_samples; - -#endif - - // Clear mixer buffers. - wide_count = (int)CUTE_SOUND_ALIGN(samples_to_write, 4) / 4; - - floatA = s_ctx->floatA; - floatB = s_ctx->floatB; - zero = cs_mm_set1_ps(0.0f); - - for (int i = 0; i < wide_count; ++i) { - floatA[i] = zero; - floatB[i] = zero; - } - - // Mix all playing sounds into the mixer buffers. - if (!s_ctx->global_pause && !cs_list_empty(&s_ctx->playing_sounds)) { - cs_list_node_t* playing_node = cs_list_begin(&s_ctx->playing_sounds); - cs_list_node_t* end_node = cs_list_end(&s_ctx->playing_sounds); - do { - cs_list_node_t* next_node = playing_node->next; - cs_sound_inst_t* playing = CUTE_SOUND_LIST_HOST(cs_sound_inst_t, node, playing_node); - cs_audio_source_t* audio = playing->audio; - - if (!playing->active || !s_ctx->running) goto remove; - if (!audio) goto remove; - if (playing->paused) goto get_next_playing_sound; - - { - cs__m128* cA = (cs__m128*)audio->channels[0]; - cs__m128* cB = (cs__m128*)audio->channels[1]; - - // Attempted to play a sound with no audio. - // Make sure the audio file was loaded properly. - CUTE_SOUND_ASSERT(cA); - - int mix_count = samples_to_write; - int offset = (int)playing->sample_index; - int remaining = audio->sample_count - offset; - if (remaining < mix_count) mix_count = remaining; - CUTE_SOUND_ASSERT(remaining > 0); - - float gpan0 = 1.0f - s_ctx->global_pan; - float gpan1 = s_ctx->global_pan; - float vA0 = playing->volume * playing->pan0 * gpan0 * s_ctx->global_volume; - float vB0 = playing->volume * playing->pan1 * gpan1 * s_ctx->global_volume; - if (!playing->is_music) { - vA0 *= s_ctx->sound_volume; - vB0 *= s_ctx->sound_volume; - } else { - vA0 *= s_ctx->music_volume; - vB0 *= s_ctx->music_volume; - } - cs__m128 vA = cs_mm_set1_ps(vA0); - cs__m128 vB = cs_mm_set1_ps(vB0); - - // Skip sound if it's delay is longer than mix_count and - // handle various delay cases. - int delay_offset = 0; - if (offset < 0) { - int samples_till_positive = -offset; - int mix_leftover = mix_count - samples_till_positive; - - if (mix_leftover <= 0) { - playing->sample_index += mix_count; - goto get_next_playing_sound; - } else { - offset = 0; - delay_offset = samples_till_positive; - mix_count = mix_leftover; - } - } - CUTE_SOUND_ASSERT(!(delay_offset & 3)); - - // SIMD offets. - int mix_wide = (int)CUTE_SOUND_ALIGN(mix_count, 4) / 4; - int offset_wide = (int)CUTE_SOUND_TRUNC(offset, 4) / 4; - int delay_wide = (int)CUTE_SOUND_ALIGN(delay_offset, 4) / 4; - int sample_count = (mix_wide - 2 * delay_wide) * 4; - (void)sample_count; - // TODO - // Give all plugins a chance to inject altered samples into the mix streams. - //for (int i = 0; i < ctx->plugin_count; ++i) { - // cs_plugin_interface_t* plugin = ctx->plugins + i; - // float* plugin_samples_in_channel_a = (float*)(cA + delay_wide + offset_wide); - // float* plugin_samples_in_channel_b = (float*)(cB + delay_wide + offset_wide); - // float* samples_out_channel_a = NULL; - // float* samples_out_channel_b = NULL; - // //plugin->on_mix_fn(ctx, plugin->plugin_instance, 0, plugin_samples_in_channel_a, sample_count, &samples_out_channel_a, playing->plugin_udata[i], playing); - // //if (audio->channel_count == 2) plugin->on_mix_fn(ctx, plugin->plugin_instance, 1, plugin_samples_in_channel_b, sample_count, &samples_out_channel_b, playing->plugin_udata[i], playing); - // if (samples_out_channel_a) cA = (cs__m128*)samples_out_channel_a; - // if (samples_out_channel_b) cB = (cs__m128*)samples_out_channel_b; - // - // // Set offset_wide to cancel out delay_wide because cA and cB are now owned by the plugin, - // // this elimineating the need for the delay offset. - // if (!!samples_out_channel_a | !!samples_out_channel_b) offset_wide = -delay_wide; - //} - - // apply volume, load samples into float buffers - switch (audio->channel_count) { - case 1: - for (int i = delay_wide; i < mix_wide - delay_wide; ++i) - { - cs__m128 A = cA[i + offset_wide]; - cs__m128 B = cs_mm_mul_ps(A, vB); - A = cs_mm_mul_ps(A, vA); - floatA[i] = cs_mm_add_ps(floatA[i], A); - floatB[i] = cs_mm_add_ps(floatB[i], B); - } - break; - - case 2: - { - for (int i = delay_wide; i < mix_wide - delay_wide; ++i) - { - cs__m128 A = cA[i + offset_wide]; - cs__m128 B = cB[i + offset_wide]; - - A = cs_mm_mul_ps(A, vA); - B = cs_mm_mul_ps(B, vB); - floatA[i] = cs_mm_add_ps(floatA[i], A); - floatB[i] = cs_mm_add_ps(floatB[i], B); - } - } break; - } - - // playing list logic - playing->sample_index += mix_count; - CUTE_SOUND_ASSERT(playing->sample_index <= audio->sample_count); - if (playing->sample_index == audio->sample_count) { - if (playing->looped) { - playing->sample_index = 0; - goto get_next_playing_sound; - } - - goto remove; - } - } - - get_next_playing_sound: - playing_node = next_node; - continue; - - remove: - playing->sample_index = 0; - playing->active = false; - - if (playing->audio) { - playing->audio->playing_count -= 1; - CUTE_SOUND_ASSERT(playing->audio->playing_count >= 0); - } - - //// Notify plugins of this playing sound instance being released. - //for (int i = 0; i < ctx->plugin_count; ++i) { - // cs_plugin_interface_t* plugin = ctx->plugins + i; - // plugin->on_free_playing_sound_fn(ctx, plugin->plugin_instance, playing->plugin_udata[i], playing); - // playing->plugin_udata[i] = NULL; - //} - - cs_list_remove(playing_node); - cs_list_push_front(&s_ctx->free_sounds, playing_node); - hashtable_remove(&s_ctx->instance_map, playing->id); - playing_node = next_node; - continue; - } while (playing_node != end_node); - } - - // load all floats into 16 bit packed interleaved samples -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - - samples = s_ctx->samples; - for (int i = 0; i < wide_count; ++i) { - cs__m128i a = cs_mm_cvtps_epi32(floatA[i]); - cs__m128i b = cs_mm_cvtps_epi32(floatB[i]); - cs__m128i a0b0a1b1 = cs_mm_unpacklo_epi32(a, b); - cs__m128i a2b2a3b3 = cs_mm_unpackhi_epi32(a, b); - samples[i] = cs_mm_packs_epi32(a0b0a1b1, a2b2a3b3); - } - cs_memcpy_to_directsound((int16_t*)samples, byte_to_lock, bytes_to_write); - -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL || CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX - - // Since the ctx->samples array is already in use as a ring buffer - // reusing floatA to store output is a good way to temporarly store - // the final samples. Then a single ring buffer push can be used - // afterwards. Pretty hacky, but whatever :) - samples = (cs__m128i*)floatA; - for (int i = 0; i < wide_count; ++i) { - cs__m128i a = cs_mm_cvtps_epi32(floatA[i]); - cs__m128i b = cs_mm_cvtps_epi32(floatB[i]); - cs__m128i a0b0a1b1 = cs_mm_unpacklo_epi32(a, b); - cs__m128i a2b2a3b3 = cs_mm_unpackhi_epi32(a, b); - samples[i] = cs_mm_packs_epi32(a0b0a1b1, a2b2a3b3); - } - - // SDL/CoreAudio use a callback mechanism communicating with cute sound - // over a ring buffer (accessed by cs_push_bytes and cs_pull_bytes), but - // ALSA on Linux has their own memcpy-style function to use... So we don't - // need a local ring buffer at all, and can directly hand over the samples. - #if CUTE_SOUND_PLATFORM != CUTE_SOUND_LINUX - cs_push_bytes(samples, bytes_to_write); - #else - ret = ctx->fns.snd_pcm_writei(ctx->pcm_handle, samples, (snd_pcm_sframes_t)samples_to_write); - if (ret < 0) ret = ctx->fns.snd_pcm_recover(ctx->pcm_handle, ret, 0); - if (ret < 0) { - // A fatal error occured. - ctx->separate_thread = 0; - } - #endif - -#endif - - unlock: - cs_unlock(); -} - -void cs_spawn_mix_thread() -{ - if (s_ctx->separate_thread) return; - s_ctx->separate_thread = true; -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_WINDOWS - CreateThread(0, 0, cs_ctx_thread, s_ctx, 0, 0); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_APPLE - pthread_create(&s_ctx->thread, 0, cs_ctx_thread, s_ctx); -#elif CUTE_SOUND_PLATFORM == CUTE_SOUND_LINUX || CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL - s_ctx->thread = SDL_CreateThread(&cs_ctx_thread, "CuteSoundThread", s_ctx); -#endif -} - -void cs_mix_thread_sleep_delay(int milliseconds) -{ - s_ctx->sleep_milliseconds = milliseconds; -} - -void* cs_get_context_ptr() -{ - return (void*)s_ctx; -} - -void cs_set_context_ptr(void* ctx) -{ - s_ctx = (cs_context_t*)ctx; -} - -// ------------------------------------------------------------------------------------------------- -// Loaded sounds. - -static void* cs_read_file_to_memory(const char* path, int* size, void* mem_ctx) -{ - (void)mem_ctx; - void* data = 0; - FILE* fp = fopen(path, "rb"); - int sizeNum = 0; - - if (fp) { - fseek(fp, 0, SEEK_END); - sizeNum = (int)ftell(fp); - fseek(fp, 0, SEEK_SET); - data = CUTE_SOUND_ALLOC(sizeNum, mem_ctx); - (void)(fread(data, sizeNum, 1, fp) + 1); - fclose(fp); - } - - if (size) *size = sizeNum; - return data; -} - -static int cs_four_cc(const char* CC, void* memory) -{ - if (!CUTE_SOUND_MEMCMP(CC, memory, 4)) return 1; - return 0; -} - -static char* cs_next(char* data) -{ - uint32_t size = *(uint32_t*)(data + 4); - size = (size + 1) & ~1; - return data + 8 + size; -} - -static void cs_last_element(cs__m128* a, int i, int j, int16_t* samples, int offset) -{ - switch (offset) { - case 1: - a[i] = cs_mm_set_ps(samples[j], 0.0f, 0.0f, 0.0f); - break; - - case 2: - a[i] = cs_mm_set_ps(samples[j], samples[j + 1], 0.0f, 0.0f); - break; - - case 3: - a[i] = cs_mm_set_ps(samples[j], samples[j + 1], samples[j + 2], 0.0f); - break; - - case 0: - a[i] = cs_mm_set_ps(samples[j], samples[j + 1], samples[j + 2], samples[j + 3]); - break; - } -} - -cs_audio_source_t* cs_load_wav(const char* path, cs_error_t* err /* = NULL */) -{ - int size; - void* wav = cs_read_file_to_memory(path, &size, s_ctx->mem_ctx); - if (!wav) return NULL; - cs_audio_source_t* audio = cs_read_mem_wav(wav, size, err); - CUTE_SOUND_FREE(wav, s_ctx->mem_ctx); - return audio; -} - -cs_audio_source_t* cs_read_mem_wav(const void* memory, size_t size, cs_error_t* err) -{ - if (err) *err = CUTE_SOUND_ERROR_NONE; - if (!memory) { if (err) *err = CUTE_SOUND_ERROR_FILE_NOT_FOUND; return NULL; } - - #pragma pack(push, 1) - typedef struct - { - uint16_t wFormatTag; - uint16_t nChannels; - uint32_t nSamplesPerSec; - uint32_t nAvgBytesPerSec; - uint16_t nBlockAlign; - uint16_t wBitsPerSample; - uint16_t cbSize; - uint16_t wValidBitsPerSample; - uint32_t dwChannelMask; - uint8_t SubFormat[18]; - } Fmt; - #pragma pack(pop) - - cs_audio_source_t* audio = NULL; - char* data = (char*)memory; - char* end = data + size; - if (!cs_four_cc("RIFF", data)) { if (err) *err = CUTE_SOUND_ERROR_THE_FILE_IS_NOT_A_WAV_FILE; return NULL; } - if (!cs_four_cc("WAVE", data + 8)) { if (err) *err = CUTE_SOUND_ERROR_THE_FILE_IS_NOT_A_WAV_FILE; return NULL; } - - data += 12; - - while (1) { - if (!(end > data)) { if (err) *err = CUTE_SOUND_ERROR_WAV_FILE_FORMAT_CHUNK_NOT_FOUND; return NULL; } - if (cs_four_cc("fmt ", data)) break; - data = cs_next(data); - } - - Fmt fmt; - fmt = *(Fmt*)(data + 8); - if (fmt.wFormatTag != 1) { if (err) *err = CUTE_SOUND_ERROR_WAV_FILE_FORMAT_CHUNK_NOT_FOUND; return NULL; } - if (!(fmt.nChannels == 1 || fmt.nChannels == 2)) { if (err) *err = CUTE_SOUND_ERROR_WAV_ONLY_MONO_OR_STEREO_IS_SUPPORTED; return NULL; } - if (!(fmt.wBitsPerSample == 16)) { if (err) *err = CUTE_SOUND_ERROR_WAV_ONLY_16_BITS_PER_SAMPLE_SUPPORTED; return NULL; } - if (!(fmt.nBlockAlign == fmt.nChannels * 2)) { if (err) *err = CUTE_SOUND_ERROR_IMPLEMENTATION_ERROR_PLEASE_REPORT_THIS_ON_GITHUB; return NULL; } - - while (1) { - if (!(end > data)) { if (err) *err = CUTE_SOUND_ERROR_WAV_DATA_CHUNK_NOT_FOUND; return NULL; } - if (cs_four_cc("data", data)) break; - data = cs_next(data); - } - - audio = (cs_audio_source_t*)CUTE_SOUND_ALLOC(sizeof(cs_audio_source_t), s_ctx->mem_ctx); - CUTE_SOUND_MEMSET(audio, 0, sizeof(*audio)); - audio->sample_rate = (int)fmt.nSamplesPerSec; - - { - int sample_size = *((uint32_t*)(data + 4)); - int sample_count = sample_size / (fmt.nChannels * sizeof(uint16_t)); - audio->sample_count = sample_count; - audio->channel_count = fmt.nChannels; - - int wide_count = (int)CUTE_SOUND_ALIGN(sample_count, 4); - wide_count /= 4; - int wide_offset = sample_count & 3; - int16_t* samples = (int16_t*)(data + 8); - float* sample = (float*)alloca(sizeof(float) * 4 + 16); - sample = (float*)CUTE_SOUND_ALIGN(sample, 16); - - switch (audio->channel_count) { - case 1: - { - audio->channels[0] = cs_malloc16(wide_count * sizeof(cs__m128), NULL); - audio->channels[1] = 0; - cs__m128* a = (cs__m128*)audio->channels[0]; - - for (int i = 0, j = 0; i < wide_count - 1; ++i, j += 4) - { - sample[0] = (float)samples[j]; - sample[1] = (float)samples[j + 1]; - sample[2] = (float)samples[j + 2]; - sample[3] = (float)samples[j + 3]; - a[i] = cs_mm_load_ps(sample); - } - - cs_last_element(a, wide_count - 1, (wide_count - 1) * 4, samples, wide_offset); - } break; - - case 2: - { - cs__m128* a = (cs__m128*)cs_malloc16(wide_count * sizeof(cs__m128) * 2, NULL); - cs__m128* b = a + wide_count; - - for (int i = 0, j = 0; i < wide_count - 1; ++i, j += 8) - { - sample[0] = (float)samples[j]; - sample[1] = (float)samples[j + 2]; - sample[2] = (float)samples[j + 4]; - sample[3] = (float)samples[j + 6]; - a[i] = cs_mm_load_ps(sample); - - sample[0] = (float)samples[j + 1]; - sample[1] = (float)samples[j + 3]; - sample[2] = (float)samples[j + 5]; - sample[3] = (float)samples[j + 7]; - b[i] = cs_mm_load_ps(sample); - } - - cs_last_element(a, wide_count - 1, (wide_count - 1) * 4, samples, wide_offset); - cs_last_element(b, wide_count - 1, (wide_count - 1) * 4 + 4, samples, wide_offset); - audio->channels[0] = a; - audio->channels[1] = b; - } break; - - default: - if (err) *err = CUTE_SOUND_ERROR_WAV_ONLY_MONO_OR_STEREO_IS_SUPPORTED; - CUTE_SOUND_ASSERT(false); - } - } - - if (err) *err = CUTE_SOUND_ERROR_NONE; - return audio; -} - -int cs_ref_count(cs_audio_source_t* audio) -{ - return audio->playing_count; -} - -cs_error_t cs_free_audio_source(cs_audio_source_t* audio) -{ - if (audio->playing_count) return CUTE_SOUND_ERROR_CANNOT_FREE_AUDIO_SOURCE_WHILE_STILL_IN_USE; - cs_free16(audio->channels[0], s_ctx->mem_ctx); - CUTE_SOUND_FREE(audio, s_ctx->mem_ctx); - return CUTE_SOUND_ERROR_NONE; -} - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL && defined(SDL_rwops_h_) && defined(CUTE_SOUND_SDL_RWOPS) - - // Load an SDL_RWops object's data into memory. - // Ripped straight from: https://wiki.libsdl.org/SDL_RWread - static void* cs_read_rw_to_memory(SDL_RWops* rw, int* size, void* mem_ctx) - { - Sint64 res_size = SDL_RWsize(rw); - char* data = (char*)CUTE_SOUND_ALLOC((size_t)(res_size + 1), mem_ctx); - - Sint64 nb_read_total = 0, nb_read = 1; - char* buf = data; - while (nb_read_total < res_size && nb_read != 0) - { - nb_read = SDL_RWread(rw, buf, 1, (size_t)(res_size - nb_read_total)); - nb_read_total += nb_read; - buf += nb_read; - } - - SDL_RWclose(rw); - - if (nb_read_total != res_size) - { - CUTE_SOUND_FREE(data, NULL); - return NULL; - } - - if (size) *size = (int)res_size; - return data; - } - - cs_audio_source_t* cs_load_wav_rw(SDL_RWops* context, cs_error_t* err) - { - int size; - char* wav = (char*)cs_read_rw_to_memory(context, &size, s_ctx->mem_ctx); - if (!memory) return NULL; - cs_audio_source_t* audio = cs_read_mem_wav(wav, length, err); - CUTE_SOUND_FREE(wav, s_ctx->mem_ctx); - return audio; - } - -#endif - -// If stb_vorbis was included *before* cute_sound go ahead and create -// some functions for dealing with OGG files. -#ifdef STB_VORBIS_INCLUDE_STB_VORBIS_H - -cs_audio_source_t* cs_read_mem_ogg(const void* memory, size_t length, cs_error_t* err) -{ - int16_t* samples = 0; - cs_audio_source_t* audio = NULL; - int channel_count; - int sample_rate; - int sample_count = stb_vorbis_decode_memory((const unsigned char*)memory, (int)length, &channel_count, &sample_rate, &samples); - if (sample_count <= 0) { if (err) *err = CUTE_SOUND_ERROR_STB_VORBIS_DECODE_FAILED; return NULL; } - audio = (cs_audio_source_t*)CUTE_SOUND_ALLOC(sizeof(cs_audio_source_t), s_ctx->mem_ctx); - CUTE_SOUND_MEMSET(audio, 0, sizeof(*audio)); - - { - int wide_count = (int)CUTE_SOUND_ALIGN(sample_count, 4) / 4; - int wide_offset = sample_count & 3; - float* sample = (float*)alloca(sizeof(float) * 4 + 16); - sample = (float*)CUTE_SOUND_ALIGN(sample, 16); - cs__m128* a = NULL; - cs__m128* b = NULL; - - switch (channel_count) - { - case 1: - { - a = (cs__m128*)cs_malloc16(wide_count * sizeof(cs__m128), NULL); - b = 0; - - for (int i = 0, j = 0; i < wide_count - 1; ++i, j += 4) - { - sample[0] = (float)samples[j]; - sample[1] = (float)samples[j + 1]; - sample[2] = (float)samples[j + 2]; - sample[3] = (float)samples[j + 3]; - a[i] = cs_mm_load_ps(sample); - } - - cs_last_element(a, wide_count - 1, (wide_count - 1) * 4, samples, wide_offset); - } break; - - case 2: - a = (cs__m128*)cs_malloc16(wide_count * sizeof(cs__m128) * 2, NULL); - b = a + wide_count; - - for (int i = 0, j = 0; i < wide_count - 1; ++i, j += 8) - { - sample[0] = (float)samples[j]; - sample[1] = (float)samples[j + 2]; - sample[2] = (float)samples[j + 4]; - sample[3] = (float)samples[j + 6]; - a[i] = cs_mm_load_ps(sample); - - sample[0] = (float)samples[j + 1]; - sample[1] = (float)samples[j + 3]; - sample[2] = (float)samples[j + 5]; - sample[3] = (float)samples[j + 7]; - b[i] = cs_mm_load_ps(sample); - } - - cs_last_element(a, wide_count - 1, (wide_count - 1) * 4, samples, wide_offset); - cs_last_element(b, wide_count - 1, (wide_count - 1) * 4 + 4, samples, wide_offset); - break; - - default: - if (err) *err = CUTE_SOUND_ERROR_OGG_UNSUPPORTED_CHANNEL_COUNT; - CUTE_SOUND_ASSERT(false); - } - - audio->sample_rate = sample_rate; - audio->sample_count = sample_count; - audio->channel_count = channel_count; - audio->channels[0] = a; - audio->channels[1] = b; - audio->playing_count = 0; - free(samples); - } - - if (err) *err = CUTE_SOUND_ERROR_NONE; - return audio; -} - -cs_audio_source_t* cs_load_ogg(const char* path, cs_error_t* err) -{ - int length; - void* memory = cs_read_file_to_memory(path, &length, NULL); - if (!memory) return NULL; - cs_audio_source_t* audio = cs_read_mem_ogg(memory, length, err); - CUTE_SOUND_FREE(memory, NULL); - return audio; -} - -#if CUTE_SOUND_PLATFORM == CUTE_SOUND_SDL && defined(SDL_rwops_h_) && defined(CUTE_SOUND_SDL_RWOPS) - - cs_audio_source_t* cs_load_ogg_rw(SDL_RWops* rw, cs_error_t* err) - { - int length; - void* memory = cs_read_rw_to_memory(rw, &length, s_ctx->mem_ctx); - if (!memory) return NULL; - cs_audio_source_t* audio = cs_read_ogg_wav(memory, length, err); - CUTE_SOUND_FREE(memory, s_ctx->mem_ctx); - return audio; - } - -#endif -#endif // STB_VORBIS_INCLUDE_STB_VORBIS_H - -// ------------------------------------------------------------------------------------------------- -// Music sounds. - -static void s_insert(cs_sound_inst_t* inst) -{ - cs_lock(); - cs_list_push_back(&s_ctx->playing_sounds, &inst->node); - inst->audio->playing_count += 1; - inst->active = true; - inst->id = s_ctx->instance_id_gen++; - hashtable_insert(&s_ctx->instance_map, inst->id, inst); - // s_on_make_playing(inst); - cs_unlock(); -} - -static cs_sound_inst_t* s_inst_music(cs_audio_source_t* src, float volume) -{ - if (cs_list_empty(&s_ctx->free_sounds)) { - s_add_page(); - } - CUTE_SOUND_ASSERT(!cs_list_empty(&s_ctx->free_sounds)); - cs_sound_inst_t* inst = CUTE_SOUND_LIST_HOST(cs_sound_inst_t, node, cs_list_pop_back(&s_ctx->free_sounds)); - inst->is_music = true; - inst->looped = s_ctx->music_looped; - if (!s_ctx->music_paused) inst->paused = false; - inst->volume = volume; - inst->pan0 = 0.5f; - inst->pan1 = 0.5f; - inst->audio = src; - inst->sample_index = 0; - cs_list_init_node(&inst->node); - s_insert(inst); - return inst; -} - -static cs_sound_inst_t* s_inst(cs_audio_source_t* src, cs_sound_params_t params) -{ - if (cs_list_empty(&s_ctx->free_sounds)) { - s_add_page(); - } - CUTE_SOUND_ASSERT(!cs_list_empty(&s_ctx->free_sounds)); - cs_sound_inst_t* inst = CUTE_SOUND_LIST_HOST(cs_sound_inst_t, node, cs_list_pop_back(&s_ctx->free_sounds)); - float pan = params.pan; - if (pan > 1.0f) pan = 1.0f; - else if (pan < 0.0f) pan = 0.0f; - float panl = 1.0f - pan; - float panr = pan; - inst->is_music = false; - inst->paused = params.paused; - inst->looped = params.looped; - inst->volume = params.volume; - inst->pan0 = panl; - inst->pan1 = panr; - inst->audio = src; - inst->sample_index = 0; - cs_list_init_node(&inst->node); - s_insert(inst); - return inst; -} - -cs_error_t cs_music_play(cs_audio_source_t* audio_source, float fade_in_time) -{ - if (s_ctx->music_state != CUTE_SOUND_MUSIC_STATE_PLAYING) { - cs_error_t err = cs_music_stop(0); - if (err) return err; - } - - if (fade_in_time < 0) fade_in_time = 0; - if (fade_in_time) { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_FADE_IN; - } else { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_PLAYING; - } - s_ctx->fade = fade_in_time; - s_ctx->t = 0; - - CUTE_SOUND_ASSERT(s_ctx->music_playing == NULL); - CUTE_SOUND_ASSERT(s_ctx->music_next == NULL); - cs_sound_inst_t* inst = s_inst_music(audio_source, fade_in_time == 0 ? 1.0f : 0); - s_ctx->music_playing = inst; - - return CUTE_SOUND_ERROR_NONE; -} - -cs_error_t cs_music_stop(float fade_out_time) -{ - if (fade_out_time < 0) fade_out_time = 0; - - if (fade_out_time == 0) { - // Immediately turn off all music if no fade out time. - if (s_ctx->music_playing) s_ctx->music_playing->active = false; - if (s_ctx->music_next) s_ctx->music_next->active = false; - s_ctx->music_playing = NULL; - s_ctx->music_next = NULL; - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_NONE; - return CUTE_SOUND_ERROR_NONE; - } else { - switch (s_ctx->music_state) { - case CUTE_SOUND_MUSIC_STATE_NONE: - break; - - case CUTE_SOUND_MUSIC_STATE_PLAYING: - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_FADE_OUT; - s_ctx->fade = fade_out_time; - s_ctx->t = 0; - break; - - case CUTE_SOUND_MUSIC_STATE_FADE_OUT: - return CUTE_SOUND_ERROR_NONE; - - case CUTE_SOUND_MUSIC_STATE_FADE_IN: - { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_FADE_OUT; - s_ctx->t = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - s_ctx->fade = fade_out_time; - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0: - { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_FADE_OUT; - s_ctx->t = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - s_ctx->fade = fade_out_time; - s_ctx->music_next = NULL; - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_1: - // Fall-through. - - case CUTE_SOUND_MUSIC_STATE_CROSSFADE: - { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_FADE_OUT; - s_ctx->t = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - s_ctx->fade = fade_out_time; - s_ctx->music_playing = s_ctx->music_next; - s_ctx->music_next = NULL; - } break; - - case CUTE_SOUND_MUSIC_STATE_PAUSED: - return CUTE_SOUND_ERROR_CANNOT_FADEOUT_WHILE_MUSIC_IS_PAUSED; - } - - return CUTE_SOUND_ERROR_NONE; - } -} - -void cs_music_set_volume(float volume_0_to_1) -{ - if (volume_0_to_1 > 1.0f) volume_0_to_1 = 1.0f; - if (volume_0_to_1 < 0) volume_0_to_1 = 0; - s_ctx->music_volume = volume_0_to_1; - if (s_ctx->music_playing) s_ctx->music_playing->volume = volume_0_to_1; - if (s_ctx->music_next) s_ctx->music_next->volume = volume_0_to_1; -} - -void cs_music_set_pitch(float pitch) -{ - (void)pitch; - // TODO -} - -void cs_music_set_loop(bool true_to_loop) -{ - s_ctx->music_looped = true_to_loop; - if (s_ctx->music_playing) s_ctx->music_playing->looped = true_to_loop; - if (s_ctx->music_next) s_ctx->music_next->looped = true_to_loop; -} - -void cs_music_pause() -{ - if (s_ctx->music_state == CUTE_SOUND_MUSIC_STATE_PAUSED) return; - if (s_ctx->music_playing) s_ctx->music_playing->paused = true; - if (s_ctx->music_next) s_ctx->music_next->paused = true; - s_ctx->music_paused = true; - s_ctx->music_state_to_resume_from_paused = s_ctx->music_state; - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_PAUSED; -} - -void cs_music_resume() -{ - if (s_ctx->music_state != CUTE_SOUND_MUSIC_STATE_PAUSED) return; - if (s_ctx->music_playing) s_ctx->music_playing->paused = false; - if (s_ctx->music_next) s_ctx->music_next->paused = false; - s_ctx->music_state = s_ctx->music_state_to_resume_from_paused; -} - -cs_error_t cs_music_switch_to(cs_audio_source_t* audio_source, float fade_out_time, float fade_in_time) -{ - if (fade_in_time < 0) fade_in_time = 0; - if (fade_out_time < 0) fade_out_time = 0; - - switch (s_ctx->music_state) { - case CUTE_SOUND_MUSIC_STATE_NONE: - return cs_music_play(audio_source, fade_in_time); - - case CUTE_SOUND_MUSIC_STATE_PLAYING: - { - CUTE_SOUND_ASSERT(s_ctx->music_next == NULL); - cs_sound_inst_t* inst = s_inst_music(audio_source, fade_in_time == 0 ? 1.0f : 0); - s_ctx->music_next = inst; - - s_ctx->fade = fade_out_time; - s_ctx->fade_switch_1 = fade_in_time; - s_ctx->t = 0; - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0; - } break; - - case CUTE_SOUND_MUSIC_STATE_FADE_OUT: - { - CUTE_SOUND_ASSERT(s_ctx->music_next == NULL); - cs_sound_inst_t* inst = s_inst_music(audio_source, fade_in_time == 0 ? 1.0f : 0); - s_ctx->music_next = inst; - - s_ctx->fade_switch_1 = fade_in_time; - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0; - } break; - - case CUTE_SOUND_MUSIC_STATE_FADE_IN: - { - CUTE_SOUND_ASSERT(s_ctx->music_next == NULL); - cs_sound_inst_t* inst = s_inst_music(audio_source, fade_in_time == 0 ? 1.0f : 0); - s_ctx->music_next = inst; - - s_ctx->fade_switch_1 = fade_in_time; - s_ctx->t = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0; - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0: - { - CUTE_SOUND_ASSERT(s_ctx->music_next != NULL); - cs_sound_inst_t* inst = s_inst_music(audio_source, fade_in_time == 0 ? 1.0f : 0); - s_ctx->music_next->active = false; - s_ctx->music_next = inst; - s_ctx->fade_switch_1 = fade_in_time; - } break; - - case CUTE_SOUND_MUSIC_STATE_CROSSFADE: // Fall-through. - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_1: - { - CUTE_SOUND_ASSERT(s_ctx->music_next != NULL); - cs_sound_inst_t* inst = s_inst_music(audio_source, fade_in_time == 0 ? 1.0f : 0); - s_ctx->music_playing = s_ctx->music_next; - s_ctx->music_next = inst; - - s_ctx->t = s_smoothstep(((s_ctx->fade - s_ctx->t) / s_ctx->fade)); - s_ctx->fade_switch_1 = fade_in_time; - s_ctx->fade = fade_out_time; - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0; - } break; - - case CUTE_SOUND_MUSIC_STATE_PAUSED: - return CUTE_SOUND_ERROR_CANNOT_SWITCH_MUSIC_WHILE_PAUSED; - } - - return CUTE_SOUND_ERROR_NONE; -} - -cs_error_t cs_music_crossfade(cs_audio_source_t* audio_source, float cross_fade_time) -{ - if (cross_fade_time < 0) cross_fade_time = 0; - - switch (s_ctx->music_state) { - case CUTE_SOUND_MUSIC_STATE_NONE: - return cs_music_play(audio_source, cross_fade_time); - - case CUTE_SOUND_MUSIC_STATE_PLAYING: - { - CUTE_SOUND_ASSERT(s_ctx->music_next == NULL); - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_CROSSFADE; - - cs_sound_inst_t* inst = s_inst_music(audio_source, cross_fade_time == 0 ? 1.0f : 0); - inst->paused = false; - s_ctx->music_next = inst; - - s_ctx->fade = cross_fade_time; - s_ctx->t = 0; - } break; - - case CUTE_SOUND_MUSIC_STATE_FADE_OUT: - CUTE_SOUND_ASSERT(s_ctx->music_next == NULL); - // Fall-through. - - case CUTE_SOUND_MUSIC_STATE_FADE_IN: - { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_CROSSFADE; - - cs_sound_inst_t* inst = s_inst_music(audio_source, cross_fade_time == 0 ? 1.0f : 0); - inst->paused = false; - s_ctx->music_next = inst; - - s_ctx->fade = cross_fade_time; - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_0: - { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_CROSSFADE; - s_ctx->music_next->active = false; - - cs_sound_inst_t* inst = s_inst_music(audio_source, cross_fade_time == 0 ? 1.0f : 0); - inst->paused = false; - s_ctx->music_next = inst; - - s_ctx->fade = cross_fade_time; - } break; - - case CUTE_SOUND_MUSIC_STATE_SWITCH_TO_1: // Fall-through. - case CUTE_SOUND_MUSIC_STATE_CROSSFADE: - { - s_ctx->music_state = CUTE_SOUND_MUSIC_STATE_CROSSFADE; - s_ctx->music_playing->active = false; - s_ctx->music_playing = s_ctx->music_next; - - cs_sound_inst_t* inst = s_inst_music(audio_source, cross_fade_time == 0 ? 1.0f : 0); - inst->paused = false; - s_ctx->music_next = inst; - - s_ctx->fade = cross_fade_time; - } break; - - case CUTE_SOUND_MUSIC_STATE_PAUSED: - return CUTE_SOUND_ERROR_CANNOT_CROSSFADE_WHILE_MUSIC_IS_PAUSED; - } - - return CUTE_SOUND_ERROR_NONE; -} - -// ------------------------------------------------------------------------------------------------- -// Playing sounds. - -cs_sound_params_t cs_sound_params_default() -{ - cs_sound_params_t params; - params.paused = false; - params.looped = false; - params.volume = 1.0f; - params.pan = 0.5f; - params.delay = 0.0f; - return params; -} - -static cs_sound_inst_t* s_get_inst(cs_playing_sound_t sound) -{ - return (cs_sound_inst_t*)hashtable_find(&s_ctx->instance_map, sound.id); -} - -cs_playing_sound_t cs_play_sound(cs_audio_source_t* audio, cs_sound_params_t params) -{ - cs_sound_inst_t* inst = s_inst(audio, params); - cs_playing_sound_t sound = { inst->id }; - return sound; -} - -bool cs_sound_is_active(cs_playing_sound_t sound) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return false; - return inst->active; -} - -bool cs_sound_get_is_paused(cs_playing_sound_t sound) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return false; - return inst->paused; -} - -bool cs_sound_get_is_looped(cs_playing_sound_t sound) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return false; - return inst->looped; -} - -float cs_sound_get_volume(cs_playing_sound_t sound) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return 0; - return inst->volume; -} - -float cs_sound_get_pitch(cs_playing_sound_t sound) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return 0; - return 0; // TODO. - //return inst->pitch; -} - -uint64_t cs_sound_get_sample_index(cs_playing_sound_t sound) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return 0; - return inst->sample_index; -} - -void cs_sound_set_is_paused(cs_playing_sound_t sound, bool true_for_paused) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return; - inst->paused = true_for_paused; -} - -void cs_sound_set_is_looped(cs_playing_sound_t sound, bool true_for_looped) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return; - inst->looped = true_for_looped; -} - -void cs_sound_set_volume(cs_playing_sound_t sound, float volume_0_to_1) -{ - if (volume_0_to_1 > 1.0f) volume_0_to_1 = 1.0f; - if (volume_0_to_1 < 0) volume_0_to_1 = 0; - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return; - inst->volume = volume_0_to_1; -} - -void cs_sound_set_pitch(cs_playing_sound_t sound, float pitch_0_to_1) -{ - (void)sound; - (void)pitch_0_to_1; - // TODO. -} - -cs_error_t cs_sound_set_sample_index(cs_playing_sound_t sound, uint64_t sample_index) -{ - cs_sound_inst_t* inst = s_get_inst(sound); - if (!inst) return CUTE_SOUND_ERROR_INVALID_SOUND; - if (sample_index > inst->audio->sample_count) return CUTE_SOUND_ERROR_TRIED_TO_SET_SAMPLE_INDEX_BEYOND_THE_AUDIO_SOURCES_SAMPLE_COUNT; - inst->sample_index = sample_index; - return CUTE_SOUND_ERROR_NONE; -} - -void cs_set_playing_sounds_volume(float volume_0_to_1) -{ - if (volume_0_to_1 > 1.0f) volume_0_to_1 = 1.0f; - if (volume_0_to_1 < 0) volume_0_to_1 = 0; - s_ctx->sound_volume = volume_0_to_1; -} - -void cs_stop_all_playing_sounds() -{ - cs_lock(); - - // Set all playing sounds (that aren't music) active to false. - if (cs_list_empty(&s_ctx->playing_sounds)) return; - cs_list_node_t* playing_sound = cs_list_begin(&s_ctx->playing_sounds); - cs_list_node_t* end = cs_list_end(&s_ctx->playing_sounds); - - do { - cs_sound_inst_t* inst = CUTE_SOUND_LIST_HOST(cs_sound_inst_t, node, playing_sound); - cs_list_node_t* next = playing_sound->next; - if (inst != s_ctx->music_playing && inst != s_ctx->music_next) { - inst->active = false; // Let cs_mix handle cleaning this up. - } - playing_sound = next; - } while (playing_sound != end); - - cs_unlock(); -} - -// ------------------------------------------------------------------------------------------------- -// Plugins - - -#endif // CUTE_SOUND_IMPLEMENTATION_ONCE -#endif // CUTE_SOUND_IMPLEMENTATION - -/* - ------------------------------------------------------------------------------ - This software is available under 2 licenses - you may choose the one you like. - ------------------------------------------------------------------------------ - ALTERNATIVE A - zlib license - Copyright (c) 2017 Randy Gaul http://www.randygaul.net - 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. - ------------------------------------------------------------------------------ - 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/External/stb b/External/stb new file mode 160000 index 0000000..af1a5bc --- /dev/null +++ b/External/stb @@ -0,0 +1 @@ +Subproject commit af1a5bc352164740c1cc1354942b1c6b72eacb8a diff --git a/External/stb/stb_vorbis.c b/External/stb/stb_vorbis.c deleted file mode 100644 index 531ed15..0000000 --- a/External/stb/stb_vorbis.c +++ /dev/null @@ -1,5580 +0,0 @@ -// Ogg Vorbis audio decoder - v1.22 - public domain -// http://nothings.org/stb_vorbis/ -// -// Original version written by Sean Barrett in 2007. -// -// Originally sponsored by RAD Game Tools. Seeking implementation -// sponsored by Phillip Bennefall, Marc Andersen, Aaron Baker, -// Elias Software, Aras Pranckevicius, and Sean Barrett. -// -// LICENSE -// -// See end of file for license information. -// -// Limitations: -// -// - floor 0 not supported (used in old ogg vorbis files pre-2004) -// - lossless sample-truncation at beginning ignored -// - cannot concatenate multiple vorbis streams -// - sample positions are 32-bit, limiting seekable 192Khz -// files to around 6 hours (Ogg supports 64-bit) -// -// Feature contributors: -// Dougall Johnson (sample-exact seeking) -// -// Bugfix/warning contributors: -// Terje Mathisen Niklas Frykholm Andy Hill -// Casey Muratori John Bolton Gargaj -// Laurent Gomila Marc LeBlanc Ronny Chevalier -// Bernhard Wodo Evan Balster github:alxprd -// Tom Beaumont Ingo Leitgeb Nicolas Guillemot -// Phillip Bennefall Rohit Thiago Goulart -// github:manxorist Saga Musix github:infatum -// Timur Gagiev Maxwell Koo Peter Waller -// github:audinowho Dougall Johnson David Reid -// github:Clownacy Pedro J. Estebanez Remi Verschelde -// AnthoFoxo github:morlat Gabriel Ravier -// -// Partial history: -// 1.22 - 2021-07-11 - various small fixes -// 1.21 - 2021-07-02 - fix bug for files with no comments -// 1.20 - 2020-07-11 - several small fixes -// 1.19 - 2020-02-05 - warnings -// 1.18 - 2020-02-02 - fix seek bugs; parse header comments; misc warnings etc. -// 1.17 - 2019-07-08 - fix CVE-2019-13217..CVE-2019-13223 (by ForAllSecure) -// 1.16 - 2019-03-04 - fix warnings -// 1.15 - 2019-02-07 - explicit failure if Ogg Skeleton data is found -// 1.14 - 2018-02-11 - delete bogus dealloca usage -// 1.13 - 2018-01-29 - fix truncation of last frame (hopefully) -// 1.12 - 2017-11-21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files -// 1.11 - 2017-07-23 - fix MinGW compilation -// 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memory -// 1.09 - 2016-04-04 - back out 'truncation of last frame' fix from previous version -// 1.08 - 2016-04-02 - warnings; setup memory leaks; truncation of last frame -// 1.07 - 2015-01-16 - fixes for crashes on invalid files; warning fixes; const -// 1.06 - 2015-08-31 - full, correct support for seeking API (Dougall Johnson) -// some crash fixes when out of memory or with corrupt files -// fix some inappropriately signed shifts -// 1.05 - 2015-04-19 - don't define __forceinline if it's redundant -// 1.04 - 2014-08-27 - fix missing const-correct case in API -// 1.03 - 2014-08-07 - warning fixes -// 1.02 - 2014-07-09 - declare qsort comparison as explicitly _cdecl in Windows -// 1.01 - 2014-06-18 - fix stb_vorbis_get_samples_float (interleaved was correct) -// 1.0 - 2014-05-26 - fix memory leaks; fix warnings; fix bugs in >2-channel; -// (API change) report sample rate for decode-full-file funcs -// -// See end of file for full version history. - - -////////////////////////////////////////////////////////////////////////////// -// -// HEADER BEGINS HERE -// - -#ifndef STB_VORBIS_INCLUDE_STB_VORBIS_H -#define STB_VORBIS_INCLUDE_STB_VORBIS_H - -#if defined(STB_VORBIS_NO_CRT) && !defined(STB_VORBIS_NO_STDIO) -#define STB_VORBIS_NO_STDIO 1 -#endif - -#ifndef STB_VORBIS_NO_STDIO -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/////////// THREAD SAFETY - -// Individual stb_vorbis* handles are not thread-safe; you cannot decode from -// them from multiple threads at the same time. However, you can have multiple -// stb_vorbis* handles and decode from them independently in multiple thrads. - - -/////////// MEMORY ALLOCATION - -// normally stb_vorbis uses malloc() to allocate memory at startup, -// and alloca() to allocate temporary memory during a frame on the -// stack. (Memory consumption will depend on the amount of setup -// data in the file and how you set the compile flags for speed -// vs. size. In my test files the maximal-size usage is ~150KB.) -// -// You can modify the wrapper functions in the source (setup_malloc, -// setup_temp_malloc, temp_malloc) to change this behavior, or you -// can use a simpler allocation model: you pass in a buffer from -// which stb_vorbis will allocate _all_ its memory (including the -// temp memory). "open" may fail with a VORBIS_outofmem if you -// do not pass in enough data; there is no way to determine how -// much you do need except to succeed (at which point you can -// query get_info to find the exact amount required. yes I know -// this is lame). -// -// If you pass in a non-NULL buffer of the type below, allocation -// will occur from it as described above. Otherwise just pass NULL -// to use malloc()/alloca() - -typedef struct -{ - char *alloc_buffer; - int alloc_buffer_length_in_bytes; -} stb_vorbis_alloc; - - -/////////// FUNCTIONS USEABLE WITH ALL INPUT MODES - -typedef struct stb_vorbis stb_vorbis; - -typedef struct -{ - unsigned int sample_rate; - int channels; - - unsigned int setup_memory_required; - unsigned int setup_temp_memory_required; - unsigned int temp_memory_required; - - int max_frame_size; -} stb_vorbis_info; - -typedef struct -{ - char *vendor; - - int comment_list_length; - char **comment_list; -} stb_vorbis_comment; - -// get general information about the file -extern stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f); - -// get ogg comments -extern stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f); - -// get the last error detected (clears it, too) -extern int stb_vorbis_get_error(stb_vorbis *f); - -// close an ogg vorbis file and free all memory in use -extern void stb_vorbis_close(stb_vorbis *f); - -// this function returns the offset (in samples) from the beginning of the -// file that will be returned by the next decode, if it is known, or -1 -// otherwise. after a flush_pushdata() call, this may take a while before -// it becomes valid again. -// NOT WORKING YET after a seek with PULLDATA API -extern int stb_vorbis_get_sample_offset(stb_vorbis *f); - -// returns the current seek point within the file, or offset from the beginning -// of the memory buffer. In pushdata mode it returns 0. -extern unsigned int stb_vorbis_get_file_offset(stb_vorbis *f); - -/////////// PUSHDATA API - -#ifndef STB_VORBIS_NO_PUSHDATA_API - -// this API allows you to get blocks of data from any source and hand -// them to stb_vorbis. you have to buffer them; stb_vorbis will tell -// you how much it used, and you have to give it the rest next time; -// and stb_vorbis may not have enough data to work with and you will -// need to give it the same data again PLUS more. Note that the Vorbis -// specification does not bound the size of an individual frame. - -extern stb_vorbis *stb_vorbis_open_pushdata( - const unsigned char * datablock, int datablock_length_in_bytes, - int *datablock_memory_consumed_in_bytes, - int *error, - const stb_vorbis_alloc *alloc_buffer); -// create a vorbis decoder by passing in the initial data block containing -// the ogg&vorbis headers (you don't need to do parse them, just provide -// the first N bytes of the file--you're told if it's not enough, see below) -// on success, returns an stb_vorbis *, does not set error, returns the amount of -// data parsed/consumed on this call in *datablock_memory_consumed_in_bytes; -// on failure, returns NULL on error and sets *error, does not change *datablock_memory_consumed -// if returns NULL and *error is VORBIS_need_more_data, then the input block was -// incomplete and you need to pass in a larger block from the start of the file - -extern int stb_vorbis_decode_frame_pushdata( - stb_vorbis *f, - const unsigned char *datablock, int datablock_length_in_bytes, - int *channels, // place to write number of float * buffers - float ***output, // place to write float ** array of float * buffers - int *samples // place to write number of output samples - ); -// decode a frame of audio sample data if possible from the passed-in data block -// -// return value: number of bytes we used from datablock -// -// possible cases: -// 0 bytes used, 0 samples output (need more data) -// N bytes used, 0 samples output (resynching the stream, keep going) -// N bytes used, M samples output (one frame of data) -// note that after opening a file, you will ALWAYS get one N-bytes,0-sample -// frame, because Vorbis always "discards" the first frame. -// -// Note that on resynch, stb_vorbis will rarely consume all of the buffer, -// instead only datablock_length_in_bytes-3 or less. This is because it wants -// to avoid missing parts of a page header if they cross a datablock boundary, -// without writing state-machiney code to record a partial detection. -// -// The number of channels returned are stored in *channels (which can be -// NULL--it is always the same as the number of channels reported by -// get_info). *output will contain an array of float* buffers, one per -// channel. In other words, (*output)[0][0] contains the first sample from -// the first channel, and (*output)[1][0] contains the first sample from -// the second channel. -// -// *output points into stb_vorbis's internal output buffer storage; these -// buffers are owned by stb_vorbis and application code should not free -// them or modify their contents. They are transient and will be overwritten -// once you ask for more data to get decoded, so be sure to grab any data -// you need before then. - -extern void stb_vorbis_flush_pushdata(stb_vorbis *f); -// inform stb_vorbis that your next datablock will not be contiguous with -// previous ones (e.g. you've seeked in the data); future attempts to decode -// frames will cause stb_vorbis to resynchronize (as noted above), and -// once it sees a valid Ogg page (typically 4-8KB, as large as 64KB), it -// will begin decoding the _next_ frame. -// -// if you want to seek using pushdata, you need to seek in your file, then -// call stb_vorbis_flush_pushdata(), then start calling decoding, then once -// decoding is returning you data, call stb_vorbis_get_sample_offset, and -// if you don't like the result, seek your file again and repeat. -#endif - - -////////// PULLING INPUT API - -#ifndef STB_VORBIS_NO_PULLDATA_API -// This API assumes stb_vorbis is allowed to pull data from a source-- -// either a block of memory containing the _entire_ vorbis stream, or a -// FILE * that you or it create, or possibly some other reading mechanism -// if you go modify the source to replace the FILE * case with some kind -// of callback to your code. (But if you don't support seeking, you may -// just want to go ahead and use pushdata.) - -#if !defined(STB_VORBIS_NO_STDIO) && !defined(STB_VORBIS_NO_INTEGER_CONVERSION) -extern int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output); -#endif -#if !defined(STB_VORBIS_NO_INTEGER_CONVERSION) -extern int stb_vorbis_decode_memory(const unsigned char *mem, int len, int *channels, int *sample_rate, short **output); -#endif -// decode an entire file and output the data interleaved into a malloc()ed -// buffer stored in *output. The return value is the number of samples -// decoded, or -1 if the file could not be opened or was not an ogg vorbis file. -// When you're done with it, just free() the pointer returned in *output. - -extern stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, - int *error, const stb_vorbis_alloc *alloc_buffer); -// create an ogg vorbis decoder from an ogg vorbis stream in memory (note -// this must be the entire stream!). on failure, returns NULL and sets *error - -#ifndef STB_VORBIS_NO_STDIO -extern stb_vorbis * stb_vorbis_open_filename(const char *filename, - int *error, const stb_vorbis_alloc *alloc_buffer); -// create an ogg vorbis decoder from a filename via fopen(). on failure, -// returns NULL and sets *error (possibly to VORBIS_file_open_failure). - -extern stb_vorbis * stb_vorbis_open_file(FILE *f, int close_handle_on_close, - int *error, const stb_vorbis_alloc *alloc_buffer); -// create an ogg vorbis decoder from an open FILE *, looking for a stream at -// the _current_ seek point (ftell). on failure, returns NULL and sets *error. -// note that stb_vorbis must "own" this stream; if you seek it in between -// calls to stb_vorbis, it will become confused. Moreover, if you attempt to -// perform stb_vorbis_seek_*() operations on this file, it will assume it -// owns the _entire_ rest of the file after the start point. Use the next -// function, stb_vorbis_open_file_section(), to limit it. - -extern stb_vorbis * stb_vorbis_open_file_section(FILE *f, int close_handle_on_close, - int *error, const stb_vorbis_alloc *alloc_buffer, unsigned int len); -// create an ogg vorbis decoder from an open FILE *, looking for a stream at -// the _current_ seek point (ftell); the stream will be of length 'len' bytes. -// on failure, returns NULL and sets *error. note that stb_vorbis must "own" -// this stream; if you seek it in between calls to stb_vorbis, it will become -// confused. -#endif - -extern int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number); -extern int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number); -// these functions seek in the Vorbis file to (approximately) 'sample_number'. -// after calling seek_frame(), the next call to get_frame_*() will include -// the specified sample. after calling stb_vorbis_seek(), the next call to -// stb_vorbis_get_samples_* will start with the specified sample. If you -// do not need to seek to EXACTLY the target sample when using get_samples_*, -// you can also use seek_frame(). - -extern int stb_vorbis_seek_start(stb_vorbis *f); -// this function is equivalent to stb_vorbis_seek(f,0) - -extern unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f); -extern float stb_vorbis_stream_length_in_seconds(stb_vorbis *f); -// these functions return the total length of the vorbis stream - -extern int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output); -// decode the next frame and return the number of samples. the number of -// channels returned are stored in *channels (which can be NULL--it is always -// the same as the number of channels reported by get_info). *output will -// contain an array of float* buffers, one per channel. These outputs will -// be overwritten on the next call to stb_vorbis_get_frame_*. -// -// You generally should not intermix calls to stb_vorbis_get_frame_*() -// and stb_vorbis_get_samples_*(), since the latter calls the former. - -#ifndef STB_VORBIS_NO_INTEGER_CONVERSION -extern int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts); -extern int stb_vorbis_get_frame_short (stb_vorbis *f, int num_c, short **buffer, int num_samples); -#endif -// decode the next frame and return the number of *samples* per channel. -// Note that for interleaved data, you pass in the number of shorts (the -// size of your array), but the return value is the number of samples per -// channel, not the total number of samples. -// -// The data is coerced to the number of channels you request according to the -// channel coercion rules (see below). You must pass in the size of your -// buffer(s) so that stb_vorbis will not overwrite the end of the buffer. -// The maximum buffer size needed can be gotten from get_info(); however, -// the Vorbis I specification implies an absolute maximum of 4096 samples -// per channel. - -// Channel coercion rules: -// Let M be the number of channels requested, and N the number of channels present, -// and Cn be the nth channel; let stereo L be the sum of all L and center channels, -// and stereo R be the sum of all R and center channels (channel assignment from the -// vorbis spec). -// M N output -// 1 k sum(Ck) for all k -// 2 * stereo L, stereo R -// k l k > l, the first l channels, then 0s -// k l k <= l, the first k channels -// Note that this is not _good_ surround etc. mixing at all! It's just so -// you get something useful. - -extern int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats); -extern int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples); -// gets num_samples samples, not necessarily on a frame boundary--this requires -// buffering so you have to supply the buffers. DOES NOT APPLY THE COERCION RULES. -// Returns the number of samples stored per channel; it may be less than requested -// at the end of the file. If there are no more samples in the file, returns 0. - -#ifndef STB_VORBIS_NO_INTEGER_CONVERSION -extern int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts); -extern int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int num_samples); -#endif -// gets num_samples samples, not necessarily on a frame boundary--this requires -// buffering so you have to supply the buffers. Applies the coercion rules above -// to produce 'channels' channels. Returns the number of samples stored per channel; -// it may be less than requested at the end of the file. If there are no more -// samples in the file, returns 0. - -#endif - -//////// ERROR CODES - -enum STBVorbisError -{ - VORBIS__no_error, - - VORBIS_need_more_data=1, // not a real error - - VORBIS_invalid_api_mixing, // can't mix API modes - VORBIS_outofmem, // not enough memory - VORBIS_feature_not_supported, // uses floor 0 - VORBIS_too_many_channels, // STB_VORBIS_MAX_CHANNELS is too small - VORBIS_file_open_failure, // fopen() failed - VORBIS_seek_without_length, // can't seek in unknown-length file - - VORBIS_unexpected_eof=10, // file is truncated? - VORBIS_seek_invalid, // seek past EOF - - // decoding errors (corrupt/invalid stream) -- you probably - // don't care about the exact details of these - - // vorbis errors: - VORBIS_invalid_setup=20, - VORBIS_invalid_stream, - - // ogg errors: - VORBIS_missing_capture_pattern=30, - VORBIS_invalid_stream_structure_version, - VORBIS_continued_packet_flag_invalid, - VORBIS_incorrect_stream_serial_number, - VORBIS_invalid_first_page, - VORBIS_bad_packet_type, - VORBIS_cant_find_last_page, - VORBIS_seek_failed, - VORBIS_ogg_skeleton_not_supported -}; - - -#ifdef __cplusplus -} -#endif - -#endif // STB_VORBIS_INCLUDE_STB_VORBIS_H -// -// HEADER ENDS HERE -// -////////////////////////////////////////////////////////////////////////////// - -#ifndef STB_VORBIS_HEADER_ONLY - -// global configuration settings (e.g. set these in the project/makefile), -// or just set them in this file at the top (although ideally the first few -// should be visible when the header file is compiled too, although it's not -// crucial) - -// STB_VORBIS_NO_PUSHDATA_API -// does not compile the code for the various stb_vorbis_*_pushdata() -// functions -// #define STB_VORBIS_NO_PUSHDATA_API - -// STB_VORBIS_NO_PULLDATA_API -// does not compile the code for the non-pushdata APIs -// #define STB_VORBIS_NO_PULLDATA_API - -// STB_VORBIS_NO_STDIO -// does not compile the code for the APIs that use FILE *s internally -// or externally (implied by STB_VORBIS_NO_PULLDATA_API) -// #define STB_VORBIS_NO_STDIO - -// STB_VORBIS_NO_INTEGER_CONVERSION -// does not compile the code for converting audio sample data from -// float to integer (implied by STB_VORBIS_NO_PULLDATA_API) -// #define STB_VORBIS_NO_INTEGER_CONVERSION - -// STB_VORBIS_NO_FAST_SCALED_FLOAT -// does not use a fast float-to-int trick to accelerate float-to-int on -// most platforms which requires endianness be defined correctly. -//#define STB_VORBIS_NO_FAST_SCALED_FLOAT - - -// STB_VORBIS_MAX_CHANNELS [number] -// globally define this to the maximum number of channels you need. -// The spec does not put a restriction on channels except that -// the count is stored in a byte, so 255 is the hard limit. -// Reducing this saves about 16 bytes per value, so using 16 saves -// (255-16)*16 or around 4KB. Plus anything other memory usage -// I forgot to account for. Can probably go as low as 8 (7.1 audio), -// 6 (5.1 audio), or 2 (stereo only). -#ifndef STB_VORBIS_MAX_CHANNELS -#define STB_VORBIS_MAX_CHANNELS 16 // enough for anyone? -#endif - -// STB_VORBIS_PUSHDATA_CRC_COUNT [number] -// after a flush_pushdata(), stb_vorbis begins scanning for the -// next valid page, without backtracking. when it finds something -// that looks like a page, it streams through it and verifies its -// CRC32. Should that validation fail, it keeps scanning. But it's -// possible that _while_ streaming through to check the CRC32 of -// one candidate page, it sees another candidate page. This #define -// determines how many "overlapping" candidate pages it can search -// at once. Note that "real" pages are typically ~4KB to ~8KB, whereas -// garbage pages could be as big as 64KB, but probably average ~16KB. -// So don't hose ourselves by scanning an apparent 64KB page and -// missing a ton of real ones in the interim; so minimum of 2 -#ifndef STB_VORBIS_PUSHDATA_CRC_COUNT -#define STB_VORBIS_PUSHDATA_CRC_COUNT 4 -#endif - -// STB_VORBIS_FAST_HUFFMAN_LENGTH [number] -// sets the log size of the huffman-acceleration table. Maximum -// supported value is 24. with larger numbers, more decodings are O(1), -// but the table size is larger so worse cache missing, so you'll have -// to probe (and try multiple ogg vorbis files) to find the sweet spot. -#ifndef STB_VORBIS_FAST_HUFFMAN_LENGTH -#define STB_VORBIS_FAST_HUFFMAN_LENGTH 10 -#endif - -// STB_VORBIS_FAST_BINARY_LENGTH [number] -// sets the log size of the binary-search acceleration table. this -// is used in similar fashion to the fast-huffman size to set initial -// parameters for the binary search - -// STB_VORBIS_FAST_HUFFMAN_INT -// The fast huffman tables are much more efficient if they can be -// stored as 16-bit results instead of 32-bit results. This restricts -// the codebooks to having only 65535 possible outcomes, though. -// (At least, accelerated by the huffman table.) -#ifndef STB_VORBIS_FAST_HUFFMAN_INT -#define STB_VORBIS_FAST_HUFFMAN_SHORT -#endif - -// STB_VORBIS_NO_HUFFMAN_BINARY_SEARCH -// If the 'fast huffman' search doesn't succeed, then stb_vorbis falls -// back on binary searching for the correct one. This requires storing -// extra tables with the huffman codes in sorted order. Defining this -// symbol trades off space for speed by forcing a linear search in the -// non-fast case, except for "sparse" codebooks. -// #define STB_VORBIS_NO_HUFFMAN_BINARY_SEARCH - -// STB_VORBIS_DIVIDES_IN_RESIDUE -// stb_vorbis precomputes the result of the scalar residue decoding -// that would otherwise require a divide per chunk. you can trade off -// space for time by defining this symbol. -// #define STB_VORBIS_DIVIDES_IN_RESIDUE - -// STB_VORBIS_DIVIDES_IN_CODEBOOK -// vorbis VQ codebooks can be encoded two ways: with every case explicitly -// stored, or with all elements being chosen from a small range of values, -// and all values possible in all elements. By default, stb_vorbis expands -// this latter kind out to look like the former kind for ease of decoding, -// because otherwise an integer divide-per-vector-element is required to -// unpack the index. If you define STB_VORBIS_DIVIDES_IN_CODEBOOK, you can -// trade off storage for speed. -//#define STB_VORBIS_DIVIDES_IN_CODEBOOK - -#ifdef STB_VORBIS_CODEBOOK_SHORTS -#error "STB_VORBIS_CODEBOOK_SHORTS is no longer supported as it produced incorrect results for some input formats" -#endif - -// STB_VORBIS_DIVIDE_TABLE -// this replaces small integer divides in the floor decode loop with -// table lookups. made less than 1% difference, so disabled by default. - -// STB_VORBIS_NO_INLINE_DECODE -// disables the inlining of the scalar codebook fast-huffman decode. -// might save a little codespace; useful for debugging -// #define STB_VORBIS_NO_INLINE_DECODE - -// STB_VORBIS_NO_DEFER_FLOOR -// Normally we only decode the floor without synthesizing the actual -// full curve. We can instead synthesize the curve immediately. This -// requires more memory and is very likely slower, so I don't think -// you'd ever want to do it except for debugging. -// #define STB_VORBIS_NO_DEFER_FLOOR - - - - -////////////////////////////////////////////////////////////////////////////// - -#ifdef STB_VORBIS_NO_PULLDATA_API - #define STB_VORBIS_NO_INTEGER_CONVERSION - #define STB_VORBIS_NO_STDIO -#endif - -#if defined(STB_VORBIS_NO_CRT) && !defined(STB_VORBIS_NO_STDIO) - #define STB_VORBIS_NO_STDIO 1 -#endif - -#ifndef STB_VORBIS_NO_INTEGER_CONVERSION -#ifndef STB_VORBIS_NO_FAST_SCALED_FLOAT - - // only need endianness for fast-float-to-int, which we don't - // use for pushdata - - #ifndef STB_VORBIS_BIG_ENDIAN - #define STB_VORBIS_ENDIAN 0 - #else - #define STB_VORBIS_ENDIAN 1 - #endif - -#endif -#endif - - -#ifndef STB_VORBIS_NO_STDIO -#include -#endif - -#ifndef STB_VORBIS_NO_CRT - #include - #include - #include - #include - - // find definition of alloca if it's not in stdlib.h: - #if defined(_MSC_VER) || defined(__MINGW32__) - #include - #endif - #if defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__) - #include - #endif -#else // STB_VORBIS_NO_CRT - #define NULL 0 - #define malloc(s) 0 - #define free(s) ((void) 0) - #define realloc(s) 0 -#endif // STB_VORBIS_NO_CRT - -#include - -#ifdef __MINGW32__ - // eff you mingw: - // "fixed": - // http://sourceforge.net/p/mingw-w64/mailman/message/32882927/ - // "no that broke the build, reverted, who cares about C": - // http://sourceforge.net/p/mingw-w64/mailman/message/32890381/ - #ifdef __forceinline - #undef __forceinline - #endif - #define __forceinline - #ifndef alloca - #define alloca __builtin_alloca - #endif -#elif !defined(_MSC_VER) - #if __GNUC__ - #define __forceinline inline - #else - #define __forceinline - #endif -#endif - -#if STB_VORBIS_MAX_CHANNELS > 256 -#error "Value of STB_VORBIS_MAX_CHANNELS outside of allowed range" -#endif - -#if STB_VORBIS_FAST_HUFFMAN_LENGTH > 24 -#error "Value of STB_VORBIS_FAST_HUFFMAN_LENGTH outside of allowed range" -#endif - - -#if 0 -#include -#define CHECK(f) _CrtIsValidHeapPointer(f->channel_buffers[1]) -#else -#define CHECK(f) ((void) 0) -#endif - -#define MAX_BLOCKSIZE_LOG 13 // from specification -#define MAX_BLOCKSIZE (1 << MAX_BLOCKSIZE_LOG) - - -typedef unsigned char uint8; -typedef signed char int8; -typedef unsigned short uint16; -typedef signed short int16; -typedef unsigned int uint32; -typedef signed int int32; - -#ifndef TRUE -#define TRUE 1 -#define FALSE 0 -#endif - -typedef float codetype; - -#ifdef _MSC_VER -#define STBV_NOTUSED(v) (void)(v) -#else -#define STBV_NOTUSED(v) (void)sizeof(v) -#endif - -// @NOTE -// -// Some arrays below are tagged "//varies", which means it's actually -// a variable-sized piece of data, but rather than malloc I assume it's -// small enough it's better to just allocate it all together with the -// main thing -// -// Most of the variables are specified with the smallest size I could pack -// them into. It might give better performance to make them all full-sized -// integers. It should be safe to freely rearrange the structures or change -// the sizes larger--nothing relies on silently truncating etc., nor the -// order of variables. - -#define FAST_HUFFMAN_TABLE_SIZE (1 << STB_VORBIS_FAST_HUFFMAN_LENGTH) -#define FAST_HUFFMAN_TABLE_MASK (FAST_HUFFMAN_TABLE_SIZE - 1) - -typedef struct -{ - int dimensions, entries; - uint8 *codeword_lengths; - float minimum_value; - float delta_value; - uint8 value_bits; - uint8 lookup_type; - uint8 sequence_p; - uint8 sparse; - uint32 lookup_values; - codetype *multiplicands; - uint32 *codewords; - #ifdef STB_VORBIS_FAST_HUFFMAN_SHORT - int16 fast_huffman[FAST_HUFFMAN_TABLE_SIZE]; - #else - int32 fast_huffman[FAST_HUFFMAN_TABLE_SIZE]; - #endif - uint32 *sorted_codewords; - int *sorted_values; - int sorted_entries; -} Codebook; - -typedef struct -{ - uint8 order; - uint16 rate; - uint16 bark_map_size; - uint8 amplitude_bits; - uint8 amplitude_offset; - uint8 number_of_books; - uint8 book_list[16]; // varies -} Floor0; - -typedef struct -{ - uint8 partitions; - uint8 partition_class_list[32]; // varies - uint8 class_dimensions[16]; // varies - uint8 class_subclasses[16]; // varies - uint8 class_masterbooks[16]; // varies - int16 subclass_books[16][8]; // varies - uint16 Xlist[31*8+2]; // varies - uint8 sorted_order[31*8+2]; - uint8 neighbors[31*8+2][2]; - uint8 floor1_multiplier; - uint8 rangebits; - int values; -} Floor1; - -typedef union -{ - Floor0 floor0; - Floor1 floor1; -} Floor; - -typedef struct -{ - uint32 begin, end; - uint32 part_size; - uint8 classifications; - uint8 classbook; - uint8 **classdata; - int16 (*residue_books)[8]; -} Residue; - -typedef struct -{ - uint8 magnitude; - uint8 angle; - uint8 mux; -} MappingChannel; - -typedef struct -{ - uint16 coupling_steps; - MappingChannel *chan; - uint8 submaps; - uint8 submap_floor[15]; // varies - uint8 submap_residue[15]; // varies -} Mapping; - -typedef struct -{ - uint8 blockflag; - uint8 mapping; - uint16 windowtype; - uint16 transformtype; -} Mode; - -typedef struct -{ - uint32 goal_crc; // expected crc if match - int bytes_left; // bytes left in packet - uint32 crc_so_far; // running crc - int bytes_done; // bytes processed in _current_ chunk - uint32 sample_loc; // granule pos encoded in page -} CRCscan; - -typedef struct -{ - uint32 page_start, page_end; - uint32 last_decoded_sample; -} ProbedPage; - -struct stb_vorbis -{ - // user-accessible info - unsigned int sample_rate; - int channels; - - unsigned int setup_memory_required; - unsigned int temp_memory_required; - unsigned int setup_temp_memory_required; - - char *vendor; - int comment_list_length; - char **comment_list; - - // input config -#ifndef STB_VORBIS_NO_STDIO - FILE *f; - uint32 f_start; - int close_on_free; -#endif - - uint8 *stream; - uint8 *stream_start; - uint8 *stream_end; - - uint32 stream_len; - - uint8 push_mode; - - // the page to seek to when seeking to start, may be zero - uint32 first_audio_page_offset; - - // p_first is the page on which the first audio packet ends - // (but not necessarily the page on which it starts) - ProbedPage p_first, p_last; - - // memory management - stb_vorbis_alloc alloc; - int setup_offset; - int temp_offset; - - // run-time results - int eof; - enum STBVorbisError error; - - // user-useful data - - // header info - int blocksize[2]; - int blocksize_0, blocksize_1; - int codebook_count; - Codebook *codebooks; - int floor_count; - uint16 floor_types[64]; // varies - Floor *floor_config; - int residue_count; - uint16 residue_types[64]; // varies - Residue *residue_config; - int mapping_count; - Mapping *mapping; - int mode_count; - Mode mode_config[64]; // varies - - uint32 total_samples; - - // decode buffer - float *channel_buffers[STB_VORBIS_MAX_CHANNELS]; - float *outputs [STB_VORBIS_MAX_CHANNELS]; - - float *previous_window[STB_VORBIS_MAX_CHANNELS]; - int previous_length; - - #ifndef STB_VORBIS_NO_DEFER_FLOOR - int16 *finalY[STB_VORBIS_MAX_CHANNELS]; - #else - float *floor_buffers[STB_VORBIS_MAX_CHANNELS]; - #endif - - uint32 current_loc; // sample location of next frame to decode - int current_loc_valid; - - // per-blocksize precomputed data - - // twiddle factors - float *A[2],*B[2],*C[2]; - float *window[2]; - uint16 *bit_reverse[2]; - - // current page/packet/segment streaming info - uint32 serial; // stream serial number for verification - int last_page; - int segment_count; - uint8 segments[255]; - uint8 page_flag; - uint8 bytes_in_seg; - uint8 first_decode; - int next_seg; - int last_seg; // flag that we're on the last segment - int last_seg_which; // what was the segment number of the last seg? - uint32 acc; - int valid_bits; - int packet_bytes; - int end_seg_with_known_loc; - uint32 known_loc_for_packet; - int discard_samples_deferred; - uint32 samples_output; - - // push mode scanning - int page_crc_tests; // only in push_mode: number of tests active; -1 if not searching -#ifndef STB_VORBIS_NO_PUSHDATA_API - CRCscan scan[STB_VORBIS_PUSHDATA_CRC_COUNT]; -#endif - - // sample-access - int channel_buffer_start; - int channel_buffer_end; -}; - -#if defined(STB_VORBIS_NO_PUSHDATA_API) - #define IS_PUSH_MODE(f) FALSE -#elif defined(STB_VORBIS_NO_PULLDATA_API) - #define IS_PUSH_MODE(f) TRUE -#else - #define IS_PUSH_MODE(f) ((f)->push_mode) -#endif - -typedef struct stb_vorbis vorb; - -static int error(vorb *f, enum STBVorbisError e) -{ - f->error = e; - if (!f->eof && e != VORBIS_need_more_data) { - f->error=e; // breakpoint for debugging - } - return 0; -} - - -// these functions are used for allocating temporary memory -// while decoding. if you can afford the stack space, use -// alloca(); otherwise, provide a temp buffer and it will -// allocate out of those. - -#define array_size_required(count,size) (count*(sizeof(void *)+(size))) - -#define temp_alloc(f,size) (f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size)) -#define temp_free(f,p) (void)0 -#define temp_alloc_save(f) ((f)->temp_offset) -#define temp_alloc_restore(f,p) ((f)->temp_offset = (p)) - -#define temp_block_array(f,count,size) make_block_array(temp_alloc(f,array_size_required(count,size)), count, size) - -// given a sufficiently large block of memory, make an array of pointers to subblocks of it -static void *make_block_array(void *mem, int count, int size) -{ - int i; - void ** p = (void **) mem; - char *q = (char *) (p + count); - for (i=0; i < count; ++i) { - p[i] = q; - q += size; - } - return p; -} - -static void *setup_malloc(vorb *f, int sz) -{ - sz = (sz+7) & ~7; // round up to nearest 8 for alignment of future allocs. - f->setup_memory_required += sz; - if (f->alloc.alloc_buffer) { - void *p = (char *) f->alloc.alloc_buffer + f->setup_offset; - if (f->setup_offset + sz > f->temp_offset) return NULL; - f->setup_offset += sz; - return p; - } - return sz ? malloc(sz) : NULL; -} - -static void setup_free(vorb *f, void *p) -{ - if (f->alloc.alloc_buffer) return; // do nothing; setup mem is a stack - free(p); -} - -static void *setup_temp_malloc(vorb *f, int sz) -{ - sz = (sz+7) & ~7; // round up to nearest 8 for alignment of future allocs. - if (f->alloc.alloc_buffer) { - if (f->temp_offset - sz < f->setup_offset) return NULL; - f->temp_offset -= sz; - return (char *) f->alloc.alloc_buffer + f->temp_offset; - } - return malloc(sz); -} - -static void setup_temp_free(vorb *f, void *p, int sz) -{ - if (f->alloc.alloc_buffer) { - f->temp_offset += (sz+7)&~7; - return; - } - free(p); -} - -#define CRC32_POLY 0x04c11db7 // from spec - -static uint32 crc_table[256]; -static void crc32_init(void) -{ - int i,j; - uint32 s; - for(i=0; i < 256; i++) { - for (s=(uint32) i << 24, j=0; j < 8; ++j) - s = (s << 1) ^ (s >= (1U<<31) ? CRC32_POLY : 0); - crc_table[i] = s; - } -} - -static __forceinline uint32 crc32_update(uint32 crc, uint8 byte) -{ - return (crc << 8) ^ crc_table[byte ^ (crc >> 24)]; -} - - -// used in setup, and for huffman that doesn't go fast path -static unsigned int bit_reverse(unsigned int n) -{ - n = ((n & 0xAAAAAAAA) >> 1) | ((n & 0x55555555) << 1); - n = ((n & 0xCCCCCCCC) >> 2) | ((n & 0x33333333) << 2); - n = ((n & 0xF0F0F0F0) >> 4) | ((n & 0x0F0F0F0F) << 4); - n = ((n & 0xFF00FF00) >> 8) | ((n & 0x00FF00FF) << 8); - return (n >> 16) | (n << 16); -} - -static float square(float x) -{ - return x*x; -} - -// this is a weird definition of log2() for which log2(1) = 1, log2(2) = 2, log2(4) = 3 -// as required by the specification. fast(?) implementation from stb.h -// @OPTIMIZE: called multiple times per-packet with "constants"; move to setup -static int ilog(int32 n) -{ - static signed char log2_4[16] = { 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4 }; - - if (n < 0) return 0; // signed n returns 0 - - // 2 compares if n < 16, 3 compares otherwise (4 if signed or n > 1<<29) - if (n < (1 << 14)) - if (n < (1 << 4)) return 0 + log2_4[n ]; - else if (n < (1 << 9)) return 5 + log2_4[n >> 5]; - else return 10 + log2_4[n >> 10]; - else if (n < (1 << 24)) - if (n < (1 << 19)) return 15 + log2_4[n >> 15]; - else return 20 + log2_4[n >> 20]; - else if (n < (1 << 29)) return 25 + log2_4[n >> 25]; - else return 30 + log2_4[n >> 30]; -} - -#ifndef M_PI - #define M_PI 3.14159265358979323846264f // from CRC -#endif - -// code length assigned to a value with no huffman encoding -#define NO_CODE 255 - -/////////////////////// LEAF SETUP FUNCTIONS ////////////////////////// -// -// these functions are only called at setup, and only a few times -// per file - -static float float32_unpack(uint32 x) -{ - // from the specification - uint32 mantissa = x & 0x1fffff; - uint32 sign = x & 0x80000000; - uint32 exp = (x & 0x7fe00000) >> 21; - double res = sign ? -(double)mantissa : (double)mantissa; - return (float) ldexp((float)res, (int)exp-788); -} - - -// zlib & jpeg huffman tables assume that the output symbols -// can either be arbitrarily arranged, or have monotonically -// increasing frequencies--they rely on the lengths being sorted; -// this makes for a very simple generation algorithm. -// vorbis allows a huffman table with non-sorted lengths. This -// requires a more sophisticated construction, since symbols in -// order do not map to huffman codes "in order". -static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values) -{ - if (!c->sparse) { - c->codewords [symbol] = huff_code; - } else { - c->codewords [count] = huff_code; - c->codeword_lengths[count] = len; - values [count] = symbol; - } -} - -static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values) -{ - int i,k,m=0; - uint32 available[32]; - - memset(available, 0, sizeof(available)); - // find the first entry - for (k=0; k < n; ++k) if (len[k] < NO_CODE) break; - if (k == n) { assert(c->sorted_entries == 0); return TRUE; } - assert(len[k] < 32); // no error return required, code reading lens checks this - // add to the list - add_entry(c, 0, k, m++, len[k], values); - // add all available leaves - for (i=1; i <= len[k]; ++i) - available[i] = 1U << (32-i); - // note that the above code treats the first case specially, - // but it's really the same as the following code, so they - // could probably be combined (except the initial code is 0, - // and I use 0 in available[] to mean 'empty') - for (i=k+1; i < n; ++i) { - uint32 res; - int z = len[i], y; - if (z == NO_CODE) continue; - assert(z < 32); // no error return required, code reading lens checks this - // find lowest available leaf (should always be earliest, - // which is what the specification calls for) - // note that this property, and the fact we can never have - // more than one free leaf at a given level, isn't totally - // trivial to prove, but it seems true and the assert never - // fires, so! - while (z > 0 && !available[z]) --z; - if (z == 0) { return FALSE; } - res = available[z]; - available[z] = 0; - add_entry(c, bit_reverse(res), i, m++, len[i], values); - // propagate availability up the tree - if (z != len[i]) { - for (y=len[i]; y > z; --y) { - assert(available[y] == 0); - available[y] = res + (1 << (32-y)); - } - } - } - return TRUE; -} - -// accelerated huffman table allows fast O(1) match of all symbols -// of length <= STB_VORBIS_FAST_HUFFMAN_LENGTH -static void compute_accelerated_huffman(Codebook *c) -{ - int i, len; - for (i=0; i < FAST_HUFFMAN_TABLE_SIZE; ++i) - c->fast_huffman[i] = -1; - - len = c->sparse ? c->sorted_entries : c->entries; - #ifdef STB_VORBIS_FAST_HUFFMAN_SHORT - if (len > 32767) len = 32767; // largest possible value we can encode! - #endif - for (i=0; i < len; ++i) { - if (c->codeword_lengths[i] <= STB_VORBIS_FAST_HUFFMAN_LENGTH) { - uint32 z = c->sparse ? bit_reverse(c->sorted_codewords[i]) : c->codewords[i]; - // set table entries for all bit combinations in the higher bits - while (z < FAST_HUFFMAN_TABLE_SIZE) { - c->fast_huffman[z] = i; - z += 1 << c->codeword_lengths[i]; - } - } - } -} - -#ifdef _MSC_VER -#define STBV_CDECL __cdecl -#else -#define STBV_CDECL -#endif - -static int STBV_CDECL uint32_compare(const void *p, const void *q) -{ - uint32 x = * (uint32 *) p; - uint32 y = * (uint32 *) q; - return x < y ? -1 : x > y; -} - -static int include_in_sort(Codebook *c, uint8 len) -{ - if (c->sparse) { assert(len != NO_CODE); return TRUE; } - if (len == NO_CODE) return FALSE; - if (len > STB_VORBIS_FAST_HUFFMAN_LENGTH) return TRUE; - return FALSE; -} - -// if the fast table above doesn't work, we want to binary -// search them... need to reverse the bits -static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values) -{ - int i, len; - // build a list of all the entries - // OPTIMIZATION: don't include the short ones, since they'll be caught by FAST_HUFFMAN. - // this is kind of a frivolous optimization--I don't see any performance improvement, - // but it's like 4 extra lines of code, so. - if (!c->sparse) { - int k = 0; - for (i=0; i < c->entries; ++i) - if (include_in_sort(c, lengths[i])) - c->sorted_codewords[k++] = bit_reverse(c->codewords[i]); - assert(k == c->sorted_entries); - } else { - for (i=0; i < c->sorted_entries; ++i) - c->sorted_codewords[i] = bit_reverse(c->codewords[i]); - } - - qsort(c->sorted_codewords, c->sorted_entries, sizeof(c->sorted_codewords[0]), uint32_compare); - c->sorted_codewords[c->sorted_entries] = 0xffffffff; - - len = c->sparse ? c->sorted_entries : c->entries; - // now we need to indicate how they correspond; we could either - // #1: sort a different data structure that says who they correspond to - // #2: for each sorted entry, search the original list to find who corresponds - // #3: for each original entry, find the sorted entry - // #1 requires extra storage, #2 is slow, #3 can use binary search! - for (i=0; i < len; ++i) { - int huff_len = c->sparse ? lengths[values[i]] : lengths[i]; - if (include_in_sort(c,huff_len)) { - uint32 code = bit_reverse(c->codewords[i]); - int x=0, n=c->sorted_entries; - while (n > 1) { - // invariant: sc[x] <= code < sc[x+n] - int m = x + (n >> 1); - if (c->sorted_codewords[m] <= code) { - x = m; - n -= (n>>1); - } else { - n >>= 1; - } - } - assert(c->sorted_codewords[x] == code); - if (c->sparse) { - c->sorted_values[x] = values[i]; - c->codeword_lengths[x] = huff_len; - } else { - c->sorted_values[x] = i; - } - } - } -} - -// only run while parsing the header (3 times) -static int vorbis_validate(uint8 *data) -{ - static uint8 vorbis[6] = { 'v', 'o', 'r', 'b', 'i', 's' }; - return memcmp(data, vorbis, 6) == 0; -} - -// called from setup only, once per code book -// (formula implied by specification) -static int lookup1_values(int entries, int dim) -{ - int r = (int) floor(exp((float) log((float) entries) / dim)); - if ((int) floor(pow((float) r+1, dim)) <= entries) // (int) cast for MinGW warning; - ++r; // floor() to avoid _ftol() when non-CRT - if (pow((float) r+1, dim) <= entries) - return -1; - if ((int) floor(pow((float) r, dim)) > entries) - return -1; - return r; -} - -// called twice per file -static void compute_twiddle_factors(int n, float *A, float *B, float *C) -{ - int n4 = n >> 2, n8 = n >> 3; - int k,k2; - - for (k=k2=0; k < n4; ++k,k2+=2) { - A[k2 ] = (float) cos(4*k*M_PI/n); - A[k2+1] = (float) -sin(4*k*M_PI/n); - B[k2 ] = (float) cos((k2+1)*M_PI/n/2) * 0.5f; - B[k2+1] = (float) sin((k2+1)*M_PI/n/2) * 0.5f; - } - for (k=k2=0; k < n8; ++k,k2+=2) { - C[k2 ] = (float) cos(2*(k2+1)*M_PI/n); - C[k2+1] = (float) -sin(2*(k2+1)*M_PI/n); - } -} - -static void compute_window(int n, float *window) -{ - int n2 = n >> 1, i; - for (i=0; i < n2; ++i) - window[i] = (float) sin(0.5 * M_PI * square((float) sin((i - 0 + 0.5) / n2 * 0.5 * M_PI))); -} - -static void compute_bitreverse(int n, uint16 *rev) -{ - int ld = ilog(n) - 1; // ilog is off-by-one from normal definitions - int i, n8 = n >> 3; - for (i=0; i < n8; ++i) - rev[i] = (bit_reverse(i) >> (32-ld+3)) << 2; -} - -static int init_blocksize(vorb *f, int b, int n) -{ - int n2 = n >> 1, n4 = n >> 2, n8 = n >> 3; - f->A[b] = (float *) setup_malloc(f, sizeof(float) * n2); - f->B[b] = (float *) setup_malloc(f, sizeof(float) * n2); - f->C[b] = (float *) setup_malloc(f, sizeof(float) * n4); - if (!f->A[b] || !f->B[b] || !f->C[b]) return error(f, VORBIS_outofmem); - compute_twiddle_factors(n, f->A[b], f->B[b], f->C[b]); - f->window[b] = (float *) setup_malloc(f, sizeof(float) * n2); - if (!f->window[b]) return error(f, VORBIS_outofmem); - compute_window(n, f->window[b]); - f->bit_reverse[b] = (uint16 *) setup_malloc(f, sizeof(uint16) * n8); - if (!f->bit_reverse[b]) return error(f, VORBIS_outofmem); - compute_bitreverse(n, f->bit_reverse[b]); - return TRUE; -} - -static void neighbors(uint16 *x, int n, int *plow, int *phigh) -{ - int low = -1; - int high = 65536; - int i; - for (i=0; i < n; ++i) { - if (x[i] > low && x[i] < x[n]) { *plow = i; low = x[i]; } - if (x[i] < high && x[i] > x[n]) { *phigh = i; high = x[i]; } - } -} - -// this has been repurposed so y is now the original index instead of y -typedef struct -{ - uint16 x,id; -} stbv__floor_ordering; - -static int STBV_CDECL point_compare(const void *p, const void *q) -{ - stbv__floor_ordering *a = (stbv__floor_ordering *) p; - stbv__floor_ordering *b = (stbv__floor_ordering *) q; - return a->x < b->x ? -1 : a->x > b->x; -} - -// -/////////////////////// END LEAF SETUP FUNCTIONS ////////////////////////// - - -#if defined(STB_VORBIS_NO_STDIO) - #define USE_MEMORY(z) TRUE -#else - #define USE_MEMORY(z) ((z)->stream) -#endif - -static uint8 get8(vorb *z) -{ - if (USE_MEMORY(z)) { - if (z->stream >= z->stream_end) { z->eof = TRUE; return 0; } - return *z->stream++; - } - - #ifndef STB_VORBIS_NO_STDIO - { - int c = fgetc(z->f); - if (c == EOF) { z->eof = TRUE; return 0; } - return c; - } - #endif -} - -static uint32 get32(vorb *f) -{ - uint32 x; - x = get8(f); - x += get8(f) << 8; - x += get8(f) << 16; - x += (uint32) get8(f) << 24; - return x; -} - -static int getn(vorb *z, uint8 *data, int n) -{ - if (USE_MEMORY(z)) { - if (z->stream+n > z->stream_end) { z->eof = 1; return 0; } - memcpy(data, z->stream, n); - z->stream += n; - return 1; - } - - #ifndef STB_VORBIS_NO_STDIO - if (fread(data, n, 1, z->f) == 1) - return 1; - else { - z->eof = 1; - return 0; - } - #endif -} - -static void skip(vorb *z, int n) -{ - if (USE_MEMORY(z)) { - z->stream += n; - if (z->stream >= z->stream_end) z->eof = 1; - return; - } - #ifndef STB_VORBIS_NO_STDIO - { - long x = ftell(z->f); - fseek(z->f, x+n, SEEK_SET); - } - #endif -} - -static int set_file_offset(stb_vorbis *f, unsigned int loc) -{ - #ifndef STB_VORBIS_NO_PUSHDATA_API - if (f->push_mode) return 0; - #endif - f->eof = 0; - if (USE_MEMORY(f)) { - if (f->stream_start + loc >= f->stream_end || f->stream_start + loc < f->stream_start) { - f->stream = f->stream_end; - f->eof = 1; - return 0; - } else { - f->stream = f->stream_start + loc; - return 1; - } - } - #ifndef STB_VORBIS_NO_STDIO - if (loc + f->f_start < loc || loc >= 0x80000000) { - loc = 0x7fffffff; - f->eof = 1; - } else { - loc += f->f_start; - } - if (!fseek(f->f, loc, SEEK_SET)) - return 1; - f->eof = 1; - fseek(f->f, f->f_start, SEEK_END); - return 0; - #endif -} - - -static uint8 ogg_page_header[4] = { 0x4f, 0x67, 0x67, 0x53 }; - -static int capture_pattern(vorb *f) -{ - if (0x4f != get8(f)) return FALSE; - if (0x67 != get8(f)) return FALSE; - if (0x67 != get8(f)) return FALSE; - if (0x53 != get8(f)) return FALSE; - return TRUE; -} - -#define PAGEFLAG_continued_packet 1 -#define PAGEFLAG_first_page 2 -#define PAGEFLAG_last_page 4 - -static int start_page_no_capturepattern(vorb *f) -{ - uint32 loc0,loc1,n; - if (f->first_decode && !IS_PUSH_MODE(f)) { - f->p_first.page_start = stb_vorbis_get_file_offset(f) - 4; - } - // stream structure version - if (0 != get8(f)) return error(f, VORBIS_invalid_stream_structure_version); - // header flag - f->page_flag = get8(f); - // absolute granule position - loc0 = get32(f); - loc1 = get32(f); - // @TODO: validate loc0,loc1 as valid positions? - // stream serial number -- vorbis doesn't interleave, so discard - get32(f); - //if (f->serial != get32(f)) return error(f, VORBIS_incorrect_stream_serial_number); - // page sequence number - n = get32(f); - f->last_page = n; - // CRC32 - get32(f); - // page_segments - f->segment_count = get8(f); - if (!getn(f, f->segments, f->segment_count)) - return error(f, VORBIS_unexpected_eof); - // assume we _don't_ know any the sample position of any segments - f->end_seg_with_known_loc = -2; - if (loc0 != ~0U || loc1 != ~0U) { - int i; - // determine which packet is the last one that will complete - for (i=f->segment_count-1; i >= 0; --i) - if (f->segments[i] < 255) - break; - // 'i' is now the index of the _last_ segment of a packet that ends - if (i >= 0) { - f->end_seg_with_known_loc = i; - f->known_loc_for_packet = loc0; - } - } - if (f->first_decode) { - int i,len; - len = 0; - for (i=0; i < f->segment_count; ++i) - len += f->segments[i]; - len += 27 + f->segment_count; - f->p_first.page_end = f->p_first.page_start + len; - f->p_first.last_decoded_sample = loc0; - } - f->next_seg = 0; - return TRUE; -} - -static int start_page(vorb *f) -{ - if (!capture_pattern(f)) return error(f, VORBIS_missing_capture_pattern); - return start_page_no_capturepattern(f); -} - -static int start_packet(vorb *f) -{ - while (f->next_seg == -1) { - if (!start_page(f)) return FALSE; - if (f->page_flag & PAGEFLAG_continued_packet) - return error(f, VORBIS_continued_packet_flag_invalid); - } - f->last_seg = FALSE; - f->valid_bits = 0; - f->packet_bytes = 0; - f->bytes_in_seg = 0; - // f->next_seg is now valid - return TRUE; -} - -static int maybe_start_packet(vorb *f) -{ - if (f->next_seg == -1) { - int x = get8(f); - if (f->eof) return FALSE; // EOF at page boundary is not an error! - if (0x4f != x ) return error(f, VORBIS_missing_capture_pattern); - if (0x67 != get8(f)) return error(f, VORBIS_missing_capture_pattern); - if (0x67 != get8(f)) return error(f, VORBIS_missing_capture_pattern); - if (0x53 != get8(f)) return error(f, VORBIS_missing_capture_pattern); - if (!start_page_no_capturepattern(f)) return FALSE; - if (f->page_flag & PAGEFLAG_continued_packet) { - // set up enough state that we can read this packet if we want, - // e.g. during recovery - f->last_seg = FALSE; - f->bytes_in_seg = 0; - return error(f, VORBIS_continued_packet_flag_invalid); - } - } - return start_packet(f); -} - -static int next_segment(vorb *f) -{ - int len; - if (f->last_seg) return 0; - if (f->next_seg == -1) { - f->last_seg_which = f->segment_count-1; // in case start_page fails - if (!start_page(f)) { f->last_seg = 1; return 0; } - if (!(f->page_flag & PAGEFLAG_continued_packet)) return error(f, VORBIS_continued_packet_flag_invalid); - } - len = f->segments[f->next_seg++]; - if (len < 255) { - f->last_seg = TRUE; - f->last_seg_which = f->next_seg-1; - } - if (f->next_seg >= f->segment_count) - f->next_seg = -1; - assert(f->bytes_in_seg == 0); - f->bytes_in_seg = len; - return len; -} - -#define EOP (-1) -#define INVALID_BITS (-1) - -static int get8_packet_raw(vorb *f) -{ - if (!f->bytes_in_seg) { // CLANG! - if (f->last_seg) return EOP; - else if (!next_segment(f)) return EOP; - } - assert(f->bytes_in_seg > 0); - --f->bytes_in_seg; - ++f->packet_bytes; - return get8(f); -} - -static int get8_packet(vorb *f) -{ - int x = get8_packet_raw(f); - f->valid_bits = 0; - return x; -} - -static int get32_packet(vorb *f) -{ - uint32 x; - x = get8_packet(f); - x += get8_packet(f) << 8; - x += get8_packet(f) << 16; - x += (uint32) get8_packet(f) << 24; - return x; -} - -static void flush_packet(vorb *f) -{ - while (get8_packet_raw(f) != EOP); -} - -// @OPTIMIZE: this is the secondary bit decoder, so it's probably not as important -// as the huffman decoder? -static uint32 get_bits(vorb *f, int n) -{ - uint32 z; - - if (f->valid_bits < 0) return 0; - if (f->valid_bits < n) { - if (n > 24) { - // the accumulator technique below would not work correctly in this case - z = get_bits(f, 24); - z += get_bits(f, n-24) << 24; - return z; - } - if (f->valid_bits == 0) f->acc = 0; - while (f->valid_bits < n) { - int z = get8_packet_raw(f); - if (z == EOP) { - f->valid_bits = INVALID_BITS; - return 0; - } - f->acc += z << f->valid_bits; - f->valid_bits += 8; - } - } - - assert(f->valid_bits >= n); - z = f->acc & ((1 << n)-1); - f->acc >>= n; - f->valid_bits -= n; - return z; -} - -// @OPTIMIZE: primary accumulator for huffman -// expand the buffer to as many bits as possible without reading off end of packet -// it might be nice to allow f->valid_bits and f->acc to be stored in registers, -// e.g. cache them locally and decode locally -static __forceinline void prep_huffman(vorb *f) -{ - if (f->valid_bits <= 24) { - if (f->valid_bits == 0) f->acc = 0; - do { - int z; - if (f->last_seg && !f->bytes_in_seg) return; - z = get8_packet_raw(f); - if (z == EOP) return; - f->acc += (unsigned) z << f->valid_bits; - f->valid_bits += 8; - } while (f->valid_bits <= 24); - } -} - -enum -{ - VORBIS_packet_id = 1, - VORBIS_packet_comment = 3, - VORBIS_packet_setup = 5 -}; - -static int codebook_decode_scalar_raw(vorb *f, Codebook *c) -{ - int i; - prep_huffman(f); - - if (c->codewords == NULL && c->sorted_codewords == NULL) - return -1; - - // cases to use binary search: sorted_codewords && !c->codewords - // sorted_codewords && c->entries > 8 - if (c->entries > 8 ? c->sorted_codewords!=NULL : !c->codewords) { - // binary search - uint32 code = bit_reverse(f->acc); - int x=0, n=c->sorted_entries, len; - - while (n > 1) { - // invariant: sc[x] <= code < sc[x+n] - int m = x + (n >> 1); - if (c->sorted_codewords[m] <= code) { - x = m; - n -= (n>>1); - } else { - n >>= 1; - } - } - // x is now the sorted index - if (!c->sparse) x = c->sorted_values[x]; - // x is now sorted index if sparse, or symbol otherwise - len = c->codeword_lengths[x]; - if (f->valid_bits >= len) { - f->acc >>= len; - f->valid_bits -= len; - return x; - } - - f->valid_bits = 0; - return -1; - } - - // if small, linear search - assert(!c->sparse); - for (i=0; i < c->entries; ++i) { - if (c->codeword_lengths[i] == NO_CODE) continue; - if (c->codewords[i] == (f->acc & ((1 << c->codeword_lengths[i])-1))) { - if (f->valid_bits >= c->codeword_lengths[i]) { - f->acc >>= c->codeword_lengths[i]; - f->valid_bits -= c->codeword_lengths[i]; - return i; - } - f->valid_bits = 0; - return -1; - } - } - - error(f, VORBIS_invalid_stream); - f->valid_bits = 0; - return -1; -} - -#ifndef STB_VORBIS_NO_INLINE_DECODE - -#define DECODE_RAW(var, f,c) \ - if (f->valid_bits < STB_VORBIS_FAST_HUFFMAN_LENGTH) \ - prep_huffman(f); \ - var = f->acc & FAST_HUFFMAN_TABLE_MASK; \ - var = c->fast_huffman[var]; \ - if (var >= 0) { \ - int n = c->codeword_lengths[var]; \ - f->acc >>= n; \ - f->valid_bits -= n; \ - if (f->valid_bits < 0) { f->valid_bits = 0; var = -1; } \ - } else { \ - var = codebook_decode_scalar_raw(f,c); \ - } - -#else - -static int codebook_decode_scalar(vorb *f, Codebook *c) -{ - int i; - if (f->valid_bits < STB_VORBIS_FAST_HUFFMAN_LENGTH) - prep_huffman(f); - // fast huffman table lookup - i = f->acc & FAST_HUFFMAN_TABLE_MASK; - i = c->fast_huffman[i]; - if (i >= 0) { - f->acc >>= c->codeword_lengths[i]; - f->valid_bits -= c->codeword_lengths[i]; - if (f->valid_bits < 0) { f->valid_bits = 0; return -1; } - return i; - } - return codebook_decode_scalar_raw(f,c); -} - -#define DECODE_RAW(var,f,c) var = codebook_decode_scalar(f,c); - -#endif - -#define DECODE(var,f,c) \ - DECODE_RAW(var,f,c) \ - if (c->sparse) var = c->sorted_values[var]; - -#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK - #define DECODE_VQ(var,f,c) DECODE_RAW(var,f,c) -#else - #define DECODE_VQ(var,f,c) DECODE(var,f,c) -#endif - - - - - - -// CODEBOOK_ELEMENT_FAST is an optimization for the CODEBOOK_FLOATS case -// where we avoid one addition -#define CODEBOOK_ELEMENT(c,off) (c->multiplicands[off]) -#define CODEBOOK_ELEMENT_FAST(c,off) (c->multiplicands[off]) -#define CODEBOOK_ELEMENT_BASE(c) (0) - -static int codebook_decode_start(vorb *f, Codebook *c) -{ - int z = -1; - - // type 0 is only legal in a scalar context - if (c->lookup_type == 0) - error(f, VORBIS_invalid_stream); - else { - DECODE_VQ(z,f,c); - if (c->sparse) assert(z < c->sorted_entries); - if (z < 0) { // check for EOP - if (!f->bytes_in_seg) - if (f->last_seg) - return z; - error(f, VORBIS_invalid_stream); - } - } - return z; -} - -static int codebook_decode(vorb *f, Codebook *c, float *output, int len) -{ - int i,z = codebook_decode_start(f,c); - if (z < 0) return FALSE; - if (len > c->dimensions) len = c->dimensions; - -#ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK - if (c->lookup_type == 1) { - float last = CODEBOOK_ELEMENT_BASE(c); - int div = 1; - for (i=0; i < len; ++i) { - int off = (z / div) % c->lookup_values; - float val = CODEBOOK_ELEMENT_FAST(c,off) + last; - output[i] += val; - if (c->sequence_p) last = val + c->minimum_value; - div *= c->lookup_values; - } - return TRUE; - } -#endif - - z *= c->dimensions; - if (c->sequence_p) { - float last = CODEBOOK_ELEMENT_BASE(c); - for (i=0; i < len; ++i) { - float val = CODEBOOK_ELEMENT_FAST(c,z+i) + last; - output[i] += val; - last = val + c->minimum_value; - } - } else { - float last = CODEBOOK_ELEMENT_BASE(c); - for (i=0; i < len; ++i) { - output[i] += CODEBOOK_ELEMENT_FAST(c,z+i) + last; - } - } - - return TRUE; -} - -static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step) -{ - int i,z = codebook_decode_start(f,c); - float last = CODEBOOK_ELEMENT_BASE(c); - if (z < 0) return FALSE; - if (len > c->dimensions) len = c->dimensions; - -#ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK - if (c->lookup_type == 1) { - int div = 1; - for (i=0; i < len; ++i) { - int off = (z / div) % c->lookup_values; - float val = CODEBOOK_ELEMENT_FAST(c,off) + last; - output[i*step] += val; - if (c->sequence_p) last = val; - div *= c->lookup_values; - } - return TRUE; - } -#endif - - z *= c->dimensions; - for (i=0; i < len; ++i) { - float val = CODEBOOK_ELEMENT_FAST(c,z+i) + last; - output[i*step] += val; - if (c->sequence_p) last = val; - } - - return TRUE; -} - -static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode) -{ - int c_inter = *c_inter_p; - int p_inter = *p_inter_p; - int i,z, effective = c->dimensions; - - // type 0 is only legal in a scalar context - if (c->lookup_type == 0) return error(f, VORBIS_invalid_stream); - - while (total_decode > 0) { - float last = CODEBOOK_ELEMENT_BASE(c); - DECODE_VQ(z,f,c); - #ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK - assert(!c->sparse || z < c->sorted_entries); - #endif - if (z < 0) { - if (!f->bytes_in_seg) - if (f->last_seg) return FALSE; - return error(f, VORBIS_invalid_stream); - } - - // if this will take us off the end of the buffers, stop short! - // we check by computing the length of the virtual interleaved - // buffer (len*ch), our current offset within it (p_inter*ch)+(c_inter), - // and the length we'll be using (effective) - if (c_inter + p_inter*ch + effective > len * ch) { - effective = len*ch - (p_inter*ch - c_inter); - } - - #ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK - if (c->lookup_type == 1) { - int div = 1; - for (i=0; i < effective; ++i) { - int off = (z / div) % c->lookup_values; - float val = CODEBOOK_ELEMENT_FAST(c,off) + last; - if (outputs[c_inter]) - outputs[c_inter][p_inter] += val; - if (++c_inter == ch) { c_inter = 0; ++p_inter; } - if (c->sequence_p) last = val; - div *= c->lookup_values; - } - } else - #endif - { - z *= c->dimensions; - if (c->sequence_p) { - for (i=0; i < effective; ++i) { - float val = CODEBOOK_ELEMENT_FAST(c,z+i) + last; - if (outputs[c_inter]) - outputs[c_inter][p_inter] += val; - if (++c_inter == ch) { c_inter = 0; ++p_inter; } - last = val; - } - } else { - for (i=0; i < effective; ++i) { - float val = CODEBOOK_ELEMENT_FAST(c,z+i) + last; - if (outputs[c_inter]) - outputs[c_inter][p_inter] += val; - if (++c_inter == ch) { c_inter = 0; ++p_inter; } - } - } - } - - total_decode -= effective; - } - *c_inter_p = c_inter; - *p_inter_p = p_inter; - return TRUE; -} - -static int predict_point(int x, int x0, int x1, int y0, int y1) -{ - int dy = y1 - y0; - int adx = x1 - x0; - // @OPTIMIZE: force int division to round in the right direction... is this necessary on x86? - int err = abs(dy) * (x - x0); - int off = err / adx; - return dy < 0 ? y0 - off : y0 + off; -} - -// the following table is block-copied from the specification -static float inverse_db_table[256] = -{ - 1.0649863e-07f, 1.1341951e-07f, 1.2079015e-07f, 1.2863978e-07f, - 1.3699951e-07f, 1.4590251e-07f, 1.5538408e-07f, 1.6548181e-07f, - 1.7623575e-07f, 1.8768855e-07f, 1.9988561e-07f, 2.1287530e-07f, - 2.2670913e-07f, 2.4144197e-07f, 2.5713223e-07f, 2.7384213e-07f, - 2.9163793e-07f, 3.1059021e-07f, 3.3077411e-07f, 3.5226968e-07f, - 3.7516214e-07f, 3.9954229e-07f, 4.2550680e-07f, 4.5315863e-07f, - 4.8260743e-07f, 5.1396998e-07f, 5.4737065e-07f, 5.8294187e-07f, - 6.2082472e-07f, 6.6116941e-07f, 7.0413592e-07f, 7.4989464e-07f, - 7.9862701e-07f, 8.5052630e-07f, 9.0579828e-07f, 9.6466216e-07f, - 1.0273513e-06f, 1.0941144e-06f, 1.1652161e-06f, 1.2409384e-06f, - 1.3215816e-06f, 1.4074654e-06f, 1.4989305e-06f, 1.5963394e-06f, - 1.7000785e-06f, 1.8105592e-06f, 1.9282195e-06f, 2.0535261e-06f, - 2.1869758e-06f, 2.3290978e-06f, 2.4804557e-06f, 2.6416497e-06f, - 2.8133190e-06f, 2.9961443e-06f, 3.1908506e-06f, 3.3982101e-06f, - 3.6190449e-06f, 3.8542308e-06f, 4.1047004e-06f, 4.3714470e-06f, - 4.6555282e-06f, 4.9580707e-06f, 5.2802740e-06f, 5.6234160e-06f, - 5.9888572e-06f, 6.3780469e-06f, 6.7925283e-06f, 7.2339451e-06f, - 7.7040476e-06f, 8.2047000e-06f, 8.7378876e-06f, 9.3057248e-06f, - 9.9104632e-06f, 1.0554501e-05f, 1.1240392e-05f, 1.1970856e-05f, - 1.2748789e-05f, 1.3577278e-05f, 1.4459606e-05f, 1.5399272e-05f, - 1.6400004e-05f, 1.7465768e-05f, 1.8600792e-05f, 1.9809576e-05f, - 2.1096914e-05f, 2.2467911e-05f, 2.3928002e-05f, 2.5482978e-05f, - 2.7139006e-05f, 2.8902651e-05f, 3.0780908e-05f, 3.2781225e-05f, - 3.4911534e-05f, 3.7180282e-05f, 3.9596466e-05f, 4.2169667e-05f, - 4.4910090e-05f, 4.7828601e-05f, 5.0936773e-05f, 5.4246931e-05f, - 5.7772202e-05f, 6.1526565e-05f, 6.5524908e-05f, 6.9783085e-05f, - 7.4317983e-05f, 7.9147585e-05f, 8.4291040e-05f, 8.9768747e-05f, - 9.5602426e-05f, 0.00010181521f, 0.00010843174f, 0.00011547824f, - 0.00012298267f, 0.00013097477f, 0.00013948625f, 0.00014855085f, - 0.00015820453f, 0.00016848555f, 0.00017943469f, 0.00019109536f, - 0.00020351382f, 0.00021673929f, 0.00023082423f, 0.00024582449f, - 0.00026179955f, 0.00027881276f, 0.00029693158f, 0.00031622787f, - 0.00033677814f, 0.00035866388f, 0.00038197188f, 0.00040679456f, - 0.00043323036f, 0.00046138411f, 0.00049136745f, 0.00052329927f, - 0.00055730621f, 0.00059352311f, 0.00063209358f, 0.00067317058f, - 0.00071691700f, 0.00076350630f, 0.00081312324f, 0.00086596457f, - 0.00092223983f, 0.00098217216f, 0.0010459992f, 0.0011139742f, - 0.0011863665f, 0.0012634633f, 0.0013455702f, 0.0014330129f, - 0.0015261382f, 0.0016253153f, 0.0017309374f, 0.0018434235f, - 0.0019632195f, 0.0020908006f, 0.0022266726f, 0.0023713743f, - 0.0025254795f, 0.0026895994f, 0.0028643847f, 0.0030505286f, - 0.0032487691f, 0.0034598925f, 0.0036847358f, 0.0039241906f, - 0.0041792066f, 0.0044507950f, 0.0047400328f, 0.0050480668f, - 0.0053761186f, 0.0057254891f, 0.0060975636f, 0.0064938176f, - 0.0069158225f, 0.0073652516f, 0.0078438871f, 0.0083536271f, - 0.0088964928f, 0.009474637f, 0.010090352f, 0.010746080f, - 0.011444421f, 0.012188144f, 0.012980198f, 0.013823725f, - 0.014722068f, 0.015678791f, 0.016697687f, 0.017782797f, - 0.018938423f, 0.020169149f, 0.021479854f, 0.022875735f, - 0.024362330f, 0.025945531f, 0.027631618f, 0.029427276f, - 0.031339626f, 0.033376252f, 0.035545228f, 0.037855157f, - 0.040315199f, 0.042935108f, 0.045725273f, 0.048696758f, - 0.051861348f, 0.055231591f, 0.058820850f, 0.062643361f, - 0.066714279f, 0.071049749f, 0.075666962f, 0.080584227f, - 0.085821044f, 0.091398179f, 0.097337747f, 0.10366330f, - 0.11039993f, 0.11757434f, 0.12521498f, 0.13335215f, - 0.14201813f, 0.15124727f, 0.16107617f, 0.17154380f, - 0.18269168f, 0.19456402f, 0.20720788f, 0.22067342f, - 0.23501402f, 0.25028656f, 0.26655159f, 0.28387361f, - 0.30232132f, 0.32196786f, 0.34289114f, 0.36517414f, - 0.38890521f, 0.41417847f, 0.44109412f, 0.46975890f, - 0.50028648f, 0.53279791f, 0.56742212f, 0.60429640f, - 0.64356699f, 0.68538959f, 0.72993007f, 0.77736504f, - 0.82788260f, 0.88168307f, 0.9389798f, 1.0f -}; - - -// @OPTIMIZE: if you want to replace this bresenham line-drawing routine, -// note that you must produce bit-identical output to decode correctly; -// this specific sequence of operations is specified in the spec (it's -// drawing integer-quantized frequency-space lines that the encoder -// expects to be exactly the same) -// ... also, isn't the whole point of Bresenham's algorithm to NOT -// have to divide in the setup? sigh. -#ifndef STB_VORBIS_NO_DEFER_FLOOR -#define LINE_OP(a,b) a *= b -#else -#define LINE_OP(a,b) a = b -#endif - -#ifdef STB_VORBIS_DIVIDE_TABLE -#define DIVTAB_NUMER 32 -#define DIVTAB_DENOM 64 -int8 integer_divide_table[DIVTAB_NUMER][DIVTAB_DENOM]; // 2KB -#endif - -static __forceinline void draw_line(float *output, int x0, int y0, int x1, int y1, int n) -{ - int dy = y1 - y0; - int adx = x1 - x0; - int ady = abs(dy); - int base; - int x=x0,y=y0; - int err = 0; - int sy; - -#ifdef STB_VORBIS_DIVIDE_TABLE - if (adx < DIVTAB_DENOM && ady < DIVTAB_NUMER) { - if (dy < 0) { - base = -integer_divide_table[ady][adx]; - sy = base-1; - } else { - base = integer_divide_table[ady][adx]; - sy = base+1; - } - } else { - base = dy / adx; - if (dy < 0) - sy = base - 1; - else - sy = base+1; - } -#else - base = dy / adx; - if (dy < 0) - sy = base - 1; - else - sy = base+1; -#endif - ady -= abs(base) * adx; - if (x1 > n) x1 = n; - if (x < x1) { - LINE_OP(output[x], inverse_db_table[y&255]); - for (++x; x < x1; ++x) { - err += ady; - if (err >= adx) { - err -= adx; - y += sy; - } else - y += base; - LINE_OP(output[x], inverse_db_table[y&255]); - } - } -} - -static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype) -{ - int k; - if (rtype == 0) { - int step = n / book->dimensions; - for (k=0; k < step; ++k) - if (!codebook_decode_step(f, book, target+offset+k, n-offset-k, step)) - return FALSE; - } else { - for (k=0; k < n; ) { - if (!codebook_decode(f, book, target+offset, n-k)) - return FALSE; - k += book->dimensions; - offset += book->dimensions; - } - } - return TRUE; -} - -// n is 1/2 of the blocksize -- -// specification: "Correct per-vector decode length is [n]/2" -static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode) -{ - int i,j,pass; - Residue *r = f->residue_config + rn; - int rtype = f->residue_types[rn]; - int c = r->classbook; - int classwords = f->codebooks[c].dimensions; - unsigned int actual_size = rtype == 2 ? n*2 : n; - unsigned int limit_r_begin = (r->begin < actual_size ? r->begin : actual_size); - unsigned int limit_r_end = (r->end < actual_size ? r->end : actual_size); - int n_read = limit_r_end - limit_r_begin; - int part_read = n_read / r->part_size; - int temp_alloc_point = temp_alloc_save(f); - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - uint8 ***part_classdata = (uint8 ***) temp_block_array(f,f->channels, part_read * sizeof(**part_classdata)); - #else - int **classifications = (int **) temp_block_array(f,f->channels, part_read * sizeof(**classifications)); - #endif - - CHECK(f); - - for (i=0; i < ch; ++i) - if (!do_not_decode[i]) - memset(residue_buffers[i], 0, sizeof(float) * n); - - if (rtype == 2 && ch != 1) { - for (j=0; j < ch; ++j) - if (!do_not_decode[j]) - break; - if (j == ch) - goto done; - - for (pass=0; pass < 8; ++pass) { - int pcount = 0, class_set = 0; - if (ch == 2) { - while (pcount < part_read) { - int z = r->begin + pcount*r->part_size; - int c_inter = (z & 1), p_inter = z>>1; - if (pass == 0) { - Codebook *c = f->codebooks+r->classbook; - int q; - DECODE(q,f,c); - if (q == EOP) goto done; - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - part_classdata[0][class_set] = r->classdata[q]; - #else - for (i=classwords-1; i >= 0; --i) { - classifications[0][i+pcount] = q % r->classifications; - q /= r->classifications; - } - #endif - } - for (i=0; i < classwords && pcount < part_read; ++i, ++pcount) { - int z = r->begin + pcount*r->part_size; - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - int c = part_classdata[0][class_set][i]; - #else - int c = classifications[0][pcount]; - #endif - int b = r->residue_books[c][pass]; - if (b >= 0) { - Codebook *book = f->codebooks + b; - #ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK - if (!codebook_decode_deinterleave_repeat(f, book, residue_buffers, ch, &c_inter, &p_inter, n, r->part_size)) - goto done; - #else - // saves 1% - if (!codebook_decode_deinterleave_repeat(f, book, residue_buffers, ch, &c_inter, &p_inter, n, r->part_size)) - goto done; - #endif - } else { - z += r->part_size; - c_inter = z & 1; - p_inter = z >> 1; - } - } - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - ++class_set; - #endif - } - } else if (ch > 2) { - while (pcount < part_read) { - int z = r->begin + pcount*r->part_size; - int c_inter = z % ch, p_inter = z/ch; - if (pass == 0) { - Codebook *c = f->codebooks+r->classbook; - int q; - DECODE(q,f,c); - if (q == EOP) goto done; - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - part_classdata[0][class_set] = r->classdata[q]; - #else - for (i=classwords-1; i >= 0; --i) { - classifications[0][i+pcount] = q % r->classifications; - q /= r->classifications; - } - #endif - } - for (i=0; i < classwords && pcount < part_read; ++i, ++pcount) { - int z = r->begin + pcount*r->part_size; - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - int c = part_classdata[0][class_set][i]; - #else - int c = classifications[0][pcount]; - #endif - int b = r->residue_books[c][pass]; - if (b >= 0) { - Codebook *book = f->codebooks + b; - if (!codebook_decode_deinterleave_repeat(f, book, residue_buffers, ch, &c_inter, &p_inter, n, r->part_size)) - goto done; - } else { - z += r->part_size; - c_inter = z % ch; - p_inter = z / ch; - } - } - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - ++class_set; - #endif - } - } - } - goto done; - } - CHECK(f); - - for (pass=0; pass < 8; ++pass) { - int pcount = 0, class_set=0; - while (pcount < part_read) { - if (pass == 0) { - for (j=0; j < ch; ++j) { - if (!do_not_decode[j]) { - Codebook *c = f->codebooks+r->classbook; - int temp; - DECODE(temp,f,c); - if (temp == EOP) goto done; - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - part_classdata[j][class_set] = r->classdata[temp]; - #else - for (i=classwords-1; i >= 0; --i) { - classifications[j][i+pcount] = temp % r->classifications; - temp /= r->classifications; - } - #endif - } - } - } - for (i=0; i < classwords && pcount < part_read; ++i, ++pcount) { - for (j=0; j < ch; ++j) { - if (!do_not_decode[j]) { - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - int c = part_classdata[j][class_set][i]; - #else - int c = classifications[j][pcount]; - #endif - int b = r->residue_books[c][pass]; - if (b >= 0) { - float *target = residue_buffers[j]; - int offset = r->begin + pcount * r->part_size; - int n = r->part_size; - Codebook *book = f->codebooks + b; - if (!residue_decode(f, book, target, offset, n, rtype)) - goto done; - } - } - } - } - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - ++class_set; - #endif - } - } - done: - CHECK(f); - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - temp_free(f,part_classdata); - #else - temp_free(f,classifications); - #endif - temp_alloc_restore(f,temp_alloc_point); -} - - -#if 0 -// slow way for debugging -void inverse_mdct_slow(float *buffer, int n) -{ - int i,j; - int n2 = n >> 1; - float *x = (float *) malloc(sizeof(*x) * n2); - memcpy(x, buffer, sizeof(*x) * n2); - for (i=0; i < n; ++i) { - float acc = 0; - for (j=0; j < n2; ++j) - // formula from paper: - //acc += n/4.0f * x[j] * (float) cos(M_PI / 2 / n * (2 * i + 1 + n/2.0)*(2*j+1)); - // formula from wikipedia - //acc += 2.0f / n2 * x[j] * (float) cos(M_PI/n2 * (i + 0.5 + n2/2)*(j + 0.5)); - // these are equivalent, except the formula from the paper inverts the multiplier! - // however, what actually works is NO MULTIPLIER!?! - //acc += 64 * 2.0f / n2 * x[j] * (float) cos(M_PI/n2 * (i + 0.5 + n2/2)*(j + 0.5)); - acc += x[j] * (float) cos(M_PI / 2 / n * (2 * i + 1 + n/2.0)*(2*j+1)); - buffer[i] = acc; - } - free(x); -} -#elif 0 -// same as above, but just barely able to run in real time on modern machines -void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype) -{ - float mcos[16384]; - int i,j; - int n2 = n >> 1, nmask = (n << 2) -1; - float *x = (float *) malloc(sizeof(*x) * n2); - memcpy(x, buffer, sizeof(*x) * n2); - for (i=0; i < 4*n; ++i) - mcos[i] = (float) cos(M_PI / 2 * i / n); - - for (i=0; i < n; ++i) { - float acc = 0; - for (j=0; j < n2; ++j) - acc += x[j] * mcos[(2 * i + 1 + n2)*(2*j+1) & nmask]; - buffer[i] = acc; - } - free(x); -} -#elif 0 -// transform to use a slow dct-iv; this is STILL basically trivial, -// but only requires half as many ops -void dct_iv_slow(float *buffer, int n) -{ - float mcos[16384]; - float x[2048]; - int i,j; - int n2 = n >> 1, nmask = (n << 3) - 1; - memcpy(x, buffer, sizeof(*x) * n); - for (i=0; i < 8*n; ++i) - mcos[i] = (float) cos(M_PI / 4 * i / n); - for (i=0; i < n; ++i) { - float acc = 0; - for (j=0; j < n; ++j) - acc += x[j] * mcos[((2 * i + 1)*(2*j+1)) & nmask]; - buffer[i] = acc; - } -} - -void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype) -{ - int i, n4 = n >> 2, n2 = n >> 1, n3_4 = n - n4; - float temp[4096]; - - memcpy(temp, buffer, n2 * sizeof(float)); - dct_iv_slow(temp, n2); // returns -c'-d, a-b' - - for (i=0; i < n4 ; ++i) buffer[i] = temp[i+n4]; // a-b' - for ( ; i < n3_4; ++i) buffer[i] = -temp[n3_4 - i - 1]; // b-a', c+d' - for ( ; i < n ; ++i) buffer[i] = -temp[i - n3_4]; // c'+d -} -#endif - -#ifndef LIBVORBIS_MDCT -#define LIBVORBIS_MDCT 0 -#endif - -#if LIBVORBIS_MDCT -// directly call the vorbis MDCT using an interface documented -// by Jeff Roberts... useful for performance comparison -typedef struct -{ - int n; - int log2n; - - float *trig; - int *bitrev; - - float scale; -} mdct_lookup; - -extern void mdct_init(mdct_lookup *lookup, int n); -extern void mdct_clear(mdct_lookup *l); -extern void mdct_backward(mdct_lookup *init, float *in, float *out); - -mdct_lookup M1,M2; - -void inverse_mdct(float *buffer, int n, vorb *f, int blocktype) -{ - mdct_lookup *M; - if (M1.n == n) M = &M1; - else if (M2.n == n) M = &M2; - else if (M1.n == 0) { mdct_init(&M1, n); M = &M1; } - else { - if (M2.n) __asm int 3; - mdct_init(&M2, n); - M = &M2; - } - - mdct_backward(M, buffer, buffer); -} -#endif - - -// the following were split out into separate functions while optimizing; -// they could be pushed back up but eh. __forceinline showed no change; -// they're probably already being inlined. -static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A) -{ - float *ee0 = e + i_off; - float *ee2 = ee0 + k_off; - int i; - - assert((n & 3) == 0); - for (i=(n>>2); i > 0; --i) { - float k00_20, k01_21; - k00_20 = ee0[ 0] - ee2[ 0]; - k01_21 = ee0[-1] - ee2[-1]; - ee0[ 0] += ee2[ 0];//ee0[ 0] = ee0[ 0] + ee2[ 0]; - ee0[-1] += ee2[-1];//ee0[-1] = ee0[-1] + ee2[-1]; - ee2[ 0] = k00_20 * A[0] - k01_21 * A[1]; - ee2[-1] = k01_21 * A[0] + k00_20 * A[1]; - A += 8; - - k00_20 = ee0[-2] - ee2[-2]; - k01_21 = ee0[-3] - ee2[-3]; - ee0[-2] += ee2[-2];//ee0[-2] = ee0[-2] + ee2[-2]; - ee0[-3] += ee2[-3];//ee0[-3] = ee0[-3] + ee2[-3]; - ee2[-2] = k00_20 * A[0] - k01_21 * A[1]; - ee2[-3] = k01_21 * A[0] + k00_20 * A[1]; - A += 8; - - k00_20 = ee0[-4] - ee2[-4]; - k01_21 = ee0[-5] - ee2[-5]; - ee0[-4] += ee2[-4];//ee0[-4] = ee0[-4] + ee2[-4]; - ee0[-5] += ee2[-5];//ee0[-5] = ee0[-5] + ee2[-5]; - ee2[-4] = k00_20 * A[0] - k01_21 * A[1]; - ee2[-5] = k01_21 * A[0] + k00_20 * A[1]; - A += 8; - - k00_20 = ee0[-6] - ee2[-6]; - k01_21 = ee0[-7] - ee2[-7]; - ee0[-6] += ee2[-6];//ee0[-6] = ee0[-6] + ee2[-6]; - ee0[-7] += ee2[-7];//ee0[-7] = ee0[-7] + ee2[-7]; - ee2[-6] = k00_20 * A[0] - k01_21 * A[1]; - ee2[-7] = k01_21 * A[0] + k00_20 * A[1]; - A += 8; - ee0 -= 8; - ee2 -= 8; - } -} - -static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1) -{ - int i; - float k00_20, k01_21; - - float *e0 = e + d0; - float *e2 = e0 + k_off; - - for (i=lim >> 2; i > 0; --i) { - k00_20 = e0[-0] - e2[-0]; - k01_21 = e0[-1] - e2[-1]; - e0[-0] += e2[-0];//e0[-0] = e0[-0] + e2[-0]; - e0[-1] += e2[-1];//e0[-1] = e0[-1] + e2[-1]; - e2[-0] = (k00_20)*A[0] - (k01_21) * A[1]; - e2[-1] = (k01_21)*A[0] + (k00_20) * A[1]; - - A += k1; - - k00_20 = e0[-2] - e2[-2]; - k01_21 = e0[-3] - e2[-3]; - e0[-2] += e2[-2];//e0[-2] = e0[-2] + e2[-2]; - e0[-3] += e2[-3];//e0[-3] = e0[-3] + e2[-3]; - e2[-2] = (k00_20)*A[0] - (k01_21) * A[1]; - e2[-3] = (k01_21)*A[0] + (k00_20) * A[1]; - - A += k1; - - k00_20 = e0[-4] - e2[-4]; - k01_21 = e0[-5] - e2[-5]; - e0[-4] += e2[-4];//e0[-4] = e0[-4] + e2[-4]; - e0[-5] += e2[-5];//e0[-5] = e0[-5] + e2[-5]; - e2[-4] = (k00_20)*A[0] - (k01_21) * A[1]; - e2[-5] = (k01_21)*A[0] + (k00_20) * A[1]; - - A += k1; - - k00_20 = e0[-6] - e2[-6]; - k01_21 = e0[-7] - e2[-7]; - e0[-6] += e2[-6];//e0[-6] = e0[-6] + e2[-6]; - e0[-7] += e2[-7];//e0[-7] = e0[-7] + e2[-7]; - e2[-6] = (k00_20)*A[0] - (k01_21) * A[1]; - e2[-7] = (k01_21)*A[0] + (k00_20) * A[1]; - - e0 -= 8; - e2 -= 8; - - A += k1; - } -} - -static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0) -{ - int i; - float A0 = A[0]; - float A1 = A[0+1]; - float A2 = A[0+a_off]; - float A3 = A[0+a_off+1]; - float A4 = A[0+a_off*2+0]; - float A5 = A[0+a_off*2+1]; - float A6 = A[0+a_off*3+0]; - float A7 = A[0+a_off*3+1]; - - float k00,k11; - - float *ee0 = e +i_off; - float *ee2 = ee0+k_off; - - for (i=n; i > 0; --i) { - k00 = ee0[ 0] - ee2[ 0]; - k11 = ee0[-1] - ee2[-1]; - ee0[ 0] = ee0[ 0] + ee2[ 0]; - ee0[-1] = ee0[-1] + ee2[-1]; - ee2[ 0] = (k00) * A0 - (k11) * A1; - ee2[-1] = (k11) * A0 + (k00) * A1; - - k00 = ee0[-2] - ee2[-2]; - k11 = ee0[-3] - ee2[-3]; - ee0[-2] = ee0[-2] + ee2[-2]; - ee0[-3] = ee0[-3] + ee2[-3]; - ee2[-2] = (k00) * A2 - (k11) * A3; - ee2[-3] = (k11) * A2 + (k00) * A3; - - k00 = ee0[-4] - ee2[-4]; - k11 = ee0[-5] - ee2[-5]; - ee0[-4] = ee0[-4] + ee2[-4]; - ee0[-5] = ee0[-5] + ee2[-5]; - ee2[-4] = (k00) * A4 - (k11) * A5; - ee2[-5] = (k11) * A4 + (k00) * A5; - - k00 = ee0[-6] - ee2[-6]; - k11 = ee0[-7] - ee2[-7]; - ee0[-6] = ee0[-6] + ee2[-6]; - ee0[-7] = ee0[-7] + ee2[-7]; - ee2[-6] = (k00) * A6 - (k11) * A7; - ee2[-7] = (k11) * A6 + (k00) * A7; - - ee0 -= k0; - ee2 -= k0; - } -} - -static __forceinline void iter_54(float *z) -{ - float k00,k11,k22,k33; - float y0,y1,y2,y3; - - k00 = z[ 0] - z[-4]; - y0 = z[ 0] + z[-4]; - y2 = z[-2] + z[-6]; - k22 = z[-2] - z[-6]; - - z[-0] = y0 + y2; // z0 + z4 + z2 + z6 - z[-2] = y0 - y2; // z0 + z4 - z2 - z6 - - // done with y0,y2 - - k33 = z[-3] - z[-7]; - - z[-4] = k00 + k33; // z0 - z4 + z3 - z7 - z[-6] = k00 - k33; // z0 - z4 - z3 + z7 - - // done with k33 - - k11 = z[-1] - z[-5]; - y1 = z[-1] + z[-5]; - y3 = z[-3] + z[-7]; - - z[-1] = y1 + y3; // z1 + z5 + z3 + z7 - z[-3] = y1 - y3; // z1 + z5 - z3 - z7 - z[-5] = k11 - k22; // z1 - z5 + z2 - z6 - z[-7] = k11 + k22; // z1 - z5 - z2 + z6 -} - -static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n) -{ - int a_off = base_n >> 3; - float A2 = A[0+a_off]; - float *z = e + i_off; - float *base = z - 16 * n; - - while (z > base) { - float k00,k11; - float l00,l11; - - k00 = z[-0] - z[ -8]; - k11 = z[-1] - z[ -9]; - l00 = z[-2] - z[-10]; - l11 = z[-3] - z[-11]; - z[ -0] = z[-0] + z[ -8]; - z[ -1] = z[-1] + z[ -9]; - z[ -2] = z[-2] + z[-10]; - z[ -3] = z[-3] + z[-11]; - z[ -8] = k00; - z[ -9] = k11; - z[-10] = (l00+l11) * A2; - z[-11] = (l11-l00) * A2; - - k00 = z[ -4] - z[-12]; - k11 = z[ -5] - z[-13]; - l00 = z[ -6] - z[-14]; - l11 = z[ -7] - z[-15]; - z[ -4] = z[ -4] + z[-12]; - z[ -5] = z[ -5] + z[-13]; - z[ -6] = z[ -6] + z[-14]; - z[ -7] = z[ -7] + z[-15]; - z[-12] = k11; - z[-13] = -k00; - z[-14] = (l11-l00) * A2; - z[-15] = (l00+l11) * -A2; - - iter_54(z); - iter_54(z-8); - z -= 16; - } -} - -static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype) -{ - int n2 = n >> 1, n4 = n >> 2, n8 = n >> 3, l; - int ld; - // @OPTIMIZE: reduce register pressure by using fewer variables? - int save_point = temp_alloc_save(f); - float *buf2 = (float *) temp_alloc(f, n2 * sizeof(*buf2)); - float *u=NULL,*v=NULL; - // twiddle factors - float *A = f->A[blocktype]; - - // IMDCT algorithm from "The use of multirate filter banks for coding of high quality digital audio" - // See notes about bugs in that paper in less-optimal implementation 'inverse_mdct_old' after this function. - - // kernel from paper - - - // merged: - // copy and reflect spectral data - // step 0 - - // note that it turns out that the items added together during - // this step are, in fact, being added to themselves (as reflected - // by step 0). inexplicable inefficiency! this became obvious - // once I combined the passes. - - // so there's a missing 'times 2' here (for adding X to itself). - // this propagates through linearly to the end, where the numbers - // are 1/2 too small, and need to be compensated for. - - { - float *d,*e, *AA, *e_stop; - d = &buf2[n2-2]; - AA = A; - e = &buffer[0]; - e_stop = &buffer[n2]; - while (e != e_stop) { - d[1] = (e[0] * AA[0] - e[2]*AA[1]); - d[0] = (e[0] * AA[1] + e[2]*AA[0]); - d -= 2; - AA += 2; - e += 4; - } - - e = &buffer[n2-3]; - while (d >= buf2) { - d[1] = (-e[2] * AA[0] - -e[0]*AA[1]); - d[0] = (-e[2] * AA[1] + -e[0]*AA[0]); - d -= 2; - AA += 2; - e -= 4; - } - } - - // now we use symbolic names for these, so that we can - // possibly swap their meaning as we change which operations - // are in place - - u = buffer; - v = buf2; - - // step 2 (paper output is w, now u) - // this could be in place, but the data ends up in the wrong - // place... _somebody_'s got to swap it, so this is nominated - { - float *AA = &A[n2-8]; - float *d0,*d1, *e0, *e1; - - e0 = &v[n4]; - e1 = &v[0]; - - d0 = &u[n4]; - d1 = &u[0]; - - while (AA >= A) { - float v40_20, v41_21; - - v41_21 = e0[1] - e1[1]; - v40_20 = e0[0] - e1[0]; - d0[1] = e0[1] + e1[1]; - d0[0] = e0[0] + e1[0]; - d1[1] = v41_21*AA[4] - v40_20*AA[5]; - d1[0] = v40_20*AA[4] + v41_21*AA[5]; - - v41_21 = e0[3] - e1[3]; - v40_20 = e0[2] - e1[2]; - d0[3] = e0[3] + e1[3]; - d0[2] = e0[2] + e1[2]; - d1[3] = v41_21*AA[0] - v40_20*AA[1]; - d1[2] = v40_20*AA[0] + v41_21*AA[1]; - - AA -= 8; - - d0 += 4; - d1 += 4; - e0 += 4; - e1 += 4; - } - } - - // step 3 - ld = ilog(n) - 1; // ilog is off-by-one from normal definitions - - // optimized step 3: - - // the original step3 loop can be nested r inside s or s inside r; - // it's written originally as s inside r, but this is dumb when r - // iterates many times, and s few. So I have two copies of it and - // switch between them halfway. - - // this is iteration 0 of step 3 - imdct_step3_iter0_loop(n >> 4, u, n2-1-n4*0, -(n >> 3), A); - imdct_step3_iter0_loop(n >> 4, u, n2-1-n4*1, -(n >> 3), A); - - // this is iteration 1 of step 3 - imdct_step3_inner_r_loop(n >> 5, u, n2-1 - n8*0, -(n >> 4), A, 16); - imdct_step3_inner_r_loop(n >> 5, u, n2-1 - n8*1, -(n >> 4), A, 16); - imdct_step3_inner_r_loop(n >> 5, u, n2-1 - n8*2, -(n >> 4), A, 16); - imdct_step3_inner_r_loop(n >> 5, u, n2-1 - n8*3, -(n >> 4), A, 16); - - l=2; - for (; l < (ld-3)>>1; ++l) { - int k0 = n >> (l+2), k0_2 = k0>>1; - int lim = 1 << (l+1); - int i; - for (i=0; i < lim; ++i) - imdct_step3_inner_r_loop(n >> (l+4), u, n2-1 - k0*i, -k0_2, A, 1 << (l+3)); - } - - for (; l < ld-6; ++l) { - int k0 = n >> (l+2), k1 = 1 << (l+3), k0_2 = k0>>1; - int rlim = n >> (l+6), r; - int lim = 1 << (l+1); - int i_off; - float *A0 = A; - i_off = n2-1; - for (r=rlim; r > 0; --r) { - imdct_step3_inner_s_loop(lim, u, i_off, -k0_2, A0, k1, k0); - A0 += k1*4; - i_off -= 8; - } - } - - // iterations with count: - // ld-6,-5,-4 all interleaved together - // the big win comes from getting rid of needless flops - // due to the constants on pass 5 & 4 being all 1 and 0; - // combining them to be simultaneous to improve cache made little difference - imdct_step3_inner_s_loop_ld654(n >> 5, u, n2-1, A, n); - - // output is u - - // step 4, 5, and 6 - // cannot be in-place because of step 5 - { - uint16 *bitrev = f->bit_reverse[blocktype]; - // weirdly, I'd have thought reading sequentially and writing - // erratically would have been better than vice-versa, but in - // fact that's not what my testing showed. (That is, with - // j = bitreverse(i), do you read i and write j, or read j and write i.) - - float *d0 = &v[n4-4]; - float *d1 = &v[n2-4]; - while (d0 >= v) { - int k4; - - k4 = bitrev[0]; - d1[3] = u[k4+0]; - d1[2] = u[k4+1]; - d0[3] = u[k4+2]; - d0[2] = u[k4+3]; - - k4 = bitrev[1]; - d1[1] = u[k4+0]; - d1[0] = u[k4+1]; - d0[1] = u[k4+2]; - d0[0] = u[k4+3]; - - d0 -= 4; - d1 -= 4; - bitrev += 2; - } - } - // (paper output is u, now v) - - - // data must be in buf2 - assert(v == buf2); - - // step 7 (paper output is v, now v) - // this is now in place - { - float *C = f->C[blocktype]; - float *d, *e; - - d = v; - e = v + n2 - 4; - - while (d < e) { - float a02,a11,b0,b1,b2,b3; - - a02 = d[0] - e[2]; - a11 = d[1] + e[3]; - - b0 = C[1]*a02 + C[0]*a11; - b1 = C[1]*a11 - C[0]*a02; - - b2 = d[0] + e[ 2]; - b3 = d[1] - e[ 3]; - - d[0] = b2 + b0; - d[1] = b3 + b1; - e[2] = b2 - b0; - e[3] = b1 - b3; - - a02 = d[2] - e[0]; - a11 = d[3] + e[1]; - - b0 = C[3]*a02 + C[2]*a11; - b1 = C[3]*a11 - C[2]*a02; - - b2 = d[2] + e[ 0]; - b3 = d[3] - e[ 1]; - - d[2] = b2 + b0; - d[3] = b3 + b1; - e[0] = b2 - b0; - e[1] = b1 - b3; - - C += 4; - d += 4; - e -= 4; - } - } - - // data must be in buf2 - - - // step 8+decode (paper output is X, now buffer) - // this generates pairs of data a la 8 and pushes them directly through - // the decode kernel (pushing rather than pulling) to avoid having - // to make another pass later - - // this cannot POSSIBLY be in place, so we refer to the buffers directly - - { - float *d0,*d1,*d2,*d3; - - float *B = f->B[blocktype] + n2 - 8; - float *e = buf2 + n2 - 8; - d0 = &buffer[0]; - d1 = &buffer[n2-4]; - d2 = &buffer[n2]; - d3 = &buffer[n-4]; - while (e >= v) { - float p0,p1,p2,p3; - - p3 = e[6]*B[7] - e[7]*B[6]; - p2 = -e[6]*B[6] - e[7]*B[7]; - - d0[0] = p3; - d1[3] = - p3; - d2[0] = p2; - d3[3] = p2; - - p1 = e[4]*B[5] - e[5]*B[4]; - p0 = -e[4]*B[4] - e[5]*B[5]; - - d0[1] = p1; - d1[2] = - p1; - d2[1] = p0; - d3[2] = p0; - - p3 = e[2]*B[3] - e[3]*B[2]; - p2 = -e[2]*B[2] - e[3]*B[3]; - - d0[2] = p3; - d1[1] = - p3; - d2[2] = p2; - d3[1] = p2; - - p1 = e[0]*B[1] - e[1]*B[0]; - p0 = -e[0]*B[0] - e[1]*B[1]; - - d0[3] = p1; - d1[0] = - p1; - d2[3] = p0; - d3[0] = p0; - - B -= 8; - e -= 8; - d0 += 4; - d2 += 4; - d1 -= 4; - d3 -= 4; - } - } - - temp_free(f,buf2); - temp_alloc_restore(f,save_point); -} - -#if 0 -// this is the original version of the above code, if you want to optimize it from scratch -void inverse_mdct_naive(float *buffer, int n) -{ - float s; - float A[1 << 12], B[1 << 12], C[1 << 11]; - int i,k,k2,k4, n2 = n >> 1, n4 = n >> 2, n8 = n >> 3, l; - int n3_4 = n - n4, ld; - // how can they claim this only uses N words?! - // oh, because they're only used sparsely, whoops - float u[1 << 13], X[1 << 13], v[1 << 13], w[1 << 13]; - // set up twiddle factors - - for (k=k2=0; k < n4; ++k,k2+=2) { - A[k2 ] = (float) cos(4*k*M_PI/n); - A[k2+1] = (float) -sin(4*k*M_PI/n); - B[k2 ] = (float) cos((k2+1)*M_PI/n/2); - B[k2+1] = (float) sin((k2+1)*M_PI/n/2); - } - for (k=k2=0; k < n8; ++k,k2+=2) { - C[k2 ] = (float) cos(2*(k2+1)*M_PI/n); - C[k2+1] = (float) -sin(2*(k2+1)*M_PI/n); - } - - // IMDCT algorithm from "The use of multirate filter banks for coding of high quality digital audio" - // Note there are bugs in that pseudocode, presumably due to them attempting - // to rename the arrays nicely rather than representing the way their actual - // implementation bounces buffers back and forth. As a result, even in the - // "some formulars corrected" version, a direct implementation fails. These - // are noted below as "paper bug". - - // copy and reflect spectral data - for (k=0; k < n2; ++k) u[k] = buffer[k]; - for ( ; k < n ; ++k) u[k] = -buffer[n - k - 1]; - // kernel from paper - // step 1 - for (k=k2=k4=0; k < n4; k+=1, k2+=2, k4+=4) { - v[n-k4-1] = (u[k4] - u[n-k4-1]) * A[k2] - (u[k4+2] - u[n-k4-3])*A[k2+1]; - v[n-k4-3] = (u[k4] - u[n-k4-1]) * A[k2+1] + (u[k4+2] - u[n-k4-3])*A[k2]; - } - // step 2 - for (k=k4=0; k < n8; k+=1, k4+=4) { - w[n2+3+k4] = v[n2+3+k4] + v[k4+3]; - w[n2+1+k4] = v[n2+1+k4] + v[k4+1]; - w[k4+3] = (v[n2+3+k4] - v[k4+3])*A[n2-4-k4] - (v[n2+1+k4]-v[k4+1])*A[n2-3-k4]; - w[k4+1] = (v[n2+1+k4] - v[k4+1])*A[n2-4-k4] + (v[n2+3+k4]-v[k4+3])*A[n2-3-k4]; - } - // step 3 - ld = ilog(n) - 1; // ilog is off-by-one from normal definitions - for (l=0; l < ld-3; ++l) { - int k0 = n >> (l+2), k1 = 1 << (l+3); - int rlim = n >> (l+4), r4, r; - int s2lim = 1 << (l+2), s2; - for (r=r4=0; r < rlim; r4+=4,++r) { - for (s2=0; s2 < s2lim; s2+=2) { - u[n-1-k0*s2-r4] = w[n-1-k0*s2-r4] + w[n-1-k0*(s2+1)-r4]; - u[n-3-k0*s2-r4] = w[n-3-k0*s2-r4] + w[n-3-k0*(s2+1)-r4]; - u[n-1-k0*(s2+1)-r4] = (w[n-1-k0*s2-r4] - w[n-1-k0*(s2+1)-r4]) * A[r*k1] - - (w[n-3-k0*s2-r4] - w[n-3-k0*(s2+1)-r4]) * A[r*k1+1]; - u[n-3-k0*(s2+1)-r4] = (w[n-3-k0*s2-r4] - w[n-3-k0*(s2+1)-r4]) * A[r*k1] - + (w[n-1-k0*s2-r4] - w[n-1-k0*(s2+1)-r4]) * A[r*k1+1]; - } - } - if (l+1 < ld-3) { - // paper bug: ping-ponging of u&w here is omitted - memcpy(w, u, sizeof(u)); - } - } - - // step 4 - for (i=0; i < n8; ++i) { - int j = bit_reverse(i) >> (32-ld+3); - assert(j < n8); - if (i == j) { - // paper bug: original code probably swapped in place; if copying, - // need to directly copy in this case - int i8 = i << 3; - v[i8+1] = u[i8+1]; - v[i8+3] = u[i8+3]; - v[i8+5] = u[i8+5]; - v[i8+7] = u[i8+7]; - } else if (i < j) { - int i8 = i << 3, j8 = j << 3; - v[j8+1] = u[i8+1], v[i8+1] = u[j8 + 1]; - v[j8+3] = u[i8+3], v[i8+3] = u[j8 + 3]; - v[j8+5] = u[i8+5], v[i8+5] = u[j8 + 5]; - v[j8+7] = u[i8+7], v[i8+7] = u[j8 + 7]; - } - } - // step 5 - for (k=0; k < n2; ++k) { - w[k] = v[k*2+1]; - } - // step 6 - for (k=k2=k4=0; k < n8; ++k, k2 += 2, k4 += 4) { - u[n-1-k2] = w[k4]; - u[n-2-k2] = w[k4+1]; - u[n3_4 - 1 - k2] = w[k4+2]; - u[n3_4 - 2 - k2] = w[k4+3]; - } - // step 7 - for (k=k2=0; k < n8; ++k, k2 += 2) { - v[n2 + k2 ] = ( u[n2 + k2] + u[n-2-k2] + C[k2+1]*(u[n2+k2]-u[n-2-k2]) + C[k2]*(u[n2+k2+1]+u[n-2-k2+1]))/2; - v[n-2 - k2] = ( u[n2 + k2] + u[n-2-k2] - C[k2+1]*(u[n2+k2]-u[n-2-k2]) - C[k2]*(u[n2+k2+1]+u[n-2-k2+1]))/2; - v[n2+1+ k2] = ( u[n2+1+k2] - u[n-1-k2] + C[k2+1]*(u[n2+1+k2]+u[n-1-k2]) - C[k2]*(u[n2+k2]-u[n-2-k2]))/2; - v[n-1 - k2] = (-u[n2+1+k2] + u[n-1-k2] + C[k2+1]*(u[n2+1+k2]+u[n-1-k2]) - C[k2]*(u[n2+k2]-u[n-2-k2]))/2; - } - // step 8 - for (k=k2=0; k < n4; ++k,k2 += 2) { - X[k] = v[k2+n2]*B[k2 ] + v[k2+1+n2]*B[k2+1]; - X[n2-1-k] = v[k2+n2]*B[k2+1] - v[k2+1+n2]*B[k2 ]; - } - - // decode kernel to output - // determined the following value experimentally - // (by first figuring out what made inverse_mdct_slow work); then matching that here - // (probably vorbis encoder premultiplies by n or n/2, to save it on the decoder?) - s = 0.5; // theoretically would be n4 - - // [[[ note! the s value of 0.5 is compensated for by the B[] in the current code, - // so it needs to use the "old" B values to behave correctly, or else - // set s to 1.0 ]]] - for (i=0; i < n4 ; ++i) buffer[i] = s * X[i+n4]; - for ( ; i < n3_4; ++i) buffer[i] = -s * X[n3_4 - i - 1]; - for ( ; i < n ; ++i) buffer[i] = -s * X[i - n3_4]; -} -#endif - -static float *get_window(vorb *f, int len) -{ - len <<= 1; - if (len == f->blocksize_0) return f->window[0]; - if (len == f->blocksize_1) return f->window[1]; - return NULL; -} - -#ifndef STB_VORBIS_NO_DEFER_FLOOR -typedef int16 YTYPE; -#else -typedef int YTYPE; -#endif -static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag) -{ - int n2 = n >> 1; - int s = map->chan[i].mux, floor; - floor = map->submap_floor[s]; - if (f->floor_types[floor] == 0) { - return error(f, VORBIS_invalid_stream); - } else { - Floor1 *g = &f->floor_config[floor].floor1; - int j,q; - int lx = 0, ly = finalY[0] * g->floor1_multiplier; - for (q=1; q < g->values; ++q) { - j = g->sorted_order[q]; - #ifndef STB_VORBIS_NO_DEFER_FLOOR - STBV_NOTUSED(step2_flag); - if (finalY[j] >= 0) - #else - if (step2_flag[j]) - #endif - { - int hy = finalY[j] * g->floor1_multiplier; - int hx = g->Xlist[j]; - if (lx != hx) - draw_line(target, lx,ly, hx,hy, n2); - CHECK(f); - lx = hx, ly = hy; - } - } - if (lx < n2) { - // optimization of: draw_line(target, lx,ly, n,ly, n2); - for (j=lx; j < n2; ++j) - LINE_OP(target[j], inverse_db_table[ly]); - CHECK(f); - } - } - return TRUE; -} - -// The meaning of "left" and "right" -// -// For a given frame: -// we compute samples from 0..n -// window_center is n/2 -// we'll window and mix the samples from left_start to left_end with data from the previous frame -// all of the samples from left_end to right_start can be output without mixing; however, -// this interval is 0-length except when transitioning between short and long frames -// all of the samples from right_start to right_end need to be mixed with the next frame, -// which we don't have, so those get saved in a buffer -// frame N's right_end-right_start, the number of samples to mix with the next frame, -// has to be the same as frame N+1's left_end-left_start (which they are by -// construction) - -static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode) -{ - Mode *m; - int i, n, prev, next, window_center; - f->channel_buffer_start = f->channel_buffer_end = 0; - - retry: - if (f->eof) return FALSE; - if (!maybe_start_packet(f)) - return FALSE; - // check packet type - if (get_bits(f,1) != 0) { - if (IS_PUSH_MODE(f)) - return error(f,VORBIS_bad_packet_type); - while (EOP != get8_packet(f)); - goto retry; - } - - if (f->alloc.alloc_buffer) - assert(f->alloc.alloc_buffer_length_in_bytes == f->temp_offset); - - i = get_bits(f, ilog(f->mode_count-1)); - if (i == EOP) return FALSE; - if (i >= f->mode_count) return FALSE; - *mode = i; - m = f->mode_config + i; - if (m->blockflag) { - n = f->blocksize_1; - prev = get_bits(f,1); - next = get_bits(f,1); - } else { - prev = next = 0; - n = f->blocksize_0; - } - -// WINDOWING - - window_center = n >> 1; - if (m->blockflag && !prev) { - *p_left_start = (n - f->blocksize_0) >> 2; - *p_left_end = (n + f->blocksize_0) >> 2; - } else { - *p_left_start = 0; - *p_left_end = window_center; - } - if (m->blockflag && !next) { - *p_right_start = (n*3 - f->blocksize_0) >> 2; - *p_right_end = (n*3 + f->blocksize_0) >> 2; - } else { - *p_right_start = window_center; - *p_right_end = n; - } - - return TRUE; -} - -static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left) -{ - Mapping *map; - int i,j,k,n,n2; - int zero_channel[256]; - int really_zero_channel[256]; - -// WINDOWING - - STBV_NOTUSED(left_end); - n = f->blocksize[m->blockflag]; - map = &f->mapping[m->mapping]; - -// FLOORS - n2 = n >> 1; - - CHECK(f); - - for (i=0; i < f->channels; ++i) { - int s = map->chan[i].mux, floor; - zero_channel[i] = FALSE; - floor = map->submap_floor[s]; - if (f->floor_types[floor] == 0) { - return error(f, VORBIS_invalid_stream); - } else { - Floor1 *g = &f->floor_config[floor].floor1; - if (get_bits(f, 1)) { - short *finalY; - uint8 step2_flag[256]; - static int range_list[4] = { 256, 128, 86, 64 }; - int range = range_list[g->floor1_multiplier-1]; - int offset = 2; - finalY = f->finalY[i]; - finalY[0] = get_bits(f, ilog(range)-1); - finalY[1] = get_bits(f, ilog(range)-1); - for (j=0; j < g->partitions; ++j) { - int pclass = g->partition_class_list[j]; - int cdim = g->class_dimensions[pclass]; - int cbits = g->class_subclasses[pclass]; - int csub = (1 << cbits)-1; - int cval = 0; - if (cbits) { - Codebook *c = f->codebooks + g->class_masterbooks[pclass]; - DECODE(cval,f,c); - } - for (k=0; k < cdim; ++k) { - int book = g->subclass_books[pclass][cval & csub]; - cval = cval >> cbits; - if (book >= 0) { - int temp; - Codebook *c = f->codebooks + book; - DECODE(temp,f,c); - finalY[offset++] = temp; - } else - finalY[offset++] = 0; - } - } - if (f->valid_bits == INVALID_BITS) goto error; // behavior according to spec - step2_flag[0] = step2_flag[1] = 1; - for (j=2; j < g->values; ++j) { - int low, high, pred, highroom, lowroom, room, val; - low = g->neighbors[j][0]; - high = g->neighbors[j][1]; - //neighbors(g->Xlist, j, &low, &high); - pred = predict_point(g->Xlist[j], g->Xlist[low], g->Xlist[high], finalY[low], finalY[high]); - val = finalY[j]; - highroom = range - pred; - lowroom = pred; - if (highroom < lowroom) - room = highroom * 2; - else - room = lowroom * 2; - if (val) { - step2_flag[low] = step2_flag[high] = 1; - step2_flag[j] = 1; - if (val >= room) - if (highroom > lowroom) - finalY[j] = val - lowroom + pred; - else - finalY[j] = pred - val + highroom - 1; - else - if (val & 1) - finalY[j] = pred - ((val+1)>>1); - else - finalY[j] = pred + (val>>1); - } else { - step2_flag[j] = 0; - finalY[j] = pred; - } - } - -#ifdef STB_VORBIS_NO_DEFER_FLOOR - do_floor(f, map, i, n, f->floor_buffers[i], finalY, step2_flag); -#else - // defer final floor computation until _after_ residue - for (j=0; j < g->values; ++j) { - if (!step2_flag[j]) - finalY[j] = -1; - } -#endif - } else { - error: - zero_channel[i] = TRUE; - } - // So we just defer everything else to later - - // at this point we've decoded the floor into buffer - } - } - CHECK(f); - // at this point we've decoded all floors - - if (f->alloc.alloc_buffer) - assert(f->alloc.alloc_buffer_length_in_bytes == f->temp_offset); - - // re-enable coupled channels if necessary - memcpy(really_zero_channel, zero_channel, sizeof(really_zero_channel[0]) * f->channels); - for (i=0; i < map->coupling_steps; ++i) - if (!zero_channel[map->chan[i].magnitude] || !zero_channel[map->chan[i].angle]) { - zero_channel[map->chan[i].magnitude] = zero_channel[map->chan[i].angle] = FALSE; - } - - CHECK(f); -// RESIDUE DECODE - for (i=0; i < map->submaps; ++i) { - float *residue_buffers[STB_VORBIS_MAX_CHANNELS]; - int r; - uint8 do_not_decode[256]; - int ch = 0; - for (j=0; j < f->channels; ++j) { - if (map->chan[j].mux == i) { - if (zero_channel[j]) { - do_not_decode[ch] = TRUE; - residue_buffers[ch] = NULL; - } else { - do_not_decode[ch] = FALSE; - residue_buffers[ch] = f->channel_buffers[j]; - } - ++ch; - } - } - r = map->submap_residue[i]; - decode_residue(f, residue_buffers, ch, n2, r, do_not_decode); - } - - if (f->alloc.alloc_buffer) - assert(f->alloc.alloc_buffer_length_in_bytes == f->temp_offset); - CHECK(f); - -// INVERSE COUPLING - for (i = map->coupling_steps-1; i >= 0; --i) { - int n2 = n >> 1; - float *m = f->channel_buffers[map->chan[i].magnitude]; - float *a = f->channel_buffers[map->chan[i].angle ]; - for (j=0; j < n2; ++j) { - float a2,m2; - if (m[j] > 0) - if (a[j] > 0) - m2 = m[j], a2 = m[j] - a[j]; - else - a2 = m[j], m2 = m[j] + a[j]; - else - if (a[j] > 0) - m2 = m[j], a2 = m[j] + a[j]; - else - a2 = m[j], m2 = m[j] - a[j]; - m[j] = m2; - a[j] = a2; - } - } - CHECK(f); - - // finish decoding the floors -#ifndef STB_VORBIS_NO_DEFER_FLOOR - for (i=0; i < f->channels; ++i) { - if (really_zero_channel[i]) { - memset(f->channel_buffers[i], 0, sizeof(*f->channel_buffers[i]) * n2); - } else { - do_floor(f, map, i, n, f->channel_buffers[i], f->finalY[i], NULL); - } - } -#else - for (i=0; i < f->channels; ++i) { - if (really_zero_channel[i]) { - memset(f->channel_buffers[i], 0, sizeof(*f->channel_buffers[i]) * n2); - } else { - for (j=0; j < n2; ++j) - f->channel_buffers[i][j] *= f->floor_buffers[i][j]; - } - } -#endif - -// INVERSE MDCT - CHECK(f); - for (i=0; i < f->channels; ++i) - inverse_mdct(f->channel_buffers[i], n, f, m->blockflag); - CHECK(f); - - // this shouldn't be necessary, unless we exited on an error - // and want to flush to get to the next packet - flush_packet(f); - - if (f->first_decode) { - // assume we start so first non-discarded sample is sample 0 - // this isn't to spec, but spec would require us to read ahead - // and decode the size of all current frames--could be done, - // but presumably it's not a commonly used feature - f->current_loc = 0u - n2; // start of first frame is positioned for discard (NB this is an intentional unsigned overflow/wrap-around) - // we might have to discard samples "from" the next frame too, - // if we're lapping a large block then a small at the start? - f->discard_samples_deferred = n - right_end; - f->current_loc_valid = TRUE; - f->first_decode = FALSE; - } else if (f->discard_samples_deferred) { - if (f->discard_samples_deferred >= right_start - left_start) { - f->discard_samples_deferred -= (right_start - left_start); - left_start = right_start; - *p_left = left_start; - } else { - left_start += f->discard_samples_deferred; - *p_left = left_start; - f->discard_samples_deferred = 0; - } - } else if (f->previous_length == 0 && f->current_loc_valid) { - // we're recovering from a seek... that means we're going to discard - // the samples from this packet even though we know our position from - // the last page header, so we need to update the position based on - // the discarded samples here - // but wait, the code below is going to add this in itself even - // on a discard, so we don't need to do it here... - } - - // check if we have ogg information about the sample # for this packet - if (f->last_seg_which == f->end_seg_with_known_loc) { - // if we have a valid current loc, and this is final: - if (f->current_loc_valid && (f->page_flag & PAGEFLAG_last_page)) { - uint32 current_end = f->known_loc_for_packet; - // then let's infer the size of the (probably) short final frame - if (current_end < f->current_loc + (right_end-left_start)) { - if (current_end < f->current_loc) { - // negative truncation, that's impossible! - *len = 0; - } else { - *len = current_end - f->current_loc; - } - *len += left_start; // this doesn't seem right, but has no ill effect on my test files - if (*len > right_end) *len = right_end; // this should never happen - f->current_loc += *len; - return TRUE; - } - } - // otherwise, just set our sample loc - // guess that the ogg granule pos refers to the _middle_ of the - // last frame? - // set f->current_loc to the position of left_start - f->current_loc = f->known_loc_for_packet - (n2-left_start); - f->current_loc_valid = TRUE; - } - if (f->current_loc_valid) - f->current_loc += (right_start - left_start); - - if (f->alloc.alloc_buffer) - assert(f->alloc.alloc_buffer_length_in_bytes == f->temp_offset); - *len = right_end; // ignore samples after the window goes to 0 - CHECK(f); - - return TRUE; -} - -static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right) -{ - int mode, left_end, right_end; - if (!vorbis_decode_initial(f, p_left, &left_end, p_right, &right_end, &mode)) return 0; - return vorbis_decode_packet_rest(f, len, f->mode_config + mode, *p_left, left_end, *p_right, right_end, p_left); -} - -static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right) -{ - int prev,i,j; - // we use right&left (the start of the right- and left-window sin()-regions) - // to determine how much to return, rather than inferring from the rules - // (same result, clearer code); 'left' indicates where our sin() window - // starts, therefore where the previous window's right edge starts, and - // therefore where to start mixing from the previous buffer. 'right' - // indicates where our sin() ending-window starts, therefore that's where - // we start saving, and where our returned-data ends. - - // mixin from previous window - if (f->previous_length) { - int i,j, n = f->previous_length; - float *w = get_window(f, n); - if (w == NULL) return 0; - for (i=0; i < f->channels; ++i) { - for (j=0; j < n; ++j) - f->channel_buffers[i][left+j] = - f->channel_buffers[i][left+j]*w[ j] + - f->previous_window[i][ j]*w[n-1-j]; - } - } - - prev = f->previous_length; - - // last half of this data becomes previous window - f->previous_length = len - right; - - // @OPTIMIZE: could avoid this copy by double-buffering the - // output (flipping previous_window with channel_buffers), but - // then previous_window would have to be 2x as large, and - // channel_buffers couldn't be temp mem (although they're NOT - // currently temp mem, they could be (unless we want to level - // performance by spreading out the computation)) - for (i=0; i < f->channels; ++i) - for (j=0; right+j < len; ++j) - f->previous_window[i][j] = f->channel_buffers[i][right+j]; - - if (!prev) - // there was no previous packet, so this data isn't valid... - // this isn't entirely true, only the would-have-overlapped data - // isn't valid, but this seems to be what the spec requires - return 0; - - // truncate a short frame - if (len < right) right = len; - - f->samples_output += right-left; - - return right - left; -} - -static int vorbis_pump_first_frame(stb_vorbis *f) -{ - int len, right, left, res; - res = vorbis_decode_packet(f, &len, &left, &right); - if (res) - vorbis_finish_frame(f, len, left, right); - return res; -} - -#ifndef STB_VORBIS_NO_PUSHDATA_API -static int is_whole_packet_present(stb_vorbis *f) -{ - // make sure that we have the packet available before continuing... - // this requires a full ogg parse, but we know we can fetch from f->stream - - // instead of coding this out explicitly, we could save the current read state, - // read the next packet with get8() until end-of-packet, check f->eof, then - // reset the state? but that would be slower, esp. since we'd have over 256 bytes - // of state to restore (primarily the page segment table) - - int s = f->next_seg, first = TRUE; - uint8 *p = f->stream; - - if (s != -1) { // if we're not starting the packet with a 'continue on next page' flag - for (; s < f->segment_count; ++s) { - p += f->segments[s]; - if (f->segments[s] < 255) // stop at first short segment - break; - } - // either this continues, or it ends it... - if (s == f->segment_count) - s = -1; // set 'crosses page' flag - if (p > f->stream_end) return error(f, VORBIS_need_more_data); - first = FALSE; - } - for (; s == -1;) { - uint8 *q; - int n; - - // check that we have the page header ready - if (p + 26 >= f->stream_end) return error(f, VORBIS_need_more_data); - // validate the page - if (memcmp(p, ogg_page_header, 4)) return error(f, VORBIS_invalid_stream); - if (p[4] != 0) return error(f, VORBIS_invalid_stream); - if (first) { // the first segment must NOT have 'continued_packet', later ones MUST - if (f->previous_length) - if ((p[5] & PAGEFLAG_continued_packet)) return error(f, VORBIS_invalid_stream); - // if no previous length, we're resynching, so we can come in on a continued-packet, - // which we'll just drop - } else { - if (!(p[5] & PAGEFLAG_continued_packet)) return error(f, VORBIS_invalid_stream); - } - n = p[26]; // segment counts - q = p+27; // q points to segment table - p = q + n; // advance past header - // make sure we've read the segment table - if (p > f->stream_end) return error(f, VORBIS_need_more_data); - for (s=0; s < n; ++s) { - p += q[s]; - if (q[s] < 255) - break; - } - if (s == n) - s = -1; // set 'crosses page' flag - if (p > f->stream_end) return error(f, VORBIS_need_more_data); - first = FALSE; - } - return TRUE; -} -#endif // !STB_VORBIS_NO_PUSHDATA_API - -static int start_decoder(vorb *f) -{ - uint8 header[6], x,y; - int len,i,j,k, max_submaps = 0; - int longest_floorlist=0; - - // first page, first packet - f->first_decode = TRUE; - - if (!start_page(f)) return FALSE; - // validate page flag - if (!(f->page_flag & PAGEFLAG_first_page)) return error(f, VORBIS_invalid_first_page); - if (f->page_flag & PAGEFLAG_last_page) return error(f, VORBIS_invalid_first_page); - if (f->page_flag & PAGEFLAG_continued_packet) return error(f, VORBIS_invalid_first_page); - // check for expected packet length - if (f->segment_count != 1) return error(f, VORBIS_invalid_first_page); - if (f->segments[0] != 30) { - // check for the Ogg skeleton fishead identifying header to refine our error - if (f->segments[0] == 64 && - getn(f, header, 6) && - header[0] == 'f' && - header[1] == 'i' && - header[2] == 's' && - header[3] == 'h' && - header[4] == 'e' && - header[5] == 'a' && - get8(f) == 'd' && - get8(f) == '\0') return error(f, VORBIS_ogg_skeleton_not_supported); - else - return error(f, VORBIS_invalid_first_page); - } - - // read packet - // check packet header - if (get8(f) != VORBIS_packet_id) return error(f, VORBIS_invalid_first_page); - if (!getn(f, header, 6)) return error(f, VORBIS_unexpected_eof); - if (!vorbis_validate(header)) return error(f, VORBIS_invalid_first_page); - // vorbis_version - if (get32(f) != 0) return error(f, VORBIS_invalid_first_page); - f->channels = get8(f); if (!f->channels) return error(f, VORBIS_invalid_first_page); - if (f->channels > STB_VORBIS_MAX_CHANNELS) return error(f, VORBIS_too_many_channels); - f->sample_rate = get32(f); if (!f->sample_rate) return error(f, VORBIS_invalid_first_page); - get32(f); // bitrate_maximum - get32(f); // bitrate_nominal - get32(f); // bitrate_minimum - x = get8(f); - { - int log0,log1; - log0 = x & 15; - log1 = x >> 4; - f->blocksize_0 = 1 << log0; - f->blocksize_1 = 1 << log1; - if (log0 < 6 || log0 > 13) return error(f, VORBIS_invalid_setup); - if (log1 < 6 || log1 > 13) return error(f, VORBIS_invalid_setup); - if (log0 > log1) return error(f, VORBIS_invalid_setup); - } - - // framing_flag - x = get8(f); - if (!(x & 1)) return error(f, VORBIS_invalid_first_page); - - // second packet! - if (!start_page(f)) return FALSE; - - if (!start_packet(f)) return FALSE; - - if (!next_segment(f)) return FALSE; - - if (get8_packet(f) != VORBIS_packet_comment) return error(f, VORBIS_invalid_setup); - for (i=0; i < 6; ++i) header[i] = get8_packet(f); - if (!vorbis_validate(header)) return error(f, VORBIS_invalid_setup); - //file vendor - len = get32_packet(f); - f->vendor = (char*)setup_malloc(f, sizeof(char) * (len+1)); - if (f->vendor == NULL) return error(f, VORBIS_outofmem); - for(i=0; i < len; ++i) { - f->vendor[i] = get8_packet(f); - } - f->vendor[len] = (char)'\0'; - //user comments - f->comment_list_length = get32_packet(f); - f->comment_list = NULL; - if (f->comment_list_length > 0) - { - f->comment_list = (char**) setup_malloc(f, sizeof(char*) * (f->comment_list_length)); - if (f->comment_list == NULL) return error(f, VORBIS_outofmem); - } - - for(i=0; i < f->comment_list_length; ++i) { - len = get32_packet(f); - f->comment_list[i] = (char*)setup_malloc(f, sizeof(char) * (len+1)); - if (f->comment_list[i] == NULL) return error(f, VORBIS_outofmem); - - for(j=0; j < len; ++j) { - f->comment_list[i][j] = get8_packet(f); - } - f->comment_list[i][len] = (char)'\0'; - } - - // framing_flag - x = get8_packet(f); - if (!(x & 1)) return error(f, VORBIS_invalid_setup); - - - skip(f, f->bytes_in_seg); - f->bytes_in_seg = 0; - - do { - len = next_segment(f); - skip(f, len); - f->bytes_in_seg = 0; - } while (len); - - // third packet! - if (!start_packet(f)) return FALSE; - - #ifndef STB_VORBIS_NO_PUSHDATA_API - if (IS_PUSH_MODE(f)) { - if (!is_whole_packet_present(f)) { - // convert error in ogg header to write type - if (f->error == VORBIS_invalid_stream) - f->error = VORBIS_invalid_setup; - return FALSE; - } - } - #endif - - crc32_init(); // always init it, to avoid multithread race conditions - - if (get8_packet(f) != VORBIS_packet_setup) return error(f, VORBIS_invalid_setup); - for (i=0; i < 6; ++i) header[i] = get8_packet(f); - if (!vorbis_validate(header)) return error(f, VORBIS_invalid_setup); - - // codebooks - - f->codebook_count = get_bits(f,8) + 1; - f->codebooks = (Codebook *) setup_malloc(f, sizeof(*f->codebooks) * f->codebook_count); - if (f->codebooks == NULL) return error(f, VORBIS_outofmem); - memset(f->codebooks, 0, sizeof(*f->codebooks) * f->codebook_count); - for (i=0; i < f->codebook_count; ++i) { - uint32 *values; - int ordered, sorted_count; - int total=0; - uint8 *lengths; - Codebook *c = f->codebooks+i; - CHECK(f); - x = get_bits(f, 8); if (x != 0x42) return error(f, VORBIS_invalid_setup); - x = get_bits(f, 8); if (x != 0x43) return error(f, VORBIS_invalid_setup); - x = get_bits(f, 8); if (x != 0x56) return error(f, VORBIS_invalid_setup); - x = get_bits(f, 8); - c->dimensions = (get_bits(f, 8)<<8) + x; - x = get_bits(f, 8); - y = get_bits(f, 8); - c->entries = (get_bits(f, 8)<<16) + (y<<8) + x; - ordered = get_bits(f,1); - c->sparse = ordered ? 0 : get_bits(f,1); - - if (c->dimensions == 0 && c->entries != 0) return error(f, VORBIS_invalid_setup); - - if (c->sparse) - lengths = (uint8 *) setup_temp_malloc(f, c->entries); - else - lengths = c->codeword_lengths = (uint8 *) setup_malloc(f, c->entries); - - if (!lengths) return error(f, VORBIS_outofmem); - - if (ordered) { - int current_entry = 0; - int current_length = get_bits(f,5) + 1; - while (current_entry < c->entries) { - int limit = c->entries - current_entry; - int n = get_bits(f, ilog(limit)); - if (current_length >= 32) return error(f, VORBIS_invalid_setup); - if (current_entry + n > (int) c->entries) { return error(f, VORBIS_invalid_setup); } - memset(lengths + current_entry, current_length, n); - current_entry += n; - ++current_length; - } - } else { - for (j=0; j < c->entries; ++j) { - int present = c->sparse ? get_bits(f,1) : 1; - if (present) { - lengths[j] = get_bits(f, 5) + 1; - ++total; - if (lengths[j] == 32) - return error(f, VORBIS_invalid_setup); - } else { - lengths[j] = NO_CODE; - } - } - } - - if (c->sparse && total >= c->entries >> 2) { - // convert sparse items to non-sparse! - if (c->entries > (int) f->setup_temp_memory_required) - f->setup_temp_memory_required = c->entries; - - c->codeword_lengths = (uint8 *) setup_malloc(f, c->entries); - if (c->codeword_lengths == NULL) return error(f, VORBIS_outofmem); - memcpy(c->codeword_lengths, lengths, c->entries); - setup_temp_free(f, lengths, c->entries); // note this is only safe if there have been no intervening temp mallocs! - lengths = c->codeword_lengths; - c->sparse = 0; - } - - // compute the size of the sorted tables - if (c->sparse) { - sorted_count = total; - } else { - sorted_count = 0; - #ifndef STB_VORBIS_NO_HUFFMAN_BINARY_SEARCH - for (j=0; j < c->entries; ++j) - if (lengths[j] > STB_VORBIS_FAST_HUFFMAN_LENGTH && lengths[j] != NO_CODE) - ++sorted_count; - #endif - } - - c->sorted_entries = sorted_count; - values = NULL; - - CHECK(f); - if (!c->sparse) { - c->codewords = (uint32 *) setup_malloc(f, sizeof(c->codewords[0]) * c->entries); - if (!c->codewords) return error(f, VORBIS_outofmem); - } else { - unsigned int size; - if (c->sorted_entries) { - c->codeword_lengths = (uint8 *) setup_malloc(f, c->sorted_entries); - if (!c->codeword_lengths) return error(f, VORBIS_outofmem); - c->codewords = (uint32 *) setup_temp_malloc(f, sizeof(*c->codewords) * c->sorted_entries); - if (!c->codewords) return error(f, VORBIS_outofmem); - values = (uint32 *) setup_temp_malloc(f, sizeof(*values) * c->sorted_entries); - if (!values) return error(f, VORBIS_outofmem); - } - size = c->entries + (sizeof(*c->codewords) + sizeof(*values)) * c->sorted_entries; - if (size > f->setup_temp_memory_required) - f->setup_temp_memory_required = size; - } - - if (!compute_codewords(c, lengths, c->entries, values)) { - if (c->sparse) setup_temp_free(f, values, 0); - return error(f, VORBIS_invalid_setup); - } - - if (c->sorted_entries) { - // allocate an extra slot for sentinels - c->sorted_codewords = (uint32 *) setup_malloc(f, sizeof(*c->sorted_codewords) * (c->sorted_entries+1)); - if (c->sorted_codewords == NULL) return error(f, VORBIS_outofmem); - // allocate an extra slot at the front so that c->sorted_values[-1] is defined - // so that we can catch that case without an extra if - c->sorted_values = ( int *) setup_malloc(f, sizeof(*c->sorted_values ) * (c->sorted_entries+1)); - if (c->sorted_values == NULL) return error(f, VORBIS_outofmem); - ++c->sorted_values; - c->sorted_values[-1] = -1; - compute_sorted_huffman(c, lengths, values); - } - - if (c->sparse) { - setup_temp_free(f, values, sizeof(*values)*c->sorted_entries); - setup_temp_free(f, c->codewords, sizeof(*c->codewords)*c->sorted_entries); - setup_temp_free(f, lengths, c->entries); - c->codewords = NULL; - } - - compute_accelerated_huffman(c); - - CHECK(f); - c->lookup_type = get_bits(f, 4); - if (c->lookup_type > 2) return error(f, VORBIS_invalid_setup); - if (c->lookup_type > 0) { - uint16 *mults; - c->minimum_value = float32_unpack(get_bits(f, 32)); - c->delta_value = float32_unpack(get_bits(f, 32)); - c->value_bits = get_bits(f, 4)+1; - c->sequence_p = get_bits(f,1); - if (c->lookup_type == 1) { - int values = lookup1_values(c->entries, c->dimensions); - if (values < 0) return error(f, VORBIS_invalid_setup); - c->lookup_values = (uint32) values; - } else { - c->lookup_values = c->entries * c->dimensions; - } - if (c->lookup_values == 0) return error(f, VORBIS_invalid_setup); - mults = (uint16 *) setup_temp_malloc(f, sizeof(mults[0]) * c->lookup_values); - if (mults == NULL) return error(f, VORBIS_outofmem); - for (j=0; j < (int) c->lookup_values; ++j) { - int q = get_bits(f, c->value_bits); - if (q == EOP) { setup_temp_free(f,mults,sizeof(mults[0])*c->lookup_values); return error(f, VORBIS_invalid_setup); } - mults[j] = q; - } - -#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK - if (c->lookup_type == 1) { - int len, sparse = c->sparse; - float last=0; - // pre-expand the lookup1-style multiplicands, to avoid a divide in the inner loop - if (sparse) { - if (c->sorted_entries == 0) goto skip; - c->multiplicands = (codetype *) setup_malloc(f, sizeof(c->multiplicands[0]) * c->sorted_entries * c->dimensions); - } else - c->multiplicands = (codetype *) setup_malloc(f, sizeof(c->multiplicands[0]) * c->entries * c->dimensions); - if (c->multiplicands == NULL) { setup_temp_free(f,mults,sizeof(mults[0])*c->lookup_values); return error(f, VORBIS_outofmem); } - len = sparse ? c->sorted_entries : c->entries; - for (j=0; j < len; ++j) { - unsigned int z = sparse ? c->sorted_values[j] : j; - unsigned int div=1; - for (k=0; k < c->dimensions; ++k) { - int off = (z / div) % c->lookup_values; - float val = mults[off]*c->delta_value + c->minimum_value + last; - c->multiplicands[j*c->dimensions + k] = val; - if (c->sequence_p) - last = val; - if (k+1 < c->dimensions) { - if (div > UINT_MAX / (unsigned int) c->lookup_values) { - setup_temp_free(f, mults,sizeof(mults[0])*c->lookup_values); - return error(f, VORBIS_invalid_setup); - } - div *= c->lookup_values; - } - } - } - c->lookup_type = 2; - } - else -#endif - { - float last=0; - CHECK(f); - c->multiplicands = (codetype *) setup_malloc(f, sizeof(c->multiplicands[0]) * c->lookup_values); - if (c->multiplicands == NULL) { setup_temp_free(f, mults,sizeof(mults[0])*c->lookup_values); return error(f, VORBIS_outofmem); } - for (j=0; j < (int) c->lookup_values; ++j) { - float val = mults[j] * c->delta_value + c->minimum_value + last; - c->multiplicands[j] = val; - if (c->sequence_p) - last = val; - } - } -#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK - skip:; -#endif - setup_temp_free(f, mults, sizeof(mults[0])*c->lookup_values); - - CHECK(f); - } - CHECK(f); - } - - // time domain transfers (notused) - - x = get_bits(f, 6) + 1; - for (i=0; i < x; ++i) { - uint32 z = get_bits(f, 16); - if (z != 0) return error(f, VORBIS_invalid_setup); - } - - // Floors - f->floor_count = get_bits(f, 6)+1; - f->floor_config = (Floor *) setup_malloc(f, f->floor_count * sizeof(*f->floor_config)); - if (f->floor_config == NULL) return error(f, VORBIS_outofmem); - for (i=0; i < f->floor_count; ++i) { - f->floor_types[i] = get_bits(f, 16); - if (f->floor_types[i] > 1) return error(f, VORBIS_invalid_setup); - if (f->floor_types[i] == 0) { - Floor0 *g = &f->floor_config[i].floor0; - g->order = get_bits(f,8); - g->rate = get_bits(f,16); - g->bark_map_size = get_bits(f,16); - g->amplitude_bits = get_bits(f,6); - g->amplitude_offset = get_bits(f,8); - g->number_of_books = get_bits(f,4) + 1; - for (j=0; j < g->number_of_books; ++j) - g->book_list[j] = get_bits(f,8); - return error(f, VORBIS_feature_not_supported); - } else { - stbv__floor_ordering p[31*8+2]; - Floor1 *g = &f->floor_config[i].floor1; - int max_class = -1; - g->partitions = get_bits(f, 5); - for (j=0; j < g->partitions; ++j) { - g->partition_class_list[j] = get_bits(f, 4); - if (g->partition_class_list[j] > max_class) - max_class = g->partition_class_list[j]; - } - for (j=0; j <= max_class; ++j) { - g->class_dimensions[j] = get_bits(f, 3)+1; - g->class_subclasses[j] = get_bits(f, 2); - if (g->class_subclasses[j]) { - g->class_masterbooks[j] = get_bits(f, 8); - if (g->class_masterbooks[j] >= f->codebook_count) return error(f, VORBIS_invalid_setup); - } - for (k=0; k < 1 << g->class_subclasses[j]; ++k) { - g->subclass_books[j][k] = (int16)get_bits(f,8)-1; - if (g->subclass_books[j][k] >= f->codebook_count) return error(f, VORBIS_invalid_setup); - } - } - g->floor1_multiplier = get_bits(f,2)+1; - g->rangebits = get_bits(f,4); - g->Xlist[0] = 0; - g->Xlist[1] = 1 << g->rangebits; - g->values = 2; - for (j=0; j < g->partitions; ++j) { - int c = g->partition_class_list[j]; - for (k=0; k < g->class_dimensions[c]; ++k) { - g->Xlist[g->values] = get_bits(f, g->rangebits); - ++g->values; - } - } - // precompute the sorting - for (j=0; j < g->values; ++j) { - p[j].x = g->Xlist[j]; - p[j].id = j; - } - qsort(p, g->values, sizeof(p[0]), point_compare); - for (j=0; j < g->values-1; ++j) - if (p[j].x == p[j+1].x) - return error(f, VORBIS_invalid_setup); - for (j=0; j < g->values; ++j) - g->sorted_order[j] = (uint8) p[j].id; - // precompute the neighbors - for (j=2; j < g->values; ++j) { - int low = 0,hi = 0; - neighbors(g->Xlist, j, &low,&hi); - g->neighbors[j][0] = low; - g->neighbors[j][1] = hi; - } - - if (g->values > longest_floorlist) - longest_floorlist = g->values; - } - } - - // Residue - f->residue_count = get_bits(f, 6)+1; - f->residue_config = (Residue *) setup_malloc(f, f->residue_count * sizeof(f->residue_config[0])); - if (f->residue_config == NULL) return error(f, VORBIS_outofmem); - memset(f->residue_config, 0, f->residue_count * sizeof(f->residue_config[0])); - for (i=0; i < f->residue_count; ++i) { - uint8 residue_cascade[64]; - Residue *r = f->residue_config+i; - f->residue_types[i] = get_bits(f, 16); - if (f->residue_types[i] > 2) return error(f, VORBIS_invalid_setup); - r->begin = get_bits(f, 24); - r->end = get_bits(f, 24); - if (r->end < r->begin) return error(f, VORBIS_invalid_setup); - r->part_size = get_bits(f,24)+1; - r->classifications = get_bits(f,6)+1; - r->classbook = get_bits(f,8); - if (r->classbook >= f->codebook_count) return error(f, VORBIS_invalid_setup); - for (j=0; j < r->classifications; ++j) { - uint8 high_bits=0; - uint8 low_bits=get_bits(f,3); - if (get_bits(f,1)) - high_bits = get_bits(f,5); - residue_cascade[j] = high_bits*8 + low_bits; - } - r->residue_books = (short (*)[8]) setup_malloc(f, sizeof(r->residue_books[0]) * r->classifications); - if (r->residue_books == NULL) return error(f, VORBIS_outofmem); - for (j=0; j < r->classifications; ++j) { - for (k=0; k < 8; ++k) { - if (residue_cascade[j] & (1 << k)) { - r->residue_books[j][k] = get_bits(f, 8); - if (r->residue_books[j][k] >= f->codebook_count) return error(f, VORBIS_invalid_setup); - } else { - r->residue_books[j][k] = -1; - } - } - } - // precompute the classifications[] array to avoid inner-loop mod/divide - // call it 'classdata' since we already have r->classifications - r->classdata = (uint8 **) setup_malloc(f, sizeof(*r->classdata) * f->codebooks[r->classbook].entries); - if (!r->classdata) return error(f, VORBIS_outofmem); - memset(r->classdata, 0, sizeof(*r->classdata) * f->codebooks[r->classbook].entries); - for (j=0; j < f->codebooks[r->classbook].entries; ++j) { - int classwords = f->codebooks[r->classbook].dimensions; - int temp = j; - r->classdata[j] = (uint8 *) setup_malloc(f, sizeof(r->classdata[j][0]) * classwords); - if (r->classdata[j] == NULL) return error(f, VORBIS_outofmem); - for (k=classwords-1; k >= 0; --k) { - r->classdata[j][k] = temp % r->classifications; - temp /= r->classifications; - } - } - } - - f->mapping_count = get_bits(f,6)+1; - f->mapping = (Mapping *) setup_malloc(f, f->mapping_count * sizeof(*f->mapping)); - if (f->mapping == NULL) return error(f, VORBIS_outofmem); - memset(f->mapping, 0, f->mapping_count * sizeof(*f->mapping)); - for (i=0; i < f->mapping_count; ++i) { - Mapping *m = f->mapping + i; - int mapping_type = get_bits(f,16); - if (mapping_type != 0) return error(f, VORBIS_invalid_setup); - m->chan = (MappingChannel *) setup_malloc(f, f->channels * sizeof(*m->chan)); - if (m->chan == NULL) return error(f, VORBIS_outofmem); - if (get_bits(f,1)) - m->submaps = get_bits(f,4)+1; - else - m->submaps = 1; - if (m->submaps > max_submaps) - max_submaps = m->submaps; - if (get_bits(f,1)) { - m->coupling_steps = get_bits(f,8)+1; - if (m->coupling_steps > f->channels) return error(f, VORBIS_invalid_setup); - for (k=0; k < m->coupling_steps; ++k) { - m->chan[k].magnitude = get_bits(f, ilog(f->channels-1)); - m->chan[k].angle = get_bits(f, ilog(f->channels-1)); - if (m->chan[k].magnitude >= f->channels) return error(f, VORBIS_invalid_setup); - if (m->chan[k].angle >= f->channels) return error(f, VORBIS_invalid_setup); - if (m->chan[k].magnitude == m->chan[k].angle) return error(f, VORBIS_invalid_setup); - } - } else - m->coupling_steps = 0; - - // reserved field - if (get_bits(f,2)) return error(f, VORBIS_invalid_setup); - if (m->submaps > 1) { - for (j=0; j < f->channels; ++j) { - m->chan[j].mux = get_bits(f, 4); - if (m->chan[j].mux >= m->submaps) return error(f, VORBIS_invalid_setup); - } - } else - // @SPECIFICATION: this case is missing from the spec - for (j=0; j < f->channels; ++j) - m->chan[j].mux = 0; - - for (j=0; j < m->submaps; ++j) { - get_bits(f,8); // discard - m->submap_floor[j] = get_bits(f,8); - m->submap_residue[j] = get_bits(f,8); - if (m->submap_floor[j] >= f->floor_count) return error(f, VORBIS_invalid_setup); - if (m->submap_residue[j] >= f->residue_count) return error(f, VORBIS_invalid_setup); - } - } - - // Modes - f->mode_count = get_bits(f, 6)+1; - for (i=0; i < f->mode_count; ++i) { - Mode *m = f->mode_config+i; - m->blockflag = get_bits(f,1); - m->windowtype = get_bits(f,16); - m->transformtype = get_bits(f,16); - m->mapping = get_bits(f,8); - if (m->windowtype != 0) return error(f, VORBIS_invalid_setup); - if (m->transformtype != 0) return error(f, VORBIS_invalid_setup); - if (m->mapping >= f->mapping_count) return error(f, VORBIS_invalid_setup); - } - - flush_packet(f); - - f->previous_length = 0; - - for (i=0; i < f->channels; ++i) { - f->channel_buffers[i] = (float *) setup_malloc(f, sizeof(float) * f->blocksize_1); - f->previous_window[i] = (float *) setup_malloc(f, sizeof(float) * f->blocksize_1/2); - f->finalY[i] = (int16 *) setup_malloc(f, sizeof(int16) * longest_floorlist); - if (f->channel_buffers[i] == NULL || f->previous_window[i] == NULL || f->finalY[i] == NULL) return error(f, VORBIS_outofmem); - memset(f->channel_buffers[i], 0, sizeof(float) * f->blocksize_1); - #ifdef STB_VORBIS_NO_DEFER_FLOOR - f->floor_buffers[i] = (float *) setup_malloc(f, sizeof(float) * f->blocksize_1/2); - if (f->floor_buffers[i] == NULL) return error(f, VORBIS_outofmem); - #endif - } - - if (!init_blocksize(f, 0, f->blocksize_0)) return FALSE; - if (!init_blocksize(f, 1, f->blocksize_1)) return FALSE; - f->blocksize[0] = f->blocksize_0; - f->blocksize[1] = f->blocksize_1; - -#ifdef STB_VORBIS_DIVIDE_TABLE - if (integer_divide_table[1][1]==0) - for (i=0; i < DIVTAB_NUMER; ++i) - for (j=1; j < DIVTAB_DENOM; ++j) - integer_divide_table[i][j] = i / j; -#endif - - // compute how much temporary memory is needed - - // 1. - { - uint32 imdct_mem = (f->blocksize_1 * sizeof(float) >> 1); - uint32 classify_mem; - int i,max_part_read=0; - for (i=0; i < f->residue_count; ++i) { - Residue *r = f->residue_config + i; - unsigned int actual_size = f->blocksize_1 / 2; - unsigned int limit_r_begin = r->begin < actual_size ? r->begin : actual_size; - unsigned int limit_r_end = r->end < actual_size ? r->end : actual_size; - int n_read = limit_r_end - limit_r_begin; - int part_read = n_read / r->part_size; - if (part_read > max_part_read) - max_part_read = part_read; - } - #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE - classify_mem = f->channels * (sizeof(void*) + max_part_read * sizeof(uint8 *)); - #else - classify_mem = f->channels * (sizeof(void*) + max_part_read * sizeof(int *)); - #endif - - // maximum reasonable partition size is f->blocksize_1 - - f->temp_memory_required = classify_mem; - if (imdct_mem > f->temp_memory_required) - f->temp_memory_required = imdct_mem; - } - - - if (f->alloc.alloc_buffer) { - assert(f->temp_offset == f->alloc.alloc_buffer_length_in_bytes); - // check if there's enough temp memory so we don't error later - if (f->setup_offset + sizeof(*f) + f->temp_memory_required > (unsigned) f->temp_offset) - return error(f, VORBIS_outofmem); - } - - // @TODO: stb_vorbis_seek_start expects first_audio_page_offset to point to a page - // without PAGEFLAG_continued_packet, so this either points to the first page, or - // the page after the end of the headers. It might be cleaner to point to a page - // in the middle of the headers, when that's the page where the first audio packet - // starts, but we'd have to also correctly skip the end of any continued packet in - // stb_vorbis_seek_start. - if (f->next_seg == -1) { - f->first_audio_page_offset = stb_vorbis_get_file_offset(f); - } else { - f->first_audio_page_offset = 0; - } - - return TRUE; -} - -static void vorbis_deinit(stb_vorbis *p) -{ - int i,j; - - setup_free(p, p->vendor); - for (i=0; i < p->comment_list_length; ++i) { - setup_free(p, p->comment_list[i]); - } - setup_free(p, p->comment_list); - - if (p->residue_config) { - for (i=0; i < p->residue_count; ++i) { - Residue *r = p->residue_config+i; - if (r->classdata) { - for (j=0; j < p->codebooks[r->classbook].entries; ++j) - setup_free(p, r->classdata[j]); - setup_free(p, r->classdata); - } - setup_free(p, r->residue_books); - } - } - - if (p->codebooks) { - CHECK(p); - for (i=0; i < p->codebook_count; ++i) { - Codebook *c = p->codebooks + i; - setup_free(p, c->codeword_lengths); - setup_free(p, c->multiplicands); - setup_free(p, c->codewords); - setup_free(p, c->sorted_codewords); - // c->sorted_values[-1] is the first entry in the array - setup_free(p, c->sorted_values ? c->sorted_values-1 : NULL); - } - setup_free(p, p->codebooks); - } - setup_free(p, p->floor_config); - setup_free(p, p->residue_config); - if (p->mapping) { - for (i=0; i < p->mapping_count; ++i) - setup_free(p, p->mapping[i].chan); - setup_free(p, p->mapping); - } - CHECK(p); - for (i=0; i < p->channels && i < STB_VORBIS_MAX_CHANNELS; ++i) { - setup_free(p, p->channel_buffers[i]); - setup_free(p, p->previous_window[i]); - #ifdef STB_VORBIS_NO_DEFER_FLOOR - setup_free(p, p->floor_buffers[i]); - #endif - setup_free(p, p->finalY[i]); - } - for (i=0; i < 2; ++i) { - setup_free(p, p->A[i]); - setup_free(p, p->B[i]); - setup_free(p, p->C[i]); - setup_free(p, p->window[i]); - setup_free(p, p->bit_reverse[i]); - } - #ifndef STB_VORBIS_NO_STDIO - if (p->close_on_free) fclose(p->f); - #endif -} - -void stb_vorbis_close(stb_vorbis *p) -{ - if (p == NULL) return; - vorbis_deinit(p); - setup_free(p,p); -} - -static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z) -{ - memset(p, 0, sizeof(*p)); // NULL out all malloc'd pointers to start - if (z) { - p->alloc = *z; - p->alloc.alloc_buffer_length_in_bytes &= ~7; - p->temp_offset = p->alloc.alloc_buffer_length_in_bytes; - } - p->eof = 0; - p->error = VORBIS__no_error; - p->stream = NULL; - p->codebooks = NULL; - p->page_crc_tests = -1; - #ifndef STB_VORBIS_NO_STDIO - p->close_on_free = FALSE; - p->f = NULL; - #endif -} - -int stb_vorbis_get_sample_offset(stb_vorbis *f) -{ - if (f->current_loc_valid) - return f->current_loc; - else - return -1; -} - -stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f) -{ - stb_vorbis_info d; - d.channels = f->channels; - d.sample_rate = f->sample_rate; - d.setup_memory_required = f->setup_memory_required; - d.setup_temp_memory_required = f->setup_temp_memory_required; - d.temp_memory_required = f->temp_memory_required; - d.max_frame_size = f->blocksize_1 >> 1; - return d; -} - -stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f) -{ - stb_vorbis_comment d; - d.vendor = f->vendor; - d.comment_list_length = f->comment_list_length; - d.comment_list = f->comment_list; - return d; -} - -int stb_vorbis_get_error(stb_vorbis *f) -{ - int e = f->error; - f->error = VORBIS__no_error; - return e; -} - -static stb_vorbis * vorbis_alloc(stb_vorbis *f) -{ - stb_vorbis *p = (stb_vorbis *) setup_malloc(f, sizeof(*p)); - return p; -} - -#ifndef STB_VORBIS_NO_PUSHDATA_API - -void stb_vorbis_flush_pushdata(stb_vorbis *f) -{ - f->previous_length = 0; - f->page_crc_tests = 0; - f->discard_samples_deferred = 0; - f->current_loc_valid = FALSE; - f->first_decode = FALSE; - f->samples_output = 0; - f->channel_buffer_start = 0; - f->channel_buffer_end = 0; -} - -static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len) -{ - int i,n; - for (i=0; i < f->page_crc_tests; ++i) - f->scan[i].bytes_done = 0; - - // if we have room for more scans, search for them first, because - // they may cause us to stop early if their header is incomplete - if (f->page_crc_tests < STB_VORBIS_PUSHDATA_CRC_COUNT) { - if (data_len < 4) return 0; - data_len -= 3; // need to look for 4-byte sequence, so don't miss - // one that straddles a boundary - for (i=0; i < data_len; ++i) { - if (data[i] == 0x4f) { - if (0==memcmp(data+i, ogg_page_header, 4)) { - int j,len; - uint32 crc; - // make sure we have the whole page header - if (i+26 >= data_len || i+27+data[i+26] >= data_len) { - // only read up to this page start, so hopefully we'll - // have the whole page header start next time - data_len = i; - break; - } - // ok, we have it all; compute the length of the page - len = 27 + data[i+26]; - for (j=0; j < data[i+26]; ++j) - len += data[i+27+j]; - // scan everything up to the embedded crc (which we must 0) - crc = 0; - for (j=0; j < 22; ++j) - crc = crc32_update(crc, data[i+j]); - // now process 4 0-bytes - for ( ; j < 26; ++j) - crc = crc32_update(crc, 0); - // len is the total number of bytes we need to scan - n = f->page_crc_tests++; - f->scan[n].bytes_left = len-j; - f->scan[n].crc_so_far = crc; - f->scan[n].goal_crc = data[i+22] + (data[i+23] << 8) + (data[i+24]<<16) + (data[i+25]<<24); - // if the last frame on a page is continued to the next, then - // we can't recover the sample_loc immediately - if (data[i+27+data[i+26]-1] == 255) - f->scan[n].sample_loc = ~0; - else - f->scan[n].sample_loc = data[i+6] + (data[i+7] << 8) + (data[i+ 8]<<16) + (data[i+ 9]<<24); - f->scan[n].bytes_done = i+j; - if (f->page_crc_tests == STB_VORBIS_PUSHDATA_CRC_COUNT) - break; - // keep going if we still have room for more - } - } - } - } - - for (i=0; i < f->page_crc_tests;) { - uint32 crc; - int j; - int n = f->scan[i].bytes_done; - int m = f->scan[i].bytes_left; - if (m > data_len - n) m = data_len - n; - // m is the bytes to scan in the current chunk - crc = f->scan[i].crc_so_far; - for (j=0; j < m; ++j) - crc = crc32_update(crc, data[n+j]); - f->scan[i].bytes_left -= m; - f->scan[i].crc_so_far = crc; - if (f->scan[i].bytes_left == 0) { - // does it match? - if (f->scan[i].crc_so_far == f->scan[i].goal_crc) { - // Houston, we have page - data_len = n+m; // consumption amount is wherever that scan ended - f->page_crc_tests = -1; // drop out of page scan mode - f->previous_length = 0; // decode-but-don't-output one frame - f->next_seg = -1; // start a new page - f->current_loc = f->scan[i].sample_loc; // set the current sample location - // to the amount we'd have decoded had we decoded this page - f->current_loc_valid = f->current_loc != ~0U; - return data_len; - } - // delete entry - f->scan[i] = f->scan[--f->page_crc_tests]; - } else { - ++i; - } - } - - return data_len; -} - -// return value: number of bytes we used -int stb_vorbis_decode_frame_pushdata( - stb_vorbis *f, // the file we're decoding - const uint8 *data, int data_len, // the memory available for decoding - int *channels, // place to write number of float * buffers - float ***output, // place to write float ** array of float * buffers - int *samples // place to write number of output samples - ) -{ - int i; - int len,right,left; - - if (!IS_PUSH_MODE(f)) return error(f, VORBIS_invalid_api_mixing); - - if (f->page_crc_tests >= 0) { - *samples = 0; - return vorbis_search_for_page_pushdata(f, (uint8 *) data, data_len); - } - - f->stream = (uint8 *) data; - f->stream_end = (uint8 *) data + data_len; - f->error = VORBIS__no_error; - - // check that we have the entire packet in memory - if (!is_whole_packet_present(f)) { - *samples = 0; - return 0; - } - - if (!vorbis_decode_packet(f, &len, &left, &right)) { - // save the actual error we encountered - enum STBVorbisError error = f->error; - if (error == VORBIS_bad_packet_type) { - // flush and resynch - f->error = VORBIS__no_error; - while (get8_packet(f) != EOP) - if (f->eof) break; - *samples = 0; - return (int) (f->stream - data); - } - if (error == VORBIS_continued_packet_flag_invalid) { - if (f->previous_length == 0) { - // we may be resynching, in which case it's ok to hit one - // of these; just discard the packet - f->error = VORBIS__no_error; - while (get8_packet(f) != EOP) - if (f->eof) break; - *samples = 0; - return (int) (f->stream - data); - } - } - // if we get an error while parsing, what to do? - // well, it DEFINITELY won't work to continue from where we are! - stb_vorbis_flush_pushdata(f); - // restore the error that actually made us bail - f->error = error; - *samples = 0; - return 1; - } - - // success! - len = vorbis_finish_frame(f, len, left, right); - for (i=0; i < f->channels; ++i) - f->outputs[i] = f->channel_buffers[i] + left; - - if (channels) *channels = f->channels; - *samples = len; - *output = f->outputs; - return (int) (f->stream - data); -} - -stb_vorbis *stb_vorbis_open_pushdata( - const unsigned char *data, int data_len, // the memory available for decoding - int *data_used, // only defined if result is not NULL - int *error, const stb_vorbis_alloc *alloc) -{ - stb_vorbis *f, p; - vorbis_init(&p, alloc); - p.stream = (uint8 *) data; - p.stream_end = (uint8 *) data + data_len; - p.push_mode = TRUE; - if (!start_decoder(&p)) { - if (p.eof) - *error = VORBIS_need_more_data; - else - *error = p.error; - vorbis_deinit(&p); - return NULL; - } - f = vorbis_alloc(&p); - if (f) { - *f = p; - *data_used = (int) (f->stream - data); - *error = 0; - return f; - } else { - vorbis_deinit(&p); - return NULL; - } -} -#endif // STB_VORBIS_NO_PUSHDATA_API - -unsigned int stb_vorbis_get_file_offset(stb_vorbis *f) -{ - #ifndef STB_VORBIS_NO_PUSHDATA_API - if (f->push_mode) return 0; - #endif - if (USE_MEMORY(f)) return (unsigned int) (f->stream - f->stream_start); - #ifndef STB_VORBIS_NO_STDIO - return (unsigned int) (ftell(f->f) - f->f_start); - #endif -} - -#ifndef STB_VORBIS_NO_PULLDATA_API -// -// DATA-PULLING API -// - -static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last) -{ - for(;;) { - int n; - if (f->eof) return 0; - n = get8(f); - if (n == 0x4f) { // page header candidate - unsigned int retry_loc = stb_vorbis_get_file_offset(f); - int i; - // check if we're off the end of a file_section stream - if (retry_loc - 25 > f->stream_len) - return 0; - // check the rest of the header - for (i=1; i < 4; ++i) - if (get8(f) != ogg_page_header[i]) - break; - if (f->eof) return 0; - if (i == 4) { - uint8 header[27]; - uint32 i, crc, goal, len; - for (i=0; i < 4; ++i) - header[i] = ogg_page_header[i]; - for (; i < 27; ++i) - header[i] = get8(f); - if (f->eof) return 0; - if (header[4] != 0) goto invalid; - goal = header[22] + (header[23] << 8) + (header[24]<<16) + ((uint32)header[25]<<24); - for (i=22; i < 26; ++i) - header[i] = 0; - crc = 0; - for (i=0; i < 27; ++i) - crc = crc32_update(crc, header[i]); - len = 0; - for (i=0; i < header[26]; ++i) { - int s = get8(f); - crc = crc32_update(crc, s); - len += s; - } - if (len && f->eof) return 0; - for (i=0; i < len; ++i) - crc = crc32_update(crc, get8(f)); - // finished parsing probable page - if (crc == goal) { - // we could now check that it's either got the last - // page flag set, OR it's followed by the capture - // pattern, but I guess TECHNICALLY you could have - // a file with garbage between each ogg page and recover - // from it automatically? So even though that paranoia - // might decrease the chance of an invalid decode by - // another 2^32, not worth it since it would hose those - // invalid-but-useful files? - if (end) - *end = stb_vorbis_get_file_offset(f); - if (last) { - if (header[5] & 0x04) - *last = 1; - else - *last = 0; - } - set_file_offset(f, retry_loc-1); - return 1; - } - } - invalid: - // not a valid page, so rewind and look for next one - set_file_offset(f, retry_loc); - } - } -} - - -#define SAMPLE_unknown 0xffffffff - -// seeking is implemented with a binary search, which narrows down the range to -// 64K, before using a linear search (because finding the synchronization -// pattern can be expensive, and the chance we'd find the end page again is -// relatively high for small ranges) -// -// two initial interpolation-style probes are used at the start of the search -// to try to bound either side of the binary search sensibly, while still -// working in O(log n) time if they fail. - -static int get_seek_page_info(stb_vorbis *f, ProbedPage *z) -{ - uint8 header[27], lacing[255]; - int i,len; - - // record where the page starts - z->page_start = stb_vorbis_get_file_offset(f); - - // parse the header - getn(f, header, 27); - if (header[0] != 'O' || header[1] != 'g' || header[2] != 'g' || header[3] != 'S') - return 0; - getn(f, lacing, header[26]); - - // determine the length of the payload - len = 0; - for (i=0; i < header[26]; ++i) - len += lacing[i]; - - // this implies where the page ends - z->page_end = z->page_start + 27 + header[26] + len; - - // read the last-decoded sample out of the data - z->last_decoded_sample = header[6] + (header[7] << 8) + (header[8] << 16) + (header[9] << 24); - - // restore file state to where we were - set_file_offset(f, z->page_start); - return 1; -} - -// rarely used function to seek back to the preceding page while finding the -// start of a packet -static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset) -{ - unsigned int previous_safe, end; - - // now we want to seek back 64K from the limit - if (limit_offset >= 65536 && limit_offset-65536 >= f->first_audio_page_offset) - previous_safe = limit_offset - 65536; - else - previous_safe = f->first_audio_page_offset; - - set_file_offset(f, previous_safe); - - while (vorbis_find_page(f, &end, NULL)) { - if (end >= limit_offset && stb_vorbis_get_file_offset(f) < limit_offset) - return 1; - set_file_offset(f, end); - } - - return 0; -} - -// implements the search logic for finding a page and starting decoding. if -// the function succeeds, current_loc_valid will be true and current_loc will -// be less than or equal to the provided sample number (the closer the -// better). -static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number) -{ - ProbedPage left, right, mid; - int i, start_seg_with_known_loc, end_pos, page_start; - uint32 delta, stream_length, padding, last_sample_limit; - double offset = 0.0, bytes_per_sample = 0.0; - int probe = 0; - - // find the last page and validate the target sample - stream_length = stb_vorbis_stream_length_in_samples(f); - if (stream_length == 0) return error(f, VORBIS_seek_without_length); - if (sample_number > stream_length) return error(f, VORBIS_seek_invalid); - - // this is the maximum difference between the window-center (which is the - // actual granule position value), and the right-start (which the spec - // indicates should be the granule position (give or take one)). - padding = ((f->blocksize_1 - f->blocksize_0) >> 2); - if (sample_number < padding) - last_sample_limit = 0; - else - last_sample_limit = sample_number - padding; - - left = f->p_first; - while (left.last_decoded_sample == ~0U) { - // (untested) the first page does not have a 'last_decoded_sample' - set_file_offset(f, left.page_end); - if (!get_seek_page_info(f, &left)) goto error; - } - - right = f->p_last; - assert(right.last_decoded_sample != ~0U); - - // starting from the start is handled differently - if (last_sample_limit <= left.last_decoded_sample) { - if (stb_vorbis_seek_start(f)) { - if (f->current_loc > sample_number) - return error(f, VORBIS_seek_failed); - return 1; - } - return 0; - } - - while (left.page_end != right.page_start) { - assert(left.page_end < right.page_start); - // search range in bytes - delta = right.page_start - left.page_end; - if (delta <= 65536) { - // there's only 64K left to search - handle it linearly - set_file_offset(f, left.page_end); - } else { - if (probe < 2) { - if (probe == 0) { - // first probe (interpolate) - double data_bytes = right.page_end - left.page_start; - bytes_per_sample = data_bytes / right.last_decoded_sample; - offset = left.page_start + bytes_per_sample * (last_sample_limit - left.last_decoded_sample); - } else { - // second probe (try to bound the other side) - double error = ((double) last_sample_limit - mid.last_decoded_sample) * bytes_per_sample; - if (error >= 0 && error < 8000) error = 8000; - if (error < 0 && error > -8000) error = -8000; - offset += error * 2; - } - - // ensure the offset is valid - if (offset < left.page_end) - offset = left.page_end; - if (offset > right.page_start - 65536) - offset = right.page_start - 65536; - - set_file_offset(f, (unsigned int) offset); - } else { - // binary search for large ranges (offset by 32K to ensure - // we don't hit the right page) - set_file_offset(f, left.page_end + (delta / 2) - 32768); - } - - if (!vorbis_find_page(f, NULL, NULL)) goto error; - } - - for (;;) { - if (!get_seek_page_info(f, &mid)) goto error; - if (mid.last_decoded_sample != ~0U) break; - // (untested) no frames end on this page - set_file_offset(f, mid.page_end); - assert(mid.page_start < right.page_start); - } - - // if we've just found the last page again then we're in a tricky file, - // and we're close enough (if it wasn't an interpolation probe). - if (mid.page_start == right.page_start) { - if (probe >= 2 || delta <= 65536) - break; - } else { - if (last_sample_limit < mid.last_decoded_sample) - right = mid; - else - left = mid; - } - - ++probe; - } - - // seek back to start of the last packet - page_start = left.page_start; - set_file_offset(f, page_start); - if (!start_page(f)) return error(f, VORBIS_seek_failed); - end_pos = f->end_seg_with_known_loc; - assert(end_pos >= 0); - - for (;;) { - for (i = end_pos; i > 0; --i) - if (f->segments[i-1] != 255) - break; - - start_seg_with_known_loc = i; - - if (start_seg_with_known_loc > 0 || !(f->page_flag & PAGEFLAG_continued_packet)) - break; - - // (untested) the final packet begins on an earlier page - if (!go_to_page_before(f, page_start)) - goto error; - - page_start = stb_vorbis_get_file_offset(f); - if (!start_page(f)) goto error; - end_pos = f->segment_count - 1; - } - - // prepare to start decoding - f->current_loc_valid = FALSE; - f->last_seg = FALSE; - f->valid_bits = 0; - f->packet_bytes = 0; - f->bytes_in_seg = 0; - f->previous_length = 0; - f->next_seg = start_seg_with_known_loc; - - for (i = 0; i < start_seg_with_known_loc; i++) - skip(f, f->segments[i]); - - // start decoding (optimizable - this frame is generally discarded) - if (!vorbis_pump_first_frame(f)) - return 0; - if (f->current_loc > sample_number) - return error(f, VORBIS_seek_failed); - return 1; - -error: - // try to restore the file to a valid state - stb_vorbis_seek_start(f); - return error(f, VORBIS_seek_failed); -} - -// the same as vorbis_decode_initial, but without advancing -static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode) -{ - int bits_read, bytes_read; - - if (!vorbis_decode_initial(f, p_left_start, p_left_end, p_right_start, p_right_end, mode)) - return 0; - - // either 1 or 2 bytes were read, figure out which so we can rewind - bits_read = 1 + ilog(f->mode_count-1); - if (f->mode_config[*mode].blockflag) - bits_read += 2; - bytes_read = (bits_read + 7) / 8; - - f->bytes_in_seg += bytes_read; - f->packet_bytes -= bytes_read; - skip(f, -bytes_read); - if (f->next_seg == -1) - f->next_seg = f->segment_count - 1; - else - f->next_seg--; - f->valid_bits = 0; - - return 1; -} - -int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number) -{ - uint32 max_frame_samples; - - if (IS_PUSH_MODE(f)) return error(f, VORBIS_invalid_api_mixing); - - // fast page-level search - if (!seek_to_sample_coarse(f, sample_number)) - return 0; - - assert(f->current_loc_valid); - assert(f->current_loc <= sample_number); - - // linear search for the relevant packet - max_frame_samples = (f->blocksize_1*3 - f->blocksize_0) >> 2; - while (f->current_loc < sample_number) { - int left_start, left_end, right_start, right_end, mode, frame_samples; - if (!peek_decode_initial(f, &left_start, &left_end, &right_start, &right_end, &mode)) - return error(f, VORBIS_seek_failed); - // calculate the number of samples returned by the next frame - frame_samples = right_start - left_start; - if (f->current_loc + frame_samples > sample_number) { - return 1; // the next frame will contain the sample - } else if (f->current_loc + frame_samples + max_frame_samples > sample_number) { - // there's a chance the frame after this could contain the sample - vorbis_pump_first_frame(f); - } else { - // this frame is too early to be relevant - f->current_loc += frame_samples; - f->previous_length = 0; - maybe_start_packet(f); - flush_packet(f); - } - } - // the next frame should start with the sample - if (f->current_loc != sample_number) return error(f, VORBIS_seek_failed); - return 1; -} - -int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number) -{ - if (!stb_vorbis_seek_frame(f, sample_number)) - return 0; - - if (sample_number != f->current_loc) { - int n; - uint32 frame_start = f->current_loc; - stb_vorbis_get_frame_float(f, &n, NULL); - assert(sample_number > frame_start); - assert(f->channel_buffer_start + (int) (sample_number-frame_start) <= f->channel_buffer_end); - f->channel_buffer_start += (sample_number - frame_start); - } - - return 1; -} - -int stb_vorbis_seek_start(stb_vorbis *f) -{ - if (IS_PUSH_MODE(f)) { return error(f, VORBIS_invalid_api_mixing); } - set_file_offset(f, f->first_audio_page_offset); - f->previous_length = 0; - f->first_decode = TRUE; - f->next_seg = -1; - return vorbis_pump_first_frame(f); -} - -unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f) -{ - unsigned int restore_offset, previous_safe; - unsigned int end, last_page_loc; - - if (IS_PUSH_MODE(f)) return error(f, VORBIS_invalid_api_mixing); - if (!f->total_samples) { - unsigned int last; - uint32 lo,hi; - char header[6]; - - // first, store the current decode position so we can restore it - restore_offset = stb_vorbis_get_file_offset(f); - - // now we want to seek back 64K from the end (the last page must - // be at most a little less than 64K, but let's allow a little slop) - if (f->stream_len >= 65536 && f->stream_len-65536 >= f->first_audio_page_offset) - previous_safe = f->stream_len - 65536; - else - previous_safe = f->first_audio_page_offset; - - set_file_offset(f, previous_safe); - // previous_safe is now our candidate 'earliest known place that seeking - // to will lead to the final page' - - if (!vorbis_find_page(f, &end, &last)) { - // if we can't find a page, we're hosed! - f->error = VORBIS_cant_find_last_page; - f->total_samples = 0xffffffff; - goto done; - } - - // check if there are more pages - last_page_loc = stb_vorbis_get_file_offset(f); - - // stop when the last_page flag is set, not when we reach eof; - // this allows us to stop short of a 'file_section' end without - // explicitly checking the length of the section - while (!last) { - set_file_offset(f, end); - if (!vorbis_find_page(f, &end, &last)) { - // the last page we found didn't have the 'last page' flag - // set. whoops! - break; - } - //previous_safe = last_page_loc+1; // NOTE: not used after this point, but note for debugging - last_page_loc = stb_vorbis_get_file_offset(f); - } - - set_file_offset(f, last_page_loc); - - // parse the header - getn(f, (unsigned char *)header, 6); - // extract the absolute granule position - lo = get32(f); - hi = get32(f); - if (lo == 0xffffffff && hi == 0xffffffff) { - f->error = VORBIS_cant_find_last_page; - f->total_samples = SAMPLE_unknown; - goto done; - } - if (hi) - lo = 0xfffffffe; // saturate - f->total_samples = lo; - - f->p_last.page_start = last_page_loc; - f->p_last.page_end = end; - f->p_last.last_decoded_sample = lo; - - done: - set_file_offset(f, restore_offset); - } - return f->total_samples == SAMPLE_unknown ? 0 : f->total_samples; -} - -float stb_vorbis_stream_length_in_seconds(stb_vorbis *f) -{ - return stb_vorbis_stream_length_in_samples(f) / (float) f->sample_rate; -} - - - -int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output) -{ - int len, right,left,i; - if (IS_PUSH_MODE(f)) return error(f, VORBIS_invalid_api_mixing); - - if (!vorbis_decode_packet(f, &len, &left, &right)) { - f->channel_buffer_start = f->channel_buffer_end = 0; - return 0; - } - - len = vorbis_finish_frame(f, len, left, right); - for (i=0; i < f->channels; ++i) - f->outputs[i] = f->channel_buffers[i] + left; - - f->channel_buffer_start = left; - f->channel_buffer_end = left+len; - - if (channels) *channels = f->channels; - if (output) *output = f->outputs; - return len; -} - -#ifndef STB_VORBIS_NO_STDIO - -stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length) -{ - stb_vorbis *f, p; - vorbis_init(&p, alloc); - p.f = file; - p.f_start = (uint32) ftell(file); - p.stream_len = length; - p.close_on_free = close_on_free; - if (start_decoder(&p)) { - f = vorbis_alloc(&p); - if (f) { - *f = p; - vorbis_pump_first_frame(f); - return f; - } - } - if (error) *error = p.error; - vorbis_deinit(&p); - return NULL; -} - -stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc) -{ - unsigned int len, start; - start = (unsigned int) ftell(file); - fseek(file, 0, SEEK_END); - len = (unsigned int) (ftell(file) - start); - fseek(file, start, SEEK_SET); - return stb_vorbis_open_file_section(file, close_on_free, error, alloc, len); -} - -stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc) -{ - FILE *f; -#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__) - if (0 != fopen_s(&f, filename, "rb")) - f = NULL; -#else - f = fopen(filename, "rb"); -#endif - if (f) - return stb_vorbis_open_file(f, TRUE, error, alloc); - if (error) *error = VORBIS_file_open_failure; - return NULL; -} -#endif // STB_VORBIS_NO_STDIO - -stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc) -{ - stb_vorbis *f, p; - if (!data) { - if (error) *error = VORBIS_unexpected_eof; - return NULL; - } - vorbis_init(&p, alloc); - p.stream = (uint8 *) data; - p.stream_end = (uint8 *) data + len; - p.stream_start = (uint8 *) p.stream; - p.stream_len = len; - p.push_mode = FALSE; - if (start_decoder(&p)) { - f = vorbis_alloc(&p); - if (f) { - *f = p; - vorbis_pump_first_frame(f); - if (error) *error = VORBIS__no_error; - return f; - } - } - if (error) *error = p.error; - vorbis_deinit(&p); - return NULL; -} - -#ifndef STB_VORBIS_NO_INTEGER_CONVERSION -#define PLAYBACK_MONO 1 -#define PLAYBACK_LEFT 2 -#define PLAYBACK_RIGHT 4 - -static int8 channel_position[7][6] = -{ - { 0 }, - { (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO) }, - { (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO) }, - { (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO) }, - { (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO) }, - { (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO) }, - { (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_MONO), (PLAYBACK_RIGHT | PLAYBACK_MONO), (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO) }, -}; - - -#ifndef STB_VORBIS_NO_FAST_SCALED_FLOAT - typedef union { - float f; - int i; - } float_conv; - typedef char stb_vorbis_float_size_test[sizeof(float)==4 && sizeof(int) == 4]; - #define FASTDEF(x) float_conv x - // add (1<<23) to convert to int, then divide by 2^SHIFT, then add 0.5/2^SHIFT to round - #define MAGIC(SHIFT) (1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT)) - #define ADDEND(SHIFT) (((150-SHIFT) << 23) + (1 << 22)) - #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) (temp.f = (x) + MAGIC(s), temp.i - ADDEND(s)) - #define check_endianness() -#else - #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) ((int) ((x) * (1 << (s)))) - #define check_endianness() - #define FASTDEF(x) -#endif - -static void copy_samples(short *dest, float *src, int len) -{ - int i; - check_endianness(); - for (i=0; i < len; ++i) { - FASTDEF(temp); - int v = FAST_SCALED_FLOAT_TO_INT(temp, src[i],15); - if ((unsigned int) (v + 32768) > 65535) - v = v < 0 ? -32768 : 32767; - dest[i] = v; - } -} - -static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len) -{ - #define STB_BUFFER_SIZE 32 - float buffer[STB_BUFFER_SIZE]; - int i,j,o,n = STB_BUFFER_SIZE; - check_endianness(); - for (o = 0; o < len; o += STB_BUFFER_SIZE) { - memset(buffer, 0, sizeof(buffer)); - if (o + n > len) n = len - o; - for (j=0; j < num_c; ++j) { - if (channel_position[num_c][j] & mask) { - for (i=0; i < n; ++i) - buffer[i] += data[j][d_offset+o+i]; - } - } - for (i=0; i < n; ++i) { - FASTDEF(temp); - int v = FAST_SCALED_FLOAT_TO_INT(temp,buffer[i],15); - if ((unsigned int) (v + 32768) > 65535) - v = v < 0 ? -32768 : 32767; - output[o+i] = v; - } - } - #undef STB_BUFFER_SIZE -} - -static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len) -{ - #define STB_BUFFER_SIZE 32 - float buffer[STB_BUFFER_SIZE]; - int i,j,o,n = STB_BUFFER_SIZE >> 1; - // o is the offset in the source data - check_endianness(); - for (o = 0; o < len; o += STB_BUFFER_SIZE >> 1) { - // o2 is the offset in the output data - int o2 = o << 1; - memset(buffer, 0, sizeof(buffer)); - if (o + n > len) n = len - o; - for (j=0; j < num_c; ++j) { - int m = channel_position[num_c][j] & (PLAYBACK_LEFT | PLAYBACK_RIGHT); - if (m == (PLAYBACK_LEFT | PLAYBACK_RIGHT)) { - for (i=0; i < n; ++i) { - buffer[i*2+0] += data[j][d_offset+o+i]; - buffer[i*2+1] += data[j][d_offset+o+i]; - } - } else if (m == PLAYBACK_LEFT) { - for (i=0; i < n; ++i) { - buffer[i*2+0] += data[j][d_offset+o+i]; - } - } else if (m == PLAYBACK_RIGHT) { - for (i=0; i < n; ++i) { - buffer[i*2+1] += data[j][d_offset+o+i]; - } - } - } - for (i=0; i < (n<<1); ++i) { - FASTDEF(temp); - int v = FAST_SCALED_FLOAT_TO_INT(temp,buffer[i],15); - if ((unsigned int) (v + 32768) > 65535) - v = v < 0 ? -32768 : 32767; - output[o2+i] = v; - } - } - #undef STB_BUFFER_SIZE -} - -static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples) -{ - int i; - if (buf_c != data_c && buf_c <= 2 && data_c <= 6) { - static int channel_selector[3][2] = { {0}, {PLAYBACK_MONO}, {PLAYBACK_LEFT, PLAYBACK_RIGHT} }; - for (i=0; i < buf_c; ++i) - compute_samples(channel_selector[buf_c][i], buffer[i]+b_offset, data_c, data, d_offset, samples); - } else { - int limit = buf_c < data_c ? buf_c : data_c; - for (i=0; i < limit; ++i) - copy_samples(buffer[i]+b_offset, data[i]+d_offset, samples); - for ( ; i < buf_c; ++i) - memset(buffer[i]+b_offset, 0, sizeof(short) * samples); - } -} - -int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples) -{ - float **output = NULL; - int len = stb_vorbis_get_frame_float(f, NULL, &output); - if (len > num_samples) len = num_samples; - if (len) - convert_samples_short(num_c, buffer, 0, f->channels, output, 0, len); - return len; -} - -static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len) -{ - int i; - check_endianness(); - if (buf_c != data_c && buf_c <= 2 && data_c <= 6) { - assert(buf_c == 2); - for (i=0; i < buf_c; ++i) - compute_stereo_samples(buffer, data_c, data, d_offset, len); - } else { - int limit = buf_c < data_c ? buf_c : data_c; - int j; - for (j=0; j < len; ++j) { - for (i=0; i < limit; ++i) { - FASTDEF(temp); - float f = data[i][d_offset+j]; - int v = FAST_SCALED_FLOAT_TO_INT(temp, f,15);//data[i][d_offset+j],15); - if ((unsigned int) (v + 32768) > 65535) - v = v < 0 ? -32768 : 32767; - *buffer++ = v; - } - for ( ; i < buf_c; ++i) - *buffer++ = 0; - } - } -} - -int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts) -{ - float **output; - int len; - if (num_c == 1) return stb_vorbis_get_frame_short(f,num_c,&buffer, num_shorts); - len = stb_vorbis_get_frame_float(f, NULL, &output); - if (len) { - if (len*num_c > num_shorts) len = num_shorts / num_c; - convert_channels_short_interleaved(num_c, buffer, f->channels, output, 0, len); - } - return len; -} - -int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts) -{ - float **outputs; - int len = num_shorts / channels; - int n=0; - while (n < len) { - int k = f->channel_buffer_end - f->channel_buffer_start; - if (n+k >= len) k = len - n; - if (k) - convert_channels_short_interleaved(channels, buffer, f->channels, f->channel_buffers, f->channel_buffer_start, k); - buffer += k*channels; - n += k; - f->channel_buffer_start += k; - if (n == len) break; - if (!stb_vorbis_get_frame_float(f, NULL, &outputs)) break; - } - return n; -} - -int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len) -{ - float **outputs; - int n=0; - while (n < len) { - int k = f->channel_buffer_end - f->channel_buffer_start; - if (n+k >= len) k = len - n; - if (k) - convert_samples_short(channels, buffer, n, f->channels, f->channel_buffers, f->channel_buffer_start, k); - n += k; - f->channel_buffer_start += k; - if (n == len) break; - if (!stb_vorbis_get_frame_float(f, NULL, &outputs)) break; - } - return n; -} - -#ifndef STB_VORBIS_NO_STDIO -int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output) -{ - int data_len, offset, total, limit, error; - short *data; - stb_vorbis *v = stb_vorbis_open_filename(filename, &error, NULL); - if (v == NULL) return -1; - limit = v->channels * 4096; - *channels = v->channels; - if (sample_rate) - *sample_rate = v->sample_rate; - offset = data_len = 0; - total = limit; - data = (short *) malloc(total * sizeof(*data)); - if (data == NULL) { - stb_vorbis_close(v); - return -2; - } - for (;;) { - int n = stb_vorbis_get_frame_short_interleaved(v, v->channels, data+offset, total-offset); - if (n == 0) break; - data_len += n; - offset += n * v->channels; - if (offset + limit > total) { - short *data2; - total *= 2; - data2 = (short *) realloc(data, total * sizeof(*data)); - if (data2 == NULL) { - free(data); - stb_vorbis_close(v); - return -2; - } - data = data2; - } - } - *output = data; - stb_vorbis_close(v); - return data_len; -} -#endif // NO_STDIO - -int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output) -{ - int data_len, offset, total, limit, error; - short *data; - stb_vorbis *v = stb_vorbis_open_memory(mem, len, &error, NULL); - if (v == NULL) return -1; - limit = v->channels * 4096; - *channels = v->channels; - if (sample_rate) - *sample_rate = v->sample_rate; - offset = data_len = 0; - total = limit; - data = (short *) malloc(total * sizeof(*data)); - if (data == NULL) { - stb_vorbis_close(v); - return -2; - } - for (;;) { - int n = stb_vorbis_get_frame_short_interleaved(v, v->channels, data+offset, total-offset); - if (n == 0) break; - data_len += n; - offset += n * v->channels; - if (offset + limit > total) { - short *data2; - total *= 2; - data2 = (short *) realloc(data, total * sizeof(*data)); - if (data2 == NULL) { - free(data); - stb_vorbis_close(v); - return -2; - } - data = data2; - } - } - *output = data; - stb_vorbis_close(v); - return data_len; -} -#endif // STB_VORBIS_NO_INTEGER_CONVERSION - -int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats) -{ - float **outputs; - int len = num_floats / channels; - int n=0; - int z = f->channels; - if (z > channels) z = channels; - while (n < len) { - int i,j; - int k = f->channel_buffer_end - f->channel_buffer_start; - if (n+k >= len) k = len - n; - for (j=0; j < k; ++j) { - for (i=0; i < z; ++i) - *buffer++ = f->channel_buffers[i][f->channel_buffer_start+j]; - for ( ; i < channels; ++i) - *buffer++ = 0; - } - n += k; - f->channel_buffer_start += k; - if (n == len) - break; - if (!stb_vorbis_get_frame_float(f, NULL, &outputs)) - break; - } - return n; -} - -int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples) -{ - float **outputs; - int n=0; - int z = f->channels; - if (z > channels) z = channels; - while (n < num_samples) { - int i; - int k = f->channel_buffer_end - f->channel_buffer_start; - if (n+k >= num_samples) k = num_samples - n; - if (k) { - for (i=0; i < z; ++i) - memcpy(buffer[i]+n, f->channel_buffers[i]+f->channel_buffer_start, sizeof(float)*k); - for ( ; i < channels; ++i) - memset(buffer[i]+n, 0, sizeof(float) * k); - } - n += k; - f->channel_buffer_start += k; - if (n == num_samples) - break; - if (!stb_vorbis_get_frame_float(f, NULL, &outputs)) - break; - } - return n; -} -#endif // STB_VORBIS_NO_PULLDATA_API - -/* Version history - 1.17 - 2019-07-08 - fix CVE-2019-13217, -13218, -13219, -13220, -13221, -13222, -13223 - found with Mayhem by ForAllSecure - 1.16 - 2019-03-04 - fix warnings - 1.15 - 2019-02-07 - explicit failure if Ogg Skeleton data is found - 1.14 - 2018-02-11 - delete bogus dealloca usage - 1.13 - 2018-01-29 - fix truncation of last frame (hopefully) - 1.12 - 2017-11-21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files - 1.11 - 2017-07-23 - fix MinGW compilation - 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memory - 1.09 - 2016-04-04 - back out 'avoid discarding last frame' fix from previous version - 1.08 - 2016-04-02 - fixed multiple warnings; fix setup memory leaks; - avoid discarding last frame of audio data - 1.07 - 2015-01-16 - fixed some warnings, fix mingw, const-correct API - some more crash fixes when out of memory or with corrupt files - 1.06 - 2015-08-31 - full, correct support for seeking API (Dougall Johnson) - some crash fixes when out of memory or with corrupt files - 1.05 - 2015-04-19 - don't define __forceinline if it's redundant - 1.04 - 2014-08-27 - fix missing const-correct case in API - 1.03 - 2014-08-07 - Warning fixes - 1.02 - 2014-07-09 - Declare qsort compare function _cdecl on windows - 1.01 - 2014-06-18 - fix stb_vorbis_get_samples_float - 1.0 - 2014-05-26 - fix memory leaks; fix warnings; fix bugs in multichannel - (API change) report sample rate for decode-full-file funcs - 0.99996 - bracket #include for macintosh compilation by Laurent Gomila - 0.99995 - use union instead of pointer-cast for fast-float-to-int to avoid alias-optimization problem - 0.99994 - change fast-float-to-int to work in single-precision FPU mode, remove endian-dependence - 0.99993 - remove assert that fired on legal files with empty tables - 0.99992 - rewind-to-start - 0.99991 - bugfix to stb_vorbis_get_samples_short by Bernhard Wodo - 0.9999 - (should have been 0.99990) fix no-CRT support, compiling as C++ - 0.9998 - add a full-decode function with a memory source - 0.9997 - fix a bug in the read-from-FILE case in 0.9996 addition - 0.9996 - query length of vorbis stream in samples/seconds - 0.9995 - bugfix to another optimization that only happened in certain files - 0.9994 - bugfix to one of the optimizations that caused significant (but inaudible?) errors - 0.9993 - performance improvements; runs in 99% to 104% of time of reference implementation - 0.9992 - performance improvement of IMDCT; now performs close to reference implementation - 0.9991 - performance improvement of IMDCT - 0.999 - (should have been 0.9990) performance improvement of IMDCT - 0.998 - no-CRT support from Casey Muratori - 0.997 - bugfixes for bugs found by Terje Mathisen - 0.996 - bugfix: fast-huffman decode initialized incorrectly for sparse codebooks; fixing gives 10% speedup - found by Terje Mathisen - 0.995 - bugfix: fix to 'effective' overrun detection - found by Terje Mathisen - 0.994 - bugfix: garbage decode on final VQ symbol of a non-multiple - found by Terje Mathisen - 0.993 - bugfix: pushdata API required 1 extra byte for empty page (failed to consume final page if empty) - found by Terje Mathisen - 0.992 - fixes for MinGW warning - 0.991 - turn fast-float-conversion on by default - 0.990 - fix push-mode seek recovery if you seek into the headers - 0.98b - fix to bad release of 0.98 - 0.98 - fix push-mode seek recovery; robustify float-to-int and support non-fast mode - 0.97 - builds under c++ (typecasting, don't use 'class' keyword) - 0.96 - somehow MY 0.95 was right, but the web one was wrong, so here's my 0.95 rereleased as 0.96, fixes a typo in the clamping code - 0.95 - clamping code for 16-bit functions - 0.94 - not publically released - 0.93 - fixed all-zero-floor case (was decoding garbage) - 0.92 - fixed a memory leak - 0.91 - conditional compiles to omit parts of the API and the infrastructure to support them: STB_VORBIS_NO_PULLDATA_API, STB_VORBIS_NO_PUSHDATA_API, STB_VORBIS_NO_STDIO, STB_VORBIS_NO_INTEGER_CONVERSION - 0.90 - first public release -*/ - -#endif // STB_VORBIS_HEADER_ONLY - - -/* ------------------------------------------------------------------------------- -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/MinecraftC/Minecraft.c b/MinecraftC/Minecraft.c index 2003369..b792e98 100644 --- a/MinecraftC/Minecraft.c +++ b/MinecraftC/Minecraft.c @@ -1,10 +1,4 @@ -#include -#define CUTE_SOUND_SCALAR_MODE -#define CUTE_SOUND_IMPLEMENTATION -#define CUTE_SOUND_FORCE_SDL -#include #include -#include "Minecraft.h" #include "GUI/PauseScreen.h" #include "GUI/ChatInputScreen.h" #include "GUI/BlockSelectScreen.h" @@ -19,6 +13,12 @@ #include "Particle/WaterDropParticle.h" #include "Mods/PrimedTNT.h" #include "Mods/Raytracer.h" +#include +#define CUTE_SOUND_SCALAR_MODE +#define CUTE_SOUND_IMPLEMENTATION +#define CUTE_SOUND_FORCE_SDL +#include +#include "Minecraft.h" static void CheckGLError(Minecraft * minecraft, char * msg) { int error = glGetError(); diff --git a/MinecraftC/Sound/SoundManager.h b/MinecraftC/Sound/SoundManager.h index a968f14..00be012 100644 --- a/MinecraftC/Sound/SoundManager.h +++ b/MinecraftC/Sound/SoundManager.h @@ -1,8 +1,8 @@ #pragma once +#include "../Utilities/Random.h" #define STB_VORBIS_HEADER_ONLY #include #include -#include "../Utilities/Random.h" typedef struct SoundManager { uint64_t lastMusic; From 4d3dd6617b2846d324324cba389a813e0d5b3abb Mon Sep 17 00:00:00 2001 From: johnpayne-dev Date: Sun, 31 Jul 2022 09:04:33 -0500 Subject: [PATCH 10/13] minor raytracing color adjustments --- Resources/Shaders/Raytracer.cl | 11 +- Resources/Shaders/Raytracer.h | 1879 ++++++++++++++++---------------- 2 files changed, 943 insertions(+), 947 deletions(-) diff --git a/Resources/Shaders/Raytracer.cl b/Resources/Shaders/Raytracer.cl index a2ab3b4..de56017 100644 --- a/Resources/Shaders/Raytracer.cl +++ b/Resources/Shaders/Raytracer.cl @@ -137,8 +137,8 @@ bool ShouldDiscardTransparency(uchar tile) { } float GetTileReflectiveness(uchar tile, float4 color) { - if (tile == BlockTypeGlass && color.w == 0.0f) { return 0.1f; } - if (tile == BlockTypeWater || tile == BlockTypeStillWater) { return 0.1f; } + if (tile == BlockTypeGlass && color.w == 0.0f) { return 0.15f; } + if (tile == BlockTypeWater || tile == BlockTypeStillWater) { return 0.15f; } return 0.0f; } @@ -210,7 +210,7 @@ float4 BedrockColor(float3 hit, __read_only image2d_t terrain) { } float3 BGColor(float3 ray) { - float t = 1.0f - (1.0f - ray.y) * (1.0f - ray.y) * (1.0f - ray.y) * (1.0f - ray.y); + float t = clamp(1.0f - pow(1.0f - ray.y, 4.0f), 0.0f, 1.0f); return t * (float3){ 0.63f, 0.8f, 1.0f } + (1.0f - t) * (float3){ 1.0f, 1.0f, 1.0f }; } @@ -413,9 +413,8 @@ float3 TraceShadows(__global uchar * distanceField, __global uchar * blocks, __r } float4 TraceFog(float3 ray, float dist) { - //float w = 1.0f - exp(-dist / 512.0f ); - float w = clamp(dist / 512.0f, 0.0f, 1.0f); - float4 fog = (float4){ 1.0f, 1.0f, 1.0f, w }; + float w = pow(clamp(0.14f * log(dist + 1.0f), 0.0f, 1.0f), 2.0f); + float4 fog = (float4){ BGColor(ray), w }; return fog; } diff --git a/Resources/Shaders/Raytracer.h b/Resources/Shaders/Raytracer.h index fb72312..eb230f8 100644 --- a/Resources/Shaders/Raytracer.h +++ b/Resources/Shaders/Raytracer.h @@ -339,973 +339,970 @@ static const unsigned char Resource_Shaders_Raytracer[] = { 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x26, 0x26, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, - 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, 0x2e, - 0x31, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, - 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, - 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x68, 0x69, 0x74, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x64, 0x65, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x2a, 0x20, 0x75, 0x76, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, 0x69, 0x74, - 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, - 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, - 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x78, 0x29, + 0x30, 0x2e, 0x31, 0x35, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, + 0x2e, 0x31, 0x35, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x76, 0x6f, 0x69, + 0x64, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x69, 0x6e, 0x74, 0x33, + 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, + 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x64, + 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x2a, 0x20, 0x75, 0x76, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, + 0x69, 0x74, 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, + 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, + 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, + 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, + 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, + 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x34, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, + 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, + 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, + 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, - 0x64, 0x65, 0x20, 0x3d, 0x20, 0x34, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, 0x20, 0x3c, - 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, - 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, - 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x20, 0x2d, - 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x29, 0x20, 0x3c, - 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, - 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, - 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x29, 0x20, + 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, + 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, + 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, + 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, + 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, + 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, - 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, 0x2d, 0x20, - 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, 0x3c, 0x20, - 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, - 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, - 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, 0x0d, 0x0a, - 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, - 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, - 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x7d, 0x0d, - 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, - 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, - 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, - 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, - 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, - 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, - 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, - 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, - 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, - 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, 0x0d, 0x0a, - 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, - 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, - 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x64, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, - 0x72, 0x61, 0x79, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, - 0x28, 0x64, 0x29, 0x20, 0x3e, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, - 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, - 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, 0x64, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x3d, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, - 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, - 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, - 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, - 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, - 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, - 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x6e, 0x20, 0x3d, - 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0d, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, - 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x78, 0x2c, - 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x6e, 0x2e, 0x7a, - 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x6d, - 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, - 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, - 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, - 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, 0x69, - 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, - 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, - 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, - 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, - 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, - 0x20, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, - 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, - 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, - 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, 0x65, 0x64, - 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, - 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, - 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, 0x6f, - 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, - 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, - 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, - 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, - 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, - 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, - 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, - 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, - 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x74, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, - 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, - 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, - 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, - 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, - 0x65, 0x6c, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, - 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, - 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x20, 0x2b, 0x20, 0x31, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, - 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, - 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, - 0x0d, 0x0a, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, - 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, - 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, - 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, - 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, - 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, - 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, - 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, - 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, - 0x78, 0x69, 0x74, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, - 0x21, 0x3d, 0x20, 0x31, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x20, 0x3c, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x7c, - 0x7c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, + 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, + 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, + 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, + 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, + 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, + 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, + 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, + 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, + 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, + 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, + 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, + 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, + 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, + 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, + 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, + 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, + 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x2c, 0x20, 0x72, 0x61, 0x79, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, + 0x62, 0x73, 0x28, 0x64, 0x29, 0x20, 0x3e, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, + 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x6f, + 0x74, 0x28, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, 0x64, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, + 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, + 0x0a, 0x0d, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2f, 0x20, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, + 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, + 0x69, 0x6e, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, + 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, + 0x69, 0x6e, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x6e, + 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, 0x20, 0x66, + 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, + 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x6e, + 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, + 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, + 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, + 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, + 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, + 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, + 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, + 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, + 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, + 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, + 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, + 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, + 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, + 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, + 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, + 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, + 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, + 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, + 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, + 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x74, 0x20, 0x3d, 0x20, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x70, 0x6f, 0x77, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, + 0x2e, 0x79, 0x2c, 0x20, 0x34, 0x2e, 0x30, 0x66, 0x29, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, + 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, + 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, + 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, + 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, + 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, + 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x69, + 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, + 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, + 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, + 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, + 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, + 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x31, 0x29, + 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, + 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, + 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, + 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, + 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, + 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, + 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, + 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x2c, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, + 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x47, 0x65, 0x74, 0x54, + 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x31, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, + 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, + 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, + 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, + 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x77, 0x61, 0x74, + 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, + 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, + 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, + 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x26, 0x26, 0x20, 0x61, + 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, + 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, - 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, 0x74, 0x65, - 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, - 0x7c, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, - 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, - 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, - 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, - 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, - 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, - 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, - 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, - 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, - 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, - 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x6c, 0x61, 0x76, 0x61, - 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, - 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x20, 0x7c, 0x7c, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, - 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, - 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, - 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, - 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, - 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x2c, 0x20, 0x26, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, - 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, - 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, - 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x6e, 0x74, 0x33, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, - 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, - 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x75, - 0x63, 0x68, 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, - 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, - 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, + 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x6c, + 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, + 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, + 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x35, 0x66, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, + 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, + 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, + 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, + 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, + 0x20, 0x73, 0x69, 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, + 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x5b, 0x28, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, - 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x69, 0x66, 0x20, 0x28, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, - 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, - 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, - 0x5b, 0x32, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, - 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, - 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, + 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, + 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x70, 0x72, 0x65, + 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x48, + 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, 0x6c, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, + 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, + 0x6c, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, + 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, + 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, + 0x30, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3e, + 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, + 0x30, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, + 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x2e, + 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, + 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, + 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, + 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, + 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, + 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, + 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, + 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, + 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, + 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, + 0x5d, 0x20, 0x3c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x5b, 0x30, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, + 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, + 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x32, 0x3b, 0x20, 0x69, 0x2b, + 0x2b, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x69, 0x5d, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, + 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, + 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, - 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, - 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, - 0x5b, 0x30, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, - 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, - 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, - 0x5b, 0x30, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, - 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, - 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, - 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, - 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, - 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, - 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, - 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, - 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, - 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, - 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, - 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, - 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, - 0x64, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x72, - 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6f, 0x72, 0x20, - 0x28, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, - 0x32, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x69, 0x5d, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, - 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, - 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, - 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, - 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, - 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, - 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, - 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, - 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, - 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, - 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, + 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, - 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, - 0x4f, 0x4e, 0x20, 0x2a, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, - 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, - 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, + 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, + 0x5b, 0x69, 0x5d, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, 0x2a, 0x20, + 0x31, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, + 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, + 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, + 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, + 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, + 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, + 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, + 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x29, 0x7b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, - 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, - 0x29, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x64, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, - 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, - 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, - 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, - 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, - 0x65, 0x2c, 0x20, 0x30, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, - 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, - 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, - 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, - 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x21, - 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, + 0x29, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, + 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x30, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, + 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, + 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, + 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, + 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x21, 0x3d, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, + 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, + 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, + 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, + 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, + 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, + 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, + 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, + 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, + 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, + 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, + 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x63, 0x79, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, - 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, - 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x47, - 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, - 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0d, - 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, - 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x73, - 0x69, 0x64, 0x65, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, - 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, - 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, - 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, - 0x0d, 0x0a, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, - 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, - 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, - 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, - 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x2d, 0x3e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, - 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, 0x69, 0x64, 0x65, - 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x54, - 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x73, 0x69, - 0x64, 0x65, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, - 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, - 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, - 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, - 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, - 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, - 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, - 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, - 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, - 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, - 0x75, 0x6e, 0x64, 0x73, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, - 0x79, 0x20, 0x2a, 0x20, 0x74, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, - 0x29, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, - 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, - 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, - 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, - 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, - 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x69, - 0x73, 0x74, 0x20, 0x3e, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, - 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, - 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, - 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x2c, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, - 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, - 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, - 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, - 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, 0x20, - 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, - 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, - 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, - 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, - 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, - 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, - 0x65, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, - 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, - 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, - 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, - 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, - 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, - 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, - 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, - 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, - 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, - 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, - 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x33, 0x32, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, - 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, - 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, - 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, - 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, - 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, - 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, - 0x6f, 0x63, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, - 0x3d, 0x20, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x78, 0x79, 0x7a, + 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x42, 0x72, 0x69, 0x67, + 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, + 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, + 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0d, + 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, + 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, + 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, + 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, + 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, + 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, + 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, + 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, + 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, + 0x20, 0x28, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, + 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, + 0x69, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, + 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x75, + 0x63, 0x68, 0x61, 0x72, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, + 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, + 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, + 0x30, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, + 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, + 0x6c, 0x20, 0x2d, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, + 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, + 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, + 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, + 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, + 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, + 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, + 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x36, 0x34, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7d, 0x2c, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, + 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, + 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, + 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, + 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, + 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, + 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, + 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, + 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, + 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, + 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x33, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, + 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, + 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, + 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, + 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x68, + 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, - 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, - 0x7d, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, - 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, - 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, - 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, - 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, - 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x34, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, + 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x42, 0x65, 0x64, + 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, + 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x7d, 0x0d, + 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, + 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, + 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, + 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, + 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, + 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, + 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, + 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, + 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, + 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, + 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, + 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, + 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, + 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, + 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, + 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, + 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, + 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, + 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, + 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x28, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, + 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x32, 0x35, + 0x66, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x77, 0x29, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, + 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, + 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, + 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x70, 0x6f, 0x77, 0x28, 0x63, 0x6c, + 0x61, 0x6d, 0x70, 0x28, 0x30, 0x2e, 0x31, 0x34, 0x66, 0x20, 0x2a, 0x20, 0x6c, 0x6f, 0x67, 0x28, + 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x2c, 0x20, 0x77, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, + 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, + 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, + 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x3b, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, + 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, + 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, + 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, - 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, - 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, - 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, 0x0a, 0x09, 0x69, - 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, - 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, - 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, + 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, + 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, + 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, + 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, + 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, + 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, + 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, + 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, - 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, - 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, - 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, - 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, - 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, - 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, - 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, - 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, - 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, - 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, - 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, - 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, - 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, - 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, - 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, - 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x28, 0x73, 0x68, - 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, - 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, - 0x30, 0x2e, 0x35, 0x32, 0x35, 0x66, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, - 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x2f, 0x2f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x65, 0x78, 0x70, 0x28, 0x2d, 0x64, 0x69, 0x73, - 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x29, 0x3b, 0x0d, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, - 0x64, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x35, 0x31, 0x32, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x77, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, - 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, - 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, - 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, - 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, - 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, - 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, - 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, - 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, 0x0a, 0x09, - 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, - 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, - 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, - 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, - 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, - 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, - 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, - 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, - 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, - 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, - 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, - 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, - 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, - 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, - 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, - 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, + 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, + 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, + 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, + 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, + 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, + 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, + 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, + 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, + 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, + 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, + 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, + 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, + 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, + 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, + 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, + 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, + 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, + 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, + 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, + 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, + 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, - 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x79, 0x7a, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, + 0x65, 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, + 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, + 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, + 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, + 0x20, 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, + 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, + 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x20, 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x5f, 0x69, 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, + 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, + 0x31, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, + 0x69, 0x64, 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, + 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, + 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, + 0x0d, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, 0x79, 0x20, + 0x2b, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x28, 0x31, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, + 0x29, 0x20, 0x2b, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, 0x35, + 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, 0x69, + 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, 0x0d, 0x0a, + 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, + 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, + 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, + 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, + 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x35, 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, + 0x2f, 0x20, 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x63, 0x6f, 0x73, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, + 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, + 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, + 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, + 0x31, 0x34, 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x20, 0x7d, + 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x3d, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, + 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, + 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x72, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, + 0x20, 0x2f, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, + 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x30, + 0x2e, 0x33, 0x37, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, + 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x3b, + 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, + 0x6c, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, + 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, + 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, + 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, + 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, + 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, + 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, + 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, + 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, + 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, + 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, + 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, + 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, + 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, + 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, + 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, + 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x20, 0x26, 0x26, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, - 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, - 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, - 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, - 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, - 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, - 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x72, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, - 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, - 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, - 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, 0x74, 0x20, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, - 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, 0x74, 0x75, - 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x69, - 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, - 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, - 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, - 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, - 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, - 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, - 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x31, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0d, - 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, - 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, - 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0d, - 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, 0x79, 0x20, 0x2b, 0x3d, - 0x20, 0x73, 0x69, 0x6e, 0x28, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x30, 0x2e, - 0x30, 0x66, 0x20, 0x2b, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x20, - 0x2b, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, 0x35, 0x2e, 0x30, - 0x66, 0x20, 0x2b, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x6e, 0x28, - 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, - 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, - 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, - 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, - 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, - 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, - 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, - 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, - 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6c, - 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x63, 0x6f, - 0x73, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, - 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, - 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x73, 0x69, 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, - 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, - 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, - 0x3d, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, - 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, - 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, - 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, 0x20, 0x2f, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x7d, - 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, - 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x33, - 0x37, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, - 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b, 0x0d, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x72, 0x61, 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, + 0x20, 0x2a, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x29, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, + 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, + 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, + 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, + 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, + 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, + 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, + 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, - 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, - 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, - 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, - 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, - 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, - 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, - 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, - 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, - 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, - 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, - 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x66, - 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x6e, 0x65, 0x73, 0x73, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, + 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, - 0x67, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x72, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, - 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, - 0x26, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, - 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x28, 0x72, 0x61, 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, - 0x20, 0x64, 0x6f, 0x74, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x29, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, - 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, - 0x6e, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, - 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, - 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, - 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, + 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, + 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, + 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, - 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, - 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, - 0x73, 0x73, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, - 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x63, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, - 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, - 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, - 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, - 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, - 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, - 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, - 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x66, - 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, - 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, - 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, - 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x00 + 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, + 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, + 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, + 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, + 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, + 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, + 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, + 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, + 0x2c, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, + 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x00 }; From 1de22a4bbfb5f25ed9f1dc2639eb34e59b72f193 Mon Sep 17 00:00:00 2001 From: johnpayne-dev Date: Sun, 31 Jul 2022 09:29:17 -0500 Subject: [PATCH 11/13] fix work group size for DistanceField.cl --- MinecraftC/Mods/Raytracer.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/MinecraftC/Mods/Raytracer.c b/MinecraftC/Mods/Raytracer.c index 274d490..b7925ae 100644 --- a/MinecraftC/Mods/Raytracer.c +++ b/MinecraftC/Mods/Raytracer.c @@ -151,8 +151,7 @@ void RaytracerReload() { int error; Raytracer.distanceFieldBuffer = clCreateBuffer(Raytracer.context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, Raytracer.level->width * Raytracer.level->height * Raytracer.level->depth, Raytracer.level->distanceField, &error); if (error < 0) { - LogError("Failed to create buffer: %i\n", error); - return false; + LogFatal("Failed to create buffer: %i\n", error); } Raytracer.blockBuffer = clCreateBuffer(Raytracer.context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, Raytracer.level->width * Raytracer.level->height * Raytracer.level->depth, Raytracer.level->blocks, &error); if (error < 0) { @@ -192,7 +191,7 @@ void RaytracerEnqueue(float dt, float time, bool doBobbing) { glFinish(); int error = clSetKernelArg(Raytracer.iteratekernel, 1, sizeof(uint8_t), &(uint8_t){ Raytracer.iteration++ }); - error |= clEnqueueNDRangeKernel(Raytracer.queue, Raytracer.iteratekernel, 3, NULL, (size_t []){ Raytracer.level->width, Raytracer.level->depth, Raytracer.level->height }, (size_t []){ 1, 1, 1}, 0, NULL, NULL); + error |= clEnqueueNDRangeKernel(Raytracer.queue, Raytracer.iteratekernel, 3, NULL, (size_t []){ Raytracer.level->width, Raytracer.level->depth, Raytracer.level->height }, NULL, 0, NULL, NULL); if (error < 0) { LogFatal("Failed to enqueue octree renderer: %i\n", error); } @@ -210,9 +209,7 @@ void RaytracerEnqueue(float dt, float time, bool doBobbing) { if (error < 0) { LogFatal("Failed to aquire gl texture: %i\n", error); } - int groupSize = 50; - int w = Raytracer.width, h = Raytracer.height; - error = clEnqueueNDRangeKernel(Raytracer.queue, Raytracer.traceKernel, 2, NULL, (size_t[]){ w + (groupSize - w % groupSize) % groupSize, h + (groupSize - w % groupSize) % groupSize }, (size_t[]){ groupSize, 1 }, 0, NULL, NULL); + error = clEnqueueNDRangeKernel(Raytracer.queue, Raytracer.traceKernel, 2, NULL, (size_t[]){ Raytracer.width, Raytracer.height }, NULL, 0, NULL, NULL); if (error < 0) { LogFatal("Failed to enqueue octree renderer: %i\n", error); } From a4eab48ba0e61b5035e7b2042e50492b0ed588e5 Mon Sep 17 00:00:00 2001 From: John Payne Date: Sun, 31 Jul 2022 11:57:02 -0500 Subject: [PATCH 12/13] fix issues with raytracing water --- Resources/Shaders/Raytracer.cl | 79 +- Resources/Shaders/Raytracer.h | 2434 ++++++++++++++++---------------- Scripts/EmbedResources.py | 25 +- 3 files changed, 1241 insertions(+), 1297 deletions(-) diff --git a/Resources/Shaders/Raytracer.cl b/Resources/Shaders/Raytracer.cl index de56017..baa9385 100644 --- a/Resources/Shaders/Raytracer.cl +++ b/Resources/Shaders/Raytracer.cl @@ -110,10 +110,10 @@ constant float TileSideBrightness[6] = { 0.5f, 1.0f, 0.8f, 0.8f, 0.6f, 0.6f }; constant float3 TileSideNormal[6] = { { 0.0f, -1.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, - { 0.0f, 0.0f, -1.0f }, - { 0.0f, 0.0f, 1.0f, }, - { -1.0f, 0.0f, 0.0f }, - { 1.0f, 0.0f, 0.0f } + { 0.0f, 0.0f, 1.0f }, + { 0.0f, 0.0f, -1.0f, }, + { 1.0f, 0.0f, 0.0f }, + { -1.0f, 0.0f, 0.0f } }; const sampler_t TerrainSampler = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_REPEAT | CLK_FILTER_NEAREST; @@ -177,12 +177,8 @@ float3 MatrixTransformPoint(float16 l, float3 r) { } bool RayPlaneIntersection(float3 ray, float3 origin, float3 normal, float3 center, float * dist) { - float d = dot(normal, ray); - if (fabs(d) > EPSILON) { - *dist = dot(center - origin, normal) / d; - return *dist >= 0.0f; - } - return false; + *dist = dot(center - origin, normal) / dot(normal, ray); + return *dist >= 0.0f; } void RayBox(float3 r, float3 o, float3 bmin, float3 bmax, float * enter, float * exit) { @@ -219,29 +215,28 @@ bool RayBlockIntersection(__global uchar * blocks, __read_only image2d_t terrain float3 dimensions = { 1.0f, 1.0f, 1.0f }; *tile = blocks[(voxel.y * levelSize + voxel.z) * levelSize + voxel.x]; if (*tile == BlockTypeWater || *tile == BlockTypeStillWater) { - uchar above = blocks[((voxel.y + 1) * levelSize + voxel.z) * levelSize + voxel.x]; - if (above != BlockTypeWater && above != BlockTypeStillWater) { - dimensions.y -= 0.1f; + if (!inWater) { + uchar above = blocks[((voxel.y + 1) * levelSize + voxel.z) * levelSize + voxel.x]; + if (above != BlockTypeWater && above != BlockTypeStillWater) { + dimensions.y -= 0.1f; + } float waterExit; - if (inWater) { - RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, &waterExit, enter); - float2 uv; - int side; - GetTileUV(voxel, dimensions, origin + ray * *enter, &side, &uv); - if (side != 1) { - return false; - } - if (*enter < waterExit || *enter < 0.0f) { - return false; - } - } else { - RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, enter, &waterExit); - if (waterExit < *enter || waterExit < 0.0f) { - return false; - } + RayBox(ray, origin, convert_float3(voxel), convert_float3(voxel) + dimensions, enter, &waterExit); + if (waterExit < *enter || waterExit < 0.0f) { + return false; } - } else if (inWater) { - return false; + *exit = *enter + EPSILON; + } else { + int3 nextVoxel = convert_int3(origin + ray * (*exit + EPSILON)); + if (!PointInBounds(convert_float3(nextVoxel), levelSize)) { + return false; + } + uchar nextTile = blocks[(nextVoxel.y * levelSize + nextVoxel.z) * levelSize + nextVoxel.x]; + if (nextTile != BlockTypeNone) { + return false; + } + *enter = *exit; + *exit = *exit + EPSILON; } } else if (*tile == BlockTypeLava || *tile == BlockTypeStillLava) { uchar above = blocks[((voxel.y + 1) * levelSize + voxel.z) * levelSize + voxel.x]; @@ -262,7 +257,7 @@ bool RayBlockIntersection(__global uchar * blocks, __read_only image2d_t terrain return false; } } else if (*tile == BlockTypeGlass) { - int3 prevVoxel = convert_int3(origin + ray * *enter - sign(ray) * EPSILON); + int3 prevVoxel = convert_int3(origin + ray * (*enter - EPSILON)); uchar prevTile = blocks[(prevVoxel.y * levelSize + prevVoxel.z) * levelSize + prevVoxel.x]; if (prevTile == BlockTypeGlass) { return false; @@ -348,9 +343,9 @@ bool RayWorldIntersection(__global uchar * distanceField, __global uchar * block bool RaySceneIntersection(__global uchar * distanceField, __global uchar * blocks, __read_only image2d_t terrain, float3 ray, float3 origin, int levelSize, bool inWater, uchar * tile, float * enter, float * exit, float4 * color, float3 * normal) { if (!RayWorldIntersection(distanceField, blocks, terrain, ray, origin, levelSize, inWater, tile, enter, exit, color, normal)) { - if (RayPlaneIntersection(ray, origin, (float3){ 0.0f, 1.0f, 0.0f }, (float3){ 0.0f, 32.0f - 0.1f, 0.0f }, enter)) { + if (RayPlaneIntersection(ray, origin, (float3){ 0.0f, 1.0f, 0.0f }, (float3){ 0.0f, inWater ? 32.0f : 31.9f, 0.0f }, enter)) { float3 hit = origin + ray * *enter; - if (hit.x > levelSize - 1.0f || hit.z > levelSize - 1.0f || hit.x < 1.0f || hit.z < 1.0f) { + if (hit.x > levelSize || hit.z > levelSize || hit.x < 0.0f || hit.z < 0.0f) { *exit = *enter + 1.0f; *tile = BlockTypeWater; *color = WaterColor(hit, terrain); @@ -365,6 +360,7 @@ bool RaySceneIntersection(__global uchar * distanceField, __global uchar * block *normal = (float3){ 0.0f, 1.0f, 0.0f }; return true; } + RayBox(ray, origin, (float3){ 0.0f, 0.0f, 0.0f }, (float3){ levelSize, 64.0f, levelSize }, enter, exit); return false; } else { return true; @@ -389,11 +385,6 @@ float3 TraceShadows(__global uchar * distanceField, __global uchar * blocks, __r shadowColor.w *= 1.0f - hitColor.w; if (tile == BlockTypeWater || tile == BlockTypeStillWater) { - if (inWater) { - waterDist += enter; - } else { - exit = enter; - } inWater = !inWater; } if (exit < MIN_RAY_STEP) { @@ -440,11 +431,6 @@ float3 TraceReflections(__global uchar * distanceField, __global uchar * blocks, reflectionColor.w *= 1.0f - hitColor.w; if (tile == BlockTypeWater || tile == BlockTypeStillWater) { - if (inWater) { - waterDist += enter; - } else { - exit = enter; - } inWater = !inWater; } if (exit < MIN_RAY_STEP) { @@ -507,7 +493,7 @@ __kernel void trace(int levelSize, __global uchar * distanceField, __global ucha fragColor.xyz += fog.xyz * fog.w * fragColor.w; fragColor.w *= 1.0f - fog.w; float reflectiveness = GetTileReflectiveness(tile, color); - if (reflectiveness > 0.0f && !(inWater && (tile == BlockTypeWater || tile == BlockTypeStillWater))) { + if (reflectiveness > 0.0f && dot(ray, normal) < 0.0f) { float3 reflectionDir = normalize(ray - 2.0f * dot(ray, normal) * normal); float3 rColor = TraceReflections(distanceField, blocks, terrain, reflectionDir, origin + ray * enter + reflectionDir * EPSILON, levelSize, inWater, lightDir, color.xyz); fragColor.xyz += rColor * reflectiveness * fragColor.w; @@ -517,9 +503,6 @@ __kernel void trace(int levelSize, __global uchar * distanceField, __global ucha fragColor.w *= 1.0f - color.w; if (tile == BlockTypeWater || tile == BlockTypeStillWater) { - if (!inWater) { - exit = enter; - } inWater = !inWater; } if (exit < MIN_RAY_STEP) { diff --git a/Resources/Shaders/Raytracer.h b/Resources/Shaders/Raytracer.h index eb230f8..0ae5e3a 100644 --- a/Resources/Shaders/Raytracer.h +++ b/Resources/Shaders/Raytracer.h @@ -1,1013 +1,896 @@ static const unsigned char Resource_Shaders_Raytracer[] = { 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x66, 0x0d, 0x0a, 0x23, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, - 0x45, 0x50, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x66, 0x0d, 0x0a, 0x0d, 0x0a, 0x23, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, - 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x30, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x0d, 0x0a, 0x23, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x30, 0x31, 0x66, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, + 0x50, 0x20, 0x30, 0x2e, 0x30, 0x30, 0x31, 0x66, 0x0a, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x6e, 0x65, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x44, 0x69, 0x72, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, - 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, 0x0d, - 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x39, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x30, 0x0d, 0x0a, - 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x31, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x32, 0x0d, 0x0a, 0x23, 0x64, + 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, 0x74, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, + 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x36, 0x0a, 0x23, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, + 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, + 0x61, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, + 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x31, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, - 0x6e, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, - 0x35, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x37, 0x0d, - 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x31, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x39, 0x0d, 0x0a, 0x23, - 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x32, 0x30, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, - 0x61, 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x32, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, - 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x34, - 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x35, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, - 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x36, 0x0d, 0x0a, + 0x20, 0x31, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, + 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x35, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x31, 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, + 0x76, 0x65, 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, + 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x31, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x30, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x32, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, + 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x32, 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x38, 0x0d, 0x0a, 0x23, 0x64, + 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x32, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, + 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, + 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, + 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x32, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x32, 0x39, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x30, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, - 0x6c, 0x65, 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, - 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x32, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, - 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x33, 0x0d, - 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x33, 0x34, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, - 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x35, 0x0d, 0x0a, 0x23, - 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x33, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, - 0x73, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x33, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, - 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x39, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, - 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x30, - 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x31, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x32, 0x0d, 0x0a, + 0x20, 0x32, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, + 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x34, 0x33, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x34, 0x0d, 0x0a, 0x23, 0x64, + 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x33, 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x61, + 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, + 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, + 0x6f, 0x6c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x36, 0x0a, 0x23, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, + 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x33, 0x37, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, + 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x33, 0x39, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x34, 0x30, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x31, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, + 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, + 0x32, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x33, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x34, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x34, 0x35, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x36, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, - 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, - 0x37, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, - 0x74, 0x6f, 0x6e, 0x65, 0x20, 0x20, 0x34, 0x38, 0x0d, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, - 0x69, 0x61, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x39, 0x0d, - 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x35, 0x30, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x32, 0x35, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, - 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x31, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x30, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, 0x74, 0x5d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x2c, - 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x62, - 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x31, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x2c, 0x0d, 0x0a, 0x09, - 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, - 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, - 0x20, 0x31, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, - 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x20, 0x34, 0x35, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x36, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, + 0x68, 0x65, 0x6c, 0x66, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x37, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, + 0x65, 0x20, 0x20, 0x34, 0x38, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x34, 0x39, 0x0a, 0x23, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x35, + 0x30, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x74, 0x20, + 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x32, + 0x35, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x2c, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x30, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x69, 0x72, + 0x74, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x6f, 0x6f, 0x64, 0x5d, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x70, + 0x6c, 0x69, 0x6e, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x31, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x37, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x31, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, - 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, - 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x6e, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x38, 0x2c, 0x0d, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, - 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x31, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, 0x72, 0x65, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, + 0x4c, 0x61, 0x76, 0x61, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x33, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x61, 0x6e, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x39, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, + 0x64, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x33, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x33, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x33, 0x33, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x43, 0x6f, 0x61, 0x6c, 0x4f, 0x72, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x30, - 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, - 0x61, 0x76, 0x65, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x38, 0x2c, 0x0d, - 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, - 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x3d, 0x20, 0x34, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x34, 0x2c, 0x0d, 0x0a, 0x09, - 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, 0x6e, 0x67, 0x65, - 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, - 0x20, 0x36, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, 0x6c, - 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, - 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x33, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, + 0x6f, 0x67, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x32, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x6f, 0x6e, 0x67, + 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x34, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x34, 0x39, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x34, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x36, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x36, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6d, 0x65, 0x57, 0x6f, 0x6f, + 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x36, 0x37, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x38, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, - 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x39, 0x2c, - 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, - 0x6e, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x31, 0x2c, 0x0d, 0x0a, - 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, - 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x3d, 0x20, 0x37, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x33, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, 0x74, 0x57, - 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x37, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x36, - 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, - 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x38, 0x2c, 0x0d, - 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x68, 0x69, 0x74, - 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x3d, 0x20, 0x37, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x33, 0x2c, 0x0d, 0x0a, 0x09, - 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, - 0x20, 0x31, 0x32, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x39, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, - 0x6f, 0x6f, 0x6d, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, - 0x38, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x41, 0x71, 0x75, 0x61, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x57, 0x6f, + 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x39, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x43, 0x79, 0x61, 0x6e, 0x57, + 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x37, 0x30, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x6c, 0x75, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x31, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, 0x75, 0x72, 0x70, 0x6c, 0x65, 0x57, 0x6f, 0x6f, + 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x32, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, + 0x69, 0x67, 0x6f, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x37, 0x33, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x56, 0x69, 0x6f, 0x6c, 0x65, 0x74, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x34, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, + 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x37, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x50, + 0x69, 0x6e, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x37, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x79, 0x57, + 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x37, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x57, 0x6f, 0x6f, 0x6c, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x39, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x31, 0x33, + 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, + 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x3d, 0x20, 0x31, 0x32, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, + 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x39, 0x2c, 0x0a, 0x09, 0x5b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, + 0x72, 0x6f, 0x6f, 0x6d, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, + 0x32, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x34, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x33, 0x2c, - 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, - 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x3d, 0x20, 0x35, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, - 0x37, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, - 0x4e, 0x54, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x38, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x5d, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x35, 0x2c, 0x0d, - 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, - 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, - 0x20, 0x3d, 0x20, 0x33, 0x36, 0x2c, 0x0d, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x37, 0x2c, 0x0d, 0x0a, 0x7d, - 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x42, 0x72, 0x69, 0x67, - 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, - 0x35, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, - 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x4e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x7b, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, - 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x7d, 0x2c, 0x0d, - 0x0a, 0x09, 0x7b, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0d, 0x0a, 0x09, 0x7b, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x0d, - 0x0a, 0x7d, 0x3b, 0x0d, 0x0a, 0x0d, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x73, 0x61, 0x6d, - 0x70, 0x6c, 0x65, 0x72, 0x5f, 0x74, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, - 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x5f, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x54, 0x52, - 0x55, 0x45, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, - 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, 0x54, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x46, 0x49, - 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x4e, 0x45, 0x41, 0x52, 0x45, 0x53, 0x54, 0x3b, 0x0d, 0x0a, 0x0d, - 0x0a, 0x69, 0x6e, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, - 0x44, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6e, - 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x34, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x32, 0x33, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, + 0x65, 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x6c, 0x61, 0x62, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x36, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x69, 0x63, 0x6b, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x37, 0x2c, 0x0a, 0x09, + 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x5d, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, + 0x20, 0x38, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, + 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x35, 0x2c, 0x0a, 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x73, 0x73, 0x79, 0x43, 0x6f, 0x62, 0x62, 0x6c, 0x65, + 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x33, 0x36, 0x2c, 0x0a, + 0x09, 0x5b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, 0x73, 0x69, 0x64, + 0x69, 0x61, 0x6e, 0x5d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x3d, 0x20, 0x33, 0x37, 0x2c, 0x0a, 0x7d, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x74, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, + 0x65, 0x42, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x36, 0x5d, 0x20, 0x3d, + 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x36, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x36, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x74, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, + 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x36, 0x5d, 0x20, 0x3d, 0x20, 0x7b, 0x0a, + 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, + 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x7d, 0x2c, 0x0a, 0x09, + 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x0a, 0x09, 0x7b, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x0a, 0x7d, 0x3b, 0x0a, + 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x5f, 0x74, + 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x20, + 0x3d, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, + 0x5f, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x54, 0x52, 0x55, 0x45, 0x20, 0x7c, 0x20, 0x43, + 0x4c, 0x4b, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, + 0x54, 0x20, 0x7c, 0x20, 0x43, 0x4c, 0x4b, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x4e, + 0x45, 0x41, 0x52, 0x45, 0x53, 0x54, 0x3b, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x20, 0x47, 0x65, 0x74, + 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, + 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x31, 0x20, 0x3f, 0x20, 0x30, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x20, 0x3a, 0x20, 0x33, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x6f, 0x67, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x32, + 0x31, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, + 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, 0x32, 0x30, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x36, 0x20, 0x3a, + 0x20, 0x35, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, + 0x73, 0x68, 0x65, 0x6c, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x73, 0x69, 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x34, 0x20, 0x3a, 0x20, + 0x33, 0x35, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, + 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, + 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, + 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2d, 0x20, 0x31, 0x36, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, + 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2b, 0x20, + 0x31, 0x36, 0x20, 0x3a, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x54, 0x4e, 0x54, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x31, 0x30, + 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, + 0x39, 0x20, 0x3a, 0x20, 0x38, 0x29, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, + 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, + 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, 0x64, 0x65, 0x6c, + 0x69, 0x6f, 0x6e, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x47, 0x72, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x30, 0x20, 0x3a, - 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x20, - 0x3a, 0x20, 0x33, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, - 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, - 0x6f, 0x67, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, 0x28, 0x73, - 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x32, 0x31, 0x20, 0x3a, 0x20, - 0x32, 0x30, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, - 0x61, 0x62, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x61, - 0x62, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, - 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x36, 0x20, 0x3a, 0x20, 0x35, 0x3b, 0x20, 0x7d, - 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x68, 0x65, 0x6c, - 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x69, 0x64, 0x65, - 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x34, 0x20, 0x3a, 0x20, 0x33, 0x35, 0x3b, 0x20, - 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6f, 0x6c, 0x64, 0x20, 0x7c, 0x7c, - 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x49, 0x72, 0x6f, 0x6e, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, - 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, - 0x5d, 0x20, 0x2d, 0x20, 0x31, 0x36, 0x20, 0x3a, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x20, 0x2b, 0x20, 0x31, 0x36, 0x20, - 0x3a, 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x5b, 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, - 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x54, 0x4e, 0x54, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x31, 0x30, 0x20, 0x3a, - 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20, 0x3f, 0x20, 0x39, 0x20, - 0x3a, 0x20, 0x38, 0x29, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x5b, - 0x74, 0x69, 0x6c, 0x65, 0x5d, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, - 0x6c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, - 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, - 0x69, 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x44, 0x61, 0x6e, - 0x64, 0x65, 0x6c, 0x69, 0x6f, 0x6e, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x6f, 0x73, 0x65, 0x20, - 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x64, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x20, - 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, - 0x6d, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x53, 0x68, - 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, - 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, - 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, 0x7c, 0x7c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, - 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x28, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, - 0x73, 0x73, 0x20, 0x26, 0x26, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3d, 0x3d, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x30, 0x2e, 0x31, 0x35, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, - 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, - 0x2e, 0x31, 0x35, 0x66, 0x3b, 0x20, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x76, 0x6f, 0x69, + 0x65, 0x42, 0x72, 0x6f, 0x77, 0x6e, 0x4d, 0x75, 0x73, 0x68, 0x72, 0x6f, 0x6f, 0x6d, 0x3b, 0x0a, + 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, + 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x28, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x73, 0x20, + 0x7c, 0x7c, 0x20, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, + 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x3b, + 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, + 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x26, 0x26, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30, 0x2e, 0x31, 0x35, 0x66, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, + 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, + 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x20, 0x30, 0x2e, 0x31, 0x35, 0x66, 0x3b, 0x20, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x2a, 0x20, 0x75, 0x76, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, - 0x69, 0x74, 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, - 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, - 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, + 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x68, 0x69, + 0x74, 0x20, 0x2d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, + 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, + 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x35, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, + 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x78, 0x20, 0x2d, 0x20, + 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x78, 0x29, 0x20, 0x3c, 0x20, + 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, + 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x6e, + 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, + 0x34, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, + 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, + 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, + 0x78, 0x7a, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, + 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, + 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x79, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, + 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, - 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x78, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, + 0x2e, 0x7a, 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x7a, 0x2c, 0x20, 0x31, - 0x2e, 0x30, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, - 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x34, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, 0x29, - 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x79, - 0x20, 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x29, - 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x6e, 0x2e, 0x78, 0x7a, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, - 0x29, 0x20, 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, - 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, - 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, - 0x2d, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, - 0x3c, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, - 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, - 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, - 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, - 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, - 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, - 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, - 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, - 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, - 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, - 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, - 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, - 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0d, 0x0a, 0x09, 0x09, 0x72, - 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x79, 0x20, - 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, 0x20, 0x6c, - 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, - 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, - 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x2c, 0x20, 0x72, 0x61, 0x79, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, - 0x62, 0x73, 0x28, 0x64, 0x29, 0x20, 0x3e, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x6f, - 0x74, 0x28, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, 0x64, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, - 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, - 0x0a, 0x0d, 0x0a, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x2f, 0x20, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, - 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, - 0x69, 0x6e, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, - 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, - 0x69, 0x6e, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x6e, - 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, 0x20, 0x3d, 0x20, 0x66, - 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, - 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x6e, - 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, - 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, - 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, - 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, - 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, - 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, - 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, - 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, - 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, - 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, - 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, + 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x33, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, + 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x61, 0x62, 0x73, 0x28, 0x6e, 0x2e, 0x7a, 0x20, 0x2d, + 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x7a, 0x29, 0x20, 0x3c, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, + 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x6e, 0x2e, + 0x78, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6e, 0x2e, 0x79, 0x20, 0x7d, 0x3b, + 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x32, 0x3b, 0x0a, 0x09, 0x7d, + 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x2a, 0x75, 0x76, 0x20, 0x3d, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x2a, 0x73, 0x69, 0x64, 0x65, 0x20, + 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x6c, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x30, 0x20, 0x2b, 0x20, + 0x72, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x34, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, + 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x38, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x43, 0x2c, 0x0a, + 0x09, 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x31, 0x20, 0x2b, 0x20, 0x72, + 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x35, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, + 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x39, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x44, 0x2c, 0x0a, 0x09, + 0x09, 0x72, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x32, 0x20, 0x2b, 0x20, 0x72, 0x2e, + 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x2e, 0x73, 0x36, 0x20, 0x2b, 0x20, 0x72, 0x2e, 0x7a, 0x20, 0x2a, + 0x20, 0x6c, 0x2e, 0x73, 0x41, 0x20, 0x2b, 0x20, 0x6c, 0x2e, 0x73, 0x45, 0x2c, 0x0a, 0x09, 0x7d, + 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, + 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, + 0x20, 0x64, 0x6f, 0x74, 0x28, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2f, 0x20, + 0x64, 0x6f, 0x74, 0x28, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x29, + 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2a, 0x64, 0x69, 0x73, 0x74, 0x20, + 0x3e, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x76, 0x6f, 0x69, 0x64, + 0x20, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, + 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x62, 0x6d, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, + 0x62, 0x6d, 0x61, 0x78, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, + 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x69, 0x6e, 0x76, + 0x20, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x31, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x69, 0x6e, 0x20, + 0x2d, 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x74, 0x32, 0x20, 0x3d, 0x20, 0x28, 0x62, 0x6d, 0x61, 0x78, 0x20, 0x2d, + 0x20, 0x6f, 0x29, 0x20, 0x2a, 0x20, 0x69, 0x6e, 0x76, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x74, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x31, 0x2c, + 0x20, 0x74, 0x32, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x74, 0x66, + 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x31, 0x2c, 0x20, 0x74, 0x32, 0x29, 0x3b, + 0x0a, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, + 0x74, 0x6e, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x61, 0x78, 0x28, 0x74, 0x6e, 0x2e, 0x79, 0x2c, + 0x20, 0x74, 0x6e, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, + 0x3d, 0x20, 0x66, 0x6d, 0x69, 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x78, 0x2c, 0x20, 0x66, 0x6d, 0x69, + 0x6e, 0x28, 0x74, 0x66, 0x2e, 0x79, 0x2c, 0x20, 0x74, 0x66, 0x2e, 0x7a, 0x29, 0x29, 0x3b, 0x0a, + 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, + 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x76, 0x2c, 0x20, + 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3e, 0x3d, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x7a, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x26, 0x26, 0x20, + 0x76, 0x2e, 0x79, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x76, + 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, + 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, + 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, + 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, + 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, + 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, + 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, + 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, - 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, - 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, - 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, - 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x42, - 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, - 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x66, 0x6c, - 0x6f, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x29, 0x29, 0x2e, 0x78, 0x7a, 0x20, 0x2f, 0x20, 0x31, - 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, - 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, - 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, - 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x33, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, + 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, + 0x36, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x70, 0x6f, 0x77, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x61, 0x79, 0x2e, 0x79, 0x2c, 0x20, 0x34, 0x2e, 0x30, 0x66, 0x29, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, - 0x2e, 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x20, 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, - 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, - 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, - 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, - 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x69, - 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, - 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, - 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, - 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, - 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, - 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, - 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x31, 0x29, - 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x74, - 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x6f, - 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, - 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, - 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, - 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, - 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, - 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, - 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, - 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, - 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, - 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, - 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x2c, 0x20, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, - 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x47, 0x65, 0x74, 0x54, - 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, - 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, - 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x69, 0x64, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x31, 0x29, - 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, - 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, - 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, - 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, - 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, - 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, - 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x77, 0x61, 0x74, - 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, - 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, - 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, - 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x74, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, + 0x36, 0x33, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x38, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x20, 0x2b, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x74, 0x29, 0x20, 0x2a, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x7d, + 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, + 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, + 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, + 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, + 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, + 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, + 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x3d, 0x20, + 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, - 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x26, 0x26, 0x20, 0x61, - 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, - 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, + 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, + 0x79, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, + 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, + 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, + 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, + 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, + 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, + 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x26, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, + 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x77, 0x61, + 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, + 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, + 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x6f, 0x78, + 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, + 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, + 0x20, 0x28, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, + 0x4e, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x63, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x6f, + 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x75, 0x63, + 0x68, 0x61, 0x72, 0x20, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x6f, 0x78, 0x65, 0x6c, + 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, + 0x20, 0x6e, 0x65, 0x78, 0x74, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x6e, 0x65, 0x78, 0x74, + 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x6e, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, + 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, + 0x4f, 0x4e, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, + 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x7c, 0x7c, 0x20, 0x2a, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x75, + 0x63, 0x68, 0x61, 0x72, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2b, 0x20, + 0x31, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, + 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, + 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x61, 0x76, 0x61, 0x20, 0x26, + 0x26, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x4c, 0x61, 0x76, 0x61, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, + 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x31, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, - 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x6c, - 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, - 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, - 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x35, 0x66, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, - 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, - 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, - 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, - 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, - 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, - 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, - 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, - 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, - 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, - 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, - 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2d, - 0x20, 0x73, 0x69, 0x67, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, - 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x5b, 0x28, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, - 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, - 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, - 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x70, 0x72, 0x65, - 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x48, - 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x6f, 0x6c, 0x6c, - 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, - 0x6c, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, - 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, - 0x30, 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3e, - 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, - 0x30, 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, - 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x2e, - 0x78, 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, - 0x35, 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, - 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, - 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, - 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, - 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, - 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, - 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, - 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, - 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, - 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, - 0x5d, 0x20, 0x3c, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, - 0x74, 0x5b, 0x30, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, - 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x20, - 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x32, 0x3b, 0x20, 0x69, 0x2b, - 0x2b, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x69, 0x5d, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, - 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, - 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, - 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x20, - 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, - 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, - 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x6c, 0x61, 0x76, 0x61, 0x45, 0x78, 0x69, + 0x74, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x6c, 0x61, + 0x76, 0x61, 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, + 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x6c, 0x61, 0x62, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x79, 0x20, 0x2d, 0x3d, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x09, 0x52, + 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x20, + 0x2b, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x73, 0x6c, 0x61, 0x62, 0x45, 0x78, 0x69, 0x74, 0x20, + 0x3c, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x73, 0x6c, 0x61, 0x62, + 0x45, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, + 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, + 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, + 0x33, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x2a, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5b, 0x28, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, + 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x2b, 0x20, 0x70, 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, + 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x70, + 0x72, 0x65, 0x76, 0x56, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x70, 0x72, 0x65, 0x76, 0x54, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x47, 0x6c, 0x61, 0x73, 0x73, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, + 0x20, 0x28, 0x48, 0x61, 0x73, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, + 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, + 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x62, 0x61, 0x73, 0x65, + 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, + 0x6c, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x32, 0x5d, 0x3b, 0x0a, + 0x09, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3d, + 0x20, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, + 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, + 0x5d, 0x29, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3e, 0x20, + 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, + 0x5d, 0x20, 0x3c, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, + 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x2e, 0x78, + 0x7a, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, + 0x66, 0x29, 0x20, 0x3c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x52, 0x61, 0x79, 0x50, + 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x6f, + 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, + 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x2c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x2b, 0x20, 0x30, + 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x26, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x20, 0x26, + 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3e, 0x20, 0x2a, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3c, 0x20, + 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x28, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, + 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x29, 0x2e, 0x78, 0x7a, 0x2c, 0x20, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x29, 0x20, 0x3c, + 0x20, 0x30, 0x2e, 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x62, 0x6f, 0x6f, 0x6c, + 0x20, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x30, + 0x5d, 0x20, 0x26, 0x26, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x31, + 0x5d, 0x20, 0x26, 0x26, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, 0x20, 0x3c, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x20, 0x64, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x5b, 0x31, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x31, 0x5d, + 0x20, 0x3d, 0x20, 0x64, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x77, 0x61, 0x70, 0x20, 0x3d, 0x20, + 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x66, 0x6f, 0x72, 0x20, + 0x28, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, + 0x32, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5b, 0x69, 0x5d, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, + 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, + 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, + 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, + 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, - 0x5b, 0x69, 0x5d, 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, 0x2a, 0x20, - 0x31, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x28, 0x21, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, - 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, - 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, - 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, - 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, - 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, - 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, - 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, - 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, - 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, - 0x29, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, - 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x30, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, - 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, - 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, - 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, - 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, + 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, + 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, + 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x2a, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x20, 0x2a, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x2b, 0x20, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x2d, 0x20, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x78, 0x20, 0x3f, 0x20, 0x2d, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, + 0x20, 0x2d, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x20, 0x2a, 0x20, 0x31, 0x30, 0x2e, + 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, + 0x76, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x28, 0x21, 0x73, 0x77, 0x61, + 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7c, 0x7c, 0x20, + 0x28, 0x73, 0x77, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, + 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, 0x2c, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, 0x2d, 0x20, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, + 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x78, 0x7a, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x30, + 0x2e, 0x31, 0x34, 0x36, 0x34, 0x34, 0x36, 0x36, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x31, 0x34, 0x36, + 0x34, 0x34, 0x36, 0x36, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x7a, 0x29, + 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x79, 0x20, + 0x2d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x79, 0x29, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, + 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, + 0x6c, 0x65, 0x2c, 0x20, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x75, 0x76, 0x20, 0x3d, + 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, + 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, + 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, + 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, + 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x21, 0x3d, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0a, + 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, + 0x65, 0x3b, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, + 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, + 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, + 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, + 0x65, 0x2c, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x3b, 0x0a, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, + 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, + 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, + 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, + 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, - 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x21, 0x3d, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, - 0x65, 0x55, 0x56, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x64, 0x69, 0x6d, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, - 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x73, - 0x69, 0x64, 0x65, 0x2c, 0x20, 0x26, 0x75, 0x76, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, - 0x20, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, - 0x49, 0x44, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x73, 0x69, 0x64, 0x65, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x75, 0x76, 0x20, 0x3d, 0x20, 0x75, 0x76, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, - 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, 0x28, 0x69, 0x64, 0x20, 0x25, 0x20, 0x31, 0x36, 0x29, - 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x28, - 0x28, 0x69, 0x64, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x29, 0x20, 0x3c, 0x3c, 0x20, 0x34, 0x29, 0x20, - 0x7d, 0x20, 0x2f, 0x20, 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x2a, 0x63, - 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, - 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, - 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, - 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x63, 0x79, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, - 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, 0x78, 0x79, 0x7a, - 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x42, 0x72, 0x69, 0x67, - 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0d, 0x0a, 0x09, - 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, - 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, 0x0d, - 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, - 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, - 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, - 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, - 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, - 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, - 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, - 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, - 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, - 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, - 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, - 0x20, 0x28, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, - 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, - 0x69, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, - 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, - 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, - 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x75, - 0x63, 0x68, 0x61, 0x72, 0x20, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, - 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, - 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, - 0x30, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, - 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, - 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, - 0x6c, 0x20, 0x2d, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, - 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, - 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x76, 0x6f, - 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x2a, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, - 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, - 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, - 0x49, 0x4c, 0x4f, 0x4e, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, - 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, - 0x20, 0x31, 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, - 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x36, 0x34, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7d, 0x2c, 0x20, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0d, 0x0a, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x7d, - 0x0d, 0x0a, 0x0d, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, - 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, - 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, - 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, - 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, - 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, - 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, - 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, - 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, - 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x66, - 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, - 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x33, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x30, 0x2e, 0x31, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x68, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, - 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x69, 0x66, 0x20, 0x28, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, - 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, - 0x7a, 0x65, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, - 0x2e, 0x78, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, - 0x2e, 0x7a, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, - 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x68, - 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, - 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, + 0x72, 0x2c, 0x20, 0x75, 0x76, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x2d, 0x3e, 0x77, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, + 0x20, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x28, 0x2a, 0x74, 0x69, 0x6c, 0x65, + 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2d, 0x3e, + 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x64, 0x65, 0x42, + 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5b, 0x73, 0x69, 0x64, 0x65, 0x5d, 0x3b, + 0x0a, 0x09, 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x54, 0x69, 0x6c, 0x65, + 0x53, 0x69, 0x64, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5b, 0x73, 0x69, 0x64, 0x65, 0x5d, + 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, + 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x5f, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, + 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, + 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, + 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x2a, + 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x2a, + 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, + 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x49, 0x6e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x74, 0x2c, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x29, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x31, + 0x30, 0x32, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x20, 0x76, 0x6f, + 0x78, 0x65, 0x6c, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, + 0x74, 0x33, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, + 0x2a, 0x20, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x20, 0x3d, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x5b, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x79, 0x20, 0x2a, 0x20, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, + 0x7a, 0x29, 0x20, 0x2a, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x2b, + 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2e, 0x78, 0x5d, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x3e, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x52, 0x61, 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2d, 0x20, 0x28, 0x64, 0x69, 0x73, 0x74, + 0x20, 0x2d, 0x20, 0x31, 0x29, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x28, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x20, 0x2b, 0x20, 0x64, + 0x69, 0x73, 0x74, 0x29, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, + 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20, + 0x28, 0x52, 0x61, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x2c, 0x20, 0x76, 0x6f, 0x78, 0x65, 0x6c, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, + 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, + 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, + 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2d, 0x20, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, + 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x2b, 0x20, 0x4d, 0x49, 0x4e, 0x5f, + 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, + 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, + 0x4c, 0x4f, 0x4e, 0x3b, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, + 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x30, 0x32, + 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x52, 0x61, 0x79, + 0x42, 0x6f, 0x78, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x65, 0x78, 0x69, 0x74, - 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x42, 0x65, 0x64, - 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x2a, - 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x2c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, + 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x52, 0x61, 0x79, + 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, + 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, + 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x2a, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x52, 0x61, 0x79, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x74, 0x69, 0x6c, 0x65, + 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, + 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0d, 0x0a, 0x09, - 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x7d, 0x0d, - 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, - 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, - 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, - 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, - 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, - 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, - 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, - 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, - 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, - 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, - 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, - 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, - 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, - 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, - 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, - 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, - 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, - 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, - 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, - 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, - 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, - 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, - 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, - 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, - 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, - 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, - 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, - 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, - 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, - 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x28, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, - 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x32, 0x35, - 0x66, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x77, 0x29, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, - 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, - 0x0d, 0x0a, 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, - 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, 0x20, 0x70, 0x6f, 0x77, 0x28, 0x63, 0x6c, - 0x61, 0x6d, 0x70, 0x28, 0x30, 0x2e, 0x31, 0x34, 0x66, 0x20, 0x2a, 0x20, 0x6c, 0x6f, 0x67, 0x28, - 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x2c, 0x20, 0x77, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, - 0x0d, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3f, + 0x20, 0x33, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x3a, 0x20, 0x33, 0x31, 0x2e, 0x39, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x68, 0x69, 0x74, 0x20, + 0x3d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, + 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, + 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, + 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, 0x3e, 0x20, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x78, 0x20, + 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7c, 0x7c, 0x20, 0x68, 0x69, 0x74, 0x2e, 0x7a, 0x20, + 0x3c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x65, + 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x68, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x2a, 0x6e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, + 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x2a, + 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, + 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x63, + 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x2a, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x42, + 0x65, 0x64, 0x72, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x2a, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x2a, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x52, 0x61, + 0x79, 0x42, 0x6f, 0x78, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, + 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x2c, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, + 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x36, 0x34, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x7d, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x65, 0x78, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, + 0x09, 0x7d, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, @@ -1017,292 +900,363 @@ static const unsigned char Resource_Shaders_Raytracer[] = { 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, - 0x3b, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, - 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, - 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, - 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, - 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, - 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0d, - 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, 0x0a, 0x09, 0x77, - 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, - 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, - 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, - 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, - 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, - 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, + 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x34, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, + 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, + 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, + 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, + 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, + 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, + 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, + 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, + 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, + 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, + 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, - 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, - 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, - 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, - 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, - 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, - 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, - 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, - 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, - 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, - 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, - 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, - 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, - 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, + 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, + 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, + 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, 0x6f, + 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, + 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, + 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, + 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, + 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, + 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, + 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, + 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, + 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, + 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, + 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, + 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, + 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x73, 0x68, 0x61, 0x64, + 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, + 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x2b, 0x20, 0x28, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x20, 0x2b, 0x20, 0x30, 0x2e, 0x35, 0x32, 0x35, 0x66, 0x20, 0x2a, 0x20, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, + 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x29, 0x20, 0x2a, + 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x64, 0x69, + 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x20, 0x3d, + 0x20, 0x70, 0x6f, 0x77, 0x28, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x28, 0x30, 0x2e, 0x31, 0x34, 0x66, + 0x20, 0x2a, 0x20, 0x6c, 0x6f, 0x67, 0x28, 0x64, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x20, 0x31, 0x2e, + 0x30, 0x66, 0x29, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, + 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, + 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, + 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x2c, 0x20, 0x77, + 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x6f, 0x67, 0x3b, + 0x0a, 0x7d, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x69, 0x6e, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x69, + 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x62, 0x6f, + 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, + 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, + 0x69, 0x74, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x34, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, + 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, + 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, + 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, + 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, + 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, + 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, + 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, + 0x20, 0x26, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, 0x26, 0x6e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, + 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x74, 0x69, 0x6c, 0x65, + 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, + 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x6d, + 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2f, 0x20, 0x31, + 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, + 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, + 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, + 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, + 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, + 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, + 0x7a, 0x20, 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, + 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, + 0x67, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x68, 0x69, 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, - 0x74, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, - 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, - 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, - 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, - 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, - 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, - 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x68, 0x69, 0x74, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, + 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, + 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, - 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, - 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, - 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, - 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, - 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, - 0x79, 0x7a, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x0d, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, 0x72, 0x6e, - 0x65, 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, 0x69, 0x6e, - 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, 0x5f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, 0x5f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6f, 0x6e, - 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x78, - 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, - 0x20, 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, 0x5f, 0x72, - 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, - 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, - 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x20, 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x5f, 0x69, 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, + 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x72, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, + 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0a, 0x09, 0x09, 0x69, + 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, + 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, + 0x20, 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x5f, 0x5f, 0x6b, 0x65, + 0x72, 0x6e, 0x65, 0x6c, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x28, + 0x69, 0x6e, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x5f, + 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, + 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x5f, + 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2a, 0x20, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x5f, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, + 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, + 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x64, 0x74, + 0x68, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x20, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x36, 0x20, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x5f, + 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x32, 0x64, 0x5f, 0x74, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x69, 0x6e, + 0x74, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x20, 0x78, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, + 0x6c, 0x5f, 0x69, 0x64, 0x28, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x79, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x28, - 0x31, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, - 0x69, 0x64, 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, - 0x76, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, - 0x30, 0x66, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x29, 0x78, 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, - 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, - 0x0d, 0x0a, 0x09, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, 0x79, 0x20, - 0x2b, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x28, 0x31, - 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, - 0x29, 0x20, 0x2b, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, 0x35, - 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, 0x69, - 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x7d, 0x3b, 0x0d, 0x0a, - 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, - 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, - 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x61, 0x79, - 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x4d, 0x61, 0x74, + 0x31, 0x29, 0x3b, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x78, 0x20, 0x3e, 0x3d, 0x20, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x20, 0x7c, 0x7c, 0x20, 0x79, 0x20, 0x3e, 0x3d, 0x20, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, + 0x09, 0x7d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x20, 0x75, 0x76, 0x20, 0x3d, 0x20, + 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, + 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x78, + 0x20, 0x2f, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x79, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x20, 0x2d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x75, 0x76, + 0x2e, 0x78, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, + 0x74, 0x68, 0x20, 0x2f, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3b, 0x0a, 0x09, 0x69, 0x66, + 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x75, 0x76, 0x2e, 0x79, 0x20, 0x2b, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x28, + 0x75, 0x76, 0x2e, 0x78, 0x20, 0x2a, 0x20, 0x28, 0x31, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, + 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, 0x29, 0x20, 0x2b, 0x20, 0x74, 0x69, 0x6d, + 0x65, 0x29, 0x20, 0x2f, 0x20, 0x28, 0x31, 0x33, 0x35, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x31, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x29, + 0x29, 0x3b, 0x0a, 0x09, 0x7d, 0x3b, 0x0a, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x66, + 0x6f, 0x76, 0x20, 0x3d, 0x20, 0x37, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x35, 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, 0x66, 0x6f, 0x76, 0x20, - 0x2f, 0x20, 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, 0x20, 0x2d, 0x20, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, - 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, - 0x63, 0x6f, 0x73, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, - 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, - 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, + 0x33, 0x29, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x20, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x28, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x28, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2c, 0x20, 0x28, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x75, 0x76, 0x20, 0x2a, 0x20, 0x30, 0x2e, 0x35, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x35, 0x66, 0x20, 0x2f, 0x20, 0x74, 0x61, 0x6e, 0x70, 0x69, 0x28, + 0x66, 0x6f, 0x76, 0x20, 0x2f, 0x20, 0x33, 0x36, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7d, 0x29, + 0x20, 0x2d, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x29, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x29, 0x7b, 0x20, 0x63, 0x6f, 0x73, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x33, 0x2e, - 0x31, 0x34, 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x20, 0x7d, - 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, - 0x72, 0x20, 0x3d, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x3b, 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, - 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, - 0x61, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, - 0x6e, 0x2c, 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x72, 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, - 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, - 0x20, 0x2f, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x20, 0x7d, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, - 0x32, 0x35, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x30, - 0x2e, 0x33, 0x37, 0x35, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, - 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, - 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, - 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x3b, - 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x0d, 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, - 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, - 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, - 0x3b, 0x0d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, - 0x6c, 0x3b, 0x0d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0d, - 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, - 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x36, - 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, 0x53, - 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, - 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, - 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, 0x20, - 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, - 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, - 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, - 0x66, 0x20, 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, - 0x74, 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, - 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, - 0x61, 0x64, 0x6f, 0x77, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, + 0x31, 0x34, 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, 0x29, 0x2c, 0x20, + 0x31, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x28, 0x31, 0x34, 0x2e, 0x30, 0x66, 0x20, + 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, + 0x20, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, 0x32, 0x36, 0x35, 0x33, 0x35, 0x38, 0x39, 0x66, + 0x29, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x20, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x57, 0x61, 0x74, + 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x72, 0x61, 0x67, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, + 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x0a, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x55, 0x6e, 0x64, + 0x65, 0x72, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x34, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x61, 0x64, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, + 0x20, 0x54, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x20, 0x2f, 0x20, 0x28, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x77, 0x69, 0x64, 0x74, 0x68, 0x2c, 0x20, 0x79, 0x20, 0x2f, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x29, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x7d, + 0x20, 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x20, 0x2b, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x32, 0x29, 0x7b, 0x20, 0x32, 0x32, 0x34, 0x2e, 0x30, 0x66, 0x20, 0x2f, 0x20, 0x32, 0x35, + 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x09, + 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x30, 0x2e, 0x33, 0x37, + 0x35, 0x66, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, + 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x78, 0x79, 0x7a, + 0x20, 0x2a, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, + 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x3b, 0x0a, 0x09, 0x09, 0x66, 0x72, 0x61, + 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, + 0x20, 0x2d, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x09, + 0x0a, 0x09, 0x75, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x3b, 0x0a, 0x09, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x65, 0x78, 0x69, 0x74, + 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, + 0x73, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x34, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x30, 0x2e, 0x30, + 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, + 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x20, 0x3d, 0x20, + 0x30, 0x3b, 0x0a, 0x09, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x77, 0x20, 0x3c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x69, 0x20, 0x3c, + 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x52, 0x61, 0x79, + 0x53, 0x63, 0x65, 0x6e, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, + 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, + 0x2c, 0x20, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x2c, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, + 0x72, 0x2c, 0x20, 0x26, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x26, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2c, 0x20, 0x26, 0x65, 0x78, 0x69, 0x74, 0x2c, 0x20, 0x26, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2c, + 0x20, 0x26, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, + 0x09, 0x09, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, 0x2b, 0x3d, 0x20, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x28, 0x31, 0x2e, 0x30, 0x66, 0x20, + 0x2d, 0x20, 0x6d, 0x69, 0x6e, 0x28, 0x77, 0x61, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x20, + 0x2f, 0x20, 0x31, 0x36, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x29, 0x29, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, + 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, + 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, + 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x20, 0x2b, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, + 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, + 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, + 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x46, 0x6f, 0x67, 0x28, + 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, + 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, + 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, + 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, + 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x3b, 0x0a, + 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, + 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x29, 0x3b, 0x0a, 0x09, 0x09, + 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x64, 0x6f, + 0x74, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x3c, + 0x20, 0x30, 0x2e, 0x30, 0x66, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, + 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x72, 0x61, + 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, 0x20, 0x2a, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x72, + 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x20, 0x2a, 0x20, 0x6e, 0x6f, + 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, + 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x63, - 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x20, 0x66, 0x6f, 0x67, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, - 0x65, 0x46, 0x6f, 0x67, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x29, - 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, - 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, - 0x20, 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, - 0x66, 0x6f, 0x67, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, - 0x3d, 0x20, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x29, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x3e, 0x20, 0x30, - 0x2e, 0x30, 0x66, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, - 0x20, 0x26, 0x26, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, - 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b, 0x0d, - 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x6f, 0x72, 0x6d, - 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, 0x72, 0x61, 0x79, 0x20, 0x2d, 0x20, 0x32, 0x2e, 0x30, 0x66, - 0x20, 0x2a, 0x20, 0x64, 0x6f, 0x74, 0x28, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x6f, 0x72, 0x6d, - 0x61, 0x6c, 0x29, 0x20, 0x2a, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x29, 0x3b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x20, 0x3d, 0x20, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x2c, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x2c, 0x20, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x69, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x72, 0x61, 0x79, - 0x20, 0x2a, 0x20, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x2b, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x20, 0x2a, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, - 0x4f, 0x4e, 0x2c, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, - 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, - 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x29, 0x3b, 0x0d, 0x0a, 0x09, + 0x53, 0x69, 0x7a, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x69, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, + 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, + 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, - 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x2a, 0x20, 0x72, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x20, 0x2a, 0x20, 0x66, 0x72, - 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, - 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x6e, 0x65, 0x73, 0x73, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, - 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x09, + 0x20, 0x2b, 0x3d, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2a, 0x20, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x20, 0x2a, 0x3d, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x2d, 0x20, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x69, 0x6c, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, - 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, - 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, - 0x61, 0x74, 0x65, 0x72, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, - 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x09, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, - 0x54, 0x45, 0x50, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x09, 0x09, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, - 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0d, 0x0a, 0x09, 0x09, - 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, - 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, - 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0d, 0x0a, 0x09, - 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, - 0x09, 0x0d, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, 0x0d, 0x0a, 0x09, 0x09, - 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, 0x7b, 0x0d, 0x0a, - 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, - 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, 0x2e, 0x30, - 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, 0x7d, 0x3b, - 0x0d, 0x0a, 0x09, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x7d, 0x0d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, - 0x2c, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, - 0x2c, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, - 0x7d, 0x29, 0x3b, 0x0d, 0x0a, 0x7d, 0x0d, 0x0a, 0x00 + 0x74, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x74, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, + 0x09, 0x69, 0x6e, 0x57, 0x61, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x21, 0x69, 0x6e, 0x57, 0x61, + 0x74, 0x65, 0x72, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, + 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x3c, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, + 0x53, 0x54, 0x45, 0x50, 0x29, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x78, 0x69, 0x74, + 0x20, 0x3d, 0x20, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x3b, + 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x20, + 0x2b, 0x3d, 0x20, 0x72, 0x61, 0x79, 0x20, 0x2a, 0x20, 0x28, 0x65, 0x78, 0x69, 0x74, 0x20, 0x2b, + 0x20, 0x45, 0x50, 0x53, 0x49, 0x4c, 0x4f, 0x4e, 0x29, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x20, 0x65, + 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x20, 0x2b, 0x3d, 0x20, 0x42, 0x47, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x28, 0x72, 0x61, 0x79, 0x29, 0x20, 0x2a, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x2e, 0x77, 0x3b, 0x0a, 0x09, 0x09, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, + 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x0a, 0x09, 0x09, 0x69, 0x20, 0x2b, 0x3d, 0x20, 0x31, 0x3b, + 0x0a, 0x09, 0x09, 0x69, 0x66, 0x20, 0x28, 0x69, 0x20, 0x3d, 0x3d, 0x20, 0x36, 0x34, 0x29, 0x20, + 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, + 0x79, 0x7a, 0x20, 0x3d, 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x29, 0x7b, 0x20, 0x31, + 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x2c, 0x20, 0x30, 0x2e, 0x30, 0x66, 0x20, + 0x7d, 0x3b, 0x0a, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x7d, 0x0a, 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x66, 0x28, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x2c, + 0x20, 0x28, 0x69, 0x6e, 0x74, 0x32, 0x29, 0x7b, 0x20, 0x78, 0x2c, 0x20, 0x79, 0x20, 0x7d, 0x2c, + 0x20, 0x28, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x34, 0x29, 0x7b, 0x20, 0x66, 0x72, 0x61, 0x67, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x78, 0x79, 0x7a, 0x2c, 0x20, 0x31, 0x2e, 0x30, 0x66, 0x20, 0x7d, + 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x00 }; diff --git a/Scripts/EmbedResources.py b/Scripts/EmbedResources.py index 73e3e05..1640a7a 100644 --- a/Scripts/EmbedResources.py +++ b/Scripts/EmbedResources.py @@ -39,12 +39,19 @@ def embed_file(filePath, outPath): input.close() output.close() -for subdir, dirs, files in os.walk(RESOURCE_PATH): - for fileName in files: - filePath = subdir + os.sep + fileName - if filePath.endswith('.png'): - embed_png(filePath, filePath[:-4] + '.h') - elif filePath.endswith('.ogg'): - embed_file(filePath, filePath[:-4] + '.h') - elif filePath.endswith('.cl'): - embed_file(filePath, filePath[:-3] + '.h') +if len(sys.argv) == 2: + for subdir, dirs, files in os.walk(RESOURCE_PATH): + for fileName in files: + filePath = subdir + os.sep + fileName + if filePath.endswith(sys.argv[1]): + embed_file(filePath, filePath[:-len(sys.argv[1])] + '.h') +else: + for subdir, dirs, files in os.walk(RESOURCE_PATH): + for fileName in files: + filePath = subdir + os.sep + fileName + if filePath.endswith('.png'): + embed_png(filePath, filePath[:-4] + '.h') + elif filePath.endswith('.ogg'): + embed_file(filePath, filePath[:-4] + '.h') + elif filePath.endswith('.cl'): + embed_file(filePath, filePath[:-3] + '.h') From 43314f6fe88de03192b2941729997745b9f92567 Mon Sep 17 00:00:00 2001 From: John Payne <79012575+johnpayne-dev@users.noreply.github.com> Date: Sun, 31 Jul 2022 13:33:20 -0500 Subject: [PATCH 13/13] Update readme for v1.2 --- README.md | 54 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index d4d2605..997b384 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,37 @@ -# MinecraftC - A Minecraft Classic Port to C +# MinecraftC - A Raytraced Minecraft Classic Port to C ### Features: - True to the original version (0.0.30a) -- Saving and loading levels -- Original music and sounds - Implemented fully in C using SDL2 and OpenGL 1.1 +- Original music and sounds +- A modded and vanilla version - Works on Windows, Linux, and MacOS - CMake build system +#### Raytracing: +- Uses an 8-bit distance field as an acceleration structure +- In some cases, performance is better than the original + - 60+ fps at 1080p on the integrated graphics cards I've tested +- To enable raytracing, download the modded binary and enable it in the mods screen under options ## Screenshots -Screen Shot 2021-08-16 at 6 22 31 PM -Screen Shot 2021-08-16 at 6 24 26 PM -Screen Shot 2021-08-16 at 6 28 46 PM +Screen Shot 2022-07-31 at 12 57 49 PM +Screen Shot 2022-07-31 at 12 57 54 PM +Screen Shot 2022-07-31 at 12 43 33 PM +Screen Shot 2022-07-31 at 12 43 39 PM -## Download -- [MinecraftC Releases](https://github.com/johnpayne-dev/MinecraftC/releases) - -## Planned features -- Raytracing mode -- (Possibly) A modding system -- (Possibly) Support for mobile and web platforms +## Downloads +- There are two versions, modded and vanilla, where vanilla doesn't have the option to turn on mods +- [Windows 32 bit](https://github.com/johnpayne-dev/MinecraftC/releases) +- [Windows 64 bit](https://github.com/johnpayne-dev/MinecraftC/releases) +- [MacOS x86_64](https://github.com/johnpayne-dev/MinecraftC/releases) +- [MacOS ARM](https://github.com/johnpayne-dev/MinecraftC/releases) ## Building - +Note: if you would like to build the vanilla version, remove `-DMINECRAFTC_MODS=1` from the cmake command ### Requirements: -- `git`, `cmake` and a compiler of your choice +- `git` +- `cmake` +- A compiler of your choice ### Windows instructions for Visual Studio: 1. Run the following commands: @@ -33,7 +40,7 @@ git clone --recursive https://github.com/johnpayne-dev/MinecraftC.git cd MinecraftC mkdir Build cd Build -cmake -G"Visual Studio 17" .. # replace "Visual Studio 17" with your version +cmake -DMINECRAFTC_MODS=1 -G"Visual Studio 17" .. # replace "Visual Studio 17" with your version ``` 2. You should now have `MinecraftC.sln` in your directory that you can open with Visual Studio and build @@ -43,17 +50,17 @@ cmake -G"Visual Studio 17" .. # replace "Visual Studio 17" with your version git clone --recursive https://github.com/johnpayne-dev/MinecraftC.git cd MinecraftC mkdir Build && cd Build -cmake -GXcode .. +cmake -DMINECRAFTC_MODS -GXcode .. ``` 2. You should now have `MinecraftC.xcodeproj` in your directory that you open with Xcode and build 3. (optional) If you would like it in a .app format, you can run this command to convert your executable: -```sh +``` python3 Scripts/MacOS-App.py [developer-id] ``` Providing the developer id will sign the .app, which you can find by running `security find-identity` -### Linux instructions (currently untested, I have no access to a linux machine at the moment): +### Linux instructions (untested): 1. If you don't have SDL2 already, run these commands: ```sh sudo apt-get update @@ -61,10 +68,10 @@ sudo apt-get install libsdl2-dev ``` 2. Run the following commands: ```sh -git clone https://github.com/johnpayne-dev/MinecraftC.git +git clone --recursive https://github.com/johnpayne-dev/MinecraftC.git cd MinecraftC mkdir Build && cd Build -cmake .. +cmake -DMINECRAFTC_MODS=1 .. make ``` @@ -76,6 +83,7 @@ python3 Scripts/EmbedResources.py It will recursively go through all `.png` and `.ogg` files in `Resources/`, and convert them to `.h` ## Known Issues -- There is no survival mode, it was removed for simplicity and compatibility with raytracing (not released yet) -- A few sounds have the incorrect pitch, I'm waiting for cute_sound.h to implement pitch shifting (which is planned) +- There is no survival mode, it was removed for simplicity and compatibility with raytracing +- A few sounds have the incorrect pitch, I'm waiting for cute_sound.h to implement pitch shifting - Load file and save file are not implemented +- If raytracing doesn't turn on, then something is going wrong with OpenCL, report an issue and I can help troubleshoot