From f5224a291fb61dad8ddf52e8e1a8a3cab1ee61c9 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:08:32 +0100 Subject: [PATCH 01/17] Let a cppFunction callback answer later: a ResultTask or sender owned by the connection and the server scope (#459) --- AGENTS.md | 2 +- docs/ASYNC_EXECUTION.md | 18 ++ .../ADR-004-appels-asynchrones-et-erreurs.md | 15 +- docs/adr/ADR-020-services-systeme.md | 19 +- include/webfront/DeferredCalls.hpp | 108 +++++++ include/webfront/Task.hpp | 5 + include/webfront/WebFront.hpp | 141 ++++++++- test/unit/CMakeLists.txt | 4 +- test/unit/DeferredCallTests.cpp | 276 ++++++++++++++++++ test/web/JasmineTest.cpp | 12 + test/web/suite/specs/webfront-specs.mjs | 17 ++ 11 files changed, 598 insertions(+), 19 deletions(-) create mode 100644 include/webfront/DeferredCalls.hpp create mode 100644 test/unit/DeferredCallTests.cpp diff --git a/AGENTS.md b/AGENTS.md index ac9b07dc..cd1d5684 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -102,7 +102,7 @@ The HTTP server connections and the WebSocket read/write loops are coroutines (` Filesystems implement `open(std::filesystem::path) -> std::optional` and are composed with `fs::Multi<>`; the first provider returning a file wins. `NativeDebugFS` is development-only and must not be presented as a production sandbox. -Bridge calls are asynchronous, and the two directions differ. `webFront.cppFunction(name)(...)` always returns a JavaScript Promise (also for `void` callbacks), so tests and examples must await or handle it. On the C++ side, only the untyped `ui.jsFunction(name)(...)` is fire-and-forget; `ui.jsFunction(name)(...)` returns a `std::future`. `ui.jsFunctionSender(name)(...)` owns encoded arguments and dispatches at sender start; co_await propagates the receiver stop token. Cancellation completes stopped locally and discards a late reply; JavaScript continues running. See `docs/ASYNC_EXECUTION.md` for lifetime and completion-thread rules. On missing functions, callback exceptions, malformed returns, and disconnects, a C++ future completes exceptionally (`get()` throws) and a JavaScript Promise rejects. Result types are limited to the bridge's scalar, string, tuple, numeric typed-array, packed `std::bitset` and list types. A list is a `std::vector` of strings, tuples, typed arrays or bitsets (JavaScript: `webFront.list(items)`, received as an `Array`; a plain short array is a tuple that a `std::vector` destination also accepts); elements are homogeneous and lists do not nest. Bitsets use `Uint8Array` with exactly `ceil(N / 8)` bytes, least-significant bit first in each byte, and zero high padding bits; decoding rejects wrong types, sizes and padding. JavaScript must know the logical bit count from the application contract. Strings of 65,536 bytes or more use the `longString` code (32-bit length), chosen by the encoder; the only bound is the buffers policy's `maxMessageSize` (64 MiB by default, JavaScript's `maxMessageBytes`): beyond it C++ throws `std::length_error` when it encodes, which rejects the Promise when it is a callback's result, and JavaScript throws a `RangeError` before sending. Callback signatures are deduced for ordinary lambdas, function pointers, and `std::function`; generic lambdas and overloaded call operators need explicit `cppFunction`. Do not write tests or documentation that present JavaScript calls as fire-and-forget, imply an untyped C++ call returns a value, or suggest that richer objects cross the bridge (only the types above do). Registered callback objects must outlive their registration through owned storage; never capture a forwarding-reference parameter by reference in a stored handler. +Bridge calls are asynchronous, and the two directions differ. `webFront.cppFunction(name)(...)` always returns a JavaScript Promise (also for `void` callbacks), so tests and examples must await or handle it. On the C++ side, only the untyped `ui.jsFunction(name)(...)` is fire-and-forget; `ui.jsFunction(name)(...)` returns a `std::future`. `ui.jsFunctionSender(name)(...)` owns encoded arguments and dispatches at sender start; co_await propagates the receiver stop token. Cancellation completes stopped locally and discards a late reply; JavaScript continues running. See `docs/ASYNC_EXECUTION.md` for lifetime and completion-thread rules. On missing functions, callback exceptions, malformed returns, and disconnects, a C++ future completes exceptionally (`get()` throws) and a JavaScript Promise rejects. Result types are limited to the bridge's scalar, string, tuple, numeric typed-array, packed `std::bitset` and list types. A list is a `std::vector` of strings, tuples, typed arrays or bitsets (JavaScript: `webFront.list(items)`, received as an `Array`; a plain short array is a tuple that a `std::vector` destination also accepts); elements are homogeneous and lists do not nest. Bitsets use `Uint8Array` with exactly `ceil(N / 8)` bytes, least-significant bit first in each byte, and zero high padding bits; decoding rejects wrong types, sizes and padding. JavaScript must know the logical bit count from the application contract. Strings of 65,536 bytes or more use the `longString` code (32-bit length), chosen by the encoder; the only bound is the buffers policy's `maxMessageSize` (64 MiB by default, JavaScript's `maxMessageBytes`): beyond it C++ throws `std::length_error` when it encodes, which rejects the Promise when it is a callback's result, and JavaScript throws a `RangeError` before sending. A `cppFunction` callback may return a sender (a `webfront::ResultTask` coroutine): the Promise settles when it completes, the browser's disconnection stops it and drops its answer, and shutdown joins it. Callback signatures are deduced for ordinary lambdas, function pointers, and `std::function`; generic lambdas and overloaded call operators need explicit `cppFunction`. Do not write tests or documentation that present JavaScript calls as fire-and-forget, imply an untyped C++ call returns a value, or suggest that richer objects cross the bridge (only the types above do). Registered callback objects must outlive their registration through owned storage; never capture a forwarding-reference parameter by reference in a stored handler. The embedded `WebFront.js` wire format and C++ `Messages.hpp` implementation must evolve together. Any protocol change requires encoding/decoding unit tests and a real-browser regression test. diff --git a/docs/ASYNC_EXECUTION.md b/docs/ASYNC_EXECUTION.md index c65cd70b..fda1f33b 100644 --- a/docs/ASYNC_EXECUTION.md +++ b/docs/ASYNC_EXECUTION.md @@ -177,6 +177,24 @@ cancellation API. The untyped `ui.jsFunction(name)` remains fire-and-forget. JavaScript-to-C++ calls still always return Promises. None of these changes adds richer bridge result types or remote Promise cancellation. +## Callbacks that answer later + +A function registered with `cppFunction` may return a sender, in practice a coroutine `webfront::ResultTask` +(`ResultTask` for no value), instead of its result: the JavaScript Promise settles when it completes, not when +the callback returns. The callback itself runs at once on the server context and only builds the task; the task is +spawned in the server's scope and tracked by its connection. When the browser disconnects its tasks are asked to stop +and their late answers are dropped; shutting the application down stops and joins them. Completing stopped without a +stop request rejects with `webfront.cancelled`. Calls are correlated by the identifier JavaScript chose, so several can +be in flight per connection; reusing an identifier still in flight is refused. The answer is sent from the server +context, whichever thread the awaited operation completed on. + +```cpp +app.cppFunction("slowSquare", [&app](int value) -> webfront::ResultTask { + co_await app.resumeAfter(std::chrono::seconds(1)); + co_return value * value; +}); +``` + ## Threads WebFront runs its HTTP/WebSocket server on one thread: the thread `show()` starts, or the thread diff --git a/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md b/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md index 54f090f1..9095f663 100644 --- a/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md +++ b/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md @@ -12,11 +12,12 @@ | 2.3 | 2026-10-13 | Acceptée | Ambroise Leclerc | Contrat explicite de l’asymétrie et couverture séparée des échecs dans les deux directions. | [aa7457b](https://github.com/ambroise-leclerc/WebFront/commit/aa7457ba98b6cf8109838e98345cfcfaa52d82f0) | | 2.4 | 2026-10-18 | Acceptée | Ambroise Leclerc | API de senders différée et annulation locale, en complément des futures. | [0657923](https://github.com/ambroise-leclerc/WebFront/commit/0657923697ef697019f2a898754740971e79a79f) | | 2.5 | 2026-11-05 | Proposée | Ambroise Leclerc | Erreurs typées : un rejet porte un code (`BridgeError`, `Error.code`) en plus de son message (#458, ADR-020). | À renseigner après intégration. | +| 2.6 | 2026-11-05 | Proposée | Ambroise Leclerc | Réponse différée : un callback `cppFunction` peut renvoyer un sender ou un `ResultTask` (#459, ADR-020). | À renseigner après intégration. | ## État et chronologie -**Acceptée** jusqu'à la version 2.4 ; l'extension 2.5 est **proposée**. Décision initiale : **2022-02-06** (version 1.0). -Dernière révision : **2026-11-05** (version 2.5). +**Acceptée** jusqu'à la version 2.4 ; les extensions 2.5 et suivantes sont **proposées**. Décision initiale : **2022-02-06** (version 1.0). +Dernière révision : **2026-11-05** (version 2.6). Le présent texte expose la décision en vigueur ; le tableau retrace ses états antérieurs. ## Contexte @@ -47,6 +48,16 @@ le code générique `webfront.error`. Les codes `webfront.notFound` (fonction ab résultat mal formé), `webfront.disconnected` (connexion fermée, y compris pour un appel sur un pont non connecté) et `webfront.cancelled` sont réservés à WebFront et distincts de ceux des applications, qui ne peuvent ni les construire (`std::invalid_argument`) ni les envoyer depuis JavaScript. +Un callback qui renvoie un sender, un `webfront::ResultTask` (`ex::task`) ou `ResultTask`, répond quand il +se termine : la Promise se résout avec la valeur encodée, se rejette s'il échoue (message et code) et, s'il se termine +arrêté sans que l'appel l'ait été, avec `webfront.cancelled`. Le travail est possédé par la portée du serveur et par la +connexion : la fermeture de la connexion demande son arrêt et écarte la réponse tardive sans rien envoyer, l'arrêt de +l'application l'arrête et le joint. La réponse est émise sur le contexte du serveur. Plusieurs appels différés d'une +connexion sont simultanés, chacun identifié par l'identifiant sur 16 bits que choisit JavaScript (au plus 65 535 en +vol : au-delà, `Too many outstanding WebFront calls` rejette côté navigateur) ; un identifiant déjà en vol est refusé +(`webfront.malformed`, « already in use ») sans toucher à l'appel en cours. Une exception levée avant le retour du +sender rejette aussitôt. Aucun délai automatique : un sender qui ne se termine jamais laisse la Promise en attente +jusqu'à la déconnexion. Les callbacks enregistrés sont possédés par le stockage de l’application. Les signatures ordinaires sont déduites ; les lambdas génériques et opérateurs surchargés utilisent `cppFunction` explicitement. diff --git a/docs/adr/ADR-020-services-systeme.md b/docs/adr/ADR-020-services-systeme.md index 77ba6914..d0f18a9d 100644 --- a/docs/adr/ADR-020-services-systeme.md +++ b/docs/adr/ADR-020-services-systeme.md @@ -46,12 +46,9 @@ différentes. - Le serveur HTTP ne traite que `GET` et `HEAD` ; les écritures passent par le pont, par morceaux séquentiels (modèle de l'installation `wf`, ADR-010). -- Les chaînes du pont sont bornées à 65 535 octets par leur en-tête (longueur sur 16 bits, `maxStringBytes`) ; ce - n'est pas une limite de WebSocket. Les tableaux typés ont une longueur sur 32 bits et un message est borné à 64 Mio - par défaut (`BuffersPolicy`). Le pont ne transporte ni liste de chaînes ni liste d'enregistrements, et un rejet ne - porte qu'un message (ADR-003, ADR-004). -- `cppFunction` encode immédiatement le résultat du callback et `webfront::Task` (`ex::task`) n'est pas un - template : un callback ne peut pas différer sa réponse jusqu'à la fin d'une coroutine, d'un dialogue ou d'une lecture. +- Le pont transporte les chaînes jusqu'à la taille de message de la politique (`longString`, 32 bits), des listes de + chaînes, de tuples et de tableaux typés, des erreurs à code (`BridgeError`) et des réponses différées + (`cppFunction` acceptant un `webfront::ResultTask`), depuis l'épique #448 (ADR-003, ADR-004). - Un fournisseur (ADR-002) ne voit que `open(path)` et rend un `fs::File` ; il ne voit ni la requête (`Range`), ni la connexion, ni des jetons émis à l'exécution. Le serveur copie le fichier entier dans la réponse avant l'envoi (`readFile`) : la mémoire croît avec la taille du fichier, ce qui interdit les gros fichiers sur cible embarquée. @@ -305,25 +302,21 @@ lève). ### 5. Appels depuis C++ et depuis JavaScript -Esquisse ; les noms ne sont pas contractuels avant l'implémentation. `cppFunction` répond aujourd'hui dès le retour -du callback : la forme ci-dessous suppose la **réponse différée** des préalables (un callback qui renvoie une tâche à -résultat, `ex::task`). La Promise JavaScript se résout quand la tâche se termine, avec la valeur encodée ; elle se +Esquisse ; les noms de services ne sont pas contractuels avant l'implémentation. `cppFunction` accepte un callback qui +renvoie une tâche à résultat (`webfront::ResultTask`, alias de `ex::task`) et répond à la fin de la tâche. La Promise JavaScript se résout quand la tâche se termine, avec la valeur encodée ; elle se rejette si la tâche lève (message et code d'erreur typé) ou se termine arrêtée (code d'annulation), et à la déconnexion, qui demande l'arrêt de la tâche et écarte sa réponse. ```cpp webfront::services::Files files{app, {.roots = {{"Données", dataDirectory}}, .backends = Backends::automatic}}; -app.cppFunction("importer", [&](App::UI ui) -> ex::task { +app.cppFunction("importer", [&](App::UI ui) -> webfront::ResultTask { auto picked = co_await files.open(ui, {.title = "Importer", .filters = {{"Images", {"*.png", "*.jpg"}}}}); for (auto& grant : picked) load(grant.path()); // C++ : autorisation complète co_return static_cast(picked.size()); // résout la Promise de la page }); ``` -Sans cette extension, une application peut seulement lancer le travail avec `ui.spawn(task)` et répondre aussitôt ; -la Promise se résout alors avant la fin du dialogue, et le résultat comme les erreurs doivent revenir par un appel -`ui.jsFunction` séparé. Cette forme dégradée ne sert pas de contrat aux services. ```ts import { files } from "@webfront/services/files"; diff --git a/include/webfront/DeferredCalls.hpp b/include/webfront/DeferredCalls.hpp new file mode 100644 index 00000000..3c6a3b23 --- /dev/null +++ b/include/webfront/DeferredCalls.hpp @@ -0,0 +1,108 @@ +/// @brief The JavaScript calls a C++ callback has not answered yet, per browser connection. +#pragma once + +#include "Task.hpp" +#include "weblink/Messages.hpp" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace webfront::detail { + +template +struct single_value { + static_assert(sizeof...(Values) <= 1, "A deferred callback must complete with at most one value"); + using type = void; +}; +template +struct single_value { + using type = std::decay_t; +}; +template +struct only_completion { + static_assert(sizeof...(Alternatives) == 1, "A deferred callback must have exactly one kind of value completion"); +}; +template +struct only_completion { + using type = typename Alternative::type; +}; + +/// A callback answers later when it returns a sender (a `ResultTask` among them) instead of the result itself. +template +concept deferred_result = !std::is_void_v && networking::ex::sender>; + +/// The value the sender completes with (`void` for none). +template +using deferred_value_t = typename networking::ex::value_types_of_t, networking::ex::env<>, single_value, only_completion>; + +/// The calls of one connection that a callback answers later, with the tasks that will answer them. The connection's +/// closure stops every one of them, and a call whose identifier is still in flight cannot be started again. +class DeferredCalls { +public: + /// Claims the identifier of a call (zero, which asks for no answer, is never in flight) and returns the key of its + /// entry, or 0 when the connection closed or a call of that identifier has not been answered yet. + [[nodiscard]] std::uint64_t reserve(msg::CallId callId) { + std::lock_guard lock(mutex); + if (closed || (callId != 0 && !inFlight.insert(callId).second)) + return 0; + const auto key = ++lastKey; + tasks.emplace(key, std::optional{}); + return key; + } + + /// Remembers the task that will answer the reserved call, to stop it if the connection closes. + void attach(std::uint64_t key, TaskHandle handle) { + bool stop = false; + { + std::lock_guard lock(mutex); + if (auto found = tasks.find(key); found != tasks.end()) + found->second = handle; + stop = closed; + } + if (stop) + handle.requestStop(); + } + + /// The call is answered, or dropped: its identifier can be used again. + void finish(msg::CallId callId, std::uint64_t key) { + std::lock_guard lock(mutex); + inFlight.erase(callId); + tasks.erase(key); + } + + /// The connection closed: every unanswered call is stopped and its late answer will be dropped. + void close() { + std::vector stopping; + { + std::lock_guard lock(mutex); + closed = true; + for (const auto& [key, handle] : tasks) + if (handle) + stopping.push_back(*handle); + } + for (const auto& handle : stopping) + handle.requestStop(); + } + + [[nodiscard]] std::size_t pending() const { + std::lock_guard lock(mutex); + return tasks.size(); + } + +private: + mutable std::mutex mutex; + std::set inFlight; + std::map> tasks; + std::uint64_t lastKey = 0; + bool closed = false; +}; + +} // namespace webfront::detail diff --git a/include/webfront/Task.hpp b/include/webfront/Task.hpp index 550f9ef6..7b3db523 100644 --- a/include/webfront/Task.hpp +++ b/include/webfront/Task.hpp @@ -8,6 +8,11 @@ namespace webfront { using Task = networking::Task; +/** @brief A coroutine with a result: the type a callback registered with `cppFunction` returns to answer later. + * `co_return value;` resolves the JavaScript Promise with the value; an exception rejects it. */ +template +using ResultTask = networking::ex::task; + /** @brief Requests cancellation of one spawned task. Discarding the handle does not stop it. */ class TaskHandle { std::shared_ptr source{std::make_shared()}; diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index ba1bf505..7395cc05 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -6,6 +6,7 @@ #include "BridgeError.hpp" #include "Broadcast.hpp" +#include "DeferredCalls.hpp" #include "dom/Document.hpp" #include "frontend/Frontend.hpp" #include "http/HTTPServer.hpp" @@ -354,6 +355,32 @@ websocket::Frame makeFailureFrame(msg::CallId callId, const std::exception& return frame; } +/// A self-contained return message carrying `value`, or the failure of its encoding (a string over the message size). +template +websocket::Frame makeValueFrame(msg::CallId callId, const Value& value) { + msg::FunctionReturn result; + result.setCallId(callId); + websocket::Frame frame{std::span(reinterpret_cast(result.header().data()), result.header().size())}; + try { + if constexpr (!std::is_void_v) + result.encodeParameter(value, frame); + frame.freeze(); + return frame; + } catch (const std::exception& error) { + return makeFailureFrame(callId, error); + } +} + +/// A return message without value. +template +websocket::Frame makeVoidFrame(msg::CallId callId) { + msg::FunctionReturn result; + result.setCallId(callId); + websocket::Frame frame{std::span(reinterpret_cast(result.header().data()), result.header().size())}; + frame.freeze(); + return frame; +} + template auto makeCppFunctionResponder(Callable&& callable) { return [callable = std::forward(callable)](std::span data, auto& link, msg::CallId callId, auto&&... caller) mutable { @@ -833,7 +860,9 @@ class BasicWF { */ template bool cppFunction(std::string functionName, auto&& function) { - if constexpr (detail::takes_caller::value) + if constexpr (detail::deferred_result) + return registerDeferred(std::move(functionName), std::forward(function)); + else if constexpr (detail::takes_caller::value) return registerWithCaller(std::move(functionName), std::forward(function)); else { auto callable = detail::makeCppFunctionHandler(std::forward(function)); @@ -966,6 +995,109 @@ class BasicWF { released.swap(webLinks); } + /// A callback that returns a sender (a ResultTask among them) answers when it completes, not when it returns: the + /// call is owned by the connection (its closure stops the work and drops the late answer) and by the server scope + /// (shutdown stops and joins it). The answer is sent on the server context. + template + bool registerDeferred(std::string functionName, auto&& function) { + const auto start = [this](auto invoke, WebLink& link, msg::CallId callId, UI caller) { + startDeferred(std::move(invoke), link, callId, caller); + }; + if constexpr (detail::takes_caller::value) { + auto handler = registerDeferredHandler(std::forward(function)); + return cppFunctions + .try_emplace(std::move(functionName), + [start, handler](std::span data, WebLink& link, msg::CallId callId, UI caller) mutable { + start([&] { return handler(data, caller); }, link, callId, caller); + }) + .second; + } else { + auto handler = detail::makeCppFunctionHandler(std::forward(function)); + return cppFunctions + .try_emplace(std::move(functionName), + [start, handler](std::span data, WebLink& link, msg::CallId callId, UI caller) mutable { + start([&] { return handler(data); }, link, callId, caller); + }) + .second; + } + } + + template + auto registerDeferredHandler(auto&& function) { + return detail::makeCppFunctionHandler(detail::adaptCaller(std::forward(function))); + } + + /// Calls the callback, then hands the sender it returned to a task that answers when it completes. + template + void startDeferred(Invoke invoke, WebLink& link, msg::CallId callId, UI caller) { + std::optional> sender; + try { + sender.emplace(invoke()); + } catch (const std::exception& error) { + if (callId != 0) + link.sendFrame(detail::makeFailureFrame(callId, error)); + return; + } catch (...) { + if (callId != 0) + link.sendFrame(detail::makeFailureFrame(callId, std::runtime_error{"Unknown C++ exception"})); + return; + } + const auto [calls, generation] = deferredCallsOf(caller); + const auto key = calls ? calls->reserve(callId) : 0; + if (key == 0) { + // The connection closed, or the browser reused the identifier of a call that is still running. + if (callId != 0) + link.sendError(callId, calls ? "The call identifier is already in use" : "Browser connection closed", + calls ? bridge_code::malformed : bridge_code::disconnected); + return; + } + const auto handle = spawn(respondLater(caller, generation, calls, callId, key, std::move(*sender))); + calls->attach(key, handle); + } + + std::pair, WebLinkGeneration> deferredCallsOf(const UI& caller) const { + std::scoped_lock lock{linksMutex}; + const auto found = webLinks.find(caller.id()); + if (found == webLinks.end() || found->second.closed) + return {nullptr, WebLinkGeneration{0}}; + return {found->second.deferredCalls, found->second.generation}; + } + + /// Awaits the sender of a deferred callback and sends its result, its failure, or `webfront.cancelled` when it + /// completed stopped by something other than this call's own stop request. When that request was made (the + /// connection closed, the application is stopping) nothing is sent: nobody is left to read it. + template + Task respondLater(UI caller, WebLinkGeneration generation, std::shared_ptr calls, msg::CallId callId, std::uint64_t key, Sender sender) { + struct Finish { + detail::DeferredCalls& calls; + msg::CallId callId; + std::uint64_t key; + ~Finish() { calls.finish(callId, key); } + } finish{*calls, callId, key}; + const auto token = co_await networking::ex::read_env(networking::ex::get_stop_token); + std::optional> answer; + try { + auto stoppable = networking::ex::stopped_as_error( + std::move(sender), std::make_exception_ptr(BridgeError::fromBridge(bridge_code::cancelled, "The C++ callback was cancelled"))); + // One answer frame whether the sender completes with a value or without: the message is built where it completes. + auto framed = networking::ex::then(std::move(stoppable), [callId](auto&&... values) -> websocket::Frame { + if constexpr (sizeof...(values) == 0) + return detail::makeVoidFrame(callId); + else + return detail::makeValueFrame(callId, values...); + }); + answer.emplace(co_await std::move(framed)); + } catch (const std::exception& error) { + answer.emplace(detail::makeFailureFrame(callId, error)); + } catch (...) { + answer.emplace(detail::makeFailureFrame(callId, std::runtime_error{"Unknown C++ exception"})); + } + if (token.stop_requested() || callId == 0) + co_return; + if (const auto link = findLink(caller.id(), generation)) + link->sendFrame(std::move(*answer)); + } + template bool registerWithCaller(std::string functionName, auto&& function) { auto adapted = detail::adaptCaller(std::forward(function)); @@ -1001,6 +1133,7 @@ class BasicWF { std::vector> deferred; // sendToStartedLinks() calls while starting bool viewAssociated = false; // presented the launch secret of an embedded view bool loopbackPeer = false; // peer address was the loopback (read only with trustLoopbackClients) + std::shared_ptr deferredCalls = std::make_shared(); // calls a callback answers later }; std::map webLinks; WebLinkId idsCounter{0}; @@ -1150,14 +1283,20 @@ class BasicWF { if (httpServer.taskScope().stopRequested()) break; std::optional closedGeneration; + std::shared_ptr stoppedCalls; { std::scoped_lock lock{linksMutex}; if (auto found = webLinks.find(event.webLinkId); found != webLinks.end()) { found->second.closed = true; found->second.deferred.clear(); closedGeneration = found->second.generation; + stoppedCalls = found->second.deferredCalls; } } + // The calls a callback has not answered are stopped and their late answers dropped, outside the lock: a + // stop callback runs on this thread. + if (stoppedCalls) + stoppedCalls->close(); // Outside linksMutex: dropping the grants destroys their contexts, whose destructors may use the application. if (closedGeneration) readBinding->close(*closedGeneration); // its read URLs stop working at once diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index a03da594..f9799092 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -29,7 +29,7 @@ list(APPEND TESTS_LIST FormsTests.cpp ReactStoreTests.cpp DomDocumentTests.cpp D list(APPEND TESTS_LIST FileSystemTests.cpp NativeFSTests.cpp DownloadsTests.cpp) list(APPEND TESTS_LIST DefaultFSTests.cpp StdnetShutdownTests.cpp SafePathTests.cpp UISubscribersTests.cpp) list(APPEND TESTS_LIST ReadBindingTests.cpp ViewAssociationTests.cpp BroadcastTests.cpp WebFrontTests.cpp WebLinkTests.cpp CEFPathsTests.cpp CEFMacrosTests.cpp) -list(APPEND TESTS_LIST DeveloperTests.cpp WfDriverTests.cpp AutomationTests.cpp AutomationChannelTests.cpp AutomationStdioTests.cpp JasmineConsumerTests.cpp HostTests.cpp LifeTests.cpp StructuredShutdownTests.cpp JsFunctionSenderTests.cpp ApplicationTaskTests.cpp) +list(APPEND TESTS_LIST DeveloperTests.cpp WfDriverTests.cpp AutomationTests.cpp AutomationChannelTests.cpp AutomationStdioTests.cpp JasmineConsumerTests.cpp HostTests.cpp LifeTests.cpp StructuredShutdownTests.cpp JsFunctionSenderTests.cpp ApplicationTaskTests.cpp DeferredCallTests.cpp) list(APPEND TESTS_LIST FrontendUrlTests.cpp ApplicationUrlTests.cpp FrontendContractTests.cpp CommandsTests.cpp EmbeddedCoreAssetsTests.cpp) if(WEBFRONT_USE_MDDLOG) list(APPEND TESTS_LIST MddlogLoggerTests.cpp MddlogTransportTests.cpp) @@ -60,7 +60,7 @@ target_compile_definitions(tests PRIVATE WEBFRONT_HOST_PROBE="$ +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +using namespace webfront; +using Socket = testing::InjectableSocket; + +namespace { + +const std::string upgradeRequest = "GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n" + "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n"; + +struct OneBrowserNet : testing::InjectableNetworking { + static inline bool accepted{}; + static auto Accept(Acceptor&) { + return networking::ex::then(networking::ex::just(), []() -> Socket { + if (std::exchange(accepted, true)) + throw std::system_error(std::make_error_code(std::errc::operation_canceled)); + return Socket{}; + }); + } +}; + +using App = BasicWF; + +/// The operations the test completes by hand, by the name of the call that awaits them. +struct Gates { + std::vector open; + void release(std::size_t index) { open.at(index).complete({}, 0); } + void stopOne(std::size_t index) { open.at(index).stop(); } +}; +Gates gates; + +testing::ManualSender gate() { + return testing::ManualSender([](testing::ManualSender::Completion completion) { gates.open.push_back(std::move(completion)); }); +} + +ResultTask echoLater(std::string value) { + co_await gate(); + co_return "answered:" + value; +} + +ResultTask failLater(std::string) { + co_await gate(); + throw BridgeError("quota:exceeded", "the disk is full"); +} + +ResultTask voidLater() { + co_await gate(); +} + +ResultTask watchedLater(std::weak_ptr* observed, std::shared_ptr lifetime) { + *observed = lifetime; + co_await gate(); + co_return "late"; +} + +/// A call from the browser: the function, its identifier and one string argument. +std::vector callMessage(const std::string& name, msg::CallId callId, const std::string& argument = "") { + msg::FunctionCall<> message; + message.setCallId(callId); + websocket::Frame frame{std::span(reinterpret_cast(message.header().data()), message.header().size())}; + message.encodeParameter(name, frame); + if (!argument.empty()) + message.encodeParameter(argument, frame); + frame.freeze(); + return testing::clientFrame(testing::messagePayload(frame)); +} + +/// Resets the shared mock socket before the application accepts its connection. +struct Fresh { + Fresh() { + Socket::reset(); + gates.open.clear(); + OneBrowserNet::accepted = false; + } +}; + +struct Browser { + Fresh fresh; + App app{WebFrontConfig{.port = "0"}}; + + void connect() { + Socket::receive(std::as_bytes(std::span(upgradeRequest))); + msg::Handshake handshake; + Socket::receive(testing::clientFrame(std::span(reinterpret_cast(handshake.header().data()), handshake.header().size()))); + } + void call(const std::string& name, msg::CallId callId, const std::string& argument = "") { + Socket::receive(callMessage(name, callId, argument)); + } + ~Browser() { + app.shutdown(); + Socket::reset(); + gates.open.clear(); + } +}; + +} // namespace + +SCENARIO("A callback that returns a task answers when the task completes", "[deferred]") { + Browser browser; + browser.app.cppFunction("echoLater", &echoLater); + browser.connect(); + + WHEN("the browser calls it") { + browser.call("echoLater", 5, "x"); + THEN("nothing is answered while the task is suspended") { + REQUIRE(gates.open.size() == 1); + REQUIRE_FALSE(Socket::wrote("answered:x")); + } + AND_WHEN("the task completes") { + gates.release(0); + THEN("its value is sent as the result of the call") { + REQUIRE(Socket::wrote("answered:x")); + } + } + } + WHEN("the call asks for no answer") { + browser.call("echoLater", 0, "x"); + gates.release(0); + THEN("nothing is sent") { + REQUIRE_FALSE(Socket::wrote("answered:x")); + } + } +} + +SCENARIO("A deferred callback that fails rejects the call with its code", "[deferred]") { + Browser browser; + browser.app.cppFunction("failLater", &failLater); + browser.connect(); + browser.call("failLater", 9, "x"); + gates.release(0); + THEN("the code and the message are sent") { + REQUIRE(Socket::wrote("quota:exceeded")); + REQUIRE(Socket::wrote("the disk is full")); + } +} + +SCENARIO("A deferred callback that throws before returning its task rejects the call at once", "[deferred]") { + Browser browser; + browser.app.cppFunction, std::string>("throwsNow", [](const std::string&) -> ResultTask { + throw BridgeError("early", "refused before it started"); + }); + browser.connect(); + browser.call("throwsNow", 4, "x"); + THEN("the rejection is sent without waiting") { + REQUIRE(Socket::wrote("early")); + REQUIRE(Socket::wrote("refused before it started")); + } +} + +SCENARIO("A deferred callback whose operation is stopped rejects the call as cancelled", "[deferred]") { + Browser browser; + browser.app.cppFunction("echoLater", &echoLater); + browser.connect(); + browser.call("echoLater", 3, "x"); + gates.stopOne(0); + THEN("the cancellation code is sent") { + REQUIRE(Socket::wrote(std::string(bridge_code::cancelled))); + } +} + +SCENARIO("A callback may be a task without result", "[deferred]") { + Browser browser; + browser.app.cppFunction("voidLater", &voidLater); + browser.connect(); + Socket::discardWrites(); + const auto before = Socket::discardedBytes(); + browser.call("voidLater", 2); + REQUIRE(Socket::discardedBytes() == before); + gates.release(0); + THEN("a return without value is sent") { + REQUIRE(Socket::discardedBytes() > before); + } +} + +SCENARIO("A callback taking the caller can answer later", "[deferred]") { + Browser browser; + browser.app.cppFunction, App::UI, std::string>("withCaller", [](App::UI, const std::string& value) -> ResultTask { + return echoLater(value); + }); + browser.connect(); + browser.call("withCaller", 6, "who"); + gates.release(0); + THEN("the browser receives the value") { + REQUIRE(Socket::wrote("answered:who")); + } +} + +SCENARIO("Several deferred calls of one connection are answered independently", "[deferred]") { + Browser browser; + browser.app.cppFunction("echoLater", &echoLater); + browser.connect(); + browser.call("echoLater", 1, "first"); + browser.call("echoLater", 2, "second"); + browser.call("echoLater", 3, "third"); + REQUIRE(gates.open.size() == 3); + gates.release(2); + gates.release(0); + THEN("each is answered when it completes, whatever the order") { + REQUIRE(Socket::wrote("answered:third")); + REQUIRE(Socket::wrote("answered:first")); + REQUIRE_FALSE(Socket::wrote("answered:second")); + gates.release(1); + REQUIRE(Socket::wrote("answered:second")); + REQUIRE(Socket::writtenAt("answered:third") < Socket::writtenAt("answered:first")); + } +} + +SCENARIO("A call identifier that is still in flight cannot be reused", "[deferred]") { + Browser browser; + browser.app.cppFunction("echoLater", &echoLater); + browser.connect(); + browser.call("echoLater", 7, "first"); + browser.call("echoLater", 7, "again"); + THEN("the second call is rejected and the first one still completes") { + REQUIRE(gates.open.size() == 1); + REQUIRE(Socket::wrote("already in use")); + gates.release(0); + REQUIRE(Socket::wrote("answered:first")); + } + AND_WHEN("it was answered") { + gates.release(0); + browser.call("echoLater", 7, "later"); + THEN("the identifier is free again") { + REQUIRE(gates.open.size() == 2); + } + } +} + +SCENARIO("The disconnection of the browser stops its deferred calls and drops their answers", "[deferred]") { + Browser browser; + std::weak_ptr observed; + browser.app.cppFunction>("watched", [&observed]() -> ResultTask { + return watchedLater(&observed, std::make_shared(1)); + }); + browser.connect(); + browser.call("watched", 8); + REQUIRE_FALSE(observed.expired()); + + WHEN("the connection closes while the call is pending") { + Socket::fail(std::make_error_code(std::errc::connection_reset)); + THEN("the work is stopped and destroyed, and no answer is sent") { + REQUIRE(observed.expired()); + REQUIRE_FALSE(Socket::wrote("late")); + REQUIRE_FALSE(Socket::wrote(std::string(bridge_code::cancelled))); + } + } +} + +SCENARIO("Shutting the application down joins its pending deferred calls", "[deferred]") { + Browser browser; + std::weak_ptr observed; + browser.app.cppFunction>("watched", [&observed]() -> ResultTask { + return watchedLater(&observed, std::make_shared(1)); + }); + browser.connect(); + browser.call("watched", 8); + REQUIRE_FALSE(observed.expired()); + browser.app.shutdown(); + THEN("the pending work is gone when shutdown returns") { + REQUIRE(observed.expired()); + REQUIRE_FALSE(Socket::wrote("late")); + } +} diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index 4a3e8cca..68890be3 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -329,7 +329,19 @@ class BrowserIntegrationTest { using Record = tuple>; + static ResultTask deferredEcho(TestWF* app, string value, int delayMs) { + co_await app->resumeAfter(chrono::milliseconds(delayMs)); + co_return "deferred:" + value; + } + static ResultTask deferredFailure(TestWF* app) { + co_await app->resumeAfter(chrono::milliseconds(20)); + throw BridgeError("late:failure", "rejected after a delay"); + } + void registerListCallbacks() { + webFront->cppFunction("deferredEcho", [this](string value, int delayMs) { return deferredEcho(webFront, std::move(value), delayMs); }); + webFront->cppFunction("deferredFailure", [this]() { return deferredFailure(webFront); }); + webFront->cppFunction("listEcho", [](const vector& value) { return value; }); diff --git a/test/web/suite/specs/webfront-specs.mjs b/test/web/suite/specs/webfront-specs.mjs index 425088ec..5460d32c 100644 --- a/test/web/suite/specs/webfront-specs.mjs +++ b/test/web/suite/specs/webfront-specs.mjs @@ -331,6 +331,23 @@ describe('WebFront browser integration', () => { expect(error.code).toBe('webfront.disconnected'); }); + it('resolves a Promise when a C++ coroutine finishes later, and rejects it with its code', async () => { + const started = performance.now(); + await expectAsync(webFront.cppFunction('deferredEcho')('x', 150)).toBeResolvedTo('deferred:x'); + expect(performance.now() - started).toBeGreaterThanOrEqual(100); + const error = await webFront.cppFunction('deferredFailure')().then(() => null, failure => failure); + expect(error.code).toBe('late:failure'); + expect(error.message).toBe('rejected after a delay'); + }); + + it('answers concurrent deferred calls in the order they finish', async () => { + const echo = webFront.cppFunction('deferredEcho'); + const order = []; + const calls = [300, 50, 150].map(delay => echo(String(delay), delay).then(value => order.push(value))); + await Promise.all(calls); + expect(order).toEqual(['deferred:50', 'deferred:150', 'deferred:300']); + }); + it('rejects missing functions and C++ exceptions', async () => { await expectAsync(webFront.cppFunction('missingCppFunction')()) .toBeRejectedWithError(/was not found/); From 644b2fc994eee16e1569744f4880eaf7bd943f4e Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 14:23:24 +0100 Subject: [PATCH 02/17] List ADR-004 2.6 in the index (#459) --- docs/adr/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adr/README.md b/docs/adr/README.md index 2fe8c51e..77ba8383 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -44,7 +44,7 @@ verification evidence remain in [PROJECT_STATUS](../PROJECT_STATUS.md). | [ADR-001](ADR-001-coeur-cpp23-header-only.md) | A header-only C++23 core embedded in the application | Accepted | 2020-04-19 | 1.5 — 2026-10-13 | | [ADR-002](ADR-002-systemes-de-fichiers-composables.md) | An abstract, composable filesystem as the foundation for portability | Accepted | 2023-03-16 | 2.6 — 2026-11-04 | | [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted through 1.13; 1.14 to 1.18 proposed | 2022-02-06 | 1.18 — 2026-11-05 | -| [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted through 2.4; 2.5 proposed | 2022-02-06 | 2.5 — 2026-11-05 | +| [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted through 2.4; 2.5 and 2.6 proposed | 2022-02-06 | 2.6 — 2026-11-05 | | [ADR-005](ADR-005-evolution-reseau-asio-stdnet.md) | From standalone ASIO to stdnet: anticipating standard networking without blocking progress | Accepted through 3.1; 3.2 proposed | 2022-01-21 | 3.2 — 2026-10-26 | | [ADR-006](ADR-006-taches-structurees-et-arret.md) | Owning, cancelling and joining every task | Accepted | 2026-10-13 | 2.1 — 2026-10-25 | | [ADR-007](ADR-007-frontends-explicites.md) | Explicit frontend selection and a shared lifecycle contract | Accepted | 2026-05-31 | 1.10 — 2026-10-20 | From 7b3c8f632e4a0107a1218a125519575bdcb5ae5e Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 14:32:59 +0100 Subject: [PATCH 03/17] Build the deferred responses with Clang: the private error factory and an explicit this call (#459) --- include/webfront/WebFront.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index e9f1efff..6676f2a9 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -1001,7 +1001,7 @@ class BasicWF { template bool registerDeferred(std::string functionName, auto&& function) { const auto start = [this](auto invoke, WebLink& link, msg::CallId callId, UI caller) { - startDeferred(std::move(invoke), link, callId, caller); + this->template startDeferred(std::move(invoke), link, callId, caller); }; if constexpr (detail::takes_caller::value) { auto handler = registerDeferredHandler(std::forward(function)); @@ -1078,7 +1078,7 @@ class BasicWF { std::optional> answer; try { auto stoppable = networking::ex::stopped_as_error( - std::move(sender), std::make_exception_ptr(BridgeError::fromBridge(bridge_code::cancelled, "The C++ callback was cancelled"))); + std::move(sender), std::make_exception_ptr(detail::makeBridgeError(bridge_code::cancelled, "The C++ callback was cancelled"))); // One answer frame whether the sender completes with a value or without: the message is built where it completes. auto framed = networking::ex::then(std::move(stoppable), [callId](auto&&... values) -> websocket::Frame { if constexpr (sizeof...(values) == 0) From c161bf10a2f3e85d1eedd54998852e407d6df6f7 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 14:51:07 +0100 Subject: [PATCH 04/17] Wake the waiting writers from state that outlives the link: its closure event may release it inline (#459) --- include/webfront/weblink/WebLink.hpp | 42 +++++++++++++++++----------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index 148dbc62..e6c33dda 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -149,8 +149,9 @@ class WebLink { auto message = event.reason.empty() ? std::string("Browser connection closed") : std::string("Browser connection closed: ") + event.reason; rejectPending(std::make_exception_ptr(detail::disconnectedError(message))); // The WebSocket reports its closure once, and never when it is stopped by the server or the link. + const auto queue = writerQueue; // the event may release this link eventsHandler({WebLinkEvent::Code::closed, id}); - wakeAllWriters(); // after the closure is known: nothing will be written any more + wakeAll(*queue); // after the closure is known: nothing will be written any more }); }); @@ -189,21 +190,21 @@ class WebLink { /// the thread that writes the frame bringing them down, and returns its identifier for cancelWrites(). The waiters /// are also called when the connection closes or the link is destroyed: nothing is left to wait for. std::uint64_t whenWritesAtMost(std::size_t limit, std::function ready) { - std::lock_guard lock(writersMutex); + std::lock_guard lock(writerQueue->mutex); if (ws->pendingWrites() <= limit) return 0; - const auto waiter = ++lastWriter; - writers.emplace(waiter, Writer{limit, std::move(ready)}); + const auto waiter = ++writerQueue->last; + writerQueue->writers.emplace(waiter, Writer{limit, std::move(ready)}); return waiter; } /// Forgets a waiter of whenWritesAtMost() that was not called yet. void cancelWrites(std::uint64_t waiter) { std::function removed; // destroyed outside the lock - std::lock_guard lock(writersMutex); - if (auto found = writers.find(waiter); found != writers.end()) { + std::lock_guard lock(writerQueue->mutex); + if (auto found = writerQueue->writers.find(waiter); found != writerQueue->writers.end()) { removed = std::move(found->second.ready); - writers.erase(found); + writerQueue->writers.erase(found); } } @@ -341,36 +342,43 @@ class WebLink { std::size_t limit; std::function ready; }; - std::mutex writersMutex; - std::map writers; // waiters of whenWritesAtMost(), by identifier - std::uint64_t lastWriter = 0; + /// The waiters of whenWritesAtMost(), by identifier. Shared, so that the closure handler can wake them after its event + /// released the link (an application whose scheduler runs the release at once destroys the link inside that handler). + struct WriterQueue { + std::mutex mutex; + std::map writers; + std::uint64_t last = 0; + }; + std::shared_ptr writerQueue = std::make_shared(); // The queue shrank: the waiters it now satisfies are removed, then called outside the lock. void wakeWriters() { std::vector> ready; { - std::lock_guard lock(writersMutex); - if (writers.empty()) + std::lock_guard lock(writerQueue->mutex); + if (writerQueue->writers.empty()) return; const auto queued = ws->pendingWrites(); - for (auto writer = writers.begin(); writer != writers.end();) { + for (auto writer = writerQueue->writers.begin(); writer != writerQueue->writers.end();) { if (queued > writer->second.limit) { ++writer; continue; } ready.push_back(std::move(writer->second.ready)); - writer = writers.erase(writer); + writer = writerQueue->writers.erase(writer); } } for (auto& call : ready) call(); } - void wakeAllWriters() { + void wakeAllWriters() { wakeAll(*writerQueue); } + + static void wakeAll(WriterQueue& queue) { std::map ready; { - std::lock_guard lock(writersMutex); - ready.swap(writers); + std::lock_guard lock(queue.mutex); + ready.swap(queue.writers); } for (auto& [waiter, writer] : ready) writer.ready(); From 204bb6131515cea27668ad726ebb63545b075730 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 15:06:26 +0100 Subject: [PATCH 05/17] Release the call identifier of a task the server refused and check the sender contract at registration (#459) --- include/webfront/WebFront.hpp | 7 +++++++ test/unit/DeferredCallTests.cpp | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index 6676f2a9..2dbd1367 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -1000,6 +1000,8 @@ class BasicWF { /// (shutdown stops and joins it). The answer is sent on the server context. template bool registerDeferred(std::string functionName, auto&& function) { + // Naming the value type checks the contract at registration: one value at most, one kind of value completion. + using DeferredValue [[maybe_unused]] = detail::deferred_value_t; const auto start = [this](auto invoke, WebLink& link, msg::CallId callId, UI caller) { this->template startDeferred(std::move(invoke), link, callId, caller); }; @@ -1052,6 +1054,11 @@ class BasicWF { return; } const auto handle = spawn(respondLater(caller, generation, calls, callId, key, std::move(*sender))); + if (handle.stopRequested()) { + // The server refused the task (it is shutting down): it never runs, so nothing would release the identifier. + calls->finish(callId, key); + return; + } calls->attach(key, handle); } diff --git a/test/unit/DeferredCallTests.cpp b/test/unit/DeferredCallTests.cpp index fb6f36db..0ae6def3 100644 --- a/test/unit/DeferredCallTests.cpp +++ b/test/unit/DeferredCallTests.cpp @@ -274,3 +274,24 @@ SCENARIO("Shutting the application down joins its pending deferred calls", "[def REQUIRE_FALSE(Socket::wrote("late")); } } + +SCENARIO("The identifiers of in-flight calls are claimed once and released on finish", "[deferred]") { + detail::DeferredCalls calls; + const auto key = calls.reserve(5); + REQUIRE(key != 0); + REQUIRE(calls.reserve(5) == 0); + REQUIRE(calls.reserve(0) != 0); // zero asks for no answer: never in flight + REQUIRE(calls.reserve(0) != 0); + WHEN("the call finishes, as a task the server refused does at once") { + calls.finish(5, key); + THEN("the identifier can be claimed again") { + REQUIRE(calls.reserve(5) != 0); + } + } + WHEN("the connection closes") { + calls.close(); + THEN("nothing can be claimed any more") { + REQUIRE(calls.reserve(6) == 0); + } + } +} From e9201a3c0211877f19cc16a13b4254a89118656a Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 16:37:45 +0100 Subject: [PATCH 06/17] Bound the depth of the list shape check and keep the bridge-error path from forging codes (#457, #458) --- include/webfront/WebFront.hpp | 2 +- include/webfront/weblink/Messages.hpp | 9 +++++++-- include/webfront/weblink/WebLink.hpp | 18 +++++++++++++++--- test/unit/MessagesTests.cpp | 12 ++++++++++++ test/unit/WebLinkTests.cpp | 11 +++++++++++ 5 files changed, 46 insertions(+), 6 deletions(-) diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index 80017f48..8986b956 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -1186,7 +1186,7 @@ class BasicWF { if (auto function = cppFunctions.find(event.text); function != cppFunctions.end()) function->second(event.data, *link, event.callId, UI{*this, event.webLinkId, generation}); else - link->sendError(event.callId, "C++ function '" + event.text + "' was not found", bridge_code::notFound); + link->sendBridgeError(event.callId, "C++ function '" + event.text + "' was not found", bridge_code::notFound); break; } } diff --git a/include/webfront/weblink/Messages.hpp b/include/webfront/weblink/Messages.hpp index eb6c616b..0ea39c52 100644 --- a/include/webfront/weblink/Messages.hpp +++ b/include/webfront/weblink/Messages.hpp @@ -767,7 +767,10 @@ class FunctionCallBase : public MessageBase { /// Walks the value at the start of `data` without decoding it: appends its shape to `shape` and returns the bytes it takes. /// Two list elements must have the same shape: the same kind of value (any string header is a string, the short and the /// regular Uint8Array are one array type) and, for a tuple, the same shapes of fields. - static std::size_t appendWireShape(std::span data, std::string& shape) { + /// Tuples nested deeper than this are refused: a browser could otherwise exhaust the stack with a few hundred KiB of headers. + static constexpr std::size_t maxShapeDepth = 32; + + static std::size_t appendWireShape(std::span data, std::string& shape, std::size_t depth = 0) { if (data.empty()) throw std::runtime_error("Truncated list element"); const auto type = static_cast(data[0]); @@ -823,13 +826,15 @@ class FunctionCallBase : public MessageBase { return header + bytes; } if (type == CodedType::tuple) { + if (depth >= maxShapeDepth) + throw std::runtime_error("List element tuples are nested too deeply"); need(2); std::size_t used = 2; shape += '('; for (std::size_t field = 0; field < static_cast(data[1]); ++field) { if (field != 0) shape += ','; - used += appendWireShape(data.subspan(used), shape); + used += appendWireShape(data.subspan(used), shape, depth + 1); } shape += ')'; return used; diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index 6686850e..02063f78 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -325,8 +325,21 @@ class WebLink { public: - /// Rejects the call `callId` with `message` and `code` (the generic one by default); nothing is sent for call 0. - void sendError(msg::CallId callId, std::string_view message, std::string_view code = bridge_code::generic) { + /// Rejects the call `callId` with `message` and the generic code; nothing is sent for call 0. + void sendError(msg::CallId callId, std::string_view message) { + sendRejection(callId, message, bridge_code::generic); + } + + /// Rejects the call `callId` with one of the codes of the bridge (bridge_code), for WebFront's own failures. Any other + /// code is sent as the generic one, so that this path cannot forge an error that looks like the bridge's own. + void sendBridgeError(msg::CallId callId, std::string_view message, std::string_view code) { + const bool known = code == bridge_code::notFound || code == bridge_code::malformed || code == bridge_code::disconnected + || code == bridge_code::cancelled; + sendRejection(callId, message, known ? code : bridge_code::generic); + } + +private: + void sendRejection(msg::CallId callId, std::string_view message, std::string_view code) { if (callId == 0) return; msg::FunctionReturn result; result.setCallId(callId); @@ -337,7 +350,6 @@ class WebLink { sendFrame(std::move(frame)); } -private: struct Writer { std::size_t limit; std::function ready; diff --git a/test/unit/MessagesTests.cpp b/test/unit/MessagesTests.cpp index a8254c39..45bcbb30 100644 --- a/test/unit/MessagesTests.cpp +++ b/test/unit/MessagesTests.cpp @@ -488,6 +488,18 @@ SCENARIO("Lists of strings, tuples and arrays are encoded as one list value") { runtime_error); } } + GIVEN("tuples nested far deeper than any application type") { + // A list whose first element is 100000 tuples of one field each: 2 bytes of header per level. + vector bytes{byte{static_cast(msg::CodedType::list)}, byte{1}, byte{0}, byte{0}, byte{0}}; + for (int level = 0; level < 100000; ++level) { + bytes.push_back(byte{static_cast(msg::CodedType::tuple)}); + bytes.push_back(byte{1}); + } + bytes.push_back(byte{static_cast(msg::CodedType::booleanTrue)}); + THEN("the shape check refuses them before the stack is at risk") { + REQUIRE_THROWS_AS(decodedParameter>>(bytes), runtime_error); + } + } GIVEN("a policy whose messages cannot exceed 1 KiB") { using SmallPolicy = http::CustomBuffersPolicy<8192, 8192, 32768, 1024>; msg::FunctionReturn message; diff --git a/test/unit/WebLinkTests.cpp b/test/unit/WebLinkTests.cpp index f2843cd6..71f8d143 100644 --- a/test/unit/WebLinkTests.cpp +++ b/test/unit/WebLinkTests.cpp @@ -288,6 +288,17 @@ SCENARIO("WebLink dispatches browser messages and allocates distinct calls") { } } + GIVEN("a bridge error with a code that is not one of the bridge's") { + link.sendBridgeError(13, "forged", "webfront.forged"); + link.sendBridgeError(14, "genuine", bridge_code::notFound); + + THEN("it is sent as the generic error, while a known code is kept") { + REQUIRE_FALSE(InjectableSocket::wrote("webfront.forged")); + REQUIRE(InjectableSocket::wrote(std::string(bridge_code::generic))); + REQUIRE(InjectableSocket::wrote(std::string(bridge_code::notFound))); + } + } + GIVEN("a closed browser connection") { InjectableSocket::fail(make_error_code(errc::connection_reset)); auto [callId, result] = link.expectResult(); From ac362fcf3ff868505a05029024b74caa76ed714b Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 16:42:17 +0100 Subject: [PATCH 07/17] Use the bridge-error path for the deferred call refusals (#459) --- include/webfront/WebFront.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index e029074a..a3af8561 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -1049,7 +1049,7 @@ class BasicWF { if (key == 0) { // The connection closed, or the browser reused the identifier of a call that is still running. if (callId != 0) - link.sendError(callId, calls ? "The call identifier is already in use" : "Browser connection closed", + link.sendBridgeError(callId, calls ? "The call identifier is already in use" : "Browser connection closed", calls ? bridge_code::malformed : bridge_code::disconnected); return; } From 6518c1bb940a2addaef53313373d515df0ff562d Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 17:04:07 +0100 Subject: [PATCH 08/17] Give the deferred call tests names of their own: the heavy unit tests are compiled together (#459) --- test/unit/DeferredCallTests.cpp | 100 ++++++++++++++++---------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/test/unit/DeferredCallTests.cpp b/test/unit/DeferredCallTests.cpp index 0ae6def3..a0222cbc 100644 --- a/test/unit/DeferredCallTests.cpp +++ b/test/unit/DeferredCallTests.cpp @@ -18,10 +18,10 @@ using Socket = testing::InjectableSocket; namespace { -const std::string upgradeRequest = "GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n" +const std::string deferredUpgradeRequest = "GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n" "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n"; -struct OneBrowserNet : testing::InjectableNetworking { +struct DeferredNet : testing::InjectableNetworking { static inline bool accepted{}; static auto Accept(Acceptor&) { return networking::ex::then(networking::ex::just(), []() -> Socket { @@ -32,45 +32,45 @@ struct OneBrowserNet : testing::InjectableNetworking { } }; -using App = BasicWF; +using DeferredApp = BasicWF; /// The operations the test completes by hand, by the name of the call that awaits them. -struct Gates { +struct DeferredGates { std::vector open; void release(std::size_t index) { open.at(index).complete({}, 0); } void stopOne(std::size_t index) { open.at(index).stop(); } }; -Gates gates; +DeferredGates deferredGates; -testing::ManualSender gate() { - return testing::ManualSender([](testing::ManualSender::Completion completion) { gates.open.push_back(std::move(completion)); }); +testing::ManualSender deferredGate() { + return testing::ManualSender([](testing::ManualSender::Completion completion) { deferredGates.open.push_back(std::move(completion)); }); } ResultTask echoLater(std::string value) { - co_await gate(); + co_await deferredGate(); co_return "answered:" + value; } ResultTask failLater(std::string) { - co_await gate(); + co_await deferredGate(); throw BridgeError("quota:exceeded", "the disk is full"); } ResultTask voidLater() { - co_await gate(); + co_await deferredGate(); } ResultTask watchedLater(std::weak_ptr* observed, std::shared_ptr lifetime) { *observed = lifetime; - co_await gate(); + co_await deferredGate(); co_return "late"; } /// A call from the browser: the function, its identifier and one string argument. -std::vector callMessage(const std::string& name, msg::CallId callId, const std::string& argument = "") { +std::vector deferredCallMessage(const std::string& name, msg::CallId callId, const std::string& argument = "") { msg::FunctionCall<> message; message.setCallId(callId); - websocket::Frame frame{std::span(reinterpret_cast(message.header().data()), message.header().size())}; + websocket::Frame frame{std::span(reinterpret_cast(message.header().data()), message.header().size())}; message.encodeParameter(name, frame); if (!argument.empty()) message.encodeParameter(argument, frame); @@ -79,48 +79,48 @@ std::vector callMessage(const std::string& name, msg::CallId callId, } /// Resets the shared mock socket before the application accepts its connection. -struct Fresh { - Fresh() { +struct DeferredFresh { + DeferredFresh() { Socket::reset(); - gates.open.clear(); - OneBrowserNet::accepted = false; + deferredGates.open.clear(); + DeferredNet::accepted = false; } }; -struct Browser { - Fresh fresh; - App app{WebFrontConfig{.port = "0"}}; +struct DeferredBrowser { + DeferredFresh fresh; + DeferredApp app{WebFrontConfig{.port = "0"}}; void connect() { - Socket::receive(std::as_bytes(std::span(upgradeRequest))); + Socket::receive(std::as_bytes(std::span(deferredUpgradeRequest))); msg::Handshake handshake; Socket::receive(testing::clientFrame(std::span(reinterpret_cast(handshake.header().data()), handshake.header().size()))); } void call(const std::string& name, msg::CallId callId, const std::string& argument = "") { - Socket::receive(callMessage(name, callId, argument)); + Socket::receive(deferredCallMessage(name, callId, argument)); } - ~Browser() { + ~DeferredBrowser() { app.shutdown(); Socket::reset(); - gates.open.clear(); + deferredGates.open.clear(); } }; } // namespace SCENARIO("A callback that returns a task answers when the task completes", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction("echoLater", &echoLater); browser.connect(); WHEN("the browser calls it") { browser.call("echoLater", 5, "x"); THEN("nothing is answered while the task is suspended") { - REQUIRE(gates.open.size() == 1); + REQUIRE(deferredGates.open.size() == 1); REQUIRE_FALSE(Socket::wrote("answered:x")); } AND_WHEN("the task completes") { - gates.release(0); + deferredGates.release(0); THEN("its value is sent as the result of the call") { REQUIRE(Socket::wrote("answered:x")); } @@ -128,7 +128,7 @@ SCENARIO("A callback that returns a task answers when the task completes", "[def } WHEN("the call asks for no answer") { browser.call("echoLater", 0, "x"); - gates.release(0); + deferredGates.release(0); THEN("nothing is sent") { REQUIRE_FALSE(Socket::wrote("answered:x")); } @@ -136,11 +136,11 @@ SCENARIO("A callback that returns a task answers when the task completes", "[def } SCENARIO("A deferred callback that fails rejects the call with its code", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction("failLater", &failLater); browser.connect(); browser.call("failLater", 9, "x"); - gates.release(0); + deferredGates.release(0); THEN("the code and the message are sent") { REQUIRE(Socket::wrote("quota:exceeded")); REQUIRE(Socket::wrote("the disk is full")); @@ -148,7 +148,7 @@ SCENARIO("A deferred callback that fails rejects the call with its code", "[defe } SCENARIO("A deferred callback that throws before returning its task rejects the call at once", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction, std::string>("throwsNow", [](const std::string&) -> ResultTask { throw BridgeError("early", "refused before it started"); }); @@ -161,86 +161,86 @@ SCENARIO("A deferred callback that throws before returning its task rejects the } SCENARIO("A deferred callback whose operation is stopped rejects the call as cancelled", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction("echoLater", &echoLater); browser.connect(); browser.call("echoLater", 3, "x"); - gates.stopOne(0); + deferredGates.stopOne(0); THEN("the cancellation code is sent") { REQUIRE(Socket::wrote(std::string(bridge_code::cancelled))); } } SCENARIO("A callback may be a task without result", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction("voidLater", &voidLater); browser.connect(); Socket::discardWrites(); const auto before = Socket::discardedBytes(); browser.call("voidLater", 2); REQUIRE(Socket::discardedBytes() == before); - gates.release(0); + deferredGates.release(0); THEN("a return without value is sent") { REQUIRE(Socket::discardedBytes() > before); } } SCENARIO("A callback taking the caller can answer later", "[deferred]") { - Browser browser; - browser.app.cppFunction, App::UI, std::string>("withCaller", [](App::UI, const std::string& value) -> ResultTask { + DeferredBrowser browser; + browser.app.cppFunction, DeferredApp::UI, std::string>("withCaller", [](DeferredApp::UI, const std::string& value) -> ResultTask { return echoLater(value); }); browser.connect(); browser.call("withCaller", 6, "who"); - gates.release(0); + deferredGates.release(0); THEN("the browser receives the value") { REQUIRE(Socket::wrote("answered:who")); } } SCENARIO("Several deferred calls of one connection are answered independently", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction("echoLater", &echoLater); browser.connect(); browser.call("echoLater", 1, "first"); browser.call("echoLater", 2, "second"); browser.call("echoLater", 3, "third"); - REQUIRE(gates.open.size() == 3); - gates.release(2); - gates.release(0); + REQUIRE(deferredGates.open.size() == 3); + deferredGates.release(2); + deferredGates.release(0); THEN("each is answered when it completes, whatever the order") { REQUIRE(Socket::wrote("answered:third")); REQUIRE(Socket::wrote("answered:first")); REQUIRE_FALSE(Socket::wrote("answered:second")); - gates.release(1); + deferredGates.release(1); REQUIRE(Socket::wrote("answered:second")); REQUIRE(Socket::writtenAt("answered:third") < Socket::writtenAt("answered:first")); } } SCENARIO("A call identifier that is still in flight cannot be reused", "[deferred]") { - Browser browser; + DeferredBrowser browser; browser.app.cppFunction("echoLater", &echoLater); browser.connect(); browser.call("echoLater", 7, "first"); browser.call("echoLater", 7, "again"); THEN("the second call is rejected and the first one still completes") { - REQUIRE(gates.open.size() == 1); + REQUIRE(deferredGates.open.size() == 1); REQUIRE(Socket::wrote("already in use")); - gates.release(0); + deferredGates.release(0); REQUIRE(Socket::wrote("answered:first")); } AND_WHEN("it was answered") { - gates.release(0); + deferredGates.release(0); browser.call("echoLater", 7, "later"); THEN("the identifier is free again") { - REQUIRE(gates.open.size() == 2); + REQUIRE(deferredGates.open.size() == 2); } } } SCENARIO("The disconnection of the browser stops its deferred calls and drops their answers", "[deferred]") { - Browser browser; + DeferredBrowser browser; std::weak_ptr observed; browser.app.cppFunction>("watched", [&observed]() -> ResultTask { return watchedLater(&observed, std::make_shared(1)); @@ -260,7 +260,7 @@ SCENARIO("The disconnection of the browser stops its deferred calls and drops th } SCENARIO("Shutting the application down joins its pending deferred calls", "[deferred]") { - Browser browser; + DeferredBrowser browser; std::weak_ptr observed; browser.app.cppFunction>("watched", [&observed]() -> ResultTask { return watchedLater(&observed, std::make_shared(1)); From c725ee761d52163b1fa9d16f97fee412cf0e640f Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 17:18:12 +0100 Subject: [PATCH 09/17] Keep an application code on WebLink::sendError, filtering reserved and ill-formed ones (#458) --- include/webfront/weblink/WebLink.hpp | 9 ++++++--- test/unit/WebLinkTests.cpp | 13 +++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index 02063f78..6c0db8ec 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -325,9 +325,12 @@ class WebLink { public: - /// Rejects the call `callId` with `message` and the generic code; nothing is sent for call 0. - void sendError(msg::CallId callId, std::string_view message) { - sendRejection(callId, message, bridge_code::generic); + /// Rejects the call `callId` with `message` and an application `code` (the generic one by default); nothing is sent + /// for call 0. A code that is ill-formed or reserved to the bridge (`webfront.*`) is sent as the generic one: this path + /// cannot forge an error that looks like the bridge's own. + void sendError(msg::CallId callId, std::string_view message, std::string_view code = bridge_code::generic) { + const bool usable = BridgeError::isValidCode(code) && !BridgeError::isReserved(code); + sendRejection(callId, message, usable ? code : bridge_code::generic); } /// Rejects the call `callId` with one of the codes of the bridge (bridge_code), for WebFront's own failures. Any other diff --git a/test/unit/WebLinkTests.cpp b/test/unit/WebLinkTests.cpp index 71f8d143..7b6465d4 100644 --- a/test/unit/WebLinkTests.cpp +++ b/test/unit/WebLinkTests.cpp @@ -288,6 +288,19 @@ SCENARIO("WebLink dispatches browser messages and allocates distinct calls") { } } + GIVEN("an application error with a code, and one that tries to pass for the bridge's") { + link.sendError(15, "no space", "quota:exceeded"); + link.sendError(16, "forged", "webfront.notFound"); + link.sendError(17, "ill formed", "bad code"); + + THEN("the application code is kept and the others are sent as the generic one") { + REQUIRE(InjectableSocket::wrote("quota:exceeded")); + REQUIRE_FALSE(InjectableSocket::wrote(std::string(bridge_code::notFound))); + REQUIRE_FALSE(InjectableSocket::wrote("bad code")); + REQUIRE(InjectableSocket::wrote(std::string(bridge_code::generic))); + } + } + GIVEN("a bridge error with a code that is not one of the bridge's") { link.sendBridgeError(13, "forged", "webfront.forged"); link.sendBridgeError(14, "genuine", bridge_code::notFound); From e068b403b6c469da94bc617cae69b65cb02861a1 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 18:13:32 +0100 Subject: [PATCH 10/17] Keep the decoded arguments of a deferred callback alive until it completes and claim the call identifier before running it (#459) --- include/webfront/WebFront.hpp | 60 +++++++++++++++++++++++---------- test/unit/DeferredCallTests.cpp | 40 ++++++++++++++++++++++ 2 files changed, 83 insertions(+), 17 deletions(-) diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index a3af8561..d9a6d2b2 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -244,6 +244,29 @@ auto makeCppFunctionHandler(Function&& function) { }; } +/// Like makeCppFunctionHandler for a callback that answers later: it returns the sender of the callback, which owns the decoded +/// arguments (they live in its operation state). A callback that takes them by reference, a coroutine for instance, can thus +/// use them until it completes, long after this handler returned. +template +auto makeDeferredHandler(Function&& function) { + using StoredFunction = std::decay_t; + auto callable = std::make_shared(std::forward(function)); + + return [callable = std::move(callable)](std::span data, auto&&... caller) { + auto parameters = std::make_shared>(); + try { + std::apply([&](auto&... decoded) { (msg::FunctionCall::decodeParameter(decoded, data), ...); }, *parameters); + if (!data.empty()) + throw std::runtime_error("Function call contains trailing parameter data"); + } catch (const std::exception& error) { + throw detail::makeBridgeError(bridge_code::malformed, error.what()); + } + auto sender = std::apply([&](auto&... decoded) { return std::invoke(*callable, caller..., decoded...); }, *parameters); + return networking::ex::let_value(networking::ex::just(std::move(parameters)), + [sender = std::move(sender)](auto&) mutable { return std::move(sender); }); + }; +} + // --- Callable signature inference for cppFunction(name, callable), without explicit --- // Primary template intentionally has no Return/DecayedArgs members: has_callable_traits below @@ -1003,10 +1026,10 @@ class BasicWF { // Naming the value type checks the contract at registration: one value at most, one kind of value completion. using DeferredValue [[maybe_unused]] = detail::deferred_value_t; const auto start = [this](auto invoke, WebLink& link, msg::CallId callId, UI caller) { - this->template startDeferred(std::move(invoke), link, callId, caller); + this->startDeferred(std::move(invoke), link, callId, caller); }; if constexpr (detail::takes_caller::value) { - auto handler = registerDeferredHandler(std::forward(function)); + auto handler = registerDeferredHandler(std::forward(function)); return cppFunctions .try_emplace(std::move(functionName), [start, handler](std::span data, WebLink& link, msg::CallId callId, UI caller) mutable { @@ -1014,7 +1037,7 @@ class BasicWF { }) .second; } else { - auto handler = detail::makeCppFunctionHandler(std::forward(function)); + auto handler = detail::makeDeferredHandler(std::forward(function)); return cppFunctions .try_emplace(std::move(functionName), [start, handler](std::span data, WebLink& link, msg::CallId callId, UI caller) mutable { @@ -1024,35 +1047,38 @@ class BasicWF { } } - template + template auto registerDeferredHandler(auto&& function) { - return detail::makeCppFunctionHandler(detail::adaptCaller(std::forward(function))); + return detail::makeDeferredHandler(detail::adaptCaller(std::forward(function))); } - /// Calls the callback, then hands the sender it returned to a task that answers when it completes. - template + /// Claims the call identifier, then calls the callback and hands the sender it returned to a task that answers when it + /// completes. The claim comes first: a call refused as a duplicate, or on a closed connection, never runs the callback. + template void startDeferred(Invoke invoke, WebLink& link, msg::CallId callId, UI caller) { - std::optional> sender; + const auto [calls, generation] = deferredCallsOf(caller); + const auto key = calls ? calls->reserve(callId) : 0; + if (key == 0) { + // The connection closed, or the browser reused the identifier of a call that is still running. + if (callId != 0) + link.sendBridgeError(callId, calls ? "The call identifier is already in use" : "Browser connection closed", + calls ? bridge_code::malformed : bridge_code::disconnected); + return; + } + std::optional> sender; try { sender.emplace(invoke()); } catch (const std::exception& error) { + calls->finish(callId, key); if (callId != 0) link.sendFrame(detail::makeFailureFrame(callId, error)); return; } catch (...) { + calls->finish(callId, key); if (callId != 0) link.sendFrame(detail::makeFailureFrame(callId, std::runtime_error{"Unknown C++ exception"})); return; } - const auto [calls, generation] = deferredCallsOf(caller); - const auto key = calls ? calls->reserve(callId) : 0; - if (key == 0) { - // The connection closed, or the browser reused the identifier of a call that is still running. - if (callId != 0) - link.sendBridgeError(callId, calls ? "The call identifier is already in use" : "Browser connection closed", - calls ? bridge_code::malformed : bridge_code::disconnected); - return; - } const auto handle = spawn(respondLater(caller, generation, calls, callId, key, std::move(*sender))); if (handle.stopRequested()) { // The server refused the task (it is shutting down): it never runs, so nothing would release the identifier. diff --git a/test/unit/DeferredCallTests.cpp b/test/unit/DeferredCallTests.cpp index a0222cbc..42c38469 100644 --- a/test/unit/DeferredCallTests.cpp +++ b/test/unit/DeferredCallTests.cpp @@ -51,6 +51,19 @@ ResultTask echoLater(std::string value) { co_return "answered:" + value; } +/// Takes its argument by reference and uses it after suspending: the decoded argument must outlive the handler. +ResultTask byReferenceLater(const std::string& value) { + co_await deferredGate(); + co_return "reference:" + value; +} + +int sideEffects = 0; + +ResultTask countingLater(std::string value) { + co_await deferredGate(); + co_return "counted:" + value; +} + ResultTask failLater(std::string) { co_await deferredGate(); throw BridgeError("quota:exceeded", "the disk is full"); @@ -295,3 +308,30 @@ SCENARIO("The identifiers of in-flight calls are claimed once and released on fi } } } + +SCENARIO("The decoded arguments of a deferred callback live until it completes", "[deferred]") { + DeferredBrowser browser; + browser.app.cppFunction("byReference", &byReferenceLater); + browser.connect(); + browser.call("byReference", 3, std::string(60, 'r')); // beyond the small string buffer: a dangling reference would read freed memory + deferredGates.release(0); + THEN("the coroutine still reads its argument") { + REQUIRE(Socket::wrote("reference:" + std::string(60, 'r'))); + } +} + +SCENARIO("A call refused as a duplicate does not run the callback", "[deferred]") { + DeferredBrowser browser; + sideEffects = 0; + browser.app.cppFunction, std::string>("counting", [](const std::string& value) -> ResultTask { + ++sideEffects; // an action taken before the task is returned + return countingLater(value); + }); + browser.connect(); + browser.call("counting", 7, "first"); + browser.call("counting", 7, "again"); + THEN("the callback ran once and the duplicate was refused") { + REQUIRE(sideEffects == 1); + REQUIRE(Socket::wrote("already in use")); + } +} From 7cc01e230e258b61e84076a13729edaf4c955837 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 18:58:05 +0100 Subject: [PATCH 11/17] Give the failing test coroutine a co_return for MSVC (#459) --- test/unit/DeferredCallTests.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/DeferredCallTests.cpp b/test/unit/DeferredCallTests.cpp index 42c38469..c263ceaa 100644 --- a/test/unit/DeferredCallTests.cpp +++ b/test/unit/DeferredCallTests.cpp @@ -64,9 +64,11 @@ ResultTask countingLater(std::string value) { co_return "counted:" + value; } -ResultTask failLater(std::string) { +ResultTask failLater(std::string value) { co_await deferredGate(); - throw BridgeError("quota:exceeded", "the disk is full"); + if (!value.empty()) // always: keeps a value-returning coroutine free of unreachable code or a missing co_return + throw BridgeError("quota:exceeded", "the disk is full"); + co_return value; } ResultTask voidLater() { From 811cfe5454bb375116e89fcf0ea7c446089fe6da Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 19:03:01 +0100 Subject: [PATCH 12/17] Keep a copy of the calling UI alive with the arguments of a deferred callback (#459) --- include/webfront/WebFront.hpp | 17 +++++++++++------ test/unit/DeferredCallTests.cpp | 27 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index d9a6d2b2..cc4d5b5c 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -245,7 +245,7 @@ auto makeCppFunctionHandler(Function&& function) { } /// Like makeCppFunctionHandler for a callback that answers later: it returns the sender of the callback, which owns the decoded -/// arguments (they live in its operation state). A callback that takes them by reference, a coroutine for instance, can thus +/// arguments and the calling UI (they live in its operation state). A callback that takes them by reference, a coroutine for instance, can thus /// use them until it completes, long after this handler returned. template auto makeDeferredHandler(Function&& function) { @@ -253,17 +253,22 @@ auto makeDeferredHandler(Function&& function) { auto callable = std::make_shared(std::forward(function)); return [callable = std::move(callable)](std::span data, auto&&... caller) { - auto parameters = std::make_shared>(); + // The caller (the calling UI) is kept with the arguments, as a copy: a callback taking it by reference lives as long as them. + using State = std::pair...>, std::tuple>; + auto state = std::make_shared(std::tuple...>{caller...}, std::tuple{}); try { - std::apply([&](auto&... decoded) { (msg::FunctionCall::decodeParameter(decoded, data), ...); }, *parameters); + std::apply([&](auto&... decoded) { (msg::FunctionCall::decodeParameter(decoded, data), ...); }, state->second); if (!data.empty()) throw std::runtime_error("Function call contains trailing parameter data"); } catch (const std::exception& error) { throw detail::makeBridgeError(bridge_code::malformed, error.what()); } - auto sender = std::apply([&](auto&... decoded) { return std::invoke(*callable, caller..., decoded...); }, *parameters); - return networking::ex::let_value(networking::ex::just(std::move(parameters)), - [sender = std::move(sender)](auto&) mutable { return std::move(sender); }); + auto sender = std::apply( + [&](auto&... kept) { + return std::apply([&](auto&... decoded) { return std::invoke(*callable, kept..., decoded...); }, state->second); + }, + state->first); + return networking::ex::let_value(networking::ex::just(std::move(state)), [sender = std::move(sender)](auto&) mutable { return std::move(sender); }); }; } diff --git a/test/unit/DeferredCallTests.cpp b/test/unit/DeferredCallTests.cpp index c263ceaa..0f5ced67 100644 --- a/test/unit/DeferredCallTests.cpp +++ b/test/unit/DeferredCallTests.cpp @@ -57,6 +57,17 @@ ResultTask byReferenceLater(const std::string& value) { co_return "reference:" + value; } +/// Takes the calling UI by reference and reads it after suspending. +ResultTask uiReferenceLater(const DeferredApp::UI& caller, const std::string& value) { + co_await deferredGate(); + co_return "ui" + std::to_string(caller.id()) + ":" + value; +} + +ResultTask uiMutableLater(DeferredApp::UI& caller, std::string value) { + co_await deferredGate(); + co_return "mutable" + std::to_string(caller.id()) + ":" + value; +} + int sideEffects = 0; ResultTask countingLater(std::string value) { @@ -337,3 +348,19 @@ SCENARIO("A call refused as a duplicate does not run the callback", "[deferred]" REQUIRE(Socket::wrote("already in use")); } } + +SCENARIO("The calling UI of a deferred callback lives until it completes", "[deferred]") { + DeferredBrowser browser; + browser.app.cppFunction, const DeferredApp::UI&, std::string>("uiReference", &uiReferenceLater); + browser.app.cppFunction, DeferredApp::UI&, std::string>("uiMutable", &uiMutableLater); + browser.connect(); + browser.call("uiReference", 1, std::string(60, 'u')); + browser.call("uiMutable", 2, std::string(60, 'm')); + deferredGates.release(0); + deferredGates.release(1); + THEN("the coroutines still read the UI they were given") { + REQUIRE(Socket::wrote(":" + std::string(60, 'u'))); + REQUIRE(Socket::wrote(":" + std::string(60, 'm'))); + REQUIRE(Socket::wrote("mutable")); + } +} From 1242e5f27900003bcf63c02df68e42d246f427cf Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 19:16:50 +0100 Subject: [PATCH 13/17] Drop a call that reuses an in-flight identifier on reception, and keep the bridge's own error codes off the link's public API (#459, #458) --- docs/ASYNC_EXECUTION.md | 2 +- .../ADR-004-appels-asynchrones-et-erreurs.md | 5 +-- include/webfront/DeferredCalls.hpp | 12 +++++-- include/webfront/WebFront.hpp | 35 ++++++++++++++++--- include/webfront/weblink/WebLink.hpp | 21 +++-------- test/unit/DeferredCallTests.cpp | 26 +++++++++++--- test/unit/WebLinkTests.cpp | 11 ------ 7 files changed, 70 insertions(+), 42 deletions(-) diff --git a/docs/ASYNC_EXECUTION.md b/docs/ASYNC_EXECUTION.md index fda1f33b..771fafff 100644 --- a/docs/ASYNC_EXECUTION.md +++ b/docs/ASYNC_EXECUTION.md @@ -185,7 +185,7 @@ the callback returns. The callback itself runs at once on the server context and spawned in the server's scope and tracked by its connection. When the browser disconnects its tasks are asked to stop and their late answers are dropped; shutting the application down stops and joins them. Completing stopped without a stop request rejects with `webfront.cancelled`. Calls are correlated by the identifier JavaScript chose, so several can -be in flight per connection; reusing an identifier still in flight is refused. The answer is sent from the server +be in flight per connection; a call that reuses an identifier still in flight is dropped on reception, for any function, without being run and without an answer (an answer could settle the wrong Promise). The answer is sent from the server context, whichever thread the awaited operation completed on. ```cpp diff --git a/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md b/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md index 9095f663..25e2ade4 100644 --- a/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md +++ b/docs/adr/ADR-004-appels-asynchrones-et-erreurs.md @@ -54,8 +54,9 @@ arrêté sans que l'appel l'ait été, avec `webfront.cancelled`. Le travail est connexion : la fermeture de la connexion demande son arrêt et écarte la réponse tardive sans rien envoyer, l'arrêt de l'application l'arrête et le joint. La réponse est émise sur le contexte du serveur. Plusieurs appels différés d'une connexion sont simultanés, chacun identifié par l'identifiant sur 16 bits que choisit JavaScript (au plus 65 535 en -vol : au-delà, `Too many outstanding WebFront calls` rejette côté navigateur) ; un identifiant déjà en vol est refusé -(`webfront.malformed`, « already in use ») sans toucher à l'appel en cours. Une exception levée avant le retour du +vol : au-delà, `Too many outstanding WebFront calls` rejette côté navigateur) ; un identifiant déjà en vol est une violation du protocole (les appels du navigateur n'en réutilisent jamais) : à la réception, pour toute +fonction, l'appel est écarté sans être exécuté et sans réponse, car une réponse portant cet identifiant pourrait régler la Promise +du premier appel, et la réponse différée de celui-ci un appel ultérieur qui le réutiliserait. Une exception levée avant le retour du sender rejette aussitôt. Aucun délai automatique : un sender qui ne se termine jamais laisse la Promise en attente jusqu'à la déconnexion. Les callbacks enregistrés sont possédés par le stockage de l’application. Les signatures diff --git a/include/webfront/DeferredCalls.hpp b/include/webfront/DeferredCalls.hpp index 3c6a3b23..b45c22e0 100644 --- a/include/webfront/DeferredCalls.hpp +++ b/include/webfront/DeferredCalls.hpp @@ -51,13 +51,19 @@ class DeferredCalls { /// entry, or 0 when the connection closed or a call of that identifier has not been answered yet. [[nodiscard]] std::uint64_t reserve(msg::CallId callId) { std::lock_guard lock(mutex); - if (closed || (callId != 0 && !inFlight.insert(callId).second)) + if (closed || (callId != 0 && !inFlightIds.insert(callId).second)) return 0; const auto key = ++lastKey; tasks.emplace(key, std::optional{}); return key; } + /// True while a call with this identifier has been claimed and not yet answered or dropped. + [[nodiscard]] bool inFlight(msg::CallId callId) const { + std::lock_guard lock(mutex); + return callId != 0 && this->inFlightIds.contains(callId); + } + /// Remembers the task that will answer the reserved call, to stop it if the connection closes. void attach(std::uint64_t key, TaskHandle handle) { bool stop = false; @@ -74,7 +80,7 @@ class DeferredCalls { /// The call is answered, or dropped: its identifier can be used again. void finish(msg::CallId callId, std::uint64_t key) { std::lock_guard lock(mutex); - inFlight.erase(callId); + inFlightIds.erase(callId); tasks.erase(key); } @@ -99,7 +105,7 @@ class DeferredCalls { private: mutable std::mutex mutex; - std::set inFlight; + std::set inFlightIds; std::map> tasks; std::uint64_t lastKey = 0; bool closed = false; diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index cc4d5b5c..40edad11 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -383,6 +383,14 @@ websocket::Frame makeFailureFrame(msg::CallId callId, const std::exception& return frame; } +/// WebFront's own rejection of a call, with one of the codes of the bridge (bridge_code). Internal: the public ways to +/// reject (BridgeError thrown by a callback, WebLink::sendError) can never carry a reserved code. +template +void rejectWithBridgeCode(Link& link, msg::CallId callId, std::string_view code, const std::string& message) { + if (callId != 0) + link.sendFrame(makeFailureFrame(callId, makeBridgeError(code, message))); +} + /// A self-contained return message carrying `value`, or the failure of its encoding (a string over the message size). template websocket::Frame makeValueFrame(msg::CallId callId, const Value& value) { @@ -1064,10 +1072,8 @@ class BasicWF { const auto [calls, generation] = deferredCallsOf(caller); const auto key = calls ? calls->reserve(callId) : 0; if (key == 0) { - // The connection closed, or the browser reused the identifier of a call that is still running. - if (callId != 0) - link.sendBridgeError(callId, calls ? "The call identifier is already in use" : "Browser connection closed", - calls ? bridge_code::malformed : bridge_code::disconnected); + // The connection closed (nobody is left to answer), or a call with this identifier is still running: the common + // reception drops such a call before it gets here, and this claim is the last guard. return; } std::optional> sender; @@ -1093,6 +1099,18 @@ class BasicWF { calls->attach(key, handle); } + [[nodiscard]] bool callInFlight(WebLinkId id, WebLinkGeneration generation, msg::CallId callId) const { + std::shared_ptr calls; + { + std::scoped_lock lock{linksMutex}; + const auto found = webLinks.find(id); + if (found == webLinks.end() || found->second.generation != generation) + return false; + calls = found->second.deferredCalls; + } + return calls->inFlight(callId); + } + std::pair, WebLinkGeneration> deferredCallsOf(const UI& caller) const { std::scoped_lock lock{linksMutex}; const auto found = webLinks.find(caller.id()); @@ -1353,6 +1371,13 @@ class BasicWF { const auto [link, generation] = linkAndGeneration(event.webLinkId); if (!link) break; + // A browser that reuses the identifier of a call a callback has not answered yet breaks the protocol (its own + // calls never do). Whatever the function, no second call and no answer with that identifier: an answer could + // settle the first call's Promise, and the first call's own answer a later call that reuses the identifier. + if (callInFlight(event.webLinkId, generation, event.callId)) { + log::error("Ignoring a call to '{}' that reuses the identifier {} of a call still running", event.text, event.callId); + break; + } if constexpr (requires(typename Net::Acceptor& acceptor) { Net::ResumeAfter(acceptor, std::chrono::milliseconds(1)); }) { if (domCall(event, *link)) break; @@ -1363,7 +1388,7 @@ class BasicWF { if (auto function = cppFunctions.find(event.text); function != cppFunctions.end()) function->second(event.data, *link, event.callId, UI{*this, event.webLinkId, generation}); else - link->sendBridgeError(event.callId, "C++ function '" + event.text + "' was not found", bridge_code::notFound); + detail::rejectWithBridgeCode(*link, event.callId, bridge_code::notFound, "C++ function '" + event.text + "' was not found"); break; } } diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index 610c4370..ad99707c 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -328,32 +328,21 @@ class WebLink { public: /// Rejects the call `callId` with `message` and an application `code` (the generic one by default); nothing is sent /// for call 0. A code that is ill-formed or reserved to the bridge (`webfront.*`) is sent as the generic one: this path - /// cannot forge an error that looks like the bridge's own. + /// cannot forge an error that looks like the bridge's own. WebFront's own codes leave through the internal + /// detail::rejectWithBridgeCode, not through a method of the link. void sendError(msg::CallId callId, std::string_view message, std::string_view code = bridge_code::generic) { - const bool usable = BridgeError::isValidCode(code) && !BridgeError::isReserved(code); - sendRejection(callId, message, usable ? code : bridge_code::generic); - } - - /// Rejects the call `callId` with one of the codes of the bridge (bridge_code), for WebFront's own failures. Any other - /// code is sent as the generic one, so that this path cannot forge an error that looks like the bridge's own. - void sendBridgeError(msg::CallId callId, std::string_view message, std::string_view code) { - const bool known = code == bridge_code::notFound || code == bridge_code::malformed || code == bridge_code::disconnected - || code == bridge_code::cancelled; - sendRejection(callId, message, known ? code : bridge_code::generic); - } - -private: - void sendRejection(msg::CallId callId, std::string_view message, std::string_view code) { if (callId == 0) return; + const bool usable = BridgeError::isValidCode(code) && !BridgeError::isReserved(code); msg::FunctionReturn result; result.setCallId(callId); websocket::Frame frame{std::span(reinterpret_cast(result.header().data()), result.header().size())}; - const auto error = detail::makeBridgeError(code, std::string(message)); + const auto error = detail::makeBridgeError(usable ? code : bridge_code::generic, std::string(message)); result.encodeParameter(error, frame); frame.freeze(); sendFrame(std::move(frame)); } +private: struct Writer { std::size_t limit; std::function ready; diff --git a/test/unit/DeferredCallTests.cpp b/test/unit/DeferredCallTests.cpp index 0f5ced67..0e1f9e9b 100644 --- a/test/unit/DeferredCallTests.cpp +++ b/test/unit/DeferredCallTests.cpp @@ -244,17 +244,25 @@ SCENARIO("Several deferred calls of one connection are answered independently", } } -SCENARIO("A call identifier that is still in flight cannot be reused", "[deferred]") { +SCENARIO("A call that reuses the identifier of a running call is dropped without any answer", "[deferred]") { DeferredBrowser browser; browser.app.cppFunction("echoLater", &echoLater); + browser.app.cppFunction("plain", [] { return std::string("plain-result"); }); browser.connect(); browser.call("echoLater", 7, "first"); browser.call("echoLater", 7, "again"); - THEN("the second call is rejected and the first one still completes") { + browser.call("plain", 7); + browser.call("noSuchFunction", 7); + THEN("no callback runs and nothing is sent for the duplicates, whatever the function") { REQUIRE(deferredGates.open.size() == 1); - REQUIRE(Socket::wrote("already in use")); + REQUIRE_FALSE(Socket::wrote("plain-result")); + REQUIRE_FALSE(Socket::wrote("already in use")); + REQUIRE_FALSE(Socket::wrote("was not found")); + } + THEN("the first call still completes with its own answer") { deferredGates.release(0); REQUIRE(Socket::wrote("answered:first")); + REQUIRE_FALSE(Socket::wrote("answered:again")); } AND_WHEN("it was answered") { deferredGates.release(0); @@ -345,7 +353,7 @@ SCENARIO("A call refused as a duplicate does not run the callback", "[deferred]" browser.call("counting", 7, "again"); THEN("the callback ran once and the duplicate was refused") { REQUIRE(sideEffects == 1); - REQUIRE(Socket::wrote("already in use")); + REQUIRE_FALSE(Socket::wrote("already in use")); } } @@ -364,3 +372,13 @@ SCENARIO("The calling UI of a deferred callback lives until it completes", "[def REQUIRE(Socket::wrote("mutable")); } } + +SCENARIO("A call to an unknown function is rejected with the not-found code of the bridge", "[deferred]") { + DeferredBrowser browser; + browser.connect(); + browser.call("noSuchFunction", 4); + THEN("the code reserved to the bridge reaches the browser") { + REQUIRE(Socket::wrote(std::string(bridge_code::notFound))); + REQUIRE(Socket::wrote("was not found")); + } +} diff --git a/test/unit/WebLinkTests.cpp b/test/unit/WebLinkTests.cpp index 7b6465d4..dc54f1fb 100644 --- a/test/unit/WebLinkTests.cpp +++ b/test/unit/WebLinkTests.cpp @@ -301,17 +301,6 @@ SCENARIO("WebLink dispatches browser messages and allocates distinct calls") { } } - GIVEN("a bridge error with a code that is not one of the bridge's") { - link.sendBridgeError(13, "forged", "webfront.forged"); - link.sendBridgeError(14, "genuine", bridge_code::notFound); - - THEN("it is sent as the generic error, while a known code is kept") { - REQUIRE_FALSE(InjectableSocket::wrote("webfront.forged")); - REQUIRE(InjectableSocket::wrote(std::string(bridge_code::generic))); - REQUIRE(InjectableSocket::wrote(std::string(bridge_code::notFound))); - } - } - GIVEN("a closed browser connection") { InjectableSocket::fail(make_error_code(errc::connection_reset)); auto [callId, result] = link.expectResult(); From eb9b140baa25fde56b3a2d91fe6b97851741a009 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 19:30:35 +0100 Subject: [PATCH 14/17] Give the browser test's failing coroutine a co_return for MSVC (#459) --- test/web/JasmineTest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index 3dd22c7e..eebaeaeb 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -333,14 +333,16 @@ class BrowserIntegrationTest { co_await app->resumeAfter(chrono::milliseconds(delayMs)); co_return "deferred:" + value; } - static ResultTask deferredFailure(TestWF* app) { + static ResultTask deferredFailure(TestWF* app, string reason) { co_await app->resumeAfter(chrono::milliseconds(20)); - throw BridgeError("late:failure", "rejected after a delay"); + if (!reason.empty()) // always: a value-returning coroutine needs a co_return and no unreachable code (MSVC) + throw BridgeError("late:failure", reason); + co_return reason; } void registerListCallbacks() { webFront->cppFunction("deferredEcho", [this](string value, int delayMs) { return deferredEcho(webFront, std::move(value), delayMs); }); - webFront->cppFunction("deferredFailure", [this]() { return deferredFailure(webFront); }); + webFront->cppFunction("deferredFailure", [this]() { return deferredFailure(webFront, "rejected after a delay"); }); webFront->cppFunction("listEcho", [](const vector& value) { return value; From ba708999b75d4f1804902cff6eb716600f15b2da Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 21:36:30 +0100 Subject: [PATCH 15/17] Share the 32-level tuple nesting limit of list elements between both codecs, with the encoders and a browser regression at 32 and 33 (#457) --- .../ADR-003-protocole-binaire-et-bornes.md | 5 +- include/webfront/system/WebFrontJsData.hpp | 1869 +++++++++-------- include/webfront/weblink/Messages.hpp | 16 +- js/core/WebFront.js | 13 +- test/unit/MessagesTests.cpp | 19 + test/web/JasmineTest.cpp | 13 + test/web/suite/specs/webfront-specs.mjs | 11 + 7 files changed, 1014 insertions(+), 932 deletions(-) diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 3c27db56..b8d56e59 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -59,7 +59,10 @@ le régulier sont une forme), même arité et mêmes formes de champs pour les t décodant chaque élément dans le type de la destination ; le décodeur et l'encodeur JavaScript comparent les formes. Les **listes ne s'imbriquent pas**, ni directement ni dans un tuple élément : un `std::vector>` est refusé à la compilation, une telle liste reçue ou envoyée par JavaScript est rejetée ; une liste dans un tuple de -premier niveau (une page de résultats et son curseur) est permise. Un élément ne peut pas être une exception. +premier niveau (une page de résultats et son curseur) est permise. Un élément ne peut pas être une exception. Les tuples s'imbriquent sur **32 niveaux au plus** dans un élément de liste, dans +les deux codecs : le décodeur C++ et le codec JavaScript refusent le 33e niveau, l'encodeur C++ le refuse à la compilation +(`maxListTupleDepth`) et l'encodeur JavaScript par une `TypeError` ; la borne protège la pile, que les décodeurs récursifs +parcourent. Bornes : la taille de message ; un nombre d'éléments supérieur au nombre d'octets restants est rejeté avant toute allocation ; une liste tronquée ou hétérogène est rejetée. L'encodeur C++ place l'en-tête de chaque élément dans le tampon de la politique (`functionCallBufferSize`, 32 Kio par défaut, soit de 10 000 à 16 000 chaînes) : une liste plus diff --git a/include/webfront/system/WebFrontJsData.hpp b/include/webfront/system/WebFrontJsData.hpp index 6f1de4e0..56ce378b 100644 --- a/include/webfront/system/WebFrontJsData.hpp +++ b/include/webfront/system/WebFrontJsData.hpp @@ -9,8 +9,8 @@ namespace webfront::fs::generated { struct WebFrontJsData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{42661}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{43191}; + static constexpr std::array data{ 0x2f2f2f2040627269, 0x65662042726f7773, 0x65722d7369646520, 0x57656246726f6e74, 0x206272696467652e, 0x0a0a2866756e6374, 0x696f6e2028676c6f, 0x62616c29207b0a20, 0x2020202275736520, 0x737472696374223b, 0x0a0a20202020636f, 0x6e737420436f6d6d, 0x616e64203d204f62, 0x6a6563742e667265, 0x657a65287b0a2020, @@ -145,939 +145,952 @@ struct WebFrontJsData { 0x206061247b506172, 0x616d547970652e61, 0x7272617955387d60, 0x3b0a202020202020, 0x2020636173652050, 0x6172616d54797065, 0x2e6c6973743a0a20, 0x2020202020202020, 0x2020207265747572, 0x6e20224c223b0a20, 0x2020202020202064, 0x656661756c743a0a, 0x2020202020202020, 0x2020202072657475, 0x726e206061247b74, - 0x7970657d603b0a20, 0x202020202020207d, 0x0a202020207d0a0a, 0x202020202f2f2f20, 0x41206c6973742065, - 0x6c656d656e742069, 0x73206e6569746865, 0x722061206c697374, 0x206e6f7220612074, 0x75706c6520686f6c, - 0x64696e67206f6e65, 0x3a20746865697220, 0x7368617065732063, 0x6f6e7461696e2022, 0x4c222e0a20202020, - 0x66756e6374696f6e, 0x2072657175697265, 0x4c697374456c656d, 0x656e745368617065, 0x2873686170652920, - 0x7b0a202020202020, 0x2020696620287368, 0x6170652e696e636c, 0x7564657328224c22, 0x29290a2020202020, - 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f72282257656246, 0x726f6e74206c6973, - 0x74732063616e6e6f, 0x7420636f6e746169, 0x6e206c6973747322, 0x293b0a202020207d, 0x0a0a202020206675, - 0x6e6374696f6e2069, 0x7354797065644172, 0x7261792876616c75, 0x6529207b0a202020, 0x2020202020726574, - 0x75726e2041727261, 0x794275666665722e, 0x6973566965772876, 0x616c756529202626, 0x20212876616c7565, - 0x20696e7374616e63, 0x656f662044617461, 0x56696577293b0a20, 0x2020207d0a0a2020, 0x20202f2f2f205368, - 0x6f72742055696e74, 0x3841727261792070, 0x61796c6f61647320, 0x7573652074686520, 0x636f6d7061637420, - 0x736d616c6c417272, 0x6179553820686561, 0x6465722e2053697a, 0x696e6720616e6420, 0x656e636f64696e67, - 0x206d757374206167, 0x726565206f6e0a20, 0x2020202f2f2f2074, 0x6869732c20736f20, 0x626f746820676f20, - 0x7468726f75676820, 0x686572653a206120, 0x6469736167726565, 0x6d656e7420776f75, 0x6c64206d69732d73, - 0x697a652074686520, 0x73656e6420627566, 0x6665722e0a202020, 0x2066756e6374696f, 0x6e20747970656441, - 0x7272617948656164, 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, 0x72657475726e2076, - 0x616c756520696e73, 0x74616e63656f6620, 0x55696e7438417272, 0x6179202626207661, 0x6c75652e6c656e67, - 0x7468203c20323536, 0x203f2032203a2035, 0x3b0a202020207d0a, 0x0a202020202f2f2f, 0x204120737472696e, - 0x67206f6620323535, 0x206279746573206f, 0x72206c6573732068, 0x6173206120312d62, 0x797465206c656e67, - 0x74682c2075702074, 0x6f20363535333520, 0x6120322d62797465, 0x206f6e652c206265, 0x796f6e6420612034, - 0x2d62797465206f6e, 0x6520286c6f6e6753, 0x7472696e67292e0a, 0x2020202066756e63, 0x74696f6e20737472, - 0x696e674865616465, 0x7253697a65286c65, 0x6e67746829207b0a, 0x2020202020202020, 0x696620286c656e67, - 0x7468203e20307866, 0x6666666666666629, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772052, - 0x616e67654572726f, 0x7228225765624672, 0x6f6e742073747269, 0x6e67732063616e6e, 0x6f74206578636565, - 0x6420343239343936, 0x3732393520555446, 0x2d38206279746573, 0x22293b0a20202020, 0x2020202072657475, - 0x726e206c656e6774, 0x68203c2032353620, 0x3f2032203a206c65, 0x6e677468203c2036, 0x35353336203f2033, - 0x203a20353b0a2020, 0x20207d0a0a202020, 0x202f2f2f20436f64, 0x6573206f66207468, 0x65206661696c7572, - 0x6573207468652062, 0x7269646765206974, 0x73656c6620726570, 0x6f7274733b207468, 0x6579207374617274, - 0x2077697468202277, 0x656266726f6e742e, 0x222c207768696368, 0x20616e206170706c, 0x69636174696f6e20, - 0x63616e6e6f742075, 0x73652e0a20202020, 0x636f6e7374204272, 0x69646765436f6465, 0x203d204f626a6563, - 0x742e667265657a65, 0x287b0a2020202020, 0x20202067656e6572, 0x69633a2022776562, 0x66726f6e742e6572, - 0x726f72222c0a2020, 0x2020202020206e6f, 0x74466f756e643a20, 0x2277656266726f6e, 0x742e6e6f74466f75, - 0x6e64222c0a202020, 0x20202020206d616c, 0x666f726d65643a20, 0x2277656266726f6e, 0x742e6d616c666f72, - 0x6d6564222c0a2020, 0x2020202020206469, 0x73636f6e6e656374, 0x65643a2022776562, 0x66726f6e742e6469, - 0x73636f6e6e656374, 0x6564222c0a202020, 0x202020202063616e, 0x63656c6c65643a20, 0x2277656266726f6e, - 0x742e63616e63656c, 0x6c6564222c0a2020, 0x20207d293b0a2020, 0x2020636f6e737420, 0x7265736572766564, - 0x507265666978203d, 0x202277656266726f, 0x6e742e223b0a2020, 0x2020636f6e737420, 0x76616c6964436f64, - 0x65203d202f5e5b41, 0x2d5a612d7a302d39, 0x2e5f3a2d5d7b312c, 0x36347d242f3b0a0a, 0x202020202f2f2f20, - 0x546865206572726f, 0x7273207468617420, 0x57656246726f6e74, 0x206d6164652c206f, 0x7220726563656976, - 0x65642066726f6d20, 0x432b2b2077697468, 0x2074686569722063, 0x6f64653a206f6e6c, 0x792074686579206d, - 0x6179206361727279, 0x2061207265736572, 0x76656420636f6465, 0x20746f2074686520, 0x6f74686572207369, - 0x64652e0a20202020, 0x636f6e7374206272, 0x696467654572726f, 0x7273203d206e6577, 0x205765616b536574, - 0x28293b0a0a202020, 0x202f2f2f20416e20, 0x4572726f72207769, 0x7468206120726561, 0x642d6f6e6c792060, - 0x636f6465602c206b, 0x6e6f776e20746f20, 0x7468652062726964, 0x6765206173206974, 0x73206f776e2e0a20, - 0x20202066756e6374, 0x696f6e2062726964, 0x67654572726f7228, 0x636f64652c206d65, 0x737361676529207b, - 0x0a20202020202020, 0x20636f6e73742065, 0x72726f72203d206e, 0x6577204572726f72, 0x286d657373616765, - 0x293b0a2020202020, 0x2020202f2f204e6f, 0x7420777269746162, 0x6c653a2075736572, 0x20636f646520636f, - 0x756c64206f746865, 0x7277697365207265, 0x7772697465207468, 0x6520636f6465206f, 0x6620616e20657272, - 0x6f72206f66207468, 0x6520627269646765, 0x20746f20666f7267, 0x6520612072657365, 0x72766564206f6e65, - 0x2e0a202020202020, 0x20204f626a656374, 0x2e646566696e6550, 0x726f706572747928, 0x6572726f722c2022, - 0x636f6465222c207b, 0x76616c75653a2063, 0x6f64652c20656e75, 0x6d657261626c653a, 0x20747275652c2077, - 0x72697461626c653a, 0x2066616c73652c20, 0x636f6e6669677572, 0x61626c653a206661, 0x6c73657d293b0a20, - 0x2020202020202062, 0x7269646765457272, 0x6f72732e61646428, 0x6572726f72293b0a, 0x2020202020202020, - 0x72657475726e2065, 0x72726f723b0a2020, 0x20207d0a0a202020, 0x202f2f2f20546865, 0x20636f646520616e, - 0x2065786365707469, 0x6f6e206973207365, 0x6e7420776974683a, 0x207468652060636f, 0x646560206f662061, - 0x6e204572726f7220, 0x72656a6563746564, 0x2062792074686520, 0x6170706c69636174, 0x696f6e207768656e, - 0x2069742069732077, 0x656c6c20666f726d, 0x656420616e64206e, 0x6f740a202020202f, 0x2f2f207265736572, - 0x7665642c206f7468, 0x6572776973652074, 0x68652067656e6572, 0x696320636f64652e, 0x2041207265736572, - 0x76656420636f6465, 0x206973206b657074, 0x206f6e6c79206f6e, 0x20616e206572726f, 0x72206f6620746865, - 0x206272696467652e, 0x0a2020202066756e, 0x6374696f6e206578, 0x63657074696f6e43, 0x6f6465286572726f, - 0x7229207b0a202020, 0x20202020206c6574, 0x20636f64653b0a20, 0x2020202020202074, 0x7279207b0a202020, - 0x2020202020202020, 0x20636f6465203d20, 0x6572726f7220213d, 0x3d206e756c6c2026, 0x2620747970656f66, - 0x206572726f72203d, 0x3d3d20226f626a65, 0x637422203f206572, 0x726f722e636f6465, 0x203a20756e646566, - 0x696e65643b0a2020, 0x2020202020207d20, 0x6361746368207b0a, 0x2020202020202020, 0x2020202072657475, - 0x726e204272696467, 0x65436f64652e6765, 0x6e657269633b2020, 0x2f2f20612060636f, 0x6465602061636365, - 0x73736f7220746861, 0x74207468726f7773, 0x206d757374206e6f, 0x74206c6561766520, 0x74686520432b2b20, - 0x63616c6c20756e61, 0x6e7377657265640a, 0x2020202020202020, 0x7d0a202020202020, 0x2020696620287479, - 0x70656f6620636f64, 0x6520213d3d202273, 0x7472696e6722207c, 0x7c202176616c6964, 0x436f64652e746573, - 0x7428636f64652929, 0x0a20202020202020, 0x2020202020726574, 0x75726e2042726964, 0x6765436f64652e67, - 0x656e657269633b0a, 0x2020202020202020, 0x69662028636f6465, 0x2e73746172747357, 0x6974682872657365, - 0x7276656450726566, 0x6978292026262021, 0x6272696467654572, 0x726f72732e686173, 0x286572726f722929, - 0x0a20202020202020, 0x2020202020726574, 0x75726e2042726964, 0x6765436f64652e67, 0x656e657269633b0a, - 0x2020202020202020, 0x72657475726e2063, 0x6f64653b0a202020, 0x207d0a0a20202020, 0x2f2f2f2054686520, - 0x74657874206f6620, 0x612072656a656374, 0x696f6e2c20776861, 0x7465766572207468, 0x652072656a656374, - 0x65642076616c7565, 0x3a206120606d6573, 0x7361676560206163, 0x636573736f72206f, 0x7220612060746f53, - 0x7472696e67602074, 0x686174207468726f, 0x7773206769766573, 0x2061206669786564, 0x20746578742e0a20, - 0x20202066756e6374, 0x696f6e2065786365, 0x7074696f6e546578, 0x74286572726f7229, 0x207b0a2020202020, - 0x202020747279207b, 0x0a20202020202020, 0x2020202020726574, 0x75726e206572726f, 0x7220696e7374616e, - 0x63656f6620457272, 0x6f72203f20537472, 0x696e67286572726f, 0x722e6d6573736167, 0x6529203a20537472, - 0x696e67286572726f, 0x72293b0a20202020, 0x202020207d206361, 0x746368207b0a2020, 0x2020202020202020, - 0x202072657475726e, 0x20224a6176615363, 0x7269707420657863, 0x657074696f6e2077, 0x686f7365206d6573, - 0x736167652063616e, 0x6e6f742062652072, 0x656164223b0a2020, 0x2020202020207d0a, 0x202020207d0a0a20, - 0x20202066756e6374, 0x696f6e2069734e6f, 0x6e4e656761746976, 0x65496e7465676572, 0x2863616e64696461, - 0x746529207b0a2020, 0x2020202020207265, 0x7475726e204e756d, 0x6265722e69735361, 0x6665496e74656765, - 0x722863616e646964, 0x6174652920262620, 0x63616e6469646174, 0x65203e3d20303b0a, 0x202020207d0a0a20, - 0x20202066756e6374, 0x696f6e2072657175, 0x6972654279746573, 0x28766965772c206f, 0x66667365742c2063, - 0x6f756e742c206465, 0x736372697074696f, 0x6e29207b0a202020, 0x2020202020636f6e, 0x73742077656c6c46, - 0x6f726d6564203d20, 0x69734e6f6e4e6567, 0x6174697665496e74, 0x65676572286f6666, 0x7365742920262620, - 0x69734e6f6e4e6567, 0x6174697665496e74, 0x6567657228636f75, 0x6e74293b0a202020, 0x2020202020696620, - 0x282177656c6c466f, 0x726d6564207c7c20, 0x6f6666736574202b, 0x20636f756e74203e, 0x20766965772e6279, - 0x74654c656e677468, 0x290a202020202020, 0x2020202020207468, 0x726f77206e657720, 0x52616e6765457272, - 0x6f7228605472756e, 0x636174656420247b, 0x6465736372697074, 0x696f6e7d60293b0a, 0x202020207d0a0a20, - 0x202020636c617373, 0x2057656246726f6e, 0x7442726964676520, 0x7b0a202020202020, 0x20202f2f2f205468, - 0x6520576562536f63, 0x6b65742061646472, 0x657373206f662074, 0x6865207061676520, 0x7468617420736572, - 0x7665732074686973, 0x207363726970743a, 0x207773733a2f2f20, 0x6f6e20616e206874, 0x7470733a2f2f2070, - 0x6167652c20776865, 0x726520612062726f, 0x7773657220626c6f, 0x636b732077733a2f, 0x2f0a202020202020, - 0x20202f2f2f206173, 0x206d697865642063, 0x6f6e74656e742e0a, 0x2020202020202020, 0x7374617469632064, - 0x656661756c745572, 0x6c286c6f63617469, 0x6f6e203d20676c6f, 0x62616c2e6c6f6361, 0x74696f6e29207b0a, - 0x2020202020202020, 0x2020202072657475, 0x726e2060247b6c6f, 0x636174696f6e2e70, 0x726f746f636f6c20, - 0x3d3d3d2022687474, 0x70733a22203f2022, 0x7773733a22203a20, 0x2277733a227d2f2f, 0x247b6c6f63617469, - 0x6f6e2e686f73747d, 0x603b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f20546865206c61, - 0x7267657374206d65, 0x7373616765207468, 0x6520432b2b207369, 0x6465206163636570, 0x7473206279206465, - 0x6661756c74202868, 0x7474703a3a646566, 0x61756c744d61784d, 0x6573736167655369, 0x7a65293a20612070, - 0x6f6c696379207769, 0x746820616e6f7468, 0x65720a2020202020, 0x2020202f2f2f206d, 0x61784d6573736167, - 0x6553697a65206e65, 0x6564732074686520, 0x73616d652076616c, 0x756520696e20606d, 0x61784d6573736167, - 0x6542797465736020, 0x6f66207468652062, 0x72696467652e0a20, 0x2020202020202073, 0x7461746963206765, - 0x742064656661756c, 0x744d61784d657373, 0x6167654279746573, 0x2829207b0a202020, 0x2020202020202020, - 0x2072657475726e20, 0x3634202a20313032, 0x34202a2031303234, 0x3b0a202020202020, 0x20207d0a0a202020, - 0x2020202020636f6e, 0x7374727563746f72, 0x2875726c203d2057, 0x656246726f6e7442, 0x72696467652e6465, - 0x6661756c7455726c, 0x282929207b0a2020, 0x2020202020202020, 0x2020746869732e6d, 0x61784d6573736167, - 0x654279746573203d, 0x2057656246726f6e, 0x744272696467652e, 0x64656661756c744d, 0x61784d6573736167, - 0x6542797465733b0a, 0x2020202020202020, 0x2020202074686973, 0x2e7374617465203d, 0x2022756e696e6974, - 0x69616c697a656422, 0x3b0a202020202020, 0x2020202020207468, 0x69732e6c6974746c, 0x65456e6469616e20, - 0x3d2066616c73653b, 0x0a20202020202020, 0x2020202020746869, 0x732e6e6578744361, 0x6c6c4964203d2031, - 0x3b0a202020202020, 0x2020202020207468, 0x69732e70656e6469, 0x6e6743616c6c7320, 0x3d206e6577204d61, - 0x7028293b0a202020, 0x2020202020202020, 0x20746869732e7265, 0x616479536574746c, 0x6564203d2066616c, - 0x73653b0a20202020, 0x2020202020202020, 0x746869732e726561, 0x647950726f6d6973, 0x65203d206e657720, - 0x50726f6d69736528, 0x287265736f6c7665, 0x2c2072656a656374, 0x29203d3e207b0a20, 0x2020202020202020, - 0x2020202020202074, 0x6869732e7265736f, 0x6c76655265616479, 0x203d207265736f6c, 0x76653b0a20202020, - 0x2020202020202020, 0x2020202074686973, 0x2e72656a65637452, 0x65616479203d2072, 0x656a6563743b0a20, - 0x2020202020202020, 0x2020207d293b0a20, 0x2020202020202020, 0x2020202f2f205769, 0x74686f7574207468, - 0x69732c2061207061, 0x6765207468617420, 0x6e6576657220746f, 0x7563686573207765, 0x6246726f6e742e72, - 0x6561647920776f75, 0x6c64207365652061, 0x6e2022756e68616e, 0x646c65640a202020, 0x2020202020202020, - 0x202f2f2070726f6d, 0x6973652072656a65, 0x6374696f6e222077, 0x61726e696e672069, 0x662074686520696e, - 0x697469616c20636f, 0x6e6e656374696f6e, 0x206661696c732e20, 0x4170706c69636174, 0x696f6e20636f6465, - 0x207374696c6c0a20, 0x2020202020202020, 0x2020202f2f206765, 0x747320697473206f, 0x776e20696e646570, - 0x656e64656e742073, 0x6574746c656d656e, 0x7420766961202e74, 0x68656e28292f2e63, 0x6174636828292f61, - 0x77616974206f6e20, 0x7468652073616d65, 0x2070726f6d697365, 0x3b0a202020202020, 0x2020202020202f2f, - 0x2061747461636869, 0x6e6720612068616e, 0x646c657220686572, 0x6520646f65736e27, 0x7420636f6e73756d, - 0x65206f7220616666, 0x6563742074686f73, 0x652e0a2020202020, 0x2020202020202074, 0x6869732e72656164, - 0x7950726f6d697365, 0x2e63617463682828, 0x29203d3e207b7d29, 0x3b0a202020202020, 0x2020202020207468, - 0x69732e626f756e64, 0x50726f6d69736520, 0x3d206e6577205072, 0x6f6d697365282872, 0x65736f6c76652c20, - 0x72656a6563742920, 0x3d3e207b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e7265736f6c76, - 0x65426f756e64203d, 0x207265736f6c7665, 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e72, - 0x656a656374426f75, 0x6e64203d2072656a, 0x6563743b0a202020, 0x2020202020202020, 0x207d293b0a202020, - 0x2020202020202020, 0x20746869732e626f, 0x756e6450726f6d69, 0x73652e6361746368, 0x282829203d3e207b, - 0x7d293b0a20202020, 0x2020202020202020, 0x746869732e736f63, 0x6b6574203d206e65, 0x7720576562536f63, - 0x6b65742875726c2c, 0x202257656246726f, 0x6e745f302e312229, 0x3b0a202020202020, 0x2020202020207468, - 0x69732e736f636b65, 0x742e62696e617279, 0x54797065203d2022, 0x6172726179627566, 0x666572223b0a2020, - 0x2020202020202020, 0x2020746869732e73, 0x6f636b65742e6f6e, 0x6f70656e203d2028, 0x29203d3e20746869, - 0x732e68616e647368, 0x616b6528293b0a20, 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e6f, - 0x6e6d657373616765, 0x203d206576656e74, 0x203d3e2074686973, 0x2e6f6e4d65737361, 0x6765286576656e74, - 0x2e64617461293b0a, 0x2020202020202020, 0x2020202074686973, 0x2e736f636b65742e, 0x6f6e636c6f736520, - 0x3d206576656e7420, 0x3d3e207b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206465746169, - 0x6c203d206576656e, 0x742e776173436c65, 0x616e203f2060636f, 0x64653d247b657665, 0x6e742e636f64657d, - 0x20726561736f6e3d, 0x247b6576656e742e, 0x726561736f6e7d60, 0x203a2022636f6e6e, 0x656374696f6e206c, - 0x6f7374223b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e7374206572726f, 0x72203d2062726964, - 0x67654572726f7228, 0x427269646765436f, 0x64652e646973636f, 0x6e6e65637465642c, 0x206057656246726f, - 0x6e7420636f6e6e65, 0x6374696f6e20636c, 0x6f7365643a20247b, 0x64657461696c7d60, 0x293b0a2020202020, - 0x2020202020202020, 0x202020746869732e, 0x736574746c655265, 0x61647952656a6563, 0x746564286572726f, - 0x72293b0a20202020, 0x2020202020202020, 0x2020202074686973, 0x2e72656a65637442, 0x6f756e6428657272, - 0x6f72293b20202f2f, 0x2061206e6f2d6f70, 0x206f6e6365207365, 0x74746c65640a2020, 0x2020202020202020, - 0x202020202020666f, 0x722028636f6e7374, 0x2070656e64696e67, 0x206f662074686973, 0x2e70656e64696e67, - 0x43616c6c732e7661, 0x6c7565732829290a, 0x2020202020202020, 0x2020202020202020, 0x2020202070656e64, - 0x696e672e72656a65, 0x6374286572726f72, 0x293b0a2020202020, 0x2020202020202020, 0x202020746869732e, - 0x70656e64696e6743, 0x616c6c732e636c65, 0x617228293b0a2020, 0x2020202020202020, 0x2020202020207468, - 0x69732e7374617465, 0x203d2022636c6f73, 0x6564223b0a202020, 0x2020202020202020, 0x2020202020636f6e, - 0x736f6c652e6c6f67, 0x28605b5765624672, 0x6f6e7420636c6f73, 0x655d20247b646574, 0x61696c7d60293b0a, - 0x2020202020202020, 0x202020207d3b0a20, 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e6f, - 0x6e6572726f72203d, 0x202829203d3e207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742065, - 0x72726f72203d206e, 0x6577204572726f72, 0x282257656246726f, 0x6e7420636f6e6e65, 0x6374696f6e206661, - 0x696c656422293b0a, 0x2020202020202020, 0x2020202020202020, 0x746869732e736574, 0x746c655265616479, - 0x52656a6563746564, 0x286572726f72293b, 0x0a20202020202020, 0x2020202020202020, 0x20746869732e7265, - 0x6a656374426f756e, 0x64286572726f7229, 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e736f6c, - 0x652e6572726f7228, 0x225b57656246726f, 0x6e7420736f636b65, 0x74206572726f725d, 0x222c206572726f72, - 0x293b0a2020202020, 0x202020202020207d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x20202020202f2f2f, - 0x205265736f6c7665, 0x73206f6e63652074, 0x686520576562536f, 0x636b65742068616e, 0x647368616b652069, - 0x732061636b6e6f77, 0x6c65646765642c20, 0x72656a6563747320, 0x6966207468652069, 0x6e697469616c2063, - 0x6f6e6e656374696f, 0x6e0a202020202020, 0x20202f2f2f20636c, 0x6f736573206f7220, 0x6661696c73206265, - 0x666f726520746861, 0x742e20446f657320, 0x6e6f74207265666c, 0x656374206c617465, 0x7220646973636f6e, - 0x6e656374733b2073, 0x65652070656e6469, 0x6e6743616c6c732f, 0x73746174652e0a20, 0x2020202020202067, - 0x6574207265616479, 0x2829207b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e726561, - 0x647950726f6d6973, 0x653b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f205265736f6c76, - 0x6573206f6e636520, 0x746869732062726f, 0x7773657220636c69, 0x656e7420686f6c64, 0x732074686520636f, - 0x6f6b696520746861, 0x742062696e647320, 0x7468652072656164, 0x2055524c73206769, 0x76656e20746f2074, - 0x6869732070616765, 0x20284144522d3032, 0x30292c20616e640a, 0x2020202020202020, 0x2f2f2f2072656a65, - 0x6374732c20776974, 0x6820616e20657870, 0x6c69636974206572, 0x726f722c20776865, 0x6e20746865206578, - 0x6368616e67652066, 0x61696c73206f7220, 0x7468652062726f77, 0x7365722072656675, 0x7365732074686520, - 0x636f6f6b69653a20, 0x626f756e64207265, 0x6164730a20202020, 0x202020202f2f2f20, 0x7468656e20666169, - 0x6c2c20776974686f, 0x75742066616c6c69, 0x6e67206261636b20, 0x746f207468652074, 0x6f6b656e20616c6f, - 0x6e652e20432b2b20, 0x7374617274732069, 0x7420726967687420, 0x6166746572207468, 0x652068616e647368, - 0x616b652e0a202020, 0x2020202020676574, 0x20626f756e642829, 0x207b0a2020202020, 0x2020202020202072, - 0x657475726e207468, 0x69732e626f756e64, 0x50726f6d6973653b, 0x0a20202020202020, 0x207d0a0a20202020, - 0x202020202f2f2f20, 0x45786368616e6765, 0x7320746865206f6e, 0x652d74696d652073, 0x6563726574207265, - 0x6365697665642074, 0x68726f7567682074, 0x6865206272696467, 0x6520666f72207468, 0x6520636f6f6b6965, - 0x206f662074686973, 0x20636c69656e742c, 0x207468656e206368, 0x65636b7320746861, 0x74207468650a2020, - 0x2020202020202f2f, 0x2f2062726f777365, 0x72206b6570742069, 0x742e205468652073, 0x6563726574206973, - 0x2073696e676c6520, 0x7573653b20746865, 0x20636f6f6b696520, 0x697320487474704f, 0x6e6c792c20736f20, - 0x7468652070616765, 0x206e657665722072, 0x656164732069742e, 0x0a20202020202020, 0x206173796e632062, - 0x696e64436c69656e, 0x7428736563726574, 0x29207b0a20202020, 0x2020202020202020, 0x2f2f204162736f6c, - 0x75746520616e6420, 0x70696e6e65642074, 0x6f20746865206f72, 0x6967696e206f6620, 0x746865206170706c, - 0x69636174696f6e3a, 0x2061203c62617365, 0x20687265663e2069, 0x6e20746865207061, 0x6765206d75737420, - 0x6e65766572207265, 0x6469726563742074, 0x68650a2020202020, 0x202020202020202f, 0x2f206f6e652d7469, - 0x6d65207365637265, 0x7420746f20616e6f, 0x7468657220686f73, 0x742c20616e642061, 0x2072656469726563, - 0x74206d757374206e, 0x6576657220636172, 0x7279206974206177, 0x61792e0a20202020, 0x2020202020202020, - 0x636f6e7374206261, 0x7365203d20676c6f, 0x62616c2e6c6f6361, 0x74696f6e2e6f7269, 0x67696e202b20222f, - 0x77656266726f6e74, 0x2f73657276696365, 0x732f62696e642f22, 0x3b0a202020202020, 0x202020202020636f, - 0x6e73742070696e6e, 0x6564203d207b6372, 0x6564656e7469616c, 0x733a202273616d65, 0x2d6f726967696e22, - 0x2c206d6f64653a20, 0x2273616d652d6f72, 0x6967696e222c2072, 0x656469726563743a, 0x20226572726f7222, - 0x2c2063616368653a, 0x20226e6f2d73746f, 0x7265227d3b0a2020, 0x2020202020202020, 0x2020747279207b0a, - 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206578, 0x6368616e6765203d, 0x2061776169742066, - 0x6574636828626173, 0x65202b20656e636f, 0x6465555249436f6d, 0x706f6e656e742873, 0x6563726574292c20, - 0x70696e6e6564293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028216578, 0x6368616e67652e6f, - 0x6b29207468726f77, 0x206e657720457272, 0x6f72286074686520, 0x7365727665722072, 0x6566757365642074, - 0x6865206578636861, 0x6e67652028485454, 0x5020247b65786368, 0x616e67652e737461, 0x7475737d2960293b, - 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742063, 0x6c69656e74203d20, 0x65786368616e6765, - 0x2e68656164657273, 0x2e6765742822582d, 0x57656246726f6e74, 0x2d436c69656e7422, 0x293b0a2020202020, - 0x2020202020202020, 0x2020206966202821, 0x636c69656e742920, 0x7468726f77206e65, 0x77204572726f7228, - 0x2274686520736572, 0x7665722064696420, 0x6e6f74206e616d65, 0x2074686520636c69, 0x656e7422293b0a20, - 0x2020202020202020, 0x2020202020202063, 0x6f6e737420636865, 0x636b203d20617761, 0x6974206665746368, - 0x2862617365202b20, 0x22636865636b2f22, 0x202b20656e636f64, 0x65555249436f6d70, 0x6f6e656e7428636c, - 0x69656e74292c2070, 0x696e6e6564293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821636865, - 0x636b2e6f6b292074, 0x68726f77206e6577, 0x204572726f722822, 0x7468652062726f77, 0x7365722072656675, - 0x7365642074686520, 0x62696e64696e6720, 0x636f6f6b69652229, 0x3b0a202020202020, 0x2020202020202020, - 0x2020746869732e72, 0x65736f6c7665426f, 0x756e6428293b0a20, 0x2020202020202020, 0x2020207d20636174, - 0x636820286572726f, 0x7229207b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206661696c75, - 0x7265203d206e6577, 0x204572726f722860, 0x57656246726f6e74, 0x20636f756c64206e, 0x6f742062696e6420, - 0x746869732062726f, 0x7773657220666f72, 0x2072656164733a20, 0x247b6572726f722e, 0x6d65737361676520, - 0x7c7c206572726f72, 0x7d60293b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e72656a656374, - 0x426f756e64286661, 0x696c757265293b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e736f6c652e, - 0x6572726f7228225b, 0x57656246726f6e74, 0x2062696e64696e67, 0x5d222c206661696c, 0x757265293b0a2020, - 0x2020202020202020, 0x20207d0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f2052656a6563, - 0x7473207468652069, 0x6e697469616c2d72, 0x656164696e657373, 0x2070726f6d697365, 0x206174206d6f7374, - 0x206f6e63652c2061, 0x6e64206f6e6c7920, 0x7768696c65207374, 0x696c6c2077616974, 0x696e67206f6e2074, - 0x68650a2020202020, 0x2020202f2f2f2068, 0x616e647368616b65, 0x2e2041206661696c, 0x656420636f6e6e65, - 0x6374696f6e207479, 0x706963616c6c7920, 0x666972657320626f, 0x746820606572726f, 0x726020616e642060, - 0x636c6f7365602c20, 0x616e642061206c61, 0x7465720a20202020, 0x202020202f2f2f20, 0x646973636f6e6e65, - 0x6374202861667465, 0x72206c696e6b696e, 0x6729206d75737420, 0x6e6f742072652d73, 0x6574746c6520616e, - 0x20616c7265616479, 0x2d7265736f6c7665, 0x6420607265616479, 0x603b207468697320, 0x67756172640a2020, - 0x2020202020202f2f, 0x2f206d616b657320, 0x6576657279206f6e, 0x65206f662074686f, 0x7365206361736573, - 0x2061206861726d6c, 0x657373206e6f2d6f, 0x7020616674657220, 0x7468652066697273, 0x7420736574746c65, - 0x6d656e742e0a2020, 0x2020202020207365, 0x74746c6552656164, 0x7952656a65637465, 0x64286572726f7229, - 0x207b0a2020202020, 0x2020202020202069, 0x662028746869732e, 0x7265616479536574, 0x746c6564207c7c20, - 0x746869732e737461, 0x7465203d3d3d2022, 0x6c696e6b65642229, 0x2072657475726e3b, 0x0a20202020202020, - 0x2020202020746869, 0x732e726561647953, 0x6574746c6564203d, 0x20747275653b0a20, 0x2020202020202020, - 0x202020746869732e, 0x72656a6563745265, 0x616479286572726f, 0x72293b0a20202020, 0x202020207d0a0a20, - 0x2020202020202068, 0x616e647368616b65, 0x2829207b0a202020, 0x2020202020202020, 0x20746869732e7374, - 0x617465203d202268, 0x616e647368616b69, 0x6e67223b0a202020, 0x2020202020202020, 0x202f2f20416e2065, - 0x6d62656464656420, 0x66726f6e74656e64, 0x2067697665732069, 0x7473207669657720, 0x61207065722d6c61, - 0x756e636820736563, 0x7265742061742074, 0x6865207374617274, 0x206f662074686520, 0x646f63756d656e74, - 0x20284144522d3032, 0x30292e2049742077, 0x61732074616b656e, 0x0a20202020202020, 0x20202020202f2f20, - 0x6f7574206f662074, 0x68652077696e646f, 0x77207768656e2074, 0x6869732073637269, 0x7074206c6f616465, - 0x642c20736f207468, 0x6520706167652064, 0x6f6573206e6f7420, 0x6b65657020726561, 0x64696e672069743b, - 0x2074686520737973, 0x74656d2062726f77, 0x7365722068617320, 0x6e6f6e652e0a2020, 0x2020202020202020, - 0x2020636f6e737420, 0x736563726574203d, 0x2076696577536563, 0x7265743b0a202020, 0x2020202020202020, - 0x20636f6e73742068, 0x6561646572203d20, 0x5b436f6d6d616e64, 0x2e68616e64736861, 0x6b652c206e617469, - 0x766549734c697474, 0x6c65456e6469616e, 0x2829203f2030203a, 0x20315d3b0a202020, 0x2020202020202020, - 0x20666f7220286c65, 0x7420696e64657820, 0x3d20303b20696e64, 0x6578203c20736563, 0x7265742e6c656e67, - 0x74683b202b2b696e, 0x6465782920686561, 0x6465722e70757368, 0x287365637265742e, 0x63686172436f6465, - 0x417428696e646578, 0x2920262030783766, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, - 0x65742e73656e6428, 0x6e65772055696e74, 0x3841727261792868, 0x656164657229293b, 0x0a20202020202020, - 0x207d0a0a20202020, 0x202020206f6e4d65, 0x7373616765286275, 0x6666657229207b0a, 0x2020202020202020, - 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, 0x6156696577286275, 0x66666572293b0a20, - 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c20302c, 0x20312c20226d6573, - 0x7361676520686561, 0x64657222293b0a20, 0x2020202020202020, 0x2020207377697463, 0x682028766965772e, - 0x67657455696e7438, 0x28302929207b0a20, 0x2020202020202020, 0x2020206361736520, 0x436f6d6d616e642e, - 0x61636b3a0a202020, 0x2020202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, - 0x302c20322c202261, 0x636b6e6f776c6564, 0x67656d656e742229, 0x3b0a202020202020, 0x2020202020202020, - 0x2020696620287468, 0x69732e7374617465, 0x203d3d3d20226861, 0x6e647368616b696e, 0x672229207b0a2020, - 0x2020202020202020, 0x2020202020202020, 0x2020746869732e6c, 0x6974746c65456e64, 0x69616e203d207669, - 0x65772e6765745569, 0x6e7438283129203d, 0x3d3d20303b0a2020, 0x2020202020202020, 0x2020202020202020, - 0x2020746869732e73, 0x74617465203d2022, 0x6c696e6b6564223b, 0x0a20202020202020, 0x2020202020202020, - 0x2020202020746869, 0x732e726561647953, 0x6574746c6564203d, 0x20747275653b0a20, 0x2020202020202020, - 0x2020202020202020, 0x202020746869732e, 0x7265736f6c766552, 0x6561647928293b0a, 0x2020202020202020, - 0x2020202020202020, 0x7d0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, - 0x2020202020636173, 0x6520436f6d6d616e, 0x642e74657874436f, 0x6d6d616e643a0a20, 0x2020202020202020, - 0x2020202020202074, 0x6869732e68616e64, 0x6c6554657874436f, 0x6d6d616e64287669, 0x6577293b0a202020, - 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x6361736520436f6d, - 0x6d616e642e63616c, 0x6c46756e6374696f, 0x6e3a0a2020202020, 0x2020202020202020, 0x202020746869732e, - 0x63616c6c4a734675, 0x6e6374696f6e2876, 0x696577293b0a2020, 0x2020202020202020, 0x2020202020206272, - 0x65616b3b0a202020, 0x2020202020202020, 0x206361736520436f, 0x6d6d616e642e646f, 0x6d42617463683a0a, - 0x2020202020202020, 0x2020202020202020, 0x747279207b0a2020, 0x2020202020202020, 0x2020202020202020, - 0x2020696620287669, 0x65772e627974654c, 0x656e677468203e20, 0x31303234202a2031, 0x3032342920746872, - 0x6f77206e65772052, 0x616e67654572726f, 0x722822444f4d2062, 0x6174636820657863, 0x656564732031204d, - 0x694222293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020696620282174, 0x6869732e646f6d42, - 0x6174636848616e64, 0x6c65722920746872, 0x6f77206e65772045, 0x72726f722822444f, 0x4d20696e74657270, - 0x7265746572206973, 0x206e6f7420696e73, 0x74616c6c65642229, 0x3b0a202020202020, 0x2020202020202020, - 0x2020202020207468, 0x69732e646f6d4261, 0x74636848616e646c, 0x6572286e65772055, 0x696e743841727261, - 0x7928627566666572, 0x29293b0a20202020, 0x2020202020202020, 0x202020207d206361, 0x7463682028657272, - 0x6f7229207b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x6964203d20766965, - 0x772e627974654c65, 0x6e677468203e3d20, 0x36203f2076696577, 0x2e67657455696e74, 0x333228322c207472, - 0x756529203a20303b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, 0x732e63707046756e, - 0x6374696f6e282277, 0x66446f6d2e72656a, 0x6563746564222928, 0x69642c2053747269, 0x6e67286572726f72, - 0x2e6d657373616765, 0x207c7c206572726f, 0x72292e736c696365, 0x28302c2034303936, 0x29292e6361746368, - 0x282829203d3e207b, 0x7d293b0a20202020, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, - 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x206361736520436f, 0x6d6d616e642e6675, - 0x6e6374696f6e5265, 0x7475726e3a0a2020, 0x2020202020202020, 0x2020202020207468, 0x69732e68616e646c, - 0x6546756e6374696f, 0x6e52657475726e28, 0x76696577293b0a20, 0x2020202020202020, 0x2020202020202062, - 0x7265616b3b0a2020, 0x2020202020202020, 0x202064656661756c, 0x743a0a2020202020, 0x2020202020202020, - 0x2020207468726f77, 0x206e657720457272, 0x6f722860556e7375, 0x70706f7274656420, 0x57656246726f6e74, - 0x20636f6d6d616e64, 0x20247b766965772e, 0x67657455696e7438, 0x2830297d60293b0a, 0x2020202020202020, - 0x202020207d0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x2068616e646c6554, 0x657874436f6d6d61, - 0x6e64287669657729, 0x207b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, - 0x2c20302c20342c20, 0x227465787420636f, 0x6d6d616e64206865, 0x6164657222293b0a, 0x2020202020202020, - 0x20202020636f6e73, 0x74206c656e677468, 0x203d20766965772e, 0x67657455696e7431, 0x362832293b0a2020, - 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c20342c20, 0x6c656e6774682c20, - 0x227465787420636f, 0x6d6d616e64207061, 0x796c6f616422293b, 0x0a20202020202020, 0x2020202020636f6e, - 0x7374207465787420, 0x3d206e6577205465, 0x78744465636f6465, 0x7228227574662d38, 0x22292e6465636f64, - 0x65286e6577205569, 0x6e74384172726179, 0x28766965772e6275, 0x666665722c207669, 0x65772e627974654f, - 0x6666736574202b20, 0x342c206c656e6774, 0x6829293b0a202020, 0x2020202020202020, 0x2073776974636820, - 0x28766965772e6765, 0x7455696e74382831, 0x2929207b0a202020, 0x2020202020202020, 0x2063617365205465, - 0x7874436f6d6d616e, 0x642e64656275674c, 0x6f673a0a20202020, 0x2020202020202020, 0x20202020636f6e73, - 0x6f6c652e6c6f6728, 0x74657874293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, - 0x2020202020202020, 0x2020636173652054, 0x657874436f6d6d61, 0x6e642e696e6a6563, 0x745363726970743a, - 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, 0x2073637269707420, 0x3d20646f63756d65, - 0x6e742e6372656174, 0x65456c656d656e74, 0x2822736372697074, 0x22293b0a20202020, 0x2020202020202020, - 0x2020202073637269, 0x70742e7465787420, 0x3d20746578743b0a, 0x2020202020202020, 0x2020202020202020, - 0x28646f63756d656e, 0x742e626f6479203f, 0x3f20646f63756d65, 0x6e742e6865616420, 0x3f3f20646f63756d, - 0x656e742e646f6375, 0x6d656e74456c656d, 0x656e74292e617070, 0x656e644368696c64, 0x2873637269707429, - 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x20202020207d0a20, - 0x2020202020202020, 0x2020206465666175, 0x6c743a0a20202020, 0x2020202020202020, 0x202020207468726f, - 0x77206e6577204572, 0x726f722860556e73, 0x7570706f72746564, 0x2057656246726f6e, 0x7420746578742063, - 0x6f6d6d616e642024, 0x7b766965772e6765, 0x7455696e74382831, 0x297d60293b0a2020, 0x2020202020202020, - 0x20207d0a20202020, 0x202020207d0a0a20, 0x2020202020202063, 0x616c6c4a7346756e, 0x6374696f6e286d65, - 0x737361676529207b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x73286d6573736167, - 0x652c20302c20382c, 0x202266756e637469, 0x6f6e2063616c6c20, 0x6865616465722229, 0x3b0a202020202020, - 0x202020202020636f, 0x6e737420636f756e, 0x74203d206d657373, 0x6167652e67657455, 0x696e74382831293b, - 0x0a20202020202020, 0x2020202020636f6e, 0x73742063616c6c49, 0x64203d206d657373, 0x6167652e67657455, - 0x696e74313628322c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, - 0x2069662028636f75, 0x6e74203d3d3d2030, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, - 0x6e6577204572726f, 0x72282246756e6374, 0x696f6e2063616c6c, 0x20686173206e6f20, 0x66756e6374696f6e, - 0x206e616d6522293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374207061796c6f, 0x616453697a65203d, - 0x206d657373616765, 0x2e67657455696e74, 0x333228342c207468, 0x69732e6c6974746c, 0x65456e6469616e29, - 0x3b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x6573286d65737361, 0x67652c20382c2070, - 0x61796c6f61645369, 0x7a652c202266756e, 0x6374696f6e206361, 0x6c6c207061796c6f, 0x616422293b0a2020, + 0x7970657d603b0a20, 0x202020202020207d, 0x0a202020207d0a0a, 0x202020202f2f2f20, 0x5475706c6573206e, + 0x657374206174206d, 0x6f73742074686973, 0x206465657020696e, 0x736964652061206c, 0x69737420656c656d, + 0x656e742c20617320, 0x696e207468652043, 0x2b2b20636f646563, 0x20284144522d3030, 0x33292e0a20202020, + 0x636f6e7374206d61, 0x784c697374547570, 0x6c65446570746820, 0x3d2033323b0a0a20, 0x2020202f2f2f2041, + 0x206c69737420656c, 0x656d656e74206973, 0x206e656974686572, 0x2061206c69737420, 0x6e6f722061207475, + 0x706c6520686f6c64, 0x696e67206f6e6520, 0x2874686569722073, 0x686170657320636f, 0x6e7461696e20224c, + 0x22292c20616e6420, 0x6e65737473207475, 0x706c657320617420, 0x6d6f73740a202020, 0x202f2f2f206d6178, + 0x4c6973745475706c, 0x6544657074682064, 0x6565702028746865, 0x20706172656e7468, 0x65736573206f6620, + 0x6974732073686170, 0x65292e0a20202020, 0x66756e6374696f6e, 0x2072657175697265, 0x4c697374456c656d, + 0x656e745368617065, 0x2873686170652920, 0x7b0a202020202020, 0x2020696620287368, 0x6170652e696e636c, + 0x7564657328224c22, 0x29290a2020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, + 0x6f72282257656246, 0x726f6e74206c6973, 0x74732063616e6e6f, 0x7420636f6e746169, 0x6e206c6973747322, + 0x293b0a2020202020, 0x2020206c65742064, 0x65707468203d2030, 0x3b0a202020202020, 0x2020666f72202863, + 0x6f6e737420636861, 0x726163746572206f, 0x6620736861706529, 0x207b0a2020202020, 0x2020202020202069, + 0x6620286368617261, 0x63746572203d3d3d, 0x2022282220262620, 0x2b2b646570746820, 0x3e206d61784c6973, + 0x745475706c654465, 0x707468290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, + 0x7970654572726f72, 0x286057656246726f, 0x6e74206c69737420, 0x656c656d656e7473, 0x206e657374207475, + 0x706c657320617420, 0x6d6f737420247b6d, 0x61784c6973745475, 0x706c654465707468, 0x7d20646565706029, + 0x3b0a202020202020, 0x202020202020656c, 0x7365206966202863, 0x6861726163746572, 0x203d3d3d20222922, + 0x290a202020202020, 0x2020202020202020, 0x20202d2d64657074, 0x683b0a2020202020, 0x2020207d0a202020, + 0x207d0a0a20202020, 0x66756e6374696f6e, 0x2069735479706564, 0x4172726179287661, 0x6c756529207b0a20, + 0x2020202020202072, 0x657475726e204172, 0x7261794275666665, 0x722e697356696577, 0x2876616c75652920, + 0x262620212876616c, 0x756520696e737461, 0x6e63656f66204461, 0x746156696577293b, 0x0a202020207d0a0a, + 0x202020202f2f2f20, 0x53686f7274205569, 0x6e74384172726179, 0x207061796c6f6164, 0x7320757365207468, + 0x6520636f6d706163, 0x7420736d616c6c41, 0x7272617955382068, 0x65616465722e2053, 0x697a696e6720616e, + 0x6420656e636f6469, 0x6e67206d75737420, 0x6167726565206f6e, 0x0a202020202f2f2f, 0x20746869732c2073, + 0x6f20626f74682067, 0x6f207468726f7567, 0x6820686572653a20, 0x6120646973616772, 0x65656d656e742077, + 0x6f756c64206d6973, 0x2d73697a65207468, 0x652073656e642062, 0x75666665722e0a20, 0x20202066756e6374, + 0x696f6e2074797065, 0x6441727261794865, 0x6164657253697a65, 0x2876616c75652920, 0x7b0a202020202020, + 0x202072657475726e, 0x2076616c75652069, 0x6e7374616e63656f, 0x662055696e743841, 0x7272617920262620, + 0x76616c75652e6c65, 0x6e677468203c2032, 0x3536203f2032203a, 0x20353b0a20202020, 0x7d0a0a202020202f, + 0x2f2f204120737472, 0x696e67206f662032, 0x3535206279746573, 0x206f72206c657373, 0x2068617320612031, + 0x2d62797465206c65, 0x6e6774682c207570, 0x20746f2036353533, 0x35206120322d6279, 0x7465206f6e652c20, + 0x6265796f6e642061, 0x20342d6279746520, 0x6f6e6520286c6f6e, 0x67537472696e6729, 0x2e0a202020206675, + 0x6e6374696f6e2073, 0x7472696e67486561, 0x64657253697a6528, 0x6c656e6774682920, 0x7b0a202020202020, + 0x2020696620286c65, 0x6e677468203e2030, 0x7866666666666666, 0x66290a2020202020, 0x2020202020202074, + 0x68726f77206e6577, 0x2052616e67654572, 0x726f722822576562, 0x46726f6e74207374, 0x72696e6773206361, + 0x6e6e6f7420657863, 0x6565642034323934, 0x3936373239352055, 0x54462d3820627974, 0x657322293b0a2020, + 0x2020202020207265, 0x7475726e206c656e, 0x677468203c203235, 0x36203f2032203a20, 0x6c656e677468203c, + 0x203635353336203f, 0x2033203a20353b0a, 0x202020207d0a0a20, 0x2020202f2f2f2043, 0x6f646573206f6620, + 0x746865206661696c, 0x7572657320746865, 0x2062726964676520, 0x697473656c662072, 0x65706f7274733b20, + 0x7468657920737461, 0x7274207769746820, 0x2277656266726f6e, 0x742e222c20776869, 0x636820616e206170, + 0x706c69636174696f, 0x6e2063616e6e6f74, 0x207573652e0a2020, 0x2020636f6e737420, 0x427269646765436f, + 0x6465203d204f626a, 0x6563742e66726565, 0x7a65287b0a202020, 0x202020202067656e, 0x657269633a202277, + 0x656266726f6e742e, 0x6572726f72222c0a, 0x2020202020202020, 0x6e6f74466f756e64, 0x3a20227765626672, + 0x6f6e742e6e6f7446, 0x6f756e64222c0a20, 0x202020202020206d, 0x616c666f726d6564, 0x3a20227765626672, + 0x6f6e742e6d616c66, 0x6f726d6564222c0a, 0x2020202020202020, 0x646973636f6e6e65, 0x637465643a202277, + 0x656266726f6e742e, 0x646973636f6e6e65, 0x63746564222c0a20, 0x2020202020202063, 0x616e63656c6c6564, + 0x3a20227765626672, 0x6f6e742e63616e63, 0x656c6c6564222c0a, 0x202020207d293b0a, 0x20202020636f6e73, + 0x7420726573657276, 0x6564507265666978, 0x203d202277656266, 0x726f6e742e223b0a, 0x20202020636f6e73, + 0x742076616c696443, 0x6f6465203d202f5e, 0x5b412d5a612d7a30, 0x2d392e5f3a2d5d7b, 0x312c36347d242f3b, + 0x0a0a202020202f2f, 0x2f20546865206572, 0x726f727320746861, 0x742057656246726f, 0x6e74206d6164652c, + 0x206f722072656365, 0x697665642066726f, 0x6d20432b2b207769, 0x7468207468656972, 0x20636f64653a206f, + 0x6e6c792074686579, 0x206d617920636172, 0x7279206120726573, 0x657276656420636f, 0x646520746f207468, + 0x65206f7468657220, 0x736964652e0a2020, 0x2020636f6e737420, 0x6272696467654572, 0x726f7273203d206e, + 0x6577205765616b53, 0x657428293b0a0a20, 0x2020202f2f2f2041, 0x6e204572726f7220, 0x7769746820612072, + 0x6561642d6f6e6c79, 0x2060636f6465602c, 0x206b6e6f776e2074, 0x6f20746865206272, 0x6964676520617320, + 0x697473206f776e2e, 0x0a2020202066756e, 0x6374696f6e206272, 0x696467654572726f, 0x7228636f64652c20, + 0x6d65737361676529, 0x207b0a2020202020, 0x202020636f6e7374, 0x206572726f72203d, 0x206e657720457272, + 0x6f72286d65737361, 0x6765293b0a202020, 0x20202020202f2f20, 0x4e6f742077726974, 0x61626c653a207573, + 0x657220636f646520, 0x636f756c64206f74, 0x6865727769736520, 0x7265777269746520, 0x74686520636f6465, + 0x206f6620616e2065, 0x72726f72206f6620, 0x7468652062726964, 0x676520746f20666f, 0x7267652061207265, + 0x736572766564206f, 0x6e652e0a20202020, 0x202020204f626a65, 0x63742e646566696e, 0x6550726f70657274, + 0x79286572726f722c, 0x2022636f6465222c, 0x207b76616c75653a, 0x20636f64652c2065, 0x6e756d657261626c, + 0x653a20747275652c, 0x207772697461626c, 0x653a2066616c7365, 0x2c20636f6e666967, 0x757261626c653a20, + 0x66616c73657d293b, 0x0a20202020202020, 0x2062726964676545, 0x72726f72732e6164, 0x64286572726f7229, + 0x3b0a202020202020, 0x202072657475726e, 0x206572726f723b0a, 0x202020207d0a0a20, 0x2020202f2f2f2054, + 0x686520636f646520, 0x616e206578636570, 0x74696f6e20697320, 0x73656e7420776974, 0x683a207468652060, + 0x636f646560206f66, 0x20616e204572726f, 0x722072656a656374, 0x6564206279207468, 0x65206170706c6963, + 0x6174696f6e207768, 0x656e206974206973, 0x2077656c6c20666f, 0x726d656420616e64, 0x206e6f740a202020, + 0x202f2f2f20726573, 0x65727665642c206f, 0x7468657277697365, 0x207468652067656e, 0x6572696320636f64, + 0x652e204120726573, 0x657276656420636f, 0x6465206973206b65, 0x7074206f6e6c7920, 0x6f6e20616e206572, + 0x726f72206f662074, 0x6865206272696467, 0x652e0a2020202066, 0x756e6374696f6e20, 0x657863657074696f, + 0x6e436f6465286572, 0x726f7229207b0a20, 0x202020202020206c, 0x657420636f64653b, 0x0a20202020202020, + 0x20747279207b0a20, 0x2020202020202020, 0x202020636f646520, 0x3d206572726f7220, 0x213d3d206e756c6c, + 0x2026262074797065, 0x6f66206572726f72, 0x203d3d3d20226f62, 0x6a65637422203f20, 0x6572726f722e636f, + 0x6465203a20756e64, 0x6566696e65643b0a, 0x2020202020202020, 0x7d20636174636820, 0x7b0a202020202020, + 0x2020202020207265, 0x7475726e20427269, 0x646765436f64652e, 0x67656e657269633b, 0x20202f2f20612060, + 0x636f646560206163, 0x636573736f722074, 0x686174207468726f, 0x7773206d75737420, 0x6e6f74206c656176, + 0x652074686520432b, 0x2b2063616c6c2075, 0x6e616e7377657265, 0x640a202020202020, 0x20207d0a20202020, + 0x2020202069662028, 0x747970656f662063, 0x6f646520213d3d20, 0x22737472696e6722, 0x207c7c202176616c, + 0x6964436f64652e74, 0x65737428636f6465, 0x29290a2020202020, 0x2020202020202072, 0x657475726e204272, + 0x69646765436f6465, 0x2e67656e65726963, 0x3b0a202020202020, 0x202069662028636f, 0x64652e7374617274, + 0x7357697468287265, 0x7365727665645072, 0x6566697829202626, 0x2021627269646765, 0x4572726f72732e68, + 0x6173286572726f72, 0x29290a2020202020, 0x2020202020202072, 0x657475726e204272, 0x69646765436f6465, + 0x2e67656e65726963, 0x3b0a202020202020, 0x202072657475726e, 0x20636f64653b0a20, 0x2020207d0a0a2020, + 0x20202f2f2f205468, 0x652074657874206f, 0x6620612072656a65, 0x6374696f6e2c2077, 0x6861746576657220, + 0x7468652072656a65, 0x637465642076616c, 0x75653a206120606d, 0x6573736167656020, 0x6163636573736f72, + 0x206f722061206074, 0x6f537472696e6760, 0x2074686174207468, 0x726f777320676976, 0x6573206120666978, + 0x656420746578742e, 0x0a2020202066756e, 0x6374696f6e206578, 0x63657074696f6e54, 0x657874286572726f, + 0x7229207b0a202020, 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202072, 0x657475726e206572, + 0x726f7220696e7374, 0x616e63656f662045, 0x72726f72203f2053, 0x7472696e67286572, 0x726f722e6d657373, + 0x61676529203a2053, 0x7472696e67286572, 0x726f72293b0a2020, 0x2020202020207d20, 0x6361746368207b0a, + 0x2020202020202020, 0x2020202072657475, 0x726e20224a617661, 0x5363726970742065, 0x7863657074696f6e, + 0x2077686f7365206d, 0x6573736167652063, 0x616e6e6f74206265, 0x2072656164223b0a, 0x2020202020202020, + 0x7d0a202020207d0a, 0x0a2020202066756e, 0x6374696f6e206973, 0x4e6f6e4e65676174, 0x697665496e746567, + 0x65722863616e6469, 0x6461746529207b0a, 0x2020202020202020, 0x72657475726e204e, 0x756d6265722e6973, + 0x53616665496e7465, 0x6765722863616e64, 0x6964617465292026, 0x262063616e646964, 0x617465203e3d2030, + 0x3b0a202020207d0a, 0x0a2020202066756e, 0x6374696f6e207265, 0x7175697265427974, 0x657328766965772c, + 0x206f66667365742c, 0x20636f756e742c20, 0x6465736372697074, 0x696f6e29207b0a20, 0x2020202020202063, + 0x6f6e73742077656c, 0x6c466f726d656420, 0x3d2069734e6f6e4e, 0x6567617469766549, 0x6e7465676572286f, + 0x6666736574292026, 0x262069734e6f6e4e, 0x6567617469766549, 0x6e74656765722863, 0x6f756e74293b0a20, + 0x2020202020202069, 0x6620282177656c6c, 0x466f726d6564207c, 0x7c206f6666736574, 0x202b20636f756e74, + 0x203e20766965772e, 0x627974654c656e67, 0x7468290a20202020, 0x2020202020202020, 0x7468726f77206e65, + 0x772052616e676545, 0x72726f7228605472, 0x756e636174656420, 0x247b646573637269, 0x7074696f6e7d6029, + 0x3b0a202020207d0a, 0x0a20202020636c61, 0x7373205765624672, 0x6f6e744272696467, 0x65207b0a20202020, + 0x202020202f2f2f20, 0x5468652057656253, 0x6f636b6574206164, 0x6472657373206f66, 0x2074686520706167, + 0x6520746861742073, 0x6572766573207468, 0x6973207363726970, 0x743a207773733a2f, 0x2f206f6e20616e20, + 0x68747470733a2f2f, 0x20706167652c2077, 0x6865726520612062, 0x726f777365722062, 0x6c6f636b73207773, + 0x3a2f2f0a20202020, 0x202020202f2f2f20, 0x6173206d69786564, 0x20636f6e74656e74, 0x2e0a202020202020, + 0x2020737461746963, 0x2064656661756c74, 0x55726c286c6f6361, 0x74696f6e203d2067, 0x6c6f62616c2e6c6f, + 0x636174696f6e2920, 0x7b0a202020202020, 0x2020202020207265, 0x7475726e2060247b, 0x6c6f636174696f6e, + 0x2e70726f746f636f, 0x6c203d3d3d202268, 0x747470733a22203f, 0x20227773733a2220, 0x3a202277733a227d, + 0x2f2f247b6c6f6361, 0x74696f6e2e686f73, 0x747d603b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x2f2f2f2054686520, 0x6c61726765737420, 0x6d65737361676520, 0x74686520432b2b20, 0x7369646520616363, + 0x6570747320627920, 0x64656661756c7420, 0x28687474703a3a64, 0x656661756c744d61, 0x784d657373616765, + 0x53697a65293a2061, 0x20706f6c69637920, 0x7769746820616e6f, 0x746865720a202020, 0x20202020202f2f2f, + 0x206d61784d657373, 0x61676553697a6520, 0x6e65656473207468, 0x652073616d652076, 0x616c756520696e20, + 0x606d61784d657373, 0x6167654279746573, 0x60206f6620746865, 0x206272696467652e, 0x0a20202020202020, + 0x2073746174696320, 0x6765742064656661, 0x756c744d61784d65, 0x7373616765427974, 0x65732829207b0a20, + 0x2020202020202020, 0x2020207265747572, 0x6e203634202a2031, 0x303234202a203130, 0x32343b0a20202020, + 0x202020207d0a0a20, 0x2020202020202063, 0x6f6e737472756374, 0x6f722875726c203d, 0x2057656246726f6e, + 0x744272696467652e, 0x64656661756c7455, 0x726c282929207b0a, 0x2020202020202020, 0x2020202074686973, + 0x2e6d61784d657373, 0x6167654279746573, 0x203d205765624672, 0x6f6e744272696467, 0x652e64656661756c, + 0x744d61784d657373, 0x6167654279746573, 0x3b0a202020202020, 0x2020202020207468, 0x69732e7374617465, + 0x203d2022756e696e, 0x697469616c697a65, 0x64223b0a20202020, 0x2020202020202020, 0x746869732e6c6974, + 0x746c65456e646961, 0x6e203d2066616c73, 0x653b0a2020202020, 0x2020202020202074, 0x6869732e6e657874, + 0x43616c6c4964203d, 0x20313b0a20202020, 0x2020202020202020, 0x746869732e70656e, 0x64696e6743616c6c, + 0x73203d206e657720, 0x4d617028293b0a20, 0x2020202020202020, 0x202020746869732e, 0x7265616479536574, + 0x746c6564203d2066, 0x616c73653b0a2020, 0x2020202020202020, 0x2020746869732e72, 0x6561647950726f6d, + 0x697365203d206e65, 0x772050726f6d6973, 0x6528287265736f6c, 0x76652c2072656a65, 0x637429203d3e207b, + 0x0a20202020202020, 0x2020202020202020, 0x20746869732e7265, 0x736f6c7665526561, 0x6479203d20726573, + 0x6f6c76653b0a2020, 0x2020202020202020, 0x2020202020207468, 0x69732e72656a6563, 0x745265616479203d, + 0x2072656a6563743b, 0x0a20202020202020, 0x20202020207d293b, 0x0a20202020202020, 0x20202020202f2f20, + 0x576974686f757420, 0x746869732c206120, 0x7061676520746861, 0x74206e6576657220, 0x746f756368657320, + 0x77656246726f6e74, 0x2e72656164792077, 0x6f756c6420736565, 0x20616e2022756e68, 0x616e646c65640a20, + 0x2020202020202020, 0x2020202f2f207072, 0x6f6d697365207265, 0x6a656374696f6e22, 0x207761726e696e67, + 0x2069662074686520, 0x696e697469616c20, 0x636f6e6e65637469, 0x6f6e206661696c73, 0x2e204170706c6963, + 0x6174696f6e20636f, 0x6465207374696c6c, 0x0a20202020202020, 0x20202020202f2f20, 0x6765747320697473, + 0x206f776e20696e64, 0x6570656e64656e74, 0x20736574746c656d, 0x656e742076696120, 0x2e7468656e28292f, + 0x2e63617463682829, 0x2f6177616974206f, 0x6e20746865207361, 0x6d652070726f6d69, 0x73653b0a20202020, + 0x2020202020202020, 0x2f2f206174746163, 0x68696e6720612068, 0x616e646c65722068, 0x65726520646f6573, + 0x6e277420636f6e73, 0x756d65206f722061, 0x6666656374207468, 0x6f73652e0a202020, 0x2020202020202020, + 0x20746869732e7265, 0x61647950726f6d69, 0x73652e6361746368, 0x282829203d3e207b, 0x7d293b0a20202020, + 0x2020202020202020, 0x746869732e626f75, 0x6e6450726f6d6973, 0x65203d206e657720, 0x50726f6d69736528, + 0x287265736f6c7665, 0x2c2072656a656374, 0x29203d3e207b0a20, 0x2020202020202020, 0x2020202020202074, + 0x6869732e7265736f, 0x6c7665426f756e64, 0x203d207265736f6c, 0x76653b0a20202020, 0x2020202020202020, + 0x2020202074686973, 0x2e72656a65637442, 0x6f756e64203d2072, 0x656a6563743b0a20, 0x2020202020202020, + 0x2020207d293b0a20, 0x2020202020202020, 0x202020746869732e, 0x626f756e6450726f, 0x6d6973652e636174, + 0x6368282829203d3e, 0x207b7d293b0a2020, 0x2020202020202020, 0x2020746869732e73, 0x6f636b6574203d20, + 0x6e65772057656253, 0x6f636b6574287572, 0x6c2c202257656246, 0x726f6e745f302e31, 0x22293b0a20202020, + 0x2020202020202020, 0x746869732e736f63, 0x6b65742e62696e61, 0x727954797065203d, 0x2022617272617962, + 0x7566666572223b0a, 0x2020202020202020, 0x2020202074686973, 0x2e736f636b65742e, 0x6f6e6f70656e203d, + 0x202829203d3e2074, 0x6869732e68616e64, 0x7368616b6528293b, 0x0a20202020202020, 0x2020202020746869, + 0x732e736f636b6574, 0x2e6f6e6d65737361, 0x6765203d20657665, 0x6e74203d3e207468, 0x69732e6f6e4d6573, + 0x7361676528657665, 0x6e742e6461746129, 0x3b0a202020202020, 0x2020202020207468, 0x69732e736f636b65, + 0x742e6f6e636c6f73, 0x65203d206576656e, 0x74203d3e207b0a20, 0x2020202020202020, 0x2020202020202063, + 0x6f6e737420646574, 0x61696c203d206576, 0x656e742e77617343, 0x6c65616e203f2060, 0x636f64653d247b65, + 0x76656e742e636f64, 0x657d20726561736f, 0x6e3d247b6576656e, 0x742e726561736f6e, 0x7d60203a2022636f, + 0x6e6e656374696f6e, 0x206c6f7374223b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206572, + 0x726f72203d206272, 0x696467654572726f, 0x7228427269646765, 0x436f64652e646973, 0x636f6e6e65637465, + 0x642c206057656246, 0x726f6e7420636f6e, 0x6e656374696f6e20, 0x636c6f7365643a20, 0x247b64657461696c, + 0x7d60293b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e736574746c65, 0x526561647952656a, + 0x6563746564286572, 0x726f72293b0a2020, 0x2020202020202020, 0x2020202020207468, 0x69732e72656a6563, + 0x74426f756e642865, 0x72726f72293b2020, 0x2f2f2061206e6f2d, 0x6f70206f6e636520, 0x736574746c65640a, + 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, 0x73742070656e6469, 0x6e67206f66207468, + 0x69732e70656e6469, 0x6e6743616c6c732e, 0x76616c7565732829, 0x290a202020202020, 0x2020202020202020, + 0x2020202020207065, 0x6e64696e672e7265, 0x6a65637428657272, 0x6f72293b0a202020, 0x2020202020202020, + 0x2020202020746869, 0x732e70656e64696e, 0x6743616c6c732e63, 0x6c65617228293b0a, 0x2020202020202020, + 0x2020202020202020, 0x746869732e737461, 0x7465203d2022636c, 0x6f736564223b0a20, 0x2020202020202020, + 0x2020202020202063, 0x6f6e736f6c652e6c, 0x6f6728605b576562, 0x46726f6e7420636c, 0x6f73655d20247b64, + 0x657461696c7d6029, 0x3b0a202020202020, 0x2020202020207d3b, 0x0a20202020202020, 0x2020202020746869, + 0x732e736f636b6574, 0x2e6f6e6572726f72, 0x203d202829203d3e, 0x207b0a2020202020, 0x2020202020202020, + 0x202020636f6e7374, 0x206572726f72203d, 0x206e657720457272, 0x6f72282257656246, 0x726f6e7420636f6e, + 0x6e656374696f6e20, 0x6661696c65642229, 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e73, + 0x6574746c65526561, 0x647952656a656374, 0x6564286572726f72, 0x293b0a2020202020, 0x2020202020202020, + 0x202020746869732e, 0x72656a656374426f, 0x756e64286572726f, 0x72293b0a20202020, 0x2020202020202020, + 0x20202020636f6e73, 0x6f6c652e6572726f, 0x7228225b57656246, 0x726f6e7420736f63, 0x6b6574206572726f, + 0x725d222c20657272, 0x6f72293b0a202020, 0x2020202020202020, 0x207d3b0a20202020, 0x202020207d0a0a20, + 0x202020202020202f, 0x2f2f205265736f6c, 0x766573206f6e6365, 0x2074686520576562, 0x536f636b65742068, + 0x616e647368616b65, 0x2069732061636b6e, 0x6f776c6564676564, 0x2c2072656a656374, 0x7320696620746865, + 0x20696e697469616c, 0x20636f6e6e656374, 0x696f6e0a20202020, 0x202020202f2f2f20, 0x636c6f736573206f, + 0x72206661696c7320, 0x6265666f72652074, 0x6861742e20446f65, 0x73206e6f74207265, 0x666c656374206c61, + 0x7465722064697363, 0x6f6e6e656374733b, 0x207365652070656e, 0x64696e6743616c6c, 0x732f73746174652e, + 0x0a20202020202020, 0x2067657420726561, 0x64792829207b0a20, 0x2020202020202020, 0x2020207265747572, + 0x6e20746869732e72, 0x6561647950726f6d, 0x6973653b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x2f2f2f205265736f, 0x6c766573206f6e63, 0x6520746869732062, 0x726f777365722063, 0x6c69656e7420686f, + 0x6c64732074686520, 0x636f6f6b69652074, 0x6861742062696e64, 0x7320746865207265, 0x61642055524c7320, + 0x676976656e20746f, 0x2074686973207061, 0x676520284144522d, 0x303230292c20616e, 0x640a202020202020, + 0x20202f2f2f207265, 0x6a656374732c2077, 0x69746820616e2065, 0x78706c6963697420, 0x6572726f722c2077, + 0x68656e2074686520, 0x65786368616e6765, 0x206661696c73206f, 0x7220746865206272, 0x6f77736572207265, + 0x6675736573207468, 0x6520636f6f6b6965, 0x3a20626f756e6420, 0x72656164730a2020, 0x2020202020202f2f, + 0x2f207468656e2066, 0x61696c2c20776974, 0x686f75742066616c, 0x6c696e6720626163, 0x6b20746f20746865, + 0x20746f6b656e2061, 0x6c6f6e652e20432b, 0x2b20737461727473, 0x2069742072696768, 0x7420616674657220, + 0x7468652068616e64, 0x7368616b652e0a20, 0x2020202020202067, 0x657420626f756e64, 0x2829207b0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x746869732e626f75, 0x6e6450726f6d6973, 0x653b0a2020202020, + 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f2045786368616e, 0x6765732074686520, 0x6f6e652d74696d65, + 0x2073656372657420, 0x7265636569766564, 0x207468726f756768, 0x2074686520627269, 0x64676520666f7220, + 0x74686520636f6f6b, 0x6965206f66207468, 0x697320636c69656e, 0x742c207468656e20, 0x636865636b732074, + 0x686174207468650a, 0x2020202020202020, 0x2f2f2f2062726f77, 0x736572206b657074, 0x2069742e20546865, + 0x2073656372657420, 0x69732073696e676c, 0x65207573653b2074, 0x686520636f6f6b69, 0x6520697320487474, + 0x704f6e6c792c2073, 0x6f20746865207061, 0x6765206e65766572, 0x2072656164732069, 0x742e0a2020202020, + 0x2020206173796e63, 0x2062696e64436c69, 0x656e742873656372, 0x657429207b0a2020, 0x2020202020202020, + 0x20202f2f20416273, 0x6f6c75746520616e, 0x642070696e6e6564, 0x20746f2074686520, 0x6f726967696e206f, + 0x6620746865206170, 0x706c69636174696f, 0x6e3a2061203c6261, 0x736520687265663e, 0x20696e2074686520, + 0x70616765206d7573, 0x74206e6576657220, 0x7265646972656374, 0x207468650a202020, 0x2020202020202020, + 0x202f2f206f6e652d, 0x74696d6520736563, 0x72657420746f2061, 0x6e6f746865722068, 0x6f73742c20616e64, + 0x2061207265646972, 0x656374206d757374, 0x206e657665722063, 0x6172727920697420, 0x617761792e0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x62617365203d2067, 0x6c6f62616c2e6c6f, 0x636174696f6e2e6f, + 0x726967696e202b20, 0x222f77656266726f, 0x6e742f7365727669, 0x6365732f62696e64, 0x2f223b0a20202020, + 0x2020202020202020, 0x636f6e7374207069, 0x6e6e6564203d207b, 0x63726564656e7469, 0x616c733a20227361, + 0x6d652d6f72696769, 0x6e222c206d6f6465, 0x3a202273616d652d, 0x6f726967696e222c, 0x2072656469726563, + 0x743a20226572726f, 0x72222c2063616368, 0x653a20226e6f2d73, 0x746f7265227d3b0a, 0x2020202020202020, + 0x2020202074727920, 0x7b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x65786368616e6765, + 0x203d206177616974, 0x2066657463682862, 0x617365202b20656e, 0x636f646555524943, 0x6f6d706f6e656e74, + 0x2873656372657429, 0x2c2070696e6e6564, 0x293b0a2020202020, 0x2020202020202020, 0x2020206966202821, + 0x65786368616e6765, 0x2e6f6b2920746872, 0x6f77206e65772045, 0x72726f7228607468, 0x6520736572766572, + 0x2072656675736564, 0x2074686520657863, 0x68616e6765202848, 0x54545020247b6578, 0x6368616e67652e73, + 0x74617475737d2960, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, 0x20636c69656e7420, + 0x3d2065786368616e, 0x67652e6865616465, 0x72732e6765742822, 0x582d57656246726f, 0x6e742d436c69656e, + 0x7422293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2821636c69656e74, 0x29207468726f7720, + 0x6e6577204572726f, 0x7228227468652073, 0x6572766572206469, 0x64206e6f74206e61, 0x6d65207468652063, + 0x6c69656e7422293b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742063, 0x6865636b203d2061, + 0x7761697420666574, 0x6368286261736520, 0x2b2022636865636b, 0x2f22202b20656e63, 0x6f6465555249436f, + 0x6d706f6e656e7428, 0x636c69656e74292c, 0x2070696e6e656429, 0x3b0a202020202020, 0x2020202020202020, + 0x2020696620282163, 0x6865636b2e6f6b29, 0x207468726f77206e, 0x6577204572726f72, 0x2822746865206272, + 0x6f77736572207265, 0x6675736564207468, 0x652062696e64696e, 0x6720636f6f6b6965, 0x22293b0a20202020, + 0x2020202020202020, 0x2020202074686973, 0x2e7265736f6c7665, 0x426f756e6428293b, 0x0a20202020202020, + 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, 0x2020202020202020, 0x2020202020202063, + 0x6f6e737420666169, 0x6c757265203d206e, 0x6577204572726f72, 0x286057656246726f, 0x6e7420636f756c64, + 0x206e6f742062696e, 0x6420746869732062, 0x726f777365722066, 0x6f72207265616473, 0x3a20247b6572726f, + 0x722e6d6573736167, 0x65207c7c20657272, 0x6f727d60293b0a20, 0x2020202020202020, 0x2020202020202074, + 0x6869732e72656a65, 0x6374426f756e6428, 0x6661696c75726529, 0x3b0a202020202020, 0x2020202020202020, + 0x2020636f6e736f6c, 0x652e6572726f7228, 0x225b57656246726f, 0x6e742062696e6469, 0x6e675d222c206661, + 0x696c757265293b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020207d0a, 0x0a20202020202020, + 0x202f2f2f2052656a, 0x6563747320746865, 0x20696e697469616c, 0x2d72656164696e65, 0x73732070726f6d69, + 0x7365206174206d6f, 0x7374206f6e63652c, 0x20616e64206f6e6c, 0x79207768696c6520, 0x7374696c6c207761, + 0x6974696e67206f6e, 0x207468650a202020, 0x20202020202f2f2f, 0x2068616e64736861, 0x6b652e2041206661, + 0x696c656420636f6e, 0x6e656374696f6e20, 0x7479706963616c6c, 0x7920666972657320, 0x626f746820606572, + 0x726f726020616e64, 0x2060636c6f736560, 0x2c20616e64206120, 0x6c617465720a2020, 0x2020202020202f2f, + 0x2f20646973636f6e, 0x6e65637420286166, 0x746572206c696e6b, 0x696e6729206d7573, 0x74206e6f74207265, + 0x2d736574746c6520, 0x616e20616c726561, 0x64792d7265736f6c, 0x7665642060726561, 0x6479603b20746869, + 0x732067756172640a, 0x2020202020202020, 0x2f2f2f206d616b65, 0x7320657665727920, 0x6f6e65206f662074, + 0x686f736520636173, 0x6573206120686172, 0x6d6c657373206e6f, 0x2d6f702061667465, 0x7220746865206669, + 0x7273742073657474, 0x6c656d656e742e0a, 0x2020202020202020, 0x736574746c655265, 0x61647952656a6563, + 0x746564286572726f, 0x7229207b0a202020, 0x2020202020202020, 0x2069662028746869, 0x732e726561647953, + 0x6574746c6564207c, 0x7c20746869732e73, 0x74617465203d3d3d, 0x20226c696e6b6564, 0x2229207265747572, + 0x6e3b0a2020202020, 0x2020202020202074, 0x6869732e72656164, 0x79536574746c6564, 0x203d20747275653b, + 0x0a20202020202020, 0x2020202020746869, 0x732e72656a656374, 0x5265616479286572, 0x726f72293b0a2020, + 0x2020202020207d0a, 0x0a20202020202020, 0x2068616e64736861, 0x6b652829207b0a20, 0x2020202020202020, + 0x202020746869732e, 0x7374617465203d20, 0x2268616e64736861, 0x6b696e67223b0a20, 0x2020202020202020, + 0x2020202f2f20416e, 0x20656d6265646465, 0x642066726f6e7465, 0x6e64206769766573, 0x2069747320766965, + 0x772061207065722d, 0x6c61756e63682073, 0x6563726574206174, 0x2074686520737461, 0x7274206f66207468, + 0x6520646f63756d65, 0x6e7420284144522d, 0x303230292e204974, 0x207761732074616b, 0x656e0a2020202020, + 0x202020202020202f, 0x2f206f7574206f66, 0x207468652077696e, 0x646f77207768656e, 0x2074686973207363, + 0x72697074206c6f61, 0x6465642c20736f20, 0x7468652070616765, 0x20646f6573206e6f, 0x74206b6565702072, + 0x656164696e672069, 0x743b207468652073, 0x797374656d206272, 0x6f77736572206861, 0x73206e6f6e652e0a, + 0x2020202020202020, 0x20202020636f6e73, 0x7420736563726574, 0x203d207669657753, 0x65637265743b0a20, + 0x2020202020202020, 0x202020636f6e7374, 0x2068656164657220, 0x3d205b436f6d6d61, 0x6e642e68616e6473, + 0x68616b652c206e61, 0x7469766549734c69, 0x74746c65456e6469, 0x616e2829203f2030, 0x203a20315d3b0a20, + 0x2020202020202020, 0x202020666f722028, 0x6c657420696e6465, 0x78203d20303b2069, 0x6e646578203c2073, + 0x65637265742e6c65, 0x6e6774683b202b2b, 0x696e646578292068, 0x65616465722e7075, 0x7368287365637265, + 0x742e63686172436f, 0x6465417428696e64, 0x6578292026203078, 0x3766293b0a202020, 0x2020202020202020, + 0x20746869732e736f, 0x636b65742e73656e, 0x64286e6577205569, 0x6e74384172726179, 0x2868656164657229, + 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206f6e, 0x4d65737361676528, 0x6275666665722920, + 0x7b0a202020202020, 0x202020202020636f, 0x6e73742076696577, 0x203d206e65772044, 0x6174615669657728, + 0x627566666572293b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, + 0x302c20312c20226d, 0x6573736167652068, 0x656164657222293b, 0x0a20202020202020, 0x2020202020737769, + 0x7463682028766965, 0x772e67657455696e, 0x743828302929207b, 0x0a20202020202020, 0x2020202020636173, + 0x6520436f6d6d616e, 0x642e61636b3a0a20, 0x2020202020202020, 0x2020202020202072, 0x6571756972654279, + 0x7465732876696577, 0x2c20302c20322c20, 0x2261636b6e6f776c, 0x656467656d656e74, 0x22293b0a20202020, + 0x2020202020202020, 0x2020202069662028, 0x746869732e737461, 0x7465203d3d3d2022, 0x68616e647368616b, + 0x696e672229207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202074686973, 0x2e6c6974746c6545, + 0x6e6469616e203d20, 0x766965772e676574, 0x55696e7438283129, 0x203d3d3d20303b0a, 0x2020202020202020, + 0x2020202020202020, 0x2020202074686973, 0x2e7374617465203d, 0x20226c696e6b6564, 0x223b0a2020202020, + 0x2020202020202020, 0x2020202020202074, 0x6869732e72656164, 0x79536574746c6564, 0x203d20747275653b, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, 0x732e7265736f6c76, 0x6552656164792829, + 0x3b0a202020202020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x2020202062726561, + 0x6b3b0a2020202020, 0x2020202020202063, 0x61736520436f6d6d, 0x616e642e74657874, 0x436f6d6d616e643a, + 0x0a20202020202020, 0x2020202020202020, 0x20746869732e6861, 0x6e646c6554657874, 0x436f6d6d616e6428, + 0x76696577293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, + 0x2020636173652043, 0x6f6d6d616e642e63, 0x616c6c46756e6374, 0x696f6e3a0a202020, 0x2020202020202020, + 0x2020202020746869, 0x732e63616c6c4a73, 0x46756e6374696f6e, 0x2876696577293b0a, 0x2020202020202020, + 0x2020202020202020, 0x627265616b3b0a20, 0x2020202020202020, 0x2020206361736520, 0x436f6d6d616e642e, + 0x646f6d4261746368, 0x3a0a202020202020, 0x2020202020202020, 0x2020747279207b0a, 0x2020202020202020, + 0x2020202020202020, 0x2020202069662028, 0x766965772e627974, 0x654c656e67746820, 0x3e2031303234202a, + 0x2031303234292074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f722822444f4d, 0x2062617463682065, + 0x7863656564732031, 0x204d694222293b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, + 0x21746869732e646f, 0x6d42617463684861, 0x6e646c6572292074, 0x68726f77206e6577, 0x204572726f722822, + 0x444f4d20696e7465, 0x7270726574657220, 0x6973206e6f742069, 0x6e7374616c6c6564, 0x22293b0a20202020, + 0x2020202020202020, 0x2020202020202020, 0x746869732e646f6d, 0x426174636848616e, 0x646c6572286e6577, + 0x2055696e74384172, 0x7261792862756666, 0x657229293b0a2020, 0x2020202020202020, 0x2020202020207d20, + 0x6361746368202865, 0x72726f7229207b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020636f6e73, + 0x74206964203d2076, 0x6965772e62797465, 0x4c656e677468203e, 0x3d2036203f207669, 0x65772e6765745569, + 0x6e74333228322c20, 0x7472756529203a20, 0x303b0a2020202020, 0x2020202020202020, 0x2020202020202074, + 0x6869732e63707046, 0x756e6374696f6e28, 0x227766446f6d2e72, 0x656a656374656422, 0x292869642c205374, + 0x72696e6728657272, 0x6f722e6d65737361, 0x6765207c7c206572, 0x726f72292e736c69, 0x636528302c203430, + 0x393629292e636174, 0x6368282829203d3e, 0x207b7d293b0a2020, 0x2020202020202020, 0x2020202020207d0a, + 0x2020202020202020, 0x2020202020202020, 0x627265616b3b0a20, 0x2020202020202020, 0x2020206361736520, + 0x436f6d6d616e642e, 0x66756e6374696f6e, 0x52657475726e3a0a, 0x2020202020202020, 0x2020202020202020, + 0x746869732e68616e, 0x646c6546756e6374, 0x696f6e5265747572, 0x6e2876696577293b, 0x0a20202020202020, + 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, 0x2020202064656661, 0x756c743a0a202020, + 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, 0x72726f722860556e, 0x737570706f727465, + 0x642057656246726f, 0x6e7420636f6d6d61, 0x6e6420247b766965, 0x772e67657455696e, 0x74382830297d6029, + 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x20202068616e646c, + 0x6554657874436f6d, 0x6d616e6428766965, 0x7729207b0a202020, 0x2020202020202020, 0x2072657175697265, + 0x4279746573287669, 0x65772c20302c2034, 0x2c20227465787420, 0x636f6d6d616e6420, 0x6865616465722229, + 0x3b0a202020202020, 0x202020202020636f, 0x6e7374206c656e67, 0x7468203d20766965, 0x772e67657455696e, + 0x7431362832293b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c2034, + 0x2c206c656e677468, 0x2c20227465787420, 0x636f6d6d616e6420, 0x7061796c6f616422, 0x293b0a2020202020, + 0x2020202020202063, 0x6f6e737420746578, 0x74203d206e657720, 0x546578744465636f, 0x6465722822757466, + 0x2d3822292e646563, 0x6f6465286e657720, 0x55696e7438417272, 0x617928766965772e, 0x6275666665722c20, + 0x766965772e627974, 0x654f666673657420, 0x2b20342c206c656e, 0x67746829293b0a20, 0x2020202020202020, + 0x2020207377697463, 0x682028766965772e, 0x67657455696e7438, 0x28312929207b0a20, 0x2020202020202020, + 0x2020206361736520, 0x54657874436f6d6d, 0x616e642e64656275, 0x674c6f673a0a2020, 0x2020202020202020, + 0x202020202020636f, 0x6e736f6c652e6c6f, 0x672874657874293b, 0x0a20202020202020, 0x2020202020202020, + 0x20627265616b3b0a, 0x2020202020202020, 0x2020202063617365, 0x2054657874436f6d, 0x6d616e642e696e6a, + 0x6563745363726970, 0x743a207b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374207363726970, + 0x74203d20646f6375, 0x6d656e742e637265, 0x617465456c656d65, 0x6e74282273637269, 0x707422293b0a2020, + 0x2020202020202020, 0x2020202020207363, 0x726970742e746578, 0x74203d2074657874, 0x3b0a202020202020, + 0x2020202020202020, 0x202028646f63756d, 0x656e742e626f6479, 0x203f3f20646f6375, 0x6d656e742e686561, + 0x64203f3f20646f63, 0x756d656e742e646f, 0x63756d656e74456c, 0x656d656e74292e61, 0x7070656e64436869, + 0x6c64287363726970, 0x74293b0a20202020, 0x2020202020202020, 0x2020202062726561, 0x6b3b0a2020202020, + 0x202020202020207d, 0x0a20202020202020, 0x2020202020646566, 0x61756c743a0a2020, 0x2020202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, + 0x6f6e742074657874, 0x20636f6d6d616e64, 0x20247b766965772e, 0x67657455696e7438, 0x2831297d60293b0a, + 0x2020202020202020, 0x202020207d0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x2063616c6c4a7346, + 0x756e6374696f6e28, 0x6d65737361676529, 0x207b0a2020202020, 0x2020202020202072, 0x6571756972654279, + 0x746573286d657373, 0x6167652c20302c20, 0x382c202266756e63, 0x74696f6e2063616c, 0x6c20686561646572, + 0x22293b0a20202020, 0x2020202020202020, 0x636f6e737420636f, 0x756e74203d206d65, 0x73736167652e6765, + 0x7455696e74382831, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e73742063616c, 0x6c4964203d206d65, + 0x73736167652e6765, 0x7455696e74313628, 0x322c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, + 0x2020202020202020, 0x2020206966202863, 0x6f756e74203d3d3d, 0x2030290a20202020, 0x2020202020202020, + 0x202020207468726f, 0x77206e6577204572, 0x726f72282246756e, 0x6374696f6e206361, 0x6c6c20686173206e, + 0x6f2066756e637469, 0x6f6e206e616d6522, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420706179, + 0x6c6f616453697a65, 0x203d206d65737361, 0x67652e6765745569, 0x6e74333228342c20, 0x746869732e6c6974, + 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x79746573286d6573, + 0x736167652c20382c, 0x207061796c6f6164, 0x53697a652c202266, 0x756e6374696f6e20, 0x63616c6c20706179, + 0x6c6f616422293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, 0x64203d206e657720, + 0x4461746156696577, 0x286d657373616765, 0x2e6275666665722c, 0x206d657373616765, 0x2e627974654f6666, + 0x736574202b20382c, 0x207061796c6f6164, 0x53697a65293b0a20, 0x2020202020202020, 0x202020636f6e7374, + 0x205b6e616d65732c, 0x206e616d65427974, 0x65735d203d207468, 0x69732e6465636f64, 0x65506172616d6574, + 0x65727328312c2070, 0x61796c6f6164293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374205b70617261, + 0x6d65746572732c20, 0x706172616d657465, 0x7242797465735d20, 0x3d20746869732e64, 0x65636f6465506172, + 0x616d657465727328, 0x636f756e74202d20, 0x312c207061796c6f, 0x61642c206e616d65, 0x4279746573293b0a, + 0x2020202020202020, 0x2020202069662028, 0x6e616d6542797465, 0x73202b2070617261, 0x6d65746572427974, + 0x657320213d3d2070, 0x61796c6f61645369, 0x7a65290a20202020, 0x2020202020202020, 0x202020207468726f, + 0x77206e6577204572, 0x726f72282246756e, 0x6374696f6e206361, 0x6c6c20636f6e7461, 0x696e732074726169, + 0x6c696e6720706179, 0x6c6f616420646174, 0x6122293b0a202020, 0x2020202020202020, 0x206c657420657865, + 0x637574696f6e3b0a, 0x2020202020202020, 0x2020202074727920, 0x7b0a202020202020, 0x2020202020202020, + 0x2020657865637574, 0x696f6e203d207468, 0x69732e6578656375, 0x746546756e637469, 0x6f6e286e616d6573, + 0x5b305d2c20706172, 0x616d657465727329, 0x3b0a202020202020, 0x2020202020207d20, 0x6361746368202865, + 0x72726f7229207b0a, 0x2020202020202020, 0x2020202020202020, 0x746869732e726570, 0x6f727443616c6c46, + 0x61696c7572652863, 0x616c6c49642c2065, 0x72726f72293b0a20, 0x2020202020202020, 0x2020202020202072, + 0x657475726e3b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x202f2f2063616c6c, + 0x49642030206d6561, 0x6e73207468652063, 0x616c6c6572206973, 0x206e6f7420776169, 0x74696e6720666f72, + 0x20616e797468696e, 0x672c20736f207468, 0x657265206973206e, 0x6f7468696e672074, 0x6f2073656e642062, + 0x61636b2e0a202020, 0x2020202020202020, 0x206966202863616c, 0x6c496420213d3d20, 0x30290a2020202020, + 0x2020202020202020, 0x20202050726f6d69, 0x73652e7265736f6c, 0x7665286578656375, 0x74696f6e292e7468, + 0x656e280a20202020, 0x2020202020202020, 0x2020202020202020, 0x76616c7565203d3e, 0x20746869732e7265, + 0x706f727443616c6c, 0x5375636365737328, 0x63616c6c49642c20, 0x76616c7565292c0a, 0x2020202020202020, + 0x2020202020202020, 0x202020206572726f, 0x72203d3e20746869, 0x732e73656e644675, 0x6e6374696f6e4572, + 0x726f722863616c6c, 0x49642c206572726f, 0x7229293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x7265706f72744361, 0x6c6c4661696c7572, 0x652863616c6c4964, 0x2c206572726f7229, 0x207b0a2020202020, + 0x2020202020202069, 0x66202863616c6c49, 0x64203d3d3d203029, 0x0a20202020202020, 0x2020202020202020, + 0x20636f6e736f6c65, 0x2e6572726f722822, 0x5b57656246726f6e, 0x74204a6176615363, 0x726970742063616c, + 0x6c5d222c20657272, 0x6f72293b0a202020, 0x2020202020202020, 0x20656c73650a2020, 0x2020202020202020, + 0x2020202020207468, 0x69732e73656e6446, 0x756e6374696f6e45, 0x72726f722863616c, 0x6c49642c20657272, + 0x6f72293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x7265706f72744361, 0x6c6c537563636573, + 0x732863616c6c4964, 0x2c2076616c756529, 0x207b0a2020202020, 0x2020202020202074, 0x7279207b0a202020, + 0x2020202020202020, 0x2020202020746869, 0x732e73656e644675, 0x6e6374696f6e5265, 0x7475726e2863616c, + 0x6c49642c2076616c, 0x7565293b0a202020, 0x2020202020202020, 0x207d206361746368, 0x20286572726f7229, + 0x207b0a2020202020, 0x2020202020202020, 0x202020746869732e, 0x73656e6446756e63, 0x74696f6e4572726f, + 0x722863616c6c4964, 0x2c206572726f7229, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, + 0x7d0a0a2020202020, 0x2020206578656375, 0x746546756e637469, 0x6f6e286e616d652c, 0x206172677329207b, + 0x0a20202020202020, 0x20202020202f2f20, 0x5468652065786368, 0x616e6765206f6620, 0x7468652072656164, + 0x2062696e64696e67, 0x2062656c6f6e6773, 0x20746f2074686520, 0x6272696467652074, 0x6861742072656365, + 0x6976656420746865, 0x2063616c6c2c206e, 0x6f7420746f206120, 0x676c6f62616c2073, 0x696e676c65746f6e, + 0x2e0a202020202020, 0x2020202020206966, 0x20286e616d65203d, 0x3d3d202277664269, 0x6e642e6578636861, + 0x6e676522290a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e20746869, 0x732e62696e64436c, + 0x69656e74282e2e2e, 0x61726773293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2070617468203d20, + 0x6e616d652e73706c, 0x697428222e22293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206d656d6265, + 0x72203d2070617468, 0x2e706f7028293b0a, 0x2020202020202020, 0x202020206c657420, 0x636f6e7465787420, + 0x3d20676c6f62616c, 0x3b0a202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x20636f6d706f6e65, + 0x6e74206f66207061, 0x746829207b0a2020, 0x2020202020202020, 0x2020202020206966, 0x2028636f6e746578, + 0x74203d3d206e756c, 0x6c207c7c20212863, 0x6f6d706f6e656e74, 0x20696e20636f6e74, 0x65787429290a2020, + 0x2020202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6272696467654572, 0x726f722842726964, + 0x6765436f64652e6e, 0x6f74466f756e642c, 0x20604a6176615363, 0x72697074206e616d, 0x6573706163652027, + 0x247b636f6d706f6e, 0x656e747d27207761, 0x73206e6f7420666f, 0x756e64207768696c, 0x65207265736f6c76, + 0x696e672027247b6e, 0x616d657d2760293b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e74657874, + 0x203d20636f6e7465, 0x78745b636f6d706f, 0x6e656e745d3b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x2020202020202020, 0x2069662028636f6e, 0x74657874203d3d20, 0x6e756c6c207c7c20, 0x747970656f662063, + 0x6f6e746578745b6d, 0x656d6265725d2021, 0x3d3d202266756e63, 0x74696f6e22290a20, 0x2020202020202020, + 0x2020202020202074, 0x68726f7720627269, 0x6467654572726f72, 0x2842726964676543, 0x6f64652e6e6f7446, + 0x6f756e642c20604a, 0x6176615363726970, 0x742066756e637469, 0x6f6e2027247b6e61, 0x6d657d2720776173, + 0x206e6f7420666f75, 0x6e6460293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x20636f6e74657874, + 0x5b6d656d6265725d, 0x282e2e2e61726773, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206861, + 0x6e646c6546756e63, 0x74696f6e52657475, 0x726e286d65737361, 0x676529207b0a2020, 0x2020202020202020, + 0x2020726571756972, 0x654279746573286d, 0x6573736167652c20, 0x302c20382c202266, 0x756e6374696f6e20, + 0x72657475726e2068, 0x656164657222293b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742063616c6c49, + 0x64203d206d657373, 0x6167652e67657455, 0x696e74313628322c, 0x20746869732e6c69, 0x74746c65456e6469, + 0x616e293b0a202020, 0x2020202020202020, 0x20636f6e73742070, 0x656e64696e67203d, 0x20746869732e7065, + 0x6e64696e6743616c, 0x6c732e6765742863, 0x616c6c4964293b0a, 0x2020202020202020, 0x2020202069662028, + 0x2170656e64696e67, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, + 0x72286046756e6374, 0x696f6e2072657475, 0x726e206861732075, 0x6e6b6e6f776e2063, 0x616c6c2069642024, + 0x7b63616c6c49647d, 0x60293b0a20202020, 0x2020202020202020, 0x746869732e70656e, 0x64696e6743616c6c, + 0x732e64656c657465, 0x2863616c6c496429, 0x3b0a0a2020202020, 0x202020202020202f, 0x2f2041206465636f, + 0x6465206661696c75, 0x7265206861732074, 0x6f20736574746c65, 0x207468652070656e, 0x64696e672063616c, + 0x6c20726174686572, 0x207468616e206573, 0x6361706520696e74, 0x6f2074686520736f, 0x636b65742068616e, + 0x646c65722c0a2020, 0x2020202020202020, 0x20202f2f206f7468, 0x6572776973652074, 0x68652063616c6c65, + 0x7227732070726f6d, 0x69736520776f756c, 0x642068616e672066, 0x6f72657665722e0a, 0x2020202020202020, + 0x2020202074727920, 0x7b0a202020202020, 0x2020202020202020, 0x2020746869732e73, 0x6574746c65526574, + 0x75726e2870656e64, 0x696e672c206d6573, 0x73616765293b0a20, 0x2020202020202020, 0x2020207d20636174, + 0x636820286572726f, 0x7229207b0a202020, 0x2020202020202020, 0x2020202020696620, 0x286572726f722069, + 0x6e7374616e63656f, 0x66204572726f7220, 0x2626206572726f72, 0x2e636f6465203d3d, 0x3d20756e64656669, + 0x6e656429207b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020204f626a6563, 0x742e646566696e65, + 0x50726f7065727479, 0x286572726f722c20, 0x22636f6465222c20, 0x7b76616c75653a20, 0x427269646765436f, + 0x64652e6d616c666f, 0x726d65642c20656e, 0x756d657261626c65, 0x3a20747275652c20, 0x7772697461626c65, + 0x3a2066616c73652c, 0x20636f6e66696775, 0x7261626c653a2066, 0x616c73657d293b0a, 0x2020202020202020, + 0x2020202020202020, 0x2020202062726964, 0x67654572726f7273, 0x2e61646428657272, 0x6f72293b0a202020, + 0x2020202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020202020202070, 0x656e64696e672e72, + 0x656a656374286572, 0x726f72293b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x202020207d0a0a20, + 0x202020202020202f, 0x2f2f20536574746c, 0x657320612070656e, 0x64696e672063616c, 0x6c20776974682074, + 0x68652076616c7565, 0x2c20746865206578, 0x63657074696f6e20, 0x6f72207468652061, 0x6273656e6365206f, + 0x662076616c756520, 0x7468617420612072, 0x657475726e206d65, 0x7373616765206361, 0x72726965732e0a20, + 0x2020202020202073, 0x6574746c65526574, 0x75726e2870656e64, 0x696e672c206d6573, 0x7361676529207b0a, + 0x2020202020202020, 0x20202020636f6e73, 0x7420636f756e7420, 0x3d206d6573736167, 0x652e67657455696e, + 0x74382831293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, 0x53697a65203d206d, + 0x6573736167652e67, 0x657455696e743332, 0x28342c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, + 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x286d657373616765, 0x2c20382c20706179, + 0x6c6f616453697a65, 0x2c202266756e6374, 0x696f6e2072657475, 0x726e207061796c6f, 0x616422293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x7061796c6f616420, 0x3d206e6577204461, 0x746156696577286d, 0x6573736167652e62, 0x75666665722c206d, 0x6573736167652e62, 0x7974654f66667365, 0x74202b20382c2070, - 0x61796c6f61645369, 0x7a65293b0a202020, 0x2020202020202020, 0x20636f6e7374205b, 0x6e616d65732c206e, - 0x616d654279746573, 0x5d203d2074686973, 0x2e6465636f646550, 0x6172616d65746572, 0x7328312c20706179, - 0x6c6f6164293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x205b706172616d65, 0x746572732c207061, - 0x72616d6574657242, 0x797465735d203d20, 0x746869732e646563, 0x6f6465506172616d, 0x657465727328636f, - 0x756e74202d20312c, 0x207061796c6f6164, 0x2c206e616d654279, 0x746573293b0a2020, 0x2020202020202020, - 0x2020696620286e61, 0x6d65427974657320, 0x2b20706172616d65, 0x7465724279746573, 0x20213d3d20706179, - 0x6c6f616453697a65, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, - 0x72282246756e6374, 0x696f6e2063616c6c, 0x20636f6e7461696e, 0x7320747261696c69, 0x6e67207061796c6f, - 0x6164206461746122, 0x293b0a2020202020, 0x202020202020206c, 0x6574206578656375, 0x74696f6e3b0a2020, - 0x2020202020202020, 0x2020747279207b0a, 0x2020202020202020, 0x2020202020202020, 0x657865637574696f, - 0x6e203d2074686973, 0x2e65786563757465, 0x46756e6374696f6e, 0x286e616d65735b30, 0x5d2c20706172616d, - 0x6574657273293b0a, 0x2020202020202020, 0x202020207d206361, 0x7463682028657272, 0x6f7229207b0a2020, - 0x2020202020202020, 0x2020202020207468, 0x69732e7265706f72, 0x7443616c6c466169, 0x6c7572652863616c, - 0x6c49642c20657272, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020726574, 0x75726e3b0a202020, - 0x2020202020202020, 0x207d0a2020202020, 0x202020202020202f, 0x2f2063616c6c4964, 0x2030206d65616e73, - 0x207468652063616c, 0x6c6572206973206e, 0x6f74207761697469, 0x6e6720666f722061, 0x6e797468696e672c, - 0x20736f2074686572, 0x65206973206e6f74, 0x68696e6720746f20, 0x73656e6420626163, 0x6b2e0a2020202020, - 0x2020202020202069, 0x66202863616c6c49, 0x6420213d3d203029, 0x0a20202020202020, 0x2020202020202020, - 0x2050726f6d697365, 0x2e7265736f6c7665, 0x2865786563757469, 0x6f6e292e7468656e, 0x280a202020202020, - 0x2020202020202020, 0x2020202020207661, 0x6c7565203d3e2074, 0x6869732e7265706f, 0x727443616c6c5375, - 0x6363657373286361, 0x6c6c49642c207661, 0x6c7565292c0a2020, 0x2020202020202020, 0x2020202020202020, - 0x20206572726f7220, 0x3d3e20746869732e, 0x73656e6446756e63, 0x74696f6e4572726f, 0x722863616c6c4964, - 0x2c206572726f7229, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020207265, 0x706f727443616c6c, - 0x4661696c75726528, 0x63616c6c49642c20, 0x6572726f7229207b, 0x0a20202020202020, 0x2020202020696620, - 0x2863616c6c496420, 0x3d3d3d2030290a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e736f6c652e65, - 0x72726f7228225b57, 0x656246726f6e7420, 0x4a61766153637269, 0x70742063616c6c5d, 0x222c206572726f72, - 0x293b0a2020202020, 0x2020202020202065, 0x6c73650a20202020, 0x2020202020202020, 0x2020202074686973, - 0x2e73656e6446756e, 0x6374696f6e457272, 0x6f722863616c6c49, 0x642c206572726f72, 0x293b0a2020202020, - 0x2020207d0a0a2020, 0x2020202020207265, 0x706f727443616c6c, 0x5375636365737328, 0x63616c6c49642c20, - 0x76616c756529207b, 0x0a20202020202020, 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202020, - 0x202020746869732e, 0x73656e6446756e63, 0x74696f6e52657475, 0x726e2863616c6c49, 0x642c2076616c7565, - 0x293b0a2020202020, 0x202020202020207d, 0x2063617463682028, 0x6572726f7229207b, 0x0a20202020202020, - 0x2020202020202020, 0x20746869732e7365, 0x6e6446756e637469, 0x6f6e4572726f7228, 0x63616c6c49642c20, - 0x6572726f72293b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020207d0a, 0x0a20202020202020, - 0x2065786563757465, 0x46756e6374696f6e, 0x286e616d652c2061, 0x72677329207b0a20, 0x2020202020202020, - 0x2020202f2f205468, 0x652065786368616e, 0x6765206f66207468, 0x6520726561642062, 0x696e64696e672062, - 0x656c6f6e67732074, 0x6f20746865206272, 0x6964676520746861, 0x7420726563656976, 0x6564207468652063, - 0x616c6c2c206e6f74, 0x20746f206120676c, 0x6f62616c2073696e, 0x676c65746f6e2e0a, 0x2020202020202020, - 0x2020202069662028, 0x6e616d65203d3d3d, 0x2022776642696e64, 0x2e65786368616e67, 0x6522290a20202020, - 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, 0x62696e64436c6965, 0x6e74282e2e2e6172, - 0x6773293b0a202020, 0x2020202020202020, 0x20636f6e73742070, 0x617468203d206e61, 0x6d652e73706c6974, - 0x28222e22293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206d656d62657220, 0x3d20706174682e70, - 0x6f7028293b0a2020, 0x2020202020202020, 0x20206c657420636f, 0x6e74657874203d20, 0x676c6f62616c3b0a, - 0x2020202020202020, 0x20202020666f7220, 0x28636f6e73742063, 0x6f6d706f6e656e74, 0x206f662070617468, - 0x29207b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x636f6e7465787420, 0x3d3d206e756c6c20, - 0x7c7c202128636f6d, 0x706f6e656e742069, 0x6e20636f6e746578, 0x7429290a20202020, 0x2020202020202020, - 0x2020202020202020, 0x7468726f77206272, 0x696467654572726f, 0x7228427269646765, 0x436f64652e6e6f74, - 0x466f756e642c2060, 0x4a61766153637269, 0x7074206e616d6573, 0x706163652027247b, 0x636f6d706f6e656e, - 0x747d272077617320, 0x6e6f7420666f756e, 0x64207768696c6520, 0x7265736f6c76696e, 0x672027247b6e616d, - 0x657d2760293b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e74657874203d, 0x20636f6e74657874, - 0x5b636f6d706f6e65, 0x6e745d3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202069, - 0x662028636f6e7465, 0x7874203d3d206e75, 0x6c6c207c7c207479, 0x70656f6620636f6e, 0x746578745b6d656d, - 0x6265725d20213d3d, 0x202266756e637469, 0x6f6e22290a202020, 0x2020202020202020, 0x2020202020746872, - 0x6f77206272696467, 0x654572726f722842, 0x7269646765436f64, 0x652e6e6f74466f75, 0x6e642c20604a6176, - 0x6153637269707420, 0x66756e6374696f6e, 0x2027247b6e616d65, 0x7d2720776173206e, 0x6f7420666f756e64, - 0x60293b0a20202020, 0x2020202020202020, 0x72657475726e2063, 0x6f6e746578745b6d, 0x656d6265725d282e, - 0x2e2e61726773293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202068616e64, 0x6c6546756e637469, - 0x6f6e52657475726e, 0x286d657373616765, 0x29207b0a20202020, 0x2020202020202020, 0x7265717569726542, - 0x79746573286d6573, 0x736167652c20302c, 0x20382c202266756e, 0x6374696f6e207265, 0x7475726e20686561, - 0x64657222293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2063616c6c496420, 0x3d206d6573736167, - 0x652e67657455696e, 0x74313628322c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, - 0x2020202020202063, 0x6f6e73742070656e, 0x64696e67203d2074, 0x6869732e70656e64, 0x696e6743616c6c73, - 0x2e6765742863616c, 0x6c4964293b0a2020, 0x2020202020202020, 0x2020696620282170, 0x656e64696e67290a, - 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, 0x6046756e6374696f, - 0x6e2072657475726e, 0x2068617320756e6b, 0x6e6f776e2063616c, 0x6c20696420247b63, 0x616c6c49647d6029, - 0x3b0a202020202020, 0x2020202020207468, 0x69732e70656e6469, 0x6e6743616c6c732e, 0x64656c6574652863, - 0x616c6c4964293b0a, 0x0a20202020202020, 0x20202020202f2f20, 0x41206465636f6465, 0x206661696c757265, - 0x2068617320746f20, 0x736574746c652074, 0x68652070656e6469, 0x6e672063616c6c20, 0x7261746865722074, - 0x68616e2065736361, 0x706520696e746f20, 0x74686520736f636b, 0x65742068616e646c, 0x65722c0a20202020, - 0x2020202020202020, 0x2f2f206f74686572, 0x7769736520746865, 0x2063616c6c657227, 0x732070726f6d6973, - 0x6520776f756c6420, 0x68616e6720666f72, 0x657665722e0a2020, 0x2020202020202020, 0x2020747279207b0a, - 0x2020202020202020, 0x2020202020202020, 0x746869732e736574, 0x746c655265747572, 0x6e2870656e64696e, - 0x672c206d65737361, 0x6765293b0a202020, 0x2020202020202020, 0x207d206361746368, 0x20286572726f7229, - 0x207b0a2020202020, 0x2020202020202020, 0x2020206966202865, 0x72726f7220696e73, 0x74616e63656f6620, - 0x4572726f72202626, 0x206572726f722e63, 0x6f6465203d3d3d20, 0x756e646566696e65, 0x6429207b0a202020, - 0x2020202020202020, 0x2020202020202020, 0x204f626a6563742e, 0x646566696e655072, 0x6f70657274792865, - 0x72726f722c202263, 0x6f6465222c207b76, 0x616c75653a204272, 0x69646765436f6465, 0x2e6d616c666f726d, - 0x65642c20656e756d, 0x657261626c653a20, 0x747275652c207772, 0x697461626c653a20, 0x66616c73652c2063, - 0x6f6e666967757261, 0x626c653a2066616c, 0x73657d293b0a2020, 0x2020202020202020, 0x2020202020202020, - 0x2020627269646765, 0x4572726f72732e61, 0x6464286572726f72, 0x293b0a2020202020, 0x2020202020202020, - 0x2020207d0a202020, 0x2020202020202020, 0x202020202070656e, 0x64696e672e72656a, 0x656374286572726f, - 0x72293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, 0x20207d0a0a202020, 0x20202020202f2f2f, - 0x20536574746c6573, 0x20612070656e6469, 0x6e672063616c6c20, 0x7769746820746865, 0x2076616c75652c20, - 0x7468652065786365, 0x7074696f6e206f72, 0x2074686520616273, 0x656e6365206f6620, 0x76616c7565207468, - 0x6174206120726574, 0x75726e206d657373, 0x6167652063617272, 0x6965732e0a202020, 0x2020202020736574, - 0x746c655265747572, 0x6e2870656e64696e, 0x672c206d65737361, 0x676529207b0a2020, 0x2020202020202020, - 0x2020636f6e737420, 0x636f756e74203d20, 0x6d6573736167652e, 0x67657455696e7438, 0x2831293b0a202020, - 0x2020202020202020, 0x20636f6e73742070, 0x61796c6f61645369, 0x7a65203d206d6573, 0x736167652e676574, - 0x55696e7433322834, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, - 0x2020726571756972, 0x654279746573286d, 0x6573736167652c20, 0x382c207061796c6f, 0x616453697a652c20, - 0x2266756e6374696f, 0x6e2072657475726e, 0x207061796c6f6164, 0x22293b0a20202020, 0x2020202020202020, - 0x636f6e7374207061, 0x796c6f6164203d20, 0x6e65772044617461, 0x56696577286d6573, 0x736167652e627566, - 0x6665722c206d6573, 0x736167652e627974, 0x654f666673657420, 0x2b20382c20706179, 0x6c6f616453697a65, - 0x293b0a0a20202020, 0x2020202020202020, 0x6966202874686973, 0x2e63617272696573, 0x457863657074696f, - 0x6e28636f756e742c, 0x207061796c6f6164, 0x53697a652c207061, 0x796c6f6164292920, 0x7b0a202020202020, - 0x2020202020202020, 0x202070656e64696e, 0x672e72656a656374, 0x28746869732e7369, 0x6e676c6556616c75, - 0x65287061796c6f61, 0x642c207061796c6f, 0x616453697a652c20, 0x2245786365707469, 0x6f6e2229293b0a20, - 0x2020202020202020, 0x2020202020202072, 0x657475726e3b0a20, 0x2020202020202020, 0x2020207d0a202020, - 0x2020202020202020, 0x2069662028636f75, 0x6e74203d3d3d2030, 0x29207b0a20202020, 0x2020202020202020, - 0x2020202069662028, 0x7061796c6f616453, 0x697a6520213d3d20, 0x30290a2020202020, 0x2020202020202020, - 0x2020202020202074, 0x68726f77206e6577, 0x204572726f722822, 0x566f696420726574, 0x75726e20636f6e74, - 0x61696e7320706179, 0x6c6f616420646174, 0x6122293b0a202020, 0x2020202020202020, 0x202020202070656e, - 0x64696e672e726573, 0x6f6c766528756e64, 0x6566696e6564293b, 0x0a20202020202020, 0x2020202020202020, - 0x2072657475726e3b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020206966202863, - 0x6f756e7420213d3d, 0x2031290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, - 0x726f72282246756e, 0x6374696f6e207265, 0x7475726e206d7573, 0x7420636f6e746169, 0x6e207a65726f206f, - 0x72206f6e65207661, 0x6c756522293b0a20, 0x2020202020202020, 0x20202070656e6469, 0x6e672e7265736f6c, - 0x766528746869732e, 0x73696e676c655661, 0x6c7565287061796c, 0x6f61642c20706179, 0x6c6f616453697a65, - 0x2c202246756e6374, 0x696f6e2229293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206361727269, + 0x61796c6f61645369, 0x7a65293b0a0a2020, 0x2020202020202020, 0x2020696620287468, 0x69732e6361727269, 0x6573457863657074, 0x696f6e28636f756e, 0x742c207061796c6f, 0x616453697a652c20, 0x7061796c6f616429, - 0x207b0a2020202020, 0x2020202020202069, 0x662028636f756e74, 0x20213d3d2031207c, 0x7c207061796c6f61, - 0x6453697a65203d3d, 0x3d20302920726574, 0x75726e2066616c73, 0x653b0a2020202020, 0x2020202020202072, - 0x657475726e207061, 0x796c6f61642e6765, 0x7455696e74382830, 0x29203d3d3d205061, 0x72616d547970652e, - 0x657863657074696f, 0x6e3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f204465636f6465, - 0x732065786163746c, 0x79206f6e65207661, 0x6c756520616e6420, 0x72656a6563747320, 0x616e792062797465, - 0x73206c656674206f, 0x7665722061667465, 0x722069742e0a2020, 0x2020202020207369, 0x6e676c6556616c75, - 0x65287061796c6f61, 0x642c207061796c6f, 0x616453697a652c20, 0x7768617429207b0a, 0x2020202020202020, - 0x20202020636f6e73, 0x74205b76616c7565, 0x732c20636f6e7375, 0x6d65645d203d2074, 0x6869732e6465636f, - 0x6465506172616d65, 0x7465727328312c20, 0x7061796c6f616429, 0x3b0a202020202020, 0x2020202020206966, - 0x2028636f6e73756d, 0x656420213d3d2070, 0x61796c6f61645369, 0x7a65290a20202020, 0x2020202020202020, - 0x202020207468726f, 0x77206e6577204572, 0x726f722860247b77, 0x6861747d20726574, 0x75726e20636f6e74, - 0x61696e7320747261, 0x696c696e67207061, 0x796c6f6164206461, 0x746160293b0a2020, 0x2020202020202020, - 0x202072657475726e, 0x2076616c7565735b, 0x305d3b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, - 0x2f2f204465636f64, 0x65732060636f756e, 0x746020636f6e7365, 0x6375746976652076, 0x616c7565733b2072, - 0x657475726e732074, 0x68656d2077697468, 0x2074686520627974, 0x657320636f6e7375, 0x6d65642c20616e64, - 0x207265636f726473, 0x2074686569722073, 0x686170657320696e, 0x2060736861706573, 0x60207768656e2067, - 0x6976656e2e0a2020, 0x2020202020206465, 0x636f646550617261, 0x6d65746572732863, 0x6f756e742c207669, - 0x65772c206f666673, 0x6574203d20302c20, 0x736861706573203d, 0x206e756c6c29207b, 0x0a20202020202020, - 0x2020202020636f6e, 0x73742076616c7565, 0x73203d205b5d3b0a, 0x2020202020202020, 0x202020206c657420, - 0x637572736f72203d, 0x206f66667365743b, 0x0a20202020202020, 0x2020202020666f72, 0x20286c657420696e, - 0x646578203d20303b, 0x20696e646578203c, 0x20636f756e743b20, 0x2b2b696e64657829, 0x207b0a2020202020, - 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c206375, 0x72736f722c20312c, - 0x2022706172616d65, 0x7465722074797065, 0x22293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, - 0x74207b76616c7565, 0x2c2062797465732c, 0x2073686170657d20, 0x3d20746869732e64, 0x65636f646556616c, - 0x756528766965772e, 0x67657455696e7438, 0x28637572736f7229, 0x2c20766965772c20, 0x637572736f72293b, - 0x0a20202020202020, 0x2020202020202020, 0x2076616c7565732e, 0x707573682876616c, 0x7565293b0a202020, - 0x2020202020202020, 0x2020202020696620, 0x2873686170657329, 0x0a20202020202020, 0x2020202020202020, - 0x2020202020736861, 0x7065732e70757368, 0x287368617065293b, 0x0a20202020202020, 0x2020202020202020, - 0x20637572736f7220, 0x2b3d206279746573, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, - 0x2020202072657475, 0x726e205b76616c75, 0x65732c2063757273, 0x6f72202d206f6666, 0x7365745d3b0a2020, - 0x2020202020207d0a, 0x0a20202020202020, 0x202f2f2f20446563, 0x6f64657320746865, 0x2073696e676c6520, - 0x76616c7565207374, 0x617274696e672061, 0x7420276f66667365, 0x74272c2072657475, 0x726e696e67206974, - 0x20616c6f6e677369, 0x6465207468652062, 0x79746520636f756e, 0x7420697420636f6e, 0x73756d65642e0a20, - 0x2020202020202064, 0x65636f646556616c, 0x756528747970652c, 0x20766965772c206f, 0x666673657429207b, - 0x0a20202020202020, 0x2020202020636f6e, 0x7374206465636f64, 0x6572203d2076616c, 0x75654465636f6465, - 0x72732e6765742874, 0x797065293b0a2020, 0x2020202020202020, 0x2020696620282164, 0x65636f646572290a, - 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, 0x726f722860556e73, - 0x7570706f72746564, 0x20706172616d6574, 0x6572207479706520, 0x247b747970657d60, 0x293b0a2020202020, - 0x2020202020202063, 0x6f6e737420646563, 0x6f646564203d2064, 0x65636f6465722874, 0x6869732c20747970, - 0x652c20766965772c, 0x206f666673657429, 0x3b0a202020202020, 0x2020202020206465, 0x636f6465642e7368, - 0x617065203f3f3d20, 0x7769726553686170, 0x652874797065293b, 0x0a20202020202020, 0x2020202020726574, - 0x75726e206465636f, 0x6465643b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x6465636f64654e75, - 0x6d62657228766965, 0x772c206f66667365, 0x7429207b0a202020, 0x2020202020202020, 0x2072657175697265, - 0x4279746573287669, 0x65772c206f666673, 0x65742c20392c2022, 0x6e756d6265722229, 0x3b0a202020202020, - 0x2020202020207265, 0x7475726e207b7661, 0x6c75653a20766965, 0x772e676574466c6f, 0x61743634286f6666, - 0x736574202b20312c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e292c20627974, 0x65733a20397d3b0a, - 0x2020202020202020, 0x7d0a0a2020202020, 0x2020202f2f2f2044, 0x65636f6465732061, 0x20736d616c6c5374, - 0x72696e672c207374, 0x72696e67206f7220, 0x6c6f6e6753747269, 0x6e672e0a20202020, 0x202020206465636f, - 0x6465537472696e67, 0x28747970652c2076, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x2073697a65427974, 0x6573203d20747970, 0x65203d3d3d205061, 0x72616d547970652e, - 0x736d616c6c537472, 0x696e67203f203120, 0x3a2074797065203d, 0x3d3d20506172616d, 0x547970652e6c6f6e, - 0x67537472696e6720, 0x3f2034203a20323b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, - 0x7328766965772c20, 0x6f6666736574202b, 0x20312c2073697a65, 0x42797465732c2022, 0x737472696e67206c, - 0x656e67746822293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206c656e6774, 0x68203d2073697a65, - 0x4279746573203d3d, 0x3d2031203f207669, 0x65772e6765745569, 0x6e7438286f666673, 0x6574202b2031290a, - 0x2020202020202020, 0x2020202020202020, 0x3a2073697a654279, 0x746573203d3d3d20, 0x32203f2076696577, - 0x2e67657455696e74, 0x3136286f66667365, 0x74202b20312c2074, 0x6869732e6c697474, 0x6c65456e6469616e, - 0x29203a2076696577, 0x2e67657455696e74, 0x3332286f66667365, 0x74202b20312c2074, 0x6869732e6c697474, - 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420706179, 0x6c6f6164203d206f, - 0x6666736574202b20, 0x31202b2073697a65, 0x42797465733b0a20, 0x2020202020202020, 0x2020207265717569, - 0x7265427974657328, 0x766965772c207061, 0x796c6f61642c206c, 0x656e6774682c2022, 0x737472696e672070, - 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742062797465, 0x73203d206e657720, - 0x55696e7438417272, 0x617928766965772e, 0x6275666665722c20, 0x766965772e627974, 0x654f666673657420, - 0x2b207061796c6f61, 0x642c206c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x72657475726e207b, - 0x76616c75653a206e, 0x6577205465787444, 0x65636f6465722822, 0x7574662d3822292e, 0x6465636f64652862, - 0x79746573292c2062, 0x797465733a203120, 0x2b2073697a654279, 0x746573202b206c65, 0x6e6774687d3b0a20, - 0x202020202020207d, 0x0a0a202020202020, 0x20202f2f2f20416e, 0x2065786365707469, 0x6f6e206973206120, - 0x312d627974652063, 0x6f64652073697a65, 0x2c2074686520636f, 0x64652c2061203136, 0x2d626974206d6573, - 0x736167652073697a, 0x6520616e64207468, 0x65206d6573736167, 0x652e204974206465, 0x636f64657320746f, - 0x20616e204572726f, 0x7220776974680a20, 0x202020202020202f, 0x2f2f2060636f6465, 0x602c207768696368, - 0x206120736574746c, 0x65642063616c6c20, 0x72656a6563747320, 0x776974682e0a2020, 0x2020202020206465, - 0x636f646545786365, 0x7074696f6e287669, 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, - 0x2020726571756972, 0x6542797465732876, 0x6965772c206f6666, 0x736574202b20312c, 0x20312c2022657863, - 0x657074696f6e2063, 0x6f64652073697a65, 0x22293b0a20202020, 0x2020202020202020, 0x636f6e737420636f, - 0x646553697a65203d, 0x20766965772e6765, 0x7455696e7438286f, 0x6666736574202b20, 0x31293b0a20202020, - 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, 0x772c206f66667365, 0x74202b20322c2063, - 0x6f646553697a6520, 0x2b20322c20226578, 0x63657074696f6e20, 0x636f646522293b0a, 0x2020202020202020, - 0x20202020636f6e73, 0x7420636f6465203d, 0x206e657720546578, 0x744465636f646572, 0x28227574662d3822, - 0x292e6465636f6465, 0x286e65772055696e, 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, - 0x772e627974654f66, 0x66736574202b206f, 0x6666736574202b20, 0x322c20636f646553, 0x697a6529293b0a20, - 0x2020202020202020, 0x202020636f6e7374, 0x206d657373616765, 0x53697a65203d2076, 0x6965772e67657455, - 0x696e743136286f66, 0x66736574202b2032, 0x202b20636f646553, 0x697a652c20746869, 0x732e6c6974746c65, - 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374207061796c6f, 0x6164203d206f6666, - 0x736574202b203420, 0x2b20636f64655369, 0x7a653b0a20202020, 0x2020202020202020, 0x7265717569726542, - 0x7974657328766965, 0x772c207061796c6f, 0x61642c206d657373, 0x61676553697a652c, 0x2022657863657074, - 0x696f6e206d657373, 0x61676522293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206d657373616765, - 0x203d206e65772054, 0x6578744465636f64, 0x657228227574662d, 0x3822292e6465636f, 0x6465286e65772055, - 0x696e743841727261, 0x7928766965772e62, 0x75666665722c2076, 0x6965772e62797465, 0x4f6666736574202b, - 0x207061796c6f6164, 0x2c206d6573736167, 0x6553697a6529293b, 0x0a20202020202020, 0x2020202020726574, - 0x75726e207b76616c, 0x75653a2062726964, 0x67654572726f7228, 0x76616c6964436f64, 0x652e746573742863, - 0x6f646529203f2063, 0x6f6465203a204272, 0x69646765436f6465, 0x2e67656e65726963, 0x2c206d6573736167, - 0x65292c2062797465, 0x733a2034202b2063, 0x6f646553697a6520, 0x2b206d6573736167, 0x6553697a657d3b0a, - 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206465636f64, 0x655475706c652876, 0x6965772c206f6666, - 0x73657429207b0a20, 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c206f66, - 0x667365742c20322c, 0x20227475706c6520, 0x6865616465722229, 0x3b0a202020202020, 0x202020202020636f, - 0x6e73742073686170, 0x6573203d205b5d3b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374205b7475706c, - 0x652c20636f6e7375, 0x6d65645d203d2074, 0x6869732e6465636f, 0x6465506172616d65, 0x7465727328766965, - 0x772e67657455696e, 0x7438286f66667365, 0x74202b2031292c20, 0x766965772c206f66, 0x66736574202b2032, - 0x2c20736861706573, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e207b76, 0x616c75653a207475, - 0x706c652c20627974, 0x65733a2032202b20, 0x636f6e73756d6564, 0x2c2073686170653a, 0x206028247b736861, - 0x7065732e6a6f696e, 0x28222c22297d2960, 0x7d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, - 0x2f2041206c697374, 0x2069732061203332, 0x2d62697420636f75, 0x6e7420666f6c6c6f, 0x7765642062792074, - 0x686174206d616e79, 0x2076616c75657320, 0x6f66206f6e652073, 0x686170653b207468, 0x6520656c656d656e, - 0x7473206172726976, 0x652061732061204a, 0x6176615363726970, 0x742061727261792e, 0x0a20202020202020, - 0x206465636f64654c, 0x6973742876696577, 0x2c206f6666736574, 0x29207b0a20202020, 0x2020202020202020, - 0x7265717569726542, 0x7974657328766965, 0x772c206f66667365, 0x742c20352c20226c, 0x6973742068656164, - 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x636f756e74203d20, 0x766965772e676574, + 0x29207b0a20202020, 0x2020202020202020, 0x2020202070656e64, 0x696e672e72656a65, 0x637428746869732e, + 0x73696e676c655661, 0x6c7565287061796c, 0x6f61642c20706179, 0x6c6f616453697a65, 0x2c20224578636570, + 0x74696f6e2229293b, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e3b, 0x0a20202020202020, + 0x20202020207d0a20, 0x2020202020202020, 0x2020206966202863, 0x6f756e74203d3d3d, 0x203029207b0a2020, + 0x2020202020202020, 0x2020202020206966, 0x20287061796c6f61, 0x6453697a6520213d, 0x3d2030290a202020, + 0x2020202020202020, 0x2020202020202020, 0x207468726f77206e, 0x6577204572726f72, 0x2822566f69642072, + 0x657475726e20636f, 0x6e7461696e732070, 0x61796c6f61642064, 0x61746122293b0a20, 0x2020202020202020, + 0x2020202020202070, 0x656e64696e672e72, 0x65736f6c76652875, 0x6e646566696e6564, 0x293b0a2020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, + 0x2020202020696620, 0x28636f756e742021, 0x3d3d2031290a2020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x4572726f72282246, 0x756e6374696f6e20, 0x72657475726e206d, 0x75737420636f6e74, + 0x61696e207a65726f, 0x206f72206f6e6520, 0x76616c756522293b, 0x0a20202020202020, 0x202020202070656e, + 0x64696e672e726573, 0x6f6c766528746869, 0x732e73696e676c65, 0x56616c7565287061, 0x796c6f61642c2070, + 0x61796c6f61645369, 0x7a652c202246756e, 0x6374696f6e222929, 0x3b0a202020202020, 0x20207d0a0a202020, + 0x2020202020636172, 0x7269657345786365, 0x7074696f6e28636f, 0x756e742c20706179, 0x6c6f616453697a65, + 0x2c207061796c6f61, 0x6429207b0a202020, 0x2020202020202020, 0x2069662028636f75, 0x6e7420213d3d2031, + 0x207c7c207061796c, 0x6f616453697a6520, 0x3d3d3d2030292072, 0x657475726e206661, 0x6c73653b0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x7061796c6f61642e, 0x67657455696e7438, 0x283029203d3d3d20, + 0x506172616d547970, 0x652e657863657074, 0x696f6e3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x2f2f2f204465636f, 0x6465732065786163, 0x746c79206f6e6520, 0x76616c756520616e, 0x642072656a656374, + 0x7320616e79206279, 0x746573206c656674, 0x206f766572206166, 0x7465722069742e0a, 0x2020202020202020, + 0x73696e676c655661, 0x6c7565287061796c, 0x6f61642c20706179, 0x6c6f616453697a65, 0x2c20776861742920, + 0x7b0a202020202020, 0x202020202020636f, 0x6e7374205b76616c, 0x7565732c20636f6e, 0x73756d65645d203d, + 0x20746869732e6465, 0x636f646550617261, 0x6d65746572732831, 0x2c207061796c6f61, 0x64293b0a20202020, + 0x2020202020202020, 0x69662028636f6e73, 0x756d656420213d3d, 0x207061796c6f6164, 0x53697a65290a2020, + 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, 0x4572726f72286024, 0x7b776861747d2072, + 0x657475726e20636f, 0x6e7461696e732074, 0x7261696c696e6720, 0x7061796c6f616420, 0x6461746160293b0a, + 0x2020202020202020, 0x2020202072657475, 0x726e2076616c7565, 0x735b305d3b0a2020, 0x2020202020207d0a, + 0x0a20202020202020, 0x202f2f2f20446563, 0x6f6465732060636f, 0x756e746020636f6e, 0x7365637574697665, + 0x2076616c7565733b, 0x2072657475726e73, 0x207468656d207769, 0x7468207468652062, 0x7974657320636f6e, + 0x73756d65642c2061, 0x6e64207265636f72, 0x6473207468656972, 0x2073686170657320, 0x696e206073686170, + 0x657360207768656e, 0x20676976656e2e0a, 0x2020202020202020, 0x6465636f64655061, 0x72616d6574657273, + 0x28636f756e742c20, 0x766965772c206f66, 0x66736574203d2030, 0x2c20736861706573, 0x203d206e756c6c29, + 0x207b0a2020202020, 0x2020202020202063, 0x6f6e73742076616c, 0x756573203d205b5d, 0x3b0a202020202020, + 0x2020202020206c65, 0x7420637572736f72, 0x203d206f66667365, 0x743b0a2020202020, 0x2020202020202066, + 0x6f7220286c657420, 0x696e646578203d20, 0x303b20696e646578, 0x203c20636f756e74, 0x3b202b2b696e6465, + 0x7829207b0a202020, 0x2020202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, + 0x637572736f722c20, 0x312c202270617261, 0x6d65746572207479, 0x706522293b0a2020, 0x2020202020202020, + 0x202020202020636f, 0x6e7374207b76616c, 0x75652c2062797465, 0x732c207368617065, 0x7d203d2074686973, + 0x2e6465636f646556, 0x616c756528766965, 0x772e67657455696e, 0x743828637572736f, 0x72292c2076696577, + 0x2c20637572736f72, 0x293b0a2020202020, 0x2020202020202020, 0x20202076616c7565, 0x732e707573682876, + 0x616c7565293b0a20, 0x2020202020202020, 0x2020202020202069, 0x6620287368617065, 0x73290a2020202020, + 0x2020202020202020, 0x2020202020202073, 0x68617065732e7075, 0x7368287368617065, 0x293b0a2020202020, + 0x2020202020202020, 0x202020637572736f, 0x72202b3d20627974, 0x65733b0a20202020, 0x2020202020202020, + 0x7d0a202020202020, 0x2020202020207265, 0x7475726e205b7661, 0x6c7565732c206375, 0x72736f72202d206f, + 0x66667365745d3b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020202f2f2f2044, 0x65636f6465732074, + 0x68652073696e676c, 0x652076616c756520, 0x7374617274696e67, 0x20617420276f6666, 0x736574272c207265, + 0x7475726e696e6720, 0x697420616c6f6e67, 0x7369646520746865, 0x206279746520636f, 0x756e742069742063, + 0x6f6e73756d65642e, 0x0a20202020202020, 0x206465636f646556, 0x616c756528747970, 0x652c20766965772c, + 0x206f666673657429, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420646563, 0x6f646572203d2076, + 0x616c75654465636f, 0x646572732e676574, 0x2874797065293b0a, 0x2020202020202020, 0x2020202069662028, + 0x216465636f646572, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, + 0x4572726f72286055, 0x6e737570706f7274, 0x656420706172616d, 0x6574657220747970, 0x6520247b74797065, + 0x7d60293b0a202020, 0x2020202020202020, 0x20636f6e73742064, 0x65636f646564203d, 0x206465636f646572, + 0x28746869732c2074, 0x7970652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, + 0x6465636f6465642e, 0x7368617065203f3f, 0x3d20776972655368, 0x6170652874797065, 0x293b0a2020202020, + 0x2020202020202072, 0x657475726e206465, 0x636f6465643b0a20, 0x202020202020207d, 0x0a0a202020202020, + 0x20206465636f6465, 0x4e756d6265722876, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, + 0x2020207265717569, 0x7265427974657328, 0x766965772c206f66, 0x667365742c20392c, 0x20226e756d626572, + 0x22293b0a20202020, 0x2020202020202020, 0x72657475726e207b, 0x76616c75653a2076, 0x6965772e67657446, + 0x6c6f61743634286f, 0x6666736574202b20, 0x312c20746869732e, 0x6c6974746c65456e, 0x6469616e292c2062, + 0x797465733a20397d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x20202020202f2f2f, 0x204465636f646573, + 0x206120736d616c6c, 0x537472696e672c20, 0x737472696e67206f, 0x72206c6f6e675374, 0x72696e672e0a2020, + 0x2020202020206465, 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, 0x666673657429207b, + 0x0a20202020202020, 0x2020202020636f6e, 0x73742073697a6542, 0x79746573203d2074, 0x797065203d3d3d20, + 0x506172616d547970, 0x652e736d616c6c53, 0x7472696e67203f20, 0x31203a2074797065, 0x203d3d3d20506172, + 0x616d547970652e6c, 0x6f6e67537472696e, 0x67203f2034203a20, 0x323b0a2020202020, 0x2020202020202072, + 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, 0x202b20312c207369, 0x7a6542797465732c, + 0x2022737472696e67, 0x206c656e67746822, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e7374206c656e, + 0x677468203d207369, 0x7a65427974657320, 0x3d3d3d2031203f20, 0x766965772e676574, 0x55696e7438286f66, + 0x66736574202b2031, 0x290a202020202020, 0x2020202020202020, 0x20203a2073697a65, 0x4279746573203d3d, + 0x3d2032203f207669, 0x65772e6765745569, 0x6e743136286f6666, 0x736574202b20312c, 0x20746869732e6c69, + 0x74746c65456e6469, 0x616e29203a207669, 0x65772e6765745569, 0x6e743332286f6666, 0x736574202b20312c, + 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x20636f6e73742070, + 0x61796c6f6164203d, 0x206f666673657420, 0x2b2031202b207369, 0x7a6542797465733b, 0x0a20202020202020, + 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x7061796c6f61642c, 0x206c656e6774682c, + 0x2022737472696e67, 0x207061796c6f6164, 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374206279, + 0x746573203d206e65, 0x772055696e743841, 0x7272617928766965, 0x772e627566666572, 0x2c20766965772e62, + 0x7974654f66667365, 0x74202b207061796c, 0x6f61642c206c656e, 0x677468293b0a2020, 0x2020202020202020, + 0x202072657475726e, 0x207b76616c75653a, 0x206e657720546578, 0x744465636f646572, 0x28227574662d3822, + 0x292e6465636f6465, 0x286279746573292c, 0x2062797465733a20, 0x31202b2073697a65, 0x4279746573202b20, + 0x6c656e6774687d3b, 0x0a20202020202020, 0x207d0a0a20202020, 0x202020202f2f2f20, 0x416e206578636570, + 0x74696f6e20697320, 0x6120312d62797465, 0x20636f6465207369, 0x7a652c2074686520, 0x636f64652c206120, + 0x31362d626974206d, 0x6573736167652073, 0x697a6520616e6420, 0x746865206d657373, 0x6167652e20497420, + 0x6465636f64657320, 0x746f20616e204572, 0x726f722077697468, 0x0a20202020202020, 0x202f2f2f2060636f, + 0x6465602c20776869, 0x6368206120736574, 0x746c65642063616c, 0x6c2072656a656374, 0x7320776974682e0a, + 0x2020202020202020, 0x6465636f64654578, 0x63657074696f6e28, 0x766965772c206f66, 0x6673657429207b0a, + 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c206f, 0x6666736574202b20, + 0x312c20312c202265, 0x7863657074696f6e, 0x20636f6465207369, 0x7a6522293b0a2020, 0x2020202020202020, + 0x2020636f6e737420, 0x636f646553697a65, 0x203d20766965772e, 0x67657455696e7438, 0x286f666673657420, + 0x2b2031293b0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c206f6666, + 0x736574202b20322c, 0x20636f646553697a, 0x65202b20322c2022, 0x657863657074696f, 0x6e20636f64652229, + 0x3b0a202020202020, 0x202020202020636f, 0x6e737420636f6465, 0x203d206e65772054, 0x6578744465636f64, + 0x657228227574662d, 0x3822292e6465636f, 0x6465286e65772055, 0x696e743841727261, 0x7928766965772e62, + 0x75666665722c2076, 0x6965772e62797465, 0x4f6666736574202b, 0x206f666673657420, 0x2b20322c20636f64, + 0x6553697a6529293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206d65737361, 0x676553697a65203d, + 0x20766965772e6765, 0x7455696e74313628, 0x6f6666736574202b, 0x2032202b20636f64, 0x6553697a652c2074, + 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420706179, + 0x6c6f6164203d206f, 0x6666736574202b20, 0x34202b20636f6465, 0x53697a653b0a2020, 0x2020202020202020, + 0x2020726571756972, 0x6542797465732876, 0x6965772c20706179, 0x6c6f61642c206d65, 0x737361676553697a, + 0x652c202265786365, 0x7074696f6e206d65, 0x737361676522293b, 0x0a20202020202020, 0x2020202020636f6e, + 0x7374206d65737361, 0x6765203d206e6577, 0x2054657874446563, 0x6f64657228227574, 0x662d3822292e6465, + 0x636f6465286e6577, 0x2055696e74384172, 0x7261792876696577, 0x2e6275666665722c, 0x20766965772e6279, + 0x74654f6666736574, 0x202b207061796c6f, 0x61642c206d657373, 0x61676553697a6529, 0x293b0a2020202020, + 0x2020202020202072, 0x657475726e207b76, 0x616c75653a206272, 0x696467654572726f, 0x722876616c696443, + 0x6f64652e74657374, 0x28636f646529203f, 0x20636f6465203a20, 0x427269646765436f, 0x64652e67656e6572, + 0x69632c206d657373, 0x616765292c206279, 0x7465733a2034202b, 0x20636f646553697a, 0x65202b206d657373, + 0x61676553697a657d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020646563, 0x6f64655475706c65, + 0x28766965772c206f, 0x666673657429207b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, + 0x7328766965772c20, 0x6f66667365742c20, 0x322c20227475706c, 0x6520686561646572, 0x22293b0a20202020, + 0x2020202020202020, 0x636f6e7374207368, 0x61706573203d205b, 0x5d3b0a2020202020, 0x2020202020202063, + 0x6f6e7374205b7475, 0x706c652c20636f6e, 0x73756d65645d203d, 0x20746869732e6465, 0x636f646550617261, + 0x6d65746572732876, 0x6965772e67657455, 0x696e7438286f6666, 0x736574202b203129, 0x2c20766965772c20, + 0x6f6666736574202b, 0x20322c2073686170, 0x6573293b0a202020, 0x2020202020202020, 0x2072657475726e20, + 0x7b76616c75653a20, 0x7475706c652c2062, 0x797465733a203220, 0x2b20636f6e73756d, 0x65642c2073686170, + 0x653a206028247b73, 0x68617065732e6a6f, 0x696e28222c22297d, 0x29607d3b0a202020, 0x20202020207d0a0a, + 0x2020202020202020, 0x2f2f2f2041206c69, 0x7374206973206120, 0x33322d6269742063, 0x6f756e7420666f6c, + 0x6c6f776564206279, 0x2074686174206d61, 0x6e792076616c7565, 0x73206f66206f6e65, 0x2073686170653b20, + 0x74686520656c656d, 0x656e747320617272, 0x6976652061732061, 0x204a617661536372, 0x6970742061727261, + 0x792e0a2020202020, 0x2020206465636f64, 0x654c697374287669, 0x65772c206f666673, 0x657429207b0a2020, + 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c206f6666, 0x7365742c20352c20, + 0x226c697374206865, 0x6164657222293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420636f756e7420, + 0x3d20766965772e67, 0x657455696e743332, 0x286f666673657420, 0x2b20312c20746869, 0x732e6c6974746c65, + 0x456e6469616e293b, 0x0a20202020202020, 0x20202020202f2f20, 0x457665727920656c, 0x656d656e74207461, + 0x6b6573206174206c, 0x65617374206f6e65, 0x20627974653a2061, 0x20636f756e742074, 0x6865206d65737361, + 0x67652063616e6e6f, 0x7420686f6c642069, 0x7320726566757365, 0x64206265666f7265, 0x20616e797468696e, + 0x6720697320616c6c, 0x6f63617465642e0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, + 0x28766965772c206f, 0x6666736574202b20, 0x352c20636f756e74, 0x2c20226c69737420, 0x656c656d656e7473, + 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d205b, 0x5d3b0a2020202020, + 0x202020202020206c, 0x657420637572736f, 0x72203d206f666673, 0x6574202b20353b0a, 0x2020202020202020, + 0x202020206c657420, 0x6c69737453686170, 0x65203d206e756c6c, 0x3b0a202020202020, 0x202020202020666f, + 0x7220286c65742069, 0x6e646578203d2030, 0x3b20696e64657820, 0x3c20636f756e743b, 0x202b2b696e646578, + 0x29207b0a20202020, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c2063, + 0x7572736f722c2031, 0x2c20226c69737420, 0x656c656d656e7420, 0x7479706522293b0a, 0x2020202020202020, + 0x2020202020202020, 0x6966202876696577, 0x2e67657455696e74, 0x3828637572736f72, 0x29203d3d3d205061, + 0x72616d547970652e, 0x657863657074696f, 0x6e290a2020202020, 0x2020202020202020, 0x2020202020202074, + 0x68726f77206e6577, 0x2054797065457272, 0x6f72282241205765, 0x6246726f6e74206c, 0x69737420656c656d, + 0x656e742063616e6e, 0x6f7420626520616e, 0x2065786365707469, 0x6f6e22293b0a2020, 0x2020202020202020, + 0x202020202020636f, 0x6e7374207b76616c, 0x75652c2062797465, 0x732c207368617065, 0x7d203d2074686973, + 0x2e6465636f646556, 0x616c756528766965, 0x772e67657455696e, 0x743828637572736f, 0x72292c2076696577, + 0x2c20637572736f72, 0x293b0a2020202020, 0x2020202020202020, 0x2020207265717569, 0x72654c697374456c, + 0x656d656e74536861, 0x7065287368617065, 0x293b0a2020202020, 0x2020202020202020, 0x202020696620286c, + 0x6973745368617065, 0x203d3d3d206e756c, 0x6c290a2020202020, 0x2020202020202020, 0x202020202020206c, + 0x6973745368617065, 0x203d207368617065, 0x3b0a202020202020, 0x2020202020202020, 0x2020656c73652069, + 0x6620287368617065, 0x20213d3d206c6973, 0x745368617065290a, 0x2020202020202020, 0x2020202020202020, + 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, 0x2257656246726f6e, 0x74206c6973742065, + 0x6c656d656e747320, 0x617265206e6f7420, 0x6f66206f6e652074, 0x79706522293b0a20, 0x2020202020202020, + 0x2020202020202076, 0x616c7565732e7075, 0x73682876616c7565, 0x293b0a2020202020, 0x2020202020202020, + 0x202020637572736f, 0x72202b3d20627974, 0x65733b0a20202020, 0x2020202020202020, 0x7d0a202020202020, + 0x2020202020207265, 0x7475726e207b7661, 0x6c75653a2076616c, 0x7565732c20627974, 0x65733a2063757273, + 0x6f72202d206f6666, 0x7365742c20736861, 0x70653a20224c227d, 0x3b0a202020202020, 0x20207d0a0a202020, + 0x20202020202f2f2f, 0x205265736f6c7665, 0x732074686520656c, 0x656d656e74207370, 0x656320616e64206c, + 0x656e677468207072, 0x6566697820666f72, 0x2061207479706564, 0x2061727261792c20, 0x77686f7365206865, + 0x6164657220697320, 0x3220627974657320, 0x696e207468650a20, 0x202020202020202f, 0x2f2f20636f6d7061, + 0x637420736d616c6c, 0x4172726179553820, 0x666f726d20616e64, 0x2035206279746573, 0x206f746865727769, + 0x73652e0a20202020, 0x2020202072656164, 0x5479706564417272, 0x6179486561646572, 0x28747970652c2076, + 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20736d616c6c203d, + 0x2074797065203d3d, 0x3d20506172616d54, 0x7970652e736d616c, 0x6c41727261795538, 0x3b0a202020202020, + 0x202020202020636f, 0x6e73742073706563, 0x203d20736d616c6c, 0x203f207b2e2e2e61, 0x72726179436f6465, + 0x732e676574285061, 0x72616d547970652e, 0x6172726179553829, 0x2c20636f6e737472, 0x7563746f723a2055, + 0x696e743841727261, 0x797d203a20617272, 0x6179436f6465732e, 0x6765742874797065, 0x293b0a2020202020, + 0x2020202020202069, 0x6620282173706563, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, + 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, 0x6564207479706564, 0x2061727261792063, + 0x6f646520247b7479, 0x70657d60293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2068656164657253, + 0x697a65203d20736d, 0x616c6c203f203220, 0x3a20353b0a202020, 0x2020202020202020, 0x2072657175697265, + 0x4279746573287669, 0x65772c206f666673, 0x65742c2068656164, 0x657253697a652c20, 0x2261727261792068, + 0x656164657222293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206c656e6774, 0x68203d20736d616c, + 0x6c203f2076696577, 0x2e67657455696e74, 0x38286f6666736574, 0x202b203129203a20, 0x766965772e676574, 0x55696e743332286f, 0x6666736574202b20, 0x312c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, - 0x2020202020202020, 0x2020202f2f204576, 0x65727920656c656d, 0x656e742074616b65, 0x73206174206c6561, - 0x7374206f6e652062, 0x7974653a20612063, 0x6f756e7420746865, 0x206d657373616765, 0x2063616e6e6f7420, - 0x686f6c6420697320, 0x7265667573656420, 0x6265666f72652061, 0x6e797468696e6720, 0x697320616c6c6f63, - 0x617465642e0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c206f6666, - 0x736574202b20352c, 0x20636f756e742c20, 0x226c69737420656c, 0x656d656e74732229, 0x3b0a202020202020, - 0x202020202020636f, 0x6e73742076616c75, 0x6573203d205b5d3b, 0x0a20202020202020, 0x20202020206c6574, - 0x20637572736f7220, 0x3d206f6666736574, 0x202b20353b0a2020, 0x2020202020202020, 0x20206c6574206c69, - 0x7374536861706520, 0x3d206e756c6c3b0a, 0x2020202020202020, 0x20202020666f7220, 0x286c657420696e64, - 0x6578203d20303b20, 0x696e646578203c20, 0x636f756e743b202b, 0x2b696e6465782920, 0x7b0a202020202020, - 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c20637572, 0x736f722c20312c20, - 0x226c69737420656c, 0x656d656e74207479, 0x706522293b0a2020, 0x2020202020202020, 0x2020202020206966, - 0x2028766965772e67, 0x657455696e743828, 0x637572736f722920, 0x3d3d3d2050617261, 0x6d547970652e6578, - 0x63657074696f6e29, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, - 0x7970654572726f72, 0x2822412057656246, 0x726f6e74206c6973, 0x7420656c656d656e, 0x742063616e6e6f74, - 0x20626520616e2065, 0x7863657074696f6e, 0x22293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, - 0x74207b76616c7565, 0x2c2062797465732c, 0x2073686170657d20, 0x3d20746869732e64, 0x65636f646556616c, - 0x756528766965772e, 0x67657455696e7438, 0x28637572736f7229, 0x2c20766965772c20, 0x637572736f72293b, - 0x0a20202020202020, 0x2020202020202020, 0x2072657175697265, 0x4c697374456c656d, 0x656e745368617065, - 0x287368617065293b, 0x0a20202020202020, 0x2020202020202020, 0x20696620286c6973, 0x745368617065203d, - 0x3d3d206e756c6c29, 0x0a20202020202020, 0x2020202020202020, 0x20202020206c6973, 0x745368617065203d, - 0x2073686170653b0a, 0x2020202020202020, 0x2020202020202020, 0x656c736520696620, 0x2873686170652021, - 0x3d3d206c69737453, 0x68617065290a2020, 0x2020202020202020, 0x2020202020202020, 0x20207468726f7720, - 0x6e65772054797065, 0x4572726f72282257, 0x656246726f6e7420, 0x6c69737420656c65, 0x6d656e7473206172, - 0x65206e6f74206f66, 0x206f6e6520747970, 0x6522293b0a202020, 0x2020202020202020, 0x202020202076616c, - 0x7565732e70757368, 0x2876616c7565293b, 0x0a20202020202020, 0x2020202020202020, 0x20637572736f7220, - 0x2b3d206279746573, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x2020202072657475, - 0x726e207b76616c75, 0x653a2076616c7565, 0x732c206279746573, 0x3a20637572736f72, 0x202d206f66667365, - 0x742c207368617065, 0x3a20224c227d3b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020202f2f2f2052, - 0x65736f6c76657320, 0x74686520656c656d, 0x656e742073706563, 0x20616e64206c656e, 0x6774682070726566, - 0x697820666f722061, 0x2074797065642061, 0x727261792c207768, 0x6f73652068656164, 0x6572206973203220, - 0x627974657320696e, 0x207468650a202020, 0x20202020202f2f2f, 0x20636f6d70616374, 0x20736d616c6c4172, - 0x726179553820666f, 0x726d20616e642035, 0x206279746573206f, 0x7468657277697365, 0x2e0a202020202020, - 0x2020726561645479, 0x7065644172726179, 0x4865616465722874, 0x7970652c20766965, 0x772c206f66667365, - 0x7429207b0a202020, 0x2020202020202020, 0x20636f6e73742073, 0x6d616c6c203d2074, 0x797065203d3d3d20, - 0x506172616d547970, 0x652e736d616c6c41, 0x7272617955383b0a, 0x2020202020202020, 0x20202020636f6e73, - 0x742073706563203d, 0x20736d616c6c203f, 0x207b2e2e2e617272, 0x6179436f6465732e, 0x6765742850617261, - 0x6d547970652e6172, 0x7261795538292c20, 0x636f6e7374727563, 0x746f723a2055696e, 0x743841727261797d, - 0x203a206172726179, 0x436f6465732e6765, 0x742874797065293b, 0x0a20202020202020, 0x2020202020696620, - 0x282173706563290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, - 0x726f722860556e73, 0x7570706f72746564, 0x2074797065642061, 0x7272617920636f64, 0x6520247b74797065, - 0x7d60293b0a202020, 0x2020202020202020, 0x20636f6e73742068, 0x656164657253697a, 0x65203d20736d616c, - 0x6c203f2032203a20, 0x353b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, - 0x2c206f6666736574, 0x2c20686561646572, 0x53697a652c202261, 0x7272617920686561, 0x64657222293b0a20, - 0x2020202020202020, 0x202020636f6e7374, 0x206c656e67746820, 0x3d20736d616c6c20, 0x3f20766965772e67, - 0x657455696e743828, 0x6f6666736574202b, 0x203129203a207669, 0x65772e6765745569, 0x6e743332286f6666, - 0x736574202b20312c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, - 0x2072657475726e20, 0x7b737065632c2068, 0x656164657253697a, 0x652c206c656e6774, 0x687d3b0a20202020, - 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465547970, 0x6564417272617928, 0x747970652c207669, - 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x7b737065632c2068, - 0x656164657253697a, 0x652c206c656e6774, 0x687d203d20746869, 0x732e726561645479, 0x7065644172726179, - 0x4865616465722874, 0x7970652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, - 0x636f6e7374206279, 0x74654c656e677468, 0x203d206c656e6774, 0x68202a2073706563, 0x2e62797465733b0a, - 0x2020202020202020, 0x2020202069662028, 0x214e756d6265722e, 0x697353616665496e, 0x7465676572286279, - 0x74654c656e677468, 0x29290a2020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e65772052616e, - 0x67654572726f7228, 0x2254797065642061, 0x72726179206c656e, 0x6774682069732074, 0x6f6f206c61726765, - 0x22293b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, 0x772c206f66667365, - 0x74202b2068656164, 0x657253697a652c20, 0x627974654c656e67, 0x74682c2022617272, 0x6179207061796c6f, - 0x616422293b0a0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20726573756c7420, 0x3d206e6577207370, - 0x65632e636f6e7374, 0x727563746f72286c, 0x656e677468293b0a, 0x2020202020202020, 0x20202020636f6e73, - 0x74207061796c6f61, 0x64203d206f666673, 0x6574202b20686561, 0x64657253697a653b, 0x0a20202020202020, - 0x2020202020666f72, 0x20286c657420696e, 0x646578203d20303b, 0x20696e646578203c, 0x206c656e6774683b, - 0x202b2b696e646578, 0x290a202020202020, 0x2020202020202020, 0x2020726573756c74, 0x5b696e6465785d20, - 0x3d20766965775b73, 0x7065632e67657474, 0x65725d287061796c, 0x6f6164202b20696e, 0x646578202a207370, - 0x65632e6279746573, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, - 0x202072657475726e, 0x207b76616c75653a, 0x20726573756c742c, 0x2062797465733a20, 0x6865616465725369, - 0x7a65202b20627974, 0x654c656e6774687d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x20202020202f2f2f, - 0x204d61726b732060, 0x6974656d73602074, 0x6f2062652073656e, 0x742061732061206c, 0x6973743a20616e79, - 0x206e756d62657220, 0x6f6620656c656d65, 0x6e7473206f66206f, 0x6e6520747970652c, 0x2065616368206120, - 0x737472696e672c20, 0x6120747970656420, 0x6172726179206f72, 0x2061207475706c65, 0x2c2077686963680a, - 0x2020202020202020, 0x2f2f2f20432b2b20, 0x7265636569766573, 0x2061732061207374, 0x643a3a766563746f, - 0x722e204e756d6265, 0x727320676f206173, 0x2061207479706564, 0x2061727261792028, 0x61206c697374206f, - 0x66206e756d626572, 0x73206f7220626f6f, 0x6c65616e73206973, 0x2072656675736564, 0x292e204120706c61, - 0x696e0a2020202020, 0x2020202f2f2f2061, 0x7272617920697320, 0x61207475706c6520, 0x6f66206174206d6f, - 0x7374203235352065, 0x6c656d656e747320, 0x6f6620616e792074, 0x797065732e0a2020, 0x2020202020206c69, - 0x7374286974656d73, 0x29207b0a20202020, 0x2020202020202020, 0x72657475726e206e, 0x6577205765624672, - 0x6f6e744c69737428, 0x6974656d73293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206370704675, - 0x6e6374696f6e286e, 0x616d6529207b0a20, 0x2020202020202020, 0x2020207265747572, 0x6e20282e2e2e6172, - 0x677329203d3e2074, 0x6869732e63616c6c, 0x43707046756e6374, 0x696f6e286e616d65, 0x2c2061726773293b, - 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202063616c6c, 0x43707046756e6374, 0x696f6e286e616d65, - 0x2c20617267732920, 0x7b0a202020202020, 0x2020202020207265, 0x7475726e206e6577, 0x2050726f6d697365, - 0x28287265736f6c76, 0x652c2072656a6563, 0x7429203d3e207b0a, 0x2020202020202020, 0x2020202020202020, - 0x6c65742063616c6c, 0x4964203d20303b0a, 0x2020202020202020, 0x2020202020202020, 0x747279207b0a2020, - 0x2020202020202020, 0x2020202020202020, 0x2020696620287468, 0x69732e7374617465, 0x20213d3d20226c69, - 0x6e6b656422290a20, 0x2020202020202020, 0x2020202020202020, 0x2020202020202074, 0x68726f7720627269, - 0x6467654572726f72, 0x2842726964676543, 0x6f64652e64697363, 0x6f6e6e6563746564, 0x2c20225765624672, - 0x6f6e742062726964, 0x6765206973206e6f, 0x7420636f6e6e6563, 0x74656422293b0a20, 0x2020202020202020, - 0x2020202020202020, 0x202020636f6e7374, 0x2076616c75657320, 0x3d205b6e616d652c, 0x202e2e2e61726773, - 0x5d3b0a2020202020, 0x2020202020202020, 0x2020202020202069, 0x66202876616c7565, 0x732e6c656e677468, - 0x203e20323535290a, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, - 0x772052616e676545, 0x72726f7228224120, 0x66756e6374696f6e, 0x2063616c6c206361, 0x6e6e6f7420636f6e, - 0x7461696e206d6f72, 0x65207468616e2032, 0x353520746f702d6c, 0x6576656c2076616c, 0x75657322293b0a20, - 0x2020202020202020, 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, 0x53697a65203d2076, - 0x616c7565732e7265, 0x6475636528287369, 0x7a652c2076616c75, 0x6529203d3e207369, 0x7a65202b20746869, - 0x732e706172616d65, 0x74657253697a6528, 0x76616c7565292c20, 0x30293b0a20202020, 0x2020202020202020, - 0x2020202020202020, 0x746869732e636865, 0x636b4d6573736167, 0x6553697a65287061, 0x796c6f616453697a, - 0x65293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206275, 0x66666572203d206e, - 0x6577204172726179, 0x4275666665722838, 0x202b207061796c6f, 0x616453697a65293b, 0x0a20202020202020, - 0x2020202020202020, 0x2020202020636f6e, 0x7374207669657720, 0x3d206e6577204461, 0x7461566965772862, - 0x7566666572293b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202063616c6c, 0x4964203d20746869, - 0x732e616c6c6f6361, 0x746543616c6c4964, 0x28293b0a20202020, 0x2020202020202020, 0x2020202020202020, - 0x766965772e736574, 0x55696e743828302c, 0x20436f6d6d616e64, 0x2e63616c6c46756e, 0x6374696f6e293b0a, - 0x2020202020202020, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x3828312c2076616c, - 0x7565732e6c656e67, 0x7468293b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20766965772e7365, - 0x7455696e74313628, 0x322c2063616c6c49, 0x642c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, - 0x2020202020202020, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7433, 0x3228342c20706179, - 0x6c6f616453697a65, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, - 0x2020202020202020, 0x20206c6574206375, 0x72736f72203d2038, 0x3b0a202020202020, 0x2020202020202020, - 0x202020202020666f, 0x722028636f6e7374, 0x2076616c7565206f, 0x662076616c756573, 0x290a202020202020, - 0x2020202020202020, 0x2020202020202020, 0x2020637572736f72, 0x202b3d2074686973, 0x2e656e636f646550, - 0x6172616d65746572, 0x2876616c75652c20, 0x766965772c206375, 0x72736f72293b0a20, 0x2020202020202020, - 0x2020202020202020, 0x202020746869732e, 0x70656e64696e6743, 0x616c6c732e736574, 0x2863616c6c49642c, - 0x207b7265736f6c76, 0x652c2072656a6563, 0x747d293b0a202020, 0x2020202020202020, 0x2020202020202020, - 0x20746869732e736f, 0x636b65742e73656e, 0x6428627566666572, 0x293b0a2020202020, 0x2020202020202020, - 0x2020207d20636174, 0x636820286572726f, 0x7229207b0a202020, 0x2020202020202020, 0x2020202020202020, - 0x206966202863616c, 0x6c496420213d3d20, 0x30290a2020202020, 0x2020202020202020, 0x2020202020202020, - 0x202020746869732e, 0x70656e64696e6743, 0x616c6c732e64656c, 0x6574652863616c6c, 0x4964293b0a202020, - 0x2020202020202020, 0x2020202020202020, 0x2072656a65637428, 0x6572726f72293b0a, 0x2020202020202020, - 0x2020202020202020, 0x7d0a202020202020, 0x2020202020207d29, 0x3b0a202020202020, 0x20207d0a0a202020, - 0x20202020202f2f2f, 0x2052656675736573, 0x2061206d65737361, 0x6765207468652043, 0x2b2b207369646520, - 0x776f756c6420636c, 0x6f73652074686520, 0x636f6e6e65637469, 0x6f6e20666f723a20, 0x74686520382d6279, - 0x7465206865616465, 0x7220616e64207468, 0x65207061796c6f61, 0x6420746f67657468, 0x65722e0a20202020, - 0x2020202063686563, 0x6b4d657373616765, 0x53697a6528706179, 0x6c6f616453697a65, 0x29207b0a20202020, - 0x2020202020202020, 0x6966202838202b20, 0x7061796c6f616453, 0x697a65203e207468, 0x69732e6d61784d65, - 0x7373616765427974, 0x6573290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205261, - 0x6e67654572726f72, 0x286057656246726f, 0x6e74206d65737361, 0x6765206f6620247b, 0x38202b207061796c, - 0x6f616453697a657d, 0x2062797465732065, 0x7863656564732074, 0x6865206d6178696d, 0x756d206f6620247b, - 0x746869732e6d6178, 0x4d65737361676542, 0x797465737d206279, 0x74657360293b0a20, 0x202020202020207d, - 0x0a0a202020202020, 0x2020616c6c6f6361, 0x746543616c6c4964, 0x2829207b0a202020, 0x2020202020202020, - 0x20666f7220286c65, 0x7420617474656d70, 0x7473203d20303b20, 0x617474656d707473, 0x203c203078666666, - 0x663b202b2b617474, 0x656d70747329207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742063, - 0x616e646964617465, 0x203d20746869732e, 0x6e65787443616c6c, 0x49643b0a20202020, 0x2020202020202020, - 0x2020202074686973, 0x2e6e65787443616c, 0x6c4964203d207468, 0x69732e6e65787443, 0x616c6c4964203d3d, - 0x3d20307866666666, 0x203f2031203a2074, 0x6869732e6e657874, 0x43616c6c4964202b, 0x20313b0a20202020, - 0x2020202020202020, 0x2020202069662028, 0x21746869732e7065, 0x6e64696e6743616c, 0x6c732e6861732863, - 0x616e646964617465, 0x29290a2020202020, 0x2020202020202020, 0x2020202020202072, 0x657475726e206361, - 0x6e6469646174653b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020207468726f77, - 0x206e657720457272, 0x6f722822546f6f20, 0x6d616e79206f7574, 0x7374616e64696e67, 0x2057656246726f6e, - 0x742063616c6c7322, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020207365, 0x6e6446756e637469, - 0x6f6e52657475726e, 0x2863616c6c49642c, 0x2076616c75652920, 0x7b0a202020202020, 0x202020202020636f, - 0x6e73742076616c75, 0x6573203d2076616c, 0x7565203d3d3d2075, 0x6e646566696e6564, 0x203f205b5d203a20, - 0x5b76616c75655d3b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374207061796c6f, 0x616453697a65203d, - 0x2076616c7565732e, 0x7265647563652828, 0x73697a652c206974, 0x656d29203d3e2073, 0x697a65202b207468, - 0x69732e706172616d, 0x6574657253697a65, 0x286974656d292c20, 0x30293b0a20202020, 0x2020202020202020, - 0x746869732e636865, 0x636b4d6573736167, 0x6553697a65287061, 0x796c6f616453697a, 0x65293b0a20202020, - 0x2020202020202020, 0x636f6e7374206275, 0x66666572203d206e, 0x6577204172726179, 0x4275666665722838, - 0x202b207061796c6f, 0x616453697a65293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374207669657720, - 0x3d206e6577204461, 0x7461566965772862, 0x7566666572293b0a, 0x2020202020202020, 0x2020202076696577, - 0x2e73657455696e74, 0x3828302c20436f6d, 0x6d616e642e66756e, 0x6374696f6e526574, 0x75726e293b0a2020, - 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x312c2076616c7565, 0x732e6c656e677468, - 0x293b0a2020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e74313628322c, 0x2063616c6c49642c, - 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x20766965772e7365, - 0x7455696e74333228, 0x342c207061796c6f, 0x616453697a652c20, 0x746869732e6c6974, 0x746c65456e646961, - 0x6e293b0a20202020, 0x2020202020202020, 0x6c65742063757273, 0x6f72203d20383b0a, 0x2020202020202020, - 0x20202020666f7220, 0x28636f6e73742069, 0x74656d206f662076, 0x616c756573290a20, 0x2020202020202020, - 0x2020202020202063, 0x7572736f72202b3d, 0x20746869732e656e, 0x636f646550617261, 0x6d65746572286974, - 0x656d2c2076696577, 0x2c20637572736f72, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, - 0x65742e73656e6428, 0x627566666572293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x202020202f2f2f20, - 0x52656a6563747320, 0x74686520432b2b20, 0x63616c6c20606361, 0x6c6c496460207769, 0x746820746865206d, - 0x6573736167652061, 0x6e64207468652063, 0x6f6465206f662060, 0x6572726f72602028, 0x7468652067656e65, - 0x72696320636f6465, 0x207768656e206974, 0x20686173206e6f6e, 0x65206f7220612072, 0x6573657276656420, - 0x6f6e65292e0a2020, 0x2020202020207365, 0x6e6446756e637469, 0x6f6e4572726f7228, 0x63616c6c49642c20, - 0x6572726f7229207b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206d65737361, 0x6765203d20657863, - 0x657074696f6e5465, 0x7874286572726f72, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420636f64, - 0x65203d206e657720, 0x54657874456e636f, 0x64657228292e656e, 0x636f646528657863, 0x657074696f6e436f, - 0x6465286572726f72, 0x29293b0a20202020, 0x2020202020202020, 0x636f6e7374207768, 0x6f6c65203d206e65, - 0x772054657874456e, 0x636f64657228292e, 0x656e636f6465286d, 0x657373616765293b, 0x0a20202020202020, - 0x20202020202f2f20, 0x41206d6573736167, 0x65206c6f6e676572, 0x207468616e207468, 0x652031362d626974, - 0x206c656e6774682c, 0x206f72207468616e, 0x2077686174207468, 0x65206d6178696d75, 0x6d206d6573736167, - 0x652073697a65206c, 0x6561766573206166, 0x7465722074686520, 0x382d627974652068, 0x65616465722c2074, - 0x68650a2020202020, 0x202020202020202f, 0x2f20636f64652061, 0x6e64207468652074, 0x776f2073697a6573, - 0x2c20697320637574, 0x206265666f726520, 0x7468652066697273, 0x74205554462d3820, 0x6368617261637465, - 0x7220746861742077, 0x6f756c64206e6f74, 0x206669742077686f, 0x6c652e0a20202020, 0x2020202020202020, - 0x636f6e737420726f, 0x6f6d203d204d6174, 0x682e6d617828302c, 0x20746869732e6d61, 0x784d657373616765, - 0x4279746573202d20, 0x3132202d20636f64, 0x652e6c656e677468, 0x293b0a2020202020, 0x202020202020206c, - 0x657420637574203d, 0x204d6174682e6d69, 0x6e2877686f6c652e, 0x6c656e6774682c20, 0x36353533352c2072, - 0x6f6f6d293b0a2020, 0x2020202020202020, 0x20207768696c6520, 0x28637574203e2030, 0x2026262063757420, - 0x3c2077686f6c652e, 0x6c656e6774682026, 0x26202877686f6c65, 0x5b6375745d202620, 0x3078633029203d3d, - 0x3d2030783830290a, 0x2020202020202020, 0x2020202020202020, 0x2d2d6375743b0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x206279746573203d, 0x2077686f6c652e73, 0x7562617272617928, 0x302c20637574293b, - 0x0a20202020202020, 0x2020202020636f6e, 0x7374206275666665, 0x72203d206e657720, 0x4172726179427566, - 0x666572283132202b, 0x20636f64652e6c65, 0x6e677468202b2062, 0x797465732e6c656e, 0x677468293b0a2020, - 0x2020202020202020, 0x2020636f6e737420, 0x76696577203d206e, 0x6577204461746156, 0x6965772862756666, - 0x6572293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382830, 0x2c20436f6d6d616e, - 0x642e66756e637469, 0x6f6e52657475726e, 0x293b0a2020202020, 0x2020202020202076, 0x6965772e73657455, - 0x696e743828312c20, 0x31293b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7431362832, - 0x2c2063616c6c4964, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, - 0x2020766965772e73, 0x657455696e743332, 0x28342c2034202b20, 0x636f64652e6c656e, 0x677468202b206279, - 0x7465732e6c656e67, 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, - 0x2020202076696577, 0x2e73657455696e74, 0x3828382c20506172, 0x616d547970652e65, 0x7863657074696f6e, - 0x293b0a2020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e743828392c20, 0x636f64652e6c656e, - 0x677468293b0a2020, 0x2020202020202020, 0x20206e6577205569, 0x6e74384172726179, 0x286275666665722c, - 0x203130292e736574, 0x28636f6465293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, - 0x3136283130202b20, 0x636f64652e6c656e, 0x6774682c20627974, 0x65732e6c656e6774, 0x682c20746869732e, - 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x2020206e65772055, 0x696e743841727261, - 0x7928627566666572, 0x2c203132202b2063, 0x6f64652e6c656e67, 0x7468292e73657428, 0x6279746573293b0a, - 0x2020202020202020, 0x2020202074686973, 0x2e736f636b65742e, 0x73656e6428627566, 0x666572293b0a2020, - 0x2020202020207d0a, 0x0a20202020202020, 0x20706172616d6574, 0x657253697a652876, 0x616c756529207b0a, - 0x2020202020202020, 0x2020202073776974, 0x6368202874797065, 0x6f662076616c7565, 0x29207b0a20202020, - 0x2020202020202020, 0x636173652022626f, 0x6f6c65616e223a0a, 0x2020202020202020, 0x2020202020202020, - 0x72657475726e2031, 0x3b0a202020202020, 0x2020202020206361, 0x736520226e756d62, 0x6572223a0a202020, - 0x2020202020202020, 0x2020202020726574, 0x75726e20393b0a20, 0x2020202020202020, 0x2020206361736520, - 0x22737472696e6722, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e7374, - 0x72696e6750617261, 0x6d6574657253697a, 0x652876616c756529, 0x3b0a202020202020, 0x2020202020206361, - 0x736520226f626a65, 0x6374223a0a202020, 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, - 0x2e6f626a65637450, 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, 0x2020202020202020, - 0x207d0a2020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, - 0x70706f7274656420, 0x57656246726f6e74, 0x20706172616d6574, 0x6572207479706520, 0x27247b747970656f, - 0x662076616c75657d, 0x2760293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f2054686520, - 0x656e636f64656420, 0x73697a65206f6620, 0x6120737472696e67, 0x3a20697473206865, 0x6164657220616e64, - 0x2069747320555446, 0x2d38206279746573, 0x2e0a202020202020, 0x2020737472696e67, 0x506172616d657465, - 0x7253697a65287661, 0x6c756529207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206c656e67746820, - 0x3d206e6577205465, 0x7874456e636f6465, 0x7228292e656e636f, 0x64652876616c7565, 0x292e6c656e677468, - 0x3b0a202020202020, 0x2020202020207265, 0x7475726e20737472, 0x696e674865616465, 0x7253697a65286c65, - 0x6e67746829202b20, 0x6c656e6774683b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020202f2f2f2054, - 0x686520656e636f64, 0x65642073697a6520, 0x6f662061206c6973, 0x742c207475706c65, 0x206f722074797065, - 0x642061727261792e, 0x0a20202020202020, 0x206f626a65637450, 0x6172616d65746572, 0x53697a652876616c, - 0x756529207b0a2020, 0x2020202020202020, 0x2020696620287661, 0x6c756520696e7374, 0x616e63656f662057, - 0x656246726f6e744c, 0x697374290a202020, 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, - 0x2e6c697374506172, 0x616d657465725369, 0x7a652876616c7565, 0x293b0a2020202020, 0x2020202020202069, - 0x6620284172726179, 0x2e69734172726179, 0x2876616c75652929, 0x0a20202020202020, 0x2020202020202020, - 0x2072657475726e20, 0x746869732e747570, 0x6c65506172616d65, 0x74657253697a6528, 0x76616c7565293b0a, - 0x2020202020202020, 0x2020202069662028, 0x6973547970656441, 0x727261792876616c, 0x756529290a202020, - 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, 0x2e74797065644172, 0x726179506172616d, - 0x6574657253697a65, 0x2876616c7565293b, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772054, - 0x7970654572726f72, 0x2860556e73757070, 0x6f72746564205765, 0x6246726f6e742070, 0x6172616d65746572, - 0x2074797065202724, 0x7b747970656f6620, 0x76616c75657d2760, 0x293b0a2020202020, 0x2020207d0a0a2020, - 0x2020202020202f2f, 0x2f20546865207368, 0x6170652c20617320, 0x746865206465636f, 0x64657220636f6d70, - 0x757465732069742c, 0x206f662061207661, 0x6c75652061626f75, 0x7420746f20626520, 0x656e636f64656420, - 0x61732061206c6973, 0x7420656c656d656e, 0x742e0a2020202020, 0x20202076616c7565, 0x5368617065287661, - 0x6c756529207b0a20, 0x2020202020202020, 0x2020207377697463, 0x682028747970656f, 0x662076616c756529, - 0x207b0a2020202020, 0x2020202020202063, 0x6173652022626f6f, 0x6c65616e223a0a20, 0x2020202020202020, - 0x2020202020202072, 0x657475726e202262, 0x223b0a2020202020, 0x2020202020202063, 0x61736520226e756d, - 0x626572223a0a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e20226e22, 0x3b0a202020202020, - 0x2020202020206361, 0x7365202273747269, 0x6e67223a0a202020, 0x2020202020202020, 0x2020202020726574, - 0x75726e202273223b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020206966202876, - 0x616c756520696e73, 0x74616e63656f6620, 0x57656246726f6e74, 0x4c697374290a2020, 0x2020202020202020, - 0x2020202020207265, 0x7475726e20224c22, 0x3b0a202020202020, 0x2020202020206966, 0x202841727261792e, - 0x6973417272617928, 0x76616c756529290a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2060, - 0x28247b76616c7565, 0x2e6d617028656c65, 0x6d656e74203d3e20, 0x746869732e76616c, 0x7565536861706528, - 0x656c656d656e7429, 0x292e6a6f696e2822, 0x2c22297d29603b0a, 0x2020202020202020, 0x2020202069662028, - 0x6973547970656441, 0x727261792876616c, 0x7565292026262061, 0x7272617954797065, 0x732e686173287661, - 0x6c75652e636f6e73, 0x74727563746f7229, 0x290a202020202020, 0x2020202020202020, 0x202072657475726e, - 0x206061247b617272, 0x617954797065732e, 0x6765742876616c75, 0x652e636f6e737472, 0x7563746f72292e63, - 0x6f64657d603b0a20, 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, 0x654572726f722860, - 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420706172, 0x616d657465722074, 0x7970652027247b74, - 0x7970656f66207661, 0x6c75657d2760293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x202020202f2f2f20, - 0x54686520656e636f, 0x6465642073697a65, 0x206f662061206c69, 0x73742c2061667465, 0x7220636865636b69, - 0x6e67207468617420, 0x69747320656c656d, 0x656e747320686176, 0x65206f6e65207368, 0x61706520616e6420, - 0x686f6c64206e6f20, 0x6c6973742e0a2020, 0x2020202020206c69, 0x7374506172616d65, 0x74657253697a6528, - 0x6c69737429207b0a, 0x2020202020202020, 0x2020202069662028, 0x6c6973742e697465, 0x6d732e6c656e6774, - 0x68203e2030786666, 0x666666666666290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, - 0x772052616e676545, 0x72726f7228225765, 0x6246726f6e74206c, 0x697374732063616e, 0x6e6f742065786365, - 0x6564203432393439, 0x363732393520656c, 0x656d656e74732229, 0x3b0a202020202020, 0x2020202020206c65, - 0x7420736861706520, 0x3d206e756c6c3b0a, 0x2020202020202020, 0x20202020666f7220, 0x28636f6e73742069, - 0x74656d206f66206c, 0x6973742e6974656d, 0x7329207b0a202020, 0x2020202020202020, 0x2020202020636f6e, - 0x7374206974656d53, 0x68617065203d2074, 0x6869732e76616c75, 0x6553686170652869, 0x74656d293b0a2020, - 0x2020202020202020, 0x2020202020207265, 0x71756972654c6973, 0x74456c656d656e74, 0x5368617065286974, - 0x656d536861706529, 0x3b0a202020202020, 0x2020202020202020, 0x2020696620286974, 0x656d536861706520, - 0x3d3d3d20226e2220, 0x7c7c206974656d53, 0x68617065203d3d3d, 0x20226222290a2020, 0x2020202020202020, - 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, 0x4572726f72282241, 0x2057656246726f6e, - 0x74206c6973742068, 0x6f6c647320737472, 0x696e67732c207479, 0x7065642061727261, 0x7973206f72207475, - 0x706c65733a207365, 0x6e64206e756d6265, 0x7273206173206120, 0x7479706564206172, 0x72617922293b0a20, - 0x2020202020202020, 0x2020202020202069, 0x6620287368617065, 0x203d3d3d206e756c, 0x6c290a2020202020, - 0x2020202020202020, 0x2020202020202073, 0x68617065203d2069, 0x74656d5368617065, 0x3b0a202020202020, - 0x2020202020202020, 0x2020656c73652069, 0x6620286974656d53, 0x6861706520213d3d, 0x207368617065290a, - 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, - 0x2257656246726f6e, 0x74206c6973742065, 0x6c656d656e747320, 0x617265206e6f7420, 0x6f66206f6e652074, - 0x79706522293b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2072657475726e20, - 0x35202b206c697374, 0x2e6974656d732e72, 0x6564756365282873, 0x697a652c20697465, 0x6d29203d3e207369, - 0x7a65202b20746869, 0x732e706172616d65, 0x74657253697a6528, 0x6974656d292c2030, 0x293b0a2020202020, - 0x2020207d0a0a2020, 0x2020202020207475, 0x706c65506172616d, 0x6574657253697a65, 0x2876616c75652920, - 0x7b0a202020202020, 0x2020202020206966, 0x202876616c75652e, 0x6c656e677468203e, 0x20323535290a2020, - 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f72282257656246, - 0x726f6e7420747570, 0x6c65732063616e6e, 0x6f74206578636565, 0x642032353520656c, 0x656d656e74732229, - 0x3b0a202020202020, 0x2020202020207265, 0x7475726e2032202b, 0x2076616c75652e72, 0x6564756365282873, - 0x697a652c20656c65, 0x6d656e7429203d3e, 0x2073697a65202b20, 0x746869732e706172, 0x616d657465725369, - 0x7a6528656c656d65, 0x6e74292c2030293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202074797065, - 0x6441727261795061, 0x72616d6574657253, 0x697a652876616c75, 0x6529207b0a202020, 0x2020202020202020, - 0x2069662028216172, 0x7261795479706573, 0x2e6861732876616c, 0x75652e636f6e7374, 0x727563746f722929, - 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, - 0x737570706f727465, 0x6420747970656420, 0x617272617920247b, 0x76616c75652e636f, 0x6e7374727563746f, - 0x722e6e616d657d60, 0x293b0a2020202020, 0x2020202020202069, 0x66202876616c7565, 0x2e6c656e67746820, - 0x3e20307866666666, 0x66666666290a2020, 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, - 0x52616e6765457272, 0x6f72282254797065, 0x6420617272617973, 0x2063616e6e6f7420, 0x6578636565642034, - 0x3239343936373239, 0x3520656c656d656e, 0x747322293b0a2020, 0x2020202020202020, 0x202072657475726e, - 0x2074797065644172, 0x7261794865616465, 0x7253697a65287661, 0x6c756529202b2076, 0x616c75652e627974, - 0x654c656e6774683b, 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020656e636f, 0x6465506172616d65, - 0x7465722876616c75, 0x652c20766965772c, 0x206f666673657429, 0x207b0a2020202020, 0x2020202020202073, - 0x7769746368202874, 0x7970656f66207661, 0x6c756529207b0a20, 0x2020202020202020, 0x2020206361736520, - 0x22626f6f6c65616e, 0x223a0a2020202020, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, - 0x286f66667365742c, 0x2076616c7565203f, 0x20506172616d5479, 0x70652e626f6f6c65, 0x616e54727565203a, - 0x20506172616d5479, 0x70652e626f6f6c65, 0x616e46616c736529, 0x3b0a202020202020, 0x2020202020202020, - 0x202072657475726e, 0x20313b0a20202020, 0x2020202020202020, 0x6361736520226e75, 0x6d626572223a0a20, - 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e7438286f6666, 0x7365742c20506172, - 0x616d547970652e6e, 0x756d626572293b0a, 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, - 0x466c6f6174363428, 0x6f6666736574202b, 0x20312c2076616c75, 0x652c20746869732e, 0x6c6974746c65456e, - 0x6469616e293b0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e20393b, 0x0a20202020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e207b737065632c, 0x2068656164657253, 0x697a652c206c656e, + 0x6774687d3b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x206465636f646554, 0x7970656441727261, + 0x7928747970652c20, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, 0x20202020636f6e73, + 0x74207b737065632c, 0x2068656164657253, 0x697a652c206c656e, 0x6774687d203d2074, 0x6869732e72656164, + 0x5479706564417272, 0x6179486561646572, 0x28747970652c2076, 0x6965772c206f6666, 0x736574293b0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x627974654c656e67, 0x7468203d206c656e, 0x677468202a207370, + 0x65632e6279746573, 0x3b0a202020202020, 0x2020202020206966, 0x2028214e756d6265, 0x722e697353616665, + 0x496e746567657228, 0x627974654c656e67, 0x746829290a202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772052, 0x616e67654572726f, 0x7228225479706564, 0x206172726179206c, 0x656e677468206973, + 0x20746f6f206c6172, 0x676522293b0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, + 0x6965772c206f6666, 0x736574202b206865, 0x6164657253697a65, 0x2c20627974654c65, 0x6e6774682c202261, + 0x7272617920706179, 0x6c6f616422293b0a, 0x0a20202020202020, 0x2020202020636f6e, 0x737420726573756c, + 0x74203d206e657720, 0x737065632e636f6e, 0x7374727563746f72, 0x286c656e67746829, 0x3b0a202020202020, + 0x202020202020636f, 0x6e7374207061796c, 0x6f6164203d206f66, 0x66736574202b2068, 0x656164657253697a, + 0x653b0a2020202020, 0x2020202020202066, 0x6f7220286c657420, 0x696e646578203d20, 0x303b20696e646578, + 0x203c206c656e6774, 0x683b202b2b696e64, 0x6578290a20202020, 0x2020202020202020, 0x2020202072657375, + 0x6c745b696e646578, 0x5d203d2076696577, 0x5b737065632e6765, 0x747465725d287061, 0x796c6f6164202b20, + 0x696e646578202a20, 0x737065632e627974, 0x65732c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, + 0x2020202020202020, 0x2020202072657475, 0x726e207b76616c75, 0x653a20726573756c, 0x742c206279746573, + 0x3a20686561646572, 0x53697a65202b2062, 0x7974654c656e6774, 0x687d3b0a20202020, 0x202020207d0a0a20, + 0x202020202020202f, 0x2f2f204d61726b73, 0x20606974656d7360, 0x20746f2062652073, 0x656e742061732061, + 0x206c6973743a2061, 0x6e79206e756d6265, 0x72206f6620656c65, 0x6d656e7473206f66, 0x206f6e6520747970, + 0x652c206561636820, 0x6120737472696e67, 0x2c20612074797065, 0x6420617272617920, 0x6f72206120747570, + 0x6c652c2077686963, 0x680a202020202020, 0x20202f2f2f20432b, 0x2b20726563656976, 0x6573206173206120, + 0x7374643a3a766563, 0x746f722e204e756d, 0x6265727320676f20, 0x6173206120747970, 0x6564206172726179, + 0x202861206c697374, 0x206f66206e756d62, 0x657273206f722062, 0x6f6f6c65616e7320, 0x6973207265667573, + 0x6564292e20412070, 0x6c61696e0a202020, 0x20202020202f2f2f, 0x2061727261792069, 0x732061207475706c, + 0x65206f6620617420, 0x6d6f737420323535, 0x20656c656d656e74, 0x73206f6620616e79, 0x2074797065732e0a, + 0x2020202020202020, 0x6c69737428697465, 0x6d7329207b0a2020, 0x2020202020202020, 0x202072657475726e, + 0x206e657720576562, 0x46726f6e744c6973, 0x74286974656d7329, 0x3b0a202020202020, 0x20207d0a0a202020, + 0x2020202020637070, 0x46756e6374696f6e, 0x286e616d6529207b, 0x0a20202020202020, 0x2020202020726574, + 0x75726e20282e2e2e, 0x6172677329203d3e, 0x20746869732e6361, 0x6c6c43707046756e, 0x6374696f6e286e61, + 0x6d652c2061726773, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206361, 0x6c6c43707046756e, + 0x6374696f6e286e61, 0x6d652c2061726773, 0x29207b0a20202020, 0x2020202020202020, 0x72657475726e206e, + 0x65772050726f6d69, 0x736528287265736f, 0x6c76652c2072656a, 0x65637429203d3e20, 0x7b0a202020202020, + 0x2020202020202020, 0x20206c6574206361, 0x6c6c4964203d2030, 0x3b0a202020202020, 0x2020202020202020, + 0x2020747279207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, 0x746869732e737461, + 0x746520213d3d2022, 0x6c696e6b65642229, 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, + 0x207468726f772062, 0x7269646765457272, 0x6f72284272696467, 0x65436f64652e6469, 0x73636f6e6e656374, + 0x65642c2022576562, 0x46726f6e74206272, 0x6964676520697320, 0x6e6f7420636f6e6e, 0x656374656422293b, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x73742076616c7565, 0x73203d205b6e616d, + 0x652c202e2e2e6172, 0x67735d3b0a202020, 0x2020202020202020, 0x2020202020202020, 0x206966202876616c, + 0x7565732e6c656e67, 0x7468203e20323535, 0x290a202020202020, 0x2020202020202020, 0x2020202020202020, + 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, 0x412066756e637469, 0x6f6e2063616c6c20, + 0x63616e6e6f742063, 0x6f6e7461696e206d, 0x6f7265207468616e, 0x2032353520746f70, 0x2d6c6576656c2076, + 0x616c75657322293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374207061796c6f, + 0x616453697a65203d, 0x2076616c7565732e, 0x7265647563652828, 0x73697a652c207661, 0x6c756529203d3e20, + 0x73697a65202b2074, 0x6869732e70617261, 0x6d6574657253697a, 0x652876616c756529, 0x2c2030293b0a2020, + 0x2020202020202020, 0x2020202020202020, 0x2020746869732e63, 0x6865636b4d657373, 0x61676553697a6528, + 0x7061796c6f616453, 0x697a65293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, + 0x627566666572203d, 0x206e657720417272, 0x6179427566666572, 0x2838202b20706179, 0x6c6f616453697a65, + 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420766965, 0x77203d206e657720, + 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020206361, + 0x6c6c4964203d2074, 0x6869732e616c6c6f, 0x6361746543616c6c, 0x496428293b0a2020, 0x2020202020202020, + 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x302c20436f6d6d61, 0x6e642e63616c6c46, + 0x756e6374696f6e29, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, + 0x6e743828312c2076, 0x616c7565732e6c65, 0x6e677468293b0a20, 0x2020202020202020, 0x2020202020202020, + 0x202020766965772e, 0x73657455696e7431, 0x3628322c2063616c, 0x6c49642c20746869, 0x732e6c6974746c65, + 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, + 0x74333228342c2070, 0x61796c6f61645369, 0x7a652c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, + 0x2020202020202020, 0x2020202020202020, 0x202020206c657420, 0x637572736f72203d, 0x20383b0a20202020, + 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, 0x73742076616c7565, 0x206f662076616c75, + 0x6573290a20202020, 0x2020202020202020, 0x2020202020202020, 0x2020202063757273, 0x6f72202b3d207468, + 0x69732e656e636f64, 0x65506172616d6574, 0x65722876616c7565, 0x2c20766965772c20, 0x637572736f72293b, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, 0x732e70656e64696e, 0x6743616c6c732e73, + 0x65742863616c6c49, 0x642c207b7265736f, 0x6c76652c2072656a, 0x6563747d293b0a20, 0x2020202020202020, + 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e73, 0x656e642862756666, 0x6572293b0a202020, + 0x2020202020202020, 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, 0x2020202020202020, + 0x2020202020202020, 0x2020206966202863, 0x616c6c496420213d, 0x3d2030290a202020, 0x2020202020202020, + 0x2020202020202020, 0x2020202020746869, 0x732e70656e64696e, 0x6743616c6c732e64, 0x656c657465286361, + 0x6c6c4964293b0a20, 0x2020202020202020, 0x2020202020202020, 0x20202072656a6563, 0x74286572726f7229, + 0x3b0a202020202020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x7d293b0a20202020, + 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f205265667573, 0x65732061206d6573, 0x7361676520746865, + 0x20432b2b20736964, 0x6520776f756c6420, 0x636c6f7365207468, 0x6520636f6e6e6563, 0x74696f6e20666f72, + 0x3a2074686520382d, 0x6279746520686561, 0x64657220616e6420, 0x746865207061796c, 0x6f616420746f6765, + 0x746865722e0a2020, 0x2020202020206368, 0x65636b4d65737361, 0x676553697a652870, 0x61796c6f61645369, + 0x7a6529207b0a2020, 0x2020202020202020, 0x2020696620283820, 0x2b207061796c6f61, 0x6453697a65203e20, + 0x746869732e6d6178, 0x4d65737361676542, 0x79746573290a2020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x52616e6765457272, 0x6f72286057656246, 0x726f6e74206d6573, 0x73616765206f6620, + 0x247b38202b207061, 0x796c6f616453697a, 0x657d206279746573, 0x2065786365656473, 0x20746865206d6178, + 0x696d756d206f6620, 0x247b746869732e6d, 0x61784d6573736167, 0x6542797465737d20, 0x627974657360293b, + 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020616c6c6f, 0x6361746543616c6c, 0x49642829207b0a20, + 0x2020202020202020, 0x202020666f722028, 0x6c65742061747465, 0x6d707473203d2030, 0x3b20617474656d70, + 0x7473203c20307866, 0x6666663b202b2b61, 0x7474656d70747329, 0x207b0a2020202020, 0x2020202020202020, + 0x202020636f6e7374, 0x2063616e64696461, 0x7465203d20746869, 0x732e6e6578744361, 0x6c6c49643b0a2020, + 0x2020202020202020, 0x2020202020207468, 0x69732e6e65787443, 0x616c6c4964203d20, 0x746869732e6e6578, + 0x7443616c6c496420, 0x3d3d3d2030786666, 0x6666203f2031203a, 0x20746869732e6e65, 0x787443616c6c4964, + 0x202b20313b0a2020, 0x2020202020202020, 0x2020202020206966, 0x202821746869732e, 0x70656e64696e6743, + 0x616c6c732e686173, 0x2863616e64696461, 0x746529290a202020, 0x2020202020202020, 0x2020202020202020, + 0x2072657475726e20, 0x63616e6469646174, 0x653b0a2020202020, 0x202020202020207d, 0x0a20202020202020, + 0x2020202020746872, 0x6f77206e65772045, 0x72726f722822546f, 0x6f206d616e79206f, 0x75747374616e6469, + 0x6e67205765624672, 0x6f6e742063616c6c, 0x7322293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x73656e6446756e63, 0x74696f6e52657475, 0x726e2863616c6c49, 0x642c2076616c7565, 0x29207b0a20202020, + 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d2076, 0x616c7565203d3d3d, 0x20756e646566696e, + 0x6564203f205b5d20, 0x3a205b76616c7565, 0x5d3b0a2020202020, 0x2020202020202063, 0x6f6e737420706179, + 0x6c6f616453697a65, 0x203d2076616c7565, 0x732e726564756365, 0x282873697a652c20, 0x6974656d29203d3e, + 0x2073697a65202b20, 0x746869732e706172, 0x616d657465725369, 0x7a65286974656d29, 0x2c2030293b0a2020, + 0x2020202020202020, 0x2020746869732e63, 0x6865636b4d657373, 0x61676553697a6528, 0x7061796c6f616453, + 0x697a65293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x627566666572203d, 0x206e657720417272, + 0x6179427566666572, 0x2838202b20706179, 0x6c6f616453697a65, 0x293b0a2020202020, 0x2020202020202063, + 0x6f6e737420766965, 0x77203d206e657720, 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, + 0x2020202020207669, 0x65772e7365745569, 0x6e743828302c2043, 0x6f6d6d616e642e66, 0x756e6374696f6e52, + 0x657475726e293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x3828312c2076616c, + 0x7565732e6c656e67, 0x7468293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, + 0x322c2063616c6c49, 0x642c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, + 0x202020766965772e, 0x73657455696e7433, 0x3228342c20706179, 0x6c6f616453697a65, 0x2c20746869732e6c, + 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x20206c6574206375, 0x72736f72203d2038, + 0x3b0a202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x206974656d206f66, 0x2076616c75657329, + 0x0a20202020202020, 0x2020202020202020, 0x20637572736f7220, 0x2b3d20746869732e, 0x656e636f64655061, + 0x72616d6574657228, 0x6974656d2c207669, 0x65772c2063757273, 0x6f72293b0a202020, 0x2020202020202020, + 0x20746869732e736f, 0x636b65742e73656e, 0x6428627566666572, 0x293b0a2020202020, 0x2020207d0a0a2020, + 0x2020202020202f2f, 0x2f2052656a656374, 0x732074686520432b, 0x2b2063616c6c2060, 0x63616c6c49646020, + 0x7769746820746865, 0x206d657373616765, 0x20616e6420746865, 0x20636f6465206f66, 0x20606572726f7260, + 0x2028746865206765, 0x6e6572696320636f, 0x6465207768656e20, 0x697420686173206e, 0x6f6e65206f722061, + 0x2072657365727665, 0x64206f6e65292e0a, 0x2020202020202020, 0x73656e6446756e63, 0x74696f6e4572726f, + 0x722863616c6c4964, 0x2c206572726f7229, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e7374206d6573, + 0x73616765203d2065, 0x7863657074696f6e, 0x5465787428657272, 0x6f72293b0a202020, 0x2020202020202020, + 0x20636f6e73742063, 0x6f6465203d206e65, 0x772054657874456e, 0x636f64657228292e, 0x656e636f64652865, + 0x7863657074696f6e, 0x436f646528657272, 0x6f7229293b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x77686f6c65203d20, 0x6e65772054657874, 0x456e636f64657228, 0x292e656e636f6465, 0x286d657373616765, + 0x293b0a2020202020, 0x202020202020202f, 0x2f2041206d657373, 0x616765206c6f6e67, 0x6572207468616e20, + 0x7468652031362d62, 0x6974206c656e6774, 0x682c206f72207468, 0x616e207768617420, 0x746865206d617869, + 0x6d756d206d657373, 0x6167652073697a65, 0x206c656176657320, 0x6166746572207468, 0x6520382d62797465, + 0x206865616465722c, 0x207468650a202020, 0x2020202020202020, 0x202f2f20636f6465, 0x20616e6420746865, + 0x2074776f2073697a, 0x65732c2069732063, 0x7574206265666f72, 0x6520746865206669, 0x727374205554462d, + 0x3820636861726163, 0x7465722074686174, 0x20776f756c64206e, 0x6f74206669742077, 0x686f6c652e0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x726f6f6d203d204d, 0x6174682e6d617828, 0x302c20746869732e, + 0x6d61784d65737361, 0x6765427974657320, 0x2d203132202d2063, 0x6f64652e6c656e67, 0x7468293b0a202020, + 0x2020202020202020, 0x206c657420637574, 0x203d204d6174682e, 0x6d696e2877686f6c, 0x652e6c656e677468, + 0x2c2036353533352c, 0x20726f6f6d293b0a, 0x2020202020202020, 0x202020207768696c, 0x652028637574203e, + 0x2030202626206375, 0x74203c2077686f6c, 0x652e6c656e677468, 0x202626202877686f, 0x6c655b6375745d20, + 0x2620307863302920, 0x3d3d3d2030783830, 0x290a202020202020, 0x2020202020202020, 0x20202d2d6375743b, + 0x0a20202020202020, 0x2020202020636f6e, 0x7374206279746573, 0x203d2077686f6c65, 0x2e73756261727261, + 0x7928302c20637574, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420627566, 0x666572203d206e65, + 0x7720417272617942, 0x7566666572283132, 0x202b20636f64652e, 0x6c656e677468202b, 0x2062797465732e6c, + 0x656e677468293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, + 0x6156696577286275, 0x66666572293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, + 0x28302c20436f6d6d, 0x616e642e66756e63, 0x74696f6e52657475, 0x726e293b0a202020, 0x2020202020202020, + 0x20766965772e7365, 0x7455696e74382831, 0x2c2031293b0a2020, 0x2020202020202020, 0x2020766965772e73, + 0x657455696e743136, 0x28322c2063616c6c, 0x49642c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, + 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x333228342c203420, 0x2b20636f64652e6c, + 0x656e677468202b20, 0x62797465732e6c65, 0x6e6774682c207468, 0x69732e6c6974746c, 0x65456e6469616e29, + 0x3b0a202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e743828382c2050, 0x6172616d54797065, + 0x2e65786365707469, 0x6f6e293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382839, + 0x2c20636f64652e6c, 0x656e677468293b0a, 0x2020202020202020, 0x202020206e657720, 0x55696e7438417272, + 0x6179286275666665, 0x722c203130292e73, 0x657428636f646529, 0x3b0a202020202020, 0x2020202020207669, + 0x65772e7365745569, 0x6e74313628313020, 0x2b20636f64652e6c, 0x656e6774682c2062, 0x797465732e6c656e, + 0x6774682c20746869, 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x20202020206e6577, + 0x2055696e74384172, 0x7261792862756666, 0x65722c203132202b, 0x20636f64652e6c65, 0x6e677468292e7365, + 0x7428627974657329, 0x3b0a202020202020, 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, + 0x7566666572293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020706172616d, 0x6574657253697a65, + 0x2876616c75652920, 0x7b0a202020202020, 0x2020202020207377, 0x6974636820287479, 0x70656f662076616c, + 0x756529207b0a2020, 0x2020202020202020, 0x2020636173652022, 0x626f6f6c65616e22, 0x3a0a202020202020, + 0x2020202020202020, 0x202072657475726e, 0x20313b0a20202020, 0x2020202020202020, 0x6361736520226e75, + 0x6d626572223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e20393b, 0x0a20202020202020, 0x2020202020636173, 0x652022737472696e, 0x67223a0a20202020, 0x2020202020202020, 0x2020202072657475, - 0x726e20746869732e, 0x656e636f64655374, 0x72696e672876616c, 0x75652c2076696577, 0x2c206f6666736574, - 0x293b0a2020202020, 0x2020202020202063, 0x61736520226f626a, 0x656374223a0a2020, 0x2020202020202020, - 0x2020202020207265, 0x7475726e20746869, 0x732e656e636f6465, 0x4f626a6563742876, 0x616c75652c207669, - 0x65772c206f666673, 0x6574293b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202074, + 0x726e20746869732e, 0x737472696e675061, 0x72616d6574657253, 0x697a652876616c75, 0x65293b0a20202020, + 0x2020202020202020, 0x6361736520226f62, 0x6a656374223a0a20, 0x2020202020202020, 0x2020202020202072, + 0x657475726e207468, 0x69732e6f626a6563, 0x74506172616d6574, 0x657253697a652876, 0x616c7565293b0a20, + 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, + 0x72726f722860556e, 0x737570706f727465, 0x642057656246726f, 0x6e7420706172616d, 0x6574657220747970, + 0x652027247b747970, 0x656f662076616c75, 0x657d2760293b0a20, 0x202020202020207d, 0x0a0a202020202020, + 0x20202f2f2f205468, 0x6520656e636f6465, 0x642073697a65206f, 0x6620612073747269, 0x6e673a2069747320, + 0x6865616465722061, 0x6e64206974732055, 0x54462d3820627974, 0x65732e0a20202020, 0x2020202073747269, + 0x6e67506172616d65, 0x74657253697a6528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020636f6e, + 0x7374206c656e6774, 0x68203d206e657720, 0x54657874456e636f, 0x64657228292e656e, 0x636f64652876616c, + 0x7565292e6c656e67, 0x74683b0a20202020, 0x2020202020202020, 0x72657475726e2073, 0x7472696e67486561, + 0x64657253697a6528, 0x6c656e6774682920, 0x2b206c656e677468, 0x3b0a202020202020, 0x20207d0a0a202020, + 0x20202020202f2f2f, 0x2054686520656e63, 0x6f6465642073697a, 0x65206f662061206c, 0x6973742c20747570, + 0x6c65206f72207479, 0x7065642061727261, 0x792e0a2020202020, 0x2020206f626a6563, 0x74506172616d6574, + 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, 0x2020202069662028, 0x76616c756520696e, + 0x7374616e63656f66, 0x2057656246726f6e, 0x744c697374290a20, 0x2020202020202020, 0x2020202020202072, + 0x657475726e207468, 0x69732e6c69737450, 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, + 0x2020202020202020, 0x2069662028417272, 0x61792e6973417272, 0x61792876616c7565, 0x29290a2020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e74, 0x75706c6550617261, 0x6d6574657253697a, + 0x652876616c756529, 0x3b0a202020202020, 0x2020202020206966, 0x2028697354797065, 0x6441727261792876, + 0x616c756529290a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e7479706564, + 0x4172726179506172, 0x616d657465725369, 0x7a652876616c7565, 0x293b0a2020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, 0x70706f7274656420, 0x57656246726f6e74, 0x20706172616d6574, 0x6572207479706520, 0x27247b747970656f, 0x662076616c75657d, 0x2760293b0a202020, - 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f2057726974, 0x6573206120737472, 0x696e672077697468, - 0x2074686520736d61, 0x6c6c657374206865, 0x6164657220697473, 0x205554462d38206c, 0x656e67746820616c, - 0x6c6f777320616e64, 0x2072657475726e73, 0x2074686520627974, 0x6573207772697474, 0x656e2e0a20202020, - 0x20202020656e636f, 0x6465537472696e67, 0x2876616c75652c20, 0x766965772c206f66, 0x6673657429207b0a, - 0x2020202020202020, 0x20202020636f6e73, 0x7420627974657320, 0x3d206e6577205465, 0x7874456e636f6465, - 0x7228292e656e636f, 0x64652876616c7565, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420686561, - 0x64657253697a6520, 0x3d20737472696e67, 0x4865616465725369, 0x7a65286279746573, 0x2e6c656e67746829, - 0x3b0a202020202020, 0x2020202020206966, 0x2028686561646572, 0x53697a65203d3d3d, 0x203229207b0a2020, - 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e7438286f666673, 0x65742c2050617261, - 0x6d547970652e736d, 0x616c6c537472696e, 0x67293b0a20202020, 0x2020202020202020, 0x2020202076696577, - 0x2e73657455696e74, 0x38286f6666736574, 0x202b20312c206279, 0x7465732e6c656e67, 0x7468293b0a202020, - 0x2020202020202020, 0x207d20656c736520, 0x6966202868656164, 0x657253697a65203d, 0x3d3d203329207b0a, - 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, 0x667365742c205061, - 0x72616d547970652e, 0x737472696e67293b, 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, - 0x7455696e74313628, 0x6f6666736574202b, 0x20312c2062797465, 0x732e6c656e677468, 0x2c20746869732e6c, - 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x20207d20656c7365, 0x207b0a2020202020, - 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x286f66667365742c, 0x20506172616d5479, - 0x70652e6c6f6e6753, 0x7472696e67293b0a, 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, - 0x55696e743332286f, 0x6666736574202b20, 0x312c206279746573, 0x2e6c656e6774682c, 0x20746869732e6c69, - 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x202020202020206e, - 0x65772055696e7438, 0x4172726179287669, 0x65772e6275666665, 0x722c20766965772e, 0x627974654f666673, - 0x6574202b206f6666, 0x736574202b206865, 0x6164657253697a65, 0x2c2062797465732e, 0x6c656e677468292e, - 0x7365742862797465, 0x73293b0a20202020, 0x2020202020202020, 0x72657475726e2068, 0x656164657253697a, - 0x65202b2062797465, 0x732e6c656e677468, 0x3b0a202020202020, 0x20207d0a0a202020, 0x20202020202f2f2f, - 0x2057726974657320, 0x61206c6973742c20, 0x7475706c65206f72, 0x2074797065642061, 0x7272617920616e64, - 0x2072657475726e73, 0x2074686520627974, 0x6573207772697474, 0x656e2e0a20202020, 0x20202020656e636f, - 0x64654f626a656374, 0x2876616c75652c20, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, - 0x2020202069662028, 0x76616c756520696e, 0x7374616e63656f66, 0x2057656246726f6e, 0x744c697374290a20, - 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e656e636f64, 0x654c697374287661, - 0x6c75652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, 0x6966202841727261, - 0x792e697341727261, 0x792876616c756529, 0x290a202020202020, 0x2020202020202020, 0x202072657475726e, - 0x20746869732e656e, 0x636f64655475706c, 0x652876616c75652c, 0x20766965772c206f, 0x6666736574293b0a, - 0x2020202020202020, 0x2020202069662028, 0x6973547970656441, 0x727261792876616c, 0x756529290a202020, - 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, 0x2e656e636f646554, 0x7970656441727261, - 0x792876616c75652c, 0x20766965772c206f, 0x6666736574293b0a, 0x2020202020202020, 0x202020207468726f, - 0x77206e6577205479, 0x70654572726f7228, 0x60556e737570706f, 0x7274656420576562, 0x46726f6e74207061, - 0x72616d6574657220, 0x747970652027247b, 0x747970656f662076, 0x616c75657d276029, 0x3b0a202020202020, - 0x20207d0a0a202020, 0x20202020202f2f2f, 0x2057726974657320, 0x61206c6973742061, 0x7420606f66667365, - 0x746020616e642072, 0x657475726e732074, 0x6865206279746573, 0x207772697474656e, 0x2e0a202020202020, - 0x2020656e636f6465, 0x4c697374286c6973, 0x742c20766965772c, 0x206f666673657429, 0x207b0a2020202020, - 0x2020202020202076, 0x6965772e73657455, 0x696e7438286f6666, 0x7365742c20506172, 0x616d547970652e6c, - 0x697374293b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, 0x286f666673657420, - 0x2b20312c206c6973, 0x742e6974656d732e, 0x6c656e6774682c20, 0x746869732e6c6974, 0x746c65456e646961, - 0x6e293b0a20202020, 0x2020202020202020, 0x6c65742077726974, 0x74656e203d20353b, 0x0a20202020202020, - 0x2020202020666f72, 0x2028636f6e737420, 0x6974656d206f6620, 0x6c6973742e697465, 0x6d73290a20202020, - 0x2020202020202020, 0x2020202077726974, 0x74656e202b3d2074, 0x6869732e656e636f, 0x6465506172616d65, - 0x746572286974656d, 0x2c20766965772c20, 0x6f6666736574202b, 0x207772697474656e, 0x293b0a2020202020, - 0x2020202020202072, 0x657475726e207772, 0x697474656e3b0a20, 0x202020202020207d, 0x0a0a202020202020, - 0x2020656e636f6465, 0x5475706c65287661, 0x6c75652c20766965, 0x772c206f66667365, 0x7429207b0a202020, - 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2050, 0x6172616d54797065, - 0x2e7475706c65293b, 0x0a20202020202020, 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, - 0x74202b20312c2076, 0x616c75652e6c656e, 0x677468293b0a2020, 0x2020202020202020, 0x20206c6574207772, - 0x697474656e203d20, 0x323b0a2020202020, 0x2020202020202066, 0x6f722028636f6e73, 0x7420656c656d656e, - 0x74206f662076616c, 0x7565290a20202020, 0x2020202020202020, 0x2020202077726974, 0x74656e202b3d2074, - 0x6869732e656e636f, 0x6465506172616d65, 0x74657228656c656d, 0x656e742c20766965, 0x772c206f66667365, - 0x74202b2077726974, 0x74656e293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x207772697474656e, - 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020656e63, 0x6f64655479706564, 0x4172726179287661, - 0x6c75652c20766965, 0x772c206f66667365, 0x7429207b0a202020, 0x2020202020202020, 0x20636f6e73742073, - 0x706563203d206172, 0x7261795479706573, 0x2e6765742876616c, 0x75652e636f6e7374, 0x727563746f72293b, - 0x0a20202020202020, 0x2020202020696620, 0x282173706563290a, 0x2020202020202020, 0x2020202020202020, - 0x7468726f77206e65, 0x7720547970654572, 0x726f722860556e73, 0x7570706f72746564, 0x2074797065642061, - 0x7272617920247b76, 0x616c75652e636f6e, 0x7374727563746f72, 0x2e6e616d657d6029, 0x3b0a202020202020, - 0x202020202020636f, 0x6e73742068656164, 0x657253697a65203d, 0x2074797065644172, 0x7261794865616465, - 0x7253697a65287661, 0x6c7565293b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, - 0x6f66667365742c20, 0x6865616465725369, 0x7a65203d3d3d2032, 0x203f20506172616d, 0x547970652e736d61, - 0x6c6c417272617955, 0x38203a2073706563, 0x2e636f6465293b0a, 0x2020202020202020, 0x2020202069662028, - 0x6865616465725369, 0x7a65203d3d3d2032, 0x290a202020202020, 0x2020202020202020, 0x2020766965772e73, - 0x657455696e743828, 0x6f6666736574202b, 0x20312c2076616c75, 0x652e6c656e677468, 0x293b0a2020202020, - 0x2020202020202065, 0x6c73650a20202020, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, - 0x3332286f66667365, 0x74202b20312c2076, 0x616c75652e6c656e, 0x6774682c20746869, 0x732e6c6974746c65, - 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020666f72, 0x20286c657420696e, 0x646578203d20303b, - 0x20696e646578203c, 0x2076616c75652e6c, 0x656e6774683b202b, 0x2b696e646578290a, 0x2020202020202020, - 0x2020202020202020, 0x766965775b737065, 0x632e736574746572, 0x5d286f6666736574, 0x202b206865616465, - 0x7253697a65202b20, 0x696e646578202a20, 0x737065632e627974, 0x65732c2076616c75, 0x655b696e6465785d, - 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x202072657475726e, - 0x2068656164657253, 0x697a65202b207661, 0x6c75652e62797465, 0x4c656e6774683b0a, 0x2020202020202020, - 0x7d0a202020207d0a, 0x0a202020202f2f20, 0x4578706f73656420, 0x286265796f6e6420, 0x7468652064656661, - 0x756c742060776562, 0x46726f6e74602073, 0x696e676c65746f6e, 0x2920736f20746573, 0x74732063616e2063, - 0x6f6e737472756374, 0x206164646974696f, 0x6e616c2062726964, 0x6765730a20202020, 0x2f2f20706f696e74, - 0x6564206174206120, 0x646966666572656e, 0x742055524c2c2065, 0x2e672e20746f2065, 0x7865726369736520, - 0x74686520696e6974, 0x69616c2d636f6e6e, 0x656374696f6e2d66, 0x61696c7572652070, 0x6174682e0a202020, - 0x20676c6f62616c2e, 0x57656246726f6e74, 0x427269646765203d, 0x2057656246726f6e, 0x744272696467653b, - 0x0a20202020676c6f, 0x62616c2e77656246, 0x726f6e74203d206e, 0x6577205765624672, 0x6f6e744272696467, - 0x6528293b0a7d2928, 0x676c6f62616c5468, 0x6973293b0a000000 + 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f2054686520, 0x73686170652c2061, 0x7320746865206465, + 0x636f64657220636f, 0x6d70757465732069, 0x742c206f66206120, 0x76616c7565206162, 0x6f757420746f2062, + 0x6520656e636f6465, 0x642061732061206c, 0x69737420656c656d, 0x656e742e0a202020, 0x202020202076616c, + 0x7565536861706528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020737769, 0x7463682028747970, + 0x656f662076616c75, 0x6529207b0a202020, 0x2020202020202020, 0x2063617365202262, 0x6f6f6c65616e223a, + 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x2262223b0a202020, 0x2020202020202020, + 0x206361736520226e, 0x756d626572223a0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2022, + 0x6e223b0a20202020, 0x2020202020202020, 0x6361736520227374, 0x72696e67223a0a20, 0x2020202020202020, + 0x2020202020202072, 0x657475726e202273, 0x223b0a2020202020, 0x202020202020207d, 0x0a20202020202020, + 0x2020202020696620, 0x2876616c75652069, 0x6e7374616e63656f, 0x662057656246726f, 0x6e744c697374290a, + 0x2020202020202020, 0x2020202020202020, 0x72657475726e2022, 0x4c223b0a20202020, 0x2020202020202020, + 0x6966202841727261, 0x792e697341727261, 0x792876616c756529, 0x290a202020202020, 0x2020202020202020, + 0x202072657475726e, 0x206028247b76616c, 0x75652e6d61702865, 0x6c656d656e74203d, 0x3e20746869732e76, + 0x616c756553686170, 0x6528656c656d656e, 0x7429292e6a6f696e, 0x28222c22297d2960, 0x3b0a202020202020, + 0x2020202020206966, 0x2028697354797065, 0x6441727261792876, 0x616c756529202626, 0x2061727261795479, + 0x7065732e68617328, 0x76616c75652e636f, 0x6e7374727563746f, 0x7229290a20202020, 0x2020202020202020, + 0x2020202072657475, 0x726e206061247b61, 0x7272617954797065, 0x732e676574287661, 0x6c75652e636f6e73, + 0x74727563746f7229, 0x2e636f64657d603b, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772054, + 0x7970654572726f72, 0x2860556e73757070, 0x6f72746564205765, 0x6246726f6e742070, 0x6172616d65746572, + 0x2074797065202724, 0x7b747970656f6620, 0x76616c75657d2760, 0x293b0a2020202020, 0x2020207d0a0a2020, + 0x2020202020202f2f, 0x2f2054686520656e, 0x636f646564207369, 0x7a65206f66206120, 0x6c6973742c206166, + 0x7465722063686563, 0x6b696e6720746861, 0x742069747320656c, 0x656d656e74732068, 0x617665206f6e6520, + 0x736861706520616e, 0x6420686f6c64206e, 0x6f206c6973742e0a, 0x2020202020202020, 0x6c69737450617261, + 0x6d6574657253697a, 0x65286c6973742920, 0x7b0a202020202020, 0x2020202020206966, 0x20286c6973742e69, + 0x74656d732e6c656e, 0x677468203e203078, 0x6666666666666666, 0x290a202020202020, 0x2020202020202020, + 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, 0x57656246726f6e74, 0x206c697374732063, + 0x616e6e6f74206578, 0x6365656420343239, 0x3439363732393520, 0x656c656d656e7473, 0x22293b0a20202020, + 0x2020202020202020, 0x6c65742073686170, 0x65203d206e756c6c, 0x3b0a202020202020, 0x202020202020666f, + 0x722028636f6e7374, 0x206974656d206f66, 0x206c6973742e6974, 0x656d7329207b0a20, 0x2020202020202020, + 0x2020202020202063, 0x6f6e737420697465, 0x6d5368617065203d, 0x20746869732e7661, 0x6c75655368617065, + 0x286974656d293b0a, 0x2020202020202020, 0x2020202020202020, 0x726571756972654c, 0x697374456c656d65, + 0x6e74536861706528, 0x6974656d53686170, 0x65293b0a20202020, 0x2020202020202020, 0x2020202069662028, + 0x6974656d53686170, 0x65203d3d3d20226e, 0x22207c7c20697465, 0x6d5368617065203d, 0x3d3d20226222290a, + 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, + 0x2241205765624672, 0x6f6e74206c697374, 0x20686f6c64732073, 0x7472696e67732c20, 0x7479706564206172, + 0x72617973206f7220, 0x7475706c65733a20, 0x73656e64206e756d, 0x6265727320617320, 0x6120747970656420, + 0x617272617922293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028736861, 0x7065203d3d3d206e, + 0x756c6c290a202020, 0x2020202020202020, 0x2020202020202020, 0x207368617065203d, 0x206974656d536861, + 0x70653b0a20202020, 0x2020202020202020, 0x20202020656c7365, 0x2069662028697465, 0x6d53686170652021, + 0x3d3d207368617065, 0x290a202020202020, 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, + 0x547970654572726f, 0x7228225765624672, 0x6f6e74206c697374, 0x20656c656d656e74, 0x7320617265206e6f, + 0x74206f66206f6e65, 0x207479706522293b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, + 0x2020207265747572, 0x6e2035202b206c69, 0x73742e6974656d73, 0x2e72656475636528, 0x2873697a652c2069, + 0x74656d29203d3e20, 0x73697a65202b2074, 0x6869732e70617261, 0x6d6574657253697a, 0x65286974656d292c, + 0x2030293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x7475706c65506172, 0x616d657465725369, + 0x7a652876616c7565, 0x29207b0a20202020, 0x2020202020202020, 0x6966202876616c75, 0x652e6c656e677468, + 0x203e20323535290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x772052616e676545, + 0x72726f7228225765, 0x6246726f6e742074, 0x75706c6573206361, 0x6e6e6f7420657863, 0x6565642032353520, + 0x656c656d656e7473, 0x22293b0a20202020, 0x2020202020202020, 0x72657475726e2032, 0x202b2076616c7565, + 0x2e72656475636528, 0x2873697a652c2065, 0x6c656d656e742920, 0x3d3e2073697a6520, 0x2b20746869732e70, + 0x6172616d65746572, 0x53697a6528656c65, 0x6d656e74292c2030, 0x293b0a2020202020, 0x2020207d0a0a2020, + 0x2020202020207479, 0x7065644172726179, 0x506172616d657465, 0x7253697a65287661, 0x6c756529207b0a20, + 0x2020202020202020, 0x2020206966202821, 0x6172726179547970, 0x65732e6861732876, 0x616c75652e636f6e, + 0x7374727563746f72, 0x29290a2020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, + 0x654572726f722860, 0x556e737570706f72, 0x7465642074797065, 0x6420617272617920, 0x247b76616c75652e, + 0x636f6e7374727563, 0x746f722e6e616d65, 0x7d60293b0a202020, 0x2020202020202020, 0x206966202876616c, + 0x75652e6c656e6774, 0x68203e2030786666, 0x666666666666290a, 0x2020202020202020, 0x2020202020202020, + 0x7468726f77206e65, 0x772052616e676545, 0x72726f7228225479, 0x7065642061727261, 0x79732063616e6e6f, + 0x7420657863656564, 0x2034323934393637, 0x32393520656c656d, 0x656e747322293b0a, 0x2020202020202020, + 0x2020202072657475, 0x726e207479706564, 0x4172726179486561, 0x64657253697a6528, 0x76616c756529202b, + 0x2076616c75652e62, 0x7974654c656e6774, 0x683b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, + 0x636f646550617261, 0x6d65746572287661, 0x6c75652c20766965, 0x772c206f66667365, 0x7429207b0a202020, + 0x2020202020202020, 0x2073776974636820, 0x28747970656f6620, 0x76616c756529207b, 0x0a20202020202020, + 0x2020202020636173, 0x652022626f6f6c65, 0x616e223a0a202020, 0x2020202020202020, 0x2020202020766965, + 0x772e73657455696e, 0x7438286f66667365, 0x742c2076616c7565, 0x203f20506172616d, 0x547970652e626f6f, + 0x6c65616e54727565, 0x203a20506172616d, 0x547970652e626f6f, 0x6c65616e46616c73, 0x65293b0a20202020, + 0x2020202020202020, 0x2020202072657475, 0x726e20313b0a2020, 0x2020202020202020, 0x2020636173652022, + 0x6e756d626572223a, 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, + 0x66667365742c2050, 0x6172616d54797065, 0x2e6e756d62657229, 0x3b0a202020202020, 0x2020202020202020, + 0x2020766965772e73, 0x6574466c6f617436, 0x34286f6666736574, 0x202b20312c207661, 0x6c75652c20746869, + 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, + 0x393b0a2020202020, 0x2020202020202063, 0x6173652022737472, 0x696e67223a0a2020, 0x2020202020202020, + 0x2020202020207265, 0x7475726e20746869, 0x732e656e636f6465, 0x537472696e672876, 0x616c75652c207669, + 0x65772c206f666673, 0x6574293b0a202020, 0x2020202020202020, 0x206361736520226f, 0x626a656374223a0a, + 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, 0x6869732e656e636f, 0x64654f626a656374, + 0x2876616c75652c20, 0x766965772c206f66, 0x66736574293b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, + 0x642057656246726f, 0x6e7420706172616d, 0x6574657220747970, 0x652027247b747970, 0x656f662076616c75, + 0x657d2760293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x20202f2f2f205772, 0x6974657320612073, + 0x7472696e67207769, 0x7468207468652073, 0x6d616c6c65737420, 0x6865616465722069, 0x7473205554462d38, + 0x206c656e67746820, 0x616c6c6f77732061, 0x6e64207265747572, 0x6e73207468652062, 0x7974657320777269, + 0x7474656e2e0a2020, 0x202020202020656e, 0x636f646553747269, 0x6e672876616c7565, 0x2c20766965772c20, + 0x6f66667365742920, 0x7b0a202020202020, 0x202020202020636f, 0x6e73742062797465, 0x73203d206e657720, + 0x54657874456e636f, 0x64657228292e656e, 0x636f64652876616c, 0x7565293b0a202020, 0x2020202020202020, + 0x20636f6e73742068, 0x656164657253697a, 0x65203d2073747269, 0x6e67486561646572, 0x53697a6528627974, + 0x65732e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x6966202868656164, 0x657253697a65203d, + 0x3d3d203229207b0a, 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, + 0x667365742c205061, 0x72616d547970652e, 0x736d616c6c537472, 0x696e67293b0a2020, 0x2020202020202020, + 0x2020202020207669, 0x65772e7365745569, 0x6e7438286f666673, 0x6574202b20312c20, 0x62797465732e6c65, + 0x6e677468293b0a20, 0x2020202020202020, 0x2020207d20656c73, 0x6520696620286865, 0x6164657253697a65, + 0x203d3d3d20332920, 0x7b0a202020202020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, + 0x6f66667365742c20, 0x506172616d547970, 0x652e737472696e67, 0x293b0a2020202020, 0x2020202020202020, + 0x202020766965772e, 0x73657455696e7431, 0x36286f6666736574, 0x202b20312c206279, 0x7465732e6c656e67, + 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x202020207d20656c, + 0x7365207b0a202020, 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, + 0x742c20506172616d, 0x547970652e6c6f6e, 0x67537472696e6729, 0x3b0a202020202020, 0x2020202020202020, + 0x2020766965772e73, 0x657455696e743332, 0x286f666673657420, 0x2b20312c20627974, 0x65732e6c656e6774, + 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x2020202020202020, 0x206e65772055696e, 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, + 0x772e627974654f66, 0x66736574202b206f, 0x6666736574202b20, 0x6865616465725369, 0x7a652c2062797465, + 0x732e6c656e677468, 0x292e736574286279, 0x746573293b0a2020, 0x2020202020202020, 0x202072657475726e, + 0x2068656164657253, 0x697a65202b206279, 0x7465732e6c656e67, 0x74683b0a20202020, 0x202020207d0a0a20, + 0x202020202020202f, 0x2f2f205772697465, 0x732061206c697374, 0x2c207475706c6520, 0x6f72207479706564, + 0x2061727261792061, 0x6e64207265747572, 0x6e73207468652062, 0x7974657320777269, 0x7474656e2e0a2020, + 0x202020202020656e, 0x636f64654f626a65, 0x63742876616c7565, 0x2c20766965772c20, 0x6f66667365742920, + 0x7b0a202020202020, 0x2020202020206966, 0x202876616c756520, 0x696e7374616e6365, 0x6f66205765624672, + 0x6f6e744c69737429, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e656e63, + 0x6f64654c69737428, 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020202020, + 0x2020696620284172, 0x7261792e69734172, 0x7261792876616c75, 0x6529290a20202020, 0x2020202020202020, + 0x2020202072657475, 0x726e20746869732e, 0x656e636f64655475, 0x706c652876616c75, 0x652c20766965772c, + 0x206f666673657429, 0x3b0a202020202020, 0x2020202020206966, 0x2028697354797065, 0x6441727261792876, + 0x616c756529290a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e656e636f64, + 0x6554797065644172, 0x7261792876616c75, 0x652c20766965772c, 0x206f666673657429, 0x3b0a202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x547970654572726f, 0x722860556e737570, 0x706f727465642057, + 0x656246726f6e7420, 0x706172616d657465, 0x7220747970652027, 0x247b747970656f66, 0x2076616c75657d27, + 0x60293b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f205772697465, 0x732061206c697374, + 0x20617420606f6666, 0x7365746020616e64, 0x2072657475726e73, 0x2074686520627974, 0x6573207772697474, + 0x656e2e0a20202020, 0x20202020656e636f, 0x64654c697374286c, 0x6973742c20766965, 0x772c206f66667365, + 0x7429207b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2050, + 0x6172616d54797065, 0x2e6c697374293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, + 0x3332286f66667365, 0x74202b20312c206c, 0x6973742e6974656d, 0x732e6c656e677468, 0x2c20746869732e6c, + 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x20206c6574207772, 0x697474656e203d20, + 0x353b0a2020202020, 0x2020202020202066, 0x6f722028636f6e73, 0x74206974656d206f, 0x66206c6973742e69, + 0x74656d73290a2020, 0x2020202020202020, 0x2020202020207772, 0x697474656e202b3d, 0x20746869732e656e, + 0x636f646550617261, 0x6d65746572286974, 0x656d2c2076696577, 0x2c206f6666736574, 0x202b207772697474, + 0x656e293b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x7772697474656e3b, 0x0a20202020202020, + 0x207d0a0a20202020, 0x20202020656e636f, 0x64655475706c6528, 0x76616c75652c2076, 0x6965772c206f6666, + 0x73657429207b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x286f66667365742c, + 0x20506172616d5479, 0x70652e7475706c65, 0x293b0a2020202020, 0x2020202020202076, 0x6965772e73657455, + 0x696e7438286f6666, 0x736574202b20312c, 0x2076616c75652e6c, 0x656e677468293b0a, 0x2020202020202020, + 0x202020206c657420, 0x7772697474656e20, 0x3d20323b0a202020, 0x2020202020202020, 0x20666f722028636f, + 0x6e737420656c656d, 0x656e74206f662076, 0x616c7565290a2020, 0x2020202020202020, 0x2020202020207772, + 0x697474656e202b3d, 0x20746869732e656e, 0x636f646550617261, 0x6d6574657228656c, 0x656d656e742c2076, + 0x6965772c206f6666, 0x736574202b207772, 0x697474656e293b0a, 0x2020202020202020, 0x2020202072657475, + 0x726e207772697474, 0x656e3b0a20202020, 0x202020207d0a0a20, 0x2020202020202065, 0x6e636f6465547970, + 0x6564417272617928, 0x76616c75652c2076, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x2073706563203d20, 0x6172726179547970, 0x65732e6765742876, 0x616c75652e636f6e, + 0x7374727563746f72, 0x293b0a2020202020, 0x2020202020202069, 0x6620282173706563, 0x290a202020202020, + 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, + 0x6564207479706564, 0x2061727261792024, 0x7b76616c75652e63, 0x6f6e737472756374, 0x6f722e6e616d657d, + 0x60293b0a20202020, 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, 0x203d207479706564, + 0x4172726179486561, 0x64657253697a6528, 0x76616c7565293b0a, 0x2020202020202020, 0x2020202076696577, + 0x2e73657455696e74, 0x38286f6666736574, 0x2c20686561646572, 0x53697a65203d3d3d, 0x2032203f20506172, + 0x616d547970652e73, 0x6d616c6c41727261, 0x795538203a207370, 0x65632e636f646529, 0x3b0a202020202020, + 0x2020202020206966, 0x2028686561646572, 0x53697a65203d3d3d, 0x2032290a20202020, 0x2020202020202020, + 0x2020202076696577, 0x2e73657455696e74, 0x38286f6666736574, 0x202b20312c207661, 0x6c75652e6c656e67, + 0x7468293b0a202020, 0x2020202020202020, 0x20656c73650a2020, 0x2020202020202020, 0x2020202020207669, + 0x65772e7365745569, 0x6e743332286f6666, 0x736574202b20312c, 0x2076616c75652e6c, 0x656e6774682c2074, + 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202066, 0x6f7220286c657420, + 0x696e646578203d20, 0x303b20696e646578, 0x203c2076616c7565, 0x2e6c656e6774683b, 0x202b2b696e646578, + 0x290a202020202020, 0x2020202020202020, 0x2020766965775b73, 0x7065632e73657474, 0x65725d286f666673, + 0x6574202b20686561, 0x64657253697a6520, 0x2b20696e64657820, 0x2a20737065632e62, 0x797465732c207661, + 0x6c75655b696e6465, 0x785d2c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, + 0x2020202072657475, 0x726e206865616465, 0x7253697a65202b20, 0x76616c75652e6279, 0x74654c656e677468, + 0x3b0a202020202020, 0x20207d0a20202020, 0x7d0a0a202020202f, 0x2f204578706f7365, 0x6420286265796f6e, + 0x6420746865206465, 0x6661756c74206077, 0x656246726f6e7460, 0x2073696e676c6574, 0x6f6e2920736f2074, + 0x657374732063616e, 0x20636f6e73747275, 0x6374206164646974, 0x696f6e616c206272, 0x69646765730a2020, + 0x20202f2f20706f69, 0x6e74656420617420, 0x6120646966666572, 0x656e742055524c2c, 0x20652e672e20746f, + 0x2065786572636973, 0x652074686520696e, 0x697469616c2d636f, 0x6e6e656374696f6e, 0x2d6661696c757265, + 0x20706174682e0a20, 0x202020676c6f6261, 0x6c2e57656246726f, 0x6e74427269646765, 0x203d205765624672, + 0x6f6e744272696467, 0x653b0a2020202067, 0x6c6f62616c2e7765, 0x6246726f6e74203d, 0x206e657720576562, + 0x46726f6e74427269, 0x64676528293b0a7d, 0x2928676c6f62616c, 0x54686973293b0a00 }; }; diff --git a/include/webfront/weblink/Messages.hpp b/include/webfront/weblink/Messages.hpp index 0ea39c52..f73c0a55 100644 --- a/include/webfront/weblink/Messages.hpp +++ b/include/webfront/weblink/Messages.hpp @@ -213,6 +213,18 @@ struct contains_list> : std::bool_constant<(contains_list inline constexpr bool contains_list_v = contains_list>::value; +/// Tuples nest at most this deep inside a list element, in both codecs (ADR-003): the decoders walk an element recursively, +/// and a browser must not exhaust the stack with a few hundred KiB of tuple headers. +inline constexpr std::size_t maxListTupleDepth = 32; + +template +struct tuple_depth : std::integral_constant {}; +template +struct tuple_depth> + : std::integral_constant>::value...})> {}; +template +inline constexpr std::size_t tuple_depth_v = tuple_depth>::value; + template struct is_list_element : std::bool_constant || is_tuple_v || is_bitset_v || is_numeric_array_v> {}; template @@ -554,6 +566,7 @@ class FunctionCallBase : public MessageBase { template void encodeList(const List& list, WebSocketFrame& frame) { static_assert(!contains_list_v, "WebFront lists cannot contain lists"); + static_assert(tuple_depth_v <= maxListTupleDepth, "WebFront list elements nest tuples at most 32 deep"); if (list.size() > std::numeric_limits::max()) throw std::length_error("WebFront lists cannot exceed 4294967295 elements"); encodeTypeHeader(msg::CodedType::list, static_cast(list.size()), frame); @@ -767,8 +780,7 @@ class FunctionCallBase : public MessageBase { /// Walks the value at the start of `data` without decoding it: appends its shape to `shape` and returns the bytes it takes. /// Two list elements must have the same shape: the same kind of value (any string header is a string, the short and the /// regular Uint8Array are one array type) and, for a tuple, the same shapes of fields. - /// Tuples nested deeper than this are refused: a browser could otherwise exhaust the stack with a few hundred KiB of headers. - static constexpr std::size_t maxShapeDepth = 32; + static constexpr std::size_t maxShapeDepth = maxListTupleDepth; static std::size_t appendWireShape(std::span data, std::string& shape, std::size_t depth = 0) { if (data.empty()) diff --git a/js/core/WebFront.js b/js/core/WebFront.js index 2a71c660..d34fd0fa 100644 --- a/js/core/WebFront.js +++ b/js/core/WebFront.js @@ -121,10 +121,21 @@ } } - /// A list element is neither a list nor a tuple holding one: their shapes contain "L". + /// Tuples nest at most this deep inside a list element, as in the C++ codec (ADR-003). + const maxListTupleDepth = 32; + + /// A list element is neither a list nor a tuple holding one (their shapes contain "L"), and nests tuples at most + /// maxListTupleDepth deep (the parentheses of its shape). function requireListElementShape(shape) { if (shape.includes("L")) throw new TypeError("WebFront lists cannot contain lists"); + let depth = 0; + for (const character of shape) { + if (character === "(" && ++depth > maxListTupleDepth) + throw new TypeError(`WebFront list elements nest tuples at most ${maxListTupleDepth} deep`); + else if (character === ")") + --depth; + } } function isTypedArray(value) { diff --git a/test/unit/MessagesTests.cpp b/test/unit/MessagesTests.cpp index 45bcbb30..4fbcf7ec 100644 --- a/test/unit/MessagesTests.cpp +++ b/test/unit/MessagesTests.cpp @@ -500,6 +500,25 @@ SCENARIO("Lists of strings, tuples and arrays are encoded as one list value") { REQUIRE_THROWS_AS(decodedParameter>>(bytes), runtime_error); } } + GIVEN("tuples nested exactly at and just past the shared limit of 32 levels") { + const auto nested = [](int levels) { + vector bytes{byte{static_cast(msg::CodedType::list)}, byte{1}, byte{0}, byte{0}, byte{0}}; + for (int level = 0; level < levels; ++level) { + bytes.push_back(byte{static_cast(msg::CodedType::tuple)}); + bytes.push_back(byte{1}); + } + bytes.push_back(byte{static_cast(msg::CodedType::booleanTrue)}); + return bytes; + }; + // The destination only has to be as deep as the wire value for decoding to reach the check: a 33-level destination + // type is refused at compile time by the encoder, so the wire is built by hand. + THEN("32 levels pass the shape check and 33 are refused") { + using Level32 = tuple>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>; + static_assert(msg::tuple_depth_v == 32); + REQUIRE_NOTHROW(decodedParameter>(nested(32))); + REQUIRE_THROWS_AS(decodedParameter>(nested(33)), runtime_error); + } + } GIVEN("a policy whose messages cannot exceed 1 KiB") { using SmallPolicy = http::CustomBuffersPolicy<8192, 8192, 32768, 1024>; msg::FunctionReturn message; diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index eebaeaeb..e5b3ddda 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -41,6 +41,16 @@ namespace { constexpr string_view cppToJsToken{"cpp-to-js-token"}; constexpr string_view jsToCppToken{"js-to-cpp-token"}; +/// A string wrapped in `Levels` one-field tuples: the deepest list element the bridge accepts has 32 of them. +template +struct Nested { + using type = tuple::type>; +}; +template <> +struct Nested<0> { + using type = string; +}; + struct TestState { atomic browserReady{false}; atomic domDocumentObserved{false}; @@ -341,6 +351,9 @@ class BrowserIntegrationTest { } void registerListCallbacks() { + webFront->cppFunction("deepEcho", [](const vector::type>& value) { + return value; + }); webFront->cppFunction("deferredEcho", [this](string value, int delayMs) { return deferredEcho(webFront, std::move(value), delayMs); }); webFront->cppFunction("deferredFailure", [this]() { return deferredFailure(webFront, "rejected after a delay"); }); diff --git a/test/web/suite/specs/webfront-specs.mjs b/test/web/suite/specs/webfront-specs.mjs index 3ed831ce..a30060c3 100644 --- a/test/web/suite/specs/webfront-specs.mjs +++ b/test/web/suite/specs/webfront-specs.mjs @@ -225,6 +225,17 @@ describe('WebFront browser integration', () => { expect(echoed[1][3].length).toBe(300); }); + it('accepts tuples nested 32 deep in a list element, in both codecs, and refuses 33', async () => { + const nest = levels => { let value = 'x'; for (let level = 0; level < levels; ++level) value = [value]; return value; }; + const depthOf = value => { let depth = 0; while (Array.isArray(value)) { value = value[0]; ++depth; } return depth; }; + const echoed = await webFront.cppFunction('deepEcho')(webFront.list([nest(32)])); + expect(echoed.length).toBe(1); + expect(depthOf(echoed[0])).toBe(32); + await expectAsync(webFront.cppFunction('deepEcho')(webFront.list([nest(33)]))) + .toBeRejectedWithError(TypeError, /at most 32 deep/); + await expectAsync(webFront.cppFunction('listEcho')(webFront.list(['still works']))).toBeResolvedTo(['still works']); + }); + it('refuses to send a heterogeneous or nested list, and C++ refuses a wrong element type', async () => { const echo = webFront.cppFunction('listEcho'); await expectAsync(echo(webFront.list(['text', new Uint8Array(1)]))).toBeRejectedWithError(TypeError, /not of one type/); From 4d2e8db086bf913ba7ba3f89865716b162173e66 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 21:51:13 +0100 Subject: [PATCH 16/17] Count the tuple nesting of list elements while descending, in decoding and encoding, so that deep input never exhausts the stack (#457) --- include/webfront/system/WebFrontJsData.hpp | 836 +++++++++++---------- js/core/WebFront.js | 58 +- test/web/suite/specs/webfront-specs.mjs | 18 + 3 files changed, 492 insertions(+), 420 deletions(-) diff --git a/include/webfront/system/WebFrontJsData.hpp b/include/webfront/system/WebFrontJsData.hpp index 56ce378b..0216cc9a 100644 --- a/include/webfront/system/WebFrontJsData.hpp +++ b/include/webfront/system/WebFrontJsData.hpp @@ -9,8 +9,8 @@ namespace webfront::fs::generated { struct WebFrontJsData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{43191}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{44478}; + static constexpr std::array data{ 0x2f2f2f2040627269, 0x65662042726f7773, 0x65722d7369646520, 0x57656246726f6e74, 0x206272696467652e, 0x0a0a2866756e6374, 0x696f6e2028676c6f, 0x62616c29207b0a20, 0x2020202275736520, 0x737472696374223b, 0x0a0a20202020636f, 0x6e737420436f6d6d, 0x616e64203d204f62, 0x6a6563742e667265, 0x657a65287b0a2020, @@ -690,407 +690,439 @@ struct WebFrontJsData { 0x61676553697a657d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020646563, 0x6f64655475706c65, 0x28766965772c206f, 0x666673657429207b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x6f66667365742c20, 0x322c20227475706c, 0x6520686561646572, 0x22293b0a20202020, - 0x2020202020202020, 0x636f6e7374207368, 0x61706573203d205b, 0x5d3b0a2020202020, 0x2020202020202063, - 0x6f6e7374205b7475, 0x706c652c20636f6e, 0x73756d65645d203d, 0x20746869732e6465, 0x636f646550617261, - 0x6d65746572732876, 0x6965772e67657455, 0x696e7438286f6666, 0x736574202b203129, 0x2c20766965772c20, - 0x6f6666736574202b, 0x20322c2073686170, 0x6573293b0a202020, 0x2020202020202020, 0x2072657475726e20, - 0x7b76616c75653a20, 0x7475706c652c2062, 0x797465733a203220, 0x2b20636f6e73756d, 0x65642c2073686170, - 0x653a206028247b73, 0x68617065732e6a6f, 0x696e28222c22297d, 0x29607d3b0a202020, 0x20202020207d0a0a, - 0x2020202020202020, 0x2f2f2f2041206c69, 0x7374206973206120, 0x33322d6269742063, 0x6f756e7420666f6c, - 0x6c6f776564206279, 0x2074686174206d61, 0x6e792076616c7565, 0x73206f66206f6e65, 0x2073686170653b20, - 0x74686520656c656d, 0x656e747320617272, 0x6976652061732061, 0x204a617661536372, 0x6970742061727261, - 0x792e0a2020202020, 0x2020206465636f64, 0x654c697374287669, 0x65772c206f666673, 0x657429207b0a2020, - 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c206f6666, 0x7365742c20352c20, - 0x226c697374206865, 0x6164657222293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420636f756e7420, - 0x3d20766965772e67, 0x657455696e743332, 0x286f666673657420, 0x2b20312c20746869, 0x732e6c6974746c65, - 0x456e6469616e293b, 0x0a20202020202020, 0x20202020202f2f20, 0x457665727920656c, 0x656d656e74207461, - 0x6b6573206174206c, 0x65617374206f6e65, 0x20627974653a2061, 0x20636f756e742074, 0x6865206d65737361, - 0x67652063616e6e6f, 0x7420686f6c642069, 0x7320726566757365, 0x64206265666f7265, 0x20616e797468696e, - 0x6720697320616c6c, 0x6f63617465642e0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, - 0x28766965772c206f, 0x6666736574202b20, 0x352c20636f756e74, 0x2c20226c69737420, 0x656c656d656e7473, - 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d205b, 0x5d3b0a2020202020, - 0x202020202020206c, 0x657420637572736f, 0x72203d206f666673, 0x6574202b20353b0a, 0x2020202020202020, - 0x202020206c657420, 0x6c69737453686170, 0x65203d206e756c6c, 0x3b0a202020202020, 0x202020202020666f, - 0x7220286c65742069, 0x6e646578203d2030, 0x3b20696e64657820, 0x3c20636f756e743b, 0x202b2b696e646578, - 0x29207b0a20202020, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c2063, - 0x7572736f722c2031, 0x2c20226c69737420, 0x656c656d656e7420, 0x7479706522293b0a, 0x2020202020202020, - 0x2020202020202020, 0x6966202876696577, 0x2e67657455696e74, 0x3828637572736f72, 0x29203d3d3d205061, - 0x72616d547970652e, 0x657863657074696f, 0x6e290a2020202020, 0x2020202020202020, 0x2020202020202074, - 0x68726f77206e6577, 0x2054797065457272, 0x6f72282241205765, 0x6246726f6e74206c, 0x69737420656c656d, - 0x656e742063616e6e, 0x6f7420626520616e, 0x2065786365707469, 0x6f6e22293b0a2020, 0x2020202020202020, - 0x202020202020636f, 0x6e7374207b76616c, 0x75652c2062797465, 0x732c207368617065, 0x7d203d2074686973, - 0x2e6465636f646556, 0x616c756528766965, 0x772e67657455696e, 0x743828637572736f, 0x72292c2076696577, - 0x2c20637572736f72, 0x293b0a2020202020, 0x2020202020202020, 0x2020207265717569, 0x72654c697374456c, - 0x656d656e74536861, 0x7065287368617065, 0x293b0a2020202020, 0x2020202020202020, 0x202020696620286c, - 0x6973745368617065, 0x203d3d3d206e756c, 0x6c290a2020202020, 0x2020202020202020, 0x202020202020206c, - 0x6973745368617065, 0x203d207368617065, 0x3b0a202020202020, 0x2020202020202020, 0x2020656c73652069, - 0x6620287368617065, 0x20213d3d206c6973, 0x745368617065290a, 0x2020202020202020, 0x2020202020202020, - 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, 0x2257656246726f6e, 0x74206c6973742065, - 0x6c656d656e747320, 0x617265206e6f7420, 0x6f66206f6e652074, 0x79706522293b0a20, 0x2020202020202020, - 0x2020202020202076, 0x616c7565732e7075, 0x73682876616c7565, 0x293b0a2020202020, 0x2020202020202020, - 0x202020637572736f, 0x72202b3d20627974, 0x65733b0a20202020, 0x2020202020202020, 0x7d0a202020202020, - 0x2020202020207265, 0x7475726e207b7661, 0x6c75653a2076616c, 0x7565732c20627974, 0x65733a2063757273, - 0x6f72202d206f6666, 0x7365742c20736861, 0x70653a20224c227d, 0x3b0a202020202020, 0x20207d0a0a202020, - 0x20202020202f2f2f, 0x205265736f6c7665, 0x732074686520656c, 0x656d656e74207370, 0x656320616e64206c, - 0x656e677468207072, 0x6566697820666f72, 0x2061207479706564, 0x2061727261792c20, 0x77686f7365206865, - 0x6164657220697320, 0x3220627974657320, 0x696e207468650a20, 0x202020202020202f, 0x2f2f20636f6d7061, - 0x637420736d616c6c, 0x4172726179553820, 0x666f726d20616e64, 0x2035206279746573, 0x206f746865727769, - 0x73652e0a20202020, 0x2020202072656164, 0x5479706564417272, 0x6179486561646572, 0x28747970652c2076, - 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20736d616c6c203d, - 0x2074797065203d3d, 0x3d20506172616d54, 0x7970652e736d616c, 0x6c41727261795538, 0x3b0a202020202020, - 0x202020202020636f, 0x6e73742073706563, 0x203d20736d616c6c, 0x203f207b2e2e2e61, 0x72726179436f6465, - 0x732e676574285061, 0x72616d547970652e, 0x6172726179553829, 0x2c20636f6e737472, 0x7563746f723a2055, - 0x696e743841727261, 0x797d203a20617272, 0x6179436f6465732e, 0x6765742874797065, 0x293b0a2020202020, - 0x2020202020202069, 0x6620282173706563, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, - 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, 0x6564207479706564, 0x2061727261792063, - 0x6f646520247b7479, 0x70657d60293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2068656164657253, - 0x697a65203d20736d, 0x616c6c203f203220, 0x3a20353b0a202020, 0x2020202020202020, 0x2072657175697265, - 0x4279746573287669, 0x65772c206f666673, 0x65742c2068656164, 0x657253697a652c20, 0x2261727261792068, - 0x656164657222293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206c656e6774, 0x68203d20736d616c, - 0x6c203f2076696577, 0x2e67657455696e74, 0x38286f6666736574, 0x202b203129203a20, 0x766965772e676574, - 0x55696e743332286f, 0x6666736574202b20, 0x312c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, - 0x2020202020202020, 0x2020207265747572, 0x6e207b737065632c, 0x2068656164657253, 0x697a652c206c656e, - 0x6774687d3b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x206465636f646554, 0x7970656441727261, - 0x7928747970652c20, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, 0x20202020636f6e73, - 0x74207b737065632c, 0x2068656164657253, 0x697a652c206c656e, 0x6774687d203d2074, 0x6869732e72656164, - 0x5479706564417272, 0x6179486561646572, 0x28747970652c2076, 0x6965772c206f6666, 0x736574293b0a2020, - 0x2020202020202020, 0x2020636f6e737420, 0x627974654c656e67, 0x7468203d206c656e, 0x677468202a207370, - 0x65632e6279746573, 0x3b0a202020202020, 0x2020202020206966, 0x2028214e756d6265, 0x722e697353616665, - 0x496e746567657228, 0x627974654c656e67, 0x746829290a202020, 0x2020202020202020, 0x2020202020746872, - 0x6f77206e65772052, 0x616e67654572726f, 0x7228225479706564, 0x206172726179206c, 0x656e677468206973, - 0x20746f6f206c6172, 0x676522293b0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, - 0x6965772c206f6666, 0x736574202b206865, 0x6164657253697a65, 0x2c20627974654c65, 0x6e6774682c202261, - 0x7272617920706179, 0x6c6f616422293b0a, 0x0a20202020202020, 0x2020202020636f6e, 0x737420726573756c, - 0x74203d206e657720, 0x737065632e636f6e, 0x7374727563746f72, 0x286c656e67746829, 0x3b0a202020202020, - 0x202020202020636f, 0x6e7374207061796c, 0x6f6164203d206f66, 0x66736574202b2068, 0x656164657253697a, - 0x653b0a2020202020, 0x2020202020202066, 0x6f7220286c657420, 0x696e646578203d20, 0x303b20696e646578, - 0x203c206c656e6774, 0x683b202b2b696e64, 0x6578290a20202020, 0x2020202020202020, 0x2020202072657375, - 0x6c745b696e646578, 0x5d203d2076696577, 0x5b737065632e6765, 0x747465725d287061, 0x796c6f6164202b20, - 0x696e646578202a20, 0x737065632e627974, 0x65732c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, - 0x2020202020202020, 0x2020202072657475, 0x726e207b76616c75, 0x653a20726573756c, 0x742c206279746573, - 0x3a20686561646572, 0x53697a65202b2062, 0x7974654c656e6774, 0x687d3b0a20202020, 0x202020207d0a0a20, - 0x202020202020202f, 0x2f2f204d61726b73, 0x20606974656d7360, 0x20746f2062652073, 0x656e742061732061, - 0x206c6973743a2061, 0x6e79206e756d6265, 0x72206f6620656c65, 0x6d656e7473206f66, 0x206f6e6520747970, - 0x652c206561636820, 0x6120737472696e67, 0x2c20612074797065, 0x6420617272617920, 0x6f72206120747570, - 0x6c652c2077686963, 0x680a202020202020, 0x20202f2f2f20432b, 0x2b20726563656976, 0x6573206173206120, - 0x7374643a3a766563, 0x746f722e204e756d, 0x6265727320676f20, 0x6173206120747970, 0x6564206172726179, - 0x202861206c697374, 0x206f66206e756d62, 0x657273206f722062, 0x6f6f6c65616e7320, 0x6973207265667573, - 0x6564292e20412070, 0x6c61696e0a202020, 0x20202020202f2f2f, 0x2061727261792069, 0x732061207475706c, - 0x65206f6620617420, 0x6d6f737420323535, 0x20656c656d656e74, 0x73206f6620616e79, 0x2074797065732e0a, - 0x2020202020202020, 0x6c69737428697465, 0x6d7329207b0a2020, 0x2020202020202020, 0x202072657475726e, - 0x206e657720576562, 0x46726f6e744c6973, 0x74286974656d7329, 0x3b0a202020202020, 0x20207d0a0a202020, - 0x2020202020637070, 0x46756e6374696f6e, 0x286e616d6529207b, 0x0a20202020202020, 0x2020202020726574, - 0x75726e20282e2e2e, 0x6172677329203d3e, 0x20746869732e6361, 0x6c6c43707046756e, 0x6374696f6e286e61, - 0x6d652c2061726773, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206361, 0x6c6c43707046756e, - 0x6374696f6e286e61, 0x6d652c2061726773, 0x29207b0a20202020, 0x2020202020202020, 0x72657475726e206e, - 0x65772050726f6d69, 0x736528287265736f, 0x6c76652c2072656a, 0x65637429203d3e20, 0x7b0a202020202020, - 0x2020202020202020, 0x20206c6574206361, 0x6c6c4964203d2030, 0x3b0a202020202020, 0x2020202020202020, - 0x2020747279207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, 0x746869732e737461, - 0x746520213d3d2022, 0x6c696e6b65642229, 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, - 0x207468726f772062, 0x7269646765457272, 0x6f72284272696467, 0x65436f64652e6469, 0x73636f6e6e656374, - 0x65642c2022576562, 0x46726f6e74206272, 0x6964676520697320, 0x6e6f7420636f6e6e, 0x656374656422293b, - 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x73742076616c7565, 0x73203d205b6e616d, - 0x652c202e2e2e6172, 0x67735d3b0a202020, 0x2020202020202020, 0x2020202020202020, 0x206966202876616c, - 0x7565732e6c656e67, 0x7468203e20323535, 0x290a202020202020, 0x2020202020202020, 0x2020202020202020, - 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, 0x412066756e637469, 0x6f6e2063616c6c20, - 0x63616e6e6f742063, 0x6f6e7461696e206d, 0x6f7265207468616e, 0x2032353520746f70, 0x2d6c6576656c2076, - 0x616c75657322293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374207061796c6f, - 0x616453697a65203d, 0x2076616c7565732e, 0x7265647563652828, 0x73697a652c207661, 0x6c756529203d3e20, - 0x73697a65202b2074, 0x6869732e70617261, 0x6d6574657253697a, 0x652876616c756529, 0x2c2030293b0a2020, - 0x2020202020202020, 0x2020202020202020, 0x2020746869732e63, 0x6865636b4d657373, 0x61676553697a6528, - 0x7061796c6f616453, 0x697a65293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, - 0x627566666572203d, 0x206e657720417272, 0x6179427566666572, 0x2838202b20706179, 0x6c6f616453697a65, - 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420766965, 0x77203d206e657720, - 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020206361, - 0x6c6c4964203d2074, 0x6869732e616c6c6f, 0x6361746543616c6c, 0x496428293b0a2020, 0x2020202020202020, - 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x302c20436f6d6d61, 0x6e642e63616c6c46, - 0x756e6374696f6e29, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, - 0x6e743828312c2076, 0x616c7565732e6c65, 0x6e677468293b0a20, 0x2020202020202020, 0x2020202020202020, - 0x202020766965772e, 0x73657455696e7431, 0x3628322c2063616c, 0x6c49642c20746869, 0x732e6c6974746c65, - 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, - 0x74333228342c2070, 0x61796c6f61645369, 0x7a652c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, - 0x2020202020202020, 0x2020202020202020, 0x202020206c657420, 0x637572736f72203d, 0x20383b0a20202020, - 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, 0x73742076616c7565, 0x206f662076616c75, - 0x6573290a20202020, 0x2020202020202020, 0x2020202020202020, 0x2020202063757273, 0x6f72202b3d207468, - 0x69732e656e636f64, 0x65506172616d6574, 0x65722876616c7565, 0x2c20766965772c20, 0x637572736f72293b, - 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, 0x732e70656e64696e, 0x6743616c6c732e73, - 0x65742863616c6c49, 0x642c207b7265736f, 0x6c76652c2072656a, 0x6563747d293b0a20, 0x2020202020202020, - 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e73, 0x656e642862756666, 0x6572293b0a202020, - 0x2020202020202020, 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, 0x2020202020202020, - 0x2020202020202020, 0x2020206966202863, 0x616c6c496420213d, 0x3d2030290a202020, 0x2020202020202020, - 0x2020202020202020, 0x2020202020746869, 0x732e70656e64696e, 0x6743616c6c732e64, 0x656c657465286361, - 0x6c6c4964293b0a20, 0x2020202020202020, 0x2020202020202020, 0x20202072656a6563, 0x74286572726f7229, - 0x3b0a202020202020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x7d293b0a20202020, - 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f205265667573, 0x65732061206d6573, 0x7361676520746865, - 0x20432b2b20736964, 0x6520776f756c6420, 0x636c6f7365207468, 0x6520636f6e6e6563, 0x74696f6e20666f72, - 0x3a2074686520382d, 0x6279746520686561, 0x64657220616e6420, 0x746865207061796c, 0x6f616420746f6765, - 0x746865722e0a2020, 0x2020202020206368, 0x65636b4d65737361, 0x676553697a652870, 0x61796c6f61645369, - 0x7a6529207b0a2020, 0x2020202020202020, 0x2020696620283820, 0x2b207061796c6f61, 0x6453697a65203e20, - 0x746869732e6d6178, 0x4d65737361676542, 0x79746573290a2020, 0x2020202020202020, 0x2020202020207468, - 0x726f77206e657720, 0x52616e6765457272, 0x6f72286057656246, 0x726f6e74206d6573, 0x73616765206f6620, - 0x247b38202b207061, 0x796c6f616453697a, 0x657d206279746573, 0x2065786365656473, 0x20746865206d6178, - 0x696d756d206f6620, 0x247b746869732e6d, 0x61784d6573736167, 0x6542797465737d20, 0x627974657360293b, - 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020616c6c6f, 0x6361746543616c6c, 0x49642829207b0a20, - 0x2020202020202020, 0x202020666f722028, 0x6c65742061747465, 0x6d707473203d2030, 0x3b20617474656d70, - 0x7473203c20307866, 0x6666663b202b2b61, 0x7474656d70747329, 0x207b0a2020202020, 0x2020202020202020, - 0x202020636f6e7374, 0x2063616e64696461, 0x7465203d20746869, 0x732e6e6578744361, 0x6c6c49643b0a2020, - 0x2020202020202020, 0x2020202020207468, 0x69732e6e65787443, 0x616c6c4964203d20, 0x746869732e6e6578, - 0x7443616c6c496420, 0x3d3d3d2030786666, 0x6666203f2031203a, 0x20746869732e6e65, 0x787443616c6c4964, - 0x202b20313b0a2020, 0x2020202020202020, 0x2020202020206966, 0x202821746869732e, 0x70656e64696e6743, - 0x616c6c732e686173, 0x2863616e64696461, 0x746529290a202020, 0x2020202020202020, 0x2020202020202020, - 0x2072657475726e20, 0x63616e6469646174, 0x653b0a2020202020, 0x202020202020207d, 0x0a20202020202020, - 0x2020202020746872, 0x6f77206e65772045, 0x72726f722822546f, 0x6f206d616e79206f, 0x75747374616e6469, - 0x6e67205765624672, 0x6f6e742063616c6c, 0x7322293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, - 0x73656e6446756e63, 0x74696f6e52657475, 0x726e2863616c6c49, 0x642c2076616c7565, 0x29207b0a20202020, - 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d2076, 0x616c7565203d3d3d, 0x20756e646566696e, - 0x6564203f205b5d20, 0x3a205b76616c7565, 0x5d3b0a2020202020, 0x2020202020202063, 0x6f6e737420706179, - 0x6c6f616453697a65, 0x203d2076616c7565, 0x732e726564756365, 0x282873697a652c20, 0x6974656d29203d3e, - 0x2073697a65202b20, 0x746869732e706172, 0x616d657465725369, 0x7a65286974656d29, 0x2c2030293b0a2020, - 0x2020202020202020, 0x2020746869732e63, 0x6865636b4d657373, 0x61676553697a6528, 0x7061796c6f616453, - 0x697a65293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x627566666572203d, 0x206e657720417272, - 0x6179427566666572, 0x2838202b20706179, 0x6c6f616453697a65, 0x293b0a2020202020, 0x2020202020202063, - 0x6f6e737420766965, 0x77203d206e657720, 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, - 0x2020202020207669, 0x65772e7365745569, 0x6e743828302c2043, 0x6f6d6d616e642e66, 0x756e6374696f6e52, - 0x657475726e293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x3828312c2076616c, - 0x7565732e6c656e67, 0x7468293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, - 0x322c2063616c6c49, 0x642c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, - 0x202020766965772e, 0x73657455696e7433, 0x3228342c20706179, 0x6c6f616453697a65, 0x2c20746869732e6c, - 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x20206c6574206375, 0x72736f72203d2038, - 0x3b0a202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x206974656d206f66, 0x2076616c75657329, - 0x0a20202020202020, 0x2020202020202020, 0x20637572736f7220, 0x2b3d20746869732e, 0x656e636f64655061, - 0x72616d6574657228, 0x6974656d2c207669, 0x65772c2063757273, 0x6f72293b0a202020, 0x2020202020202020, - 0x20746869732e736f, 0x636b65742e73656e, 0x6428627566666572, 0x293b0a2020202020, 0x2020207d0a0a2020, - 0x2020202020202f2f, 0x2f2052656a656374, 0x732074686520432b, 0x2b2063616c6c2060, 0x63616c6c49646020, - 0x7769746820746865, 0x206d657373616765, 0x20616e6420746865, 0x20636f6465206f66, 0x20606572726f7260, - 0x2028746865206765, 0x6e6572696320636f, 0x6465207768656e20, 0x697420686173206e, 0x6f6e65206f722061, - 0x2072657365727665, 0x64206f6e65292e0a, 0x2020202020202020, 0x73656e6446756e63, 0x74696f6e4572726f, - 0x722863616c6c4964, 0x2c206572726f7229, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e7374206d6573, - 0x73616765203d2065, 0x7863657074696f6e, 0x5465787428657272, 0x6f72293b0a202020, 0x2020202020202020, - 0x20636f6e73742063, 0x6f6465203d206e65, 0x772054657874456e, 0x636f64657228292e, 0x656e636f64652865, - 0x7863657074696f6e, 0x436f646528657272, 0x6f7229293b0a2020, 0x2020202020202020, 0x2020636f6e737420, - 0x77686f6c65203d20, 0x6e65772054657874, 0x456e636f64657228, 0x292e656e636f6465, 0x286d657373616765, - 0x293b0a2020202020, 0x202020202020202f, 0x2f2041206d657373, 0x616765206c6f6e67, 0x6572207468616e20, - 0x7468652031362d62, 0x6974206c656e6774, 0x682c206f72207468, 0x616e207768617420, 0x746865206d617869, - 0x6d756d206d657373, 0x6167652073697a65, 0x206c656176657320, 0x6166746572207468, 0x6520382d62797465, - 0x206865616465722c, 0x207468650a202020, 0x2020202020202020, 0x202f2f20636f6465, 0x20616e6420746865, - 0x2074776f2073697a, 0x65732c2069732063, 0x7574206265666f72, 0x6520746865206669, 0x727374205554462d, - 0x3820636861726163, 0x7465722074686174, 0x20776f756c64206e, 0x6f74206669742077, 0x686f6c652e0a2020, - 0x2020202020202020, 0x2020636f6e737420, 0x726f6f6d203d204d, 0x6174682e6d617828, 0x302c20746869732e, - 0x6d61784d65737361, 0x6765427974657320, 0x2d203132202d2063, 0x6f64652e6c656e67, 0x7468293b0a202020, - 0x2020202020202020, 0x206c657420637574, 0x203d204d6174682e, 0x6d696e2877686f6c, 0x652e6c656e677468, - 0x2c2036353533352c, 0x20726f6f6d293b0a, 0x2020202020202020, 0x202020207768696c, 0x652028637574203e, - 0x2030202626206375, 0x74203c2077686f6c, 0x652e6c656e677468, 0x202626202877686f, 0x6c655b6375745d20, - 0x2620307863302920, 0x3d3d3d2030783830, 0x290a202020202020, 0x2020202020202020, 0x20202d2d6375743b, - 0x0a20202020202020, 0x2020202020636f6e, 0x7374206279746573, 0x203d2077686f6c65, 0x2e73756261727261, - 0x7928302c20637574, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420627566, 0x666572203d206e65, - 0x7720417272617942, 0x7566666572283132, 0x202b20636f64652e, 0x6c656e677468202b, 0x2062797465732e6c, - 0x656e677468293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, - 0x6156696577286275, 0x66666572293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, - 0x28302c20436f6d6d, 0x616e642e66756e63, 0x74696f6e52657475, 0x726e293b0a202020, 0x2020202020202020, - 0x20766965772e7365, 0x7455696e74382831, 0x2c2031293b0a2020, 0x2020202020202020, 0x2020766965772e73, - 0x657455696e743136, 0x28322c2063616c6c, 0x49642c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, - 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x333228342c203420, 0x2b20636f64652e6c, - 0x656e677468202b20, 0x62797465732e6c65, 0x6e6774682c207468, 0x69732e6c6974746c, 0x65456e6469616e29, - 0x3b0a202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e743828382c2050, 0x6172616d54797065, - 0x2e65786365707469, 0x6f6e293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382839, - 0x2c20636f64652e6c, 0x656e677468293b0a, 0x2020202020202020, 0x202020206e657720, 0x55696e7438417272, - 0x6179286275666665, 0x722c203130292e73, 0x657428636f646529, 0x3b0a202020202020, 0x2020202020207669, - 0x65772e7365745569, 0x6e74313628313020, 0x2b20636f64652e6c, 0x656e6774682c2062, 0x797465732e6c656e, - 0x6774682c20746869, 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x20202020206e6577, - 0x2055696e74384172, 0x7261792862756666, 0x65722c203132202b, 0x20636f64652e6c65, 0x6e677468292e7365, - 0x7428627974657329, 0x3b0a202020202020, 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, - 0x7566666572293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020706172616d, 0x6574657253697a65, - 0x2876616c75652920, 0x7b0a202020202020, 0x2020202020207377, 0x6974636820287479, 0x70656f662076616c, - 0x756529207b0a2020, 0x2020202020202020, 0x2020636173652022, 0x626f6f6c65616e22, 0x3a0a202020202020, - 0x2020202020202020, 0x202072657475726e, 0x20313b0a20202020, 0x2020202020202020, 0x6361736520226e75, - 0x6d626572223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e20393b, 0x0a20202020202020, - 0x2020202020636173, 0x652022737472696e, 0x67223a0a20202020, 0x2020202020202020, 0x2020202072657475, - 0x726e20746869732e, 0x737472696e675061, 0x72616d6574657253, 0x697a652876616c75, 0x65293b0a20202020, - 0x2020202020202020, 0x6361736520226f62, 0x6a656374223a0a20, 0x2020202020202020, 0x2020202020202072, - 0x657475726e207468, 0x69732e6f626a6563, 0x74506172616d6574, 0x657253697a652876, 0x616c7565293b0a20, - 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, - 0x72726f722860556e, 0x737570706f727465, 0x642057656246726f, 0x6e7420706172616d, 0x6574657220747970, - 0x652027247b747970, 0x656f662076616c75, 0x657d2760293b0a20, 0x202020202020207d, 0x0a0a202020202020, - 0x20202f2f2f205468, 0x6520656e636f6465, 0x642073697a65206f, 0x6620612073747269, 0x6e673a2069747320, - 0x6865616465722061, 0x6e64206974732055, 0x54462d3820627974, 0x65732e0a20202020, 0x2020202073747269, - 0x6e67506172616d65, 0x74657253697a6528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020636f6e, - 0x7374206c656e6774, 0x68203d206e657720, 0x54657874456e636f, 0x64657228292e656e, 0x636f64652876616c, - 0x7565292e6c656e67, 0x74683b0a20202020, 0x2020202020202020, 0x72657475726e2073, 0x7472696e67486561, - 0x64657253697a6528, 0x6c656e6774682920, 0x2b206c656e677468, 0x3b0a202020202020, 0x20207d0a0a202020, - 0x20202020202f2f2f, 0x2054686520656e63, 0x6f6465642073697a, 0x65206f662061206c, 0x6973742c20747570, - 0x6c65206f72207479, 0x7065642061727261, 0x792e0a2020202020, 0x2020206f626a6563, 0x74506172616d6574, - 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, 0x2020202069662028, 0x76616c756520696e, - 0x7374616e63656f66, 0x2057656246726f6e, 0x744c697374290a20, 0x2020202020202020, 0x2020202020202072, - 0x657475726e207468, 0x69732e6c69737450, 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, + 0x2020202020202020, 0x2f2f20496e736964, 0x652061206c697374, 0x20656c656d656e74, 0x20746865206e6573, + 0x74696e6720697320, 0x636f756e74656420, 0x7768696c65206465, 0x7363656e64696e67, 0x2c20736f20746861, + 0x742061206d657373, 0x616765206f662074, 0x686f7573616e6473, 0x206f66206e657374, 0x6564207475706c65, + 0x730a202020202020, 0x2020202020202f2f, 0x2069732072656675, 0x7365642061742074, 0x6865206c696d6974, + 0x20616e64206e6576, 0x6572206578686175, 0x7374732074686520, 0x737461636b2e0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x20636f756e746564, 0x203d20746869732e, 0x6c697374456c656d, 0x656e744465707468, + 0x20213d3d20756e64, 0x6566696e65643b0a, 0x2020202020202020, 0x2020202069662028, 0x636f756e74656420, + 0x262620746869732e, 0x6c697374456c656d, 0x656e744465707468, 0x203e3d206d61784c, 0x6973745475706c65, + 0x4465707468290a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, + 0x6f72286057656246, 0x726f6e74206c6973, 0x7420656c656d656e, 0x7473206e65737420, 0x7475706c65732061, + 0x74206d6f73742024, 0x7b6d61784c697374, 0x5475706c65446570, 0x74687d2064656570, 0x60293b0a20202020, + 0x2020202020202020, 0x69662028636f756e, 0x746564290a202020, 0x2020202020202020, 0x20202020202b2b74, + 0x6869732e6c697374, 0x456c656d656e7444, 0x657074683b0a2020, 0x2020202020202020, 0x2020747279207b0a, + 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207368, 0x61706573203d205b, 0x5d3b0a2020202020, + 0x2020202020202020, 0x202020636f6e7374, 0x205b7475706c652c, 0x20636f6e73756d65, 0x645d203d20746869, + 0x732e6465636f6465, 0x506172616d657465, 0x727328766965772e, 0x67657455696e7438, 0x286f666673657420, + 0x2b2031292c207669, 0x65772c206f666673, 0x6574202b20322c20, 0x736861706573293b, 0x0a20202020202020, + 0x2020202020202020, 0x2072657475726e20, 0x7b76616c75653a20, 0x7475706c652c2062, 0x797465733a203220, + 0x2b20636f6e73756d, 0x65642c2073686170, 0x653a206028247b73, 0x68617065732e6a6f, 0x696e28222c22297d, + 0x29607d3b0a202020, 0x2020202020202020, 0x207d2066696e616c, 0x6c79207b0a202020, 0x2020202020202020, + 0x2020202020696620, 0x28636f756e746564, 0x290a202020202020, 0x2020202020202020, 0x2020202020202d2d, + 0x746869732e6c6973, 0x74456c656d656e74, 0x44657074683b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f2041206c69, 0x7374206973206120, 0x33322d6269742063, + 0x6f756e7420666f6c, 0x6c6f776564206279, 0x2074686174206d61, 0x6e792076616c7565, 0x73206f66206f6e65, + 0x2073686170653b20, 0x74686520656c656d, 0x656e747320617272, 0x6976652061732061, 0x204a617661536372, + 0x6970742061727261, 0x792e0a2020202020, 0x2020206465636f64, 0x654c697374287669, 0x65772c206f666673, + 0x657429207b0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c206f6666, + 0x7365742c20352c20, 0x226c697374206865, 0x6164657222293b0a, 0x2020202020202020, 0x20202020636f6e73, + 0x7420636f756e7420, 0x3d20766965772e67, 0x657455696e743332, 0x286f666673657420, 0x2b20312c20746869, + 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x20202020202f2f20, 0x457665727920656c, + 0x656d656e74207461, 0x6b6573206174206c, 0x65617374206f6e65, 0x20627974653a2061, 0x20636f756e742074, + 0x6865206d65737361, 0x67652063616e6e6f, 0x7420686f6c642069, 0x7320726566757365, 0x64206265666f7265, + 0x20616e797468696e, 0x6720697320616c6c, 0x6f63617465642e0a, 0x2020202020202020, 0x2020202072657175, + 0x6972654279746573, 0x28766965772c206f, 0x6666736574202b20, 0x352c20636f756e74, 0x2c20226c69737420, + 0x656c656d656e7473, 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d205b, + 0x5d3b0a2020202020, 0x202020202020206c, 0x657420637572736f, 0x72203d206f666673, 0x6574202b20353b0a, + 0x2020202020202020, 0x202020206c657420, 0x6c69737453686170, 0x65203d206e756c6c, 0x3b0a202020202020, + 0x202020202020636f, 0x6e7374206f757465, 0x724465707468203d, 0x20746869732e6c69, 0x7374456c656d656e, + 0x7444657074683b0a, 0x2020202020202020, 0x2020202074727920, 0x7b0a202020202020, 0x2020202020202020, + 0x2020666f7220286c, 0x657420696e646578, 0x203d20303b20696e, 0x646578203c20636f, 0x756e743b202b2b69, + 0x6e64657829207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, + 0x28766965772c2063, 0x7572736f722c2031, 0x2c20226c69737420, 0x656c656d656e7420, 0x7479706522293b0a, + 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, 0x766965772e676574, 0x55696e7438286375, + 0x72736f7229203d3d, 0x3d20506172616d54, 0x7970652e65786365, 0x7074696f6e290a20, 0x2020202020202020, + 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f72282241205765, + 0x6246726f6e74206c, 0x69737420656c656d, 0x656e742063616e6e, 0x6f7420626520616e, 0x2065786365707469, + 0x6f6e22293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020746869732e6c, 0x697374456c656d65, + 0x6e74446570746820, 0x3d20303b20202f2f, 0x206561636820656c, 0x656d656e7420636f, 0x756e747320697473, + 0x206f776e20747570, 0x6c65206e65737469, 0x6e670a2020202020, 0x2020202020202020, 0x2020202020202063, + 0x6f6e7374207b7661, 0x6c75652c20627974, 0x65732c2073686170, 0x657d203d20746869, 0x732e6465636f6465, + 0x56616c7565287669, 0x65772e6765745569, 0x6e74382863757273, 0x6f72292c20766965, 0x772c20637572736f, + 0x72293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x726571756972654c, 0x697374456c656d65, + 0x6e74536861706528, 0x7368617065293b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, + 0x6c69737453686170, 0x65203d3d3d206e75, 0x6c6c290a20202020, 0x2020202020202020, 0x2020202020202020, + 0x202020206c697374, 0x5368617065203d20, 0x73686170653b0a20, 0x2020202020202020, 0x2020202020202020, + 0x202020656c736520, 0x6966202873686170, 0x6520213d3d206c69, 0x7374536861706529, 0x0a20202020202020, + 0x2020202020202020, 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f7228225765, + 0x6246726f6e74206c, 0x69737420656c656d, 0x656e747320617265, 0x206e6f74206f6620, 0x6f6e652074797065, + 0x22293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x76616c7565732e70, 0x7573682876616c75, + 0x65293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x637572736f72202b, 0x3d2062797465733b, + 0x0a20202020202020, 0x2020202020202020, 0x207d0a2020202020, 0x202020202020207d, 0x2066696e616c6c79, + 0x207b0a2020202020, 0x2020202020202020, 0x202020746869732e, 0x6c697374456c656d, 0x656e744465707468, + 0x203d206f75746572, 0x44657074683b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, + 0x2072657475726e20, 0x7b76616c75653a20, 0x76616c7565732c20, 0x62797465733a2063, 0x7572736f72202d20, + 0x6f66667365742c20, 0x73686170653a2022, 0x4c227d3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x2f2f2f205265736f, 0x6c76657320746865, 0x20656c656d656e74, 0x207370656320616e, 0x64206c656e677468, + 0x2070726566697820, 0x666f722061207479, 0x7065642061727261, 0x792c2077686f7365, 0x2068656164657220, + 0x6973203220627974, 0x657320696e207468, 0x650a202020202020, 0x20202f2f2f20636f, 0x6d7061637420736d, + 0x616c6c4172726179, 0x553820666f726d20, 0x616e642035206279, 0x746573206f746865, 0x72776973652e0a20, + 0x2020202020202072, 0x6561645479706564, 0x4172726179486561, 0x6465722874797065, 0x2c20766965772c20, + 0x6f66667365742920, 0x7b0a202020202020, 0x202020202020636f, 0x6e737420736d616c, 0x6c203d2074797065, + 0x203d3d3d20506172, 0x616d547970652e73, 0x6d616c6c41727261, 0x7955383b0a202020, 0x2020202020202020, + 0x20636f6e73742073, 0x706563203d20736d, 0x616c6c203f207b2e, 0x2e2e617272617943, 0x6f6465732e676574, + 0x28506172616d5479, 0x70652e6172726179, 0x5538292c20636f6e, 0x7374727563746f72, 0x3a2055696e743841, + 0x727261797d203a20, 0x6172726179436f64, 0x65732e6765742874, 0x797065293b0a2020, 0x2020202020202020, + 0x2020696620282173, 0x706563290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, + 0x7970654572726f72, 0x2860556e73757070, 0x6f72746564207479, 0x7065642061727261, 0x7920636f64652024, + 0x7b747970657d6029, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742068656164, 0x657253697a65203d, + 0x20736d616c6c203f, 0x2032203a20353b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, + 0x28766965772c206f, 0x66667365742c2068, 0x656164657253697a, 0x652c202261727261, 0x7920686561646572, + 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374206c65, 0x6e677468203d2073, 0x6d616c6c203f2076, + 0x6965772e67657455, 0x696e7438286f6666, 0x736574202b203129, 0x203a20766965772e, 0x67657455696e7433, + 0x32286f6666736574, 0x202b20312c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, + 0x2020202020207265, 0x7475726e207b7370, 0x65632c2068656164, 0x657253697a652c20, 0x6c656e6774687d3b, + 0x0a20202020202020, 0x207d0a0a20202020, 0x202020206465636f, 0x6465547970656441, 0x7272617928747970, + 0x652c20766965772c, 0x206f666673657429, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e7374207b7370, + 0x65632c2068656164, 0x657253697a652c20, 0x6c656e6774687d20, 0x3d20746869732e72, 0x6561645479706564, + 0x4172726179486561, 0x6465722874797065, 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, + 0x2020202020636f6e, 0x737420627974654c, 0x656e677468203d20, 0x6c656e677468202a, 0x20737065632e6279, + 0x7465733b0a202020, 0x2020202020202020, 0x2069662028214e75, 0x6d6265722e697353, 0x616665496e746567, + 0x657228627974654c, 0x656e67746829290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, + 0x772052616e676545, 0x72726f7228225479, 0x7065642061727261, 0x79206c656e677468, 0x20697320746f6f20, + 0x6c6172676522293b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, + 0x6f6666736574202b, 0x2068656164657253, 0x697a652c20627974, 0x654c656e6774682c, 0x2022617272617920, + 0x7061796c6f616422, 0x293b0a0a20202020, 0x2020202020202020, 0x636f6e7374207265, 0x73756c74203d206e, + 0x657720737065632e, 0x636f6e7374727563, 0x746f72286c656e67, 0x7468293b0a202020, 0x2020202020202020, + 0x20636f6e73742070, 0x61796c6f6164203d, 0x206f666673657420, 0x2b20686561646572, 0x53697a653b0a2020, + 0x2020202020202020, 0x2020666f7220286c, 0x657420696e646578, 0x203d20303b20696e, 0x646578203c206c65, + 0x6e6774683b202b2b, 0x696e646578290a20, 0x2020202020202020, 0x2020202020202072, 0x6573756c745b696e, + 0x6465785d203d2076, 0x6965775b73706563, 0x2e6765747465725d, 0x287061796c6f6164, 0x202b20696e646578, + 0x202a20737065632e, 0x62797465732c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, + 0x2020202020202072, 0x657475726e207b76, 0x616c75653a207265, 0x73756c742c206279, 0x7465733a20686561, + 0x64657253697a6520, 0x2b20627974654c65, 0x6e6774687d3b0a20, 0x202020202020207d, 0x0a0a202020202020, + 0x20202f2f2f204d61, 0x726b732060697465, 0x6d736020746f2062, 0x652073656e742061, 0x732061206c697374, + 0x3a20616e79206e75, 0x6d626572206f6620, 0x656c656d656e7473, 0x206f66206f6e6520, 0x747970652c206561, + 0x6368206120737472, 0x696e672c20612074, 0x7970656420617272, 0x6179206f72206120, 0x7475706c652c2077, + 0x686963680a202020, 0x20202020202f2f2f, 0x20432b2b20726563, 0x6569766573206173, 0x2061207374643a3a, + 0x766563746f722e20, 0x4e756d6265727320, 0x676f206173206120, 0x7479706564206172, 0x726179202861206c, + 0x697374206f66206e, 0x756d62657273206f, 0x7220626f6f6c6561, 0x6e73206973207265, 0x6675736564292e20, + 0x4120706c61696e0a, 0x2020202020202020, 0x2f2f2f2061727261, 0x7920697320612074, 0x75706c65206f6620, + 0x6174206d6f737420, 0x32353520656c656d, 0x656e7473206f6620, 0x616e792074797065, 0x732e0a2020202020, + 0x2020206c69737428, 0x6974656d7329207b, 0x0a20202020202020, 0x2020202020726574, 0x75726e206e657720, + 0x57656246726f6e74, 0x4c69737428697465, 0x6d73293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x63707046756e6374, 0x696f6e286e616d65, 0x29207b0a20202020, 0x2020202020202020, 0x72657475726e2028, + 0x2e2e2e6172677329, 0x203d3e2074686973, 0x2e63616c6c437070, 0x46756e6374696f6e, 0x286e616d652c2061, + 0x726773293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x2063616c6c437070, 0x46756e6374696f6e, + 0x286e616d652c2061, 0x72677329207b0a20, 0x2020202020202020, 0x2020207265747572, 0x6e206e6577205072, + 0x6f6d697365282872, 0x65736f6c76652c20, 0x72656a6563742920, 0x3d3e207b0a202020, 0x2020202020202020, + 0x20202020206c6574, 0x2063616c6c496420, 0x3d20303b0a202020, 0x2020202020202020, 0x2020202020747279, + 0x207b0a2020202020, 0x2020202020202020, 0x2020202020202069, 0x662028746869732e, 0x737461746520213d, + 0x3d20226c696e6b65, 0x6422290a20202020, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, + 0x7720627269646765, 0x4572726f72284272, 0x69646765436f6465, 0x2e646973636f6e6e, 0x65637465642c2022, + 0x57656246726f6e74, 0x2062726964676520, 0x6973206e6f742063, 0x6f6e6e6563746564, 0x22293b0a20202020, + 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d205b, 0x6e616d652c202e2e, + 0x2e617267735d3b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, 0x76616c7565732e6c, + 0x656e677468203e20, 0x323535290a202020, 0x2020202020202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772052, 0x616e67654572726f, 0x722822412066756e, 0x6374696f6e206361, 0x6c6c2063616e6e6f, + 0x7420636f6e746169, 0x6e206d6f72652074, 0x68616e2032353520, 0x746f702d6c657665, 0x6c2076616c756573, + 0x22293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207061, 0x796c6f616453697a, + 0x65203d2076616c75, 0x65732e7265647563, 0x65282873697a652c, 0x2076616c75652920, 0x3d3e2073697a6520, + 0x2b20746869732e70, 0x6172616d65746572, 0x53697a652876616c, 0x7565292c2030293b, 0x0a20202020202020, + 0x2020202020202020, 0x2020202020746869, 0x732e636865636b4d, 0x6573736167655369, 0x7a65287061796c6f, + 0x616453697a65293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206275666665, + 0x72203d206e657720, 0x4172726179427566, 0x6665722838202b20, 0x7061796c6f616453, 0x697a65293b0a2020, + 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x76696577203d206e, 0x6577204461746156, + 0x6965772862756666, 0x6572293b0a202020, 0x2020202020202020, 0x2020202020202020, 0x2063616c6c496420, + 0x3d20746869732e61, 0x6c6c6f6361746543, 0x616c6c496428293b, 0x0a20202020202020, 0x2020202020202020, + 0x2020202020766965, 0x772e73657455696e, 0x743828302c20436f, 0x6d6d616e642e6361, 0x6c6c46756e637469, + 0x6f6e293b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382831, + 0x2c2076616c756573, 0x2e6c656e67746829, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207669, + 0x65772e7365745569, 0x6e74313628322c20, 0x63616c6c49642c20, 0x746869732e6c6974, 0x746c65456e646961, + 0x6e293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7433322834, + 0x2c207061796c6f61, 0x6453697a652c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, + 0x2020202020202020, 0x202020202020206c, 0x657420637572736f, 0x72203d20383b0a20, 0x2020202020202020, + 0x2020202020202020, 0x202020666f722028, 0x636f6e7374207661, 0x6c7565206f662076, 0x616c756573290a20, + 0x2020202020202020, 0x2020202020202020, 0x2020202020202063, 0x7572736f72202b3d, 0x20746869732e656e, + 0x636f646550617261, 0x6d65746572287661, 0x6c75652c20766965, 0x772c20637572736f, 0x72293b0a20202020, + 0x2020202020202020, 0x2020202020202020, 0x746869732e70656e, 0x64696e6743616c6c, 0x732e736574286361, + 0x6c6c49642c207b72, 0x65736f6c76652c20, 0x72656a6563747d29, 0x3b0a202020202020, 0x2020202020202020, + 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, 0x7566666572293b0a, 0x2020202020202020, + 0x2020202020202020, 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, 0x2020202020202020, + 0x2020202020206966, 0x202863616c6c4964, 0x20213d3d2030290a, 0x2020202020202020, 0x2020202020202020, + 0x2020202020202020, 0x746869732e70656e, 0x64696e6743616c6c, 0x732e64656c657465, 0x2863616c6c496429, + 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207265, 0x6a65637428657272, 0x6f72293b0a202020, + 0x2020202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020207d293b0a20, 0x202020202020207d, + 0x0a0a202020202020, 0x20202f2f2f205265, 0x6675736573206120, 0x6d65737361676520, 0x74686520432b2b20, + 0x7369646520776f75, 0x6c6420636c6f7365, 0x2074686520636f6e, 0x6e656374696f6e20, 0x666f723a20746865, + 0x20382d6279746520, 0x6865616465722061, 0x6e64207468652070, 0x61796c6f61642074, 0x6f6765746865722e, + 0x0a20202020202020, 0x20636865636b4d65, 0x737361676553697a, 0x65287061796c6f61, 0x6453697a6529207b, + 0x0a20202020202020, 0x2020202020696620, 0x2838202b20706179, 0x6c6f616453697a65, 0x203e20746869732e, + 0x6d61784d65737361, 0x6765427974657329, 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, + 0x65772052616e6765, 0x4572726f72286057, 0x656246726f6e7420, 0x6d65737361676520, 0x6f6620247b38202b, + 0x207061796c6f6164, 0x53697a657d206279, 0x7465732065786365, 0x6564732074686520, 0x6d6178696d756d20, + 0x6f6620247b746869, 0x732e6d61784d6573, 0x7361676542797465, 0x737d206279746573, 0x60293b0a20202020, + 0x202020207d0a0a20, 0x2020202020202061, 0x6c6c6f6361746543, 0x616c6c4964282920, 0x7b0a202020202020, + 0x202020202020666f, 0x7220286c65742061, 0x7474656d70747320, 0x3d20303b20617474, 0x656d707473203c20, + 0x3078666666663b20, 0x2b2b617474656d70, 0x747329207b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e73742063616e64, 0x6964617465203d20, 0x746869732e6e6578, 0x7443616c6c49643b, 0x0a20202020202020, + 0x2020202020202020, 0x20746869732e6e65, 0x787443616c6c4964, 0x203d20746869732e, 0x6e65787443616c6c, + 0x4964203d3d3d2030, 0x7866666666203f20, 0x31203a2074686973, 0x2e6e65787443616c, 0x6c4964202b20313b, + 0x0a20202020202020, 0x2020202020202020, 0x2069662028217468, 0x69732e70656e6469, 0x6e6743616c6c732e, + 0x6861732863616e64, 0x696461746529290a, 0x2020202020202020, 0x2020202020202020, 0x2020202072657475, + 0x726e2063616e6469, 0x646174653b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, + 0x7468726f77206e65, 0x77204572726f7228, 0x22546f6f206d616e, 0x79206f7574737461, 0x6e64696e67205765, + 0x6246726f6e742063, 0x616c6c7322293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x20202073656e6446, + 0x756e6374696f6e52, 0x657475726e286361, 0x6c6c49642c207661, 0x6c756529207b0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x2076616c75657320, 0x3d2076616c756520, 0x3d3d3d20756e6465, 0x66696e6564203f20, + 0x5b5d203a205b7661, 0x6c75655d3b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x7061796c6f616453, + 0x697a65203d207661, 0x6c7565732e726564, 0x756365282873697a, 0x652c206974656d29, 0x203d3e2073697a65, + 0x202b20746869732e, 0x706172616d657465, 0x7253697a65286974, 0x656d292c2030293b, 0x0a20202020202020, + 0x2020202020746869, 0x732e636865636b4d, 0x6573736167655369, 0x7a65287061796c6f, 0x616453697a65293b, + 0x0a20202020202020, 0x2020202020636f6e, 0x7374206275666665, 0x72203d206e657720, 0x4172726179427566, + 0x6665722838202b20, 0x7061796c6f616453, 0x697a65293b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x76696577203d206e, 0x6577204461746156, 0x6965772862756666, 0x6572293b0a202020, 0x2020202020202020, + 0x20766965772e7365, 0x7455696e74382830, 0x2c20436f6d6d616e, 0x642e66756e637469, 0x6f6e52657475726e, + 0x293b0a2020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e743828312c20, 0x76616c7565732e6c, + 0x656e677468293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x313628322c206361, + 0x6c6c49642c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x2020202020207669, + 0x65772e7365745569, 0x6e74333228342c20, 0x7061796c6f616453, 0x697a652c20746869, 0x732e6c6974746c65, + 0x456e6469616e293b, 0x0a20202020202020, 0x20202020206c6574, 0x20637572736f7220, 0x3d20383b0a202020, + 0x2020202020202020, 0x20666f722028636f, 0x6e7374206974656d, 0x206f662076616c75, 0x6573290a20202020, + 0x2020202020202020, 0x2020202063757273, 0x6f72202b3d207468, 0x69732e656e636f64, 0x65506172616d6574, + 0x6572286974656d2c, 0x20766965772c2063, 0x7572736f72293b0a, 0x2020202020202020, 0x2020202074686973, + 0x2e736f636b65742e, 0x73656e6428627566, 0x666572293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, + 0x202f2f2f2052656a, 0x6563747320746865, 0x20432b2b2063616c, 0x6c206063616c6c49, 0x6460207769746820, + 0x746865206d657373, 0x61676520616e6420, 0x74686520636f6465, 0x206f662060657272, 0x6f72602028746865, + 0x2067656e65726963, 0x20636f6465207768, 0x656e206974206861, 0x73206e6f6e65206f, 0x7220612072657365, + 0x72766564206f6e65, 0x292e0a2020202020, 0x20202073656e6446, 0x756e6374696f6e45, 0x72726f722863616c, + 0x6c49642c20657272, 0x6f7229207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6d65737361676520, + 0x3d20657863657074, 0x696f6e5465787428, 0x6572726f72293b0a, 0x2020202020202020, 0x20202020636f6e73, + 0x7420636f6465203d, 0x206e657720546578, 0x74456e636f646572, 0x28292e656e636f64, 0x6528657863657074, + 0x696f6e436f646528, 0x6572726f7229293b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742077686f6c65, + 0x203d206e65772054, 0x657874456e636f64, 0x657228292e656e63, 0x6f6465286d657373, 0x616765293b0a2020, + 0x2020202020202020, 0x20202f2f2041206d, 0x657373616765206c, 0x6f6e676572207468, 0x616e207468652031, + 0x362d626974206c65, 0x6e6774682c206f72, 0x207468616e207768, 0x617420746865206d, 0x6178696d756d206d, + 0x6573736167652073, 0x697a65206c656176, 0x6573206166746572, 0x2074686520382d62, 0x7974652068656164, + 0x65722c207468650a, 0x2020202020202020, 0x202020202f2f2063, 0x6f646520616e6420, 0x7468652074776f20, + 0x73697a65732c2069, 0x7320637574206265, 0x666f726520746865, 0x2066697273742055, 0x54462d3820636861, + 0x7261637465722074, 0x68617420776f756c, 0x64206e6f74206669, 0x742077686f6c652e, 0x0a20202020202020, + 0x2020202020636f6e, 0x737420726f6f6d20, 0x3d204d6174682e6d, 0x617828302c207468, 0x69732e6d61784d65, + 0x7373616765427974, 0x6573202d20313220, 0x2d20636f64652e6c, 0x656e677468293b0a, 0x2020202020202020, + 0x202020206c657420, 0x637574203d204d61, 0x74682e6d696e2877, 0x686f6c652e6c656e, 0x6774682c20363535, + 0x33352c20726f6f6d, 0x293b0a2020202020, 0x2020202020202077, 0x68696c6520286375, 0x74203e2030202626, + 0x20637574203c2077, 0x686f6c652e6c656e, 0x6774682026262028, 0x77686f6c655b6375, 0x745d202620307863, + 0x3029203d3d3d2030, 0x783830290a202020, 0x2020202020202020, 0x20202020202d2d63, 0x75743b0a20202020, + 0x2020202020202020, 0x636f6e7374206279, 0x746573203d207768, 0x6f6c652e73756261, 0x7272617928302c20, + 0x637574293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x627566666572203d, 0x206e657720417272, + 0x6179427566666572, 0x283132202b20636f, 0x64652e6c656e6774, 0x68202b2062797465, 0x732e6c656e677468, + 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420766965, 0x77203d206e657720, 0x4461746156696577, + 0x2862756666657229, 0x3b0a202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e743828302c2043, + 0x6f6d6d616e642e66, 0x756e6374696f6e52, 0x657475726e293b0a, 0x2020202020202020, 0x2020202076696577, + 0x2e73657455696e74, 0x3828312c2031293b, 0x0a20202020202020, 0x2020202020766965, 0x772e73657455696e, + 0x74313628322c2063, 0x616c6c49642c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, + 0x2020202020202076, 0x6965772e73657455, 0x696e74333228342c, 0x2034202b20636f64, 0x652e6c656e677468, + 0x202b206279746573, 0x2e6c656e6774682c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, + 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382838, 0x2c20506172616d54, 0x7970652e65786365, + 0x7074696f6e293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x3828392c20636f64, + 0x652e6c656e677468, 0x293b0a2020202020, 0x202020202020206e, 0x65772055696e7438, 0x4172726179286275, + 0x666665722c203130, 0x292e73657428636f, 0x6465293b0a202020, 0x2020202020202020, 0x20766965772e7365, + 0x7455696e74313628, 0x3130202b20636f64, 0x652e6c656e677468, 0x2c2062797465732e, 0x6c656e6774682c20, + 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x6e65772055696e74, + 0x3841727261792862, 0x75666665722c2031, 0x32202b20636f6465, 0x2e6c656e67746829, 0x2e73657428627974, + 0x6573293b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b65742e73656e, 0x6428627566666572, + 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020207061, 0x72616d6574657253, 0x697a652876616c75, + 0x6529207b0a202020, 0x2020202020202020, 0x2073776974636820, 0x28747970656f6620, 0x76616c756529207b, + 0x0a20202020202020, 0x2020202020636173, 0x652022626f6f6c65, 0x616e223a0a202020, 0x2020202020202020, + 0x2020202020726574, 0x75726e20313b0a20, 0x2020202020202020, 0x2020206361736520, 0x226e756d62657222, + 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, 0x20393b0a20202020, 0x2020202020202020, + 0x6361736520227374, 0x72696e67223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, + 0x69732e737472696e, 0x67506172616d6574, 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, + 0x2020206361736520, 0x226f626a65637422, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, + 0x20746869732e6f62, 0x6a65637450617261, 0x6d6574657253697a, 0x652876616c756529, 0x3b0a202020202020, + 0x2020202020207d0a, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, + 0x60556e737570706f, 0x7274656420576562, 0x46726f6e74207061, 0x72616d6574657220, 0x747970652027247b, + 0x747970656f662076, 0x616c75657d276029, 0x3b0a202020202020, 0x20207d0a0a202020, 0x20202020202f2f2f, + 0x2054686520656e63, 0x6f6465642073697a, 0x65206f6620612073, 0x7472696e673a2069, 0x7473206865616465, + 0x7220616e64206974, 0x73205554462d3820, 0x62797465732e0a20, 0x2020202020202073, 0x7472696e67506172, + 0x616d657465725369, 0x7a652876616c7565, 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374206c65, + 0x6e677468203d206e, 0x6577205465787445, 0x6e636f6465722829, 0x2e656e636f646528, 0x76616c7565292e6c, + 0x656e6774683b0a20, 0x2020202020202020, 0x2020207265747572, 0x6e20737472696e67, 0x4865616465725369, + 0x7a65286c656e6774, 0x6829202b206c656e, 0x6774683b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x2f2f2f2054686520, 0x656e636f64656420, 0x73697a65206f6620, 0x61206c6973742c20, 0x7475706c65206f72, + 0x2074797065642061, 0x727261792e0a2020, 0x2020202020206f62, 0x6a65637450617261, 0x6d6574657253697a, + 0x652876616c756529, 0x207b0a2020202020, 0x2020202020202069, 0x66202876616c7565, 0x20696e7374616e63, + 0x656f662057656246, 0x726f6e744c697374, 0x290a202020202020, 0x2020202020202020, 0x202072657475726e, + 0x20746869732e6c69, 0x7374506172616d65, 0x74657253697a6528, 0x76616c7565293b0a, 0x2020202020202020, + 0x2020202069662028, 0x41727261792e6973, 0x4172726179287661, 0x6c756529290a2020, 0x2020202020202020, + 0x2020202020207265, 0x7475726e20746869, 0x732e7475706c6550, 0x6172616d65746572, 0x53697a652876616c, + 0x7565293b0a202020, 0x2020202020202020, 0x2069662028697354, 0x7970656441727261, 0x792876616c756529, + 0x290a202020202020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e7479, 0x7065644172726179, + 0x506172616d657465, 0x7253697a65287661, 0x6c7565293b0a2020, 0x2020202020202020, 0x20207468726f7720, + 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e742070617261, + 0x6d65746572207479, 0x70652027247b7479, 0x70656f662076616c, 0x75657d2760293b0a, 0x2020202020202020, + 0x7d0a0a2020202020, 0x2020202f2f2f2054, 0x6865207368617065, 0x2c20617320746865, 0x206465636f646572, + 0x20636f6d70757465, 0x732069742c206f66, 0x20612076616c7565, 0x2061626f75742074, 0x6f20626520656e63, + 0x6f64656420617320, 0x61206c6973742065, 0x6c656d656e742e0a, 0x2020202020202020, 0x76616c7565536861, + 0x70652876616c7565, 0x2c20646570746820, 0x3d203029207b0a20, 0x2020202020202020, 0x2020207377697463, + 0x682028747970656f, 0x662076616c756529, 0x207b0a2020202020, 0x2020202020202063, 0x6173652022626f6f, + 0x6c65616e223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e202262, 0x223b0a2020202020, + 0x2020202020202063, 0x61736520226e756d, 0x626572223a0a2020, 0x2020202020202020, 0x2020202020207265, + 0x7475726e20226e22, 0x3b0a202020202020, 0x2020202020206361, 0x7365202273747269, 0x6e67223a0a202020, + 0x2020202020202020, 0x2020202020726574, 0x75726e202273223b, 0x0a20202020202020, 0x20202020207d0a20, + 0x2020202020202020, 0x2020206966202876, 0x616c756520696e73, 0x74616e63656f6620, 0x57656246726f6e74, + 0x4c697374290a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e20224c22, 0x3b0a202020202020, + 0x2020202020206966, 0x202841727261792e, 0x6973417272617928, 0x76616c7565292920, 0x7b0a202020202020, + 0x2020202020202020, 0x20202f2f20436f75, 0x6e74656420776869, 0x6c65206465736365, 0x6e64696e673a2061, + 0x6e20617272617920, 0x6e65737465642074, 0x686f7573616e6473, 0x2064656570206973, 0x2072656675736564, + 0x2061742074686520, 0x6c696d69742c206e, 0x6f74206166746572, 0x2065786861757374, 0x696e672074686520, + 0x737461636b2e0a20, 0x2020202020202020, 0x2020202020202069, 0x6620286465707468, 0x203e3d206d61784c, + 0x6973745475706c65, 0x4465707468290a20, 0x2020202020202020, 0x2020202020202020, 0x2020207468726f77, + 0x206e657720547970, 0x654572726f722860, 0x57656246726f6e74, 0x206c69737420656c, 0x656d656e7473206e, + 0x657374207475706c, 0x6573206174206d6f, 0x737420247b6d6178, 0x4c6973745475706c, 0x6544657074687d20, + 0x6465657060293b0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2060, 0x28247b76616c7565, + 0x2e6d617028656c65, 0x6d656e74203d3e20, 0x746869732e76616c, 0x7565536861706528, 0x656c656d656e742c, + 0x206465707468202b, 0x203129292e6a6f69, 0x6e28222c22297d29, 0x603b0a2020202020, 0x202020202020207d, + 0x0a20202020202020, 0x2020202020696620, 0x2869735479706564, 0x4172726179287661, 0x6c75652920262620, + 0x6172726179547970, 0x65732e6861732876, 0x616c75652e636f6e, 0x7374727563746f72, 0x29290a2020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e206061247b6172, 0x7261795479706573, 0x2e6765742876616c, + 0x75652e636f6e7374, 0x727563746f72292e, 0x636f64657d603b0a, 0x2020202020202020, 0x202020207468726f, + 0x77206e6577205479, 0x70654572726f7228, 0x60556e737570706f, 0x7274656420576562, 0x46726f6e74207061, + 0x72616d6574657220, 0x747970652027247b, 0x747970656f662076, 0x616c75657d276029, 0x3b0a202020202020, + 0x20207d0a0a202020, 0x20202020202f2f2f, 0x2054686520656e63, 0x6f6465642073697a, 0x65206f662061206c, + 0x6973742c20616674, 0x657220636865636b, 0x696e672074686174, 0x2069747320656c65, 0x6d656e7473206861, + 0x7665206f6e652073, 0x6861706520616e64, 0x20686f6c64206e6f, 0x206c6973742e0a20, 0x202020202020206c, + 0x697374506172616d, 0x6574657253697a65, 0x286c69737429207b, 0x0a20202020202020, 0x2020202020696620, + 0x286c6973742e6974, 0x656d732e6c656e67, 0x7468203e20307866, 0x6666666666666629, 0x0a20202020202020, + 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282257, 0x656246726f6e7420, + 0x6c69737473206361, 0x6e6e6f7420657863, 0x6565642034323934, 0x3936373239352065, 0x6c656d656e747322, + 0x293b0a2020202020, 0x202020202020206c, 0x6574207368617065, 0x203d206e756c6c3b, 0x0a20202020202020, + 0x2020202020666f72, 0x2028636f6e737420, 0x6974656d206f6620, 0x6c6973742e697465, 0x6d7329207b0a2020, + 0x2020202020202020, 0x202020202020636f, 0x6e7374206974656d, 0x5368617065203d20, 0x746869732e76616c, + 0x7565536861706528, 0x6974656d293b0a20, 0x2020202020202020, 0x2020202020202072, 0x6571756972654c69, + 0x7374456c656d656e, 0x7453686170652869, 0x74656d5368617065, 0x293b0a2020202020, 0x2020202020202020, + 0x2020206966202869, 0x74656d5368617065, 0x203d3d3d20226e22, 0x207c7c206974656d, 0x5368617065203d3d, + 0x3d20226222290a20, 0x2020202020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, + 0x654572726f722822, 0x412057656246726f, 0x6e74206c69737420, 0x686f6c6473207374, 0x72696e67732c2074, + 0x7970656420617272, 0x617973206f722074, 0x75706c65733a2073, 0x656e64206e756d62, 0x6572732061732061, + 0x2074797065642061, 0x7272617922293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202873686170, + 0x65203d3d3d206e75, 0x6c6c290a20202020, 0x2020202020202020, 0x2020202020202020, 0x7368617065203d20, + 0x6974656d53686170, 0x653b0a2020202020, 0x2020202020202020, 0x202020656c736520, 0x696620286974656d, + 0x536861706520213d, 0x3d20736861706529, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772054, 0x7970654572726f72, 0x282257656246726f, 0x6e74206c69737420, 0x656c656d656e7473, + 0x20617265206e6f74, 0x206f66206f6e6520, 0x7479706522293b0a, 0x2020202020202020, 0x202020207d0a2020, + 0x2020202020202020, 0x202072657475726e, 0x2035202b206c6973, 0x742e6974656d732e, 0x7265647563652828, + 0x73697a652c206974, 0x656d29203d3e2073, 0x697a65202b207468, 0x69732e706172616d, 0x6574657253697a65, + 0x286974656d292c20, 0x30293b0a20202020, 0x202020207d0a0a20, 0x2020202020202074, 0x75706c6550617261, + 0x6d6574657253697a, 0x652876616c756529, 0x207b0a2020202020, 0x2020202020202069, 0x66202876616c7565, + 0x2e6c656e67746820, 0x3e20323535290a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, + 0x2052616e67654572, 0x726f722822576562, 0x46726f6e74207475, 0x706c65732063616e, 0x6e6f742065786365, + 0x6564203235352065, 0x6c656d656e747322, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e203220, + 0x2b2076616c75652e, 0x7265647563652828, 0x73697a652c20656c, 0x656d656e7429203d, 0x3e2073697a65202b, + 0x20746869732e7061, 0x72616d6574657253, 0x697a6528656c656d, 0x656e74292c203029, 0x3b0a202020202020, + 0x20207d0a0a202020, 0x2020202020747970, 0x6564417272617950, 0x6172616d65746572, 0x53697a652876616c, + 0x756529207b0a2020, 0x2020202020202020, 0x2020696620282161, 0x7272617954797065, 0x732e686173287661, + 0x6c75652e636f6e73, 0x74727563746f7229, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, + 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, 0x6564207479706564, 0x2061727261792024, + 0x7b76616c75652e63, 0x6f6e737472756374, 0x6f722e6e616d657d, 0x60293b0a20202020, 0x2020202020202020, + 0x6966202876616c75, 0x652e6c656e677468, 0x203e203078666666, 0x6666666666290a20, 0x2020202020202020, + 0x2020202020202074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f722822547970, 0x6564206172726179, + 0x732063616e6e6f74, 0x2065786365656420, 0x3432393439363732, 0x393520656c656d65, 0x6e747322293b0a20, + 0x2020202020202020, 0x2020207265747572, 0x6e20747970656441, 0x7272617948656164, 0x657253697a652876, + 0x616c756529202b20, 0x76616c75652e6279, 0x74654c656e677468, 0x3b0a202020202020, 0x20207d0a0a202020, + 0x2020202020656e63, 0x6f6465506172616d, 0x657465722876616c, 0x75652c2076696577, 0x2c206f6666736574, + 0x29207b0a20202020, 0x2020202020202020, 0x7377697463682028, 0x747970656f662076, 0x616c756529207b0a, + 0x2020202020202020, 0x2020202063617365, 0x2022626f6f6c6561, 0x6e223a0a20202020, 0x2020202020202020, + 0x2020202076696577, 0x2e73657455696e74, 0x38286f6666736574, 0x2c2076616c756520, 0x3f20506172616d54, + 0x7970652e626f6f6c, 0x65616e5472756520, 0x3a20506172616d54, 0x7970652e626f6f6c, 0x65616e46616c7365, + 0x293b0a2020202020, 0x2020202020202020, 0x2020207265747572, 0x6e20313b0a202020, 0x2020202020202020, + 0x206361736520226e, 0x756d626572223a0a, 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, + 0x55696e7438286f66, 0x667365742c205061, 0x72616d547970652e, 0x6e756d626572293b, 0x0a20202020202020, + 0x2020202020202020, 0x20766965772e7365, 0x74466c6f61743634, 0x286f666673657420, 0x2b20312c2076616c, + 0x75652c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x2020202020202020, + 0x72657475726e2039, 0x3b0a202020202020, 0x2020202020206361, 0x7365202273747269, 0x6e67223a0a202020, + 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, 0x2e656e636f646553, 0x7472696e67287661, + 0x6c75652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, 0x6361736520226f62, + 0x6a656374223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e656e636f64, + 0x654f626a65637428, 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020202020, + 0x20207d0a20202020, 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, 0x726f722860556e73, + 0x7570706f72746564, 0x2057656246726f6e, 0x7420706172616d65, 0x7465722074797065, 0x2027247b74797065, + 0x6f662076616c7565, 0x7d2760293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x202f2f2f20577269, + 0x7465732061207374, 0x72696e6720776974, 0x682074686520736d, 0x616c6c6573742068, 0x6561646572206974, + 0x73205554462d3820, 0x6c656e6774682061, 0x6c6c6f777320616e, 0x642072657475726e, 0x7320746865206279, + 0x7465732077726974, 0x74656e2e0a202020, 0x2020202020656e63, 0x6f6465537472696e, 0x672876616c75652c, + 0x20766965772c206f, 0x666673657429207b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206279746573, + 0x203d206e65772054, 0x657874456e636f64, 0x657228292e656e63, 0x6f64652876616c75, 0x65293b0a20202020, + 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, 0x203d20737472696e, 0x6748656164657253, + 0x697a652862797465, 0x732e6c656e677468, 0x293b0a2020202020, 0x2020202020202069, 0x6620286865616465, + 0x7253697a65203d3d, 0x3d203229207b0a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, + 0x696e7438286f6666, 0x7365742c20506172, 0x616d547970652e73, 0x6d616c6c53747269, 0x6e67293b0a202020, + 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, 0x74202b20312c2062, + 0x797465732e6c656e, 0x677468293b0a2020, 0x2020202020202020, 0x20207d20656c7365, 0x2069662028686561, + 0x64657253697a6520, 0x3d3d3d203329207b, 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, + 0x7455696e7438286f, 0x66667365742c2050, 0x6172616d54797065, 0x2e737472696e6729, 0x3b0a202020202020, + 0x2020202020202020, 0x2020766965772e73, 0x657455696e743136, 0x286f666673657420, 0x2b20312c20627974, + 0x65732e6c656e6774, 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, + 0x2020207d20656c73, 0x65207b0a20202020, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, + 0x38286f6666736574, 0x2c20506172616d54, 0x7970652e6c6f6e67, 0x537472696e67293b, 0x0a20202020202020, + 0x2020202020202020, 0x20766965772e7365, 0x7455696e74333228, 0x6f6666736574202b, 0x20312c2062797465, + 0x732e6c656e677468, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, + 0x20207d0a20202020, 0x2020202020202020, 0x6e65772055696e74, 0x3841727261792876, 0x6965772e62756666, + 0x65722c2076696577, 0x2e627974654f6666, 0x736574202b206f66, 0x66736574202b2068, 0x656164657253697a, + 0x652c206279746573, 0x2e6c656e67746829, 0x2e73657428627974, 0x6573293b0a202020, 0x2020202020202020, + 0x2072657475726e20, 0x6865616465725369, 0x7a65202b20627974, 0x65732e6c656e6774, 0x683b0a2020202020, + 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f20577269746573, 0x2061206c6973742c, 0x207475706c65206f, + 0x7220747970656420, 0x617272617920616e, 0x642072657475726e, 0x7320746865206279, 0x7465732077726974, + 0x74656e2e0a202020, 0x2020202020656e63, 0x6f64654f626a6563, 0x742876616c75652c, 0x20766965772c206f, + 0x666673657429207b, 0x0a20202020202020, 0x2020202020696620, 0x2876616c75652069, 0x6e7374616e63656f, + 0x662057656246726f, 0x6e744c697374290a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, + 0x6869732e656e636f, 0x64654c6973742876, 0x616c75652c207669, 0x65772c206f666673, 0x6574293b0a202020, 0x2020202020202020, 0x2069662028417272, 0x61792e6973417272, 0x61792876616c7565, 0x29290a2020202020, - 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e74, 0x75706c6550617261, 0x6d6574657253697a, - 0x652876616c756529, 0x3b0a202020202020, 0x2020202020206966, 0x2028697354797065, 0x6441727261792876, - 0x616c756529290a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e7479706564, - 0x4172726179506172, 0x616d657465725369, 0x7a652876616c7565, 0x293b0a2020202020, 0x2020202020202074, - 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, 0x70706f7274656420, 0x57656246726f6e74, - 0x20706172616d6574, 0x6572207479706520, 0x27247b747970656f, 0x662076616c75657d, 0x2760293b0a202020, - 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f2054686520, 0x73686170652c2061, 0x7320746865206465, - 0x636f64657220636f, 0x6d70757465732069, 0x742c206f66206120, 0x76616c7565206162, 0x6f757420746f2062, - 0x6520656e636f6465, 0x642061732061206c, 0x69737420656c656d, 0x656e742e0a202020, 0x202020202076616c, - 0x7565536861706528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020737769, 0x7463682028747970, - 0x656f662076616c75, 0x6529207b0a202020, 0x2020202020202020, 0x2063617365202262, 0x6f6f6c65616e223a, - 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x2262223b0a202020, 0x2020202020202020, - 0x206361736520226e, 0x756d626572223a0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2022, - 0x6e223b0a20202020, 0x2020202020202020, 0x6361736520227374, 0x72696e67223a0a20, 0x2020202020202020, - 0x2020202020202072, 0x657475726e202273, 0x223b0a2020202020, 0x202020202020207d, 0x0a20202020202020, - 0x2020202020696620, 0x2876616c75652069, 0x6e7374616e63656f, 0x662057656246726f, 0x6e744c697374290a, - 0x2020202020202020, 0x2020202020202020, 0x72657475726e2022, 0x4c223b0a20202020, 0x2020202020202020, - 0x6966202841727261, 0x792e697341727261, 0x792876616c756529, 0x290a202020202020, 0x2020202020202020, - 0x202072657475726e, 0x206028247b76616c, 0x75652e6d61702865, 0x6c656d656e74203d, 0x3e20746869732e76, - 0x616c756553686170, 0x6528656c656d656e, 0x7429292e6a6f696e, 0x28222c22297d2960, 0x3b0a202020202020, - 0x2020202020206966, 0x2028697354797065, 0x6441727261792876, 0x616c756529202626, 0x2061727261795479, - 0x7065732e68617328, 0x76616c75652e636f, 0x6e7374727563746f, 0x7229290a20202020, 0x2020202020202020, - 0x2020202072657475, 0x726e206061247b61, 0x7272617954797065, 0x732e676574287661, 0x6c75652e636f6e73, - 0x74727563746f7229, 0x2e636f64657d603b, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772054, - 0x7970654572726f72, 0x2860556e73757070, 0x6f72746564205765, 0x6246726f6e742070, 0x6172616d65746572, - 0x2074797065202724, 0x7b747970656f6620, 0x76616c75657d2760, 0x293b0a2020202020, 0x2020207d0a0a2020, - 0x2020202020202f2f, 0x2f2054686520656e, 0x636f646564207369, 0x7a65206f66206120, 0x6c6973742c206166, - 0x7465722063686563, 0x6b696e6720746861, 0x742069747320656c, 0x656d656e74732068, 0x617665206f6e6520, - 0x736861706520616e, 0x6420686f6c64206e, 0x6f206c6973742e0a, 0x2020202020202020, 0x6c69737450617261, - 0x6d6574657253697a, 0x65286c6973742920, 0x7b0a202020202020, 0x2020202020206966, 0x20286c6973742e69, - 0x74656d732e6c656e, 0x677468203e203078, 0x6666666666666666, 0x290a202020202020, 0x2020202020202020, - 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, 0x57656246726f6e74, 0x206c697374732063, - 0x616e6e6f74206578, 0x6365656420343239, 0x3439363732393520, 0x656c656d656e7473, 0x22293b0a20202020, - 0x2020202020202020, 0x6c65742073686170, 0x65203d206e756c6c, 0x3b0a202020202020, 0x202020202020666f, - 0x722028636f6e7374, 0x206974656d206f66, 0x206c6973742e6974, 0x656d7329207b0a20, 0x2020202020202020, - 0x2020202020202063, 0x6f6e737420697465, 0x6d5368617065203d, 0x20746869732e7661, 0x6c75655368617065, - 0x286974656d293b0a, 0x2020202020202020, 0x2020202020202020, 0x726571756972654c, 0x697374456c656d65, - 0x6e74536861706528, 0x6974656d53686170, 0x65293b0a20202020, 0x2020202020202020, 0x2020202069662028, - 0x6974656d53686170, 0x65203d3d3d20226e, 0x22207c7c20697465, 0x6d5368617065203d, 0x3d3d20226222290a, - 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, - 0x2241205765624672, 0x6f6e74206c697374, 0x20686f6c64732073, 0x7472696e67732c20, 0x7479706564206172, - 0x72617973206f7220, 0x7475706c65733a20, 0x73656e64206e756d, 0x6265727320617320, 0x6120747970656420, - 0x617272617922293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028736861, 0x7065203d3d3d206e, - 0x756c6c290a202020, 0x2020202020202020, 0x2020202020202020, 0x207368617065203d, 0x206974656d536861, - 0x70653b0a20202020, 0x2020202020202020, 0x20202020656c7365, 0x2069662028697465, 0x6d53686170652021, - 0x3d3d207368617065, 0x290a202020202020, 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, - 0x547970654572726f, 0x7228225765624672, 0x6f6e74206c697374, 0x20656c656d656e74, 0x7320617265206e6f, - 0x74206f66206f6e65, 0x207479706522293b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, - 0x2020207265747572, 0x6e2035202b206c69, 0x73742e6974656d73, 0x2e72656475636528, 0x2873697a652c2069, - 0x74656d29203d3e20, 0x73697a65202b2074, 0x6869732e70617261, 0x6d6574657253697a, 0x65286974656d292c, - 0x2030293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x7475706c65506172, 0x616d657465725369, - 0x7a652876616c7565, 0x29207b0a20202020, 0x2020202020202020, 0x6966202876616c75, 0x652e6c656e677468, - 0x203e20323535290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x772052616e676545, - 0x72726f7228225765, 0x6246726f6e742074, 0x75706c6573206361, 0x6e6e6f7420657863, 0x6565642032353520, - 0x656c656d656e7473, 0x22293b0a20202020, 0x2020202020202020, 0x72657475726e2032, 0x202b2076616c7565, - 0x2e72656475636528, 0x2873697a652c2065, 0x6c656d656e742920, 0x3d3e2073697a6520, 0x2b20746869732e70, - 0x6172616d65746572, 0x53697a6528656c65, 0x6d656e74292c2030, 0x293b0a2020202020, 0x2020207d0a0a2020, - 0x2020202020207479, 0x7065644172726179, 0x506172616d657465, 0x7253697a65287661, 0x6c756529207b0a20, - 0x2020202020202020, 0x2020206966202821, 0x6172726179547970, 0x65732e6861732876, 0x616c75652e636f6e, - 0x7374727563746f72, 0x29290a2020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, - 0x654572726f722860, 0x556e737570706f72, 0x7465642074797065, 0x6420617272617920, 0x247b76616c75652e, - 0x636f6e7374727563, 0x746f722e6e616d65, 0x7d60293b0a202020, 0x2020202020202020, 0x206966202876616c, - 0x75652e6c656e6774, 0x68203e2030786666, 0x666666666666290a, 0x2020202020202020, 0x2020202020202020, - 0x7468726f77206e65, 0x772052616e676545, 0x72726f7228225479, 0x7065642061727261, 0x79732063616e6e6f, - 0x7420657863656564, 0x2034323934393637, 0x32393520656c656d, 0x656e747322293b0a, 0x2020202020202020, - 0x2020202072657475, 0x726e207479706564, 0x4172726179486561, 0x64657253697a6528, 0x76616c756529202b, - 0x2076616c75652e62, 0x7974654c656e6774, 0x683b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, - 0x636f646550617261, 0x6d65746572287661, 0x6c75652c20766965, 0x772c206f66667365, 0x7429207b0a202020, - 0x2020202020202020, 0x2073776974636820, 0x28747970656f6620, 0x76616c756529207b, 0x0a20202020202020, - 0x2020202020636173, 0x652022626f6f6c65, 0x616e223a0a202020, 0x2020202020202020, 0x2020202020766965, - 0x772e73657455696e, 0x7438286f66667365, 0x742c2076616c7565, 0x203f20506172616d, 0x547970652e626f6f, - 0x6c65616e54727565, 0x203a20506172616d, 0x547970652e626f6f, 0x6c65616e46616c73, 0x65293b0a20202020, - 0x2020202020202020, 0x2020202072657475, 0x726e20313b0a2020, 0x2020202020202020, 0x2020636173652022, - 0x6e756d626572223a, 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, - 0x66667365742c2050, 0x6172616d54797065, 0x2e6e756d62657229, 0x3b0a202020202020, 0x2020202020202020, - 0x2020766965772e73, 0x6574466c6f617436, 0x34286f6666736574, 0x202b20312c207661, 0x6c75652c20746869, - 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, - 0x393b0a2020202020, 0x2020202020202063, 0x6173652022737472, 0x696e67223a0a2020, 0x2020202020202020, - 0x2020202020207265, 0x7475726e20746869, 0x732e656e636f6465, 0x537472696e672876, 0x616c75652c207669, - 0x65772c206f666673, 0x6574293b0a202020, 0x2020202020202020, 0x206361736520226f, 0x626a656374223a0a, - 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, 0x6869732e656e636f, 0x64654f626a656374, - 0x2876616c75652c20, 0x766965772c206f66, 0x66736574293b0a20, 0x2020202020202020, 0x2020207d0a202020, - 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, - 0x642057656246726f, 0x6e7420706172616d, 0x6574657220747970, 0x652027247b747970, 0x656f662076616c75, - 0x657d2760293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x20202f2f2f205772, 0x6974657320612073, - 0x7472696e67207769, 0x7468207468652073, 0x6d616c6c65737420, 0x6865616465722069, 0x7473205554462d38, - 0x206c656e67746820, 0x616c6c6f77732061, 0x6e64207265747572, 0x6e73207468652062, 0x7974657320777269, - 0x7474656e2e0a2020, 0x202020202020656e, 0x636f646553747269, 0x6e672876616c7565, 0x2c20766965772c20, - 0x6f66667365742920, 0x7b0a202020202020, 0x202020202020636f, 0x6e73742062797465, 0x73203d206e657720, - 0x54657874456e636f, 0x64657228292e656e, 0x636f64652876616c, 0x7565293b0a202020, 0x2020202020202020, - 0x20636f6e73742068, 0x656164657253697a, 0x65203d2073747269, 0x6e67486561646572, 0x53697a6528627974, - 0x65732e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x6966202868656164, 0x657253697a65203d, - 0x3d3d203229207b0a, 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, - 0x667365742c205061, 0x72616d547970652e, 0x736d616c6c537472, 0x696e67293b0a2020, 0x2020202020202020, - 0x2020202020207669, 0x65772e7365745569, 0x6e7438286f666673, 0x6574202b20312c20, 0x62797465732e6c65, - 0x6e677468293b0a20, 0x2020202020202020, 0x2020207d20656c73, 0x6520696620286865, 0x6164657253697a65, - 0x203d3d3d20332920, 0x7b0a202020202020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, - 0x6f66667365742c20, 0x506172616d547970, 0x652e737472696e67, 0x293b0a2020202020, 0x2020202020202020, - 0x202020766965772e, 0x73657455696e7431, 0x36286f6666736574, 0x202b20312c206279, 0x7465732e6c656e67, - 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x202020207d20656c, - 0x7365207b0a202020, 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, - 0x742c20506172616d, 0x547970652e6c6f6e, 0x67537472696e6729, 0x3b0a202020202020, 0x2020202020202020, - 0x2020766965772e73, 0x657455696e743332, 0x286f666673657420, 0x2b20312c20627974, 0x65732e6c656e6774, - 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x2020207d0a202020, - 0x2020202020202020, 0x206e65772055696e, 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, - 0x772e627974654f66, 0x66736574202b206f, 0x6666736574202b20, 0x6865616465725369, 0x7a652c2062797465, - 0x732e6c656e677468, 0x292e736574286279, 0x746573293b0a2020, 0x2020202020202020, 0x202072657475726e, - 0x2068656164657253, 0x697a65202b206279, 0x7465732e6c656e67, 0x74683b0a20202020, 0x202020207d0a0a20, - 0x202020202020202f, 0x2f2f205772697465, 0x732061206c697374, 0x2c207475706c6520, 0x6f72207479706564, - 0x2061727261792061, 0x6e64207265747572, 0x6e73207468652062, 0x7974657320777269, 0x7474656e2e0a2020, - 0x202020202020656e, 0x636f64654f626a65, 0x63742876616c7565, 0x2c20766965772c20, 0x6f66667365742920, - 0x7b0a202020202020, 0x2020202020206966, 0x202876616c756520, 0x696e7374616e6365, 0x6f66205765624672, - 0x6f6e744c69737429, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e656e63, - 0x6f64654c69737428, 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020202020, - 0x2020696620284172, 0x7261792e69734172, 0x7261792876616c75, 0x6529290a20202020, 0x2020202020202020, - 0x2020202072657475, 0x726e20746869732e, 0x656e636f64655475, 0x706c652876616c75, 0x652c20766965772c, - 0x206f666673657429, 0x3b0a202020202020, 0x2020202020206966, 0x2028697354797065, 0x6441727261792876, - 0x616c756529290a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e656e636f64, - 0x6554797065644172, 0x7261792876616c75, 0x652c20766965772c, 0x206f666673657429, 0x3b0a202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x547970654572726f, 0x722860556e737570, 0x706f727465642057, - 0x656246726f6e7420, 0x706172616d657465, 0x7220747970652027, 0x247b747970656f66, 0x2076616c75657d27, - 0x60293b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f205772697465, 0x732061206c697374, - 0x20617420606f6666, 0x7365746020616e64, 0x2072657475726e73, 0x2074686520627974, 0x6573207772697474, - 0x656e2e0a20202020, 0x20202020656e636f, 0x64654c697374286c, 0x6973742c20766965, 0x772c206f66667365, - 0x7429207b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2050, - 0x6172616d54797065, 0x2e6c697374293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, - 0x3332286f66667365, 0x74202b20312c206c, 0x6973742e6974656d, 0x732e6c656e677468, 0x2c20746869732e6c, - 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x20206c6574207772, 0x697474656e203d20, - 0x353b0a2020202020, 0x2020202020202066, 0x6f722028636f6e73, 0x74206974656d206f, 0x66206c6973742e69, - 0x74656d73290a2020, 0x2020202020202020, 0x2020202020207772, 0x697474656e202b3d, 0x20746869732e656e, - 0x636f646550617261, 0x6d65746572286974, 0x656d2c2076696577, 0x2c206f6666736574, 0x202b207772697474, - 0x656e293b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x7772697474656e3b, 0x0a20202020202020, - 0x207d0a0a20202020, 0x20202020656e636f, 0x64655475706c6528, 0x76616c75652c2076, 0x6965772c206f6666, - 0x73657429207b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x286f66667365742c, - 0x20506172616d5479, 0x70652e7475706c65, 0x293b0a2020202020, 0x2020202020202076, 0x6965772e73657455, - 0x696e7438286f6666, 0x736574202b20312c, 0x2076616c75652e6c, 0x656e677468293b0a, 0x2020202020202020, - 0x202020206c657420, 0x7772697474656e20, 0x3d20323b0a202020, 0x2020202020202020, 0x20666f722028636f, - 0x6e737420656c656d, 0x656e74206f662076, 0x616c7565290a2020, 0x2020202020202020, 0x2020202020207772, - 0x697474656e202b3d, 0x20746869732e656e, 0x636f646550617261, 0x6d6574657228656c, 0x656d656e742c2076, - 0x6965772c206f6666, 0x736574202b207772, 0x697474656e293b0a, 0x2020202020202020, 0x2020202072657475, - 0x726e207772697474, 0x656e3b0a20202020, 0x202020207d0a0a20, 0x2020202020202065, 0x6e636f6465547970, - 0x6564417272617928, 0x76616c75652c2076, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x2073706563203d20, 0x6172726179547970, 0x65732e6765742876, 0x616c75652e636f6e, - 0x7374727563746f72, 0x293b0a2020202020, 0x2020202020202069, 0x6620282173706563, 0x290a202020202020, - 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, - 0x6564207479706564, 0x2061727261792024, 0x7b76616c75652e63, 0x6f6e737472756374, 0x6f722e6e616d657d, - 0x60293b0a20202020, 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, 0x203d207479706564, - 0x4172726179486561, 0x64657253697a6528, 0x76616c7565293b0a, 0x2020202020202020, 0x2020202076696577, - 0x2e73657455696e74, 0x38286f6666736574, 0x2c20686561646572, 0x53697a65203d3d3d, 0x2032203f20506172, - 0x616d547970652e73, 0x6d616c6c41727261, 0x795538203a207370, 0x65632e636f646529, 0x3b0a202020202020, - 0x2020202020206966, 0x2028686561646572, 0x53697a65203d3d3d, 0x2032290a20202020, 0x2020202020202020, - 0x2020202076696577, 0x2e73657455696e74, 0x38286f6666736574, 0x202b20312c207661, 0x6c75652e6c656e67, - 0x7468293b0a202020, 0x2020202020202020, 0x20656c73650a2020, 0x2020202020202020, 0x2020202020207669, - 0x65772e7365745569, 0x6e743332286f6666, 0x736574202b20312c, 0x2076616c75652e6c, 0x656e6774682c2074, - 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202066, 0x6f7220286c657420, - 0x696e646578203d20, 0x303b20696e646578, 0x203c2076616c7565, 0x2e6c656e6774683b, 0x202b2b696e646578, - 0x290a202020202020, 0x2020202020202020, 0x2020766965775b73, 0x7065632e73657474, 0x65725d286f666673, - 0x6574202b20686561, 0x64657253697a6520, 0x2b20696e64657820, 0x2a20737065632e62, 0x797465732c207661, - 0x6c75655b696e6465, 0x785d2c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, - 0x2020202072657475, 0x726e206865616465, 0x7253697a65202b20, 0x76616c75652e6279, 0x74654c656e677468, - 0x3b0a202020202020, 0x20207d0a20202020, 0x7d0a0a202020202f, 0x2f204578706f7365, 0x6420286265796f6e, - 0x6420746865206465, 0x6661756c74206077, 0x656246726f6e7460, 0x2073696e676c6574, 0x6f6e2920736f2074, - 0x657374732063616e, 0x20636f6e73747275, 0x6374206164646974, 0x696f6e616c206272, 0x69646765730a2020, - 0x20202f2f20706f69, 0x6e74656420617420, 0x6120646966666572, 0x656e742055524c2c, 0x20652e672e20746f, - 0x2065786572636973, 0x652074686520696e, 0x697469616c2d636f, 0x6e6e656374696f6e, 0x2d6661696c757265, - 0x20706174682e0a20, 0x202020676c6f6261, 0x6c2e57656246726f, 0x6e74427269646765, 0x203d205765624672, - 0x6f6e744272696467, 0x653b0a2020202067, 0x6c6f62616c2e7765, 0x6246726f6e74203d, 0x206e657720576562, - 0x46726f6e74427269, 0x64676528293b0a7d, 0x2928676c6f62616c, 0x54686973293b0a00 + 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e65, 0x6e636f6465547570, 0x6c652876616c7565, + 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, 0x2020202020696620, 0x2869735479706564, + 0x4172726179287661, 0x6c756529290a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e20746869, + 0x732e656e636f6465, 0x5479706564417272, 0x61792876616c7565, 0x2c20766965772c20, 0x6f6666736574293b, + 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772054, 0x7970654572726f72, 0x2860556e73757070, + 0x6f72746564205765, 0x6246726f6e742070, 0x6172616d65746572, 0x2074797065202724, 0x7b747970656f6620, + 0x76616c75657d2760, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f20577269746573, + 0x2061206c69737420, 0x617420606f666673, 0x65746020616e6420, 0x72657475726e7320, 0x7468652062797465, + 0x7320777269747465, 0x6e2e0a2020202020, 0x202020656e636f64, 0x654c697374286c69, 0x73742c2076696577, + 0x2c206f6666736574, 0x29207b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, + 0x667365742c205061, 0x72616d547970652e, 0x6c697374293b0a20, 0x2020202020202020, 0x202020766965772e, + 0x73657455696e7433, 0x32286f6666736574, 0x202b20312c206c69, 0x73742e6974656d73, 0x2e6c656e6774682c, + 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x206c657420777269, + 0x7474656e203d2035, 0x3b0a202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x206974656d206f66, + 0x206c6973742e6974, 0x656d73290a202020, 0x2020202020202020, 0x2020202020777269, 0x7474656e202b3d20, + 0x746869732e656e63, 0x6f6465506172616d, 0x6574657228697465, 0x6d2c20766965772c, 0x206f666673657420, + 0x2b20777269747465, 0x6e293b0a20202020, 0x2020202020202020, 0x72657475726e2077, 0x72697474656e3b0a, + 0x2020202020202020, 0x7d0a0a2020202020, 0x202020656e636f64, 0x655475706c652876, 0x616c75652c207669, + 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, + 0x6f66667365742c20, 0x506172616d547970, 0x652e7475706c6529, 0x3b0a202020202020, 0x2020202020207669, + 0x65772e7365745569, 0x6e7438286f666673, 0x6574202b20312c20, 0x76616c75652e6c65, 0x6e677468293b0a20, + 0x2020202020202020, 0x2020206c65742077, 0x72697474656e203d, 0x20323b0a20202020, 0x2020202020202020, + 0x666f722028636f6e, 0x737420656c656d65, 0x6e74206f66207661, 0x6c7565290a202020, 0x2020202020202020, + 0x2020202020777269, 0x7474656e202b3d20, 0x746869732e656e63, 0x6f6465506172616d, 0x6574657228656c65, + 0x6d656e742c207669, 0x65772c206f666673, 0x6574202b20777269, 0x7474656e293b0a20, 0x2020202020202020, + 0x2020207265747572, 0x6e20777269747465, 0x6e3b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, + 0x636f646554797065, 0x6441727261792876, 0x616c75652c207669, 0x65772c206f666673, 0x657429207b0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x73706563203d2061, 0x7272617954797065, 0x732e676574287661, + 0x6c75652e636f6e73, 0x74727563746f7229, 0x3b0a202020202020, 0x2020202020206966, 0x2028217370656329, + 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, + 0x737570706f727465, 0x6420747970656420, 0x617272617920247b, 0x76616c75652e636f, 0x6e7374727563746f, + 0x722e6e616d657d60, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420686561, 0x64657253697a6520, + 0x3d20747970656441, 0x7272617948656164, 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, + 0x202020766965772e, 0x73657455696e7438, 0x286f66667365742c, 0x2068656164657253, 0x697a65203d3d3d20, + 0x32203f2050617261, 0x6d547970652e736d, 0x616c6c4172726179, 0x5538203a20737065, 0x632e636f6465293b, + 0x0a20202020202020, 0x2020202020696620, 0x2868656164657253, 0x697a65203d3d3d20, 0x32290a2020202020, + 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x286f666673657420, 0x2b20312c2076616c, + 0x75652e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x656c73650a202020, 0x2020202020202020, + 0x2020202020766965, 0x772e73657455696e, 0x743332286f666673, 0x6574202b20312c20, 0x76616c75652e6c65, + 0x6e6774682c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x202020202020666f, + 0x7220286c65742069, 0x6e646578203d2030, 0x3b20696e64657820, 0x3c2076616c75652e, 0x6c656e6774683b20, + 0x2b2b696e64657829, 0x0a20202020202020, 0x2020202020202020, 0x20766965775b7370, 0x65632e7365747465, + 0x725d286f66667365, 0x74202b2068656164, 0x657253697a65202b, 0x20696e646578202a, 0x20737065632e6279, + 0x7465732c2076616c, 0x75655b696e646578, 0x5d2c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, + 0x2020202020202020, 0x2020207265747572, 0x6e20686561646572, 0x53697a65202b2076, 0x616c75652e627974, + 0x654c656e6774683b, 0x0a20202020202020, 0x207d0a202020207d, 0x0a0a202020202f2f, 0x204578706f736564, + 0x20286265796f6e64, 0x2074686520646566, 0x61756c7420607765, 0x6246726f6e746020, 0x73696e676c65746f, + 0x6e2920736f207465, 0x7374732063616e20, 0x636f6e7374727563, 0x7420616464697469, 0x6f6e616c20627269, + 0x646765730a202020, 0x202f2f20706f696e, 0x7465642061742061, 0x2064696666657265, 0x6e742055524c2c20, + 0x652e672e20746f20, 0x6578657263697365, 0x2074686520696e69, 0x7469616c2d636f6e, 0x6e656374696f6e2d, + 0x6661696c75726520, 0x706174682e0a2020, 0x2020676c6f62616c, 0x2e57656246726f6e, 0x7442726964676520, + 0x3d2057656246726f, 0x6e74427269646765, 0x3b0a20202020676c, 0x6f62616c2e776562, 0x46726f6e74203d20, + 0x6e65772057656246, 0x726f6e7442726964, 0x676528293b0a7d29, 0x28676c6f62616c54, 0x686973293b0a0000 }; }; diff --git a/js/core/WebFront.js b/js/core/WebFront.js index d34fd0fa..4dec1234 100644 --- a/js/core/WebFront.js +++ b/js/core/WebFront.js @@ -555,9 +555,21 @@ decodeTuple(view, offset) { requireBytes(view, offset, 2, "tuple header"); - const shapes = []; - const [tuple, consumed] = this.decodeParameters(view.getUint8(offset + 1), view, offset + 2, shapes); - return {value: tuple, bytes: 2 + consumed, shape: `(${shapes.join(",")})`}; + // Inside a list element the nesting is counted while descending, so that a message of thousands of nested tuples + // is refused at the limit and never exhausts the stack. + const counted = this.listElementDepth !== undefined; + if (counted && this.listElementDepth >= maxListTupleDepth) + throw new TypeError(`WebFront list elements nest tuples at most ${maxListTupleDepth} deep`); + if (counted) + ++this.listElementDepth; + try { + const shapes = []; + const [tuple, consumed] = this.decodeParameters(view.getUint8(offset + 1), view, offset + 2, shapes); + return {value: tuple, bytes: 2 + consumed, shape: `(${shapes.join(",")})`}; + } finally { + if (counted) + --this.listElementDepth; + } } /// A list is a 32-bit count followed by that many values of one shape; the elements arrive as a JavaScript array. @@ -569,18 +581,24 @@ const values = []; let cursor = offset + 5; let listShape = null; - for (let index = 0; index < count; ++index) { - requireBytes(view, cursor, 1, "list element type"); - if (view.getUint8(cursor) === ParamType.exception) - throw new TypeError("A WebFront list element cannot be an exception"); - const {value, bytes, shape} = this.decodeValue(view.getUint8(cursor), view, cursor); - requireListElementShape(shape); - if (listShape === null) - listShape = shape; - else if (shape !== listShape) - throw new TypeError("WebFront list elements are not of one type"); - values.push(value); - cursor += bytes; + const outerDepth = this.listElementDepth; + try { + for (let index = 0; index < count; ++index) { + requireBytes(view, cursor, 1, "list element type"); + if (view.getUint8(cursor) === ParamType.exception) + throw new TypeError("A WebFront list element cannot be an exception"); + this.listElementDepth = 0; // each element counts its own tuple nesting + const {value, bytes, shape} = this.decodeValue(view.getUint8(cursor), view, cursor); + requireListElementShape(shape); + if (listShape === null) + listShape = shape; + else if (shape !== listShape) + throw new TypeError("WebFront list elements are not of one type"); + values.push(value); + cursor += bytes; + } + } finally { + this.listElementDepth = outerDepth; } return {value: values, bytes: cursor - offset, shape: "L"}; } @@ -744,7 +762,7 @@ } /// The shape, as the decoder computes it, of a value about to be encoded as a list element. - valueShape(value) { + valueShape(value, depth = 0) { switch (typeof value) { case "boolean": return "b"; @@ -755,8 +773,12 @@ } if (value instanceof WebFrontList) return "L"; - if (Array.isArray(value)) - return `(${value.map(element => this.valueShape(element)).join(",")})`; + if (Array.isArray(value)) { + // Counted while descending: an array nested thousands deep is refused at the limit, not after exhausting the stack. + if (depth >= maxListTupleDepth) + throw new TypeError(`WebFront list elements nest tuples at most ${maxListTupleDepth} deep`); + return `(${value.map(element => this.valueShape(element, depth + 1)).join(",")})`; + } if (isTypedArray(value) && arrayTypes.has(value.constructor)) return `a${arrayTypes.get(value.constructor).code}`; throw new TypeError(`Unsupported WebFront parameter type '${typeof value}'`); diff --git a/test/web/suite/specs/webfront-specs.mjs b/test/web/suite/specs/webfront-specs.mjs index a30060c3..bea6f47f 100644 --- a/test/web/suite/specs/webfront-specs.mjs +++ b/test/web/suite/specs/webfront-specs.mjs @@ -236,6 +236,24 @@ describe('WebFront browser integration', () => { await expectAsync(webFront.cppFunction('listEcho')(webFront.list(['still works']))).toBeResolvedTo(['still works']); }); + it('refuses absurdly deep tuples in a list element at the limit, on sending and on receiving, without exhausting the stack', async () => { + // Sending: 200,000 nested arrays are refused at depth 33, long before the recursion could overflow. + const nest = levels => { let value = 'x'; for (let level = 0; level < levels; ++level) value = [value]; return value; }; + await expectAsync(webFront.cppFunction('deepEcho')(webFront.list([nest(200000)]))) + .toBeRejectedWithError(TypeError, /at most 32 deep/); + // Receiving: a list whose one element is 200,000 one-field tuples (2 bytes of header each) around a boolean. + const levels = 200000; + const bytes = new Uint8Array(5 + 2 * levels + 1); + const view = new DataView(bytes.buffer); + view.setUint8(0, 20); // list + view.setUint32(1, 1, webFront.littleEndian); // one element + for (let level = 0; level < levels; ++level) { bytes[5 + 2 * level] = 18; bytes[6 + 2 * level] = 1; } // tuple of one field + bytes[5 + 2 * levels] = 1; // booleanTrue + expect(() => webFront.decodeParameters(1, view)).toThrowError(TypeError, /at most 32 deep/); + expect(webFront.listElementDepth).toBeUndefined(); // the counter is restored whatever happened + await expectAsync(webFront.cppFunction('listEcho')(webFront.list(['still works']))).toBeResolvedTo(['still works']); + }); + it('refuses to send a heterogeneous or nested list, and C++ refuses a wrong element type', async () => { const echo = webFront.cppFunction('listEcho'); await expectAsync(echo(webFront.list(['text', new Uint8Array(1)]))).toBeRejectedWithError(TypeError, /not of one type/); From 38bc1532464dde96c3005017a9d6b0c8a34855da Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Thu, 5 Nov 2026 22:03:51 +0100 Subject: [PATCH 17/17] Record the list nesting limit in ADR-003 and compare the whole echoed value (#457) --- docs/adr/ADR-003-protocole-binaire-et-bornes.md | 3 ++- docs/adr/README.md | 2 +- test/web/suite/specs/webfront-specs.mjs | 6 ++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index b8d56e59..639544ac 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -23,12 +23,13 @@ | 1.16 | 2026-11-05 | Proposée | Ambroise Leclerc | Chaînes de 65 536 octets et plus : code `longString` à longueur sur 32 bits ; seule borne, la taille de message de la politique (#456, ADR-020). | À renseigner après intégration. | | 1.17 | 2026-11-05 | Proposée | Ambroise Leclerc | Listes homogènes de chaînes, de tuples, de tableaux typés et de bitsets : code `list` à nombre d'éléments sur 32 bits (#457, ADR-020). | À renseigner après intégration. | | 1.18 | 2026-11-05 | Proposée | Ambroise Leclerc | Erreurs typées : le code `exception` porte un code d'erreur avant son message (#458, ADR-020, ADR-004). | À renseigner après intégration. | +| 1.19 | 2026-11-05 | Proposée | Ambroise Leclerc | Les tuples d'un élément de liste s'imbriquent sur 32 niveaux au plus, dans les deux codecs, comptés à la descente ; une liste plus profonde, auparavant acceptée, est refusée (#457, ADR-020). | À renseigner après intégration. | ## État et chronologie **Acceptée jusqu’à la version 1.13.** Les extensions 1.14 et suivantes sont **proposées**, en attente d’intégration. Décision initiale : **2022-02-06** (version 1.0). -Dernière révision : **2026-11-05** (version 1.18). +Dernière révision : **2026-11-05** (version 1.19). Le présent texte expose la décision en vigueur ; le tableau retrace ses états antérieurs. ## Contexte diff --git a/docs/adr/README.md b/docs/adr/README.md index 77ba8383..dea2c0e3 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -43,7 +43,7 @@ verification evidence remain in [PROJECT_STATUS](../PROJECT_STATUS.md). | --- | --- | --- | --- | --- | | [ADR-001](ADR-001-coeur-cpp23-header-only.md) | A header-only C++23 core embedded in the application | Accepted | 2020-04-19 | 1.5 — 2026-10-13 | | [ADR-002](ADR-002-systemes-de-fichiers-composables.md) | An abstract, composable filesystem as the foundation for portability | Accepted | 2023-03-16 | 2.6 — 2026-11-04 | -| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted through 1.13; 1.14 to 1.18 proposed | 2022-02-06 | 1.18 — 2026-11-05 | +| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted through 1.13; 1.14 to 1.19 proposed | 2022-02-06 | 1.19 — 2026-11-05 | | [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted through 2.4; 2.5 and 2.6 proposed | 2022-02-06 | 2.6 — 2026-11-05 | | [ADR-005](ADR-005-evolution-reseau-asio-stdnet.md) | From standalone ASIO to stdnet: anticipating standard networking without blocking progress | Accepted through 3.1; 3.2 proposed | 2022-01-21 | 3.2 — 2026-10-26 | | [ADR-006](ADR-006-taches-structurees-et-arret.md) | Owning, cancelling and joining every task | Accepted | 2026-10-13 | 2.1 — 2026-10-25 | diff --git a/test/web/suite/specs/webfront-specs.mjs b/test/web/suite/specs/webfront-specs.mjs index bea6f47f..39577f5b 100644 --- a/test/web/suite/specs/webfront-specs.mjs +++ b/test/web/suite/specs/webfront-specs.mjs @@ -227,10 +227,8 @@ describe('WebFront browser integration', () => { it('accepts tuples nested 32 deep in a list element, in both codecs, and refuses 33', async () => { const nest = levels => { let value = 'x'; for (let level = 0; level < levels; ++level) value = [value]; return value; }; - const depthOf = value => { let depth = 0; while (Array.isArray(value)) { value = value[0]; ++depth; } return depth; }; - const echoed = await webFront.cppFunction('deepEcho')(webFront.list([nest(32)])); - expect(echoed.length).toBe(1); - expect(depthOf(echoed[0])).toBe(32); + // The whole value comes back: the final string and the nesting, not only its depth. + expect(await webFront.cppFunction('deepEcho')(webFront.list([nest(32)]))).toEqual([nest(32)]); await expectAsync(webFront.cppFunction('deepEcho')(webFront.list([nest(33)]))) .toBeRejectedWithError(TypeError, /at most 32 deep/); await expectAsync(webFront.cppFunction('listEcho')(webFront.list(['still works']))).toBeResolvedTo(['still works']);