From 9dc15f3bdf0f0b5fc82c3df5876ba72cb7a139b9 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Tue, 27 Oct 2026 06:27:09 +0100 Subject: [PATCH 1/5] Add bounded DOM batch protocol and embedded interpreter [#380] --- .gitattributes | 1 + docs/CHANGELOG.md | 8 + docs/EMBEDDED_ASSETS.md | 27 +- docs/PROJECT_STATUS.md | 4 +- .../ADR-003-protocole-binaire-et-bornes.md | 77 +- docs/adr/ADR-016-bootstrap-comme-socle.md | 5 +- include/webfront/WebFront.hpp | 8 + include/webfront/system/DefaultFS.hpp | 7 +- .../webfront/system/DomInterpreterData.hpp | 377 +++++ include/webfront/system/IndexFS.hpp | 2 + include/webfront/system/WebFrontJsData.hpp | 1275 +++++++++-------- include/webfront/weblink/DomBatch.hpp | 207 +++ include/webfront/weblink/Messages.hpp | 1 + include/webfront/weblink/WebLink.hpp | 2 +- js/core/WebFront.js | 11 + js/core/WebFrontAssets.cmake | 3 + js/core/dom-interpreter.mjs | 283 ++++ test/cmake/CheckMinimalCoreAssets.cmake | 1 + test/unit/CMakeLists.txt | 2 +- test/unit/DefaultFSTests.cpp | 4 + test/unit/DomBatchTests.cpp | 107 ++ test/unit/EmbeddedCoreAssetsTests.cpp | 2 + test/web/JasmineTest.cpp | 20 +- test/web/suite/specs/dom-specs.mjs | 201 +++ test/web/suite/specs/webfront-specs.mjs | 1 + 25 files changed, 1992 insertions(+), 644 deletions(-) create mode 100644 include/webfront/system/DomInterpreterData.hpp create mode 100644 include/webfront/weblink/DomBatch.hpp create mode 100644 js/core/dom-interpreter.mjs create mode 100644 test/unit/DomBatchTests.cpp create mode 100644 test/web/suite/specs/dom-specs.mjs diff --git a/.gitattributes b/.gitattributes index fcdb4466..f41c05c2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -42,6 +42,7 @@ # Embedded headers hold the exact bytes of their text sources. Freshness tests # re-read those sources, so Windows checkouts must preserve LF for every asset. js/core/WebFront.js text eol=lf +js/core/dom-interpreter.mjs text eol=lf js/core/bootstrap/* text eol=lf js/core/favicon.ico binary include/webfront/system/WebFrontJsData.hpp text eol=lf diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 188a724f..68a8d61c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,14 @@ ## Unreleased +- DOM batch protocol (#380): bounded command 5, canonical uint32 LEB128 and UTF-8 codec, + interned names and correlated rejection callbacks. The optional embedded `webfront-dom.mjs` + validates the evolving tree before applying mutations, protects page-owned islands, and + rejects executable content and normalized unsafe URLs. Catch2 and the shared Jasmine + suite cover encoding boundaries, hostile batches and real WebSocket dispatch. ADR-003 + specifies the wire contract; ADR-016 adds the module within the existing 150 KiB budget. + + - The single-command test driver can set `--command-timeout` after browser/bootstrap startup, within its unchanged overall `--timeout` deadline (#376). The watchdog regression deliberately delays bootstrap beyond its command limit and requires the command's start marker before accepting diff --git a/docs/EMBEDDED_ASSETS.md b/docs/EMBEDDED_ASSETS.md index 324a0705..7aa51ad8 100644 --- a/docs/EMBEDDED_ASSETS.md +++ b/docs/EMBEDDED_ASSETS.md @@ -1,6 +1,6 @@ # Embedded assets -The C++ library embeds only what every application needs: the browser bridge (`WebFront.js`), the +The C++ library embeds the browser bridge (`WebFront.js`), the optional DOM interpreter (`webfront-dom.mjs`), the fallback page and module, and the bootstrap page and loader of the developer environment, with the pinned release data (`Developer*Data.hpp`). Each is generated from a readable source under `js/core/` (including the default favicon, `js/core/favicon.ico`) into a header under `include/webfront/system/`. Libraries such as React, Babel and Jasmine are not @@ -23,8 +23,8 @@ outside the normative list of [ADR-016](adr/ADR-016-bootstrap-comme-socle.md), o 150 KiB. The budget counts decoded bytes (gzip streams are measured by their trailer), so it does not depend on the encoding; the test also prints the encoded bytes and the size of the headers. Adding a resource means amending the ADR and the list in the script together. `MinimalCoreAssetsRejectsUnlisted` proves the guard fails on an unlisted -header, a hidden payload and an oversized resource. `du -sh include/webfront/system` was about 2.5 MB when the epic began -and is 188 KB now. +header, a hidden payload and an oversized resource. `du -sh include/webfront/system` was about 2.5 MB when the epic began; +the guard reports current sizes. ## Maintenance @@ -39,8 +39,8 @@ ctest --test-dir build -R 'Asset.*Fresh|EmbeddedAssetGenerator|BundleInputs|embe `js/core/EmbedAsset.cmake` renders a header (identity encoded, five 64-bit words per line, big-endian, the last word padded with zeros, `dataSize` excluding the padding) and compares its exact bytes with a checked-in one (`-DCHECK`, so that a header -with CRLF line ends is stale). It assembles bounded lines and joins them once, avoiding a growing-string CMake loop: the six -core assets, about 35 KB, take a fraction of a second. Generation and checking share one renderer, without intermediate files. +with CRLF line ends is stale). It assembles bounded lines and joins them once, avoiding a growing-string CMake loop: the seven +core assets take a fraction of a second. Generation and checking share one renderer, without intermediate files. `EmbeddedAssetGenerator` (`test/cmake/CheckEmbedAsset.cmake`) covers the exact format, empty and binary inputs, word boundaries, padding, a path with spaces, a checkout reached through a symbolic link and a nonzero status for stale or missing files; a per-asset `*AssetFresh` test attributes each stale header, and a Catch2 scenario decodes every header with the C++ @@ -65,3 +65,20 @@ and failure responses. fflate (MIT) and esbuild are locked packages of the developer environment (`webfront-packages.lock.json`), not vendored sources; fflate is not embedded in C++ applications. Package notices travel with the packages that `wf install` downloads. + +## Optional DOM interpreter + +A page that receives DOM batches loads the version-matched module explicitly: + +```js +const { installDomInterpreter } = await import('/webfront-dom.mjs'); +const dom = installDomInterpreter(webFront); +const release = dom.island('panel', document.getElementById('panel')); // empty element +// Call release() before the page takes back the subtree. +``` + +Register C++ callbacks `wfDom.rejected(batchId, reason)` and, when listening to events, +`wfDom.event(nodeId, nameIndex, value)`. The low-level `msg::DomBatch` codec and +`ui.sendDomBatch(batch)` implement [ADR-003](adr/ADR-003-protocole-binaire-et-bornes.md); +the document/node API remains separate work (#381). The default filesystem protects both +`WebFront.js` and `webfront-dom.mjs` from document-root overrides. diff --git a/docs/PROJECT_STATUS.md b/docs/PROJECT_STATUS.md index b239b0b1..3c2051bc 100644 --- a/docs/PROJECT_STATUS.md +++ b/docs/PROJECT_STATUS.md @@ -77,6 +77,8 @@ are retained for investigation; diagnostics alone do not establish a correction. require macOS 14+ and a WindowServer session. Automated CEF coverage is Linux/Xvfb; Windows/macOS CEF deployment is not qualified. WebView2 needs its installed Evergreen runtime; fixed-version runtime packaging, application installers and accessibility remain application work. -- General DOM abstractions and a direct engine transport are proposals, not public APIs. +- The low-level DOM batch command and optional embedded interpreter are implemented; see + [the wire contract](adr/ADR-003-protocole-binaire-et-bornes.md#commande-dom-dombatch-code-5-version-1). + The document/node API (#381) and a direct engine transport remain future work. [ADR-018](adr/ADR-018-acces-au-dom.md) describes DOM islands; [ADR-017](adr/ADR-017-acces-direct-aux-frontends.md) retains transport experiments and acceptance criteria. diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 49b552ec..5c3c558b 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -15,10 +15,12 @@ | 1.8 | 2026-10-16 | Acceptée | Ambroise Leclerc | Plafond indépendant de 125 octets pour les trames de contrôle. | [3ebc181](https://github.com/ambroise-leclerc/WebFront/commit/3ebc181fce48240aa2cecebfe4d3f8cc4966732d) | | 1.9 | 2026-10-20 | Acceptée | Ambroise Leclerc | `std::bitset` compacté dans le format Uint8Array existant, sans nouvel opcode. | [5bc294e](https://github.com/ambroise-leclerc/WebFront/commit/5bc294eb0a9ba81ae7789b425baa6e299e848d97) | +| 1.10 | 2026-10-26 | Acceptée | Ambroise Leclerc | Commande `domBatch` bornée, interpréteur embarqué optionnel et validation transactionnelle (#380). | — | + ## État et chronologie **Acceptée.** Décision initiale : **2022-02-06** (version 1.0). -Dernière révision : **2026-10-20** (version 1.9). +Dernière révision : **2026-10-26** (version 1.10). Le présent texte expose la décision en vigueur ; le tableau retrace ses états antérieurs. ## Contexte @@ -59,6 +61,79 @@ La politique borne chaque message à 64 MiB par défaut ; que tout dépassement refusé dès l’en-tête, fragments compris. Les trames de contrôle ont leur propre plafond de 125 octets. +## Commande DOM (`domBatch`, code 5, version 1) + +Un message WebSocket C++ → navigateur contient exactement un lot : `05 01`, un identifiant de lot +`uint32` **little-endian fixe**, puis zéro ou plusieurs opérations jusqu'à la fin du message. Le plafond +est de **1 048 576 octets, en-tête de six octets inclus**, vérifié avant décodage/allocation par les +codecs C++ et JavaScript. Il est indépendant du plafond WebSocket (qui peut être plus restrictif). +Aucune compatibilité avec le prototype de l'ADR-018 n'est requise. + +Les entiers des opérations sont des `uint32` LEB128 non signés **canoniques** : cinq octets au plus, +quatre bits utiles au maximum dans le cinquième, aucun groupe haut nul superflu. Une chaîne est sa +longueur en octets LEB128, puis ses octets UTF-8 stricts (pas de surrogates, surlongueurs ni code point +au-delà de U+10FFFF ; un BOM initial est conservé). L'opcode et les flags sont des octets bruts. + +| Code | Opération | Opérandes dans l'ordre | +| --- | --- | --- | +| 1 | NAME | index, chaîne | +| 2 | ELEMENT | identifiant, index du tag | +| 3 | TEXT | identifiant, chaîne | +| 4 | ATTRIBUTE | identifiant, index du nom, chaîne | +| 5 | UNSET_ATTRIBUTE | identifiant, index du nom | +| 6 | PROPERTY | identifiant, index du nom, chaîne | +| 7 | SET_TEXT | identifiant de **nœud texte**, chaîne | +| 8 | APPEND | parent, enfant | +| 9 | INSERT_BEFORE | parent, enfant, référence | +| 10 | REMOVE | identifiant (oublie tout le sous-arbre) | +| 11 | LISTEN | identifiant, index de l'événement, flags | +| 12 | UNLISTEN | identifiant, index de l'événement | +| 13 | MOUNT | identifiant, index du nom de l'îlot | + +Les flags de LISTEN sont `1 = preventDefault`, `2 = stopPropagation` ; tous les autres bits sont +interdits. PROPERTY accepte `value` (chaîne), `checked`, `disabled`, `indeterminate` (exactement +`true` ou `false`), et `selectedIndex` (entier décimal de -1 à 2³¹-1). Les objets ne traversent pas le pont. +Les identifiants de nœuds sont non nuls et uniques parmi les nœuds vivants. L'interpréteur borne les +nœuds vivants et les noms à 65 536 entrées chacun, les noms à 1 024 octets UTF-8. + +Les noms sont internés par document navigateur, définis séquentiellement à partir de zéro. Une +référence ne peut viser qu'une définition antérieure dans le flux. Toutes les définitions entièrement +décodées restent acquises même si la suite du lot est rejetée, y compris lors d'une erreur sémantique. +Un message mal formé ne garantit pas que ses définitions restantes soient acquises ; l'émetteur doit +alors abandonner ce document. Les autres opérations sont validées contre un arbre temporaire qui +suit créations, déplacements et suppressions. Une erreur de validation ne modifie aucun nœud DOM. +Un parent texte, un cycle, une référence INSERT_BEFORE qui n'est pas enfant du parent, la réutilisation +d'un nœud supprimé et toute mutation/déplacement/suppression de l'élément d'îlot sont rejetés. + +Le module embarqué distinct `/webfront-dom.mjs` exporte `installDomInterpreter(webFront, extensions)`. +L'application le charge explicitement et prête des éléments HTML autorisés, vides et disjoints par +`interpreter.island(nom, élément)` ; la fonction retournée révoque les identifiants et écouteurs du +sous-arbre. Réenregistrer le même nom et élément conserve les nœuds ; une ancienne révocation ne +révoque pas une inscription ultérieure. Seuls les enfants sont détenus par C++ ; MOUNT ne déplace +pas l'élément prêté. Les nœuds détachés créés par un lot restent connus jusqu'à REMOVE ou à la fin du document. +L'application conserve la responsabilité de révoquer un îlot avant que la page en modifie le sous-arbre. + +La construction utilise exclusivement `createElement` et `createTextNode`, jamais HTML. Les listes +blanches par défaut du module couvrent les éléments HTML usuels, attributs, propriétés et événements. +L'application peut ajouter des tags, attributs et événements par les tableaux `extensions.tags`, +`extensions.attributes`, `extensions.events` (copiés à l'installation). Les noms sont minuscules, +sans namespace ; `script`, les conteneurs exécutables (`iframe`, `object`, `embed`, etc.), les attributs +`on*`, `srcdoc`, `is`, `xmlns`, et les attributs multi-URL `srcset`/`ping` restent interdits. +Les attributs URL simples (`href`, `src`, `action`, etc.) passent par `new URL(valeur, document.baseURI)` ; +seuls `http:`, `https:` et `mailto:` sont autorisés, même dans une extension. `javascript:` et `data:` +sont donc rejetés après normalisation des caractères de contrôle par le navigateur. + +C++ construit `msg::DomBatch` (`weblink/DomBatch.hpp`) et l'envoie par `ui.sendDomBatch(batch)` sur le +contexte du bridge. L'envoi n'est pas attendable et n'accuse pas réception. Tout rejet, y compris +l'absence de module installé ou une exception DOM résiduelle pendant l'application, remonte par le +callback ordinaire `wfDom.rejected(uint32 batchId, string reason)` ; l'application doit l'enregistrer. +Le motif est limité à 4 096 unités UTF-16 avant encodage. Si l'en-tête est tronqué, l'identifiant vaut zéro. +Les événements utilisent `wfDom.event(uint32 nodeId, uint32 nameIndex, string value)` et leurs +Promises sont traitées. Les erreurs de transport/déconnexion ne peuvent pas être signalées par ce canal. +Une exception résiduelle d'application peut laisser des modifications partielles ; elle invalide tous +les handles et îlots de l'interpréteur, obligeant la page à reconstruire/prêter de nouveaux îlots. +L'API publique document/nœuds et les lectures groupées relèvent de #381. + ## Options écartées et motifs - JSON/RPC ou sérialisation automatique des objets : non retenus dans le protocole intégré ; diff --git a/docs/adr/ADR-016-bootstrap-comme-socle.md b/docs/adr/ADR-016-bootstrap-comme-socle.md index 5634ec74..e0271fa2 100644 --- a/docs/adr/ADR-016-bootstrap-comme-socle.md +++ b/docs/adr/ADR-016-bootstrap-comme-socle.md @@ -11,6 +11,8 @@ | 1.4 | 2026-10-24 | Acceptée | Ambroise Leclerc | Qualification du parcours (#316) : ADR-013, ADR-014 et ADR-015 passent à « Acceptée ». | [#348](https://github.com/ambroise-leclerc/WebFront/pull/348) | | 1.5 | 2026-10-24 | Acceptée | Ambroise Leclerc | Documentation consolidée (#317) : la formulation courante décrit directement l'environnement et ses commandes (`wf init`, `install`, `dev`, `check`, `test`, `embed`), sans comparaison avec d'autres outils ; les versions et décisions antérieures de ce tableau et de l'historique Git restent l'historique de la décision. | [#317](https://github.com/ambroise-leclerc/WebFront/issues/317) | +| 1.6 | 2026-10-26 | Acceptée | Ambroise Leclerc | Ajout du module DOM optionnel `DomInterpreterData`, commande bornée de l’ADR-003 (#380) ; budget inchangé. | — | + ## Statut et date **Acceptée le 2026-10-22** (épique #303, issue #304). Cette décision fixe la direction @@ -46,6 +48,7 @@ téléchargée et vérifiée, tandis que le code source de WebFront redevient mi | Ressource | Rôle | | --- | --- | | `WebFrontJsData` | Bridge `WebFront.js` | +| `DomInterpreterData` | Module optionnel `/webfront-dom.mjs`, chargé explicitement par les pages DOM | | `FallbackIndexHtmlData` | Page de repli | | `FallbackModuleData` | Module de repli | | `FaviconData` (alias `IndexFS::WebFrontIco`, source `js/core/favicon.ico`) | Icône par défaut | @@ -82,7 +85,7 @@ autorisés ont l'autorité du bridge et du projet désigné. Un durcissement ult Aucun usage (utilisateur, contributeur, CI) ne requiert Node.js ou npm : seuls restent un compilateur C++23, CMake et le moteur du frontend choisi. Les en-têtes du cœur sont régénérés et vérifiés sans Node (#318), **par CMake seul** : `js/core/EmbedAsset.cmake` rend l'en-tête de chaque -ressource (six sources de moins de 30 Kio, quelques dixièmes de seconde) et compare ses octets exacts à ceux du fichier +ressource (sept sources de moins de 40 Kio, quelques dixièmes de seconde) et compare ses octets exacts à ceux du fichier versionné. Le choix d'un générateur CMake pur plutôt que d'un script exécuté par `wf` tient à ce que la fraîcheur des en-têtes doit être vérifiable par un build qui n'a pas de navigateur (la CI CEF-off, les sanitizers) ; une seule implémentation du rendu subsiste, la compression gzip n'ayant plus d'usage dans le cœur (elle reste celle de `wf embed`, diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index 4a9dc667..7c3b13a0 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -13,6 +13,7 @@ #include "system/WindowsCompat.hpp" #include "Task.hpp" #include "UISubscribers.hpp" +#include "weblink/DomBatch.hpp" #include "weblink/Messages.hpp" #include "weblink/WebLink.hpp" @@ -65,6 +66,13 @@ class BasicUI { link->sendCommand(msg::TextCommand(msg::TxtOpcode::injectScript, script)); } + /// Queues one DOM command on the bridge context. Rejections arrive at wfDom.rejected(batchId, reason). + void sendDomBatch(const msg::DomBatch& batch) const { + const auto link = webFront.findLink(webLinkId); + if (!link) throw ConnectionError("Connection with client lost"); + link->sendCommand(batch); + } + /// The frames queued for this browser and not yet written to the network; 0 once its connection is gone. [[nodiscard]] std::size_t pendingWrites() const { const auto link = webFront.findLink(webLinkId); diff --git a/include/webfront/system/DefaultFS.hpp b/include/webfront/system/DefaultFS.hpp index 8c288387..553ad89e 100644 --- a/include/webfront/system/DefaultFS.hpp +++ b/include/webfront/system/DefaultFS.hpp @@ -12,7 +12,7 @@ namespace webfront::fs { namespace detail { -/// Never touches disk: always serves the embedded, version-matched bridge script and nothing else. +/// Never touches disk: serves the embedded, version-matched bridge script and optional DOM interpreter. /// Listed first in DefaultFS so a configured document root can never shadow it. class ProtectedWebFrontJsFS { public: @@ -20,6 +20,7 @@ class ProtectedWebFrontJsFS { static std::optional open(std::filesystem::path file) { if (file.relative_path().string() == "WebFront.js") return File{IndexFS::WebFrontJs{}}; + if (file.relative_path().string() == "webfront-dom.mjs") return IndexFS::open(file); return {}; } }; @@ -44,14 +45,14 @@ class OptionalDevRootFS { } // namespace detail /// Precedence (Multi<> serves the first provider that returns a file): -/// 1. The embedded, version-matched WebFront.js - always wins, never overridable. +/// 1. The embedded, version-matched WebFront.js and webfront-dom.mjs - never overridable. /// 2. Files under an explicitly configured document root - development only; no disk access at /// all when unconfigured. /// 3. IndexFS's embedded fallback page, favicon, and WebFront.js copy. using DefaultFS = Multi; /// DefaultFS with additional embedded providers, such as the assets an application generated with wf embed. -/// They are consulted after the protected WebFront.js and before the document root, so a +/// They are consulted after the protected bridge resources and before the document root, so a /// development root cannot shadow a component's files. template using DefaultFSWith = Multi; diff --git a/include/webfront/system/DomInterpreterData.hpp b/include/webfront/system/DomInterpreterData.hpp new file mode 100644 index 00000000..1aacc08b --- /dev/null +++ b/include/webfront/system/DomInterpreterData.hpp @@ -0,0 +1,377 @@ +#pragma once + +#include +#include +#include +#include + +namespace webfront::fs::generated { + +struct DomInterpreterData { + static constexpr std::string_view encoding{}; + static constexpr std::size_t dataSize{14391}; + static constexpr std::array data{ + 0x2f2f204144522d30, 0x30333a206f707469, 0x6f6e616c20444f4d, 0x20636f6d6d616e64, 0x20696e7465727072, + 0x657465722e204f6e, 0x6c79207468697320, 0x6d6f64756c652074, 0x6f75636865732074, 0x686520444f4d3b20, + 0x57656246726f6e74, 0x2e6a7320726f7574, 0x657320636f6d6d61, 0x6e6420352e0a636f, 0x6e7374206d617842, + 0x79746573203d2031, 0x303234202a203130, 0x32343b0a636f6e73, 0x74206d6178456e74, 0x72696573203d2036, + 0x353533363b0a636f, 0x6e7374206465636f, 0x646572203d206e65, 0x7720546578744465, 0x636f646572282775, + 0x74662d38272c207b, 0x666174616c3a2074, 0x7275652c2069676e, 0x6f7265424f4d3a20, 0x747275657d293b0a, + 0x636f6e7374206465, 0x6661756c74546167, 0x73203d2027646976, 0x207370616e207020, 0x756c206f6c206c69, + 0x20627574746f6e20, 0x696e707574206c61, 0x62656c2073656c65, 0x6374206f7074696f, 0x6e20666f726d2066, + 0x69656c6473657420, 0x6c6567656e642068, 0x3120683220683320, 0x6834207461626c65, 0x2074686561642074, + 0x626f647920747220, 0x7464207468207374, 0x726f6e6720656d20, 0x736d616c6c206f75, 0x747075742070726f, + 0x6772657373206d65, 0x7465722074657874, 0x6172656120736563, 0x74696f6e20686561, 0x64657220666f6f74, + 0x6572206e61762061, 0x20696d6720627220, 0x6872207072652063, 0x6f6465273b0a636f, 0x6e73742064656661, + 0x756c744174747269, 0x6275746573203d20, 0x27636c6173732069, 0x64207374796c6520, 0x7469746c65207479, + 0x7065206e616d6520, 0x76616c756520706c, 0x616365686f6c6465, 0x72206d696e206d61, 0x7820737465702063, + 0x6865636b65642064, 0x697361626c656420, 0x726561646f6e6c79, 0x20666f7220687265, 0x662073726320616c, + 0x7420726f6c652074, 0x6162696e64657820, 0x636f6c7370616e20, 0x726f777370616e20, 0x7769647468206865, + 0x696768742073656c, 0x6563746564206c61, 0x6e67206469722068, 0x696464656e273b0a, 0x636f6e7374206465, + 0x6661756c74457665, 0x6e7473203d202763, 0x6c69636b2064626c, 0x636c69636b20696e, 0x707574206368616e, + 0x6765207375626d69, 0x74206b6579646f77, 0x6e206b6579757020, 0x666f63757320626c, 0x757220706f696e74, + 0x6572646f776e2070, 0x6f696e7465727570, 0x273b0a636f6e7374, 0x20666f7262696464, 0x656e54616773203d, + 0x206e657720536574, 0x2827736372697074, 0x20696672616d6520, 0x6672616d65206672, 0x616d65736574206f, + 0x626a65637420656d, 0x626564206c696e6b, 0x206d657461206261, 0x7365207374796c65, 0x20737667206d6174, + 0x68272e73706c6974, 0x2827202729293b0a, 0x636f6e737420666f, 0x7262696464656e41, 0x7474726962757465, + 0x73203d206e657720, 0x5365742827737263, 0x646f632069732078, 0x6d6c6e7320737263, 0x73657420696d6167, + 0x6573726373657420, 0x70696e67272e7370, 0x6c69742827202729, 0x293b0a636f6e7374, 0x2075726c41747472, + 0x696275746573203d, 0x206e657720536574, 0x2827687265662073, 0x726320616374696f, 0x6e20666f726d6163, + 0x74696f6e20706f73, 0x7465722063697465, 0x206261636b67726f, 0x756e642064617461, 0x20636f6465626173, + 0x65206d616e696665, 0x7374206c6f6e6764, 0x657363207573656d, 0x61702070726f6669, 0x6c65272e73706c69, + 0x742827202729293b, 0x0a636f6e73742070, 0x726f70657274794e, 0x616d6573203d206e, 0x657720536574285b, + 0x2776616c7565272c, 0x2027636865636b65, 0x64272c2027646973, 0x61626c6564272c20, 0x27696e6465746572, + 0x6d696e617465272c, 0x202773656c656374, 0x6564496e64657827, 0x5d293b0a636f6e73, 0x74206c697374203d, + 0x2074657874203d3e, 0x206e657720536574, 0x28746578742e7370, 0x6c69742827202729, 0x293b0a636f6e7374, + 0x2076616c69644e61, 0x6d65203d206e616d, 0x65203d3e202f5e5b, 0x612d7a5d5b612d7a, 0x302d392d5d2a242f, + 0x2e74657374286e61, 0x6d65293b0a0a6675, 0x6e6374696f6e2072, 0x6561646572286279, 0x74657329207b0a20, + 0x2020206c6574206f, 0x6666736574203d20, 0x363b0a2020202072, 0x657475726e207b0a, 0x2020202020202020, + 0x67657420646f6e65, 0x2829207b20726574, 0x75726e206f666673, 0x6574203d3d3d2062, 0x797465732e6c656e, + 0x6774683b207d2c0a, 0x2020202020202020, 0x627974652829207b, 0x0a20202020202020, 0x2020202020696620, + 0x286f666673657420, 0x3e3d206279746573, 0x2e6c656e67746829, 0x207468726f77206e, 0x65772052616e6765, + 0x4572726f72282774, 0x72756e6361746564, 0x20444f4d20626174, 0x636827293b0a2020, 0x2020202020202020, + 0x202072657475726e, 0x2062797465735b6f, 0x66667365742b2b5d, 0x3b0a202020202020, 0x20207d2c0a202020, + 0x202020202075696e, 0x742829207b0a2020, 0x2020202020202020, 0x20206c6574207661, 0x6c7565203d20303b, + 0x0a20202020202020, 0x2020202020666f72, 0x20286c6574206920, 0x3d20303b2069203c, 0x20353b202b2b6929, + 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, 0x206e657874203d20, 0x746869732e627974, + 0x6528293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x282869203d3d3d20, 0x34202626206e6578, + 0x74203e2031352920, 0x7c7c202869203e20, 0x30202626206e6578, 0x74203d3d3d203029, 0x290a202020202020, + 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f7228276e6f6e63, + 0x616e6f6e6963616c, 0x206f72206f766572, 0x666c6f77696e6720, 0x444f4d2076617269, 0x6e7427293b0a2020, + 0x2020202020202020, 0x2020202020207661, 0x6c7565202b3d2028, 0x6e65787420262031, 0x323729202a203220, + 0x2a2a202837202a20, 0x69293b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x21286e6578742026, + 0x2031323829292072, 0x657475726e207661, 0x6c75653b0a202020, 0x2020202020202020, 0x207d0a2020202020, + 0x2020202020202074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f7228276f7665, 0x72666c6f77696e67, + 0x20444f4d20766172, 0x696e7427293b0a20, 0x202020202020207d, 0x2c0a202020202020, 0x2020737472696e67, + 0x2829207b0a202020, 0x2020202020202020, 0x20636f6e73742073, 0x697a65203d207468, 0x69732e75696e7428, + 0x293b0a2020202020, 0x2020202020202069, 0x66202873697a6520, 0x3e2062797465732e, 0x6c656e677468202d, + 0x206f666673657429, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282774, 0x72756e6361746564, + 0x20444f4d20737472, 0x696e6727293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2076616c7565203d, + 0x206465636f646572, 0x2e6465636f646528, 0x62797465732e7375, 0x626172726179286f, 0x66667365742c206f, + 0x6666736574202b20, 0x73697a6529293b0a, 0x2020202020202020, 0x202020206f666673, 0x6574202b3d207369, + 0x7a653b0a20202020, 0x2020202020202020, 0x72657475726e2076, 0x616c75653b0a2020, 0x2020202020207d2c, + 0x0a202020207d3b0a, 0x7d0a0a2f2a2a2049, 0x6e7374616c6c206f, 0x6e63652070657220, 0x6272696467652f64, + 0x6f63756d656e742e, 0x2054686520706167, 0x65206578706c6963, 0x69746c79206c656e, 0x647320656d707479, + 0x20656c656d656e74, 0x7320776974682069, 0x736c616e64286e61, 0x6d652c20656c656d, 0x656e74292e0a202a, + 0x20457874656e7369, 0x6f6e206c69737473, 0x2061726520636f70, 0x6965643b20657865, 0x63757461626c6520, + 0x746167732f617474, 0x7269627574657320, 0x616e6420756e7361, 0x66652055524c2073, 0x6368656d65732072, + 0x656d61696e20666f, 0x7262696464656e2e, 0x0a202a206170706c, 0x79207468726f7773, 0x206f6e2072656a65, + 0x6374696f6e3b2074, 0x6865206272696467, 0x65207265706f7274, 0x7320697420746f20, 0x432b2b2061732077, + 0x66446f6d2e72656a, 0x6563746564286261, 0x74636849642c2072, 0x6561736f6e292e0a, 0x202a2f0a6578706f, + 0x72742066756e6374, 0x696f6e20696e7374, 0x616c6c446f6d496e, 0x7465727072657465, 0x7228627269646765, + 0x203d20676c6f6261, 0x6c546869732e7765, 0x6246726f6e742c20, 0x657874656e73696f, 0x6e73203d207b7d29, + 0x207b0a2020202069, 0x6620286272696467, 0x652e646f6d426174, 0x636848616e646c65, 0x7229207468726f77, + 0x206e657720457272, 0x6f722827444f4d20, 0x696e746572707265, 0x74657220616c7265, 0x61647920696e7374, + 0x616c6c656427293b, 0x0a20202020636f6e, 0x7374207461677320, 0x3d206c6973742864, 0x656661756c745461, + 0x6773292c20617474, 0x7269627574657320, 0x3d206c6973742864, 0x656661756c744174, 0x7472696275746573, + 0x292c206576656e74, 0x73203d206c697374, 0x2864656661756c74, 0x4576656e7473293b, 0x0a20202020666f72, + 0x2028636f6e737420, 0x5b6b65792c207461, 0x726765745d206f66, 0x205b5b2774616773, 0x272c20746167735d, + 0x2c205b2761747472, 0x696275746573272c, 0x2061747472696275, 0x7465735d2c205b27, 0x6576656e7473272c, + 0x206576656e74735d, 0x5d29207b0a202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6e616d65206f6620, + 0x657874656e73696f, 0x6e735b6b65795d20, 0x7c7c205b5d29207b, 0x0a20202020202020, 0x2020202020696620, + 0x282176616c69644e, 0x616d65286e616d65, 0x29207c7c206e616d, 0x652e737461727473, 0x5769746828276f6e, + 0x2729207c7c0a2020, 0x2020202020202020, 0x202020202020286b, 0x6579203d3d3d2027, 0x7461677327202626, + 0x20666f7262696464, 0x656e546167732e68, 0x6173286e616d6529, 0x29207c7c0a202020, 0x2020202020202020, + 0x2020202020286b65, 0x79203d3d3d202761, 0x7474726962757465, 0x732720262620666f, 0x7262696464656e41, + 0x7474726962757465, 0x732e686173286e61, 0x6d652929290a2020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d20657874, 0x656e73696f6e2024, + 0x7b6e616d657d6029, 0x3b0a202020202020, 0x2020202020207461, 0x726765742e616464, 0x286e616d65293b0a, + 0x2020202020202020, 0x7d0a202020207d0a, 0x20202020636f6e73, 0x74206e616d657320, 0x3d205b5d3b0a2020, + 0x20206c6574206e6f, 0x646573203d206e65, 0x77204d617028293b, 0x0a20202020636f6e, 0x73742069736c616e, + 0x6473203d206e6577, 0x204d617028292c20, 0x6c697374656e6572, 0x73203d206e657720, 0x4d617028293b0a20, + 0x202020636f6e7374, 0x20616c6c6f776564, 0x4174747269627574, 0x65203d206e616d65, 0x203d3e20216e616d, + 0x652e737461727473, 0x5769746828276f6e, 0x2729202626202166, 0x6f7262696464656e, 0x4174747269627574, + 0x65732e686173286e, 0x616d65292026260a, 0x2020202020202020, 0x2861747472696275, 0x7465732e68617328, + 0x6e616d6529207c7c, 0x202f5e2861726961, 0x7c64617461292d5b, 0x612d7a302d392d5d, 0x2b242f2e74657374, + 0x286e616d6529293b, 0x0a20202020636f6e, 0x7374207361666555, 0x726c203d2076616c, 0x7565203d3e205b27, + 0x687474703a272c20, 0x2768747470733a27, 0x2c20276d61696c74, 0x6f3a275d2e696e63, 0x6c75646573286e65, + 0x772055524c287661, 0x6c75652c20646f63, 0x756d656e742e6261, 0x7365555249292e70, 0x726f746f636f6c29, + 0x3b0a0a2020202066, 0x756e6374696f6e20, 0x756e6c697374656e, 0x2869642c20696e64, 0x657829207b0a2020, + 0x202020202020636f, 0x6e7374206b657920, 0x3d2060247b69647d, 0x3a247b696e646578, 0x7d602c20656e7472, + 0x79203d206c697374, 0x656e6572732e6765, 0x74286b6579293b0a, 0x2020202020202020, 0x69662028656e7472, + 0x7929207b0a202020, 0x2020202020202020, 0x20656e7472792e6e, 0x6f64652e72656d6f, 0x76654576656e744c, + 0x697374656e657228, 0x656e7472792e6e61, 0x6d652c20656e7472, 0x792e6c697374656e, 0x6572293b0a202020, + 0x2020202020202020, 0x206c697374656e65, 0x72732e64656c6574, 0x65286b6579293b0a, 0x2020202020202020, + 0x7d0a202020207d0a, 0x2020202066756e63, 0x74696f6e20636c65, 0x616e4c697374656e, 0x657273286c697665, + 0x29207b0a20202020, 0x20202020666f7220, 0x28636f6e7374205b, 0x6b65792c20656e74, 0x72795d206f66206c, + 0x697374656e657273, 0x290a202020202020, 0x2020202020206966, 0x2028216c6976652e, 0x68617328656e7472, + 0x792e696429292075, 0x6e6c697374656e28, 0x656e7472792e6964, 0x2c204e756d626572, 0x286b65792e73706c, + 0x697428273a27295b, 0x315d29293b0a2020, 0x20207d0a20202020, 0x66756e6374696f6e, 0x206c697374656e28, + 0x69642c20696e6465, 0x782c206e616d652c, 0x20666c6167732920, 0x7b0a202020202020, 0x2020756e6c697374, + 0x656e2869642c2069, 0x6e646578293b0a20, 0x2020202020202063, 0x6f6e7374206e6f64, 0x65203d206e6f6465, + 0x732e676574286964, 0x292e6e6f64653b0a, 0x2020202020202020, 0x636f6e7374206c69, 0x7374656e6572203d, + 0x206576656e74203d, 0x3e207b0a20202020, 0x2020202020202020, 0x69662028666c6167, 0x7320262031292065, + 0x76656e742e707265, 0x76656e7444656661, 0x756c7428293b0a20, 0x2020202020202020, 0x2020206966202866, + 0x6c61677320262032, 0x29206576656e742e, 0x73746f7050726f70, 0x61676174696f6e28, 0x293b0a2020202020, + 0x2020202020202063, 0x6f6e73742076616c, 0x7565203d206e616d, 0x65203d3d3d202769, 0x6e70757427207c7c, + 0x206e616d65203d3d, 0x3d20276368616e67, 0x65270a2020202020, 0x2020202020202020, 0x2020203f20286e6f, + 0x64652e7479706520, 0x3d3d3d2027636865, 0x636b626f7827203f, 0x20537472696e6728, 0x6e6f64652e636865, + 0x636b656429203a20, 0x537472696e67286e, 0x6f64652e76616c75, 0x6529290a20202020, 0x2020202020202020, + 0x202020203a206e61, 0x6d65203d3d3d2027, 0x6b6579646f776e27, 0x207c7c206e616d65, 0x203d3d3d20276b65, + 0x79757027203f2065, 0x76656e742e6b6579, 0x203a2027273b0a20, 0x2020202020202020, 0x2020206272696467, + 0x652e63707046756e, 0x6374696f6e282777, 0x66446f6d2e657665, 0x6e7427292869642c, 0x20696e6465782c20, + 0x76616c7565292e63, 0x6174636828282920, 0x3d3e207b7d293b0a, 0x2020202020202020, 0x7d3b0a2020202020, + 0x2020206e6f64652e, 0x6164644576656e74, 0x4c697374656e6572, 0x286e616d652c206c, 0x697374656e657229, + 0x3b0a202020202020, 0x20206c697374656e, 0x6572732e73657428, 0x60247b69647d3a24, 0x7b696e6465787d60, + 0x2c207b69642c206e, 0x6f64652c206e616d, 0x652c206c69737465, 0x6e65727d293b0a20, 0x2020207d0a0a2020, + 0x202066756e637469, 0x6f6e206465636f64, 0x6528627974657329, 0x207b0a2020202020, 0x2020206966202821, + 0x2862797465732069, 0x6e7374616e63656f, 0x662055696e743841, 0x7272617929207c7c, 0x2062797465732e6c, + 0x656e677468203c20, 0x36207c7c20627974, 0x65732e6c656e6774, 0x68203e206d617842, 0x79746573207c7c20, + 0x62797465735b305d, 0x20213d3d2035207c, 0x7c2062797465735b, 0x315d20213d3d2031, 0x290a202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f722827696e7661, 0x6c696420444f4d20, + 0x6261746368206865, 0x61646572206f7220, 0x73697a6527293b0a, 0x2020202020202020, 0x636f6e737420696e, + 0x707574203d207265, 0x6164657228627974, 0x6573292c206f7065, 0x726174696f6e7320, 0x3d205b5d3b0a2020, + 0x2020202020202f2f, 0x2052657461696e20, 0x656163682066756c, 0x6c79206465636f64, 0x6564204e414d4520, + 0x6576656e20696620, 0x61206c6174657220, 0x6f7065726174696f, 0x6e206f722076616c, 0x69646174696f6e20, + 0x72656a6563747320, 0x7468652062617463, 0x682e0a2020202020, 0x2020207768696c65, 0x202821696e707574, + 0x2e646f6e6529207b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206f70203d20, 0x696e7075742e6279, + 0x746528293b0a2020, 0x2020202020202020, 0x2020696620286f70, 0x203c2031207c7c20, 0x6f70203e20313329, + 0x207468726f77206e, 0x6577204572726f72, 0x2860756e6b6e6f77, 0x6e20444f4d206f70, 0x65726174696f6e20, + 0x247b6f707d60293b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742061203d2069, 0x6e7075742e75696e, + 0x7428293b0a202020, 0x2020202020202020, 0x20636f6e73742062, 0x203d205b322c2034, 0x2c20352c20362c20, + 0x382c20392c203131, 0x2c2031322c203133, 0x5d2e696e636c7564, 0x6573286f7029203f, 0x20696e7075742e75, + 0x696e742829203a20, 0x303b0a2020202020, 0x2020202020202063, 0x6f6e73742063203d, 0x206f70203d3d3d20, + 0x39203f20696e7075, 0x742e75696e742829, 0x203a206f70203d3d, 0x3d203131203f2069, 0x6e7075742e627974, + 0x652829203a20303b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742076616c7565, 0x203d205b312c2033, + 0x2c20342c20362c20, 0x375d2e696e636c75, 0x646573286f702920, 0x3f20696e7075742e, 0x737472696e672829, + 0x203a2027273b0a20, 0x2020202020202020, 0x202020696620286f, 0x70203d3d3d203129, 0x207b0a2020202020, + 0x2020202020202020, 0x2020206966202861, 0x20213d3d206e616d, 0x65732e6c656e6774, 0x68207c7c2061203e, + 0x3d206d6178456e74, 0x72696573207c7c20, 0x6e65772054657874, 0x456e636f64657228, 0x292e656e636f6465, + 0x2876616c7565292e, 0x6c656e677468203e, 0x2031303234290a20, 0x2020202020202020, 0x2020202020202020, + 0x2020207468726f77, 0x206e657720457272, 0x6f722827696e7661, 0x6c696420444f4d20, 0x6e616d6520646566, + 0x696e6974696f6e27, 0x293b0a2020202020, 0x2020202020202020, 0x2020206e616d6573, 0x2e70757368287661, + 0x6c7565293b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x6f7065726174696f, + 0x6e732e7075736828, 0x7b6f702c20612c20, 0x622c20632c207661, 0x6c75652c206e616d, 0x654c696d69743a20, + 0x6e616d65732e6c65, 0x6e6774687d293b0a, 0x2020202020202020, 0x7d0a202020202020, 0x202072657475726e, + 0x206f706572617469, 0x6f6e733b0a202020, 0x207d0a0a20202020, 0x66756e6374696f6e, 0x206170706c792862, + 0x7974657329207b0a, 0x2020202020202020, 0x636f6e7374206f70, 0x65726174696f6e73, 0x203d206465636f64, + 0x6528627974657329, 0x3b0a202020202020, 0x20202f2f20412073, 0x6861646f77207472, 0x656520747261636b, + 0x7320746865207374, 0x6174652070726f64, 0x7563656420627920, 0x6576657279207072, 0x65636564696e6720, + 0x6f7065726174696f, 0x6e2c20696e636c75, 0x64696e672072656d, 0x6f76616c7320616e, 0x64206d6f7665732e, + 0x0a20202020202020, 0x20636f6e73742073, 0x6861646f77203d20, 0x6e6577204d617028, 0x41727261792e6672, + 0x6f6d286e6f646573, 0x2c20285b69642c20, 0x656e7472795d2920, 0x3d3e205b69642c20, 0x7b2e2e2e656e7472, + 0x792c206368696c64, 0x72656e3a206e6577, 0x2053657428656e74, 0x72792e6368696c64, 0x72656e297d5d2929, + 0x3b0a202020202020, 0x2020636f6e737420, 0x7374657073203d20, 0x5b5d3b0a20202020, 0x20202020636f6e73, + 0x7420676574203d20, 0x6964203d3e207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420656e74727920, + 0x3d20736861646f77, 0x2e67657428696429, 0x3b0a202020202020, 0x2020202020206966, 0x202821656e747279, + 0x29207468726f7720, 0x6e6577204572726f, 0x722860756e6b6e6f, 0x776e20444f4d206e, 0x6f646520247b6964, + 0x7d60293b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x656e7472793b0a20, 0x202020202020207d, + 0x3b0a202020202020, 0x2020636f6e737420, 0x7772697461626c65, 0x203d206964203d3e, 0x207b0a2020202020, + 0x2020202020202063, 0x6f6e737420656e74, 0x7279203d20676574, 0x286964293b0a2020, 0x2020202020202020, + 0x202069662028656e, 0x7472792e69736c61, 0x6e6429207468726f, 0x77206e6577204572, 0x726f722827746865, + 0x2070616765206f77, 0x6e73207468652069, 0x736c616e6420656c, 0x656d656e7427293b, 0x0a20202020202020, + 0x2020202020726574, 0x75726e20656e7472, 0x793b0a2020202020, 0x2020207d3b0a2020, 0x202020202020636f, + 0x6e737420656c656d, 0x656e74203d206964, 0x203d3e207b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x656e747279203d20, 0x7772697461626c65, 0x286964293b0a2020, 0x2020202020202020, 0x202069662028656e, + 0x7472792e74657874, 0x29207468726f7720, 0x6e6577204572726f, 0x7228276578706563, 0x74656420444f4d20, + 0x656c656d656e7427, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e20656e, 0x7472793b0a202020, + 0x20202020207d3b0a, 0x2020202020202020, 0x636f6e7374206672, 0x657368203d202869, 0x642c20656e747279, + 0x29203d3e207b0a20, 0x2020202020202020, 0x2020206966202821, 0x6964207c7c207368, 0x61646f772e686173, + 0x28696429207c7c20, 0x736861646f772e73, 0x697a65203e3d206d, 0x6178456e74726965, 0x7329207468726f77, + 0x206e657720457272, 0x6f722827696e7661, 0x6c6964206f722064, 0x75706c6963617465, 0x20444f4d206e6f64, + 0x6527293b0a202020, 0x2020202020202020, 0x20736861646f772e, 0x7365742869642c20, 0x7b2e2e2e656e7472, + 0x792c20706172656e, 0x743a206e756c6c2c, 0x206368696c647265, 0x6e3a206e65772053, 0x657428297d293b0a, + 0x2020202020202020, 0x7d3b0a2020202020, 0x202020636f6e7374, 0x20666f7267657420, 0x3d206964203d3e20, + 0x7b0a202020202020, 0x2020202020202f2f, 0x2049746572617469, 0x7665207472617665, 0x7273616c3a20686f, + 0x7374696c65206465, 0x6570207472656573, 0x206d757374206e6f, 0x74206f766572666c, 0x6f7720746865204a, + 0x6176615363726970, 0x7420737461636b2e, 0x0a20202020202020, 0x2020202020636f6e, 0x73742070656e6469, + 0x6e67203d205b6964, 0x5d3b0a2020202020, 0x2020202020202077, 0x68696c6520287065, 0x6e64696e672e6c65, + 0x6e67746829207b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206375, 0x7272656e74203d20, + 0x70656e64696e672e, 0x706f7028292c2065, 0x6e747279203d2067, 0x6574286375727265, 0x6e74293b0a202020, + 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6368696c64206f66, 0x20656e7472792e63, + 0x68696c6472656e29, 0x2070656e64696e67, 0x2e70757368286368, 0x696c64293b0a2020, 0x2020202020202020, + 0x2020202020207368, 0x61646f772e64656c, 0x6574652863757272, 0x656e74293b0a2020, 0x2020202020202020, + 0x20207d0a20202020, 0x202020207d3b0a20, 0x2020202020202066, 0x6f722028636f6e73, 0x74207b6f702c2061, + 0x2c20622c20632c20, 0x76616c75652c206e, 0x616d654c696d6974, 0x7d206f66206f7065, 0x726174696f6e7329, + 0x207b0a2020202020, 0x2020202020202063, 0x6f6e7374206e616d, 0x654174203d20696e, 0x646578203d3e207b, + 0x0a20202020202020, 0x2020202020202020, 0x2069662028696e64, 0x6578203e3d206e61, 0x6d654c696d697429, + 0x207468726f77206e, 0x6577204572726f72, 0x2860756e6b6e6f77, 0x6e20444f4d206e61, 0x6d6520247b696e64, + 0x65787d60293b0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e206e61, 0x6d65735b696e6465, + 0x785d3b0a20202020, 0x2020202020202020, 0x7d3b0a2020202020, 0x2020202020202073, 0x776974636820286f, + 0x7029207b0a202020, 0x2020202020202020, 0x206361736520313a, 0x20627265616b3b0a, 0x2020202020202020, + 0x2020202063617365, 0x20323a207b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e73742074616720, + 0x3d206e616d654174, 0x2862293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2821746167732e68, + 0x6173287461672920, 0x7c7c20666f726269, 0x6464656e54616773, 0x2e68617328746167, 0x2929207468726f77, + 0x206e657720457272, 0x6f722860666f7262, 0x696464656e20444f, 0x4d2074616720247b, 0x7461677d60293b0a, + 0x2020202020202020, 0x2020202020202020, 0x667265736828612c, 0x207b746578743a20, 0x66616c73657d293b, + 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e207b206e6f6465, + 0x732e73657428612c, 0x207b6e6f64653a20, 0x646f63756d656e74, 0x2e63726561746545, 0x6c656d656e742874, + 0x6167297d293b207d, 0x293b0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, + 0x2020202020207d0a, 0x2020202020202020, 0x2020202063617365, 0x20333a0a20202020, 0x2020202020202020, + 0x2020202066726573, 0x6828612c207b7465, 0x78743a2074727565, 0x7d293b0a20202020, 0x2020202020202020, + 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, 0x6f6465732e736574, 0x28612c207b6e6f64, + 0x653a20646f63756d, 0x656e742e63726561, 0x7465546578744e6f, 0x64652876616c7565, 0x297d293b207d293b, + 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, 0x2020202063617365, + 0x20343a2063617365, 0x20353a207b0a2020, 0x2020202020202020, 0x202020202020656c, 0x656d656e74286129, + 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x6e616d65203d206e, 0x616d654174286229, + 0x3b0a202020202020, 0x2020202020202020, 0x2020696620282161, 0x6c6c6f7765644174, 0x7472696275746528, + 0x6e616d6529292074, 0x68726f77206e6577, 0x204572726f722860, 0x666f726269646465, 0x6e20444f4d206174, + 0x7472696275746520, 0x247b6e616d657d60, 0x293b0a2020202020, 0x2020202020202020, 0x202020696620286f, + 0x70203d3d3d203420, 0x26262075726c4174, 0x7472696275746573, 0x2e686173286e616d, 0x6529202626202173, + 0x61666555726c2876, 0x616c756529292074, 0x68726f77206e6577, 0x204572726f722827, 0x756e736166652044, + 0x4f4d2055524c2729, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, 0x7075736828282920, + 0x3d3e206f70203d3d, 0x3d2034203f206e6f, 0x6465732e67657428, 0x61292e6e6f64652e, 0x7365744174747269, + 0x62757465286e616d, 0x652c2076616c7565, 0x29203a206e6f6465, 0x732e676574286129, 0x2e6e6f64652e7265, + 0x6d6f766541747472, 0x6962757465286e61, 0x6d6529293b0a2020, 0x2020202020202020, 0x2020202020206272, + 0x65616b3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x61736520363a207b, + 0x0a20202020202020, 0x2020202020202020, 0x20656c656d656e74, 0x2861293b0a202020, 0x2020202020202020, + 0x2020202020636f6e, 0x7374206e616d6520, 0x3d206e616d654174, 0x2862293b0a202020, 0x2020202020202020, + 0x2020202020696620, 0x282170726f706572, 0x74794e616d65732e, 0x686173286e616d65, 0x2929207468726f77, + 0x206e657720457272, 0x6f722860666f7262, 0x696464656e20444f, 0x4d2070726f706572, 0x747920247b6e616d, + 0x657d60293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20285b2763686563, 0x6b6564272c202764, + 0x697361626c656427, 0x2c2027696e646574, 0x65726d696e617465, 0x275d2e696e636c75, 0x646573286e616d65, + 0x2920262620215b27, 0x74727565272c2027, 0x66616c7365275d2e, 0x696e636c75646573, 0x2876616c75652929, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, 0x72726f722827696e, + 0x76616c696420444f, 0x4d20626f6f6c6561, 0x6e27293b0a202020, 0x2020202020202020, 0x2020202020696620, + 0x286e616d65203d3d, 0x3d202773656c6563, 0x746564496e646578, 0x272026262028212f, 0x5e2d3f5c642b242f, + 0x2e74657374287661, 0x6c756529207c7c20, 0x214e756d6265722e, 0x6973496e74656765, 0x72284e756d626572, + 0x2876616c75652929, 0x207c7c204e756d62, 0x65722876616c7565, 0x29203c202d31207c, 0x7c204e756d626572, + 0x2876616c75652920, 0x3e20323134373438, 0x3336343729290a20, 0x2020202020202020, 0x2020202020202020, + 0x2020207468726f77, 0x206e657720457272, 0x6f722827696e7661, 0x6c696420444f4d20, 0x73656c6563746564, + 0x496e64657827293b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742063, 0x6f6e766572746564, + 0x203d206e616d6520, 0x3d3d3d202776616c, 0x756527203f207661, 0x6c7565203a206e61, 0x6d65203d3d3d2027, + 0x73656c6563746564, 0x496e64657827203f, 0x204e756d62657228, 0x76616c756529203a, 0x2076616c7565203d, + 0x3d3d202774727565, 0x273b0a2020202020, 0x2020202020202020, 0x2020207374657073, 0x2e70757368282829, + 0x203d3e207b206e6f, 0x6465732e67657428, 0x61292e6e6f64655b, 0x6e616d655d203d20, 0x636f6e7665727465, + 0x643b207d293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, + 0x20207d0a20202020, 0x2020202020202020, 0x6361736520373a0a, 0x2020202020202020, 0x2020202020202020, + 0x6966202821777269, 0x7461626c65286129, 0x2e74657874292074, 0x68726f77206e6577, 0x204572726f722827, + 0x5345545f54455854, 0x2072657175697265, 0x7320612074657874, 0x206e6f646527293b, 0x0a20202020202020, + 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e207b206e6f6465, 0x732e676574286129, + 0x2e6e6f64652e6461, 0x7461203d2076616c, 0x75653b207d293b0a, 0x2020202020202020, 0x2020202020202020, + 0x627265616b3b0a20, 0x2020202020202020, 0x2020206361736520, 0x383a206361736520, 0x393a207b0a202020, + 0x2020202020202020, 0x2020202020636f6e, 0x737420706172656e, 0x74203d2067657428, 0x61292c206368696c, + 0x64203d2077726974, 0x61626c652862293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028706172, + 0x656e742e74657874, 0x29207468726f7720, 0x6e6577204572726f, 0x7228276120746578, 0x74206e6f64652063, + 0x616e6e6f74206f77, 0x6e206368696c6472, 0x656e27293b0a2020, 0x2020202020202020, 0x2020202020206966, + 0x20286f70203d3d3d, 0x2039202626206765, 0x742863292e706172, 0x656e7420213d3d20, 0x6129207468726f77, + 0x206e657720457272, 0x6f722827696e7365, 0x72744265666f7265, 0x207265666572656e, 0x6365206973206e6f, + 0x742061206368696c, 0x6427293b0a202020, 0x2020202020202020, 0x2020202020666f72, 0x20286c657420616e, + 0x636573746f72203d, 0x20613b20616e6365, 0x73746f7220213d3d, 0x206e756c6c3b2061, 0x6e636573746f7220, + 0x3d2067657428616e, 0x636573746f72292e, 0x706172656e74290a, 0x2020202020202020, 0x2020202020202020, + 0x2020202069662028, 0x616e636573746f72, 0x203d3d3d20622920, 0x7468726f77206e65, 0x77204572726f7228, + 0x27444f4d20637963, 0x6c6527293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20286368696c642e, + 0x706172656e742021, 0x3d3d206e756c6c29, 0x2067657428636869, 0x6c642e706172656e, 0x74292e6368696c64, + 0x72656e2e64656c65, 0x74652862293b0a20, 0x2020202020202020, 0x2020202020202063, 0x68696c642e706172, + 0x656e74203d20613b, 0x0a20202020202020, 0x2020202020202020, 0x20706172656e742e, 0x6368696c6472656e, + 0x2e6164642862293b, 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, + 0x3e206f70203d3d3d, 0x2038203f206e6f64, 0x65732e6765742861, 0x292e6e6f64652e61, 0x7070656e64436869, + 0x6c64286e6f646573, 0x2e6765742862292e, 0x6e6f646529203a0a, 0x2020202020202020, 0x2020202020202020, + 0x202020206e6f6465, 0x732e676574286129, 0x2e6e6f64652e696e, 0x736572744265666f, 0x7265286e6f646573, + 0x2e6765742862292e, 0x6e6f64652c206e6f, 0x6465732e67657428, 0x63292e6e6f646529, 0x293b0a2020202020, + 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, + 0x2020202063617365, 0x2031303a207b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420656e74, + 0x7279203d20777269, 0x7461626c65286129, 0x3b0a202020202020, 0x2020202020202020, 0x202069662028656e, + 0x7472792e70617265, 0x6e7420213d3d206e, 0x756c6c2920676574, 0x28656e7472792e70, 0x6172656e74292e63, + 0x68696c6472656e2e, 0x64656c6574652861, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, + 0x2072656d6f766564, 0x203d205b5d3b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e73742070656e, + 0x64696e67203d205b, 0x615d3b0a20202020, 0x2020202020202020, 0x202020207768696c, 0x65202870656e6469, + 0x6e672e6c656e6774, 0x6829207b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742069, + 0x64203d2070656e64, 0x696e672e706f7028, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202072, + 0x656d6f7665642e70, 0x757368286964293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020666f72, + 0x2028636f6e737420, 0x6368696c64206f66, 0x2067657428696429, 0x2e6368696c647265, 0x6e292070656e6469, + 0x6e672e7075736828, 0x6368696c64293b0a, 0x2020202020202020, 0x2020202020202020, 0x7d0a202020202020, + 0x2020202020202020, 0x2020666f72676574, 0x2861293b0a202020, 0x2020202020202020, 0x2020202020737465, + 0x70732e7075736828, 0x2829203d3e207b0a, 0x2020202020202020, 0x2020202020202020, 0x202020206e6f6465, + 0x732e676574286129, 0x2e6e6f64652e7265, 0x6d6f766528293b0a, 0x2020202020202020, 0x2020202020202020, + 0x20202020666f7220, 0x28636f6e73742069, 0x64206f662072656d, 0x6f76656429206e6f, 0x6465732e64656c65, + 0x7465286964293b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020636c6561, 0x6e4c697374656e65, + 0x7273286e6f646573, 0x293b0a2020202020, 0x2020202020202020, 0x2020207d293b0a20, 0x2020202020202020, + 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, + 0x636173652031313a, 0x2063617365203132, 0x3a207b0a20202020, 0x2020202020202020, 0x20202020656c656d, + 0x656e742861293b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206e61, 0x6d65203d206e616d, + 0x6541742862293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821657665, 0x6e74732e68617328, + 0x6e616d6529207c7c, 0x2063203e20332920, 0x7468726f77206e65, 0x77204572726f7228, 0x27696e76616c6964, + 0x20444f4d20657665, 0x6e74206f7220666c, 0x61677327293b0a20, 0x2020202020202020, 0x2020202020202073, + 0x746570732e707573, 0x68282829203d3e20, 0x6f70203d3d3d2031, 0x31203f206c697374, 0x656e28612c20622c, + 0x206e616d652c2063, 0x29203a20756e6c69, 0x7374656e28612c20, 0x6229293b0a202020, 0x2020202020202020, + 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x7d0a202020202020, 0x2020202020206361, + 0x73652031333a207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e7374206e, 0x616d65203d206e61, + 0x6d6541742862292c, 0x206e6f6465203d20, 0x69736c616e64732e, 0x676574286e616d65, 0x293f2e656c656d65, + 0x6e743b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x216e6f6465292074, 0x68726f77206e6577, + 0x204572726f722860, 0x756e6b6e6f776e20, 0x444f4d2069736c61, 0x6e6420247b6e616d, 0x657d60293b0a2020, + 0x2020202020202020, 0x2020202020206966, 0x202841727261792e, 0x66726f6d28736861, 0x646f772e76616c75, + 0x65732829292e736f, 0x6d6528656e747279, 0x203d3e20656e7472, 0x792e6e6f6465203d, 0x3d3d206e6f646529, + 0x29207468726f7720, 0x6e6577204572726f, 0x72282769736c616e, 0x6420616c72656164, 0x79206d6f756e7465, + 0x6427293b0a202020, 0x2020202020202020, 0x2020202020667265, 0x736828612c207b6e, 0x6f64652c20746578, + 0x743a2066616c7365, 0x2c2069736c616e64, 0x3a20747275657d29, 0x3b0a202020202020, 0x2020202020202020, + 0x202073746570732e, 0x7075736828282920, 0x3d3e206e6f646573, 0x2e73657428612c20, 0x7b6e6f64657d2929, + 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x20202020207d0a20, + 0x2020202020202020, 0x2020207d0a202020, 0x20202020207d0a20, 0x202020202020202f, 0x2f20526573696475, + 0x616c20444f4d2065, 0x7863657074696f6e, 0x732028666f722065, 0x78616d706c652061, 0x2070616765277320, + 0x637573746f6d2065, 0x6c656d656e742920, 0x70726f7061676174, 0x6520746f20746865, 0x2062726964676520, + 0x617320612072656a, 0x656374696f6e2e0a, 0x2020202020202020, 0x2f2f20496e207468, 0x6174206361736520, + 0x6469736361726420, 0x68616e646c65733a, 0x2074686520616374, 0x75616c20444f4d20, 0x6d61792068617665, + 0x206265656e207061, 0x72746c7920636861, 0x6e67656420616e64, 0x206d757374206265, 0x206c656e74206167, + 0x61696e2e0a202020, 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202066, 0x6f722028636f6e73, + 0x742073746570206f, 0x6620737465707329, 0x207374657028293b, 0x0a20202020202020, 0x207d206361746368, + 0x20286572726f7229, 0x207b0a2020202020, 0x2020202020202063, 0x6c65616e4c697374, 0x656e657273286e65, + 0x77204d6170282929, 0x3b0a202020202020, 0x2020202020206e6f, 0x6465732e636c6561, 0x7228293b0a202020, + 0x2020202020202020, 0x2069736c616e6473, 0x2e636c6561722829, 0x3b0a202020202020, 0x2020202020207468, + 0x726f77206572726f, 0x723b0a2020202020, 0x2020207d0a202020, 0x2020202020666f72, 0x2028636f6e737420, + 0x5b69642c20656e74, 0x72795d206f662073, 0x6861646f77292065, 0x6e7472792e6e6f64, 0x65203d206e6f6465, + 0x732e676574286964, 0x292e6e6f64653b0a, 0x2020202020202020, 0x6e6f646573203d20, 0x736861646f773b0a, + 0x202020207d0a0a20, 0x202020636f6e7374, 0x20617069203d207b, 0x0a20202020202020, 0x206170706c792c0a, + 0x2020202020202020, 0x69736c616e64286e, 0x616d652c20656c65, 0x6d656e7429207b0a, 0x2020202020202020, + 0x2020202069662028, 0x2128656c656d656e, 0x7420696e7374616e, 0x63656f662048544d, 0x4c456c656d656e74, + 0x29207c7c20217461, 0x67732e6861732865, 0x6c656d656e742e6c, 0x6f63616c4e616d65, 0x29207c7c20666f72, + 0x62696464656e5461, 0x67732e6861732865, 0x6c656d656e742e6c, 0x6f63616c4e616d65, 0x29290a2020202020, + 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, 0x654572726f722827, 0x616e2069736c616e, + 0x64206d7573742062, 0x6520616e20616c6c, 0x6f7765642048544d, 0x4c20656c656d656e, 0x7427293b0a202020, + 0x2020202020202020, 0x20636f6e73742070, 0x726576696f757320, 0x3d2069736c616e64, 0x732e676574286e61, + 0x6d65293b0a202020, 0x2020202020202020, 0x2069662028707265, 0x76696f7573202626, 0x2070726576696f75, + 0x732e656c656d656e, 0x7420213d3d20656c, 0x656d656e74292074, 0x68726f77206e6577, 0x204572726f722827, + 0x69736c616e64206e, 0x616d6520616c7265, 0x616479206c656e74, 0x27293b0a20202020, 0x2020202020202020, + 0x6966202821707265, 0x76696f757329207b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028656c65, + 0x6d656e742e636869, 0x6c644e6f6465732e, 0x6c656e677468207c, 0x7c2041727261792e, 0x66726f6d2869736c, + 0x616e64732e76616c, 0x7565732829292e73, 0x6f6d6528656e7472, 0x79203d3e20656e74, 0x72792e656c656d65, + 0x6e74203d3d3d2065, 0x6c656d656e74207c, 0x7c20656e7472792e, 0x656c656d656e742e, 0x636f6e7461696e73, + 0x28656c656d656e74, 0x29207c7c20656c65, 0x6d656e742e636f6e, 0x7461696e7328656e, 0x7472792e656c656d, + 0x656e742929290a20, 0x2020202020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720457272, + 0x6f72282769736c61, 0x6e6473206d757374, 0x20626520656d7074, 0x7920616e64206469, 0x736a6f696e742729, + 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420746f6b656e20, + 0x3d207b656c656d65, 0x6e747d3b0a202020, 0x2020202020202020, 0x2069736c616e6473, 0x2e736574286e616d, + 0x652c20746f6b656e, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e202829, 0x203d3e207b0a2020, + 0x2020202020202020, 0x2020202020206966, 0x202869736c616e64, 0x732e676574286e61, 0x6d652920213d3d20, + 0x746f6b656e292072, 0x657475726e3b0a20, 0x2020202020202020, 0x2020202020202069, 0x736c616e64732e64, + 0x656c657465286e61, 0x6d65293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x73742072656d6f76, + 0x6564203d206e6577, 0x2053657428293b0a, 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, + 0x7374205b69642c20, 0x656e7472795d206f, 0x66206e6f64657329, 0x207b0a2020202020, 0x2020202020202020, + 0x2020202020202069, 0x662028656e747279, 0x2e6e6f6465203d3d, 0x3d20656c656d656e, 0x74207c7c20656c65, + 0x6d656e742e636f6e, 0x7461696e7328656e, 0x7472792e6e6f6465, 0x29292072656d6f76, 0x65642e6164642869, + 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x656c7365207b0a20, 0x2020202020202020, + 0x2020202020202020, 0x2020202020202066, 0x6f7220286c657420, 0x706172656e74203d, 0x20656e7472792e70, + 0x6172656e743b2070, 0x6172656e7420213d, 0x3d206e756c6c3b20, 0x706172656e74203d, 0x206e6f6465732e67, + 0x657428706172656e, 0x74293f2e70617265, 0x6e74203f3f206e75, 0x6c6c290a20202020, 0x2020202020202020, + 0x2020202020202020, 0x2020202020202020, 0x696620286e6f6465, 0x732e676574287061, 0x72656e74293f2e6e, + 0x6f6465203d3d3d20, 0x656c656d656e7429, 0x207b2072656d6f76, 0x65642e6164642869, 0x64293b2062726561, + 0x6b3b207d0a202020, 0x2020202020202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202020, + 0x2020207d0a202020, 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6964206f66207265, + 0x6d6f76656429206e, 0x6f6465732e64656c, 0x657465286964293b, 0x0a20202020202020, 0x2020202020202020, + 0x20636c65616e4c69, 0x7374656e65727328, 0x6e6f646573293b0a, 0x2020202020202020, 0x202020207d3b0a20, + 0x202020202020207d, 0x2c0a202020207d3b, 0x0a20202020627269, 0x6467652e646f6d42, 0x6174636848616e64, + 0x6c6572203d206170, 0x706c793b0a202020, 0x2072657475726e20, 0x6170693b0a7d0a00 + }; +}; + +} // namespace webfront::fs::generated diff --git a/include/webfront/system/IndexFS.hpp b/include/webfront/system/IndexFS.hpp index 9ab3c224..d1383d26 100644 --- a/include/webfront/system/IndexFS.hpp +++ b/include/webfront/system/IndexFS.hpp @@ -7,6 +7,7 @@ #include "FallbackModuleData.hpp" #include "FaviconData.hpp" #include "FileSystem.hpp" +#include "DomInterpreterData.hpp" #include "WebFrontJsData.hpp" #include @@ -33,6 +34,7 @@ class IndexFS { auto filename = file.relative_path().string(); if (filename == "index.html") return File(IndexHtml{}); if (filename == "favicon.ico") return File{WebFrontIco{}}; + if (filename == "webfront-dom.mjs") return File{generated::DomInterpreterData{}}; if (filename == "WebFront.js") return File{WebFrontJs{}}; if (filename == "webfront-fallback.mjs") return File{FallbackModule{}}; return {}; diff --git a/include/webfront/system/WebFrontJsData.hpp b/include/webfront/system/WebFrontJsData.hpp index ff99a678..4c2edb44 100644 --- a/include/webfront/system/WebFrontJsData.hpp +++ b/include/webfront/system/WebFrontJsData.hpp @@ -9,647 +9,662 @@ namespace webfront::fs::generated { struct WebFrontJsData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{25527}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{26156}; + static constexpr std::array data{ 0x2f2f2f2040627269, 0x65662042726f7773, 0x65722d7369646520, 0x57656246726f6e74, 0x206272696467652e, 0x0a0a2866756e6374, 0x696f6e2028676c6f, 0x62616c29207b0a20, 0x2020202275736520, 0x737472696374223b, 0x0a0a20202020636f, 0x6e737420436f6d6d, 0x616e64203d204f62, 0x6a6563742e667265, 0x657a65287b0a2020, 0x2020202020206861, 0x6e647368616b653a, 0x20302c0a20202020, 0x2020202061636b3a, 0x20312c0a20202020, 0x2020202074657874, 0x436f6d6d616e643a, 0x20322c0a20202020, 0x2020202063616c6c, 0x46756e6374696f6e, - 0x3a20332c0a202020, 0x202020202066756e, 0x6374696f6e526574, 0x75726e3a20342c0a, 0x202020207d293b0a, - 0x0a20202020636f6e, 0x7374205465787443, 0x6f6d6d616e64203d, 0x204f626a6563742e, 0x667265657a65287b, - 0x64656275674c6f67, 0x3a20302c20696e6a, 0x6563745363726970, 0x743a20317d293b0a, 0x0a20202020636f6e, - 0x737420506172616d, 0x54797065203d204f, 0x626a6563742e6672, 0x65657a65287b0a20, 0x2020202020202075, - 0x6e646566696e6564, 0x3a20302c0a202020, 0x2020202020626f6f, 0x6c65616e54727565, 0x3a20312c0a202020, - 0x2020202020626f6f, 0x6c65616e46616c73, 0x653a20322c0a2020, 0x2020202020206e75, 0x6d6265723a20332c, - 0x0a20202020202020, 0x20736d616c6c5374, 0x72696e673a20342c, 0x0a20202020202020, 0x20737472696e673a, - 0x20352c0a20202020, 0x2020202065786365, 0x7074696f6e3a2036, 0x2c0a202020202020, 0x2020736d616c6c41, - 0x7272617955383a20, 0x372c0a2020202020, 0x2020206172726179, 0x55383a20382c0a20, 0x2020202020202061, - 0x72726179383a2039, 0x2c0a202020202020, 0x2020617272617955, 0x31363a2031302c0a, 0x2020202020202020, - 0x617272617931363a, 0x2031312c0a202020, 0x2020202020617272, 0x61795533323a2031, 0x322c0a2020202020, - 0x2020206172726179, 0x33323a2031332c0a, 0x2020202020202020, 0x6172726179553634, 0x3a2031342c0a2020, - 0x2020202020206172, 0x72617936343a2031, 0x352c0a2020202020, 0x2020206172726179, 0x466c6f61743a2031, - 0x362c0a2020202020, 0x2020206172726179, 0x446f75626c653a20, 0x31372c0a20202020, 0x202020207475706c, - 0x653a2031382c0a20, 0x2020207d293b0a0a, 0x20202020636f6e73, 0x7420617272617954, 0x79706573203d206e, - 0x6577204d6170285b, 0x0a20202020202020, 0x205b55696e743841, 0x727261792c207b63, 0x6f64653a20506172, - 0x616d547970652e61, 0x7272617955382c20, 0x62797465733a2031, 0x2c20676574746572, 0x3a20226765745569, - 0x6e7438222c207365, 0x747465723a202273, 0x657455696e743822, 0x7d5d2c0a20202020, 0x202020205b496e74, - 0x3841727261792c20, 0x7b636f64653a2050, 0x6172616d54797065, 0x2e6172726179382c, 0x2062797465733a20, - 0x312c206765747465, 0x723a202267657449, 0x6e7438222c207365, 0x747465723a202273, 0x6574496e7438227d, - 0x5d2c0a2020202020, 0x2020205b55696e74, 0x313641727261792c, 0x207b636f64653a20, 0x506172616d547970, - 0x652e617272617955, 0x31362c2062797465, 0x733a20322c206765, 0x747465723a202267, 0x657455696e743136, - 0x222c207365747465, 0x723a202273657455, 0x696e743136227d5d, 0x2c0a202020202020, 0x20205b496e743136, - 0x41727261792c207b, 0x636f64653a205061, 0x72616d547970652e, 0x617272617931362c, 0x2062797465733a20, - 0x322c206765747465, 0x723a202267657449, 0x6e743136222c2073, 0x65747465723a2022, 0x736574496e743136, - 0x227d5d2c0a202020, 0x20202020205b5569, 0x6e74333241727261, 0x792c207b636f6465, 0x3a20506172616d54, - 0x7970652e61727261, 0x795533322c206279, 0x7465733a20342c20, 0x6765747465723a20, 0x2267657455696e74, - 0x3332222c20736574, 0x7465723a20227365, 0x7455696e74333222, 0x7d5d2c0a20202020, 0x202020205b496e74, - 0x333241727261792c, 0x207b636f64653a20, 0x506172616d547970, 0x652e617272617933, 0x322c206279746573, - 0x3a20342c20676574, 0x7465723a20226765, 0x74496e743332222c, 0x207365747465723a, 0x2022736574496e74, - 0x3332227d5d2c0a20, 0x202020202020205b, 0x42696755696e7436, 0x3441727261792c20, 0x7b636f64653a2050, - 0x6172616d54797065, 0x2e61727261795536, 0x342c206279746573, 0x3a20382c20676574, 0x7465723a20226765, - 0x7442696755696e74, 0x3634222c20736574, 0x7465723a20227365, 0x7442696755696e74, 0x3634227d5d2c0a20, - 0x202020202020205b, 0x426967496e743634, 0x41727261792c207b, 0x636f64653a205061, 0x72616d547970652e, - 0x617272617936342c, 0x2062797465733a20, 0x382c206765747465, 0x723a202267657442, 0x6967496e74363422, - 0x2c20736574746572, 0x3a20227365744269, 0x67496e743634227d, 0x5d2c0a2020202020, 0x2020205b466c6f61, - 0x7433324172726179, 0x2c207b636f64653a, 0x20506172616d5479, 0x70652e6172726179, 0x466c6f61742c2062, - 0x797465733a20342c, 0x206765747465723a, 0x2022676574466c6f, 0x61743332222c2073, 0x65747465723a2022, - 0x736574466c6f6174, 0x3332227d5d2c0a20, 0x202020202020205b, 0x466c6f6174363441, 0x727261792c207b63, - 0x6f64653a20506172, 0x616d547970652e61, 0x72726179446f7562, 0x6c652c2062797465, 0x733a20382c206765, - 0x747465723a202267, 0x6574466c6f617436, 0x34222c2073657474, 0x65723a2022736574, 0x466c6f6174363422, - 0x7d5d2c0a20202020, 0x5d293b0a0a202020, 0x20636f6e73742061, 0x72726179436f6465, 0x73203d206e657720, - 0x4d61702841727261, 0x792e66726f6d2861, 0x7272617954797065, 0x732c20285b636f6e, 0x7374727563746f72, - 0x2c20737065635d29, 0x203d3e205b737065, 0x632e636f64652c20, 0x7b2e2e2e73706563, 0x2c20636f6e737472, - 0x7563746f727d5d29, 0x293b0a0a20202020, 0x66756e6374696f6e, 0x206e617469766549, 0x734c6974746c6545, - 0x6e6469616e282920, 0x7b0a202020202020, 0x2020636f6e737420, 0x776f7264203d206e, 0x65772055696e7433, - 0x324172726179285b, 0x3078313130303030, 0x66665d293b0a2020, 0x2020202020207265, 0x7475726e206e6577, - 0x2055696e74384172, 0x72617928776f7264, 0x2e62756666657229, 0x5b305d203d3d3d20, 0x307866663b0a2020, - 0x20207d0a0a202020, 0x202f2f2f20576972, 0x652074797065202d, 0x3e206465636f6465, 0x722c20736f206465, - 0x636f646556616c75, 0x6520737461797320, 0x61206c6f6f6b7570, 0x20696e7374656164, 0x206f662061206368, - 0x61696e206f662063, 0x6f6d70617269736f, 0x6e732e0a20202020, 0x2f2f2f2045766572, 0x7920747970656420, - 0x617272617920636f, 0x6465207368617265, 0x73206f6e6520656e, 0x7472793b20746865, 0x2068616e646c6572, - 0x2072656164732074, 0x6865207769647468, 0x206261636b206f66, 0x662074686520636f, 0x64652e0a20202020, - 0x636f6e7374207661, 0x6c75654465636f64, 0x657273203d206e65, 0x77204d6170285b0a, 0x2020202020202020, - 0x5b506172616d5479, 0x70652e626f6f6c65, 0x616e547275652c20, 0x2829203d3e20287b, 0x76616c75653a2074, - 0x7275652c20627974, 0x65733a20317d295d, 0x2c0a202020202020, 0x20205b506172616d, 0x547970652e626f6f, - 0x6c65616e46616c73, 0x652c202829203d3e, 0x20287b76616c7565, 0x3a2066616c73652c, 0x2062797465733a20, - 0x317d295d2c0a2020, 0x2020202020205b50, 0x6172616d54797065, 0x2e6e756d6265722c, 0x2028627269646765, - 0x2c20747970652c20, 0x766965772c206f66, 0x6673657429203d3e, 0x206272696467652e, 0x6465636f64654e75, - 0x6d62657228766965, 0x772c206f66667365, 0x74295d2c0a202020, 0x20202020205b5061, 0x72616d547970652e, - 0x736d616c6c537472, 0x696e672c20286272, 0x696467652c207479, 0x70652c2076696577, 0x2c206f6666736574, - 0x29203d3e20627269, 0x6467652e6465636f, 0x6465537472696e67, 0x28747970652c2076, 0x6965772c206f6666, - 0x736574295d2c0a20, 0x202020202020205b, 0x506172616d547970, 0x652e737472696e67, 0x2c20286272696467, + 0x3a20332c0a202020, 0x202020202066756e, 0x6374696f6e526574, 0x75726e3a20342c0a, 0x2020202020202020, + 0x646f6d4261746368, 0x3a20352c0a202020, 0x207d293b0a0a2020, 0x2020636f6e737420, 0x54657874436f6d6d, + 0x616e64203d204f62, 0x6a6563742e667265, 0x657a65287b646562, 0x75674c6f673a2030, 0x2c20696e6a656374, + 0x5363726970743a20, 0x317d293b0a0a2020, 0x2020636f6e737420, 0x506172616d547970, 0x65203d204f626a65, + 0x63742e667265657a, 0x65287b0a20202020, 0x20202020756e6465, 0x66696e65643a2030, 0x2c0a202020202020, + 0x2020626f6f6c6561, 0x6e547275653a2031, 0x2c0a202020202020, 0x2020626f6f6c6561, 0x6e46616c73653a20, + 0x322c0a2020202020, 0x2020206e756d6265, 0x723a20332c0a2020, 0x202020202020736d, 0x616c6c537472696e, + 0x673a20342c0a2020, 0x2020202020207374, 0x72696e673a20352c, 0x0a20202020202020, 0x2065786365707469, + 0x6f6e3a20362c0a20, 0x2020202020202073, 0x6d616c6c41727261, 0x7955383a20372c0a, 0x2020202020202020, + 0x617272617955383a, 0x20382c0a20202020, 0x2020202061727261, 0x79383a20392c0a20, 0x2020202020202061, + 0x727261795531363a, 0x2031302c0a202020, 0x2020202020617272, 0x617931363a203131, 0x2c0a202020202020, + 0x2020617272617955, 0x33323a2031322c0a, 0x2020202020202020, 0x617272617933323a, 0x2031332c0a202020, + 0x2020202020617272, 0x61795536343a2031, 0x342c0a2020202020, 0x2020206172726179, 0x36343a2031352c0a, + 0x2020202020202020, 0x6172726179466c6f, 0x61743a2031362c0a, 0x2020202020202020, 0x6172726179446f75, + 0x626c653a2031372c, 0x0a20202020202020, 0x207475706c653a20, 0x31382c0a20202020, 0x7d293b0a0a202020, + 0x20636f6e73742061, 0x7272617954797065, 0x73203d206e657720, 0x4d6170285b0a2020, 0x2020202020205b55, + 0x696e743841727261, 0x792c207b636f6465, 0x3a20506172616d54, 0x7970652e61727261, 0x7955382c20627974, + 0x65733a20312c2067, 0x65747465723a2022, 0x67657455696e7438, 0x222c207365747465, 0x723a202273657455, + 0x696e7438227d5d2c, 0x0a20202020202020, 0x205b496e74384172, 0x7261792c207b636f, 0x64653a2050617261, + 0x6d547970652e6172, 0x726179382c206279, 0x7465733a20312c20, 0x6765747465723a20, 0x22676574496e7438, + 0x222c207365747465, 0x723a202273657449, 0x6e7438227d5d2c0a, 0x2020202020202020, 0x5b55696e74313641, + 0x727261792c207b63, 0x6f64653a20506172, 0x616d547970652e61, 0x727261795531362c, 0x2062797465733a20, + 0x322c206765747465, 0x723a202267657455, 0x696e743136222c20, 0x7365747465723a20, 0x2273657455696e74, + 0x3136227d5d2c0a20, 0x202020202020205b, 0x496e743136417272, 0x61792c207b636f64, 0x653a20506172616d, + 0x547970652e617272, 0x617931362c206279, 0x7465733a20322c20, 0x6765747465723a20, 0x22676574496e7431, + 0x36222c2073657474, 0x65723a2022736574, 0x496e743136227d5d, 0x2c0a202020202020, 0x20205b55696e7433, + 0x3241727261792c20, 0x7b636f64653a2050, 0x6172616d54797065, 0x2e61727261795533, 0x322c206279746573, + 0x3a20342c20676574, 0x7465723a20226765, 0x7455696e74333222, 0x2c20736574746572, 0x3a20227365745569, + 0x6e743332227d5d2c, 0x0a20202020202020, 0x205b496e74333241, 0x727261792c207b63, 0x6f64653a20506172, + 0x616d547970652e61, 0x7272617933322c20, 0x62797465733a2034, 0x2c20676574746572, 0x3a2022676574496e, + 0x743332222c207365, 0x747465723a202273, 0x6574496e74333222, 0x7d5d2c0a20202020, 0x202020205b426967, + 0x55696e7436344172, 0x7261792c207b636f, 0x64653a2050617261, 0x6d547970652e6172, 0x7261795536342c20, + 0x62797465733a2038, 0x2c20676574746572, 0x3a20226765744269, 0x6755696e74363422, 0x2c20736574746572, + 0x3a20227365744269, 0x6755696e74363422, 0x7d5d2c0a20202020, 0x202020205b426967, 0x496e743634417272, + 0x61792c207b636f64, 0x653a20506172616d, 0x547970652e617272, 0x617936342c206279, 0x7465733a20382c20, + 0x6765747465723a20, 0x2267657442696749, 0x6e743634222c2073, 0x65747465723a2022, 0x736574426967496e, + 0x743634227d5d2c0a, 0x2020202020202020, 0x5b466c6f61743332, 0x41727261792c207b, 0x636f64653a205061, + 0x72616d547970652e, 0x6172726179466c6f, 0x61742c2062797465, 0x733a20342c206765, 0x747465723a202267, + 0x6574466c6f617433, 0x32222c2073657474, 0x65723a2022736574, 0x466c6f6174333222, 0x7d5d2c0a20202020, + 0x202020205b466c6f, 0x6174363441727261, 0x792c207b636f6465, 0x3a20506172616d54, 0x7970652e61727261, + 0x79446f75626c652c, 0x2062797465733a20, 0x382c206765747465, 0x723a202267657446, 0x6c6f61743634222c, + 0x207365747465723a, 0x2022736574466c6f, 0x61743634227d5d2c, 0x0a202020205d293b, 0x0a0a20202020636f, + 0x6e73742061727261, 0x79436f646573203d, 0x206e6577204d6170, 0x2841727261792e66, 0x726f6d2861727261, + 0x7954797065732c20, 0x285b636f6e737472, 0x7563746f722c2073, 0x7065635d29203d3e, 0x205b737065632e63, + 0x6f64652c207b2e2e, 0x2e737065632c2063, 0x6f6e737472756374, 0x6f727d5d29293b0a, 0x0a2020202066756e, + 0x6374696f6e206e61, 0x7469766549734c69, 0x74746c65456e6469, 0x616e2829207b0a20, 0x2020202020202063, + 0x6f6e737420776f72, 0x64203d206e657720, 0x55696e7433324172, 0x726179285b307831, 0x313030303066665d, + 0x293b0a2020202020, 0x2020207265747572, 0x6e206e6577205569, 0x6e74384172726179, 0x28776f72642e6275, + 0x66666572295b305d, 0x203d3d3d20307866, 0x663b0a202020207d, 0x0a0a202020202f2f, 0x2f20576972652074, + 0x797065202d3e2064, 0x65636f6465722c20, 0x736f206465636f64, 0x6556616c75652073, 0x746179732061206c, + 0x6f6f6b757020696e, 0x7374656164206f66, 0x206120636861696e, 0x206f6620636f6d70, 0x617269736f6e732e, + 0x0a202020202f2f2f, 0x2045766572792074, 0x7970656420617272, 0x617920636f646520, 0x736861726573206f, + 0x6e6520656e747279, 0x3b20746865206861, 0x6e646c6572207265, 0x6164732074686520, 0x7769647468206261, + 0x636b206f66662074, 0x686520636f64652e, 0x0a20202020636f6e, 0x73742076616c7565, 0x4465636f64657273, + 0x203d206e6577204d, 0x6170285b0a202020, 0x20202020205b5061, 0x72616d547970652e, 0x626f6f6c65616e54, + 0x7275652c20282920, 0x3d3e20287b76616c, 0x75653a2074727565, 0x2c2062797465733a, 0x20317d295d2c0a20, + 0x202020202020205b, 0x506172616d547970, 0x652e626f6f6c6561, 0x6e46616c73652c20, 0x2829203d3e20287b, + 0x76616c75653a2066, 0x616c73652c206279, 0x7465733a20317d29, 0x5d2c0a2020202020, 0x2020205b50617261, + 0x6d547970652e6e75, 0x6d6265722c202862, 0x72696467652c2074, 0x7970652c20766965, 0x772c206f66667365, + 0x7429203d3e206272, 0x696467652e646563, 0x6f64654e756d6265, 0x7228766965772c20, 0x6f6666736574295d, + 0x2c0a202020202020, 0x20205b506172616d, 0x547970652e736d61, 0x6c6c537472696e67, 0x2c20286272696467, 0x652c20747970652c, 0x20766965772c206f, 0x666673657429203d, 0x3e20627269646765, 0x2e6465636f646553, 0x7472696e67287479, 0x70652c2076696577, 0x2c206f6666736574, 0x295d2c0a20202020, 0x202020205b506172, - 0x616d547970652e65, 0x7863657074696f6e, 0x2c20286272696467, 0x652c20747970652c, 0x20766965772c206f, - 0x666673657429203d, 0x3e20627269646765, 0x2e6465636f646553, 0x7472696e67287479, 0x70652c2076696577, - 0x2c206f6666736574, 0x295d2c0a20202020, 0x202020205b506172, 0x616d547970652e74, 0x75706c652c202862, + 0x616d547970652e73, 0x7472696e672c2028, 0x6272696467652c20, 0x747970652c207669, 0x65772c206f666673, + 0x657429203d3e2062, 0x72696467652e6465, 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, + 0x6666736574295d2c, 0x0a20202020202020, 0x205b506172616d54, 0x7970652e65786365, 0x7074696f6e2c2028, + 0x6272696467652c20, 0x747970652c207669, 0x65772c206f666673, 0x657429203d3e2062, 0x72696467652e6465, + 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, 0x6666736574295d2c, 0x0a20202020202020, + 0x205b506172616d54, 0x7970652e7475706c, 0x652c202862726964, 0x67652c2074797065, 0x2c20766965772c20, + 0x6f66667365742920, 0x3d3e206272696467, 0x652e6465636f6465, 0x5475706c65287669, 0x65772c206f666673, + 0x6574295d2c0a2020, 0x20205d293b0a0a20, 0x202020666f722028, 0x636f6e737420636f, 0x6465206f66205b50, + 0x6172616d54797065, 0x2e736d616c6c4172, 0x72617955382c202e, 0x2e2e617272617943, 0x6f6465732e6b6579, + 0x7328295d290a2020, 0x2020202020207661, 0x6c75654465636f64, 0x6572732e73657428, 0x636f64652c202862, 0x72696467652c2074, 0x7970652c20766965, 0x772c206f66667365, 0x7429203d3e206272, 0x696467652e646563, - 0x6f64655475706c65, 0x28766965772c206f, 0x6666736574295d2c, 0x0a202020205d293b, 0x0a0a20202020666f, - 0x722028636f6e7374, 0x20636f6465206f66, 0x205b506172616d54, 0x7970652e736d616c, 0x6c41727261795538, - 0x2c202e2e2e617272, 0x6179436f6465732e, 0x6b65797328295d29, 0x0a20202020202020, 0x2076616c75654465, - 0x636f646572732e73, 0x657428636f64652c, 0x2028627269646765, 0x2c20747970652c20, 0x766965772c206f66, - 0x6673657429203d3e, 0x206272696467652e, 0x6465636f64655479, 0x7065644172726179, 0x28747970652c2076, - 0x6965772c206f6666, 0x73657429293b0a0a, 0x2020202066756e63, 0x74696f6e20697354, 0x7970656441727261, - 0x792876616c756529, 0x207b0a2020202020, 0x2020207265747572, 0x6e20417272617942, 0x75666665722e6973, - 0x566965772876616c, 0x7565292026262021, 0x2876616c75652069, 0x6e7374616e63656f, 0x6620446174615669, - 0x6577293b0a202020, 0x207d0a0a20202020, 0x2f2f2f2053686f72, 0x742055696e743841, 0x7272617920706179, - 0x6c6f616473207573, 0x652074686520636f, 0x6d7061637420736d, 0x616c6c4172726179, 0x5538206865616465, - 0x722e2053697a696e, 0x6720616e6420656e, 0x636f64696e67206d, 0x7573742061677265, 0x65206f6e0a202020, - 0x202f2f2f20746869, 0x732c20736f20626f, 0x746820676f207468, 0x726f756768206865, 0x72653a2061206469, - 0x7361677265656d65, 0x6e7420776f756c64, 0x206d69732d73697a, 0x6520746865207365, 0x6e64206275666665, - 0x722e0a2020202066, 0x756e6374696f6e20, 0x7479706564417272, 0x6179486561646572, 0x53697a652876616c, - 0x756529207b0a2020, 0x2020202020207265, 0x7475726e2076616c, 0x756520696e737461, 0x6e63656f66205569, - 0x6e74384172726179, 0x2026262076616c75, 0x652e6c656e677468, 0x203c20323536203f, 0x2032203a20353b0a, - 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, - 0x2020636f6e737472, 0x7563746f72287572, 0x6c203d206077733a, 0x2f2f247b676c6f62, 0x616c2e6c6f636174, - 0x696f6e2e686f7374, 0x7d6029207b0a2020, 0x2020202020202020, 0x2020746869732e73, 0x74617465203d2022, - 0x756e696e69746961, 0x6c697a6564223b0a, 0x2020202020202020, 0x2020202074686973, 0x2e6c6974746c6545, - 0x6e6469616e203d20, 0x66616c73653b0a20, 0x2020202020202020, 0x202020746869732e, 0x6e65787443616c6c, - 0x4964203d20313b0a, 0x2020202020202020, 0x2020202074686973, 0x2e70656e64696e67, 0x43616c6c73203d20, - 0x6e6577204d617028, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e72656164, 0x79536574746c6564, - 0x203d2066616c7365, 0x3b0a202020202020, 0x2020202020207468, 0x69732e7265616479, 0x50726f6d69736520, - 0x3d206e6577205072, 0x6f6d697365282872, 0x65736f6c76652c20, 0x72656a6563742920, 0x3d3e207b0a202020, - 0x2020202020202020, 0x2020202020746869, 0x732e7265736f6c76, 0x655265616479203d, 0x207265736f6c7665, - 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e72, 0x656a656374526561, 0x6479203d2072656a, - 0x6563743b0a202020, 0x2020202020202020, 0x207d293b0a202020, 0x2020202020202020, 0x202f2f2057697468, - 0x6f75742074686973, 0x2c20612070616765, 0x2074686174206e65, 0x76657220746f7563, 0x6865732077656246, - 0x726f6e742e726561, 0x647920776f756c64, 0x2073656520616e20, 0x22756e68616e646c, 0x65640a2020202020, - 0x202020202020202f, 0x2f2070726f6d6973, 0x652072656a656374, 0x696f6e2220776172, 0x6e696e6720696620, - 0x74686520696e6974, 0x69616c20636f6e6e, 0x656374696f6e2066, 0x61696c732e204170, 0x706c69636174696f, - 0x6e20636f64652073, 0x74696c6c0a202020, 0x2020202020202020, 0x202f2f2067657473, 0x20697473206f776e, - 0x20696e646570656e, 0x64656e7420736574, 0x746c656d656e7420, 0x766961202e746865, 0x6e28292f2e636174, - 0x636828292f617761, 0x6974206f6e207468, 0x652073616d652070, 0x726f6d6973653b0a, 0x2020202020202020, - 0x202020202f2f2061, 0x7474616368696e67, 0x20612068616e646c, 0x6572206865726520, 0x646f65736e277420, - 0x636f6e73756d6520, 0x6f72206166666563, 0x742074686f73652e, 0x0a20202020202020, 0x2020202020746869, - 0x732e726561647950, 0x726f6d6973652e63, 0x6174636828282920, 0x3d3e207b7d293b0a, 0x2020202020202020, - 0x2020202074686973, 0x2e736f636b657420, 0x3d206e6577205765, 0x62536f636b657428, 0x75726c2c20225765, - 0x6246726f6e745f30, 0x2e3122293b0a2020, 0x2020202020202020, 0x2020746869732e73, 0x6f636b65742e6269, - 0x6e61727954797065, 0x203d202261727261, 0x7962756666657222, 0x3b0a202020202020, 0x2020202020207468, - 0x69732e736f636b65, 0x742e6f6e6f70656e, 0x203d202829203d3e, 0x20746869732e6861, 0x6e647368616b6528, - 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, 0x65742e6f6e6d6573, 0x73616765203d2065, - 0x76656e74203d3e20, 0x746869732e6f6e4d, 0x6573736167652865, 0x76656e742e646174, 0x61293b0a20202020, - 0x2020202020202020, 0x746869732e736f63, 0x6b65742e6f6e636c, 0x6f7365203d206576, 0x656e74203d3e207b, - 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742064, 0x657461696c203d20, 0x6576656e742e7761, - 0x73436c65616e203f, 0x2060636f64653d24, 0x7b6576656e742e63, 0x6f64657d20726561, 0x736f6e3d247b6576, - 0x656e742e72656173, 0x6f6e7d60203a2022, 0x636f6e6e65637469, 0x6f6e206c6f737422, 0x3b0a202020202020, - 0x2020202020202020, 0x2020636f6e737420, 0x6572726f72203d20, 0x6e6577204572726f, 0x7228605765624672, - 0x6f6e7420636f6e6e, 0x656374696f6e2063, 0x6c6f7365643a2024, 0x7b64657461696c7d, 0x60293b0a20202020, - 0x2020202020202020, 0x2020202074686973, 0x2e736574746c6552, 0x6561647952656a65, 0x6374656428657272, - 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x70656e64696e6720, - 0x6f6620746869732e, 0x70656e64696e6743, 0x616c6c732e76616c, 0x7565732829290a20, 0x2020202020202020, - 0x2020202020202020, 0x20202070656e6469, 0x6e672e72656a6563, 0x74286572726f7229, 0x3b0a202020202020, - 0x2020202020202020, 0x2020746869732e70, 0x656e64696e674361, 0x6c6c732e636c6561, 0x7228293b0a202020, - 0x2020202020202020, 0x2020202020746869, 0x732e737461746520, 0x3d2022636c6f7365, 0x64223b0a20202020, - 0x2020202020202020, 0x20202020636f6e73, 0x6f6c652e6c6f6728, 0x605b57656246726f, 0x6e7420636c6f7365, - 0x5d20247b64657461, 0x696c7d60293b0a20, 0x2020202020202020, 0x2020207d3b0a2020, 0x2020202020202020, - 0x2020746869732e73, 0x6f636b65742e6f6e, 0x6572726f72203d20, 0x2829203d3e207b0a, 0x2020202020202020, - 0x2020202020202020, 0x636f6e7374206572, 0x726f72203d206e65, 0x77204572726f7228, 0x2257656246726f6e, - 0x7420636f6e6e6563, 0x74696f6e20666169, 0x6c656422293b0a20, 0x2020202020202020, 0x2020202020202074, - 0x6869732e73657474, 0x6c65526561647952, 0x656a656374656428, 0x6572726f72293b0a, 0x2020202020202020, - 0x2020202020202020, 0x636f6e736f6c652e, 0x6572726f7228225b, 0x57656246726f6e74, 0x20736f636b657420, - 0x6572726f725d222c, 0x206572726f72293b, 0x0a20202020202020, 0x20202020207d3b0a, 0x2020202020202020, - 0x7d0a0a2020202020, 0x2020202f2f2f2052, 0x65736f6c76657320, 0x6f6e636520746865, 0x20576562536f636b, - 0x65742068616e6473, 0x68616b6520697320, 0x61636b6e6f776c65, 0x646765642c207265, 0x6a65637473206966, - 0x2074686520696e69, 0x7469616c20636f6e, 0x6e656374696f6e0a, 0x2020202020202020, 0x2f2f2f20636c6f73, - 0x6573206f72206661, 0x696c73206265666f, 0x726520746861742e, 0x20446f6573206e6f, 0x74207265666c6563, - 0x74206c6174657220, 0x646973636f6e6e65, 0x6374733b20736565, 0x2070656e64696e67, 0x43616c6c732f7374, - 0x6174652e0a202020, 0x2020202020676574, 0x2072656164792829, 0x207b0a2020202020, 0x2020202020202072, - 0x657475726e207468, 0x69732e7265616479, 0x50726f6d6973653b, 0x0a20202020202020, 0x207d0a0a20202020, - 0x202020202f2f2f20, 0x52656a6563747320, 0x74686520696e6974, 0x69616c2d72656164, 0x696e657373207072, - 0x6f6d697365206174, 0x206d6f7374206f6e, 0x63652c20616e6420, 0x6f6e6c7920776869, 0x6c65207374696c6c, - 0x2077616974696e67, 0x206f6e207468650a, 0x2020202020202020, 0x2f2f2f2068616e64, 0x7368616b652e2041, - 0x206661696c656420, 0x636f6e6e65637469, 0x6f6e207479706963, 0x616c6c7920666972, 0x657320626f746820, - 0x606572726f726020, 0x616e642060636c6f, 0x7365602c20616e64, 0x2061206c61746572, 0x0a20202020202020, - 0x202f2f2f20646973, 0x636f6e6e65637420, 0x286166746572206c, 0x696e6b696e672920, 0x6d757374206e6f74, - 0x2072652d73657474, 0x6c6520616e20616c, 0x72656164792d7265, 0x736f6c7665642060, 0x7265616479603b20, - 0x7468697320677561, 0x72640a2020202020, 0x2020202f2f2f206d, 0x616b657320657665, 0x7279206f6e65206f, - 0x662074686f736520, 0x6361736573206120, 0x6861726d6c657373, 0x206e6f2d6f702061, 0x6674657220746865, - 0x2066697273742073, 0x6574746c656d656e, 0x742e0a2020202020, 0x202020736574746c, 0x6552656164795265, - 0x6a65637465642865, 0x72726f7229207b0a, 0x2020202020202020, 0x2020202069662028, 0x746869732e726561, - 0x6479536574746c65, 0x64207c7c20746869, 0x732e737461746520, 0x3d3d3d20226c696e, 0x6b65642229207265, - 0x7475726e3b0a2020, 0x2020202020202020, 0x2020746869732e72, 0x6561647953657474, 0x6c6564203d207472, - 0x75653b0a20202020, 0x2020202020202020, 0x746869732e72656a, 0x6563745265616479, 0x286572726f72293b, - 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202068616e64, 0x7368616b65282920, 0x7b0a202020202020, - 0x2020202020207468, 0x69732e7374617465, 0x203d202268616e64, 0x7368616b696e6722, 0x3b0a202020202020, - 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e64286e, 0x65772055696e7438, 0x4172726179285b43, - 0x6f6d6d616e642e68, 0x616e647368616b65, 0x2c206e6174697665, 0x49734c6974746c65, 0x456e6469616e2829, - 0x203f2030203a2031, 0x5d29293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x6f6e4d6573736167, - 0x6528627566666572, 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374207669, 0x6577203d206e6577, - 0x2044617461566965, 0x7728627566666572, 0x293b0a2020202020, 0x2020202020202072, 0x6571756972654279, - 0x7465732876696577, 0x2c20302c20312c20, 0x226d657373616765, 0x2068656164657222, 0x293b0a2020202020, - 0x2020202020202073, 0x7769746368202876, 0x6965772e67657455, 0x696e743828302929, 0x207b0a2020202020, - 0x2020202020202063, 0x61736520436f6d6d, 0x616e642e61636b3a, 0x0a20202020202020, 0x2020202020202020, - 0x2072657175697265, 0x4279746573287669, 0x65772c20302c2032, 0x2c202261636b6e6f, 0x776c656467656d65, - 0x6e7422293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x2028746869732e73, 0x74617465203d3d3d, - 0x202268616e647368, 0x616b696e67222920, 0x7b0a202020202020, 0x2020202020202020, 0x2020202020207468, - 0x69732e6c6974746c, 0x65456e6469616e20, 0x3d20766965772e67, 0x657455696e743828, 0x3129203d3d3d2030, - 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207468, 0x69732e7374617465, 0x203d20226c696e6b, - 0x6564223b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20746869732e7265, 0x616479536574746c, - 0x6564203d20747275, 0x653b0a2020202020, 0x2020202020202020, 0x2020202020202074, 0x6869732e7265736f, - 0x6c76655265616479, 0x28293b0a20202020, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, - 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x206361736520436f, 0x6d6d616e642e7465, - 0x7874436f6d6d616e, 0x643a0a2020202020, 0x2020202020202020, 0x202020746869732e, 0x68616e646c655465, - 0x7874436f6d6d616e, 0x642876696577293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, - 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, 0x2e63616c6c46756e, 0x6374696f6e3a0a20, - 0x2020202020202020, 0x2020202020202074, 0x6869732e63616c6c, 0x4a7346756e637469, 0x6f6e287669657729, - 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x2020202020636173, - 0x6520436f6d6d616e, 0x642e66756e637469, 0x6f6e52657475726e, 0x3a0a202020202020, 0x2020202020202020, - 0x2020746869732e68, 0x616e646c6546756e, 0x6374696f6e526574, 0x75726e2876696577, 0x293b0a2020202020, - 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020206465, 0x6661756c743a0a20, - 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x204572726f722860, 0x556e737570706f72, - 0x7465642057656246, 0x726f6e7420636f6d, 0x6d616e6420247b76, 0x6965772e67657455, 0x696e74382830297d, - 0x60293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, 0x20207d0a0a202020, 0x202020202068616e, - 0x646c655465787443, 0x6f6d6d616e642876, 0x69657729207b0a20, 0x2020202020202020, 0x2020207265717569, - 0x7265427974657328, 0x766965772c20302c, 0x20342c2022746578, 0x7420636f6d6d616e, 0x6420686561646572, - 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374206c65, 0x6e677468203d2076, 0x6965772e67657455, - 0x696e743136283229, 0x3b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, - 0x20342c206c656e67, 0x74682c2022746578, 0x7420636f6d6d616e, 0x64207061796c6f61, 0x6422293b0a202020, - 0x2020202020202020, 0x20636f6e73742074, 0x657874203d206e65, 0x7720546578744465, 0x636f646572282275, - 0x74662d3822292e64, 0x65636f6465286e65, 0x772055696e743841, 0x7272617928766965, 0x772e627566666572, - 0x2c20766965772e62, 0x7974654f66667365, 0x74202b20342c206c, 0x656e67746829293b, 0x0a20202020202020, - 0x2020202020737769, 0x7463682028766965, 0x772e67657455696e, 0x743828312929207b, 0x0a20202020202020, - 0x2020202020636173, 0x652054657874436f, 0x6d6d616e642e6465, 0x6275674c6f673a0a, 0x2020202020202020, - 0x2020202020202020, 0x636f6e736f6c652e, 0x6c6f672874657874, 0x293b0a2020202020, 0x2020202020202020, - 0x202020627265616b, 0x3b0a202020202020, 0x2020202020206361, 0x7365205465787443, 0x6f6d6d616e642e69, - 0x6e6a656374536372, 0x6970743a207b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420736372, - 0x697074203d20646f, 0x63756d656e742e63, 0x7265617465456c65, 0x6d656e7428227363, 0x7269707422293b0a, - 0x2020202020202020, 0x2020202020202020, 0x7363726970742e74, 0x657874203d207465, 0x78743b0a20202020, - 0x2020202020202020, 0x2020202028646f63, 0x756d656e742e626f, 0x6479203f3f20646f, 0x63756d656e742e68, - 0x656164203f3f2064, 0x6f63756d656e742e, 0x646f63756d656e74, 0x456c656d656e7429, 0x2e617070656e6443, - 0x68696c6428736372, 0x697074293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, - 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202064, 0x656661756c743a0a, 0x2020202020202020, - 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, 0x60556e737570706f, 0x7274656420576562, - 0x46726f6e74207465, 0x787420636f6d6d61, 0x6e6420247b766965, 0x772e67657455696e, 0x74382831297d6029, - 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x20202063616c6c4a, - 0x7346756e6374696f, 0x6e286d6573736167, 0x6529207b0a202020, 0x2020202020202020, 0x2072657175697265, - 0x4279746573286d65, 0x73736167652c2030, 0x2c20382c20226675, 0x6e6374696f6e2063, 0x616c6c2068656164, - 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x636f756e74203d20, 0x6d6573736167652e, - 0x67657455696e7438, 0x2831293b0a202020, 0x2020202020202020, 0x20636f6e73742063, 0x616c6c4964203d20, - 0x6d6573736167652e, 0x67657455696e7431, 0x3628322c20746869, 0x732e6c6974746c65, 0x456e6469616e293b, - 0x0a20202020202020, 0x2020202020696620, 0x28636f756e74203d, 0x3d3d2030290a2020, 0x2020202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x4572726f72282246, 0x756e6374696f6e20, 0x63616c6c20686173, - 0x206e6f2066756e63, 0x74696f6e206e616d, 0x6522293b0a202020, 0x2020202020202020, 0x20636f6e73742070, - 0x61796c6f61645369, 0x7a65203d206d6573, 0x736167652e676574, 0x55696e7433322834, 0x2c20746869732e6c, - 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x2020726571756972, 0x654279746573286d, - 0x6573736167652c20, 0x382c207061796c6f, 0x616453697a652c20, 0x2266756e6374696f, 0x6e2063616c6c2070, - 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, 0x6f6164203d206e65, - 0x7720446174615669, 0x6577286d65737361, 0x67652e6275666665, 0x722c206d65737361, 0x67652e627974654f, - 0x6666736574202b20, 0x382c207061796c6f, 0x616453697a65293b, 0x0a20202020202020, 0x2020202020636f6e, - 0x7374205b6e616d65, 0x732c206e616d6542, 0x797465735d203d20, 0x746869732e646563, 0x6f6465506172616d, - 0x657465727328312c, 0x207061796c6f6164, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e7374205b7061, - 0x72616d6574657273, 0x2c20706172616d65, 0x7465724279746573, 0x5d203d2074686973, 0x2e6465636f646550, - 0x6172616d65746572, 0x7328636f756e7420, 0x2d20312c20706179, 0x6c6f61642c206e61, 0x6d65427974657329, - 0x3b0a202020202020, 0x2020202020206966, 0x20286e616d654279, 0x746573202b207061, 0x72616d6574657242, - 0x7974657320213d3d, 0x207061796c6f6164, 0x53697a65290a2020, 0x2020202020202020, 0x2020202020207468, - 0x726f77206e657720, 0x4572726f72282246, 0x756e6374696f6e20, 0x63616c6c20636f6e, 0x7461696e73207472, - 0x61696c696e672070, 0x61796c6f61642064, 0x61746122293b0a20, 0x2020202020202020, 0x2020206c65742065, - 0x7865637574696f6e, 0x3b0a202020202020, 0x2020202020207472, 0x79207b0a20202020, 0x2020202020202020, - 0x2020202065786563, 0x7574696f6e203d20, 0x746869732e657865, 0x6375746546756e63, 0x74696f6e286e616d, - 0x65735b305d2c2070, 0x6172616d65746572, 0x73293b0a20202020, 0x2020202020202020, 0x7d20636174636820, - 0x286572726f722920, 0x7b0a202020202020, 0x2020202020202020, 0x2020746869732e72, 0x65706f727443616c, - 0x6c4661696c757265, 0x2863616c6c49642c, 0x206572726f72293b, 0x0a20202020202020, 0x2020202020202020, - 0x2072657475726e3b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020202f2f206361, - 0x6c6c49642030206d, 0x65616e7320746865, 0x2063616c6c657220, 0x6973206e6f742077, 0x616974696e672066, - 0x6f7220616e797468, 0x696e672c20736f20, 0x7468657265206973, 0x206e6f7468696e67, 0x20746f2073656e64, - 0x206261636b2e0a20, 0x2020202020202020, 0x2020206966202863, 0x616c6c496420213d, 0x3d2030290a202020, - 0x2020202020202020, 0x202020202050726f, 0x6d6973652e726573, 0x6f6c766528657865, 0x637574696f6e292e, - 0x7468656e280a2020, 0x2020202020202020, 0x2020202020202020, 0x202076616c756520, 0x3d3e20746869732e, - 0x7265706f72744361, 0x6c6c537563636573, 0x732863616c6c4964, 0x2c2076616c756529, 0x2c0a202020202020, - 0x2020202020202020, 0x2020202020206572, 0x726f72203d3e2074, 0x6869732e73656e64, 0x46756e6374696f6e, - 0x4572726f72286361, 0x6c6c49642c206572, 0x726f7229293b0a20, 0x202020202020207d, 0x0a0a202020202020, - 0x20207265706f7274, 0x43616c6c4661696c, 0x7572652863616c6c, 0x49642c206572726f, 0x7229207b0a202020, - 0x2020202020202020, 0x206966202863616c, 0x6c4964203d3d3d20, 0x30290a2020202020, 0x2020202020202020, - 0x202020636f6e736f, 0x6c652e6572726f72, 0x28225b5765624672, 0x6f6e74204a617661, 0x5363726970742063, - 0x616c6c5d222c2065, 0x72726f72293b0a20, 0x2020202020202020, 0x202020656c73650a, 0x2020202020202020, - 0x2020202020202020, 0x746869732e73656e, 0x6446756e6374696f, 0x6e4572726f722863, 0x616c6c49642c2065, - 0x72726f72293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x20207265706f7274, 0x43616c6c53756363, - 0x6573732863616c6c, 0x49642c2076616c75, 0x6529207b0a202020, 0x2020202020202020, 0x20747279207b0a20, - 0x2020202020202020, 0x2020202020202074, 0x6869732e73656e64, 0x46756e6374696f6e, 0x52657475726e2863, - 0x616c6c49642c2076, 0x616c7565293b0a20, 0x2020202020202020, 0x2020207d20636174, 0x636820286572726f, - 0x7229207b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e73656e644675, 0x6e6374696f6e4572, - 0x726f722863616c6c, 0x49642c206572726f, 0x72293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, - 0x20207d0a0a202020, 0x2020202020657865, 0x6375746546756e63, 0x74696f6e286e616d, 0x652c206172677329, - 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420706174, 0x68203d206e616d65, 0x2e73706c69742822, - 0x2e22293b0a202020, 0x2020202020202020, 0x20636f6e7374206d, 0x656d626572203d20, 0x706174682e706f70, - 0x28293b0a20202020, 0x2020202020202020, 0x6c657420636f6e74, 0x657874203d20676c, 0x6f62616c3b0a2020, - 0x2020202020202020, 0x2020666f72202863, 0x6f6e737420636f6d, 0x706f6e656e74206f, 0x6620706174682920, - 0x7b0a202020202020, 0x2020202020202020, 0x202069662028636f, 0x6e74657874203d3d, 0x206e756c6c207c7c, - 0x202128636f6d706f, 0x6e656e7420696e20, 0x636f6e7465787429, 0x290a202020202020, 0x2020202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x4572726f7228604a, 0x6176615363726970, 0x74206e616d657370, - 0x6163652027247b63, 0x6f6d706f6e656e74, 0x7d2720776173206e, 0x6f7420666f756e64, 0x207768696c652072, - 0x65736f6c76696e67, 0x2027247b6e616d65, 0x7d2760293b0a2020, 0x2020202020202020, 0x202020202020636f, - 0x6e74657874203d20, 0x636f6e746578745b, 0x636f6d706f6e656e, 0x745d3b0a20202020, 0x2020202020202020, - 0x7d0a202020202020, 0x2020202020206966, 0x2028636f6e746578, 0x74203d3d206e756c, 0x6c207c7c20747970, - 0x656f6620636f6e74, 0x6578745b6d656d62, 0x65725d20213d3d20, 0x2266756e6374696f, 0x6e22290a20202020, - 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f7228604a6176, 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, 0x20202070656e6469, 0x6e672e72656a6563, 0x74286572726f7229, 0x3b0a202020202020, - 0x2020202020207d0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020736574746c, 0x6552657475726e28, - 0x70656e64696e672c, 0x206d657373616765, 0x29207b0a20202020, 0x2020202020202020, 0x636f6e737420636f, - 0x756e74203d206d65, 0x73736167652e6765, 0x7455696e74382831, 0x293b0a2020202020, 0x2020202020202063, - 0x6f6e737420706179, 0x6c6f616453697a65, 0x203d206d65737361, 0x67652e6765745569, 0x6e74333228342c20, - 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x7265717569726542, - 0x79746573286d6573, 0x736167652c20382c, 0x207061796c6f6164, 0x53697a652c202266, 0x756e6374696f6e20, - 0x72657475726e2070, 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, - 0x6f6164203d206e65, 0x7720446174615669, 0x6577286d65737361, 0x67652e6275666665, 0x722c206d65737361, - 0x67652e627974654f, 0x6666736574202b20, 0x382c207061796c6f, 0x616453697a65293b, 0x0a0a202020202020, - 0x2020202020206966, 0x2028746869732e63, 0x6172726965734578, 0x63657074696f6e28, 0x636f756e742c2070, - 0x61796c6f61645369, 0x7a652c207061796c, 0x6f61642929207b0a, 0x2020202020202020, 0x2020202020202020, - 0x70656e64696e672e, 0x72656a656374286e, 0x6577204572726f72, 0x28746869732e7369, 0x6e676c6556616c75, - 0x65287061796c6f61, 0x642c207061796c6f, 0x616453697a652c20, 0x2245786365707469, 0x6f6e222929293b0a, - 0x2020202020202020, 0x2020202020202020, 0x72657475726e3b0a, 0x2020202020202020, 0x202020207d0a2020, - 0x2020202020202020, 0x202069662028636f, 0x756e74203d3d3d20, 0x3029207b0a202020, 0x2020202020202020, - 0x2020202020696620, 0x287061796c6f6164, 0x53697a6520213d3d, 0x2030290a20202020, 0x2020202020202020, - 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, 0x22566f6964207265, 0x7475726e20636f6e, - 0x7461696e73207061, 0x796c6f6164206461, 0x746122293b0a2020, 0x2020202020202020, 0x2020202020207065, - 0x6e64696e672e7265, 0x736f6c766528756e, 0x646566696e656429, 0x3b0a202020202020, 0x2020202020202020, - 0x202072657475726e, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x2020202069662028, - 0x636f756e7420213d, 0x3d2031290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, - 0x72726f7228224675, 0x6e6374696f6e2072, 0x657475726e206d75, 0x737420636f6e7461, 0x696e207a65726f20, - 0x6f72206f6e652076, 0x616c756522293b0a, 0x2020202020202020, 0x2020202070656e64, 0x696e672e7265736f, - 0x6c76652874686973, 0x2e73696e676c6556, 0x616c756528706179, 0x6c6f61642c207061, 0x796c6f616453697a, - 0x652c202246756e63, 0x74696f6e2229293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202063617272, - 0x6965734578636570, 0x74696f6e28636f75, 0x6e742c207061796c, 0x6f616453697a652c, 0x207061796c6f6164, - 0x29207b0a20202020, 0x2020202020202020, 0x69662028636f756e, 0x7420213d3d203120, 0x7c7c207061796c6f, - 0x616453697a65203d, 0x3d3d203029207265, 0x7475726e2066616c, 0x73653b0a20202020, 0x2020202020202020, - 0x72657475726e2070, 0x61796c6f61642e67, 0x657455696e743828, 0x3029203d3d3d2050, 0x6172616d54797065, - 0x2e65786365707469, 0x6f6e3b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f204465636f64, - 0x6573206578616374, 0x6c79206f6e652076, 0x616c756520616e64, 0x2072656a65637473, 0x20616e7920627974, - 0x6573206c65667420, 0x6f76657220616674, 0x65722069742e0a20, 0x2020202020202073, 0x696e676c6556616c, - 0x7565287061796c6f, 0x61642c207061796c, 0x6f616453697a652c, 0x207768617429207b, 0x0a20202020202020, - 0x2020202020636f6e, 0x7374205b76616c75, 0x65732c20636f6e73, 0x756d65645d203d20, 0x746869732e646563, - 0x6f6465506172616d, 0x657465727328312c, 0x207061796c6f6164, 0x293b0a2020202020, 0x2020202020202069, - 0x662028636f6e7375, 0x6d656420213d3d20, 0x7061796c6f616453, 0x697a65290a202020, 0x2020202020202020, - 0x2020202020746872, 0x6f77206e65772045, 0x72726f722860247b, 0x776861747d207265, 0x7475726e20636f6e, - 0x7461696e73207472, 0x61696c696e672070, 0x61796c6f61642064, 0x61746160293b0a20, 0x2020202020202020, - 0x2020207265747572, 0x6e2076616c756573, 0x5b305d3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, - 0x6465636f64655061, 0x72616d6574657273, 0x28636f756e742c20, 0x766965772c206f66, 0x66736574203d2030, - 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d205b, 0x5d3b0a2020202020, - 0x202020202020206c, 0x657420637572736f, 0x72203d206f666673, 0x65743b0a20202020, 0x2020202020202020, - 0x666f7220286c6574, 0x20696e646578203d, 0x20303b20696e6465, 0x78203c20636f756e, 0x743b202b2b696e64, - 0x657829207b0a2020, 0x2020202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, - 0x20637572736f722c, 0x20312c2022706172, 0x616d657465722074, 0x79706522293b0a20, 0x2020202020202020, - 0x2020202020202063, 0x6f6e7374207b7661, 0x6c75652c20627974, 0x65737d203d207468, 0x69732e6465636f64, - 0x6556616c75652876, 0x6965772e67657455, 0x696e743828637572, 0x736f72292c207669, 0x65772c2063757273, - 0x6f72293b0a202020, 0x2020202020202020, 0x202020202076616c, 0x7565732e70757368, 0x2876616c7565293b, - 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, 0x2020202020202072, 0x657475726e206465, 0x636f646572287468, - 0x69732c2074797065, 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, 0x207d0a0a20202020, - 0x202020206465636f, 0x64654e756d626572, 0x28766965772c206f, 0x666673657429207b, 0x0a20202020202020, - 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x6f66667365742c20, 0x392c20226e756d62, - 0x657222293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x207b76616c75653a, 0x20766965772e6765, - 0x74466c6f61743634, 0x286f666673657420, 0x2b20312c20746869, 0x732e6c6974746c65, 0x456e6469616e292c, - 0x2062797465733a20, 0x397d3b0a20202020, 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465537472, - 0x696e672874797065, 0x2c20766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x202020202020636f, - 0x6e73742073697a65, 0x4279746573203d20, 0x74797065203d3d3d, 0x20506172616d5479, 0x70652e736d616c6c, - 0x537472696e67203f, 0x2031203a20323b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, - 0x28766965772c206f, 0x6666736574202b20, 0x312c2073697a6542, 0x797465732c202273, 0x7472696e67206c65, - 0x6e67746822293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74206c656e677468, 0x203d2073697a6542, - 0x79746573203d3d3d, 0x2031203f20766965, 0x772e67657455696e, 0x7438286f66667365, 0x74202b203129203a, - 0x20766965772e6765, 0x7455696e74313628, 0x6f6666736574202b, 0x20312c2074686973, 0x2e6c6974746c6545, - 0x6e6469616e293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, 0x64203d206f666673, - 0x6574202b2031202b, 0x2073697a65427974, 0x65733b0a20202020, 0x2020202020202020, 0x7265717569726542, - 0x7974657328766965, 0x772c207061796c6f, 0x61642c206c656e67, 0x74682c2022737472, 0x696e67207061796c, - 0x6f616422293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206279746573203d, 0x206e65772055696e, - 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, 0x772e627974654f66, 0x66736574202b2070, - 0x61796c6f61642c20, 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020726574, 0x75726e207b76616c, - 0x75653a206e657720, 0x546578744465636f, 0x6465722822757466, 0x2d3822292e646563, 0x6f64652862797465, - 0x73292c2062797465, 0x733a2031202b2073, 0x697a654279746573, 0x202b206c656e6774, 0x687d3b0a20202020, - 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465547570, 0x6c6528766965772c, 0x206f666673657429, - 0x207b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, - 0x2c20322c20227475, 0x706c652068656164, 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, - 0x5b7475706c652c20, 0x636f6e73756d6564, 0x5d203d2074686973, 0x2e6465636f646550, 0x6172616d65746572, - 0x7328766965772e67, 0x657455696e743828, 0x6f6666736574202b, 0x2031292c20766965, 0x772c206f66667365, - 0x74202b2032293b0a, 0x2020202020202020, 0x2020202072657475, 0x726e207b76616c75, 0x653a207475706c65, - 0x2c2062797465733a, 0x2032202b20636f6e, 0x73756d65647d3b0a, 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, + 0x6f64655479706564, 0x4172726179287479, 0x70652c2076696577, 0x2c206f6666736574, 0x29293b0a0a202020, + 0x2066756e6374696f, 0x6e20697354797065, 0x6441727261792876, 0x616c756529207b0a, 0x2020202020202020, + 0x72657475726e2041, 0x7272617942756666, 0x65722e6973566965, 0x772876616c756529, 0x2026262021287661, + 0x6c756520696e7374, 0x616e63656f662044, 0x6174615669657729, 0x3b0a202020207d0a, 0x0a202020202f2f2f, + 0x2053686f72742055, 0x696e743841727261, 0x79207061796c6f61, 0x6473207573652074, 0x686520636f6d7061, + 0x637420736d616c6c, 0x4172726179553820, 0x6865616465722e20, 0x53697a696e672061, 0x6e6420656e636f64, + 0x696e67206d757374, 0x206167726565206f, 0x6e0a202020202f2f, 0x2f20746869732c20, 0x736f20626f746820, + 0x676f207468726f75, 0x676820686572653a, 0x2061206469736167, 0x7265656d656e7420, 0x776f756c64206d69, + 0x732d73697a652074, 0x68652073656e6420, 0x6275666665722e0a, 0x2020202066756e63, 0x74696f6e20747970, + 0x6564417272617948, 0x656164657253697a, 0x652876616c756529, 0x207b0a2020202020, 0x2020207265747572, + 0x6e2076616c756520, 0x696e7374616e6365, 0x6f662055696e7438, 0x4172726179202626, 0x2076616c75652e6c, + 0x656e677468203c20, 0x323536203f203220, 0x3a20353b0a202020, 0x207d0a0a20202020, 0x66756e6374696f6e, + 0x2069734e6f6e4e65, 0x676174697665496e, 0x7465676572286361, 0x6e64696461746529, 0x207b0a2020202020, + 0x2020207265747572, 0x6e204e756d626572, 0x2e69735361666549, 0x6e74656765722863, 0x616e646964617465, + 0x292026262063616e, 0x646964617465203e, 0x3d20303b0a202020, 0x207d0a0a20202020, 0x66756e6374696f6e, + 0x2072657175697265, 0x4279746573287669, 0x65772c206f666673, 0x65742c20636f756e, 0x742c206465736372, + 0x697074696f6e2920, 0x7b0a202020202020, 0x2020636f6e737420, 0x77656c6c466f726d, 0x6564203d2069734e, + 0x6f6e4e6567617469, 0x7665496e74656765, 0x72286f6666736574, 0x292026262069734e, 0x6f6e4e6567617469, + 0x7665496e74656765, 0x7228636f756e7429, 0x3b0a202020202020, 0x2020696620282177, 0x656c6c466f726d65, + 0x64207c7c206f6666, 0x736574202b20636f, 0x756e74203e207669, 0x65772e627974654c, 0x656e677468290a20, + 0x2020202020202020, 0x2020207468726f77, 0x206e65772052616e, 0x67654572726f7228, 0x605472756e636174, + 0x656420247b646573, 0x6372697074696f6e, 0x7d60293b0a202020, 0x207d0a0a20202020, 0x636c617373205765, + 0x6246726f6e744272, 0x69646765207b0a20, 0x2020202020202063, 0x6f6e737472756374, 0x6f722875726c203d, + 0x206077733a2f2f24, 0x7b676c6f62616c2e, 0x6c6f636174696f6e, 0x2e686f73747d6029, 0x207b0a2020202020, + 0x2020202020202074, 0x6869732e73746174, 0x65203d2022756e69, 0x6e697469616c697a, 0x6564223b0a202020, + 0x2020202020202020, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e203d2066616c, 0x73653b0a20202020, + 0x2020202020202020, 0x746869732e6e6578, 0x7443616c6c496420, 0x3d20313b0a202020, 0x2020202020202020, + 0x20746869732e7065, 0x6e64696e6743616c, 0x6c73203d206e6577, 0x204d617028293b0a, 0x2020202020202020, + 0x2020202074686973, 0x2e72656164795365, 0x74746c6564203d20, 0x66616c73653b0a20, 0x2020202020202020, + 0x202020746869732e, 0x726561647950726f, 0x6d697365203d206e, 0x65772050726f6d69, 0x736528287265736f, + 0x6c76652c2072656a, 0x65637429203d3e20, 0x7b0a202020202020, 0x2020202020202020, 0x2020746869732e72, + 0x65736f6c76655265, 0x616479203d207265, 0x736f6c76653b0a20, 0x2020202020202020, 0x2020202020202074, + 0x6869732e72656a65, 0x6374526561647920, 0x3d2072656a656374, 0x3b0a202020202020, 0x2020202020207d29, + 0x3b0a202020202020, 0x2020202020202f2f, 0x20576974686f7574, 0x20746869732c2061, 0x2070616765207468, + 0x6174206e65766572, 0x20746f7563686573, 0x2077656246726f6e, 0x742e726561647920, 0x776f756c64207365, + 0x6520616e2022756e, 0x68616e646c65640a, 0x2020202020202020, 0x202020202f2f2070, 0x726f6d6973652072, + 0x656a656374696f6e, 0x22207761726e696e, 0x6720696620746865, 0x20696e697469616c, 0x20636f6e6e656374, + 0x696f6e206661696c, 0x732e204170706c69, 0x636174696f6e2063, 0x6f6465207374696c, 0x6c0a202020202020, + 0x2020202020202f2f, 0x2067657473206974, 0x73206f776e20696e, 0x646570656e64656e, 0x7420736574746c65, + 0x6d656e7420766961, 0x202e7468656e2829, 0x2f2e636174636828, 0x292f617761697420, 0x6f6e207468652073, + 0x616d652070726f6d, 0x6973653b0a202020, 0x2020202020202020, 0x202f2f2061747461, 0x6368696e67206120, + 0x68616e646c657220, 0x6865726520646f65, 0x736e277420636f6e, 0x73756d65206f7220, 0x6166666563742074, + 0x686f73652e0a2020, 0x2020202020202020, 0x2020746869732e72, 0x6561647950726f6d, 0x6973652e63617463, + 0x68282829203d3e20, 0x7b7d293b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b6574203d206e, + 0x657720576562536f, 0x636b65742875726c, 0x2c20225765624672, 0x6f6e745f302e3122, 0x293b0a2020202020, + 0x2020202020202074, 0x6869732e736f636b, 0x65742e62696e6172, 0x7954797065203d20, 0x2261727261796275, + 0x66666572223b0a20, 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e6f, 0x6e6f70656e203d20, + 0x2829203d3e207468, 0x69732e68616e6473, 0x68616b6528293b0a, 0x2020202020202020, 0x2020202074686973, + 0x2e736f636b65742e, 0x6f6e6d6573736167, 0x65203d206576656e, 0x74203d3e20746869, 0x732e6f6e4d657373, + 0x616765286576656e, 0x742e64617461293b, 0x0a20202020202020, 0x2020202020746869, 0x732e736f636b6574, + 0x2e6f6e636c6f7365, 0x203d206576656e74, 0x203d3e207b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e73742064657461, 0x696c203d20657665, 0x6e742e776173436c, 0x65616e203f206063, 0x6f64653d247b6576, + 0x656e742e636f6465, 0x7d20726561736f6e, 0x3d247b6576656e74, 0x2e726561736f6e7d, 0x60203a2022636f6e, + 0x6e656374696f6e20, 0x6c6f7374223b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420657272, + 0x6f72203d206e6577, 0x204572726f722860, 0x57656246726f6e74, 0x20636f6e6e656374, 0x696f6e20636c6f73, + 0x65643a20247b6465, 0x7461696c7d60293b, 0x0a20202020202020, 0x2020202020202020, 0x20746869732e7365, + 0x74746c6552656164, 0x7952656a65637465, 0x64286572726f7229, 0x3b0a202020202020, 0x2020202020202020, + 0x2020666f72202863, 0x6f6e73742070656e, 0x64696e67206f6620, 0x746869732e70656e, 0x64696e6743616c6c, + 0x732e76616c756573, 0x2829290a20202020, 0x2020202020202020, 0x2020202020202020, 0x70656e64696e672e, + 0x72656a6563742865, 0x72726f72293b0a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e70656e64, + 0x696e6743616c6c73, 0x2e636c6561722829, 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e73, + 0x74617465203d2022, 0x636c6f736564223b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e736f6c65, + 0x2e6c6f6728605b57, 0x656246726f6e7420, 0x636c6f73655d2024, 0x7b64657461696c7d, 0x60293b0a20202020, + 0x2020202020202020, 0x7d3b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, 0x65742e6f6e657272, + 0x6f72203d20282920, 0x3d3e207b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206572726f72, + 0x203d206e65772045, 0x72726f7228225765, 0x6246726f6e742063, 0x6f6e6e656374696f, 0x6e206661696c6564, + 0x22293b0a20202020, 0x2020202020202020, 0x2020202074686973, 0x2e736574746c6552, 0x6561647952656a65, + 0x6374656428657272, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x736f6c652e657272, + 0x6f7228225b576562, 0x46726f6e7420736f, 0x636b657420657272, 0x6f725d222c206572, 0x726f72293b0a2020, + 0x2020202020202020, 0x20207d3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f205265736f, + 0x6c766573206f6e63, 0x6520746865205765, 0x62536f636b657420, 0x68616e647368616b, 0x652069732061636b, + 0x6e6f776c65646765, 0x642c2072656a6563, 0x7473206966207468, 0x6520696e69746961, 0x6c20636f6e6e6563, + 0x74696f6e0a202020, 0x20202020202f2f2f, 0x20636c6f73657320, 0x6f72206661696c73, 0x206265666f726520, + 0x746861742e20446f, 0x6573206e6f742072, 0x65666c656374206c, 0x6174657220646973, 0x636f6e6e65637473, + 0x3b20736565207065, 0x6e64696e6743616c, 0x6c732f7374617465, 0x2e0a202020202020, 0x2020676574207265, + 0x6164792829207b0a, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, 0x726561647950726f, + 0x6d6973653b0a2020, 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, 0x202020746869732e, 0x736f636b65742e73, + 0x656e64286e657720, 0x55696e7438417272, 0x6179285b436f6d6d, 0x616e642e68616e64, 0x7368616b652c206e, + 0x617469766549734c, 0x6974746c65456e64, 0x69616e2829203f20, 0x30203a20315d2929, 0x3b0a202020202020, + 0x20207d0a0a202020, 0x20202020206f6e4d, 0x6573736167652862, 0x756666657229207b, 0x0a20202020202020, + 0x2020202020636f6e, 0x7374207669657720, 0x3d206e6577204461, 0x7461566965772862, 0x7566666572293b0a, + 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c2030, 0x2c20312c20226d65, + 0x7373616765206865, 0x6164657222293b0a, 0x2020202020202020, 0x2020202073776974, 0x6368202876696577, + 0x2e67657455696e74, 0x3828302929207b0a, 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, + 0x2e61636b3a0a2020, 0x2020202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, + 0x20302c20322c2022, 0x61636b6e6f776c65, 0x6467656d656e7422, 0x293b0a2020202020, 0x2020202020202020, + 0x2020206966202874, 0x6869732e73746174, 0x65203d3d3d202268, 0x616e647368616b69, 0x6e672229207b0a20, + 0x2020202020202020, 0x2020202020202020, 0x202020746869732e, 0x6c6974746c65456e, 0x6469616e203d2076, + 0x6965772e67657455, 0x696e743828312920, 0x3d3d3d20303b0a20, 0x2020202020202020, 0x2020202020202020, + 0x202020746869732e, 0x7374617465203d20, 0x226c696e6b656422, 0x3b0a202020202020, 0x2020202020202020, + 0x2020202020207468, 0x69732e7265616479, 0x536574746c656420, 0x3d20747275653b0a, 0x2020202020202020, + 0x2020202020202020, 0x2020202074686973, 0x2e7265736f6c7665, 0x526561647928293b, 0x0a20202020202020, + 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, + 0x2020202020206361, 0x736520436f6d6d61, 0x6e642e7465787443, 0x6f6d6d616e643a0a, 0x2020202020202020, + 0x2020202020202020, 0x746869732e68616e, 0x646c655465787443, 0x6f6d6d616e642876, 0x696577293b0a2020, + 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x206361736520436f, + 0x6d6d616e642e6361, 0x6c6c46756e637469, 0x6f6e3a0a20202020, 0x2020202020202020, 0x2020202074686973, + 0x2e63616c6c4a7346, 0x756e6374696f6e28, 0x76696577293b0a20, 0x2020202020202020, 0x2020202020202062, + 0x7265616b3b0a2020, 0x2020202020202020, 0x2020636173652043, 0x6f6d6d616e642e64, 0x6f6d42617463683a, + 0x0a20202020202020, 0x2020202020202020, 0x20747279207b0a20, 0x2020202020202020, 0x2020202020202020, + 0x2020206966202876, 0x6965772e62797465, 0x4c656e677468203e, 0x2031303234202a20, 0x3130323429207468, + 0x726f77206e657720, 0x52616e6765457272, 0x6f722822444f4d20, 0x6261746368206578, 0x6365656473203120, + 0x4d694222293b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020206966202821, 0x746869732e646f6d, + 0x426174636848616e, 0x646c657229207468, 0x726f77206e657720, 0x4572726f72282244, 0x4f4d20696e746572, + 0x7072657465722069, 0x73206e6f7420696e, 0x7374616c6c656422, 0x293b0a2020202020, 0x2020202020202020, + 0x2020202020202074, 0x6869732e646f6d42, 0x6174636848616e64, 0x6c6572286e657720, 0x55696e7438417272, + 0x6179286275666665, 0x7229293b0a202020, 0x2020202020202020, 0x20202020207d2063, 0x6174636820286572, + 0x726f7229207b0a20, 0x2020202020202020, 0x2020202020202020, 0x202020636f6e7374, 0x206964203d207669, + 0x65772e627974654c, 0x656e677468203e3d, 0x2036203f20766965, 0x772e67657455696e, 0x74333228322c2074, + 0x72756529203a2030, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207468, 0x69732e6370704675, + 0x6e6374696f6e2822, 0x7766446f6d2e7265, 0x6a65637465642229, 0x2869642c20537472, 0x696e67286572726f, + 0x722e6d6573736167, 0x65207c7c20657272, 0x6f72292e736c6963, 0x6528302c20343039, 0x3629292e63617463, + 0x68282829203d3e20, 0x7b7d293b0a202020, 0x2020202020202020, 0x20202020207d0a20, 0x2020202020202020, + 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x2020636173652043, 0x6f6d6d616e642e66, + 0x756e6374696f6e52, 0x657475726e3a0a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e68616e64, + 0x6c6546756e637469, 0x6f6e52657475726e, 0x2876696577293b0a, 0x2020202020202020, 0x2020202020202020, + 0x627265616b3b0a20, 0x2020202020202020, 0x2020206465666175, 0x6c743a0a20202020, 0x2020202020202020, + 0x202020207468726f, 0x77206e6577204572, 0x726f722860556e73, 0x7570706f72746564, 0x2057656246726f6e, + 0x7420636f6d6d616e, 0x6420247b76696577, 0x2e67657455696e74, 0x382830297d60293b, 0x0a20202020202020, + 0x20202020207d0a20, 0x202020202020207d, 0x0a0a202020202020, 0x202068616e646c65, 0x54657874436f6d6d, + 0x616e642876696577, 0x29207b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, + 0x772c20302c20342c, 0x2022746578742063, 0x6f6d6d616e642068, 0x656164657222293b, 0x0a20202020202020, + 0x2020202020636f6e, 0x7374206c656e6774, 0x68203d2076696577, 0x2e67657455696e74, 0x31362832293b0a20, + 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c20342c, 0x206c656e6774682c, + 0x2022746578742063, 0x6f6d6d616e642070, 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, + 0x6e73742074657874, 0x203d206e65772054, 0x6578744465636f64, 0x657228227574662d, 0x3822292e6465636f, + 0x6465286e65772055, 0x696e743841727261, 0x7928766965772e62, 0x75666665722c2076, 0x6965772e62797465, + 0x4f6666736574202b, 0x20342c206c656e67, 0x746829293b0a2020, 0x2020202020202020, 0x2020737769746368, + 0x2028766965772e67, 0x657455696e743828, 0x312929207b0a2020, 0x2020202020202020, 0x2020636173652054, + 0x657874436f6d6d61, 0x6e642e6465627567, 0x4c6f673a0a202020, 0x2020202020202020, 0x2020202020636f6e, + 0x736f6c652e6c6f67, 0x2874657874293b0a, 0x2020202020202020, 0x2020202020202020, 0x627265616b3b0a20, + 0x2020202020202020, 0x2020206361736520, 0x54657874436f6d6d, 0x616e642e696e6a65, 0x6374536372697074, + 0x3a207b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420736372697074, 0x203d20646f63756d, + 0x656e742e63726561, 0x7465456c656d656e, 0x7428227363726970, 0x7422293b0a202020, 0x2020202020202020, + 0x2020202020736372, 0x6970742e74657874, 0x203d20746578743b, 0x0a20202020202020, 0x2020202020202020, + 0x2028646f63756d65, 0x6e742e626f647920, 0x3f3f20646f63756d, 0x656e742e68656164, 0x203f3f20646f6375, + 0x6d656e742e646f63, 0x756d656e74456c65, 0x6d656e74292e6170, 0x70656e644368696c, 0x6428736372697074, + 0x293b0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, + 0x2020202020202020, 0x2020202064656661, 0x756c743a0a202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772045, 0x72726f722860556e, 0x737570706f727465, 0x642057656246726f, 0x6e74207465787420, + 0x636f6d6d616e6420, 0x247b766965772e67, 0x657455696e743828, 0x31297d60293b0a20, 0x2020202020202020, + 0x2020207d0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x63616c6c4a734675, 0x6e6374696f6e286d, + 0x6573736167652920, 0x7b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x6573286d65737361, + 0x67652c20302c2038, 0x2c202266756e6374, 0x696f6e2063616c6c, 0x2068656164657222, 0x293b0a2020202020, + 0x2020202020202063, 0x6f6e737420636f75, 0x6e74203d206d6573, 0x736167652e676574, 0x55696e7438283129, + 0x3b0a202020202020, 0x202020202020636f, 0x6e73742063616c6c, 0x4964203d206d6573, 0x736167652e676574, + 0x55696e7431362832, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, + 0x202069662028636f, 0x756e74203d3d3d20, 0x30290a2020202020, 0x2020202020202020, 0x2020207468726f77, + 0x206e657720457272, 0x6f72282246756e63, 0x74696f6e2063616c, 0x6c20686173206e6f, 0x2066756e6374696f, + 0x6e206e616d652229, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, 0x6f616453697a6520, + 0x3d206d6573736167, 0x652e67657455696e, 0x74333228342c2074, 0x6869732e6c697474, 0x6c65456e6469616e, + 0x293b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x746573286d657373, 0x6167652c20382c20, + 0x7061796c6f616453, 0x697a652c20226675, 0x6e6374696f6e2063, 0x616c6c207061796c, 0x6f616422293b0a20, + 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, 0x203d206e65772044, 0x6174615669657728, + 0x6d6573736167652e, 0x6275666665722c20, 0x6d6573736167652e, 0x627974654f666673, 0x6574202b20382c20, + 0x7061796c6f616453, 0x697a65293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x5b6e616d65732c20, + 0x6e616d6542797465, 0x735d203d20746869, 0x732e6465636f6465, 0x506172616d657465, 0x727328312c207061, + 0x796c6f6164293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74205b706172616d, 0x65746572732c2070, + 0x6172616d65746572, 0x42797465735d203d, 0x20746869732e6465, 0x636f646550617261, 0x6d65746572732863, + 0x6f756e74202d2031, 0x2c207061796c6f61, 0x642c206e616d6542, 0x79746573293b0a20, 0x2020202020202020, + 0x202020696620286e, 0x616d654279746573, 0x202b20706172616d, 0x6574657242797465, 0x7320213d3d207061, + 0x796c6f616453697a, 0x65290a2020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720457272, + 0x6f72282246756e63, 0x74696f6e2063616c, 0x6c20636f6e746169, 0x6e7320747261696c, 0x696e67207061796c, + 0x6f61642064617461, 0x22293b0a20202020, 0x2020202020202020, 0x6c65742065786563, 0x7574696f6e3b0a20, + 0x2020202020202020, 0x202020747279207b, 0x0a20202020202020, 0x2020202020202020, 0x2065786563757469, + 0x6f6e203d20746869, 0x732e657865637574, 0x6546756e6374696f, 0x6e286e616d65735b, 0x305d2c2070617261, + 0x6d6574657273293b, 0x0a20202020202020, 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, + 0x2020202020202020, 0x2020202020202074, 0x6869732e7265706f, 0x727443616c6c4661, 0x696c757265286361, + 0x6c6c49642c206572, 0x726f72293b0a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e3b0a2020, + 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x2f2f2063616c6c49, 0x642030206d65616e, + 0x7320746865206361, 0x6c6c657220697320, 0x6e6f742077616974, 0x696e6720666f7220, 0x616e797468696e67, + 0x2c20736f20746865, 0x7265206973206e6f, 0x7468696e6720746f, 0x2073656e64206261, 0x636b2e0a20202020, + 0x2020202020202020, 0x6966202863616c6c, 0x496420213d3d2030, 0x290a202020202020, 0x2020202020202020, + 0x202050726f6d6973, 0x652e7265736f6c76, 0x6528657865637574, 0x696f6e292e746865, 0x6e280a2020202020, + 0x2020202020202020, 0x2020202020202076, 0x616c7565203d3e20, 0x746869732e726570, 0x6f727443616c6c53, + 0x7563636573732863, 0x616c6c49642c2076, 0x616c7565292c0a20, 0x2020202020202020, 0x2020202020202020, + 0x2020206572726f72, 0x203d3e2074686973, 0x2e73656e6446756e, 0x6374696f6e457272, 0x6f722863616c6c49, + 0x642c206572726f72, 0x29293b0a20202020, 0x202020207d0a0a20, 0x2020202020202072, 0x65706f727443616c, + 0x6c4661696c757265, 0x2863616c6c49642c, 0x206572726f722920, 0x7b0a202020202020, 0x2020202020206966, + 0x202863616c6c4964, 0x203d3d3d2030290a, 0x2020202020202020, 0x2020202020202020, 0x636f6e736f6c652e, + 0x6572726f7228225b, 0x57656246726f6e74, 0x204a617661536372, 0x6970742063616c6c, 0x5d222c206572726f, + 0x72293b0a20202020, 0x2020202020202020, 0x656c73650a202020, 0x2020202020202020, 0x2020202020746869, + 0x732e73656e644675, 0x6e6374696f6e4572, 0x726f722863616c6c, 0x49642c206572726f, 0x72293b0a20202020, + 0x202020207d0a0a20, 0x2020202020202072, 0x65706f727443616c, 0x6c53756363657373, 0x2863616c6c49642c, + 0x2076616c75652920, 0x7b0a202020202020, 0x2020202020207472, 0x79207b0a20202020, 0x2020202020202020, + 0x2020202074686973, 0x2e73656e6446756e, 0x6374696f6e526574, 0x75726e2863616c6c, 0x49642c2076616c75, + 0x65293b0a20202020, 0x2020202020202020, 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, + 0x2020202020202020, 0x2020746869732e73, 0x656e6446756e6374, 0x696f6e4572726f72, 0x2863616c6c49642c, + 0x206572726f72293b, 0x0a20202020202020, 0x20202020207d0a20, 0x202020202020207d, 0x0a0a202020202020, + 0x2020657865637574, 0x6546756e6374696f, 0x6e286e616d652c20, 0x6172677329207b0a, 0x2020202020202020, + 0x20202020636f6e73, 0x742070617468203d, 0x206e616d652e7370, 0x6c697428222e2229, 0x3b0a202020202020, + 0x202020202020636f, 0x6e7374206d656d62, 0x6572203d20706174, 0x682e706f7028293b, 0x0a20202020202020, + 0x20202020206c6574, 0x20636f6e74657874, 0x203d20676c6f6261, 0x6c3b0a2020202020, 0x2020202020202066, + 0x6f722028636f6e73, 0x7420636f6d706f6e, 0x656e74206f662070, 0x61746829207b0a20, 0x2020202020202020, + 0x2020202020202069, 0x662028636f6e7465, 0x7874203d3d206e75, 0x6c6c207c7c202128, 0x636f6d706f6e656e, + 0x7420696e20636f6e, 0x7465787429290a20, 0x2020202020202020, 0x2020202020202020, 0x2020207468726f77, + 0x206e657720457272, 0x6f7228604a617661, 0x536372697074206e, 0x616d657370616365, 0x2027247b636f6d70, + 0x6f6e656e747d2720, 0x776173206e6f7420, 0x666f756e64207768, 0x696c65207265736f, 0x6c76696e67202724, + 0x7b6e616d657d2760, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e7465, 0x7874203d20636f6e, + 0x746578745b636f6d, 0x706f6e656e745d3b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, + 0x2020206966202863, 0x6f6e74657874203d, 0x3d206e756c6c207c, 0x7c20747970656f66, 0x20636f6e74657874, + 0x5b6d656d6265725d, 0x20213d3d20226675, 0x6e6374696f6e2229, 0x0a20202020202020, 0x2020202020202020, + 0x207468726f77206e, 0x6577204572726f72, 0x28604a6176615363, 0x726970742066756e, 0x6374696f6e202724, + 0x7b6e616d657d2720, 0x776173206e6f7420, 0x666f756e6460293b, 0x0a20202020202020, 0x2020202020726574, + 0x75726e20636f6e74, 0x6578745b6d656d62, 0x65725d282e2e2e61, 0x726773293b0a2020, 0x2020202020207d0a, + 0x0a20202020202020, 0x2068616e646c6546, 0x756e6374696f6e52, 0x657475726e286d65, 0x737361676529207b, + 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x73286d6573736167, 0x652c20302c20382c, + 0x202266756e637469, 0x6f6e207265747572, 0x6e20686561646572, 0x22293b0a20202020, 0x2020202020202020, + 0x636f6e7374206361, 0x6c6c4964203d206d, 0x6573736167652e67, 0x657455696e743136, 0x28322c2074686973, + 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x742070656e64696e, + 0x67203d2074686973, 0x2e70656e64696e67, 0x43616c6c732e6765, 0x742863616c6c4964, 0x293b0a2020202020, + 0x2020202020202069, 0x6620282170656e64, 0x696e67290a202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772045, 0x72726f7228604675, 0x6e6374696f6e2072, 0x657475726e206861, 0x7320756e6b6e6f77, + 0x6e2063616c6c2069, 0x6420247b63616c6c, 0x49647d60293b0a20, 0x2020202020202020, 0x202020746869732e, + 0x70656e64696e6743, 0x616c6c732e64656c, 0x6574652863616c6c, 0x4964293b0a0a2020, 0x2020202020202020, + 0x20202f2f20412064, 0x65636f6465206661, 0x696c757265206861, 0x7320746f20736574, 0x746c652074686520, + 0x70656e64696e6720, 0x63616c6c20726174, 0x686572207468616e, 0x2065736361706520, 0x696e746f20746865, + 0x20736f636b657420, 0x68616e646c65722c, 0x0a20202020202020, 0x20202020202f2f20, 0x6f74686572776973, + 0x6520746865206361, 0x6c6c657227732070, 0x726f6d6973652077, 0x6f756c642068616e, 0x6720666f72657665, + 0x722e0a2020202020, 0x2020202020202074, 0x7279207b0a202020, 0x2020202020202020, 0x2020202020746869, + 0x732e736574746c65, 0x52657475726e2870, 0x656e64696e672c20, 0x6d65737361676529, 0x3b0a202020202020, + 0x2020202020207d20, 0x6361746368202865, 0x72726f7229207b0a, 0x2020202020202020, 0x2020202020202020, + 0x70656e64696e672e, 0x72656a6563742865, 0x72726f72293b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x20202020207d0a0a, 0x2020202020202020, 0x736574746c655265, 0x7475726e2870656e, 0x64696e672c206d65, + 0x737361676529207b, 0x0a20202020202020, 0x2020202020636f6e, 0x737420636f756e74, 0x203d206d65737361, + 0x67652e6765745569, 0x6e74382831293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, + 0x6453697a65203d20, 0x6d6573736167652e, 0x67657455696e7433, 0x3228342c20746869, 0x732e6c6974746c65, + 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x73286d6573736167, + 0x652c20382c207061, 0x796c6f616453697a, 0x652c202266756e63, 0x74696f6e20726574, 0x75726e207061796c, + 0x6f616422293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, 0x203d206e65772044, + 0x6174615669657728, 0x6d6573736167652e, 0x6275666665722c20, 0x6d6573736167652e, 0x627974654f666673, + 0x6574202b20382c20, 0x7061796c6f616453, 0x697a65293b0a0a20, 0x2020202020202020, 0x2020206966202874, + 0x6869732e63617272, 0x6965734578636570, 0x74696f6e28636f75, 0x6e742c207061796c, 0x6f616453697a652c, + 0x207061796c6f6164, 0x2929207b0a202020, 0x2020202020202020, 0x202020202070656e, 0x64696e672e72656a, + 0x656374286e657720, 0x4572726f72287468, 0x69732e73696e676c, 0x6556616c75652870, 0x61796c6f61642c20, + 0x7061796c6f616453, 0x697a652c20224578, 0x63657074696f6e22, 0x2929293b0a202020, 0x2020202020202020, + 0x2020202020726574, 0x75726e3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202069, + 0x662028636f756e74, 0x203d3d3d20302920, 0x7b0a202020202020, 0x2020202020202020, 0x2020696620287061, + 0x796c6f616453697a, 0x6520213d3d203029, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772045, 0x72726f722822566f, 0x6964207265747572, 0x6e20636f6e746169, 0x6e73207061796c6f, + 0x6164206461746122, 0x293b0a2020202020, 0x2020202020202020, 0x20202070656e6469, 0x6e672e7265736f6c, + 0x766528756e646566, 0x696e6564293b0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e3b0a20, + 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2069662028636f75, 0x6e7420213d3d2031, + 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, 0x72282246756e6374, + 0x696f6e2072657475, 0x726e206d75737420, 0x636f6e7461696e20, 0x7a65726f206f7220, 0x6f6e652076616c75, + 0x6522293b0a202020, 0x2020202020202020, 0x2070656e64696e67, 0x2e7265736f6c7665, 0x28746869732e7369, + 0x6e676c6556616c75, 0x65287061796c6f61, 0x642c207061796c6f, 0x616453697a652c20, 0x2246756e6374696f, + 0x6e2229293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x2063617272696573, 0x457863657074696f, + 0x6e28636f756e742c, 0x207061796c6f6164, 0x53697a652c207061, 0x796c6f616429207b, 0x0a20202020202020, + 0x2020202020696620, 0x28636f756e742021, 0x3d3d2031207c7c20, 0x7061796c6f616453, 0x697a65203d3d3d20, + 0x3029207265747572, 0x6e2066616c73653b, 0x0a20202020202020, 0x2020202020726574, 0x75726e207061796c, + 0x6f61642e67657455, 0x696e743828302920, 0x3d3d3d2050617261, 0x6d547970652e6578, 0x63657074696f6e3b, + 0x0a20202020202020, 0x207d0a0a20202020, 0x202020202f2f2f20, 0x4465636f64657320, 0x65786163746c7920, + 0x6f6e652076616c75, 0x6520616e64207265, 0x6a6563747320616e, 0x7920627974657320, 0x6c656674206f7665, + 0x7220616674657220, 0x69742e0a20202020, 0x2020202073696e67, 0x6c6556616c756528, 0x7061796c6f61642c, + 0x207061796c6f6164, 0x53697a652c207768, 0x617429207b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x5b76616c7565732c, 0x20636f6e73756d65, 0x645d203d20746869, 0x732e6465636f6465, 0x506172616d657465, + 0x727328312c207061, 0x796c6f6164293b0a, 0x2020202020202020, 0x2020202069662028, 0x636f6e73756d6564, + 0x20213d3d20706179, 0x6c6f616453697a65, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, + 0x6e6577204572726f, 0x722860247b776861, 0x747d207265747572, 0x6e20636f6e746169, 0x6e7320747261696c, + 0x696e67207061796c, 0x6f61642064617461, 0x60293b0a20202020, 0x2020202020202020, 0x72657475726e2076, + 0x616c7565735b305d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020646563, 0x6f6465506172616d, + 0x657465727328636f, 0x756e742c20766965, 0x772c206f66667365, 0x74203d203029207b, 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, 0x2c2062797465737d, 0x203d20746869732e, 0x6465636f64655661, 0x6c75652876696577, + 0x2e67657455696e74, 0x3828637572736f72, 0x292c20766965772c, 0x20637572736f7229, 0x3b0a202020202020, + 0x2020202020202020, 0x202076616c756573, 0x2e70757368287661, 0x6c7565293b0a2020, 0x2020202020202020, + 0x2020202020206375, 0x72736f72202b3d20, 0x62797465733b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x5b76616c7565732c, 0x20637572736f7220, 0x2d206f6666736574, + 0x5d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f204465636f6465, 0x7320746865207369, + 0x6e676c652076616c, 0x7565207374617274, 0x696e672061742027, 0x6f6666736574272c, 0x2072657475726e69, + 0x6e6720697420616c, 0x6f6e677369646520, 0x7468652062797465, 0x20636f756e742069, 0x7420636f6e73756d, + 0x65642e0a20202020, 0x202020206465636f, 0x646556616c756528, 0x747970652c207669, 0x65772c206f666673, + 0x657429207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6465636f64657220, 0x3d2076616c756544, + 0x65636f646572732e, 0x6765742874797065, 0x293b0a2020202020, 0x2020202020202069, 0x662028216465636f, + 0x646572290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, 0x7970654572726f72, + 0x2860556e73757070, 0x6f72746564207061, 0x72616d6574657220, 0x7479706520247b74, 0x7970657d60293b0a, + 0x2020202020202020, 0x2020202072657475, 0x726e206465636f64, 0x657228746869732c, 0x20747970652c2076, + 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x206465636f64654e, + 0x756d626572287669, 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, 0x2020726571756972, + 0x6542797465732876, 0x6965772c206f6666, 0x7365742c20392c20, 0x226e756d62657222, 0x293b0a2020202020, + 0x2020202020202072, 0x657475726e207b76, 0x616c75653a207669, 0x65772e676574466c, 0x6f61743634286f66, + 0x66736574202b2031, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e292c206279, 0x7465733a20397d3b, + 0x0a20202020202020, 0x207d0a0a20202020, 0x202020206465636f, 0x6465537472696e67, 0x28747970652c2076, + 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2073697a65427974, + 0x6573203d20747970, 0x65203d3d3d205061, 0x72616d547970652e, 0x736d616c6c537472, 0x696e67203f203120, + 0x3a20323b0a202020, 0x2020202020202020, 0x2072657175697265, 0x4279746573287669, 0x65772c206f666673, + 0x6574202b20312c20, 0x73697a6542797465, 0x732c202273747269, 0x6e67206c656e6774, 0x6822293b0a202020, + 0x2020202020202020, 0x20636f6e7374206c, 0x656e677468203d20, 0x73697a6542797465, 0x73203d3d3d203120, 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, - 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, - 0x207468726f77206e, 0x6577204572726f72, 0x282257656246726f, 0x6e74206272696467, 0x65206973206e6f74, - 0x20636f6e6e656374, 0x656422293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, - 0x76616c756573203d, 0x205b6e616d652c20, 0x2e2e2e617267735d, 0x3b0a202020202020, 0x2020202020202020, - 0x2020202020206966, 0x202876616c756573, 0x2e6c656e67746820, 0x3e20323535290a20, 0x2020202020202020, - 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f722822412066, - 0x756e6374696f6e20, 0x63616c6c2063616e, 0x6e6f7420636f6e74, 0x61696e206d6f7265, 0x207468616e203235, - 0x3520746f702d6c65, 0x76656c2076616c75, 0x657322293b0a2020, 0x2020202020202020, 0x2020202020202020, - 0x2020636f6e737420, 0x7061796c6f616453, 0x697a65203d207661, 0x6c7565732e726564, 0x756365282873697a, - 0x652c2076616c7565, 0x29203d3e2073697a, 0x65202b2074686973, 0x2e706172616d6574, 0x657253697a652876, - 0x616c7565292c2030, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420627566, + 0x6e743136286f6666, 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, + 0x202020206465636f, 0x64655475706c6528, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, + 0x2020202072657175, 0x6972654279746573, 0x28766965772c206f, 0x66667365742c2032, 0x2c20227475706c65, + 0x2068656164657222, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e7374205b7475, 0x706c652c20636f6e, + 0x73756d65645d203d, 0x20746869732e6465, 0x636f646550617261, 0x6d65746572732876, 0x6965772e67657455, + 0x696e7438286f6666, 0x736574202b203129, 0x2c20766965772c20, 0x6f6666736574202b, 0x2032293b0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x7b76616c75653a20, 0x7475706c652c2062, 0x797465733a203220, + 0x2b20636f6e73756d, 0x65647d3b0a202020, 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, 0x202063707046756e, + 0x6374696f6e286e61, 0x6d6529207b0a2020, 0x2020202020202020, 0x202072657475726e, 0x20282e2e2e617267, + 0x7329203d3e207468, 0x69732e63616c6c43, 0x707046756e637469, 0x6f6e286e616d652c, 0x2061726773293b0a, + 0x2020202020202020, 0x7d0a0a2020202020, 0x20202063616c6c43, 0x707046756e637469, 0x6f6e286e616d652c, + 0x206172677329207b, 0x0a20202020202020, 0x2020202020726574, 0x75726e206e657720, 0x50726f6d69736528, + 0x287265736f6c7665, 0x2c2072656a656374, 0x29203d3e207b0a20, 0x2020202020202020, 0x202020202020206c, + 0x65742063616c6c49, 0x64203d20303b0a20, 0x2020202020202020, 0x2020202020202074, 0x7279207b0a202020, + 0x2020202020202020, 0x2020202020202020, 0x2069662028746869, 0x732e737461746520, 0x213d3d20226c696e, + 0x6b656422290a2020, 0x2020202020202020, 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, + 0x4572726f72282257, 0x656246726f6e7420, 0x6272696467652069, 0x73206e6f7420636f, 0x6e6e656374656422, + 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e73742076616c, 0x756573203d205b6e, + 0x616d652c202e2e2e, 0x617267735d3b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020206966202876, + 0x616c7565732e6c65, 0x6e677468203e2032, 0x3535290a20202020, 0x2020202020202020, 0x2020202020202020, + 0x202020207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x2822412066756e63, 0x74696f6e2063616c, + 0x6c2063616e6e6f74, 0x20636f6e7461696e, 0x206d6f7265207468, 0x616e203235352074, 0x6f702d6c6576656c, + 0x2076616c75657322, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420706179, + 0x6c6f616453697a65, 0x203d2076616c7565, 0x732e726564756365, 0x282873697a652c20, 0x76616c756529203d, + 0x3e2073697a65202b, 0x20746869732e7061, 0x72616d6574657253, 0x697a652876616c75, 0x65292c2030293b0a, + 0x2020202020202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420627566666572, 0x203d206e65772041, + 0x7272617942756666, 0x65722838202b2070, 0x61796c6f61645369, 0x7a65293b0a202020, 0x2020202020202020, + 0x2020202020202020, 0x20636f6e73742076, 0x696577203d206e65, 0x7720446174615669, 0x6577286275666665, + 0x72293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x63616c6c4964203d, 0x20746869732e616c, + 0x6c6f636174654361, 0x6c6c496428293b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202076696577, + 0x2e73657455696e74, 0x3828302c20436f6d, 0x6d616e642e63616c, 0x6c46756e6374696f, 0x6e293b0a20202020, + 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, 0x55696e743828312c, 0x2076616c7565732e, + 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, + 0x74313628322c2063, 0x616c6c49642c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, + 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e74333228342c, 0x207061796c6f6164, + 0x53697a652c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x2020202020202020, + 0x2020202020206c65, 0x7420637572736f72, 0x203d20383b0a2020, 0x2020202020202020, 0x2020202020202020, + 0x2020666f72202863, 0x6f6e73742076616c, 0x7565206f66207661, 0x6c756573290a2020, 0x2020202020202020, + 0x2020202020202020, 0x2020202020206375, 0x72736f72202b3d20, 0x746869732e656e63, 0x6f6465506172616d, + 0x657465722876616c, 0x75652c2076696577, 0x2c20637572736f72, 0x293b0a2020202020, 0x2020202020202020, + 0x2020202020202074, 0x6869732e70656e64, 0x696e6743616c6c73, 0x2e7365742863616c, 0x6c49642c207b7265, + 0x736f6c76652c2072, 0x656a6563747d293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, + 0x732e736f636b6574, 0x2e73656e64286275, 0x66666572293b0a20, 0x2020202020202020, 0x202020202020207d, + 0x2063617463682028, 0x6572726f7229207b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, + 0x2863616c6c496420, 0x213d3d2030290a20, 0x2020202020202020, 0x2020202020202020, 0x2020202020202074, + 0x6869732e70656e64, 0x696e6743616c6c73, 0x2e64656c65746528, 0x63616c6c4964293b, 0x0a20202020202020, + 0x2020202020202020, 0x202020202072656a, 0x656374286572726f, 0x72293b0a20202020, 0x2020202020202020, + 0x202020207d0a2020, 0x2020202020202020, 0x20207d293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, + 0x20616c6c6f636174, 0x6543616c6c496428, 0x29207b0a20202020, 0x2020202020202020, 0x666f7220286c6574, + 0x20617474656d7074, 0x73203d20303b2061, 0x7474656d70747320, 0x3c20307866666666, 0x3b202b2b61747465, + 0x6d70747329207b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206361, 0x6e64696461746520, + 0x3d20746869732e6e, 0x65787443616c6c49, 0x643b0a2020202020, 0x2020202020202020, 0x202020746869732e, + 0x6e65787443616c6c, 0x4964203d20746869, 0x732e6e6578744361, 0x6c6c4964203d3d3d, 0x2030786666666620, + 0x3f2031203a207468, 0x69732e6e65787443, 0x616c6c4964202b20, 0x313b0a2020202020, 0x2020202020202020, + 0x2020206966202821, 0x746869732e70656e, 0x64696e6743616c6c, 0x732e686173286361, 0x6e64696461746529, + 0x290a202020202020, 0x2020202020202020, 0x2020202020207265, 0x7475726e2063616e, 0x6469646174653b0a, + 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, + 0x722822546f6f206d, 0x616e79206f757473, 0x74616e64696e6720, 0x57656246726f6e74, 0x2063616c6c732229, + 0x3b0a202020202020, 0x20207d0a0a202020, 0x202020202073656e, 0x6446756e6374696f, 0x6e52657475726e28, + 0x63616c6c49642c20, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742076616c7565, + 0x73203d2076616c75, 0x65203d3d3d20756e, 0x646566696e656420, 0x3f205b5d203a205b, 0x76616c75655d3b0a, + 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, 0x6453697a65203d20, 0x76616c7565732e72, + 0x6564756365282873, 0x697a652c20697465, 0x6d29203d3e207369, 0x7a65202b20746869, 0x732e706172616d65, + 0x74657253697a6528, 0x6974656d292c2030, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420627566, 0x666572203d206e65, 0x7720417272617942, 0x7566666572283820, 0x2b207061796c6f61, 0x6453697a65293b0a, - 0x2020202020202020, 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, - 0x6156696577286275, 0x66666572293b0a20, 0x2020202020202020, 0x2020202020202020, 0x20202063616c6c49, - 0x64203d2074686973, 0x2e616c6c6f636174, 0x6543616c6c496428, 0x293b0a2020202020, 0x2020202020202020, - 0x2020202020202076, 0x6965772e73657455, 0x696e743828302c20, 0x436f6d6d616e642e, 0x63616c6c46756e63, - 0x74696f6e293b0a20, 0x2020202020202020, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, - 0x28312c2076616c75, 0x65732e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x2020202020202020, + 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, 0x6156696577286275, + 0x66666572293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x28302c20436f6d6d, + 0x616e642e66756e63, 0x74696f6e52657475, 0x726e293b0a202020, 0x2020202020202020, 0x20766965772e7365, + 0x7455696e74382831, 0x2c2076616c756573, 0x2e6c656e67746829, 0x3b0a202020202020, 0x2020202020207669, + 0x65772e7365745569, 0x6e74313628322c20, 0x63616c6c49642c20, 0x746869732e6c6974, 0x746c65456e646961, + 0x6e293b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7433322834, 0x2c207061796c6f61, + 0x6453697a652c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x202020202020206c, + 0x657420637572736f, 0x72203d20383b0a20, 0x2020202020202020, 0x202020666f722028, 0x636f6e7374206974, + 0x656d206f66207661, 0x6c756573290a2020, 0x2020202020202020, 0x2020202020206375, 0x72736f72202b3d20, + 0x746869732e656e63, 0x6f6465506172616d, 0x6574657228697465, 0x6d2c20766965772c, 0x20637572736f7229, + 0x3b0a202020202020, 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, 0x7566666572293b0a, + 0x2020202020202020, 0x7d0a0a2020202020, 0x20202073656e6446, 0x756e6374696f6e45, 0x72726f722863616c, + 0x6c49642c20657272, 0x6f7229207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6d65737361676520, + 0x3d206572726f7220, 0x696e7374616e6365, 0x6f66204572726f72, 0x203f206572726f72, 0x2e6d657373616765, + 0x203a20537472696e, 0x67286572726f7229, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742062797465, + 0x73203d206e657720, 0x54657874456e636f, 0x64657228292e656e, 0x636f6465286d6573, 0x73616765293b0a20, + 0x2020202020202020, 0x2020206966202862, 0x797465732e6c656e, 0x677468203e3d2036, 0x35353336290a2020, + 0x2020202020202020, 0x2020202020207265, 0x7475726e20746869, 0x732e73656e644675, 0x6e6374696f6e4572, + 0x726f722863616c6c, 0x49642c20224a6176, 0x6153637269707420, 0x657863657074696f, 0x6e206d6573736167, + 0x6520657863656564, 0x7320363535333520, 0x5554462d38206279, 0x74657322293b0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x2062756666657220, 0x3d206e6577204172, 0x7261794275666665, 0x72283131202b2062, + 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, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, - 0x28342c207061796c, 0x6f616453697a652c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, - 0x2020202020202020, 0x2020202020202020, 0x206c657420637572, 0x736f72203d20383b, 0x0a20202020202020, - 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x76616c7565206f66, 0x2076616c75657329, - 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, 0x20637572736f7220, 0x2b3d20746869732e, - 0x656e636f64655061, 0x72616d6574657228, 0x76616c75652c2076, 0x6965772c20637572, 0x736f72293b0a2020, - 0x2020202020202020, 0x2020202020202020, 0x2020746869732e70, 0x656e64696e674361, 0x6c6c732e73657428, - 0x63616c6c49642c20, 0x7b7265736f6c7665, 0x2c2072656a656374, 0x7d293b0a20202020, 0x2020202020202020, - 0x2020202020202020, 0x746869732e736f63, 0x6b65742e73656e64, 0x2862756666657229, 0x3b0a202020202020, - 0x2020202020202020, 0x20207d2063617463, 0x6820286572726f72, 0x29207b0a20202020, 0x2020202020202020, - 0x2020202020202020, 0x6966202863616c6c, 0x496420213d3d2030, 0x290a202020202020, 0x2020202020202020, - 0x2020202020202020, 0x2020746869732e70, 0x656e64696e674361, 0x6c6c732e64656c65, 0x74652863616c6c49, - 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x72656a6563742865, 0x72726f72293b0a20, - 0x2020202020202020, 0x202020202020207d, 0x0a20202020202020, 0x20202020207d293b, 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, - 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, 0x2020202020207365, 0x6e6446756e637469, - 0x6f6e4572726f7228, 0x63616c6c49642c20, 0x6572726f7229207b, 0x0a20202020202020, 0x2020202020636f6e, - 0x7374206d65737361, 0x6765203d20657272, 0x6f7220696e737461, 0x6e63656f66204572, 0x726f72203f206572, - 0x726f722e6d657373, 0x616765203a205374, 0x72696e6728657272, 0x6f72293b0a202020, 0x2020202020202020, - 0x20636f6e73742062, 0x79746573203d206e, 0x6577205465787445, 0x6e636f6465722829, 0x2e656e636f646528, - 0x6d65737361676529, 0x3b0a202020202020, 0x2020202020206966, 0x202862797465732e, 0x6c656e677468203e, - 0x3d20363535333629, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e73656e, - 0x6446756e6374696f, 0x6e4572726f722863, 0x616c6c49642c2022, 0x4a61766153637269, 0x7074206578636570, - 0x74696f6e206d6573, 0x7361676520657863, 0x6565647320363535, 0x3335205554462d38, 0x2062797465732229, - 0x3b0a202020202020, 0x202020202020636f, 0x6e73742062756666, 0x6572203d206e6577, 0x2041727261794275, - 0x6666657228313120, 0x2b2062797465732e, 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020636f6e, - 0x7374207669657720, 0x3d206e6577204461, 0x7461566965772862, 0x7566666572293b0a, 0x2020202020202020, - 0x2020202076696577, 0x2e73657455696e74, 0x3828302c20436f6d, 0x6d616e642e66756e, 0x6374696f6e526574, - 0x75726e293b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x312c2031293b0a20, - 0x2020202020202020, 0x202020766965772e, 0x73657455696e7431, 0x3628322c2063616c, 0x6c49642c20746869, - 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020766965, 0x772e73657455696e, - 0x74333228342c2033, 0x202b206279746573, 0x2e6c656e6774682c, 0x20746869732e6c69, 0x74746c65456e6469, - 0x616e293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382838, 0x2c20506172616d54, - 0x7970652e65786365, 0x7074696f6e293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, - 0x313628392c206279, 0x7465732e6c656e67, 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, - 0x2020202020202020, 0x202020206e657720, 0x55696e7438417272, 0x6179286275666665, 0x722c203131292e73, - 0x6574286279746573, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, 0x65742e73656e6428, - 0x627566666572293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202070617261, 0x6d6574657253697a, - 0x652876616c756529, 0x207b0a2020202020, 0x2020202020202073, 0x7769746368202874, 0x7970656f66207661, - 0x6c756529207b0a20, 0x2020202020202020, 0x2020206361736520, 0x22626f6f6c65616e, 0x223a0a2020202020, - 0x2020202020202020, 0x2020207265747572, 0x6e20313b0a202020, 0x2020202020202020, 0x206361736520226e, - 0x756d626572223a0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2039, 0x3b0a202020202020, - 0x2020202020206361, 0x7365202273747269, 0x6e67223a0a202020, 0x2020202020202020, 0x2020202020726574, - 0x75726e2074686973, 0x2e737472696e6750, 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, - 0x2020202020202020, 0x206361736520226f, 0x626a656374223a0a, 0x2020202020202020, 0x2020202020202020, - 0x72657475726e2074, 0x6869732e6f626a65, 0x6374506172616d65, 0x74657253697a6528, 0x76616c7565293b0a, - 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, - 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e742070617261, 0x6d65746572207479, - 0x70652027247b7479, 0x70656f662076616c, 0x75657d2760293b0a, 0x2020202020202020, 0x7d0a0a2020202020, - 0x202020737472696e, 0x67506172616d6574, 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, - 0x20202020636f6e73, 0x74206c656e677468, 0x203d206e65772054, 0x657874456e636f64, 0x657228292e656e63, - 0x6f64652876616c75, 0x65292e6c656e6774, 0x683b0a2020202020, 0x2020202020202069, 0x6620286c656e6774, - 0x68203e3d20363535, 0x3336290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205261, - 0x6e67654572726f72, 0x282257656246726f, 0x6e7420737472696e, 0x67732063616e6e6f, 0x7420657863656564, - 0x2036353533352055, 0x54462d3820627974, 0x657322293b0a2020, 0x2020202020202020, 0x202072657475726e, - 0x206c656e67746820, 0x2b20286c656e6774, 0x68203c2032353620, 0x3f2032203a203329, 0x3b0a202020202020, - 0x20207d0a0a202020, 0x20202020206f626a, 0x656374506172616d, 0x6574657253697a65, 0x2876616c75652920, - 0x7b0a202020202020, 0x2020202020206966, 0x202841727261792e, 0x6973417272617928, 0x76616c756529290a, - 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, 0x6869732e7475706c, 0x65506172616d6574, - 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x2020206966202869, 0x7354797065644172, - 0x7261792876616c75, 0x6529290a20202020, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, - 0x7479706564417272, 0x6179506172616d65, 0x74657253697a6528, 0x76616c7565293b0a, 0x2020202020202020, - 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, 0x60556e737570706f, 0x7274656420576562, - 0x46726f6e74207061, 0x72616d6574657220, 0x747970652027247b, 0x747970656f662076, 0x616c75657d276029, - 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020747570, 0x6c65506172616d65, 0x74657253697a6528, - 0x76616c756529207b, 0x0a20202020202020, 0x2020202020696620, 0x2876616c75652e6c, 0x656e677468203e20, - 0x323535290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772052, 0x616e67654572726f, - 0x7228225765624672, 0x6f6e74207475706c, 0x65732063616e6e6f, 0x7420657863656564, 0x2032353520656c65, - 0x6d656e747322293b, 0x0a20202020202020, 0x2020202020726574, 0x75726e2032202b20, 0x76616c75652e7265, - 0x6475636528287369, 0x7a652c20656c656d, 0x656e7429203d3e20, 0x73697a65202b2074, 0x6869732e70617261, - 0x6d6574657253697a, 0x6528656c656d656e, 0x74292c2030293b0a, 0x2020202020202020, 0x7d0a0a2020202020, - 0x2020207479706564, 0x4172726179506172, 0x616d657465725369, 0x7a652876616c7565, 0x29207b0a20202020, - 0x2020202020202020, 0x6966202821617272, 0x617954797065732e, 0x6861732876616c75, 0x652e636f6e737472, - 0x7563746f7229290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, - 0x726f722860556e73, 0x7570706f72746564, 0x2074797065642061, 0x7272617920247b76, 0x616c75652e636f6e, - 0x7374727563746f72, 0x2e6e616d657d6029, 0x3b0a202020202020, 0x2020202020206966, 0x202876616c75652e, - 0x6c656e677468203e, 0x2030786666666666, 0x666666290a202020, 0x2020202020202020, 0x2020202020746872, - 0x6f77206e65772052, 0x616e67654572726f, 0x7228225479706564, 0x2061727261797320, 0x63616e6e6f742065, - 0x7863656564203432, 0x3934393637323935, 0x20656c656d656e74, 0x7322293b0a202020, 0x2020202020202020, - 0x2072657475726e20, 0x7479706564417272, 0x6179486561646572, 0x53697a652876616c, 0x756529202b207661, - 0x6c75652e62797465, 0x4c656e6774683b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020656e636f64, - 0x65506172616d6574, 0x65722876616c7565, 0x2c20766965772c20, 0x6f66667365742920, 0x7b0a202020202020, - 0x2020202020207377, 0x6974636820287479, 0x70656f662076616c, 0x756529207b0a2020, 0x2020202020202020, - 0x2020636173652022, 0x626f6f6c65616e22, 0x3a0a202020202020, 0x2020202020202020, 0x2020766965772e73, - 0x657455696e743828, 0x6f66667365742c20, 0x76616c7565203f20, 0x506172616d547970, 0x652e626f6f6c6561, - 0x6e54727565203a20, 0x506172616d547970, 0x652e626f6f6c6561, 0x6e46616c7365293b, 0x0a20202020202020, - 0x2020202020202020, 0x2072657475726e20, 0x313b0a2020202020, 0x2020202020202063, 0x61736520226e756d, - 0x626572223a0a2020, 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e7438286f666673, - 0x65742c2050617261, 0x6d547970652e6e75, 0x6d626572293b0a20, 0x2020202020202020, 0x2020202020202076, - 0x6965772e73657446, 0x6c6f61743634286f, 0x6666736574202b20, 0x312c2076616c7565, 0x2c20746869732e6c, - 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e20393b0a, - 0x2020202020202020, 0x2020202063617365, 0x2022737472696e67, 0x223a0a2020202020, 0x2020202020202020, - 0x2020207265747572, 0x6e20746869732e65, 0x6e636f6465537472, 0x696e672876616c75, 0x652c20766965772c, - 0x206f666673657429, 0x3b0a202020202020, 0x2020202020206361, 0x736520226f626a65, 0x6374223a0a202020, - 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, 0x2e656e636f64654f, 0x626a656374287661, - 0x6c75652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x547970654572726f, 0x722860556e737570, 0x706f727465642057, - 0x656246726f6e7420, 0x706172616d657465, 0x7220747970652027, 0x247b747970656f66, 0x2076616c75657d27, - 0x60293b0a20202020, 0x202020207d0a0a20, 0x2020202020202065, 0x6e636f6465537472, 0x696e672876616c75, - 0x652c20766965772c, 0x206f666673657429, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420627974, - 0x6573203d206e6577, 0x2054657874456e63, 0x6f64657228292e65, 0x6e636f6465287661, 0x6c7565293b0a2020, - 0x2020202020202020, 0x2020636f6e737420, 0x736d616c6c203d20, 0x62797465732e6c65, 0x6e677468203c2032, - 0x35363b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, 0x667365742c20736d, - 0x616c6c203f205061, 0x72616d547970652e, 0x736d616c6c537472, 0x696e67203a205061, 0x72616d547970652e, - 0x737472696e67293b, 0x0a20202020202020, 0x2020202020696620, 0x28736d616c6c290a, 0x2020202020202020, - 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, 0x66736574202b2031, 0x2c2062797465732e, - 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020656c73, 0x650a202020202020, 0x2020202020202020, - 0x2020766965772e73, 0x657455696e743136, 0x286f666673657420, 0x2b20312c20627974, 0x65732e6c656e6774, - 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x202020636f6e7374, - 0x2068656164657253, 0x697a65203d20736d, 0x616c6c203f203220, 0x3a20333b0a202020, 0x2020202020202020, - 0x206e65772055696e, 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, 0x772e627974654f66, - 0x66736574202b206f, 0x6666736574202b20, 0x6865616465725369, 0x7a652c2062797465, 0x732e6c656e677468, - 0x292e736574286279, 0x746573293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x2068656164657253, - 0x697a65202b206279, 0x7465732e6c656e67, 0x74683b0a20202020, 0x202020207d0a0a20, 0x2020202020202065, - 0x6e636f64654f626a, 0x6563742876616c75, 0x652c20766965772c, 0x206f666673657429, 0x207b0a2020202020, - 0x2020202020202069, 0x6620284172726179, 0x2e69734172726179, 0x2876616c75652929, 0x0a20202020202020, - 0x2020202020202020, 0x2072657475726e20, 0x746869732e656e63, 0x6f64655475706c65, 0x2876616c75652c20, - 0x766965772c206f66, 0x66736574293b0a20, 0x2020202020202020, 0x2020206966202869, 0x7354797065644172, - 0x7261792876616c75, 0x6529290a20202020, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, - 0x656e636f64655479, 0x7065644172726179, 0x2876616c75652c20, 0x766965772c206f66, 0x66736574293b0a20, - 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, 0x654572726f722860, 0x556e737570706f72, - 0x7465642057656246, 0x726f6e7420706172, 0x616d657465722074, 0x7970652027247b74, 0x7970656f66207661, - 0x6c75657d2760293b, 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 + 0x69616e293b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, 0x28342c2033202b20, + 0x62797465732e6c65, 0x6e6774682c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, + 0x2020202020207669, 0x65772e7365745569, 0x6e743828382c2050, 0x6172616d54797065, 0x2e65786365707469, + 0x6f6e293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, 0x392c206279746573, + 0x2e6c656e6774682c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, + 0x206e65772055696e, 0x7438417272617928, 0x6275666665722c20, 0x3131292e73657428, 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, 0x737472696e675061, + 0x72616d6574657253, 0x697a652876616c75, 0x6529207b0a202020, 0x2020202020202020, 0x20636f6e7374206c, + 0x656e677468203d20, 0x6e65772054657874, 0x456e636f64657228, 0x292e656e636f6465, 0x2876616c7565292e, + 0x6c656e6774683b0a, 0x2020202020202020, 0x2020202069662028, 0x6c656e677468203e, 0x3d20363535333629, + 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282257, + 0x656246726f6e7420, 0x737472696e677320, 0x63616e6e6f742065, 0x7863656564203635, 0x353335205554462d, + 0x3820627974657322, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206c65, 0x6e677468202b2028, + 0x6c656e677468203c, 0x20323536203f2032, 0x203a2033293b0a20, 0x202020202020207d, 0x0a0a202020202020, + 0x20206f626a656374, 0x506172616d657465, 0x7253697a65287661, 0x6c756529207b0a20, 0x2020202020202020, + 0x2020206966202841, 0x727261792e697341, 0x727261792876616c, 0x756529290a202020, 0x2020202020202020, + 0x2020202020726574, 0x75726e2074686973, 0x2e7475706c655061, 0x72616d6574657253, 0x697a652876616c75, + 0x65293b0a20202020, 0x2020202020202020, 0x6966202869735479, 0x7065644172726179, 0x2876616c75652929, + 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e747970, 0x6564417272617950, + 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, 0x2020202020202020, 0x207468726f77206e, + 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, 0x642057656246726f, 0x6e7420706172616d, + 0x6574657220747970, 0x652027247b747970, 0x656f662076616c75, 0x657d2760293b0a20, 0x202020202020207d, + 0x0a0a202020202020, 0x20207475706c6550, 0x6172616d65746572, 0x53697a652876616c, 0x756529207b0a2020, + 0x2020202020202020, 0x2020696620287661, 0x6c75652e6c656e67, 0x7468203e20323535, 0x290a202020202020, + 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, 0x57656246726f6e74, + 0x207475706c657320, 0x63616e6e6f742065, 0x7863656564203235, 0x3520656c656d656e, 0x747322293b0a2020, + 0x2020202020202020, 0x202072657475726e, 0x2032202b2076616c, 0x75652e7265647563, 0x65282873697a652c, + 0x20656c656d656e74, 0x29203d3e2073697a, 0x65202b2074686973, 0x2e706172616d6574, 0x657253697a652865, + 0x6c656d656e74292c, 0x2030293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x7479706564417272, + 0x6179506172616d65, 0x74657253697a6528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020696620, + 0x2821617272617954, 0x797065732e686173, 0x2876616c75652e63, 0x6f6e737472756374, 0x6f7229290a202020, + 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, 0x7970654572726f72, 0x2860556e73757070, + 0x6f72746564207479, 0x7065642061727261, 0x7920247b76616c75, 0x652e636f6e737472, 0x7563746f722e6e61, + 0x6d657d60293b0a20, 0x2020202020202020, 0x2020206966202876, 0x616c75652e6c656e, 0x677468203e203078, + 0x6666666666666666, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, + 0x654572726f722822, 0x5479706564206172, 0x726179732063616e, 0x6e6f742065786365, 0x6564203432393439, + 0x363732393520656c, 0x656d656e74732229, 0x3b0a202020202020, 0x2020202020207265, 0x7475726e20747970, + 0x6564417272617948, 0x656164657253697a, 0x652876616c756529, 0x202b2076616c7565, 0x2e627974654c656e, + 0x6774683b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x656e636f64655061, 0x72616d6574657228, + 0x76616c75652c2076, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x2020207377697463, + 0x682028747970656f, 0x662076616c756529, 0x207b0a2020202020, 0x2020202020202063, 0x6173652022626f6f, + 0x6c65616e223a0a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e7438286f6666, + 0x7365742c2076616c, 0x7565203f20506172, 0x616d547970652e62, 0x6f6f6c65616e5472, 0x7565203a20506172, + 0x616d547970652e62, 0x6f6f6c65616e4661, 0x6c7365293b0a2020, 0x2020202020202020, 0x2020202020207265, + 0x7475726e20313b0a, 0x2020202020202020, 0x2020202063617365, 0x20226e756d626572, 0x223a0a2020202020, + 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x286f66667365742c, 0x20506172616d5479, + 0x70652e6e756d6265, 0x72293b0a20202020, 0x2020202020202020, 0x2020202076696577, 0x2e736574466c6f61, + 0x743634286f666673, 0x6574202b20312c20, 0x76616c75652c2074, 0x6869732e6c697474, 0x6c65456e6469616e, + 0x293b0a2020202020, 0x2020202020202020, 0x2020207265747572, 0x6e20393b0a202020, 0x2020202020202020, + 0x2063617365202273, 0x7472696e67223a0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, + 0x6869732e656e636f, 0x6465537472696e67, 0x2876616c75652c20, 0x766965772c206f66, 0x66736574293b0a20, + 0x2020202020202020, 0x2020206361736520, 0x226f626a65637422, 0x3a0a202020202020, 0x2020202020202020, + 0x202072657475726e, 0x20746869732e656e, 0x636f64654f626a65, 0x63742876616c7565, 0x2c20766965772c20, + 0x6f6666736574293b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020207468726f77, + 0x206e657720547970, 0x654572726f722860, 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420706172, + 0x616d657465722074, 0x7970652027247b74, 0x7970656f66207661, 0x6c75657d2760293b, 0x0a20202020202020, + 0x207d0a0a20202020, 0x20202020656e636f, 0x6465537472696e67, 0x2876616c75652c20, 0x766965772c206f66, + 0x6673657429207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420627974657320, 0x3d206e6577205465, + 0x7874456e636f6465, 0x7228292e656e636f, 0x64652876616c7565, 0x293b0a2020202020, 0x2020202020202063, + 0x6f6e737420736d61, 0x6c6c203d20627974, 0x65732e6c656e6774, 0x68203c203235363b, 0x0a20202020202020, + 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, 0x742c20736d616c6c, 0x203f20506172616d, + 0x547970652e736d61, 0x6c6c537472696e67, 0x203a20506172616d, 0x547970652e737472, 0x696e67293b0a2020, + 0x2020202020202020, 0x202069662028736d, 0x616c6c290a202020, 0x2020202020202020, 0x2020202020766965, + 0x772e73657455696e, 0x7438286f66667365, 0x74202b20312c2062, 0x797465732e6c656e, 0x677468293b0a2020, + 0x2020202020202020, 0x2020656c73650a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, + 0x696e743136286f66, 0x66736574202b2031, 0x2c2062797465732e, 0x6c656e6774682c20, 0x746869732e6c6974, + 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, + 0x203d20736d616c6c, 0x203f2032203a2033, 0x3b0a202020202020, 0x2020202020206e65, 0x772055696e743841, + 0x7272617928766965, 0x772e627566666572, 0x2c20766965772e62, 0x7974654f66667365, 0x74202b206f666673, + 0x6574202b20686561, 0x64657253697a652c, 0x2062797465732e6c, 0x656e677468292e73, 0x6574286279746573, + 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206865, 0x6164657253697a65, 0x202b206279746573, + 0x2e6c656e6774683b, 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020656e636f, 0x64654f626a656374, + 0x2876616c75652c20, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, 0x2020202069662028, + 0x41727261792e6973, 0x4172726179287661, 0x6c756529290a2020, 0x2020202020202020, 0x2020202020207265, + 0x7475726e20746869, 0x732e656e636f6465, 0x5475706c65287661, 0x6c75652c20766965, 0x772c206f66667365, + 0x74293b0a20202020, 0x2020202020202020, 0x6966202869735479, 0x7065644172726179, 0x2876616c75652929, + 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e656e63, 0x6f64655479706564, + 0x4172726179287661, 0x6c75652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, + 0x7468726f77206e65, 0x7720547970654572, 0x726f722860556e73, 0x7570706f72746564, 0x2057656246726f6e, + 0x7420706172616d65, 0x7465722074797065, 0x2027247b74797065, 0x6f662076616c7565, 0x7d2760293b0a2020, + 0x2020202020207d0a, 0x0a20202020202020, 0x20656e636f646554, 0x75706c652876616c, 0x75652c2076696577, + 0x2c206f6666736574, 0x29207b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, + 0x667365742c205061, 0x72616d547970652e, 0x7475706c65293b0a, 0x2020202020202020, 0x2020202076696577, + 0x2e73657455696e74, 0x38286f6666736574, 0x202b20312c207661, 0x6c75652e6c656e67, 0x7468293b0a202020, + 0x2020202020202020, 0x206c657420777269, 0x7474656e203d2032, 0x3b0a202020202020, 0x202020202020666f, + 0x722028636f6e7374, 0x20656c656d656e74, 0x206f662076616c75, 0x65290a2020202020, 0x2020202020202020, + 0x2020207772697474, 0x656e202b3d207468, 0x69732e656e636f64, 0x65506172616d6574, 0x657228656c656d65, + 0x6e742c2076696577, 0x2c206f6666736574, 0x202b207772697474, 0x656e293b0a202020, 0x2020202020202020, + 0x2072657475726e20, 0x7772697474656e3b, 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020656e636f, + 0x6465547970656441, 0x727261792876616c, 0x75652c2076696577, 0x2c206f6666736574, 0x29207b0a20202020, + 0x2020202020202020, 0x636f6e7374207370, 0x6563203d20617272, 0x617954797065732e, 0x6765742876616c75, + 0x652e636f6e737472, 0x7563746f72293b0a, 0x2020202020202020, 0x2020202069662028, 0x2173706563290a20, + 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, + 0x70706f7274656420, 0x7479706564206172, 0x72617920247b7661, 0x6c75652e636f6e73, 0x74727563746f722e, + 0x6e616d657d60293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206865616465, 0x7253697a65203d20, + 0x7479706564417272, 0x6179486561646572, 0x53697a652876616c, 0x7565293b0a202020, 0x2020202020202020, + 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2068, 0x656164657253697a, 0x65203d3d3d203220, + 0x3f20506172616d54, 0x7970652e736d616c, 0x6c41727261795538, 0x203a20737065632e, 0x636f6465293b0a20, + 0x2020202020202020, 0x2020206966202868, 0x656164657253697a, 0x65203d3d3d203229, 0x0a20202020202020, + 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x6666736574202b20, 0x312c2076616c7565, + 0x2e6c656e67746829, 0x3b0a202020202020, 0x202020202020656c, 0x73650a2020202020, 0x2020202020202020, + 0x202020766965772e, 0x73657455696e7433, 0x32286f6666736574, 0x202b20312c207661, 0x6c75652e6c656e67, + 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x20202020666f7220, + 0x286c657420696e64, 0x6578203d20303b20, 0x696e646578203c20, 0x76616c75652e6c65, 0x6e6774683b202b2b, + 0x696e646578290a20, 0x2020202020202020, 0x2020202020202076, 0x6965775b73706563, 0x2e7365747465725d, + 0x286f666673657420, 0x2b20686561646572, 0x53697a65202b2069, 0x6e646578202a2073, 0x7065632e62797465, + 0x732c2076616c7565, 0x5b696e6465785d2c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x6865616465725369, 0x7a65202b2076616c, 0x75652e627974654c, + 0x656e6774683b0a20, 0x202020202020207d, 0x0a202020207d0a0a, 0x202020202f2f2045, 0x78706f7365642028, + 0x6265796f6e642074, 0x6865206465666175, 0x6c74206077656246, 0x726f6e7460207369, 0x6e676c65746f6e29, + 0x20736f2074657374, 0x732063616e20636f, 0x6e73747275637420, 0x6164646974696f6e, 0x616c206272696467, + 0x65730a202020202f, 0x2f20706f696e7465, 0x6420617420612064, 0x6966666572656e74, 0x2055524c2c20652e, + 0x672e20746f206578, 0x6572636973652074, 0x686520696e697469, 0x616c2d636f6e6e65, 0x6374696f6e2d6661, + 0x696c757265207061, 0x74682e0a20202020, 0x676c6f62616c2e57, 0x656246726f6e7442, 0x7269646765203d20, + 0x57656246726f6e74, 0x4272696467653b0a, 0x20202020676c6f62, 0x616c2e7765624672, 0x6f6e74203d206e65, + 0x772057656246726f, 0x6e74427269646765, 0x28293b0a7d292867, 0x6c6f62616c546869, 0x73293b0a00000000 }; }; diff --git a/include/webfront/weblink/DomBatch.hpp b/include/webfront/weblink/DomBatch.hpp new file mode 100644 index 00000000..4b6de652 --- /dev/null +++ b/include/webfront/weblink/DomBatch.hpp @@ -0,0 +1,207 @@ +/// @brief Bounded DOM mutation wire command (ADR-003); the document API is a separate layer. +#pragma once + +#include "Messages.hpp" + +#include + +namespace webfront::msg { + +enum class DomOp : std::uint8_t { + name = 1, + element, + text, + attribute, + unsetAttribute, + property, + setText, + append, + insertBefore, + remove, + listen, + unlisten, + mount +}; + +/// Operands follow the order in ADR-003. c is the flags byte for listen, or the reference for insertBefore. +struct DomOperation { + DomOp code; + std::uint32_t a{}, b{}, c{}; + std::string value{}; + bool operator==(const DomOperation&) const = default; +}; + +/** @brief An owning command; all integers are canonical uint32 LEB128 except the fixed little-endian batch id. */ +class DomBatch { +public: + static constexpr std::size_t maxBytes = 1024 * 1024; // Complete command, including the six-byte header. + static constexpr std::size_t headerBytes = 6; + + explicit DomBatch(std::uint32_t id = 0) : bytes{std::byte(Command::domBatch), std::byte{1}} { + for (unsigned shift = 0; shift < 32; shift += 8) + bytes.push_back(std::byte((id >> shift) & 255)); + } + + /// Appends atomically: an invalid UTF-8 string or an oversized operation leaves this batch unchanged. + void add(const DomOperation& op) { + std::vector encoded{std::byte(op.code)}; + const auto [integers, string] = layout(op.code); + const std::array values{op.a, op.b, op.c}; + for (unsigned i = 0; i < integers; ++i) + putVarint(encoded, values[i]); + if (op.code == DomOp::listen) { + if (op.c > 3) + throw std::invalid_argument("Invalid DOM listener flags"); + encoded.push_back(std::byte(op.c)); + } + if (string) { + if (op.value.size() > maxBytes) + throw std::length_error("DOM batch exceeds 1 MiB"); + validateUtf8(op.value); + putVarint(encoded, static_cast(op.value.size())); + const auto raw = std::as_bytes(std::span(op.value)); + encoded.insert(encoded.end(), raw.begin(), raw.end()); + } + if (encoded.size() > maxBytes - bytes.size()) + throw std::length_error("DOM batch exceeds 1 MiB"); + bytes.insert(bytes.end(), encoded.begin(), encoded.end()); + } + + [[nodiscard]] std::span header() const { + return std::span(bytes).first(headerBytes); + } + [[nodiscard]] std::span payload() const { + return std::span(bytes).subspan(headerBytes); + } + [[nodiscard]] std::span data() const { + return bytes; + } + + /// Structural decoder; node ownership, names and the allowlist are validated by the browser interpreter. + static std::pair> decode(std::span raw) { + if (raw.size() > maxBytes) + throw std::length_error("DOM batch exceeds 1 MiB"); + if (raw.size() < headerBytes || raw[0] != std::byte(Command::domBatch) || raw[1] != std::byte{1}) + throw std::runtime_error("Invalid DOM batch header"); + std::uint32_t id{}; + for (unsigned i = 0; i < 4; ++i) + id |= std::uint32_t(raw[2 + i]) << (8 * i); + Reader input{raw.subspan(headerBytes)}; + std::vector operations; + while (!input.raw.empty()) { + DomOperation op{static_cast(input.byte())}; + const auto [integers, string] = layout(op.code); + std::array values{&op.a, &op.b, &op.c}; + for (unsigned i = 0; i < integers; ++i) + *values[i] = input.varint(); + if (op.code == DomOp::listen) { + op.c = input.byte(); + if (op.c > 3) + throw std::runtime_error("Invalid DOM listener flags"); + } + if (string) { + const auto size = input.varint(); + if (size > input.raw.size()) + throw std::runtime_error("Truncated DOM string"); + op.value.assign(reinterpret_cast(input.raw.data()), size); + validateUtf8(op.value); + input.raw = input.raw.subspan(size); + } + operations.push_back(std::move(op)); + } + return {id, std::move(operations)}; + } + +private: + std::vector bytes; + + static std::pair layout(DomOp code) { + switch (code) { + case DomOp::name: + case DomOp::text: + case DomOp::setText: + return {1, true}; + case DomOp::attribute: + case DomOp::property: + return {2, true}; + case DomOp::element: + case DomOp::unsetAttribute: + case DomOp::append: + case DomOp::listen: + case DomOp::unlisten: + case DomOp::mount: + return {2, false}; + case DomOp::insertBefore: + return {3, false}; + case DomOp::remove: + return {1, false}; + } + throw std::runtime_error("Unknown DOM operation"); + } + + static void putVarint(std::vector& out, std::uint32_t value) { + do { + const auto low = value & 127; + value >>= 7; + out.push_back(std::byte(low | (value ? 128 : 0))); + } while (value); + } + + struct Reader { + std::span raw; + std::uint8_t byte() { + if (raw.empty()) + throw std::runtime_error("Truncated DOM batch"); + const auto value = std::uint8_t(raw.front()); + raw = raw.subspan(1); + return value; + } + std::uint32_t varint() { + std::uint32_t value{}; + for (unsigned i = 0; i < 5; ++i) { + const auto next = byte(); + if ((i == 4 && next > 15) || (i && next == 0)) + throw std::runtime_error("Noncanonical or overflowing DOM varint"); + value |= std::uint32_t(next & 127) << (7 * i); + if (!(next & 128)) + return value; + } + throw std::runtime_error("Overflowing DOM varint"); + } + }; + + static void validateUtf8(std::string_view value) { + std::size_t i = 0; + while (i < value.size()) { + const auto lead = static_cast(value[i++]); + if (lead < 128) + continue; + unsigned count; + std::uint32_t code; + if (lead >= 0xc2 && lead <= 0xdf) { + count = 1; + code = lead & 31; + } else if (lead >= 0xe0 && lead <= 0xef) { + count = 2; + code = lead & 15; + } else if (lead >= 0xf0 && lead <= 0xf4) { + count = 3; + code = lead & 7; + } else + throw std::invalid_argument("Invalid DOM UTF-8"); + const auto minimum = count == 1 ? 128u : count == 2 ? 2048u : 65536u; + if (count > value.size() - i) + throw std::invalid_argument("Truncated DOM UTF-8"); + while (count--) { + const auto next = static_cast(value[i++]); + if ((next & 0xc0) != 0x80) + throw std::invalid_argument("Invalid DOM UTF-8 continuation"); + code = (code << 6) | (next & 63); + } + if (code < minimum || code > 0x10ffff || (code >= 0xd800 && code <= 0xdfff)) + throw std::invalid_argument("Invalid DOM UTF-8 code point"); + } + } +}; + +} // namespace webfront::msg diff --git a/include/webfront/weblink/Messages.hpp b/include/webfront/weblink/Messages.hpp index 91dff8f7..e4392cdb 100644 --- a/include/webfront/weblink/Messages.hpp +++ b/include/webfront/weblink/Messages.hpp @@ -35,6 +35,7 @@ enum class Command : uint8_t { textCommand, callFunction, // 1:Command 1:ParamsCount 2:CallId 4:ParamsDataSize functionReturn, // 1:Command 1:ParamsCount 2:CallId 4:ParamsDataSize + domBatch, // version 1, uint32 little-endian batch id, bounded DOM operation stream }; enum class CodedType : uint8_t { diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index 8f609692..f85d6511 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -201,7 +201,7 @@ class WebLink { } } - void sendCommand(auto message) { ws->write(message.header(), message.payload()); } + void sendCommand(const auto& message) { ws->write(message.header(), message.payload()); } void sendFrame(websocket::Frame frame) { ws->write(std::move(frame)); } template diff --git a/js/core/WebFront.js b/js/core/WebFront.js index 8a153b58..58887388 100644 --- a/js/core/WebFront.js +++ b/js/core/WebFront.js @@ -9,6 +9,7 @@ textCommand: 2, callFunction: 3, functionReturn: 4, + domBatch: 5, }); const TextCommand = Object.freeze({debugLog: 0, injectScript: 1}); @@ -167,6 +168,16 @@ case Command.callFunction: this.callJsFunction(view); break; + case Command.domBatch: + try { + if (view.byteLength > 1024 * 1024) throw new RangeError("DOM batch exceeds 1 MiB"); + if (!this.domBatchHandler) throw new Error("DOM interpreter is not installed"); + this.domBatchHandler(new Uint8Array(buffer)); + } catch (error) { + const id = view.byteLength >= 6 ? view.getUint32(2, true) : 0; + this.cppFunction("wfDom.rejected")(id, String(error.message || error).slice(0, 4096)).catch(() => {}); + } + break; case Command.functionReturn: this.handleFunctionReturn(view); break; diff --git a/js/core/WebFrontAssets.cmake b/js/core/WebFrontAssets.cmake index 804bd86b..a7dc3477 100644 --- a/js/core/WebFrontAssets.cmake +++ b/js/core/WebFrontAssets.cmake @@ -25,6 +25,9 @@ function(webfront_add_embedded_assets) set(root "${_WEBFRONT_ASSETS_DIR}/../..") cmake_path(NORMAL_PATH root) add_custom_target(webfront-embedded-assets COMMENT "Regenerating the embedded assets of the core") + _webfront_add_embedded_asset( + "${root}/js/core/dom-interpreter.mjs" "${root}/include/webfront/system/DomInterpreterData.hpp" + DomInterpreterData DomInterpreterAssetFresh) _webfront_add_embedded_asset( "${root}/js/core/WebFront.js" "${root}/include/webfront/system/WebFrontJsData.hpp" WebFrontJsData WebFrontJsAssetsFresh) diff --git a/js/core/dom-interpreter.mjs b/js/core/dom-interpreter.mjs new file mode 100644 index 00000000..f41763ec --- /dev/null +++ b/js/core/dom-interpreter.mjs @@ -0,0 +1,283 @@ +// ADR-003: optional DOM command interpreter. Only this module touches the DOM; WebFront.js routes command 5. +const maxBytes = 1024 * 1024; +const maxEntries = 65536; +const decoder = new TextDecoder('utf-8', {fatal: true, ignoreBOM: true}); +const defaultTags = 'div span p ul ol li button input label select option form fieldset legend h1 h2 h3 h4 table thead tbody tr td th strong em small output progress meter textarea section header footer nav a img br hr pre code'; +const defaultAttributes = 'class id style title type name value placeholder min max step checked disabled readonly for href src alt role tabindex colspan rowspan width height selected lang dir hidden'; +const defaultEvents = 'click dblclick input change submit keydown keyup focus blur pointerdown pointerup'; +const forbiddenTags = new Set('script iframe frame frameset object embed link meta base style svg math'.split(' ')); +const forbiddenAttributes = new Set('srcdoc is xmlns srcset imagesrcset ping'.split(' ')); +const urlAttributes = new Set('href src action formaction poster cite background data codebase manifest longdesc usemap profile'.split(' ')); +const propertyNames = new Set(['value', 'checked', 'disabled', 'indeterminate', 'selectedIndex']); +const list = text => new Set(text.split(' ')); +const validName = name => /^[a-z][a-z0-9-]*$/.test(name); + +function reader(bytes) { + let offset = 6; + return { + get done() { return offset === bytes.length; }, + byte() { + if (offset >= bytes.length) throw new RangeError('truncated DOM batch'); + return bytes[offset++]; + }, + uint() { + let value = 0; + for (let i = 0; i < 5; ++i) { + const next = this.byte(); + if ((i === 4 && next > 15) || (i > 0 && next === 0)) + throw new RangeError('noncanonical or overflowing DOM varint'); + value += (next & 127) * 2 ** (7 * i); + if (!(next & 128)) return value; + } + throw new RangeError('overflowing DOM varint'); + }, + string() { + const size = this.uint(); + if (size > bytes.length - offset) throw new RangeError('truncated DOM string'); + const value = decoder.decode(bytes.subarray(offset, offset + size)); + offset += size; + return value; + }, + }; +} + +/** Install once per bridge/document. The page explicitly lends empty elements with island(name, element). + * Extension lists are copied; executable tags/attributes and unsafe URL schemes remain forbidden. + * apply throws on rejection; the bridge reports it to C++ as wfDom.rejected(batchId, reason). + */ +export function installDomInterpreter(bridge = globalThis.webFront, extensions = {}) { + if (bridge.domBatchHandler) throw new Error('DOM interpreter already installed'); + const tags = list(defaultTags), attributes = list(defaultAttributes), events = list(defaultEvents); + for (const [key, target] of [['tags', tags], ['attributes', attributes], ['events', events]]) { + for (const name of extensions[key] || []) { + if (!validName(name) || name.startsWith('on') || + (key === 'tags' && forbiddenTags.has(name)) || + (key === 'attributes' && forbiddenAttributes.has(name))) + throw new Error(`forbidden DOM extension ${name}`); + target.add(name); + } + } + const names = []; + let nodes = new Map(); + const islands = new Map(), listeners = new Map(); + const allowedAttribute = name => !name.startsWith('on') && !forbiddenAttributes.has(name) && + (attributes.has(name) || /^(aria|data)-[a-z0-9-]+$/.test(name)); + const safeUrl = value => ['http:', 'https:', 'mailto:'].includes(new URL(value, document.baseURI).protocol); + + function unlisten(id, index) { + const key = `${id}:${index}`, entry = listeners.get(key); + if (entry) { + entry.node.removeEventListener(entry.name, entry.listener); + listeners.delete(key); + } + } + function cleanListeners(live) { + for (const [key, entry] of listeners) + if (!live.has(entry.id)) unlisten(entry.id, Number(key.split(':')[1])); + } + function listen(id, index, name, flags) { + unlisten(id, index); + const node = nodes.get(id).node; + const listener = event => { + if (flags & 1) event.preventDefault(); + if (flags & 2) event.stopPropagation(); + const value = name === 'input' || name === 'change' + ? (node.type === 'checkbox' ? String(node.checked) : String(node.value)) + : name === 'keydown' || name === 'keyup' ? event.key : ''; + bridge.cppFunction('wfDom.event')(id, index, value).catch(() => {}); + }; + node.addEventListener(name, listener); + listeners.set(`${id}:${index}`, {id, node, name, listener}); + } + + function decode(bytes) { + if (!(bytes instanceof Uint8Array) || bytes.length < 6 || bytes.length > maxBytes || bytes[0] !== 5 || bytes[1] !== 1) + throw new RangeError('invalid DOM batch header or size'); + const input = reader(bytes), operations = []; + // Retain each fully decoded NAME even if a later operation or validation rejects the batch. + while (!input.done) { + const op = input.byte(); + if (op < 1 || op > 13) throw new Error(`unknown DOM operation ${op}`); + const a = input.uint(); + const b = [2, 4, 5, 6, 8, 9, 11, 12, 13].includes(op) ? input.uint() : 0; + const c = op === 9 ? input.uint() : op === 11 ? input.byte() : 0; + const value = [1, 3, 4, 6, 7].includes(op) ? input.string() : ''; + if (op === 1) { + if (a !== names.length || a >= maxEntries || new TextEncoder().encode(value).length > 1024) + throw new Error('invalid DOM name definition'); + names.push(value); + } + operations.push({op, a, b, c, value, nameLimit: names.length}); + } + return operations; + } + + function apply(bytes) { + const operations = decode(bytes); + // A shadow tree tracks the state produced by every preceding operation, including removals and moves. + const shadow = new Map(Array.from(nodes, ([id, entry]) => [id, {...entry, children: new Set(entry.children)}])); + const steps = []; + const get = id => { + const entry = shadow.get(id); + if (!entry) throw new Error(`unknown DOM node ${id}`); + return entry; + }; + const writable = id => { + const entry = get(id); + if (entry.island) throw new Error('the page owns the island element'); + return entry; + }; + const element = id => { + const entry = writable(id); + if (entry.text) throw new Error('expected DOM element'); + return entry; + }; + const fresh = (id, entry) => { + if (!id || shadow.has(id) || shadow.size >= maxEntries) throw new Error('invalid or duplicate DOM node'); + shadow.set(id, {...entry, parent: null, children: new Set()}); + }; + const forget = id => { + // Iterative traversal: hostile deep trees must not overflow the JavaScript stack. + const pending = [id]; + while (pending.length) { + const current = pending.pop(), entry = get(current); + for (const child of entry.children) pending.push(child); + shadow.delete(current); + } + }; + for (const {op, a, b, c, value, nameLimit} of operations) { + const nameAt = index => { + if (index >= nameLimit) throw new Error(`unknown DOM name ${index}`); + return names[index]; + }; + switch (op) { + case 1: break; + case 2: { + const tag = nameAt(b); + if (!tags.has(tag) || forbiddenTags.has(tag)) throw new Error(`forbidden DOM tag ${tag}`); + fresh(a, {text: false}); + steps.push(() => { nodes.set(a, {node: document.createElement(tag)}); }); + break; + } + case 3: + fresh(a, {text: true}); + steps.push(() => { nodes.set(a, {node: document.createTextNode(value)}); }); + break; + case 4: case 5: { + element(a); + const name = nameAt(b); + if (!allowedAttribute(name)) throw new Error(`forbidden DOM attribute ${name}`); + if (op === 4 && urlAttributes.has(name) && !safeUrl(value)) throw new Error('unsafe DOM URL'); + steps.push(() => op === 4 ? nodes.get(a).node.setAttribute(name, value) : nodes.get(a).node.removeAttribute(name)); + break; + } + case 6: { + element(a); + const name = nameAt(b); + if (!propertyNames.has(name)) throw new Error(`forbidden DOM property ${name}`); + if (['checked', 'disabled', 'indeterminate'].includes(name) && !['true', 'false'].includes(value)) + throw new Error('invalid DOM boolean'); + if (name === 'selectedIndex' && (!/^-?\d+$/.test(value) || !Number.isInteger(Number(value)) || Number(value) < -1 || Number(value) > 2147483647)) + throw new Error('invalid DOM selectedIndex'); + const converted = name === 'value' ? value : name === 'selectedIndex' ? Number(value) : value === 'true'; + steps.push(() => { nodes.get(a).node[name] = converted; }); + break; + } + case 7: + if (!writable(a).text) throw new Error('SET_TEXT requires a text node'); + steps.push(() => { nodes.get(a).node.data = value; }); + break; + case 8: case 9: { + const parent = get(a), child = writable(b); + if (parent.text) throw new Error('a text node cannot own children'); + if (op === 9 && get(c).parent !== a) throw new Error('insertBefore reference is not a child'); + for (let ancestor = a; ancestor !== null; ancestor = get(ancestor).parent) + if (ancestor === b) throw new Error('DOM cycle'); + if (child.parent !== null) get(child.parent).children.delete(b); + child.parent = a; + parent.children.add(b); + steps.push(() => op === 8 ? nodes.get(a).node.appendChild(nodes.get(b).node) : + nodes.get(a).node.insertBefore(nodes.get(b).node, nodes.get(c).node)); + break; + } + case 10: { + const entry = writable(a); + if (entry.parent !== null) get(entry.parent).children.delete(a); + const removed = []; + const pending = [a]; + while (pending.length) { + const id = pending.pop(); + removed.push(id); + for (const child of get(id).children) pending.push(child); + } + forget(a); + steps.push(() => { + nodes.get(a).node.remove(); + for (const id of removed) nodes.delete(id); + cleanListeners(nodes); + }); + break; + } + case 11: case 12: { + element(a); + const name = nameAt(b); + if (!events.has(name) || c > 3) throw new Error('invalid DOM event or flags'); + steps.push(() => op === 11 ? listen(a, b, name, c) : unlisten(a, b)); + break; + } + case 13: { + const name = nameAt(b), node = islands.get(name)?.element; + if (!node) throw new Error(`unknown DOM island ${name}`); + if (Array.from(shadow.values()).some(entry => entry.node === node)) throw new Error('island already mounted'); + fresh(a, {node, text: false, island: true}); + steps.push(() => nodes.set(a, {node})); + break; + } + } + } + // Residual DOM exceptions (for example a page's custom element) propagate to the bridge as a rejection. + // In that case discard handles: the actual DOM may have been partly changed and must be lent again. + try { + for (const step of steps) step(); + } catch (error) { + cleanListeners(new Map()); + nodes.clear(); + islands.clear(); + throw error; + } + for (const [id, entry] of shadow) entry.node = nodes.get(id).node; + nodes = shadow; + } + + const api = { + apply, + island(name, element) { + if (!(element instanceof HTMLElement) || !tags.has(element.localName) || forbiddenTags.has(element.localName)) + throw new TypeError('an island must be an allowed HTML element'); + const previous = islands.get(name); + if (previous && previous.element !== element) throw new Error('island name already lent'); + if (!previous) { + if (element.childNodes.length || Array.from(islands.values()).some(entry => entry.element === element || entry.element.contains(element) || element.contains(entry.element))) + throw new Error('islands must be empty and disjoint'); + } + const token = {element}; + islands.set(name, token); + return () => { + if (islands.get(name) !== token) return; + islands.delete(name); + const removed = new Set(); + for (const [id, entry] of nodes) { + if (entry.node === element || element.contains(entry.node)) removed.add(id); + else { + for (let parent = entry.parent; parent !== null; parent = nodes.get(parent)?.parent ?? null) + if (nodes.get(parent)?.node === element) { removed.add(id); break; } + } + } + for (const id of removed) nodes.delete(id); + cleanListeners(nodes); + }; + }, + }; + bridge.domBatchHandler = apply; + return api; +} diff --git a/test/cmake/CheckMinimalCoreAssets.cmake b/test/cmake/CheckMinimalCoreAssets.cmake index eda898fd..5b570ef5 100644 --- a/test/cmake/CheckMinimalCoreAssets.cmake +++ b/test/cmake/CheckMinimalCoreAssets.cmake @@ -10,6 +10,7 @@ endif() # Normative list: header file name under include/webfront/system/. set(allowed + DomInterpreterData.hpp # optional DOM interpreter WebFrontJsData.hpp # bridge WebFront.js FallbackIndexHtmlData.hpp # fallback page FallbackModuleData.hpp # fallback module diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index a62537e4..ff084be7 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -25,7 +25,7 @@ endif() set(TESTS_LIST) list(APPEND TESTS_LIST WebKitGTKPolicyTests.cpp ContentPolicyTests.cpp HTTPServerTests.cpp HTTPEncodingTests.cpp GzipExecutorTests.cpp AcceptEncodingTests.cpp GzipTests.cpp ModuleHTTPServerTests.cpp EncodingsTests.cpp WebSocketTests.cpp LoggerTests.cpp MimeTypeTests.cpp) -list(APPEND TESTS_LIST JSFunctionTests.cpp TypeErasedFunctionTests.cpp MessagesTests.cpp IndexFSTests.cpp) +list(APPEND TESTS_LIST DomBatchTests.cpp JSFunctionTests.cpp TypeErasedFunctionTests.cpp MessagesTests.cpp IndexFSTests.cpp) list(APPEND TESTS_LIST FileSystemTests.cpp NativeFSTests.cpp) list(APPEND TESTS_LIST DefaultFSTests.cpp StdnetShutdownTests.cpp SafePathTests.cpp UISubscribersTests.cpp) list(APPEND TESTS_LIST WebFrontTests.cpp WebLinkTests.cpp CEFPathsTests.cpp CEFMacrosTests.cpp) diff --git a/test/unit/DefaultFSTests.cpp b/test/unit/DefaultFSTests.cpp index 86b35911..c7d91bb0 100644 --- a/test/unit/DefaultFSTests.cpp +++ b/test/unit/DefaultFSTests.cpp @@ -75,6 +75,7 @@ SCENARIO("DefaultFS layers a configured document root over the embedded fallback GIVEN("a document root that also contains a file named WebFront.js") { TemporaryRoot root; root.write("WebFront.js", "// not the real bridge script"); + root.write("webfront-dom.mjs", "// wrong DOM version"); fs::DefaultFS defaultFS{root.path()}; WHEN("WebFront.js is requested") { @@ -82,6 +83,9 @@ SCENARIO("DefaultFS layers a configured document root over the embedded fallback THEN("the embedded, version-matched script is served instead of the local file") { REQUIRE(file.has_value()); REQUIRE(readAll(*file) != "// not the real bridge script"); + auto dom = defaultFS.open("webfront-dom.mjs"); + REQUIRE(dom.has_value()); + REQUIRE(readAll(*dom) != "// wrong DOM version"); } } } diff --git a/test/unit/DomBatchTests.cpp b/test/unit/DomBatchTests.cpp new file mode 100644 index 00000000..07de8dd6 --- /dev/null +++ b/test/unit/DomBatchTests.cpp @@ -0,0 +1,107 @@ +#include +#include + +#include + +using namespace webfront::msg; + +namespace { +std::vector packet(std::initializer_list payload) { + std::vector bytes{std::byte{5}, std::byte{1}, std::byte{0x78}, std::byte{0x56}, std::byte{0x34}, std::byte{0x12}}; + for (const auto value : payload) + bytes.push_back(std::byte(value)); + return bytes; +} +} // namespace + +SCENARIO("DOM commands have a portable golden encoding and round trip every operation") { + GIVEN("A little-endian correlation id and interned UTF-8 names") { + DomBatch batch(0x12345678); + batch.add({DomOp::name, 0, 0, 0, "div"}); + batch.add({DomOp::element, 128, 0}); + THEN("The exact bytes use canonical LEB128 independently of host endianness") { + const auto expected = packet({1, 0, 3, 'd', 'i', 'v', 2, 0x80, 1, 0}); + REQUIRE(std::ranges::equal(batch.data(), expected)); + REQUIRE(batch.header().size() == 6); + REQUIRE(batch.payload().size() == expected.size() - 6); + } + } + GIVEN("Every numbered operation, uint32 boundaries, and multi-byte UTF-8") { + const std::vector expected{ + {DomOp::name, 0, 0, 0, "\xef\xbb\xbf"}, + {DomOp::element, 0xffffffff, 127}, + {DomOp::text, 128, 0, 0, "été 🌍"}, + {DomOp::attribute, 1, 2, 0, "title"}, + {DomOp::unsetAttribute, 1, 2}, + {DomOp::property, 1, 2, 0, "false"}, + {DomOp::setText, 128, 0, 0, ""}, + {DomOp::append, 1, 128}, + {DomOp::insertBefore, 1, 2, 128}, + {DomOp::remove, 2}, + {DomOp::listen, 1, 3, 3}, + {DomOp::unlisten, 1, 3}, + {DomOp::mount, 1, 4} + }; + DomBatch batch(0x12345678); + for (const auto& op : expected) + batch.add(op); + THEN("Decoding recovers all fields without borrowing the input") { + const auto [id, decoded] = DomBatch::decode(batch.data()); + REQUIRE(id == 0x12345678); + REQUIRE(decoded == expected); + } + } +} + +SCENARIO("DOM codecs reject malformed input and enforce the complete command budget") { + GIVEN("Malformed opcodes, varints, strings and listener flags") { + const std::vector> invalid{packet({0}), + packet({14}), + packet({10}), + packet({10, 0x80}), + packet({10, 0x80, 0}), + packet({10, 0xff, 0xff, 0xff, 0xff, 0x10}), + packet({10, 0x80, 0x80, 0x80, 0x80, 0x80, 1}), + packet({3, 1, 3, 'x'}), + packet({3, 1, 2, 0xc0, 0x80}), + packet({3, 1, 3, 0xed, 0xa0, 0x80}), + packet({3, 1, 4, 0xf4, 0x90, 0x80, 0x80}), + packet({3, 1, 1, 0xc2}), + packet({3, 1, 2, 0xc2, 'a'}), + packet({11, 1, 2, 4})}; + THEN("Each is rejected") { + for (const auto& bytes : invalid) + REQUIRE_THROWS(DomBatch::decode(bytes)); + auto header = packet({}); + for (std::size_t size = 0; size < 6; ++size) + REQUIRE_THROWS(DomBatch::decode(std::span(header).first(size))); + header[0] = std::byte{4}; + REQUIRE_THROWS(DomBatch::decode(header)); + header[0] = std::byte{5}; + header[1] = std::byte{0}; + REQUIRE_THROWS(DomBatch::decode(header)); + } + } + GIVEN("A text operation filling exactly 1 MiB including headers") { + DomBatch batch; + batch.add({DomOp::text, 1, 0, 0, std::string(DomBatch::maxBytes - 11, 'x')}); + THEN("The boundary succeeds, the next operation fails atomically, and the decoder rejects oversized input") { + REQUIRE(batch.data().size() == DomBatch::maxBytes); + REQUIRE(DomBatch::decode(batch.data()).second.front().value.size() == DomBatch::maxBytes - 11); + REQUIRE_THROWS_AS(batch.add({DomOp::remove, 1}), std::length_error); + REQUIRE(batch.data().size() == DomBatch::maxBytes); + auto bytes = std::vector(batch.data().begin(), batch.data().end()); + bytes.push_back(std::byte{0}); + REQUIRE_THROWS_AS(DomBatch::decode(bytes), std::length_error); + } + } + GIVEN("An invalid outgoing operation") { + DomBatch batch; + THEN("No prefix is appended") { + REQUIRE_THROWS(batch.add({DomOp::text, 1, 0, 0, std::string("\xc0\x80", 2)})); + REQUIRE_THROWS(batch.add({DomOp::listen, 1, 2, 4})); + REQUIRE_THROWS(batch.add({static_cast(255), 1})); + REQUIRE(batch.data().size() == DomBatch::headerBytes); + } + } +} diff --git a/test/unit/EmbeddedCoreAssetsTests.cpp b/test/unit/EmbeddedCoreAssetsTests.cpp index f09d292d..e9f081dc 100644 --- a/test/unit/EmbeddedCoreAssetsTests.cpp +++ b/test/unit/EmbeddedCoreAssetsTests.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -52,6 +53,7 @@ void requireHeaderMatchesSource(std::string_view source) { SCENARIO("The embedded assets of the core are the readable sources they are generated from") { GIVEN("The generated headers of include/webfront/system and the sources of js/core") { THEN("Each header embeds exactly the bytes of its source, without compression and with zero padding only") { + requireHeaderMatchesSource("js/core/dom-interpreter.mjs"); requireHeaderMatchesSource("js/core/WebFront.js"); requireHeaderMatchesSource("js/core/fallback/index.html"); requireHeaderMatchesSource("js/core/fallback/webfront-fallback.mjs"); diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index 8769b0a7..78ac6962 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -106,6 +107,8 @@ class BrowserIntegrationTest { optional rejectedWebSocket; optional cancelledTask; TestState state; + std::map domRejections; + bool domBatchSent{}; optional connectedUI; UISubscription uiSubscription; future cppResult; @@ -262,6 +265,21 @@ class BrowserIntegrationTest { } void registerCallbacks() { + webFront->cppFunction("sendDomBatch", [this](TestWF::UI ui, const vector& bytes) { + const auto [id, operations] = msg::DomBatch::decode(std::as_bytes(std::span(bytes))); + msg::DomBatch batch(id); + for (const auto& operation : operations) batch.add(operation); + ui.sendDomBatch(batch); + domBatchSent = true; + }); + webFront->cppFunction("wfDom.rejected", [this](uint32_t id, const string& reason) { + domRejections[id] = reason; + }); + webFront->cppFunction("domBatchRejection", [this](uint32_t id) { + const auto found = domRejections.find(id); + return found == domRejections.end() ? string{} : found->second; + }); + webFront->cppFunction("cancelBrowserSender", [this] { if (cancelledTask) cancelledTask->requestStop(); @@ -406,7 +424,7 @@ class BrowserIntegrationTest { log::error("The specs did not report the end of the run"); return 1; } - if (!(state.browserReady && state.subscriberNotified && browserCallsObserved() && cppCallsObserved() + if (!(domBatchSent && !domRejections.empty() && state.browserReady && state.subscriberNotified && browserCallsObserved() && cppCallsObserved() && rejectedWebSocket->rejectedRequests() >= 2)) { log::error("The specs passed but one of the bridge-direction checks failed"); return 1; diff --git a/test/web/suite/specs/dom-specs.mjs b/test/web/suite/specs/dom-specs.mjs new file mode 100644 index 00000000..b5bf9665 --- /dev/null +++ b/test/web/suite/specs/dom-specs.mjs @@ -0,0 +1,201 @@ +// This suite uses the actual embedded module, not a bundled copy, on every selected frontend. +const moduleUrl = '/webfront-dom.mjs'; +const encoder = new TextEncoder(); +function uint(value) { + const bytes = []; + do { const low = value % 128; value = Math.floor(value / 128); bytes.push(low | (value ? 128 : 0)); } while (value); + return bytes; +} +function str(value) { const bytes = encoder.encode(value); return [...uint(bytes.length), ...bytes]; } +function packet(ops, id = 1) { + return new Uint8Array([5, 1, id & 255, (id >>> 8) & 255, (id >>> 16) & 255, id >>> 24, ...ops.flat()]); +} +const name = (id, value) => [1, ...uint(id), ...str(value)]; +const text = (id, value) => [3, ...uint(id), ...str(value)]; +const attr = (id, index, value) => [4, ...uint(id), ...uint(index), ...str(value)]; +const prop = (id, index, value) => [6, ...uint(id), ...uint(index), ...str(value)]; + +describe('Embedded DOM command interpreter', () => { + let install, bridge, dom, root, release; + beforeAll(async () => { ({installDomInterpreter: install} = await import(moduleUrl)); }); + beforeEach(() => { + bridge = {cppFunction: jasmine.createSpy('callback').and.returnValue(() => Promise.resolve())}; + dom = install(bridge); + root = document.body.appendChild(document.createElement('div')); + release = dom.island('root', root); + dom.apply(packet([name(0, 'root'), name(1, 'div'), name(2, 'title'), [13, 1, 0]])); + }); + afterEach(() => { release(); root.remove(); }); + + it('creates, inserts, moves, removes and updates text without parsing HTML', () => { + dom.apply(packet([[2, 2, 1], text(3, 'été 🌍'), [8, 2, 3], [8, 1, 2], attr(2, 2, 'hello')])); + const element = root.firstChild, child = element.firstChild; + expect(element.title).toBe('hello'); + expect(child.nodeType).toBe(Node.TEXT_NODE); + expect(element.querySelector('b')).toBeNull(); + dom.apply(packet([text(4, 'before'), [9, 2, 4, 3], [7, 3, ...str('after')], [5, 2, 2]])); + expect(element.textContent).toBe('beforeafter'); + expect(element.lastChild).toBe(child); + expect(element.hasAttribute('title')).toBeFalse(); + dom.apply(packet([[10, 4], [10, 2]])); + expect(root.childNodes.length).toBe(0); + expect(() => dom.apply(packet([[7, 3, ...str('gone')]]))).toThrow(); + }); + + for (const [label, definition, operation] of [ + ['script', 'script', [2, 8, 3]], + ['inline handler', 'onclick', attr(2, 3, 'alert(1)')], + ['HTML property', 'innerHTML', prop(2, 3, '')], + ['unknown event', 'mouseover', [11, 2, 3, 0]], + ['unknown property', 'outerHTML', prop(2, 3, 'bad')], + ['masked JavaScript URL', 'href', attr(2, 3, 'java\tscript:alert(1)')], + ['control-prefixed JavaScript URL', 'href', attr(2, 3, '\x01javascript:alert(1)')], + ['mixed-case JavaScript URL', 'href', attr(2, 3, ' JavaScript:alert(1)')], + ['data URL', 'src', attr(2, 3, 'data:text/html,hello')], + ]) { + it(`rejects the entire hostile batch: ${label}`, () => { + expect(() => dom.apply(packet([name(3, definition), [2, 2, 1], [8, 1, 2], operation]))).toThrow(); + expect(root.childNodes.length).toBe(0); + // A valid definition preceding the rejection is retained, including definitions after an unsafe operation. + dom.apply(packet([[2, 2, 1], [8, 1, 2], name(4, 'id'), attr(2, 4, 'retained')])); + expect(root.firstChild.id).toBe('retained'); + }); + } + + for (const [label, operations] of [ + ['removed node reused', [[10, 2], [8, 1, 2]]], + ['removed descendant reused', [[10, 2], [7, 3, ...str('gone')]]], + ['cycle', [[2, 4, 1], [8, 2, 4], [8, 4, 2]]], + ['self-cycle', [[8, 2, 2]]], + ['reference owned by another parent', [[2, 4, 1], [9, 4, 2, 3]]], + ['island moved', [[8, 2, 1]]], + ['island removed', [[10, 1]]], + ['island modified', [attr(1, 2, 'bad')]], + ['text replaces an element subtree', [[7, 2, ...str('bad')]]], + ['text parent', [[8, 3, 2]]], + ['text attribute', [attr(3, 2, 'bad')]], + ['duplicate node', [[2, 2, 1]]], + ['missing island', [name(3, 'missing'), [13, 5, 3]]], + ['duplicate island binding', [[13, 5, 0]]], + ]) { + it(`validates the evolving tree: ${label}`, () => { + dom.apply(packet([[2, 2, 1], text(3, 'unchanged'), [8, 2, 3], [8, 1, 2]])); + const element = root.firstChild; + expect(() => dom.apply(packet([[7, 3, ...str('partial')], ...operations]))).toThrow(); + expect(root.firstChild).toBe(element); + expect(root.textContent).toBe('unchanged'); + }); + } + + it('rejects unknown, forward, oversized and non-sequential name definitions', () => { + expect(() => dom.apply(packet([[2, 2, 9]]))).toThrow(); + expect(() => dom.apply(packet([[2, 2, 3], name(3, 'div')]))).toThrow(); + expect(() => dom.apply(packet([name(8, 'div')]))).toThrow(); + expect(() => dom.apply(packet([name(4, 'x'.repeat(1025))]))).toThrow(); + }); + + it('rejects malformed headers, opcodes, UTF-8, flags and noncanonical uint32 varints', () => { + for (const bytes of [ + new Uint8Array(), new Uint8Array([5, 0, 0, 0, 0, 0]), + packet([[0]]), packet([[14]]), packet([[10, 0x80]]), packet([[10, 0x80, 0]]), + packet([[10, 255, 255, 255, 255, 16]]), packet([[10, 128, 128, 128, 128, 128, 1]]), + packet([[3, 2, 5, 65]]), packet([[3, 2, 2, 0xc0, 0x80]]), + packet([[3, 2, 3, 0xed, 0xa0, 0x80]]), packet([[3, 2, 4, 0xf4, 0x90, 0x80, 0x80]]), + packet([name(3, 'click'), [2, 2, 1], [11, 2, 3, 4]]), + ]) expect(() => dom.apply(bytes)).withContext(String(bytes)).toThrow(); + expect(root.childNodes.length).toBe(0); + }); + + it('enforces exactly 1 MiB before decoding and accepts a boundary-size command', () => { + const prefix = packet([text(2, '')]); // Build the large payload without argument/spread limits. + const size = 1024 * 1024, length = size - 11; + const bytes = new Uint8Array(size); bytes.fill(120); + bytes.set(prefix.subarray(0, 8)); bytes.set(uint(length), 8); + expect(() => dom.apply(bytes)).not.toThrow(); + expect(() => dom.apply(new Uint8Array(size + 1))).toThrow(); + }); + + it('permits safe URLs and safe allowlist extensions while preserving permanent exclusions', () => { + for (const extensions of [{tags: ['script']}, {tags: ['iframe']}, {attributes: ['onclick']}, + {attributes: ['onload']}, {attributes: ['srcdoc']}, {tags: ['SCRIPT']}]) + expect(() => install({}, extensions)).toThrow(); + const extra = install({}, {tags: ['article'], attributes: ['data-extra'], events: ['custom']}); + const other = document.createElement('div'), revoke = extra.island('extra', other); + try { + extra.apply(packet([name(0, 'extra'), name(1, 'article'), name(2, 'href'), name(3, 'data-extra'), + [13, 1, 0], [2, 2, 1], attr(2, 2, '/safe'), attr(2, 3, 'yes'), [8, 1, 2]])); + expect(other.firstChild.localName).toBe('article'); + expect(other.firstChild.dataset.extra).toBe('yes'); + for (const value of ['javascript:bad', 'java\nscript:bad', 'data:text/html,bad']) + expect(() => extra.apply(packet([attr(2, 2, value)]))).toThrow(); + } finally { revoke(); } + }); + + it('supports typed properties, event flags, unlisten and listener cleanup on removal', async () => { + dom.apply(packet([name(3, 'input'), name(4, 'checked'), name(5, 'click'), + [2, 2, 3], prop(2, 4, 'true'), [8, 1, 2], [11, 2, 5, 3]])); + const input = root.firstChild; + expect(input.checked).toBeTrue(); + const event = new Event('click', {cancelable: true, bubbles: true}); + input.dispatchEvent(event); + expect(event.defaultPrevented).toBeTrue(); + expect(bridge.cppFunction).toHaveBeenCalledWith('wfDom.event'); + bridge.cppFunction.calls.reset(); + dom.apply(packet([[12, 2, 5]])); input.click(); + expect(bridge.cppFunction).not.toHaveBeenCalled(); + dom.apply(packet([[11, 2, 5, 0], [10, 2]])); input.click(); + expect(bridge.cppFunction).not.toHaveBeenCalled(); + }); + + it('invalidates released island handles and refuses overlapping or nonempty islands', () => { + dom.apply(packet([[2, 2, 1], [8, 1, 2]])); + expect(() => dom.island('overlap', root.firstChild)).toThrow(); + for (const tag of ['script', 'style', 'iframe', 'object']) + expect(() => dom.island('unsafe', document.createElement(tag))).toThrow(); + const populated = document.createElement('div'); populated.append('page-owned'); + expect(() => dom.island('populated', populated)).toThrow(); + const again = dom.island('root', root); + release(); // A stale release cannot revoke a newer registration. + dom.apply(packet([text(3, 'still here'), [8, 2, 3]])); + again(); + expect(() => dom.apply(packet([[10, 2]]))).toThrow(); + expect(root.isConnected).toBeTrue(); + }); + + it('reports residual DOM exceptions as rejection instead of losing them', () => { + dom.apply(packet([[2, 2, 1], [8, 1, 2]])); + spyOn(root.firstChild, 'setAttribute').and.throwError('DOM failure'); + expect(() => dom.apply(packet([attr(2, 2, 'value')]))).toThrowError('DOM failure'); + expect(() => dom.apply(packet([[10, 2]]))).toThrow(); + }); +}); + +describe('DOM commands over the real WebSocket', () => { + it('round trips C++ encoding and reports correlated hostile and unloaded-interpreter rejections', async () => { + await webFront.ready; + const id = 0x12345678; + // No module is installed on this bridge yet; the bridge still reports rejection to C++. + await webFront.cppFunction('sendDomBatch')(packet([], id)); + expect(await webFront.cppFunction('domBatchRejection')(id)).toContain('not installed'); + const {installDomInterpreter} = await import(moduleUrl); + const dom = installDomInterpreter(webFront); + const root = document.body.appendChild(document.createElement('div')); + const release = dom.island('root', root); + try { + await webFront.cppFunction('sendDomBatch')(packet([name(0, 'root'), name(1, 'div'), name(2, 'href'), + [13, 1, 0], [2, 2, 1], text(0xffffffff, 'C++ → été 🌍'), [8, 2, ...uint(0xffffffff)], [8, 1, 2]], id + 1)); + expect(root.textContent).toBe('C++ → été 🌍'); + await webFront.cppFunction('sendDomBatch')(packet([text(4, 'partial'), [8, 1, 4], attr(2, 2, 'java\tscript:bad')], id + 2)); + expect(root.textContent).toBe('C++ → été 🌍'); + expect(await webFront.cppFunction('domBatchRejection')(id + 2)).toContain('unsafe DOM URL'); + spyOn(root.firstChild, 'setAttribute').and.throwError('x'.repeat(70000)); + await webFront.cppFunction('sendDomBatch')(packet([attr(2, 2, '/safe')], id + 3)); + expect((await webFront.cppFunction('domBatchRejection')(id + 3)).length).toBe(4096); + // Truncated and oversized commands are rejected by the dispatch path as well. + webFront.onMessage(new Uint8Array([5]).buffer); + expect(await webFront.cppFunction('domBatchRejection')(0)).not.toBe(''); + webFront.onMessage(new Uint8Array(1024 * 1024 + 1).fill(5).buffer); + expect(await webFront.cppFunction('domBatchRejection')(0x05050505)).toContain('1 MiB'); + } finally { release(); root.remove(); delete webFront.domBatchHandler; } + }); +}); diff --git a/test/web/suite/specs/webfront-specs.mjs b/test/web/suite/specs/webfront-specs.mjs index ad2a8415..42792b13 100644 --- a/test/web/suite/specs/webfront-specs.mjs +++ b/test/web/suite/specs/webfront-specs.mjs @@ -1,4 +1,5 @@ import './content-policy-specs.mjs'; +import './dom-specs.mjs'; import { importedValue } from './module-fixture.mjs'; // The page of the application is covered by the lifecycle cases (path-encoding): these specs run in the frame of wf test. From fe7e23b34a97b21673e69634c921bf55b43be66d Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Tue, 27 Oct 2026 06:55:59 +0100 Subject: [PATCH 2/5] Address DOM batch review feedback [#380] --- .../ADR-003-protocole-binaire-et-bornes.md | 1 - docs/adr/ADR-016-bootstrap-comme-socle.md | 1 - docs/adr/README.md | 4 +- .../webfront/system/DomInterpreterData.hpp | 713 +++++++++--------- js/core/dom-interpreter.mjs | 3 +- 5 files changed, 361 insertions(+), 361 deletions(-) diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 5c3c558b..36feb11b 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -14,7 +14,6 @@ | 1.7 | 2026-10-16 | Acceptée | Ambroise Leclerc | Limite de message vérifiée dès l’en-tête, avant allocation de la charge utile. | [68f01f5](https://github.com/ambroise-leclerc/WebFront/commit/68f01f53f304ddb56155be0d47fb6fdd293de142) | | 1.8 | 2026-10-16 | Acceptée | Ambroise Leclerc | Plafond indépendant de 125 octets pour les trames de contrôle. | [3ebc181](https://github.com/ambroise-leclerc/WebFront/commit/3ebc181fce48240aa2cecebfe4d3f8cc4966732d) | | 1.9 | 2026-10-20 | Acceptée | Ambroise Leclerc | `std::bitset` compacté dans le format Uint8Array existant, sans nouvel opcode. | [5bc294e](https://github.com/ambroise-leclerc/WebFront/commit/5bc294eb0a9ba81ae7789b425baa6e299e848d97) | - | 1.10 | 2026-10-26 | Acceptée | Ambroise Leclerc | Commande `domBatch` bornée, interpréteur embarqué optionnel et validation transactionnelle (#380). | — | ## État et chronologie diff --git a/docs/adr/ADR-016-bootstrap-comme-socle.md b/docs/adr/ADR-016-bootstrap-comme-socle.md index e0271fa2..fb7ff50f 100644 --- a/docs/adr/ADR-016-bootstrap-comme-socle.md +++ b/docs/adr/ADR-016-bootstrap-comme-socle.md @@ -10,7 +10,6 @@ | 1.3 | 2026-10-24 | Acceptée | Ambroise Leclerc | Tests, régénération et CI sans Node.js ni npm (#318) : les en-têtes du cœur sont produits et vérifiés par un générateur CMake pur (`js/core/EmbedAsset.cmake`), qui remplace `wf run embed-core` et le générateur Node.js ; les paquets du registre de test sont téléchargés et vérifiés au configure ; les tests JavaScript deviennent des specs Jasmine exécutées par `wf test` ; garde-fou global `NoNodeDependency`. | — | | 1.4 | 2026-10-24 | Acceptée | Ambroise Leclerc | Qualification du parcours (#316) : ADR-013, ADR-014 et ADR-015 passent à « Acceptée ». | [#348](https://github.com/ambroise-leclerc/WebFront/pull/348) | | 1.5 | 2026-10-24 | Acceptée | Ambroise Leclerc | Documentation consolidée (#317) : la formulation courante décrit directement l'environnement et ses commandes (`wf init`, `install`, `dev`, `check`, `test`, `embed`), sans comparaison avec d'autres outils ; les versions et décisions antérieures de ce tableau et de l'historique Git restent l'historique de la décision. | [#317](https://github.com/ambroise-leclerc/WebFront/issues/317) | - | 1.6 | 2026-10-26 | Acceptée | Ambroise Leclerc | Ajout du module DOM optionnel `DomInterpreterData`, commande bornée de l’ADR-003 (#380) ; budget inchangé. | — | ## Statut et date diff --git a/docs/adr/README.md b/docs/adr/README.md index aac692f0..bd7243a4 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -42,7 +42,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.4 — 2026-10-14 | -| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.9 — 2026-10-20 | +| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.10 — 2026-10-26 | | [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted | 2022-02-06 | 2.4 — 2026-10-18 | | [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 | @@ -55,7 +55,7 @@ verification evidence remain in [PROJECT_STATUS](../PROJECT_STATUS.md). | [ADR-013](ADR-013-bootstrap-developpeur-a-la-demande.md) | Bootstrapping a downloaded developer environment | Accepted | 2026-10-20 | 1.0 — 2026-10-24 | | [ADR-014](ADR-014-construction-javascript-dans-le-browser.md) | Resolving npm dependencies and building inside the browser | Accepted | 2026-10-20 | 1.0 — 2026-10-24 | | [ADR-015](ADR-015-ressources-generees-par-application.md) | Generating application-owned embedded resources | Accepted | 2026-10-20 | 1.0 — 2026-10-24 | -| [ADR-016](ADR-016-bootstrap-comme-socle.md) | The bootstrap environment as WebFront's foundation | Accepted | 2026-10-22 | 1.5 — 2026-10-24 | +| [ADR-016](ADR-016-bootstrap-comme-socle.md) | The bootstrap environment as WebFront's foundation | Accepted | 2026-10-22 | 1.6 — 2026-10-26 | | [ADR-017](ADR-017-acces-direct-aux-frontends.md) | Direct access to embedded frontends, with HTML kept normative | Proposed | 2026-10-24 | 1.1 — 2026-10-25 | | [ADR-018](ADR-018-acces-au-dom.md) | DOM access from C++ through a bounded mutation stream, without contesting the DOM of UI libraries | Proposed | 2026-10-26 | 1.0 — 2026-10-26 | diff --git a/include/webfront/system/DomInterpreterData.hpp b/include/webfront/system/DomInterpreterData.hpp index 1aacc08b..798938bd 100644 --- a/include/webfront/system/DomInterpreterData.hpp +++ b/include/webfront/system/DomInterpreterData.hpp @@ -9,368 +9,369 @@ namespace webfront::fs::generated { struct DomInterpreterData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{14391}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{14416}; + static constexpr std::array data{ 0x2f2f204144522d30, 0x30333a206f707469, 0x6f6e616c20444f4d, 0x20636f6d6d616e64, 0x20696e7465727072, 0x657465722e204f6e, 0x6c79207468697320, 0x6d6f64756c652074, 0x6f75636865732074, 0x686520444f4d3b20, 0x57656246726f6e74, 0x2e6a7320726f7574, 0x657320636f6d6d61, 0x6e6420352e0a636f, 0x6e7374206d617842, 0x79746573203d2031, 0x303234202a203130, 0x32343b0a636f6e73, 0x74206d6178456e74, 0x72696573203d2036, 0x353533363b0a636f, 0x6e7374206465636f, 0x646572203d206e65, 0x7720546578744465, 0x636f646572282775, 0x74662d38272c207b, 0x666174616c3a2074, 0x7275652c2069676e, 0x6f7265424f4d3a20, 0x747275657d293b0a, - 0x636f6e7374206465, 0x6661756c74546167, 0x73203d2027646976, 0x207370616e207020, 0x756c206f6c206c69, - 0x20627574746f6e20, 0x696e707574206c61, 0x62656c2073656c65, 0x6374206f7074696f, 0x6e20666f726d2066, - 0x69656c6473657420, 0x6c6567656e642068, 0x3120683220683320, 0x6834207461626c65, 0x2074686561642074, - 0x626f647920747220, 0x7464207468207374, 0x726f6e6720656d20, 0x736d616c6c206f75, 0x747075742070726f, - 0x6772657373206d65, 0x7465722074657874, 0x6172656120736563, 0x74696f6e20686561, 0x64657220666f6f74, - 0x6572206e61762061, 0x20696d6720627220, 0x6872207072652063, 0x6f6465273b0a636f, 0x6e73742064656661, - 0x756c744174747269, 0x6275746573203d20, 0x27636c6173732069, 0x64207374796c6520, 0x7469746c65207479, - 0x7065206e616d6520, 0x76616c756520706c, 0x616365686f6c6465, 0x72206d696e206d61, 0x7820737465702063, - 0x6865636b65642064, 0x697361626c656420, 0x726561646f6e6c79, 0x20666f7220687265, 0x662073726320616c, - 0x7420726f6c652074, 0x6162696e64657820, 0x636f6c7370616e20, 0x726f777370616e20, 0x7769647468206865, - 0x696768742073656c, 0x6563746564206c61, 0x6e67206469722068, 0x696464656e273b0a, 0x636f6e7374206465, - 0x6661756c74457665, 0x6e7473203d202763, 0x6c69636b2064626c, 0x636c69636b20696e, 0x707574206368616e, - 0x6765207375626d69, 0x74206b6579646f77, 0x6e206b6579757020, 0x666f63757320626c, 0x757220706f696e74, - 0x6572646f776e2070, 0x6f696e7465727570, 0x273b0a636f6e7374, 0x20666f7262696464, 0x656e54616773203d, - 0x206e657720536574, 0x2827736372697074, 0x20696672616d6520, 0x6672616d65206672, 0x616d65736574206f, - 0x626a65637420656d, 0x626564206c696e6b, 0x206d657461206261, 0x7365207374796c65, 0x20737667206d6174, - 0x68272e73706c6974, 0x2827202729293b0a, 0x636f6e737420666f, 0x7262696464656e41, 0x7474726962757465, - 0x73203d206e657720, 0x5365742827737263, 0x646f632069732078, 0x6d6c6e7320737263, 0x73657420696d6167, - 0x6573726373657420, 0x70696e67272e7370, 0x6c69742827202729, 0x293b0a636f6e7374, 0x2075726c41747472, - 0x696275746573203d, 0x206e657720536574, 0x2827687265662073, 0x726320616374696f, 0x6e20666f726d6163, - 0x74696f6e20706f73, 0x7465722063697465, 0x206261636b67726f, 0x756e642064617461, 0x20636f6465626173, - 0x65206d616e696665, 0x7374206c6f6e6764, 0x657363207573656d, 0x61702070726f6669, 0x6c65272e73706c69, - 0x742827202729293b, 0x0a636f6e73742070, 0x726f70657274794e, 0x616d6573203d206e, 0x657720536574285b, - 0x2776616c7565272c, 0x2027636865636b65, 0x64272c2027646973, 0x61626c6564272c20, 0x27696e6465746572, - 0x6d696e617465272c, 0x202773656c656374, 0x6564496e64657827, 0x5d293b0a636f6e73, 0x74206c697374203d, - 0x2074657874203d3e, 0x206e657720536574, 0x28746578742e7370, 0x6c69742827202729, 0x293b0a636f6e7374, - 0x2076616c69644e61, 0x6d65203d206e616d, 0x65203d3e202f5e5b, 0x612d7a5d5b612d7a, 0x302d392d5d2a242f, - 0x2e74657374286e61, 0x6d65293b0a0a6675, 0x6e6374696f6e2072, 0x6561646572286279, 0x74657329207b0a20, - 0x2020206c6574206f, 0x6666736574203d20, 0x363b0a2020202072, 0x657475726e207b0a, 0x2020202020202020, - 0x67657420646f6e65, 0x2829207b20726574, 0x75726e206f666673, 0x6574203d3d3d2062, 0x797465732e6c656e, - 0x6774683b207d2c0a, 0x2020202020202020, 0x627974652829207b, 0x0a20202020202020, 0x2020202020696620, - 0x286f666673657420, 0x3e3d206279746573, 0x2e6c656e67746829, 0x207468726f77206e, 0x65772052616e6765, - 0x4572726f72282774, 0x72756e6361746564, 0x20444f4d20626174, 0x636827293b0a2020, 0x2020202020202020, - 0x202072657475726e, 0x2062797465735b6f, 0x66667365742b2b5d, 0x3b0a202020202020, 0x20207d2c0a202020, - 0x202020202075696e, 0x742829207b0a2020, 0x2020202020202020, 0x20206c6574207661, 0x6c7565203d20303b, - 0x0a20202020202020, 0x2020202020666f72, 0x20286c6574206920, 0x3d20303b2069203c, 0x20353b202b2b6929, - 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, 0x206e657874203d20, 0x746869732e627974, - 0x6528293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x282869203d3d3d20, 0x34202626206e6578, - 0x74203e2031352920, 0x7c7c202869203e20, 0x30202626206e6578, 0x74203d3d3d203029, 0x290a202020202020, - 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f7228276e6f6e63, - 0x616e6f6e6963616c, 0x206f72206f766572, 0x666c6f77696e6720, 0x444f4d2076617269, 0x6e7427293b0a2020, - 0x2020202020202020, 0x2020202020207661, 0x6c7565202b3d2028, 0x6e65787420262031, 0x323729202a203220, - 0x2a2a202837202a20, 0x69293b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x21286e6578742026, - 0x2031323829292072, 0x657475726e207661, 0x6c75653b0a202020, 0x2020202020202020, 0x207d0a2020202020, - 0x2020202020202074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f7228276f7665, 0x72666c6f77696e67, - 0x20444f4d20766172, 0x696e7427293b0a20, 0x202020202020207d, 0x2c0a202020202020, 0x2020737472696e67, - 0x2829207b0a202020, 0x2020202020202020, 0x20636f6e73742073, 0x697a65203d207468, 0x69732e75696e7428, - 0x293b0a2020202020, 0x2020202020202069, 0x66202873697a6520, 0x3e2062797465732e, 0x6c656e677468202d, - 0x206f666673657429, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282774, 0x72756e6361746564, - 0x20444f4d20737472, 0x696e6727293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2076616c7565203d, - 0x206465636f646572, 0x2e6465636f646528, 0x62797465732e7375, 0x626172726179286f, 0x66667365742c206f, - 0x6666736574202b20, 0x73697a6529293b0a, 0x2020202020202020, 0x202020206f666673, 0x6574202b3d207369, - 0x7a653b0a20202020, 0x2020202020202020, 0x72657475726e2076, 0x616c75653b0a2020, 0x2020202020207d2c, - 0x0a202020207d3b0a, 0x7d0a0a2f2a2a2049, 0x6e7374616c6c206f, 0x6e63652070657220, 0x6272696467652f64, - 0x6f63756d656e742e, 0x2054686520706167, 0x65206578706c6963, 0x69746c79206c656e, 0x647320656d707479, - 0x20656c656d656e74, 0x7320776974682069, 0x736c616e64286e61, 0x6d652c20656c656d, 0x656e74292e0a202a, - 0x20457874656e7369, 0x6f6e206c69737473, 0x2061726520636f70, 0x6965643b20657865, 0x63757461626c6520, - 0x746167732f617474, 0x7269627574657320, 0x616e6420756e7361, 0x66652055524c2073, 0x6368656d65732072, - 0x656d61696e20666f, 0x7262696464656e2e, 0x0a202a206170706c, 0x79207468726f7773, 0x206f6e2072656a65, - 0x6374696f6e3b2074, 0x6865206272696467, 0x65207265706f7274, 0x7320697420746f20, 0x432b2b2061732077, - 0x66446f6d2e72656a, 0x6563746564286261, 0x74636849642c2072, 0x6561736f6e292e0a, 0x202a2f0a6578706f, - 0x72742066756e6374, 0x696f6e20696e7374, 0x616c6c446f6d496e, 0x7465727072657465, 0x7228627269646765, - 0x203d20676c6f6261, 0x6c546869732e7765, 0x6246726f6e742c20, 0x657874656e73696f, 0x6e73203d207b7d29, - 0x207b0a2020202069, 0x6620286272696467, 0x652e646f6d426174, 0x636848616e646c65, 0x7229207468726f77, - 0x206e657720457272, 0x6f722827444f4d20, 0x696e746572707265, 0x74657220616c7265, 0x61647920696e7374, - 0x616c6c656427293b, 0x0a20202020636f6e, 0x7374207461677320, 0x3d206c6973742864, 0x656661756c745461, - 0x6773292c20617474, 0x7269627574657320, 0x3d206c6973742864, 0x656661756c744174, 0x7472696275746573, - 0x292c206576656e74, 0x73203d206c697374, 0x2864656661756c74, 0x4576656e7473293b, 0x0a20202020666f72, - 0x2028636f6e737420, 0x5b6b65792c207461, 0x726765745d206f66, 0x205b5b2774616773, 0x272c20746167735d, - 0x2c205b2761747472, 0x696275746573272c, 0x2061747472696275, 0x7465735d2c205b27, 0x6576656e7473272c, - 0x206576656e74735d, 0x5d29207b0a202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6e616d65206f6620, - 0x657874656e73696f, 0x6e735b6b65795d20, 0x7c7c205b5d29207b, 0x0a20202020202020, 0x2020202020696620, - 0x282176616c69644e, 0x616d65286e616d65, 0x29207c7c206e616d, 0x652e737461727473, 0x5769746828276f6e, - 0x2729207c7c0a2020, 0x2020202020202020, 0x202020202020286b, 0x6579203d3d3d2027, 0x7461677327202626, - 0x20666f7262696464, 0x656e546167732e68, 0x6173286e616d6529, 0x29207c7c0a202020, 0x2020202020202020, - 0x2020202020286b65, 0x79203d3d3d202761, 0x7474726962757465, 0x732720262620666f, 0x7262696464656e41, - 0x7474726962757465, 0x732e686173286e61, 0x6d652929290a2020, 0x2020202020202020, 0x2020202020207468, - 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d20657874, 0x656e73696f6e2024, - 0x7b6e616d657d6029, 0x3b0a202020202020, 0x2020202020207461, 0x726765742e616464, 0x286e616d65293b0a, - 0x2020202020202020, 0x7d0a202020207d0a, 0x20202020636f6e73, 0x74206e616d657320, 0x3d205b5d3b0a2020, - 0x20206c6574206e6f, 0x646573203d206e65, 0x77204d617028293b, 0x0a20202020636f6e, 0x73742069736c616e, - 0x6473203d206e6577, 0x204d617028292c20, 0x6c697374656e6572, 0x73203d206e657720, 0x4d617028293b0a20, - 0x202020636f6e7374, 0x20616c6c6f776564, 0x4174747269627574, 0x65203d206e616d65, 0x203d3e20216e616d, - 0x652e737461727473, 0x5769746828276f6e, 0x2729202626202166, 0x6f7262696464656e, 0x4174747269627574, - 0x65732e686173286e, 0x616d65292026260a, 0x2020202020202020, 0x2861747472696275, 0x7465732e68617328, - 0x6e616d6529207c7c, 0x202f5e2861726961, 0x7c64617461292d5b, 0x612d7a302d392d5d, 0x2b242f2e74657374, - 0x286e616d6529293b, 0x0a20202020636f6e, 0x7374207361666555, 0x726c203d2076616c, 0x7565203d3e205b27, - 0x687474703a272c20, 0x2768747470733a27, 0x2c20276d61696c74, 0x6f3a275d2e696e63, 0x6c75646573286e65, - 0x772055524c287661, 0x6c75652c20646f63, 0x756d656e742e6261, 0x7365555249292e70, 0x726f746f636f6c29, - 0x3b0a0a2020202066, 0x756e6374696f6e20, 0x756e6c697374656e, 0x2869642c20696e64, 0x657829207b0a2020, - 0x202020202020636f, 0x6e7374206b657920, 0x3d2060247b69647d, 0x3a247b696e646578, 0x7d602c20656e7472, - 0x79203d206c697374, 0x656e6572732e6765, 0x74286b6579293b0a, 0x2020202020202020, 0x69662028656e7472, - 0x7929207b0a202020, 0x2020202020202020, 0x20656e7472792e6e, 0x6f64652e72656d6f, 0x76654576656e744c, - 0x697374656e657228, 0x656e7472792e6e61, 0x6d652c20656e7472, 0x792e6c697374656e, 0x6572293b0a202020, - 0x2020202020202020, 0x206c697374656e65, 0x72732e64656c6574, 0x65286b6579293b0a, 0x2020202020202020, - 0x7d0a202020207d0a, 0x2020202066756e63, 0x74696f6e20636c65, 0x616e4c697374656e, 0x657273286c697665, - 0x29207b0a20202020, 0x20202020666f7220, 0x28636f6e7374205b, 0x6b65792c20656e74, 0x72795d206f66206c, - 0x697374656e657273, 0x290a202020202020, 0x2020202020206966, 0x2028216c6976652e, 0x68617328656e7472, - 0x792e696429292075, 0x6e6c697374656e28, 0x656e7472792e6964, 0x2c204e756d626572, 0x286b65792e73706c, - 0x697428273a27295b, 0x315d29293b0a2020, 0x20207d0a20202020, 0x66756e6374696f6e, 0x206c697374656e28, - 0x69642c20696e6465, 0x782c206e616d652c, 0x20666c6167732920, 0x7b0a202020202020, 0x2020756e6c697374, - 0x656e2869642c2069, 0x6e646578293b0a20, 0x2020202020202063, 0x6f6e7374206e6f64, 0x65203d206e6f6465, - 0x732e676574286964, 0x292e6e6f64653b0a, 0x2020202020202020, 0x636f6e7374206c69, 0x7374656e6572203d, - 0x206576656e74203d, 0x3e207b0a20202020, 0x2020202020202020, 0x69662028666c6167, 0x7320262031292065, - 0x76656e742e707265, 0x76656e7444656661, 0x756c7428293b0a20, 0x2020202020202020, 0x2020206966202866, - 0x6c61677320262032, 0x29206576656e742e, 0x73746f7050726f70, 0x61676174696f6e28, 0x293b0a2020202020, - 0x2020202020202063, 0x6f6e73742076616c, 0x7565203d206e616d, 0x65203d3d3d202769, 0x6e70757427207c7c, - 0x206e616d65203d3d, 0x3d20276368616e67, 0x65270a2020202020, 0x2020202020202020, 0x2020203f20286e6f, - 0x64652e7479706520, 0x3d3d3d2027636865, 0x636b626f7827203f, 0x20537472696e6728, 0x6e6f64652e636865, - 0x636b656429203a20, 0x537472696e67286e, 0x6f64652e76616c75, 0x6529290a20202020, 0x2020202020202020, - 0x202020203a206e61, 0x6d65203d3d3d2027, 0x6b6579646f776e27, 0x207c7c206e616d65, 0x203d3d3d20276b65, - 0x79757027203f2065, 0x76656e742e6b6579, 0x203a2027273b0a20, 0x2020202020202020, 0x2020206272696467, - 0x652e63707046756e, 0x6374696f6e282777, 0x66446f6d2e657665, 0x6e7427292869642c, 0x20696e6465782c20, - 0x76616c7565292e63, 0x6174636828282920, 0x3d3e207b7d293b0a, 0x2020202020202020, 0x7d3b0a2020202020, - 0x2020206e6f64652e, 0x6164644576656e74, 0x4c697374656e6572, 0x286e616d652c206c, 0x697374656e657229, - 0x3b0a202020202020, 0x20206c697374656e, 0x6572732e73657428, 0x60247b69647d3a24, 0x7b696e6465787d60, - 0x2c207b69642c206e, 0x6f64652c206e616d, 0x652c206c69737465, 0x6e65727d293b0a20, 0x2020207d0a0a2020, - 0x202066756e637469, 0x6f6e206465636f64, 0x6528627974657329, 0x207b0a2020202020, 0x2020206966202821, - 0x2862797465732069, 0x6e7374616e63656f, 0x662055696e743841, 0x7272617929207c7c, 0x2062797465732e6c, - 0x656e677468203c20, 0x36207c7c20627974, 0x65732e6c656e6774, 0x68203e206d617842, 0x79746573207c7c20, - 0x62797465735b305d, 0x20213d3d2035207c, 0x7c2062797465735b, 0x315d20213d3d2031, 0x290a202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f722827696e7661, 0x6c696420444f4d20, - 0x6261746368206865, 0x61646572206f7220, 0x73697a6527293b0a, 0x2020202020202020, 0x636f6e737420696e, - 0x707574203d207265, 0x6164657228627974, 0x6573292c206f7065, 0x726174696f6e7320, 0x3d205b5d3b0a2020, - 0x2020202020202f2f, 0x2052657461696e20, 0x656163682066756c, 0x6c79206465636f64, 0x6564204e414d4520, - 0x6576656e20696620, 0x61206c6174657220, 0x6f7065726174696f, 0x6e206f722076616c, 0x69646174696f6e20, - 0x72656a6563747320, 0x7468652062617463, 0x682e0a2020202020, 0x2020207768696c65, 0x202821696e707574, - 0x2e646f6e6529207b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206f70203d20, 0x696e7075742e6279, - 0x746528293b0a2020, 0x2020202020202020, 0x2020696620286f70, 0x203c2031207c7c20, 0x6f70203e20313329, - 0x207468726f77206e, 0x6577204572726f72, 0x2860756e6b6e6f77, 0x6e20444f4d206f70, 0x65726174696f6e20, - 0x247b6f707d60293b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742061203d2069, 0x6e7075742e75696e, - 0x7428293b0a202020, 0x2020202020202020, 0x20636f6e73742062, 0x203d205b322c2034, 0x2c20352c20362c20, - 0x382c20392c203131, 0x2c2031322c203133, 0x5d2e696e636c7564, 0x6573286f7029203f, 0x20696e7075742e75, - 0x696e742829203a20, 0x303b0a2020202020, 0x2020202020202063, 0x6f6e73742063203d, 0x206f70203d3d3d20, - 0x39203f20696e7075, 0x742e75696e742829, 0x203a206f70203d3d, 0x3d203131203f2069, 0x6e7075742e627974, - 0x652829203a20303b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742076616c7565, 0x203d205b312c2033, - 0x2c20342c20362c20, 0x375d2e696e636c75, 0x646573286f702920, 0x3f20696e7075742e, 0x737472696e672829, - 0x203a2027273b0a20, 0x2020202020202020, 0x202020696620286f, 0x70203d3d3d203129, 0x207b0a2020202020, - 0x2020202020202020, 0x2020206966202861, 0x20213d3d206e616d, 0x65732e6c656e6774, 0x68207c7c2061203e, - 0x3d206d6178456e74, 0x72696573207c7c20, 0x6e65772054657874, 0x456e636f64657228, 0x292e656e636f6465, - 0x2876616c7565292e, 0x6c656e677468203e, 0x2031303234290a20, 0x2020202020202020, 0x2020202020202020, - 0x2020207468726f77, 0x206e657720457272, 0x6f722827696e7661, 0x6c696420444f4d20, 0x6e616d6520646566, - 0x696e6974696f6e27, 0x293b0a2020202020, 0x2020202020202020, 0x2020206e616d6573, 0x2e70757368287661, - 0x6c7565293b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x6f7065726174696f, - 0x6e732e7075736828, 0x7b6f702c20612c20, 0x622c20632c207661, 0x6c75652c206e616d, 0x654c696d69743a20, - 0x6e616d65732e6c65, 0x6e6774687d293b0a, 0x2020202020202020, 0x7d0a202020202020, 0x202072657475726e, - 0x206f706572617469, 0x6f6e733b0a202020, 0x207d0a0a20202020, 0x66756e6374696f6e, 0x206170706c792862, - 0x7974657329207b0a, 0x2020202020202020, 0x636f6e7374206f70, 0x65726174696f6e73, 0x203d206465636f64, - 0x6528627974657329, 0x3b0a202020202020, 0x20202f2f20412073, 0x6861646f77207472, 0x656520747261636b, - 0x7320746865207374, 0x6174652070726f64, 0x7563656420627920, 0x6576657279207072, 0x65636564696e6720, - 0x6f7065726174696f, 0x6e2c20696e636c75, 0x64696e672072656d, 0x6f76616c7320616e, 0x64206d6f7665732e, - 0x0a20202020202020, 0x20636f6e73742073, 0x6861646f77203d20, 0x6e6577204d617028, 0x41727261792e6672, - 0x6f6d286e6f646573, 0x2c20285b69642c20, 0x656e7472795d2920, 0x3d3e205b69642c20, 0x7b2e2e2e656e7472, - 0x792c206368696c64, 0x72656e3a206e6577, 0x2053657428656e74, 0x72792e6368696c64, 0x72656e297d5d2929, - 0x3b0a202020202020, 0x2020636f6e737420, 0x7374657073203d20, 0x5b5d3b0a20202020, 0x20202020636f6e73, - 0x7420676574203d20, 0x6964203d3e207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420656e74727920, - 0x3d20736861646f77, 0x2e67657428696429, 0x3b0a202020202020, 0x2020202020206966, 0x202821656e747279, - 0x29207468726f7720, 0x6e6577204572726f, 0x722860756e6b6e6f, 0x776e20444f4d206e, 0x6f646520247b6964, - 0x7d60293b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x656e7472793b0a20, 0x202020202020207d, - 0x3b0a202020202020, 0x2020636f6e737420, 0x7772697461626c65, 0x203d206964203d3e, 0x207b0a2020202020, - 0x2020202020202063, 0x6f6e737420656e74, 0x7279203d20676574, 0x286964293b0a2020, 0x2020202020202020, - 0x202069662028656e, 0x7472792e69736c61, 0x6e6429207468726f, 0x77206e6577204572, 0x726f722827746865, - 0x2070616765206f77, 0x6e73207468652069, 0x736c616e6420656c, 0x656d656e7427293b, 0x0a20202020202020, - 0x2020202020726574, 0x75726e20656e7472, 0x793b0a2020202020, 0x2020207d3b0a2020, 0x202020202020636f, - 0x6e737420656c656d, 0x656e74203d206964, 0x203d3e207b0a2020, 0x2020202020202020, 0x2020636f6e737420, - 0x656e747279203d20, 0x7772697461626c65, 0x286964293b0a2020, 0x2020202020202020, 0x202069662028656e, - 0x7472792e74657874, 0x29207468726f7720, 0x6e6577204572726f, 0x7228276578706563, 0x74656420444f4d20, - 0x656c656d656e7427, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e20656e, 0x7472793b0a202020, - 0x20202020207d3b0a, 0x2020202020202020, 0x636f6e7374206672, 0x657368203d202869, 0x642c20656e747279, - 0x29203d3e207b0a20, 0x2020202020202020, 0x2020206966202821, 0x6964207c7c207368, 0x61646f772e686173, - 0x28696429207c7c20, 0x736861646f772e73, 0x697a65203e3d206d, 0x6178456e74726965, 0x7329207468726f77, - 0x206e657720457272, 0x6f722827696e7661, 0x6c6964206f722064, 0x75706c6963617465, 0x20444f4d206e6f64, - 0x6527293b0a202020, 0x2020202020202020, 0x20736861646f772e, 0x7365742869642c20, 0x7b2e2e2e656e7472, - 0x792c20706172656e, 0x743a206e756c6c2c, 0x206368696c647265, 0x6e3a206e65772053, 0x657428297d293b0a, - 0x2020202020202020, 0x7d3b0a2020202020, 0x202020636f6e7374, 0x20666f7267657420, 0x3d206964203d3e20, - 0x7b0a202020202020, 0x2020202020202f2f, 0x2049746572617469, 0x7665207472617665, 0x7273616c3a20686f, - 0x7374696c65206465, 0x6570207472656573, 0x206d757374206e6f, 0x74206f766572666c, 0x6f7720746865204a, - 0x6176615363726970, 0x7420737461636b2e, 0x0a20202020202020, 0x2020202020636f6e, 0x73742070656e6469, - 0x6e67203d205b6964, 0x5d3b0a2020202020, 0x2020202020202077, 0x68696c6520287065, 0x6e64696e672e6c65, - 0x6e67746829207b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206375, 0x7272656e74203d20, - 0x70656e64696e672e, 0x706f7028292c2065, 0x6e747279203d2067, 0x6574286375727265, 0x6e74293b0a202020, - 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6368696c64206f66, 0x20656e7472792e63, - 0x68696c6472656e29, 0x2070656e64696e67, 0x2e70757368286368, 0x696c64293b0a2020, 0x2020202020202020, - 0x2020202020207368, 0x61646f772e64656c, 0x6574652863757272, 0x656e74293b0a2020, 0x2020202020202020, - 0x20207d0a20202020, 0x202020207d3b0a20, 0x2020202020202066, 0x6f722028636f6e73, 0x74207b6f702c2061, - 0x2c20622c20632c20, 0x76616c75652c206e, 0x616d654c696d6974, 0x7d206f66206f7065, 0x726174696f6e7329, - 0x207b0a2020202020, 0x2020202020202063, 0x6f6e7374206e616d, 0x654174203d20696e, 0x646578203d3e207b, - 0x0a20202020202020, 0x2020202020202020, 0x2069662028696e64, 0x6578203e3d206e61, 0x6d654c696d697429, - 0x207468726f77206e, 0x6577204572726f72, 0x2860756e6b6e6f77, 0x6e20444f4d206e61, 0x6d6520247b696e64, - 0x65787d60293b0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e206e61, 0x6d65735b696e6465, - 0x785d3b0a20202020, 0x2020202020202020, 0x7d3b0a2020202020, 0x2020202020202073, 0x776974636820286f, - 0x7029207b0a202020, 0x2020202020202020, 0x206361736520313a, 0x20627265616b3b0a, 0x2020202020202020, - 0x2020202063617365, 0x20323a207b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e73742074616720, - 0x3d206e616d654174, 0x2862293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2821746167732e68, - 0x6173287461672920, 0x7c7c20666f726269, 0x6464656e54616773, 0x2e68617328746167, 0x2929207468726f77, - 0x206e657720457272, 0x6f722860666f7262, 0x696464656e20444f, 0x4d2074616720247b, 0x7461677d60293b0a, - 0x2020202020202020, 0x2020202020202020, 0x667265736828612c, 0x207b746578743a20, 0x66616c73657d293b, - 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e207b206e6f6465, - 0x732e73657428612c, 0x207b6e6f64653a20, 0x646f63756d656e74, 0x2e63726561746545, 0x6c656d656e742874, - 0x6167297d293b207d, 0x293b0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, - 0x2020202020207d0a, 0x2020202020202020, 0x2020202063617365, 0x20333a0a20202020, 0x2020202020202020, - 0x2020202066726573, 0x6828612c207b7465, 0x78743a2074727565, 0x7d293b0a20202020, 0x2020202020202020, - 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, 0x6f6465732e736574, 0x28612c207b6e6f64, - 0x653a20646f63756d, 0x656e742e63726561, 0x7465546578744e6f, 0x64652876616c7565, 0x297d293b207d293b, - 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, 0x2020202063617365, - 0x20343a2063617365, 0x20353a207b0a2020, 0x2020202020202020, 0x202020202020656c, 0x656d656e74286129, - 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x6e616d65203d206e, 0x616d654174286229, - 0x3b0a202020202020, 0x2020202020202020, 0x2020696620282161, 0x6c6c6f7765644174, 0x7472696275746528, - 0x6e616d6529292074, 0x68726f77206e6577, 0x204572726f722860, 0x666f726269646465, 0x6e20444f4d206174, - 0x7472696275746520, 0x247b6e616d657d60, 0x293b0a2020202020, 0x2020202020202020, 0x202020696620286f, - 0x70203d3d3d203420, 0x26262075726c4174, 0x7472696275746573, 0x2e686173286e616d, 0x6529202626202173, - 0x61666555726c2876, 0x616c756529292074, 0x68726f77206e6577, 0x204572726f722827, 0x756e736166652044, - 0x4f4d2055524c2729, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, 0x7075736828282920, - 0x3d3e206f70203d3d, 0x3d2034203f206e6f, 0x6465732e67657428, 0x61292e6e6f64652e, 0x7365744174747269, - 0x62757465286e616d, 0x652c2076616c7565, 0x29203a206e6f6465, 0x732e676574286129, 0x2e6e6f64652e7265, - 0x6d6f766541747472, 0x6962757465286e61, 0x6d6529293b0a2020, 0x2020202020202020, 0x2020202020206272, - 0x65616b3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x61736520363a207b, - 0x0a20202020202020, 0x2020202020202020, 0x20656c656d656e74, 0x2861293b0a202020, 0x2020202020202020, - 0x2020202020636f6e, 0x7374206e616d6520, 0x3d206e616d654174, 0x2862293b0a202020, 0x2020202020202020, - 0x2020202020696620, 0x282170726f706572, 0x74794e616d65732e, 0x686173286e616d65, 0x2929207468726f77, - 0x206e657720457272, 0x6f722860666f7262, 0x696464656e20444f, 0x4d2070726f706572, 0x747920247b6e616d, - 0x657d60293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20285b2763686563, 0x6b6564272c202764, - 0x697361626c656427, 0x2c2027696e646574, 0x65726d696e617465, 0x275d2e696e636c75, 0x646573286e616d65, - 0x2920262620215b27, 0x74727565272c2027, 0x66616c7365275d2e, 0x696e636c75646573, 0x2876616c75652929, - 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, 0x72726f722827696e, - 0x76616c696420444f, 0x4d20626f6f6c6561, 0x6e27293b0a202020, 0x2020202020202020, 0x2020202020696620, - 0x286e616d65203d3d, 0x3d202773656c6563, 0x746564496e646578, 0x272026262028212f, 0x5e2d3f5c642b242f, - 0x2e74657374287661, 0x6c756529207c7c20, 0x214e756d6265722e, 0x6973496e74656765, 0x72284e756d626572, - 0x2876616c75652929, 0x207c7c204e756d62, 0x65722876616c7565, 0x29203c202d31207c, 0x7c204e756d626572, - 0x2876616c75652920, 0x3e20323134373438, 0x3336343729290a20, 0x2020202020202020, 0x2020202020202020, - 0x2020207468726f77, 0x206e657720457272, 0x6f722827696e7661, 0x6c696420444f4d20, 0x73656c6563746564, - 0x496e64657827293b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742063, 0x6f6e766572746564, - 0x203d206e616d6520, 0x3d3d3d202776616c, 0x756527203f207661, 0x6c7565203a206e61, 0x6d65203d3d3d2027, - 0x73656c6563746564, 0x496e64657827203f, 0x204e756d62657228, 0x76616c756529203a, 0x2076616c7565203d, - 0x3d3d202774727565, 0x273b0a2020202020, 0x2020202020202020, 0x2020207374657073, 0x2e70757368282829, - 0x203d3e207b206e6f, 0x6465732e67657428, 0x61292e6e6f64655b, 0x6e616d655d203d20, 0x636f6e7665727465, - 0x643b207d293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, - 0x20207d0a20202020, 0x2020202020202020, 0x6361736520373a0a, 0x2020202020202020, 0x2020202020202020, - 0x6966202821777269, 0x7461626c65286129, 0x2e74657874292074, 0x68726f77206e6577, 0x204572726f722827, - 0x5345545f54455854, 0x2072657175697265, 0x7320612074657874, 0x206e6f646527293b, 0x0a20202020202020, - 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e207b206e6f6465, 0x732e676574286129, - 0x2e6e6f64652e6461, 0x7461203d2076616c, 0x75653b207d293b0a, 0x2020202020202020, 0x2020202020202020, - 0x627265616b3b0a20, 0x2020202020202020, 0x2020206361736520, 0x383a206361736520, 0x393a207b0a202020, - 0x2020202020202020, 0x2020202020636f6e, 0x737420706172656e, 0x74203d2067657428, 0x61292c206368696c, - 0x64203d2077726974, 0x61626c652862293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028706172, - 0x656e742e74657874, 0x29207468726f7720, 0x6e6577204572726f, 0x7228276120746578, 0x74206e6f64652063, - 0x616e6e6f74206f77, 0x6e206368696c6472, 0x656e27293b0a2020, 0x2020202020202020, 0x2020202020206966, - 0x20286f70203d3d3d, 0x2039202626206765, 0x742863292e706172, 0x656e7420213d3d20, 0x6129207468726f77, - 0x206e657720457272, 0x6f722827696e7365, 0x72744265666f7265, 0x207265666572656e, 0x6365206973206e6f, - 0x742061206368696c, 0x6427293b0a202020, 0x2020202020202020, 0x2020202020666f72, 0x20286c657420616e, - 0x636573746f72203d, 0x20613b20616e6365, 0x73746f7220213d3d, 0x206e756c6c3b2061, 0x6e636573746f7220, - 0x3d2067657428616e, 0x636573746f72292e, 0x706172656e74290a, 0x2020202020202020, 0x2020202020202020, - 0x2020202069662028, 0x616e636573746f72, 0x203d3d3d20622920, 0x7468726f77206e65, 0x77204572726f7228, - 0x27444f4d20637963, 0x6c6527293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20286368696c642e, - 0x706172656e742021, 0x3d3d206e756c6c29, 0x2067657428636869, 0x6c642e706172656e, 0x74292e6368696c64, - 0x72656e2e64656c65, 0x74652862293b0a20, 0x2020202020202020, 0x2020202020202063, 0x68696c642e706172, - 0x656e74203d20613b, 0x0a20202020202020, 0x2020202020202020, 0x20706172656e742e, 0x6368696c6472656e, - 0x2e6164642862293b, 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, - 0x3e206f70203d3d3d, 0x2038203f206e6f64, 0x65732e6765742861, 0x292e6e6f64652e61, 0x7070656e64436869, - 0x6c64286e6f646573, 0x2e6765742862292e, 0x6e6f646529203a0a, 0x2020202020202020, 0x2020202020202020, - 0x202020206e6f6465, 0x732e676574286129, 0x2e6e6f64652e696e, 0x736572744265666f, 0x7265286e6f646573, - 0x2e6765742862292e, 0x6e6f64652c206e6f, 0x6465732e67657428, 0x63292e6e6f646529, 0x293b0a2020202020, - 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, - 0x2020202063617365, 0x2031303a207b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420656e74, - 0x7279203d20777269, 0x7461626c65286129, 0x3b0a202020202020, 0x2020202020202020, 0x202069662028656e, - 0x7472792e70617265, 0x6e7420213d3d206e, 0x756c6c2920676574, 0x28656e7472792e70, 0x6172656e74292e63, - 0x68696c6472656e2e, 0x64656c6574652861, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, - 0x2072656d6f766564, 0x203d205b5d3b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e73742070656e, - 0x64696e67203d205b, 0x615d3b0a20202020, 0x2020202020202020, 0x202020207768696c, 0x65202870656e6469, - 0x6e672e6c656e6774, 0x6829207b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742069, - 0x64203d2070656e64, 0x696e672e706f7028, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202072, - 0x656d6f7665642e70, 0x757368286964293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020666f72, - 0x2028636f6e737420, 0x6368696c64206f66, 0x2067657428696429, 0x2e6368696c647265, 0x6e292070656e6469, - 0x6e672e7075736828, 0x6368696c64293b0a, 0x2020202020202020, 0x2020202020202020, 0x7d0a202020202020, - 0x2020202020202020, 0x2020666f72676574, 0x2861293b0a202020, 0x2020202020202020, 0x2020202020737465, - 0x70732e7075736828, 0x2829203d3e207b0a, 0x2020202020202020, 0x2020202020202020, 0x202020206e6f6465, - 0x732e676574286129, 0x2e6e6f64652e7265, 0x6d6f766528293b0a, 0x2020202020202020, 0x2020202020202020, - 0x20202020666f7220, 0x28636f6e73742069, 0x64206f662072656d, 0x6f76656429206e6f, 0x6465732e64656c65, - 0x7465286964293b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020636c6561, 0x6e4c697374656e65, - 0x7273286e6f646573, 0x293b0a2020202020, 0x2020202020202020, 0x2020207d293b0a20, 0x2020202020202020, - 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, - 0x636173652031313a, 0x2063617365203132, 0x3a207b0a20202020, 0x2020202020202020, 0x20202020656c656d, - 0x656e742861293b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206e61, 0x6d65203d206e616d, - 0x6541742862293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821657665, 0x6e74732e68617328, - 0x6e616d6529207c7c, 0x2063203e20332920, 0x7468726f77206e65, 0x77204572726f7228, 0x27696e76616c6964, - 0x20444f4d20657665, 0x6e74206f7220666c, 0x61677327293b0a20, 0x2020202020202020, 0x2020202020202073, - 0x746570732e707573, 0x68282829203d3e20, 0x6f70203d3d3d2031, 0x31203f206c697374, 0x656e28612c20622c, - 0x206e616d652c2063, 0x29203a20756e6c69, 0x7374656e28612c20, 0x6229293b0a202020, 0x2020202020202020, - 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x7d0a202020202020, 0x2020202020206361, - 0x73652031333a207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e7374206e, 0x616d65203d206e61, - 0x6d6541742862292c, 0x206e6f6465203d20, 0x69736c616e64732e, 0x676574286e616d65, 0x293f2e656c656d65, - 0x6e743b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x216e6f6465292074, 0x68726f77206e6577, - 0x204572726f722860, 0x756e6b6e6f776e20, 0x444f4d2069736c61, 0x6e6420247b6e616d, 0x657d60293b0a2020, - 0x2020202020202020, 0x2020202020206966, 0x202841727261792e, 0x66726f6d28736861, 0x646f772e76616c75, - 0x65732829292e736f, 0x6d6528656e747279, 0x203d3e20656e7472, 0x792e6e6f6465203d, 0x3d3d206e6f646529, - 0x29207468726f7720, 0x6e6577204572726f, 0x72282769736c616e, 0x6420616c72656164, 0x79206d6f756e7465, - 0x6427293b0a202020, 0x2020202020202020, 0x2020202020667265, 0x736828612c207b6e, 0x6f64652c20746578, - 0x743a2066616c7365, 0x2c2069736c616e64, 0x3a20747275657d29, 0x3b0a202020202020, 0x2020202020202020, - 0x202073746570732e, 0x7075736828282920, 0x3d3e206e6f646573, 0x2e73657428612c20, 0x7b6e6f64657d2929, - 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x20202020207d0a20, - 0x2020202020202020, 0x2020207d0a202020, 0x20202020207d0a20, 0x202020202020202f, 0x2f20526573696475, - 0x616c20444f4d2065, 0x7863657074696f6e, 0x732028666f722065, 0x78616d706c652061, 0x2070616765277320, - 0x637573746f6d2065, 0x6c656d656e742920, 0x70726f7061676174, 0x6520746f20746865, 0x2062726964676520, - 0x617320612072656a, 0x656374696f6e2e0a, 0x2020202020202020, 0x2f2f20496e207468, 0x6174206361736520, - 0x6469736361726420, 0x68616e646c65733a, 0x2074686520616374, 0x75616c20444f4d20, 0x6d61792068617665, - 0x206265656e207061, 0x72746c7920636861, 0x6e67656420616e64, 0x206d757374206265, 0x206c656e74206167, - 0x61696e2e0a202020, 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202066, 0x6f722028636f6e73, - 0x742073746570206f, 0x6620737465707329, 0x207374657028293b, 0x0a20202020202020, 0x207d206361746368, - 0x20286572726f7229, 0x207b0a2020202020, 0x2020202020202063, 0x6c65616e4c697374, 0x656e657273286e65, - 0x77204d6170282929, 0x3b0a202020202020, 0x2020202020206e6f, 0x6465732e636c6561, 0x7228293b0a202020, - 0x2020202020202020, 0x2069736c616e6473, 0x2e636c6561722829, 0x3b0a202020202020, 0x2020202020207468, - 0x726f77206572726f, 0x723b0a2020202020, 0x2020207d0a202020, 0x2020202020666f72, 0x2028636f6e737420, - 0x5b69642c20656e74, 0x72795d206f662073, 0x6861646f77292065, 0x6e7472792e6e6f64, 0x65203d206e6f6465, - 0x732e676574286964, 0x292e6e6f64653b0a, 0x2020202020202020, 0x6e6f646573203d20, 0x736861646f773b0a, - 0x202020207d0a0a20, 0x202020636f6e7374, 0x20617069203d207b, 0x0a20202020202020, 0x206170706c792c0a, - 0x2020202020202020, 0x69736c616e64286e, 0x616d652c20656c65, 0x6d656e7429207b0a, 0x2020202020202020, - 0x2020202069662028, 0x2128656c656d656e, 0x7420696e7374616e, 0x63656f662048544d, 0x4c456c656d656e74, - 0x29207c7c20217461, 0x67732e6861732865, 0x6c656d656e742e6c, 0x6f63616c4e616d65, 0x29207c7c20666f72, - 0x62696464656e5461, 0x67732e6861732865, 0x6c656d656e742e6c, 0x6f63616c4e616d65, 0x29290a2020202020, - 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, 0x654572726f722827, 0x616e2069736c616e, - 0x64206d7573742062, 0x6520616e20616c6c, 0x6f7765642048544d, 0x4c20656c656d656e, 0x7427293b0a202020, - 0x2020202020202020, 0x20636f6e73742070, 0x726576696f757320, 0x3d2069736c616e64, 0x732e676574286e61, - 0x6d65293b0a202020, 0x2020202020202020, 0x2069662028707265, 0x76696f7573202626, 0x2070726576696f75, - 0x732e656c656d656e, 0x7420213d3d20656c, 0x656d656e74292074, 0x68726f77206e6577, 0x204572726f722827, - 0x69736c616e64206e, 0x616d6520616c7265, 0x616479206c656e74, 0x27293b0a20202020, 0x2020202020202020, - 0x6966202821707265, 0x76696f757329207b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028656c65, - 0x6d656e742e636869, 0x6c644e6f6465732e, 0x6c656e677468207c, 0x7c2041727261792e, 0x66726f6d2869736c, - 0x616e64732e76616c, 0x7565732829292e73, 0x6f6d6528656e7472, 0x79203d3e20656e74, 0x72792e656c656d65, - 0x6e74203d3d3d2065, 0x6c656d656e74207c, 0x7c20656e7472792e, 0x656c656d656e742e, 0x636f6e7461696e73, - 0x28656c656d656e74, 0x29207c7c20656c65, 0x6d656e742e636f6e, 0x7461696e7328656e, 0x7472792e656c656d, - 0x656e742929290a20, 0x2020202020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720457272, - 0x6f72282769736c61, 0x6e6473206d757374, 0x20626520656d7074, 0x7920616e64206469, 0x736a6f696e742729, - 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420746f6b656e20, - 0x3d207b656c656d65, 0x6e747d3b0a202020, 0x2020202020202020, 0x2069736c616e6473, 0x2e736574286e616d, - 0x652c20746f6b656e, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e202829, 0x203d3e207b0a2020, - 0x2020202020202020, 0x2020202020206966, 0x202869736c616e64, 0x732e676574286e61, 0x6d652920213d3d20, - 0x746f6b656e292072, 0x657475726e3b0a20, 0x2020202020202020, 0x2020202020202069, 0x736c616e64732e64, - 0x656c657465286e61, 0x6d65293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x73742072656d6f76, - 0x6564203d206e6577, 0x2053657428293b0a, 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, - 0x7374205b69642c20, 0x656e7472795d206f, 0x66206e6f64657329, 0x207b0a2020202020, 0x2020202020202020, - 0x2020202020202069, 0x662028656e747279, 0x2e6e6f6465203d3d, 0x3d20656c656d656e, 0x74207c7c20656c65, - 0x6d656e742e636f6e, 0x7461696e7328656e, 0x7472792e6e6f6465, 0x29292072656d6f76, 0x65642e6164642869, - 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x656c7365207b0a20, 0x2020202020202020, - 0x2020202020202020, 0x2020202020202066, 0x6f7220286c657420, 0x706172656e74203d, 0x20656e7472792e70, - 0x6172656e743b2070, 0x6172656e7420213d, 0x3d206e756c6c3b20, 0x706172656e74203d, 0x206e6f6465732e67, - 0x657428706172656e, 0x74293f2e70617265, 0x6e74203f3f206e75, 0x6c6c290a20202020, 0x2020202020202020, - 0x2020202020202020, 0x2020202020202020, 0x696620286e6f6465, 0x732e676574287061, 0x72656e74293f2e6e, - 0x6f6465203d3d3d20, 0x656c656d656e7429, 0x207b2072656d6f76, 0x65642e6164642869, 0x64293b2062726561, - 0x6b3b207d0a202020, 0x2020202020202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202020, - 0x2020207d0a202020, 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6964206f66207265, - 0x6d6f76656429206e, 0x6f6465732e64656c, 0x657465286964293b, 0x0a20202020202020, 0x2020202020202020, - 0x20636c65616e4c69, 0x7374656e65727328, 0x6e6f646573293b0a, 0x2020202020202020, 0x202020207d3b0a20, - 0x202020202020207d, 0x2c0a202020207d3b, 0x0a20202020627269, 0x6467652e646f6d42, 0x6174636848616e64, - 0x6c6572203d206170, 0x706c793b0a202020, 0x2072657475726e20, 0x6170693b0a7d0a00 + 0x636f6e737420656e, 0x636f646572203d20, 0x6e65772054657874, 0x456e636f64657228, 0x293b0a636f6e7374, + 0x2064656661756c74, 0x54616773203d2027, 0x646976207370616e, 0x207020756c206f6c, 0x206c692062757474, + 0x6f6e20696e707574, 0x206c6162656c2073, 0x656c656374206f70, 0x74696f6e20666f72, 0x6d206669656c6473, + 0x6574206c6567656e, 0x6420683120683220, 0x6833206834207461, 0x626c652074686561, 0x642074626f647920, + 0x7472207464207468, 0x207374726f6e6720, 0x656d20736d616c6c, 0x206f757470757420, 0x70726f6772657373, + 0x206d657465722074, 0x6578746172656120, 0x73656374696f6e20, 0x6865616465722066, 0x6f6f746572206e61, + 0x76206120696d6720, 0x6272206872207072, 0x6520636f6465273b, 0x0a636f6e73742064, 0x656661756c744174, + 0x7472696275746573, 0x203d2027636c6173, 0x7320696420737479, 0x6c65207469746c65, 0x2074797065206e61, + 0x6d652076616c7565, 0x20706c616365686f, 0x6c646572206d696e, 0x206d617820737465, 0x7020636865636b65, + 0x642064697361626c, 0x656420726561646f, 0x6e6c7920666f7220, 0x6872656620737263, 0x20616c7420726f6c, + 0x6520746162696e64, 0x657820636f6c7370, 0x616e20726f777370, 0x616e207769647468, 0x2068656967687420, + 0x73656c6563746564, 0x206c616e67206469, 0x722068696464656e, 0x273b0a636f6e7374, 0x2064656661756c74, + 0x4576656e7473203d, 0x2027636c69636b20, 0x64626c636c69636b, 0x20696e7075742063, 0x68616e6765207375, + 0x626d6974206b6579, 0x646f776e206b6579, 0x757020666f637573, 0x20626c757220706f, 0x696e746572646f77, + 0x6e20706f696e7465, 0x727570273b0a636f, 0x6e737420666f7262, 0x696464656e546167, 0x73203d206e657720, + 0x5365742827736372, 0x6970742069667261, 0x6d65206672616d65, 0x206672616d657365, 0x74206f626a656374, + 0x20656d626564206c, 0x696e6b206d657461, 0x2062617365207374, 0x796c652073766720, 0x6d617468272e7370, + 0x6c69742827202729, 0x293b0a636f6e7374, 0x20666f7262696464, 0x656e417474726962, 0x75746573203d206e, + 0x6577205365742827, 0x737263646f632069, 0x7320786d6c6e7320, 0x7372637365742069, 0x6d61676573726373, + 0x65742070696e6727, 0x2e73706c69742827, 0x202729293b0a636f, 0x6e73742075726c41, 0x7474726962757465, + 0x73203d206e657720, 0x5365742827687265, 0x6620737263206163, 0x74696f6e20666f72, 0x6d616374696f6e20, + 0x706f737465722063, 0x697465206261636b, 0x67726f756e642064, 0x61746120636f6465, 0x62617365206d616e, + 0x6966657374206c6f, 0x6e67646573632075, 0x73656d6170207072, 0x6f66696c65272e73, 0x706c697428272027, + 0x29293b0a636f6e73, 0x742070726f706572, 0x74794e616d657320, 0x3d206e6577205365, 0x74285b2776616c75, + 0x65272c2027636865, 0x636b6564272c2027, 0x64697361626c6564, 0x272c2027696e6465, 0x7465726d696e6174, + 0x65272c202773656c, 0x6563746564496e64, 0x6578275d293b0a63, 0x6f6e7374206c6973, 0x74203d2074657874, + 0x203d3e206e657720, 0x5365742874657874, 0x2e73706c69742827, 0x202729293b0a636f, 0x6e73742076616c69, + 0x644e616d65203d20, 0x6e616d65203d3e20, 0x2f5e5b612d7a5d5b, 0x612d7a302d392d5d, 0x2a242f2e74657374, + 0x286e616d65293b0a, 0x0a66756e6374696f, 0x6e20726561646572, 0x2862797465732920, 0x7b0a202020206c65, + 0x74206f6666736574, 0x203d20363b0a2020, 0x202072657475726e, 0x207b0a2020202020, 0x2020206765742064, + 0x6f6e652829207b20, 0x72657475726e206f, 0x6666736574203d3d, 0x3d2062797465732e, 0x6c656e6774683b20, + 0x7d2c0a2020202020, 0x2020206279746528, 0x29207b0a20202020, 0x2020202020202020, 0x696620286f666673, + 0x6574203e3d206279, 0x7465732e6c656e67, 0x746829207468726f, 0x77206e6577205261, 0x6e67654572726f72, + 0x28277472756e6361, 0x74656420444f4d20, 0x626174636827293b, 0x0a20202020202020, 0x2020202020726574, + 0x75726e2062797465, 0x735b6f6666736574, 0x2b2b5d3b0a202020, 0x20202020207d2c0a, 0x2020202020202020, + 0x75696e742829207b, 0x0a20202020202020, 0x20202020206c6574, 0x2076616c7565203d, 0x20303b0a20202020, + 0x2020202020202020, 0x666f7220286c6574, 0x2069203d20303b20, 0x69203c20353b202b, 0x2b6929207b0a2020, + 0x2020202020202020, 0x202020202020636f, 0x6e7374206e657874, 0x203d20746869732e, 0x6279746528293b0a, + 0x2020202020202020, 0x2020202020202020, 0x696620282869203d, 0x3d3d203420262620, 0x6e657874203e2031, + 0x3529207c7c202869, 0x203e203020262620, 0x6e657874203d3d3d, 0x203029290a202020, 0x2020202020202020, + 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f7228276e, 0x6f6e63616e6f6e69, + 0x63616c206f72206f, 0x766572666c6f7769, 0x6e6720444f4d2076, 0x6172696e7427293b, 0x0a20202020202020, + 0x2020202020202020, 0x2076616c7565202b, 0x3d20286e65787420, 0x262031323729202a, 0x2032202a2a202837, + 0x202a2069293b0a20, 0x2020202020202020, 0x2020202020202069, 0x66202821286e6578, 0x7420262031323829, + 0x292072657475726e, 0x2076616c75653b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, + 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722827, 0x6f766572666c6f77, 0x696e6720444f4d20, + 0x766172696e742729, 0x3b0a202020202020, 0x20207d2c0a202020, 0x2020202020737472, 0x696e672829207b0a, + 0x2020202020202020, 0x20202020636f6e73, 0x742073697a65203d, 0x20746869732e7569, 0x6e7428293b0a2020, + 0x2020202020202020, 0x2020696620287369, 0x7a65203e20627974, 0x65732e6c656e6774, 0x68202d206f666673, + 0x657429207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x28277472756e6361, 0x74656420444f4d20, + 0x737472696e672729, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742076616c75, 0x65203d206465636f, + 0x6465722e6465636f, 0x6465286279746573, 0x2e73756261727261, 0x79286f6666736574, 0x2c206f6666736574, + 0x202b2073697a6529, 0x293b0a2020202020, 0x202020202020206f, 0x6666736574202b3d, 0x2073697a653b0a20, + 0x2020202020202020, 0x2020207265747572, 0x6e2076616c75653b, 0x0a20202020202020, 0x207d2c0a20202020, + 0x7d3b0a7d0a0a2f2a, 0x2a20496e7374616c, 0x6c206f6e63652070, 0x6572206272696467, 0x652f646f63756d65, + 0x6e742e2054686520, 0x7061676520657870, 0x6c696369746c7920, 0x6c656e647320656d, 0x70747920656c656d, + 0x656e747320776974, 0x682069736c616e64, 0x286e616d652c2065, 0x6c656d656e74292e, 0x0a202a2045787465, + 0x6e73696f6e206c69, 0x7374732061726520, 0x636f706965643b20, 0x6578656375746162, 0x6c6520746167732f, + 0x6174747269627574, 0x657320616e642075, 0x6e73616665205552, 0x4c20736368656d65, 0x732072656d61696e, + 0x20666f7262696464, 0x656e2e0a202a2061, 0x70706c7920746872, 0x6f7773206f6e2072, 0x656a656374696f6e, + 0x3b20746865206272, 0x6964676520726570, 0x6f72747320697420, 0x746f20432b2b2061, 0x73207766446f6d2e, + 0x72656a6563746564, 0x2862617463684964, 0x2c20726561736f6e, 0x292e0a202a2f0a65, 0x78706f7274206675, + 0x6e6374696f6e2069, 0x6e7374616c6c446f, 0x6d496e7465727072, 0x6574657228627269, 0x646765203d20676c, + 0x6f62616c54686973, 0x2e77656246726f6e, 0x742c20657874656e, 0x73696f6e73203d20, 0x7b7d29207b0a2020, + 0x2020696620286272, 0x696467652e646f6d, 0x426174636848616e, 0x646c657229207468, 0x726f77206e657720, + 0x4572726f72282744, 0x4f4d20696e746572, 0x7072657465722061, 0x6c72656164792069, 0x6e7374616c6c6564, + 0x27293b0a20202020, 0x636f6e7374207461, 0x6773203d206c6973, 0x742864656661756c, 0x7454616773292c20, + 0x6174747269627574, 0x6573203d206c6973, 0x742864656661756c, 0x7441747472696275, 0x746573292c206576, + 0x656e7473203d206c, 0x6973742864656661, 0x756c744576656e74, 0x73293b0a20202020, 0x666f722028636f6e, + 0x7374205b6b65792c, 0x207461726765745d, 0x206f66205b5b2774, 0x616773272c207461, 0x67735d2c205b2761, + 0x7474726962757465, 0x73272c2061747472, 0x6962757465735d2c, 0x205b276576656e74, 0x73272c206576656e, + 0x74735d5d29207b0a, 0x2020202020202020, 0x666f722028636f6e, 0x7374206e616d6520, 0x6f6620657874656e, + 0x73696f6e735b6b65, 0x795d207c7c205b5d, 0x29207b0a20202020, 0x2020202020202020, 0x696620282176616c, + 0x69644e616d65286e, 0x616d6529207c7c20, 0x6e616d652e737461, 0x7274735769746828, 0x276f6e2729207c7c, + 0x0a20202020202020, 0x2020202020202020, 0x20286b6579203d3d, 0x3d20277461677327, 0x20262620666f7262, + 0x696464656e546167, 0x732e686173286e61, 0x6d652929207c7c0a, 0x2020202020202020, 0x2020202020202020, + 0x286b6579203d3d3d, 0x2027617474726962, 0x7574657327202626, 0x20666f7262696464, 0x656e417474726962, + 0x757465732e686173, 0x286e616d65292929, 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, + 0x6577204572726f72, 0x2860666f72626964, 0x64656e20444f4d20, 0x657874656e73696f, 0x6e20247b6e616d65, + 0x7d60293b0a202020, 0x2020202020202020, 0x207461726765742e, 0x616464286e616d65, 0x293b0a2020202020, + 0x2020207d0a202020, 0x207d0a2020202063, 0x6f6e7374206e616d, 0x6573203d205b5d3b, 0x0a202020206c6574, + 0x206e6f646573203d, 0x206e6577204d6170, 0x28293b0a20202020, 0x636f6e7374206973, 0x6c616e6473203d20, + 0x6e6577204d617028, 0x292c206c69737465, 0x6e657273203d206e, 0x6577204d61702829, 0x3b0a20202020636f, + 0x6e737420616c6c6f, 0x7765644174747269, 0x62757465203d206e, 0x616d65203d3e2021, 0x6e616d652e737461, + 0x7274735769746828, 0x276f6e2729202626, 0x2021666f72626964, 0x64656e4174747269, 0x62757465732e6861, + 0x73286e616d652920, 0x26260a2020202020, 0x2020202861747472, 0x6962757465732e68, 0x6173286e616d6529, + 0x207c7c202f5e2861, 0x7269617c64617461, 0x292d5b612d7a302d, 0x392d5d2b242f2e74, 0x657374286e616d65, + 0x29293b0a20202020, 0x636f6e7374207361, 0x666555726c203d20, 0x76616c7565203d3e, 0x205b27687474703a, + 0x272c202768747470, 0x733a272c20276d61, 0x696c746f3a275d2e, 0x696e636c75646573, 0x286e65772055524c, + 0x2876616c75652c20, 0x646f63756d656e74, 0x2e62617365555249, 0x292e70726f746f63, 0x6f6c293b0a0a2020, + 0x202066756e637469, 0x6f6e20756e6c6973, 0x74656e2869642c20, 0x696e64657829207b, 0x0a20202020202020, + 0x20636f6e7374206b, 0x6579203d2060247b, 0x69647d3a247b696e, 0x6465787d602c2065, 0x6e747279203d206c, + 0x697374656e657273, 0x2e676574286b6579, 0x293b0a2020202020, 0x2020206966202865, 0x6e74727929207b0a, + 0x2020202020202020, 0x20202020656e7472, 0x792e6e6f64652e72, 0x656d6f7665457665, 0x6e744c697374656e, + 0x657228656e747279, 0x2e6e616d652c2065, 0x6e7472792e6c6973, 0x74656e6572293b0a, 0x2020202020202020, + 0x202020206c697374, 0x656e6572732e6465, 0x6c657465286b6579, 0x293b0a2020202020, 0x2020207d0a202020, + 0x207d0a2020202066, 0x756e6374696f6e20, 0x636c65616e4c6973, 0x74656e657273286c, 0x69766529207b0a20, + 0x2020202020202066, 0x6f722028636f6e73, 0x74205b6b65792c20, 0x656e7472795d206f, 0x66206c697374656e, + 0x657273290a202020, 0x2020202020202020, 0x2069662028216c69, 0x76652e6861732865, 0x6e7472792e696429, + 0x2920756e6c697374, 0x656e28656e747279, 0x2e69642c204e756d, 0x626572286b65792e, 0x73706c697428273a, + 0x27295b315d29293b, 0x0a202020207d0a20, 0x20202066756e6374, 0x696f6e206c697374, 0x656e2869642c2069, + 0x6e6465782c206e61, 0x6d652c20666c6167, 0x7329207b0a202020, 0x2020202020756e6c, 0x697374656e286964, + 0x2c20696e64657829, 0x3b0a202020202020, 0x2020636f6e737420, 0x6e6f6465203d206e, 0x6f6465732e676574, + 0x286964292e6e6f64, 0x653b0a2020202020, 0x202020636f6e7374, 0x206c697374656e65, 0x72203d206576656e, + 0x74203d3e207b0a20, 0x2020202020202020, 0x2020206966202866, 0x6c61677320262031, 0x29206576656e742e, + 0x70726576656e7444, 0x656661756c742829, 0x3b0a202020202020, 0x2020202020206966, 0x2028666c61677320, + 0x2620322920657665, 0x6e742e73746f7050, 0x726f706167617469, 0x6f6e28293b0a2020, 0x2020202020202020, + 0x2020636f6e737420, 0x76616c7565203d20, 0x6e616d65203d3d3d, 0x2027696e70757427, 0x207c7c206e616d65, + 0x203d3d3d20276368, 0x616e6765270a2020, 0x2020202020202020, 0x2020202020203f20, 0x286e6f64652e7479, + 0x7065203d3d3d2027, 0x636865636b626f78, 0x27203f2053747269, 0x6e67286e6f64652e, 0x636865636b656429, + 0x203a20537472696e, 0x67286e6f64652e76, 0x616c756529290a20, 0x2020202020202020, 0x202020202020203a, + 0x206e616d65203d3d, 0x3d20276b6579646f, 0x776e27207c7c206e, 0x616d65203d3d3d20, 0x276b657975702720, + 0x3f206576656e742e, 0x6b6579203a202727, 0x3b0a202020202020, 0x2020202020206272, 0x696467652e637070, + 0x46756e6374696f6e, 0x28277766446f6d2e, 0x6576656e74272928, 0x69642c20696e6465, 0x782c2076616c7565, + 0x292e636174636828, 0x2829203d3e207b7d, 0x293b0a2020202020, 0x2020207d3b0a2020, 0x2020202020206e6f, + 0x64652e6164644576, 0x656e744c69737465, 0x6e6572286e616d65, 0x2c206c697374656e, 0x6572293b0a202020, + 0x20202020206c6973, 0x74656e6572732e73, 0x65742860247b6964, 0x7d3a247b696e6465, 0x787d602c207b6964, + 0x2c206e6f64652c20, 0x6e616d652c206c69, 0x7374656e65727d29, 0x3b0a202020207d0a, 0x0a2020202066756e, + 0x6374696f6e206465, 0x636f646528627974, 0x657329207b0a2020, 0x2020202020206966, 0x2028212862797465, + 0x7320696e7374616e, 0x63656f662055696e, 0x7438417272617929, 0x207c7c2062797465, 0x732e6c656e677468, + 0x203c2036207c7c20, 0x62797465732e6c65, 0x6e677468203e206d, 0x6178427974657320, 0x7c7c206279746573, + 0x5b305d20213d3d20, 0x35207c7c20627974, 0x65735b315d20213d, 0x3d2031290a202020, 0x2020202020202020, + 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d206261746368, + 0x2068656164657220, 0x6f722073697a6527, 0x293b0a2020202020, 0x202020636f6e7374, 0x20696e707574203d, + 0x2072656164657228, 0x6279746573292c20, 0x6f7065726174696f, 0x6e73203d205b5d3b, 0x0a20202020202020, + 0x202f2f2052657461, 0x696e206561636820, 0x66756c6c79206465, 0x636f646564204e41, 0x4d45206576656e20, + 0x69662061206c6174, 0x6572206f70657261, 0x74696f6e206f7220, 0x76616c6964617469, 0x6f6e2072656a6563, + 0x7473207468652062, 0x617463682e0a2020, 0x2020202020207768, 0x696c65202821696e, 0x7075742e646f6e65, + 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374206f70, 0x203d20696e707574, 0x2e6279746528293b, + 0x0a20202020202020, 0x2020202020696620, 0x286f70203c203120, 0x7c7c206f70203e20, 0x313329207468726f, + 0x77206e6577204572, 0x726f722860756e6b, 0x6e6f776e20444f4d, 0x206f706572617469, 0x6f6e20247b6f707d, + 0x60293b0a20202020, 0x2020202020202020, 0x636f6e7374206120, 0x3d20696e7075742e, 0x75696e7428293b0a, + 0x2020202020202020, 0x20202020636f6e73, 0x742062203d205b32, 0x2c20342c20352c20, 0x362c20382c20392c, + 0x2031312c2031322c, 0x2031335d2e696e63, 0x6c75646573286f70, 0x29203f20696e7075, 0x742e75696e742829, + 0x203a20303b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x63203d206f70203d, 0x3d3d2039203f2069, + 0x6e7075742e75696e, 0x742829203a206f70, 0x203d3d3d20313120, 0x3f20696e7075742e, 0x627974652829203a, + 0x20303b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c7565203d205b31, 0x2c20332c20342c20, + 0x362c20375d2e696e, 0x636c75646573286f, 0x7029203f20696e70, 0x75742e737472696e, 0x672829203a202727, + 0x3b0a202020202020, 0x2020202020206966, 0x20286f70203d3d3d, 0x203129207b0a2020, 0x2020202020202020, + 0x2020202020206966, 0x20286120213d3d20, 0x6e616d65732e6c65, 0x6e677468207c7c20, 0x61203e3d206d6178, + 0x456e747269657320, 0x7c7c20656e636f64, 0x65722e656e636f64, 0x652876616c756529, 0x2e6c656e67746820, + 0x3e2031303234290a, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, + 0x726f722827696e76, 0x616c696420444f4d, 0x206e616d65206465, 0x66696e6974696f6e, 0x27293b0a20202020, + 0x2020202020202020, 0x202020206e616d65, 0x732e707573682876, 0x616c7565293b0a20, 0x2020202020202020, + 0x2020207d0a202020, 0x2020202020202020, 0x206f706572617469, 0x6f6e732e70757368, 0x287b6f702c20612c, + 0x20622c20632c2076, 0x616c75652c206e61, 0x6d654c696d69743a, 0x206e616d65732e6c, 0x656e6774687d293b, + 0x0a20202020202020, 0x207d0a2020202020, 0x2020207265747572, 0x6e206f7065726174, 0x696f6e733b0a2020, + 0x20207d0a0a202020, 0x2066756e6374696f, 0x6e206170706c7928, 0x627974657329207b, 0x0a20202020202020, + 0x20636f6e7374206f, 0x7065726174696f6e, 0x73203d206465636f, 0x6465286279746573, 0x293b0a2020202020, + 0x2020202f2f204120, 0x736861646f772074, 0x7265652074726163, 0x6b73207468652073, 0x746174652070726f, + 0x6475636564206279, 0x2065766572792070, 0x7265636564696e67, 0x206f706572617469, 0x6f6e2c20696e636c, + 0x7564696e67207265, 0x6d6f76616c732061, 0x6e64206d6f766573, 0x2e0a202020202020, 0x2020636f6e737420, + 0x736861646f77203d, 0x206e6577204d6170, 0x2841727261792e66, 0x726f6d286e6f6465, 0x732c20285b69642c, + 0x20656e7472795d29, 0x203d3e205b69642c, 0x207b2e2e2e656e74, 0x72792c206368696c, 0x6472656e3a206e65, + 0x772053657428656e, 0x7472792e6368696c, 0x6472656e297d5d29, 0x293b0a2020202020, 0x202020636f6e7374, + 0x207374657073203d, 0x205b5d3b0a202020, 0x2020202020636f6e, 0x737420676574203d, 0x206964203d3e207b, + 0x0a20202020202020, 0x2020202020636f6e, 0x737420656e747279, 0x203d20736861646f, 0x772e676574286964, + 0x293b0a2020202020, 0x2020202020202069, 0x66202821656e7472, 0x7929207468726f77, 0x206e657720457272, + 0x6f722860756e6b6e, 0x6f776e20444f4d20, 0x6e6f646520247b69, 0x647d60293b0a2020, 0x2020202020202020, + 0x202072657475726e, 0x20656e7472793b0a, 0x2020202020202020, 0x7d3b0a2020202020, 0x202020636f6e7374, + 0x207772697461626c, 0x65203d206964203d, 0x3e207b0a20202020, 0x2020202020202020, 0x636f6e737420656e, + 0x747279203d206765, 0x74286964293b0a20, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e69736c, + 0x616e642920746872, 0x6f77206e65772045, 0x72726f7228277468, 0x652070616765206f, 0x776e732074686520, + 0x69736c616e642065, 0x6c656d656e742729, 0x3b0a202020202020, 0x2020202020207265, 0x7475726e20656e74, + 0x72793b0a20202020, 0x202020207d3b0a20, 0x2020202020202063, 0x6f6e737420656c65, 0x6d656e74203d2069, + 0x64203d3e207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20656e747279203d, 0x207772697461626c, + 0x65286964293b0a20, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e746578, 0x7429207468726f77, + 0x206e657720457272, 0x6f72282765787065, 0x6374656420444f4d, 0x20656c656d656e74, 0x27293b0a20202020, + 0x2020202020202020, 0x72657475726e2065, 0x6e7472793b0a2020, 0x2020202020207d3b, 0x0a20202020202020, + 0x20636f6e73742066, 0x72657368203d2028, 0x69642c20656e7472, 0x7929203d3e207b0a, 0x2020202020202020, + 0x2020202069662028, 0x216964207c7c2073, 0x6861646f772e6861, 0x7328696429207c7c, 0x20736861646f772e, + 0x73697a65203e3d20, 0x6d6178456e747269, 0x657329207468726f, 0x77206e6577204572, 0x726f722827696e76, + 0x616c6964206f7220, 0x6475706c69636174, 0x6520444f4d206e6f, 0x646527293b0a2020, 0x2020202020202020, + 0x2020736861646f77, 0x2e7365742869642c, 0x207b2e2e2e656e74, 0x72792c2070617265, 0x6e743a206e756c6c, + 0x2c206368696c6472, 0x656e3a206e657720, 0x53657428297d293b, 0x0a20202020202020, 0x207d3b0a20202020, + 0x20202020636f6e73, 0x7420666f72676574, 0x203d206964203d3e, 0x207b0a2020202020, 0x202020202020202f, + 0x2f20497465726174, 0x6976652074726176, 0x657273616c3a2068, 0x6f7374696c652064, 0x6565702074726565, + 0x73206d757374206e, 0x6f74206f76657266, 0x6c6f772074686520, 0x4a61766153637269, 0x707420737461636b, + 0x2e0a202020202020, 0x202020202020636f, 0x6e73742070656e64, 0x696e67203d205b69, 0x645d3b0a20202020, + 0x2020202020202020, 0x7768696c65202870, 0x656e64696e672e6c, 0x656e67746829207b, 0x0a20202020202020, + 0x2020202020202020, 0x20636f6e73742063, 0x757272656e74203d, 0x2070656e64696e67, 0x2e706f7028292c20, + 0x656e747279203d20, 0x6765742863757272, 0x656e74293b0a2020, 0x2020202020202020, 0x202020202020666f, + 0x722028636f6e7374, 0x206368696c64206f, 0x6620656e7472792e, 0x6368696c6472656e, 0x292070656e64696e, + 0x672e707573682863, 0x68696c64293b0a20, 0x2020202020202020, 0x2020202020202073, 0x6861646f772e6465, + 0x6c65746528637572, 0x72656e74293b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x20202020207d3b0a, + 0x2020202020202020, 0x666f722028636f6e, 0x7374207b6f702c20, 0x612c20622c20632c, 0x2076616c75652c20, + 0x6e616d654c696d69, 0x747d206f66206f70, 0x65726174696f6e73, 0x29207b0a20202020, 0x2020202020202020, + 0x636f6e7374206e61, 0x6d654174203d2069, 0x6e646578203d3e20, 0x7b0a202020202020, 0x2020202020202020, + 0x202069662028696e, 0x646578203e3d206e, 0x616d654c696d6974, 0x29207468726f7720, 0x6e6577204572726f, + 0x722860756e6b6e6f, 0x776e20444f4d206e, 0x616d6520247b696e, 0x6465787d60293b0a, 0x2020202020202020, + 0x2020202020202020, 0x72657475726e206e, 0x616d65735b696e64, 0x65785d3b0a202020, 0x2020202020202020, + 0x207d3b0a20202020, 0x2020202020202020, 0x7377697463682028, 0x6f7029207b0a2020, 0x2020202020202020, + 0x2020636173652031, 0x3a20627265616b3b, 0x0a20202020202020, 0x2020202020636173, 0x6520323a207b0a20, + 0x2020202020202020, 0x2020202020202063, 0x6f6e737420746167, 0x203d206e616d6541, 0x742862293b0a2020, + 0x2020202020202020, 0x2020202020206966, 0x202821746167732e, 0x6861732874616729, 0x207c7c20666f7262, + 0x696464656e546167, 0x732e686173287461, 0x672929207468726f, 0x77206e6577204572, 0x726f722860666f72, + 0x62696464656e2044, 0x4f4d207461672024, 0x7b7461677d60293b, 0x0a20202020202020, 0x2020202020202020, + 0x2066726573682861, 0x2c207b746578743a, 0x2066616c73657d29, 0x3b0a202020202020, 0x2020202020202020, + 0x202073746570732e, 0x7075736828282920, 0x3d3e207b206e6f64, 0x65732e7365742861, 0x2c207b6e6f64653a, + 0x20646f63756d656e, 0x742e637265617465, 0x456c656d656e7428, 0x746167297d293b20, 0x7d293b0a20202020, + 0x2020202020202020, 0x2020202062726561, 0x6b3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, + 0x2020202020636173, 0x6520333a0a202020, 0x2020202020202020, 0x2020202020667265, 0x736828612c207b74, + 0x6578743a20747275, 0x657d293b0a202020, 0x2020202020202020, 0x2020202020737465, 0x70732e7075736828, + 0x2829203d3e207b20, 0x6e6f6465732e7365, 0x7428612c207b6e6f, 0x64653a20646f6375, 0x6d656e742e637265, + 0x617465546578744e, 0x6f64652876616c75, 0x65297d293b207d29, 0x3b0a202020202020, 0x2020202020202020, + 0x2020627265616b3b, 0x0a20202020202020, 0x2020202020636173, 0x6520343a20636173, 0x6520353a207b0a20, + 0x2020202020202020, 0x2020202020202065, 0x6c656d656e742861, 0x293b0a2020202020, 0x2020202020202020, + 0x202020636f6e7374, 0x206e616d65203d20, 0x6e616d6541742862, 0x293b0a2020202020, 0x2020202020202020, + 0x2020206966202821, 0x616c6c6f77656441, 0x7474726962757465, 0x286e616d65292920, 0x7468726f77206e65, + 0x77204572726f7228, 0x60666f7262696464, 0x656e20444f4d2061, 0x7474726962757465, 0x20247b6e616d657d, + 0x60293b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x6f70203d3d3d2034, 0x2026262075726c41, + 0x7474726962757465, 0x732e686173286e61, 0x6d65292026262021, 0x7361666555726c28, 0x76616c7565292920, + 0x7468726f77206e65, 0x77204572726f7228, 0x27756e7361666520, 0x444f4d2055524c27, 0x293b0a2020202020, + 0x2020202020202020, 0x2020207374657073, 0x2e70757368282829, 0x203d3e206f70203d, 0x3d3d2034203f206e, + 0x6f6465732e676574, 0x2861292e6e6f6465, 0x2e73657441747472, 0x6962757465286e61, 0x6d652c2076616c75, + 0x6529203a206e6f64, 0x65732e6765742861, 0x292e6e6f64652e72, 0x656d6f7665417474, 0x726962757465286e, + 0x616d6529293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, + 0x20207d0a20202020, 0x2020202020202020, 0x6361736520363a20, 0x7b0a202020202020, 0x2020202020202020, + 0x2020656c656d656e, 0x742861293b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e7374206e616d65, + 0x203d206e616d6541, 0x742862293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20282170726f7065, + 0x7274794e616d6573, 0x2e686173286e616d, 0x652929207468726f, 0x77206e6577204572, 0x726f722860666f72, + 0x62696464656e2044, 0x4f4d2070726f7065, 0x72747920247b6e61, 0x6d657d60293b0a20, 0x2020202020202020, + 0x2020202020202069, 0x6620285b27636865, 0x636b6564272c2027, 0x64697361626c6564, 0x272c2027696e6465, + 0x7465726d696e6174, 0x65275d2e696e636c, 0x75646573286e616d, 0x652920262620215b, 0x2774727565272c20, + 0x2766616c7365275d, 0x2e696e636c756465, 0x732876616c756529, 0x290a202020202020, 0x2020202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d20626f6f6c65, + 0x616e27293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20286e616d65203d, 0x3d3d202773656c65, + 0x63746564496e6465, 0x7827202626202821, 0x2f5e2d3f5c642b24, 0x2f2e746573742876, 0x616c756529207c7c, + 0x20214e756d626572, 0x2e6973496e746567, 0x6572284e756d6265, 0x722876616c756529, 0x29207c7c204e756d, + 0x6265722876616c75, 0x6529203c202d3120, 0x7c7c204e756d6265, 0x722876616c756529, 0x203e203231343734, + 0x383336343729290a, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, + 0x726f722827696e76, 0x616c696420444f4d, 0x2073656c65637465, 0x64496e6465782729, 0x3b0a202020202020, + 0x2020202020202020, 0x2020636f6e737420, 0x636f6e7665727465, 0x64203d206e616d65, 0x203d3d3d20277661, + 0x6c756527203f2076, 0x616c7565203a206e, 0x616d65203d3d3d20, 0x2773656c65637465, 0x64496e6465782720, + 0x3f204e756d626572, 0x2876616c75652920, 0x3a2076616c756520, 0x3d3d3d2027747275, 0x65273b0a20202020, + 0x2020202020202020, 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, 0x6f6465732e676574, + 0x2861292e6e6f6465, 0x5b6e616d655d203d, 0x20636f6e76657274, 0x65643b207d293b0a, 0x2020202020202020, + 0x2020202020202020, 0x627265616b3b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, + 0x206361736520373a, 0x0a20202020202020, 0x2020202020202020, 0x2069662028217772, 0x697461626c652861, + 0x292e746578742920, 0x7468726f77206e65, 0x77204572726f7228, 0x275345545f544558, 0x5420726571756972, + 0x6573206120746578, 0x74206e6f64652729, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, + 0x7075736828282920, 0x3d3e207b206e6f64, 0x65732e6765742861, 0x292e6e6f64652e64, 0x617461203d207661, + 0x6c75653b207d293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, + 0x2020202063617365, 0x20383a2063617365, 0x20393a207b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e73742070617265, 0x6e74203d20676574, 0x2861292c20636869, 0x6c64203d20777269, 0x7461626c65286229, + 0x3b0a202020202020, 0x2020202020202020, 0x2020696620287061, 0x72656e742e746578, 0x7429207468726f77, + 0x206e657720457272, 0x6f72282761207465, 0x7874206e6f646520, 0x63616e6e6f74206f, 0x776e206368696c64, + 0x72656e27293b0a20, 0x2020202020202020, 0x2020202020202069, 0x6620286f70203d3d, 0x3d20392026262067, + 0x65742863292e7061, 0x72656e7420213d3d, 0x206129207468726f, 0x77206e6577204572, 0x726f722827696e73, + 0x6572744265666f72, 0x6520726566657265, 0x6e6365206973206e, 0x6f74206120636869, 0x6c6427293b0a2020, + 0x2020202020202020, 0x202020202020666f, 0x7220286c65742061, 0x6e636573746f7220, 0x3d20613b20616e63, + 0x6573746f7220213d, 0x3d206e756c6c3b20, 0x616e636573746f72, 0x203d206765742861, 0x6e636573746f7229, + 0x2e706172656e7429, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, 0x28616e636573746f, + 0x72203d3d3d206229, 0x207468726f77206e, 0x6577204572726f72, 0x2827444f4d206379, 0x636c6527293b0a20, + 0x2020202020202020, 0x2020202020202069, 0x6620286368696c64, 0x2e706172656e7420, 0x213d3d206e756c6c, + 0x2920676574286368, 0x696c642e70617265, 0x6e74292e6368696c, 0x6472656e2e64656c, 0x6574652862293b0a, + 0x2020202020202020, 0x2020202020202020, 0x6368696c642e7061, 0x72656e74203d2061, 0x3b0a202020202020, + 0x2020202020202020, 0x2020706172656e74, 0x2e6368696c647265, 0x6e2e616464286229, 0x3b0a202020202020, + 0x2020202020202020, 0x202073746570732e, 0x7075736828282920, 0x3d3e206f70203d3d, 0x3d2038203f206e6f, + 0x6465732e67657428, 0x61292e6e6f64652e, 0x617070656e644368, 0x696c64286e6f6465, 0x732e676574286229, + 0x2e6e6f646529203a, 0x0a20202020202020, 0x2020202020202020, 0x20202020206e6f64, 0x65732e6765742861, + 0x292e6e6f64652e69, 0x6e73657274426566, 0x6f7265286e6f6465, 0x732e676574286229, 0x2e6e6f64652c206e, + 0x6f6465732e676574, 0x2863292e6e6f6465, 0x29293b0a20202020, 0x2020202020202020, 0x2020202062726561, + 0x6b3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020636173, 0x652031303a207b0a, + 0x2020202020202020, 0x2020202020202020, 0x636f6e737420656e, 0x747279203d207772, 0x697461626c652861, + 0x293b0a2020202020, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e706172, 0x656e7420213d3d20, + 0x6e756c6c29206765, 0x7428656e7472792e, 0x706172656e74292e, 0x6368696c6472656e, 0x2e64656c65746528, + 0x61293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x742072656d6f7665, 0x64203d205b5d3b0a, + 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207065, 0x6e64696e67203d20, 0x5b615d3b0a202020, + 0x2020202020202020, 0x2020202020776869, 0x6c65202870656e64, 0x696e672e6c656e67, 0x746829207b0a2020, + 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x6964203d2070656e, 0x64696e672e706f70, + 0x28293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x72656d6f7665642e, 0x7075736828696429, + 0x3b0a202020202020, 0x2020202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x206368696c64206f, + 0x6620676574286964, 0x292e6368696c6472, 0x656e292070656e64, 0x696e672e70757368, 0x286368696c64293b, + 0x0a20202020202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202020, 0x202020666f726765, + 0x742861293b0a2020, 0x2020202020202020, 0x2020202020207374, 0x6570732e70757368, 0x282829203d3e207b, + 0x0a20202020202020, 0x2020202020202020, 0x20202020206e6f64, 0x65732e6765742861, 0x292e6e6f64652e72, + 0x656d6f766528293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, + 0x6964206f66207265, 0x6d6f76656429206e, 0x6f6465732e64656c, 0x657465286964293b, 0x0a20202020202020, + 0x2020202020202020, 0x2020202020636c65, 0x616e4c697374656e, 0x657273286e6f6465, 0x73293b0a20202020, + 0x2020202020202020, 0x202020207d293b0a, 0x2020202020202020, 0x2020202020202020, 0x627265616b3b0a20, + 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2063617365203131, 0x3a20636173652031, + 0x323a207b0a202020, 0x2020202020202020, 0x2020202020656c65, 0x6d656e742861293b, 0x0a20202020202020, + 0x2020202020202020, 0x20636f6e7374206e, 0x616d65203d206e61, 0x6d6541742862293b, 0x0a20202020202020, + 0x2020202020202020, 0x2069662028216576, 0x656e74732e686173, 0x286e616d6529207c, 0x7c2063203e203329, + 0x207468726f77206e, 0x6577204572726f72, 0x2827696e76616c69, 0x6420444f4d206576, 0x656e74206f722066, + 0x6c61677327293b0a, 0x2020202020202020, 0x2020202020202020, 0x73746570732e7075, 0x7368282829203d3e, + 0x206f70203d3d3d20, 0x3131203f206c6973, 0x74656e28612c2062, 0x2c206e616d652c20, 0x6329203a20756e6c, + 0x697374656e28612c, 0x206229293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, + 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x6173652031333a20, 0x7b0a202020202020, + 0x2020202020202020, 0x2020636f6e737420, 0x6e616d65203d206e, 0x616d654174286229, 0x2c206e6f6465203d, + 0x2069736c616e6473, 0x2e676574286e616d, 0x65293f2e656c656d, 0x656e743b0a202020, 0x2020202020202020, + 0x2020202020696620, 0x28216e6f64652920, 0x7468726f77206e65, 0x77204572726f7228, 0x60756e6b6e6f776e, + 0x20444f4d2069736c, 0x616e6420247b6e61, 0x6d657d60293b0a20, 0x2020202020202020, 0x2020202020202069, + 0x6620284172726179, 0x2e66726f6d287368, 0x61646f772e76616c, 0x7565732829292e73, 0x6f6d6528656e7472, + 0x79203d3e20656e74, 0x72792e6e6f646520, 0x3d3d3d206e6f6465, 0x2929207468726f77, 0x206e657720457272, + 0x6f72282769736c61, 0x6e6420616c726561, 0x6479206d6f756e74, 0x656427293b0a2020, 0x2020202020202020, + 0x2020202020206672, 0x65736828612c207b, 0x6e6f64652c207465, 0x78743a2066616c73, 0x652c2069736c616e, + 0x643a20747275657d, 0x293b0a2020202020, 0x2020202020202020, 0x2020207374657073, 0x2e70757368282829, + 0x203d3e206e6f6465, 0x732e73657428612c, 0x207b6e6f64657d29, 0x293b0a2020202020, 0x2020202020202020, + 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x202020207d0a2020, + 0x2020202020207d0a, 0x2020202020202020, 0x2f2f205265736964, 0x75616c20444f4d20, 0x657863657074696f, + 0x6e732028666f7220, 0x6578616d706c6520, 0x6120706167652773, 0x20637573746f6d20, 0x656c656d656e7429, + 0x2070726f70616761, 0x746520746f207468, 0x6520627269646765, 0x2061732061207265, 0x6a656374696f6e2e, + 0x0a20202020202020, 0x202f2f20496e2074, 0x6861742063617365, 0x2064697363617264, 0x2068616e646c6573, + 0x3a20746865206163, 0x7475616c20444f4d, 0x206d617920686176, 0x65206265656e2070, 0x6172746c79206368, + 0x616e67656420616e, 0x64206d7573742062, 0x65206c656e742061, 0x6761696e2e0a2020, 0x2020202020207472, + 0x79207b0a20202020, 0x2020202020202020, 0x666f722028636f6e, 0x7374207374657020, 0x6f66207374657073, + 0x2920737465702829, 0x3b0a202020202020, 0x20207d2063617463, 0x6820286572726f72, 0x29207b0a20202020, + 0x2020202020202020, 0x636c65616e4c6973, 0x74656e657273286e, 0x6577204d61702829, 0x293b0a2020202020, + 0x202020202020206e, 0x6f6465732e636c65, 0x617228293b0a2020, 0x2020202020202020, 0x202069736c616e64, + 0x732e636c65617228, 0x293b0a2020202020, 0x2020202020202074, 0x68726f7720657272, 0x6f723b0a20202020, + 0x202020207d0a2020, 0x202020202020666f, 0x722028636f6e7374, 0x205b69642c20656e, 0x7472795d206f6620, + 0x736861646f772920, 0x656e7472792e6e6f, 0x6465203d206e6f64, 0x65732e6765742869, 0x64292e6e6f64653b, + 0x0a20202020202020, 0x206e6f646573203d, 0x20736861646f773b, 0x0a202020207d0a0a, 0x20202020636f6e73, + 0x7420617069203d20, 0x7b0a202020202020, 0x20206170706c792c, 0x0a20202020202020, 0x2069736c616e6428, + 0x6e616d652c20656c, 0x656d656e7429207b, 0x0a20202020202020, 0x2020202020696620, 0x282128656c656d65, + 0x6e7420696e737461, 0x6e63656f66204854, 0x4d4c456c656d656e, 0x7429207c7c202174, 0x6167732e68617328, + 0x656c656d656e742e, 0x6c6f63616c4e616d, 0x6529207c7c20666f, 0x7262696464656e54, 0x6167732e68617328, + 0x656c656d656e742e, 0x6c6f63616c4e616d, 0x6529290a20202020, 0x2020202020202020, 0x202020207468726f, + 0x77206e6577205479, 0x70654572726f7228, 0x27616e2069736c61, 0x6e64206d75737420, 0x626520616e20616c, + 0x6c6f776564204854, 0x4d4c20656c656d65, 0x6e7427293b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x70726576696f7573, 0x203d2069736c616e, 0x64732e676574286e, 0x616d65293b0a2020, 0x2020202020202020, + 0x2020696620287072, 0x6576696f75732026, 0x262070726576696f, 0x75732e656c656d65, 0x6e7420213d3d2065, + 0x6c656d656e742920, 0x7468726f77206e65, 0x77204572726f7228, 0x2769736c616e6420, 0x6e616d6520616c72, + 0x65616479206c656e, 0x7427293b0a202020, 0x2020202020202020, 0x2069662028217072, 0x6576696f75732920, + 0x7b0a202020202020, 0x2020202020202020, 0x202069662028656c, 0x656d656e742e6368, 0x696c644e6f646573, + 0x2e6c656e67746820, 0x7c7c204172726179, 0x2e66726f6d286973, 0x6c616e64732e7661, 0x6c7565732829292e, + 0x736f6d6528656e74, 0x7279203d3e20656e, 0x7472792e656c656d, 0x656e74203d3d3d20, 0x656c656d656e7420, + 0x7c7c20656e747279, 0x2e656c656d656e74, 0x2e636f6e7461696e, 0x7328656c656d656e, 0x7429207c7c20656c, + 0x656d656e742e636f, 0x6e7461696e732865, 0x6e7472792e656c65, 0x6d656e742929290a, 0x2020202020202020, + 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f72282769736c, 0x616e6473206d7573, + 0x7420626520656d70, 0x747920616e642064, 0x69736a6f696e7427, 0x293b0a2020202020, 0x202020202020207d, + 0x0a20202020202020, 0x2020202020636f6e, 0x737420746f6b656e, 0x203d207b656c656d, 0x656e747d3b0a2020, + 0x2020202020202020, 0x202069736c616e64, 0x732e736574286e61, 0x6d652c20746f6b65, 0x6e293b0a20202020, + 0x2020202020202020, 0x72657475726e2028, 0x29203d3e207b0a20, 0x2020202020202020, 0x2020202020202069, + 0x66202869736c616e, 0x64732e676574286e, 0x616d652920213d3d, 0x20746f6b656e2920, 0x72657475726e3b0a, + 0x2020202020202020, 0x2020202020202020, 0x69736c616e64732e, 0x64656c657465286e, 0x616d65293b0a2020, + 0x2020202020202020, 0x202020202020636f, 0x6e73742072656d6f, 0x766564203d206e65, 0x772053657428293b, + 0x0a20202020202020, 0x2020202020202020, 0x20666f722028636f, 0x6e7374205b69642c, 0x20656e7472795d20, + 0x6f66206e6f646573, 0x29207b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x69662028656e7472, + 0x792e6e6f6465203d, 0x3d3d20656c656d65, 0x6e74207c7c20656c, 0x656d656e742e636f, 0x6e7461696e732865, + 0x6e7472792e6e6f64, 0x6529292072656d6f, 0x7665642e61646428, 0x6964293b0a202020, 0x2020202020202020, + 0x2020202020202020, 0x20656c7365207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, + 0x666f7220286c6574, 0x20706172656e7420, 0x3d20656e7472792e, 0x706172656e743b20, 0x706172656e742021, + 0x3d3d206e756c6c3b, 0x20706172656e7420, 0x3d206e6f6465732e, 0x6765742870617265, 0x6e74293f2e706172, + 0x656e74203f3f206e, 0x756c6c290a202020, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, + 0x20696620286e6f64, 0x65732e6765742870, 0x6172656e74293f2e, 0x6e6f6465203d3d3d, 0x20656c656d656e74, + 0x29207b2072656d6f, 0x7665642e61646428, 0x6964293b20627265, 0x616b3b207d0a2020, 0x2020202020202020, + 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, + 0x202020202020666f, 0x722028636f6e7374, 0x206964206f662072, 0x656d6f7665642920, 0x6e6f6465732e6465, + 0x6c65746528696429, 0x3b0a202020202020, 0x2020202020202020, 0x2020636c65616e4c, 0x697374656e657273, + 0x286e6f646573293b, 0x0a20202020202020, 0x20202020207d3b0a, 0x2020202020202020, 0x7d2c0a202020207d, + 0x3b0a202020206272, 0x696467652e646f6d, 0x426174636848616e, 0x646c6572203d2061, 0x70706c793b0a2020, + 0x202072657475726e, 0x206170693b0a7d0a }; }; diff --git a/js/core/dom-interpreter.mjs b/js/core/dom-interpreter.mjs index f41763ec..0f026338 100644 --- a/js/core/dom-interpreter.mjs +++ b/js/core/dom-interpreter.mjs @@ -2,6 +2,7 @@ const maxBytes = 1024 * 1024; const maxEntries = 65536; const decoder = new TextDecoder('utf-8', {fatal: true, ignoreBOM: true}); +const encoder = new TextEncoder(); const defaultTags = 'div span p ul ol li button input label select option form fieldset legend h1 h2 h3 h4 table thead tbody tr td th strong em small output progress meter textarea section header footer nav a img br hr pre code'; const defaultAttributes = 'class id style title type name value placeholder min max step checked disabled readonly for href src alt role tabindex colspan rowspan width height selected lang dir hidden'; const defaultEvents = 'click dblclick input change submit keydown keyup focus blur pointerdown pointerup'; @@ -103,7 +104,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = const c = op === 9 ? input.uint() : op === 11 ? input.byte() : 0; const value = [1, 3, 4, 6, 7].includes(op) ? input.string() : ''; if (op === 1) { - if (a !== names.length || a >= maxEntries || new TextEncoder().encode(value).length > 1024) + if (a !== names.length || a >= maxEntries || encoder.encode(value).length > 1024) throw new Error('invalid DOM name definition'); names.push(value); } From 78efc59ebcd8dc4de12ad94cf474a53d7e6f65da Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Tue, 27 Oct 2026 08:00:03 +0100 Subject: [PATCH 3/5] Validate DOM batches with transactional deltas and bound retained names [#380] --- docs/CHANGELOG.md | 5 +- docs/EMBEDDED_ASSETS.md | 43 + .../ADR-003-protocole-binaire-et-bornes.md | 53 +- docs/adr/ADR-018-acces-au-dom.md | 11 +- docs/adr/README.md | 4 +- .../webfront/system/DomInterpreterData.hpp | 756 +++++++++--------- include/webfront/system/IndexFS.hpp | 2 +- js/core/dom-interpreter.mjs | 72 +- test/unit/WebFrontTests.cpp | 14 + test/web/JasmineTest.cpp | 20 +- test/web/dom-benchmark.html | 56 ++ test/web/suite/specs/dom-specs.mjs | 83 ++ 12 files changed, 730 insertions(+), 389 deletions(-) create mode 100644 test/web/dom-benchmark.html diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 68a8d61c..c07177ad 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,7 +8,10 @@ rejects executable content and normalized unsafe URLs. Catch2 and the shared Jasmine suite cover encoding boundaries, hostile batches and real WebSocket dispatch. ADR-003 specifies the wire contract; ADR-016 adds the module within the existing 150 KiB budget. - + Follow-up: validate against per-node and per-child-set deltas, cap retained UTF-8 name bytes at + 1 MiB per interpreter, and document the trusted-content model, event values and recovery after + residual exceptions. Real WebSocket tests cover events and listener cleanup; a C++ regression + covers sending through a lost UI link. The manual DOM benchmark is described in embedded assets. - The single-command test driver can set `--command-timeout` after browser/bootstrap startup, within its unchanged overall `--timeout` deadline (#376). The watchdog regression deliberately diff --git a/docs/EMBEDDED_ASSETS.md b/docs/EMBEDDED_ASSETS.md index 7aa51ad8..1fa0a76d 100644 --- a/docs/EMBEDDED_ASSETS.md +++ b/docs/EMBEDDED_ASSETS.md @@ -82,3 +82,46 @@ Register C++ callbacks `wfDom.rejected(batchId, reason)` and, when listening to `ui.sendDomBatch(batch)` implement [ADR-003](adr/ADR-003-protocole-binaire-et-bornes.md); the document/node API remains separate work (#381). The default filesystem protects both `WebFront.js` and `webfront-dom.mjs` from document-root overrides. + +The interpreter accepts trusted application commands, as [ADR-008](adr/ADR-008-contenu-de-confiance-et-origines.md) +specifies. `style` may load CSS resources or position overlays, and `id`/`name` can introduce named +DOM properties. The allowlist does not isolate untrusted producers. The name dictionary is retained +until the document is discarded, including definitions acquired from rejected batches; it has a +1 MiB UTF-8 budget in addition to the entry and per-name limits. Low-level C++ callers manage its +mirror; the document helper is separate work (#381). + +A residual DOM exception invalidates all node handles and island registrations. Existing release +functions then do nothing. C++ receives `wfDom.rejected` and must arrange page recovery: explicitly +empty the former island elements (`replaceChildren()`) or replace them before lending empty elements +again. Names remain interned. Reload the document to reset names as well. See ADR-003 for the exact +`wfDom.event` value contract. + +## Manual small-batch measurement + +`test/web/dom-benchmark.html` measures repeated single-operation SET_TEXT batches against detached +flat DOM trees with 101, 10,001 and 60,001 live nodes. SET_TEXT repeatedly assigns `x` to the same +existing text node. Each size warms up with 20 batches, then takes +three samples of 100 batches; the displayed result is the median time per batch. It includes decoding, +validation and DOM text mutation, and excludes transport, layout and rendering. It is not a CTest case +and asserts no timing threshold. To run from the repository root with optional Python tooling: + +```sh +measure_dir="$(mktemp -d)" +cp test/web/dom-benchmark.html "$measure_dir/index.html" +cp js/core/dom-interpreter.mjs "$measure_dir/webfront-dom.mjs" +python3 -m http.server 8000 --bind 127.0.0.1 --directory "$measure_dir" +# Open http://127.0.0.1:8000/ in a browser and click Measure. +``` + +Local Chrome 156/macOS observation on 2026-10-27, baseline `fe7e23b` versus the transactional delta +implementation (milliseconds per batch, median of three samples): + +| Live nodes | Whole-table copy | Transactional delta | +| --- | ---: | ---: | +| 101 | 0.095 | 0.007 | +| 10,001 | 8.628 | 0.007 | +| 60,001 | 10.627 | 0.043 | + +These short local measurements are sensitive to JIT, garbage collection, timer resolution and host +load; they are not a cross-engine guarantee. The deterministic Jasmine regression separately counts +Map/Set iterator visits to ensure a small text/append batch does not scan unrelated nodes or siblings. diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 36feb11b..de08351e 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -15,11 +15,12 @@ | 1.8 | 2026-10-16 | Acceptée | Ambroise Leclerc | Plafond indépendant de 125 octets pour les trames de contrôle. | [3ebc181](https://github.com/ambroise-leclerc/WebFront/commit/3ebc181fce48240aa2cecebfe4d3f8cc4966732d) | | 1.9 | 2026-10-20 | Acceptée | Ambroise Leclerc | `std::bitset` compacté dans le format Uint8Array existant, sans nouvel opcode. | [5bc294e](https://github.com/ambroise-leclerc/WebFront/commit/5bc294eb0a9ba81ae7789b425baa6e299e848d97) | | 1.10 | 2026-10-26 | Acceptée | Ambroise Leclerc | Commande `domBatch` bornée, interpréteur embarqué optionnel et validation transactionnelle (#380). | — | +| 1.11 | 2026-10-27 | Acceptée | Ambroise Leclerc | Validation par delta, budget cumulé des noms, récupération et contrat des événements précisés (#380). | — | ## État et chronologie **Acceptée.** Décision initiale : **2022-02-06** (version 1.0). -Dernière révision : **2026-10-26** (version 1.10). +Dernière révision : **2026-10-27** (version 1.11). Le présent texte expose la décision en vigueur ; le tableau retrace ses états antérieurs. ## Contexte @@ -62,6 +63,9 @@ refusé dès l’en-tête, fragments compris. Les trames de contrôle ont leur p ## Commande DOM (`domBatch`, code 5, version 1) +Cette section remplace le transport `wfDom.apply` des prototypes de l'[ADR-018](ADR-018-acces-au-dom.md) ; +les propositions d'API de document et de nœuds de cette ADR restent distinctes. + Un message WebSocket C++ → navigateur contient exactement un lot : `05 01`, un identifiant de lot `uint32` **little-endian fixe**, puis zéro ou plusieurs opérations jusqu'à la fin du message. Le plafond est de **1 048 576 octets, en-tête de six octets inclus**, vérifié avant décodage/allocation par les @@ -93,14 +97,27 @@ Les flags de LISTEN sont `1 = preventDefault`, `2 = stopPropagation` ; tous les interdits. PROPERTY accepte `value` (chaîne), `checked`, `disabled`, `indeterminate` (exactement `true` ou `false`), et `selectedIndex` (entier décimal de -1 à 2³¹-1). Les objets ne traversent pas le pont. Les identifiants de nœuds sont non nuls et uniques parmi les nœuds vivants. L'interpréteur borne les -nœuds vivants et les noms à 65 536 entrées chacun, les noms à 1 024 octets UTF-8. +nœuds vivants et les noms à 65 536 entrées chacun, les noms à 1 024 octets UTF-8, et la somme des +longueurs UTF-8 des noms à **1 048 576 octets par interpréteur** (hors surcoûts des chaînes et tables JS). +Une définition qui dépasse un de ces plafonds n'est pas acquise. Le budget cumulé compte aussi les +noms acquis dans des lots rejetés. Les noms sont conservés pour la vie du document, sans purge ni +réinitialisation sur le fil : les réutiliser permet de continuer à muter après saturation, mais ajouter +de nouveaux noms exige un nouveau document/rechargement. L'émetteur doit tenir le miroir des indices, +des longueurs et des définitions acquises ; le codec `msg::DomBatch` ne constitue pas une table d'internement. +Le helper C++ de document reste dans #381. Un rechargement impose de reconstruire également ce miroir. Les noms sont internés par document navigateur, définis séquentiellement à partir de zéro. Une référence ne peut viser qu'une définition antérieure dans le flux. Toutes les définitions entièrement décodées restent acquises même si la suite du lot est rejetée, y compris lors d'une erreur sémantique. Un message mal formé ne garantit pas que ses définitions restantes soient acquises ; l'émetteur doit alors abandonner ce document. Les autres opérations sont validées contre un arbre temporaire qui -suit créations, déplacements et suppressions. Une erreur de validation ne modifie aucun nœud DOM. +suit créations, déplacements et suppressions. Cet arbre est un delta sur la table vivante : seuls les +identifiants et ensembles d'enfants modifiés sont enregistrés ; un parent large utilise lui aussi des +ajouts/suppressions différés. MOUNT consulte un index faible des éléments montés. Un petit lot de texte +ou d'attributs ne parcourt donc pas les nœuds non concernés. Les suppressions parcourent le sous-arbre +affecté et les déplacements vérifient les chaînes d'ancêtres ; la révocation d'un îlot et le nettoyage +des écouteurs peuvent parcourir les tables correspondantes. Ces limites bornent les ressources, sans +promesse de temps constant. Une erreur de validation ne modifie aucun nœud DOM. Un parent texte, un cycle, une référence INSERT_BEFORE qui n'est pas enfant du parent, la réutilisation d'un nœud supprimé et toute mutation/déplacement/suppression de l'élément d'îlot sont rejetés. @@ -122,15 +139,41 @@ Les attributs URL simples (`href`, `src`, `action`, etc.) passent par `new URL(v seuls `http:`, `https:` et `mailto:` sont autorisés, même dans une extension. `javascript:` et `data:` sont donc rejetés après normalisation des caractères de contrôle par le navigateur. +Le modèle de menace est celui de l'[ADR-008](ADR-008-contenu-de-confiance-et-origines.md) : l'application +C++ et le code de la page sont de confiance. Les listes blanches empêchent des constructions exécutables +accidentelles ; elles ne constituent pas un bac à sable pour des lots provenant d'un tiers. `style` +peut charger des URL CSS externes et positionner des surcouches ; `id` et `name`, notamment sur `img` et +`form`, peuvent masquer des propriétés nommées du document ou de la fenêtre (DOM clobbering). Ils sont +conservés pour construire des interfaces ordinaires. Les restrictions des URL décrites ci-dessus visent +les attributs URL, pas le contenu CSS. Ne pas transmettre des lots non fiables à cet interpréteur ; les +politiques d'origine/navigations ne filtrent pas toutes les sous-ressources réseau. + C++ construit `msg::DomBatch` (`weblink/DomBatch.hpp`) et l'envoie par `ui.sendDomBatch(batch)` sur le contexte du bridge. L'envoi n'est pas attendable et n'accuse pas réception. Tout rejet, y compris l'absence de module installé ou une exception DOM résiduelle pendant l'application, remonte par le callback ordinaire `wfDom.rejected(uint32 batchId, string reason)` ; l'application doit l'enregistrer. Le motif est limité à 4 096 unités UTF-16 avant encodage. Si l'en-tête est tronqué, l'identifiant vaut zéro. Les événements utilisent `wfDom.event(uint32 nodeId, uint32 nameIndex, string value)` et leurs -Promises sont traitées. Les erreurs de transport/déconnexion ne peuvent pas être signalées par ce canal. +Promises sont traitées. `nameIndex` désigne le nom interné à LISTEN. La valeur est celle du nœud +abonné (`event.currentTarget`), pas d'un descendant à l'origine d'un événement bouillonnant : + +| Événement | `value` | +| --- | --- | +| `input`, `change` sur une case à cocher | `String(currentTarget.checked)`, soit `"true"` ou `"false"` | +| Autres `input`, `change` | `String(currentTarget.value)` | +| `keydown`, `keyup` | `event.key` | +| Tout autre événement | La chaîne vide `""` | + +Les flags `preventDefault` et `stopPropagation` sont appliqués immédiatement dans le navigateur, +avant le callback C++ ; UNLISTEN et REMOVE retirent les écouteurs. Les erreurs de transport/déconnexion ne peuvent pas être signalées par ce canal. Une exception résiduelle d'application peut laisser des modifications partielles ; elle invalide tous -les handles et îlots de l'interpréteur, obligeant la page à reconstruire/prêter de nouveaux îlots. +les handles et îlots de l'interpréteur. Les fonctions `release()` déjà retournées deviennent inertes : +elles n'effacent pas les enfants partiels et ne notifient pas la page. Le rejet arrive seulement au +callback C++ ; l'application doit en organiser la notification de sa page. Pour récupérer, la page +remplace les éléments d'îlot, ou vide explicitement leurs enfants (`element.replaceChildren()`), puis +les prête de nouveau avec `island()`. Prêter un ancien élément encore non vide reste interdit. +Les identifiants de nœuds sont à reconstruire, mais la table de noms et son budget restent acquis. +La page peut aussi choisir de recharger tout le document pour remettre les deux tables à zéro. L'API publique document/nœuds et les lectures groupées relèvent de #381. ## Options écartées et motifs diff --git a/docs/adr/ADR-018-acces-au-dom.md b/docs/adr/ADR-018-acces-au-dom.md index 67733b37..9f439389 100644 --- a/docs/adr/ADR-018-acces-au-dom.md +++ b/docs/adr/ADR-018-acces-au-dom.md @@ -5,11 +5,16 @@ | Version | Date | État | Auteur | Évolution | Révision Git | | --- | --- | --- | --- | --- | --- | | 1.0 | 2026-10-26 | Proposée | Ambroise Leclerc | Décision initiale (#378) : état de l'art TypeScript, Rust et Python vérifié, huit solutions comparées, prototypes mesurés sous WebKitGTK (flux de mutations, proxy, lectures attendues, îlots React, formulaire généré par réflexion C++26, lots hostiles), découverte d'un délai de 40 ms du transport (Nagle). | À renseigner après intégration. | +| 1.1 | 2026-10-27 | Proposée, partiellement remplacée | Ambroise Leclerc | Le transport du prototype est remplacé par ADR-003 1.10 et suivantes ; l’API document/nœuds reste proposée (#381). | — | ## État et chronologie -**Proposée** le **2026-10-26** (issue #378). Cette décision ne livre aucune API publique et ne modifie pas le format -binaire. Ses mesures viennent de prototypes jetables, retirés du dépôt après mesure et consultables dans le commit +**Proposée** le **2026-10-26** (issue #378), **partiellement remplacée** le **2026-10-27**. +Le transport DOM est désormais livré par l'[ADR-003, version 1.10 et suivantes](ADR-003-protocole-binaire-et-bornes.md), +avec la commande `domBatch` et `/webfront-dom.mjs` (#380). L'appel `wfDom.apply` par `jsFunction` décrit +ci-dessous est uniquement le protocole historique des prototypes ; il ne décrit pas le transport livré. +L'API document/nœuds, les adaptateurs et la réflexion restent proposés (#381 à #384). +Les mesures historiques viennent de prototypes jetables, retirés du dépôt après mesure et consultables dans le commit `ef2bb25` de la PR #385 (`test/web/dom/`, cible manuelle `webkitgtk_dom_prototype`). Elle passera à « Acceptée » quand les critères de la section dédiée seront démontrés. @@ -19,7 +24,7 @@ sans compatibilité ascendante, à condition d'en respecter les règles (évolut ## Contexte -Aujourd'hui, le C++ n'accède pas au DOM. Une application écrit du JavaScript ou du TypeScript (par exemple +Lors de la décision initiale, le C++ n'accédait pas au DOM. Une application écrit du JavaScript ou du TypeScript (par exemple `examples/life/ui/main.tsx`, en React), qui expose des fonctions que C++ appelle par `ui.jsFunction`, et appelle les callbacks C++ par `webFront.cppFunction`. Le bridge ne transporte que des scalaires, chaînes, tuples, tableaux typés numériques et `std::bitset` ([ADR-004](ADR-004-appels-asynchrones-et-erreurs.md)). Les anciennes issues #6 diff --git a/docs/adr/README.md b/docs/adr/README.md index bd7243a4..6528fcdf 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -42,7 +42,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.4 — 2026-10-14 | -| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.10 — 2026-10-26 | +| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.11 — 2026-10-27 | | [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted | 2022-02-06 | 2.4 — 2026-10-18 | | [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 | @@ -57,7 +57,7 @@ verification evidence remain in [PROJECT_STATUS](../PROJECT_STATUS.md). | [ADR-015](ADR-015-ressources-generees-par-application.md) | Generating application-owned embedded resources | Accepted | 2026-10-20 | 1.0 — 2026-10-24 | | [ADR-016](ADR-016-bootstrap-comme-socle.md) | The bootstrap environment as WebFront's foundation | Accepted | 2026-10-22 | 1.6 — 2026-10-26 | | [ADR-017](ADR-017-acces-direct-aux-frontends.md) | Direct access to embedded frontends, with HTML kept normative | Proposed | 2026-10-24 | 1.1 — 2026-10-25 | -| [ADR-018](ADR-018-acces-au-dom.md) | DOM access from C++ through a bounded mutation stream, without contesting the DOM of UI libraries | Proposed | 2026-10-26 | 1.0 — 2026-10-26 | +| [ADR-018](ADR-018-acces-au-dom.md) | DOM access from C++ through a bounded mutation stream, without contesting the DOM of UI libraries | Proposed, partially superseded | 2026-10-26 | 1.1 — 2026-10-27 | Numbering follows the reading topics; milestones and individual file histories provide the chronology, which does not follow the numerical order. diff --git a/include/webfront/system/DomInterpreterData.hpp b/include/webfront/system/DomInterpreterData.hpp index 798938bd..9918de6b 100644 --- a/include/webfront/system/DomInterpreterData.hpp +++ b/include/webfront/system/DomInterpreterData.hpp @@ -9,369 +9,409 @@ namespace webfront::fs::generated { struct DomInterpreterData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{14416}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{16007}; + static constexpr std::array data{ 0x2f2f204144522d30, 0x30333a206f707469, 0x6f6e616c20444f4d, 0x20636f6d6d616e64, 0x20696e7465727072, 0x657465722e204f6e, 0x6c79207468697320, 0x6d6f64756c652074, 0x6f75636865732074, 0x686520444f4d3b20, 0x57656246726f6e74, 0x2e6a7320726f7574, 0x657320636f6d6d61, 0x6e6420352e0a636f, 0x6e7374206d617842, 0x79746573203d2031, 0x303234202a203130, 0x32343b0a636f6e73, 0x74206d6178456e74, 0x72696573203d2036, - 0x353533363b0a636f, 0x6e7374206465636f, 0x646572203d206e65, 0x7720546578744465, 0x636f646572282775, - 0x74662d38272c207b, 0x666174616c3a2074, 0x7275652c2069676e, 0x6f7265424f4d3a20, 0x747275657d293b0a, - 0x636f6e737420656e, 0x636f646572203d20, 0x6e65772054657874, 0x456e636f64657228, 0x293b0a636f6e7374, - 0x2064656661756c74, 0x54616773203d2027, 0x646976207370616e, 0x207020756c206f6c, 0x206c692062757474, - 0x6f6e20696e707574, 0x206c6162656c2073, 0x656c656374206f70, 0x74696f6e20666f72, 0x6d206669656c6473, - 0x6574206c6567656e, 0x6420683120683220, 0x6833206834207461, 0x626c652074686561, 0x642074626f647920, - 0x7472207464207468, 0x207374726f6e6720, 0x656d20736d616c6c, 0x206f757470757420, 0x70726f6772657373, - 0x206d657465722074, 0x6578746172656120, 0x73656374696f6e20, 0x6865616465722066, 0x6f6f746572206e61, - 0x76206120696d6720, 0x6272206872207072, 0x6520636f6465273b, 0x0a636f6e73742064, 0x656661756c744174, - 0x7472696275746573, 0x203d2027636c6173, 0x7320696420737479, 0x6c65207469746c65, 0x2074797065206e61, - 0x6d652076616c7565, 0x20706c616365686f, 0x6c646572206d696e, 0x206d617820737465, 0x7020636865636b65, - 0x642064697361626c, 0x656420726561646f, 0x6e6c7920666f7220, 0x6872656620737263, 0x20616c7420726f6c, - 0x6520746162696e64, 0x657820636f6c7370, 0x616e20726f777370, 0x616e207769647468, 0x2068656967687420, - 0x73656c6563746564, 0x206c616e67206469, 0x722068696464656e, 0x273b0a636f6e7374, 0x2064656661756c74, - 0x4576656e7473203d, 0x2027636c69636b20, 0x64626c636c69636b, 0x20696e7075742063, 0x68616e6765207375, - 0x626d6974206b6579, 0x646f776e206b6579, 0x757020666f637573, 0x20626c757220706f, 0x696e746572646f77, - 0x6e20706f696e7465, 0x727570273b0a636f, 0x6e737420666f7262, 0x696464656e546167, 0x73203d206e657720, - 0x5365742827736372, 0x6970742069667261, 0x6d65206672616d65, 0x206672616d657365, 0x74206f626a656374, - 0x20656d626564206c, 0x696e6b206d657461, 0x2062617365207374, 0x796c652073766720, 0x6d617468272e7370, - 0x6c69742827202729, 0x293b0a636f6e7374, 0x20666f7262696464, 0x656e417474726962, 0x75746573203d206e, - 0x6577205365742827, 0x737263646f632069, 0x7320786d6c6e7320, 0x7372637365742069, 0x6d61676573726373, - 0x65742070696e6727, 0x2e73706c69742827, 0x202729293b0a636f, 0x6e73742075726c41, 0x7474726962757465, - 0x73203d206e657720, 0x5365742827687265, 0x6620737263206163, 0x74696f6e20666f72, 0x6d616374696f6e20, - 0x706f737465722063, 0x697465206261636b, 0x67726f756e642064, 0x61746120636f6465, 0x62617365206d616e, - 0x6966657374206c6f, 0x6e67646573632075, 0x73656d6170207072, 0x6f66696c65272e73, 0x706c697428272027, - 0x29293b0a636f6e73, 0x742070726f706572, 0x74794e616d657320, 0x3d206e6577205365, 0x74285b2776616c75, - 0x65272c2027636865, 0x636b6564272c2027, 0x64697361626c6564, 0x272c2027696e6465, 0x7465726d696e6174, - 0x65272c202773656c, 0x6563746564496e64, 0x6578275d293b0a63, 0x6f6e7374206c6973, 0x74203d2074657874, - 0x203d3e206e657720, 0x5365742874657874, 0x2e73706c69742827, 0x202729293b0a636f, 0x6e73742076616c69, - 0x644e616d65203d20, 0x6e616d65203d3e20, 0x2f5e5b612d7a5d5b, 0x612d7a302d392d5d, 0x2a242f2e74657374, - 0x286e616d65293b0a, 0x0a66756e6374696f, 0x6e20726561646572, 0x2862797465732920, 0x7b0a202020206c65, - 0x74206f6666736574, 0x203d20363b0a2020, 0x202072657475726e, 0x207b0a2020202020, 0x2020206765742064, - 0x6f6e652829207b20, 0x72657475726e206f, 0x6666736574203d3d, 0x3d2062797465732e, 0x6c656e6774683b20, - 0x7d2c0a2020202020, 0x2020206279746528, 0x29207b0a20202020, 0x2020202020202020, 0x696620286f666673, - 0x6574203e3d206279, 0x7465732e6c656e67, 0x746829207468726f, 0x77206e6577205261, 0x6e67654572726f72, - 0x28277472756e6361, 0x74656420444f4d20, 0x626174636827293b, 0x0a20202020202020, 0x2020202020726574, - 0x75726e2062797465, 0x735b6f6666736574, 0x2b2b5d3b0a202020, 0x20202020207d2c0a, 0x2020202020202020, - 0x75696e742829207b, 0x0a20202020202020, 0x20202020206c6574, 0x2076616c7565203d, 0x20303b0a20202020, - 0x2020202020202020, 0x666f7220286c6574, 0x2069203d20303b20, 0x69203c20353b202b, 0x2b6929207b0a2020, - 0x2020202020202020, 0x202020202020636f, 0x6e7374206e657874, 0x203d20746869732e, 0x6279746528293b0a, - 0x2020202020202020, 0x2020202020202020, 0x696620282869203d, 0x3d3d203420262620, 0x6e657874203e2031, - 0x3529207c7c202869, 0x203e203020262620, 0x6e657874203d3d3d, 0x203029290a202020, 0x2020202020202020, - 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f7228276e, 0x6f6e63616e6f6e69, - 0x63616c206f72206f, 0x766572666c6f7769, 0x6e6720444f4d2076, 0x6172696e7427293b, 0x0a20202020202020, - 0x2020202020202020, 0x2076616c7565202b, 0x3d20286e65787420, 0x262031323729202a, 0x2032202a2a202837, - 0x202a2069293b0a20, 0x2020202020202020, 0x2020202020202069, 0x66202821286e6578, 0x7420262031323829, - 0x292072657475726e, 0x2076616c75653b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, - 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722827, 0x6f766572666c6f77, 0x696e6720444f4d20, - 0x766172696e742729, 0x3b0a202020202020, 0x20207d2c0a202020, 0x2020202020737472, 0x696e672829207b0a, - 0x2020202020202020, 0x20202020636f6e73, 0x742073697a65203d, 0x20746869732e7569, 0x6e7428293b0a2020, - 0x2020202020202020, 0x2020696620287369, 0x7a65203e20627974, 0x65732e6c656e6774, 0x68202d206f666673, - 0x657429207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x28277472756e6361, 0x74656420444f4d20, - 0x737472696e672729, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742076616c75, 0x65203d206465636f, - 0x6465722e6465636f, 0x6465286279746573, 0x2e73756261727261, 0x79286f6666736574, 0x2c206f6666736574, - 0x202b2073697a6529, 0x293b0a2020202020, 0x202020202020206f, 0x6666736574202b3d, 0x2073697a653b0a20, - 0x2020202020202020, 0x2020207265747572, 0x6e2076616c75653b, 0x0a20202020202020, 0x207d2c0a20202020, - 0x7d3b0a7d0a0a2f2a, 0x2a20496e7374616c, 0x6c206f6e63652070, 0x6572206272696467, 0x652f646f63756d65, - 0x6e742e2054686520, 0x7061676520657870, 0x6c696369746c7920, 0x6c656e647320656d, 0x70747920656c656d, - 0x656e747320776974, 0x682069736c616e64, 0x286e616d652c2065, 0x6c656d656e74292e, 0x0a202a2045787465, - 0x6e73696f6e206c69, 0x7374732061726520, 0x636f706965643b20, 0x6578656375746162, 0x6c6520746167732f, - 0x6174747269627574, 0x657320616e642075, 0x6e73616665205552, 0x4c20736368656d65, 0x732072656d61696e, - 0x20666f7262696464, 0x656e2e0a202a2061, 0x70706c7920746872, 0x6f7773206f6e2072, 0x656a656374696f6e, - 0x3b20746865206272, 0x6964676520726570, 0x6f72747320697420, 0x746f20432b2b2061, 0x73207766446f6d2e, - 0x72656a6563746564, 0x2862617463684964, 0x2c20726561736f6e, 0x292e0a202a2f0a65, 0x78706f7274206675, - 0x6e6374696f6e2069, 0x6e7374616c6c446f, 0x6d496e7465727072, 0x6574657228627269, 0x646765203d20676c, - 0x6f62616c54686973, 0x2e77656246726f6e, 0x742c20657874656e, 0x73696f6e73203d20, 0x7b7d29207b0a2020, - 0x2020696620286272, 0x696467652e646f6d, 0x426174636848616e, 0x646c657229207468, 0x726f77206e657720, - 0x4572726f72282744, 0x4f4d20696e746572, 0x7072657465722061, 0x6c72656164792069, 0x6e7374616c6c6564, - 0x27293b0a20202020, 0x636f6e7374207461, 0x6773203d206c6973, 0x742864656661756c, 0x7454616773292c20, - 0x6174747269627574, 0x6573203d206c6973, 0x742864656661756c, 0x7441747472696275, 0x746573292c206576, - 0x656e7473203d206c, 0x6973742864656661, 0x756c744576656e74, 0x73293b0a20202020, 0x666f722028636f6e, - 0x7374205b6b65792c, 0x207461726765745d, 0x206f66205b5b2774, 0x616773272c207461, 0x67735d2c205b2761, - 0x7474726962757465, 0x73272c2061747472, 0x6962757465735d2c, 0x205b276576656e74, 0x73272c206576656e, - 0x74735d5d29207b0a, 0x2020202020202020, 0x666f722028636f6e, 0x7374206e616d6520, 0x6f6620657874656e, - 0x73696f6e735b6b65, 0x795d207c7c205b5d, 0x29207b0a20202020, 0x2020202020202020, 0x696620282176616c, - 0x69644e616d65286e, 0x616d6529207c7c20, 0x6e616d652e737461, 0x7274735769746828, 0x276f6e2729207c7c, - 0x0a20202020202020, 0x2020202020202020, 0x20286b6579203d3d, 0x3d20277461677327, 0x20262620666f7262, - 0x696464656e546167, 0x732e686173286e61, 0x6d652929207c7c0a, 0x2020202020202020, 0x2020202020202020, - 0x286b6579203d3d3d, 0x2027617474726962, 0x7574657327202626, 0x20666f7262696464, 0x656e417474726962, - 0x757465732e686173, 0x286e616d65292929, 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, - 0x6577204572726f72, 0x2860666f72626964, 0x64656e20444f4d20, 0x657874656e73696f, 0x6e20247b6e616d65, - 0x7d60293b0a202020, 0x2020202020202020, 0x207461726765742e, 0x616464286e616d65, 0x293b0a2020202020, - 0x2020207d0a202020, 0x207d0a2020202063, 0x6f6e7374206e616d, 0x6573203d205b5d3b, 0x0a202020206c6574, - 0x206e6f646573203d, 0x206e6577204d6170, 0x28293b0a20202020, 0x636f6e7374206973, 0x6c616e6473203d20, - 0x6e6577204d617028, 0x292c206c69737465, 0x6e657273203d206e, 0x6577204d61702829, 0x3b0a20202020636f, - 0x6e737420616c6c6f, 0x7765644174747269, 0x62757465203d206e, 0x616d65203d3e2021, 0x6e616d652e737461, - 0x7274735769746828, 0x276f6e2729202626, 0x2021666f72626964, 0x64656e4174747269, 0x62757465732e6861, - 0x73286e616d652920, 0x26260a2020202020, 0x2020202861747472, 0x6962757465732e68, 0x6173286e616d6529, - 0x207c7c202f5e2861, 0x7269617c64617461, 0x292d5b612d7a302d, 0x392d5d2b242f2e74, 0x657374286e616d65, - 0x29293b0a20202020, 0x636f6e7374207361, 0x666555726c203d20, 0x76616c7565203d3e, 0x205b27687474703a, - 0x272c202768747470, 0x733a272c20276d61, 0x696c746f3a275d2e, 0x696e636c75646573, 0x286e65772055524c, - 0x2876616c75652c20, 0x646f63756d656e74, 0x2e62617365555249, 0x292e70726f746f63, 0x6f6c293b0a0a2020, - 0x202066756e637469, 0x6f6e20756e6c6973, 0x74656e2869642c20, 0x696e64657829207b, 0x0a20202020202020, - 0x20636f6e7374206b, 0x6579203d2060247b, 0x69647d3a247b696e, 0x6465787d602c2065, 0x6e747279203d206c, - 0x697374656e657273, 0x2e676574286b6579, 0x293b0a2020202020, 0x2020206966202865, 0x6e74727929207b0a, - 0x2020202020202020, 0x20202020656e7472, 0x792e6e6f64652e72, 0x656d6f7665457665, 0x6e744c697374656e, - 0x657228656e747279, 0x2e6e616d652c2065, 0x6e7472792e6c6973, 0x74656e6572293b0a, 0x2020202020202020, - 0x202020206c697374, 0x656e6572732e6465, 0x6c657465286b6579, 0x293b0a2020202020, 0x2020207d0a202020, - 0x207d0a2020202066, 0x756e6374696f6e20, 0x636c65616e4c6973, 0x74656e657273286c, 0x69766529207b0a20, - 0x2020202020202066, 0x6f722028636f6e73, 0x74205b6b65792c20, 0x656e7472795d206f, 0x66206c697374656e, - 0x657273290a202020, 0x2020202020202020, 0x2069662028216c69, 0x76652e6861732865, 0x6e7472792e696429, - 0x2920756e6c697374, 0x656e28656e747279, 0x2e69642c204e756d, 0x626572286b65792e, 0x73706c697428273a, - 0x27295b315d29293b, 0x0a202020207d0a20, 0x20202066756e6374, 0x696f6e206c697374, 0x656e2869642c2069, - 0x6e6465782c206e61, 0x6d652c20666c6167, 0x7329207b0a202020, 0x2020202020756e6c, 0x697374656e286964, - 0x2c20696e64657829, 0x3b0a202020202020, 0x2020636f6e737420, 0x6e6f6465203d206e, 0x6f6465732e676574, - 0x286964292e6e6f64, 0x653b0a2020202020, 0x202020636f6e7374, 0x206c697374656e65, 0x72203d206576656e, - 0x74203d3e207b0a20, 0x2020202020202020, 0x2020206966202866, 0x6c61677320262031, 0x29206576656e742e, - 0x70726576656e7444, 0x656661756c742829, 0x3b0a202020202020, 0x2020202020206966, 0x2028666c61677320, - 0x2620322920657665, 0x6e742e73746f7050, 0x726f706167617469, 0x6f6e28293b0a2020, 0x2020202020202020, - 0x2020636f6e737420, 0x76616c7565203d20, 0x6e616d65203d3d3d, 0x2027696e70757427, 0x207c7c206e616d65, - 0x203d3d3d20276368, 0x616e6765270a2020, 0x2020202020202020, 0x2020202020203f20, 0x286e6f64652e7479, - 0x7065203d3d3d2027, 0x636865636b626f78, 0x27203f2053747269, 0x6e67286e6f64652e, 0x636865636b656429, - 0x203a20537472696e, 0x67286e6f64652e76, 0x616c756529290a20, 0x2020202020202020, 0x202020202020203a, - 0x206e616d65203d3d, 0x3d20276b6579646f, 0x776e27207c7c206e, 0x616d65203d3d3d20, 0x276b657975702720, - 0x3f206576656e742e, 0x6b6579203a202727, 0x3b0a202020202020, 0x2020202020206272, 0x696467652e637070, - 0x46756e6374696f6e, 0x28277766446f6d2e, 0x6576656e74272928, 0x69642c20696e6465, 0x782c2076616c7565, - 0x292e636174636828, 0x2829203d3e207b7d, 0x293b0a2020202020, 0x2020207d3b0a2020, 0x2020202020206e6f, - 0x64652e6164644576, 0x656e744c69737465, 0x6e6572286e616d65, 0x2c206c697374656e, 0x6572293b0a202020, - 0x20202020206c6973, 0x74656e6572732e73, 0x65742860247b6964, 0x7d3a247b696e6465, 0x787d602c207b6964, - 0x2c206e6f64652c20, 0x6e616d652c206c69, 0x7374656e65727d29, 0x3b0a202020207d0a, 0x0a2020202066756e, - 0x6374696f6e206465, 0x636f646528627974, 0x657329207b0a2020, 0x2020202020206966, 0x2028212862797465, - 0x7320696e7374616e, 0x63656f662055696e, 0x7438417272617929, 0x207c7c2062797465, 0x732e6c656e677468, - 0x203c2036207c7c20, 0x62797465732e6c65, 0x6e677468203e206d, 0x6178427974657320, 0x7c7c206279746573, - 0x5b305d20213d3d20, 0x35207c7c20627974, 0x65735b315d20213d, 0x3d2031290a202020, 0x2020202020202020, - 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d206261746368, - 0x2068656164657220, 0x6f722073697a6527, 0x293b0a2020202020, 0x202020636f6e7374, 0x20696e707574203d, - 0x2072656164657228, 0x6279746573292c20, 0x6f7065726174696f, 0x6e73203d205b5d3b, 0x0a20202020202020, - 0x202f2f2052657461, 0x696e206561636820, 0x66756c6c79206465, 0x636f646564204e41, 0x4d45206576656e20, - 0x69662061206c6174, 0x6572206f70657261, 0x74696f6e206f7220, 0x76616c6964617469, 0x6f6e2072656a6563, - 0x7473207468652062, 0x617463682e0a2020, 0x2020202020207768, 0x696c65202821696e, 0x7075742e646f6e65, - 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374206f70, 0x203d20696e707574, 0x2e6279746528293b, - 0x0a20202020202020, 0x2020202020696620, 0x286f70203c203120, 0x7c7c206f70203e20, 0x313329207468726f, - 0x77206e6577204572, 0x726f722860756e6b, 0x6e6f776e20444f4d, 0x206f706572617469, 0x6f6e20247b6f707d, - 0x60293b0a20202020, 0x2020202020202020, 0x636f6e7374206120, 0x3d20696e7075742e, 0x75696e7428293b0a, - 0x2020202020202020, 0x20202020636f6e73, 0x742062203d205b32, 0x2c20342c20352c20, 0x362c20382c20392c, - 0x2031312c2031322c, 0x2031335d2e696e63, 0x6c75646573286f70, 0x29203f20696e7075, 0x742e75696e742829, - 0x203a20303b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x63203d206f70203d, 0x3d3d2039203f2069, - 0x6e7075742e75696e, 0x742829203a206f70, 0x203d3d3d20313120, 0x3f20696e7075742e, 0x627974652829203a, - 0x20303b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c7565203d205b31, 0x2c20332c20342c20, - 0x362c20375d2e696e, 0x636c75646573286f, 0x7029203f20696e70, 0x75742e737472696e, 0x672829203a202727, - 0x3b0a202020202020, 0x2020202020206966, 0x20286f70203d3d3d, 0x203129207b0a2020, 0x2020202020202020, - 0x2020202020206966, 0x20286120213d3d20, 0x6e616d65732e6c65, 0x6e677468207c7c20, 0x61203e3d206d6178, - 0x456e747269657320, 0x7c7c20656e636f64, 0x65722e656e636f64, 0x652876616c756529, 0x2e6c656e67746820, - 0x3e2031303234290a, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, - 0x726f722827696e76, 0x616c696420444f4d, 0x206e616d65206465, 0x66696e6974696f6e, 0x27293b0a20202020, - 0x2020202020202020, 0x202020206e616d65, 0x732e707573682876, 0x616c7565293b0a20, 0x2020202020202020, - 0x2020207d0a202020, 0x2020202020202020, 0x206f706572617469, 0x6f6e732e70757368, 0x287b6f702c20612c, - 0x20622c20632c2076, 0x616c75652c206e61, 0x6d654c696d69743a, 0x206e616d65732e6c, 0x656e6774687d293b, - 0x0a20202020202020, 0x207d0a2020202020, 0x2020207265747572, 0x6e206f7065726174, 0x696f6e733b0a2020, - 0x20207d0a0a202020, 0x2066756e6374696f, 0x6e206170706c7928, 0x627974657329207b, 0x0a20202020202020, - 0x20636f6e7374206f, 0x7065726174696f6e, 0x73203d206465636f, 0x6465286279746573, 0x293b0a2020202020, - 0x2020202f2f204120, 0x736861646f772074, 0x7265652074726163, 0x6b73207468652073, 0x746174652070726f, - 0x6475636564206279, 0x2065766572792070, 0x7265636564696e67, 0x206f706572617469, 0x6f6e2c20696e636c, - 0x7564696e67207265, 0x6d6f76616c732061, 0x6e64206d6f766573, 0x2e0a202020202020, 0x2020636f6e737420, - 0x736861646f77203d, 0x206e6577204d6170, 0x2841727261792e66, 0x726f6d286e6f6465, 0x732c20285b69642c, - 0x20656e7472795d29, 0x203d3e205b69642c, 0x207b2e2e2e656e74, 0x72792c206368696c, 0x6472656e3a206e65, - 0x772053657428656e, 0x7472792e6368696c, 0x6472656e297d5d29, 0x293b0a2020202020, 0x202020636f6e7374, - 0x207374657073203d, 0x205b5d3b0a202020, 0x2020202020636f6e, 0x737420676574203d, 0x206964203d3e207b, - 0x0a20202020202020, 0x2020202020636f6e, 0x737420656e747279, 0x203d20736861646f, 0x772e676574286964, - 0x293b0a2020202020, 0x2020202020202069, 0x66202821656e7472, 0x7929207468726f77, 0x206e657720457272, - 0x6f722860756e6b6e, 0x6f776e20444f4d20, 0x6e6f646520247b69, 0x647d60293b0a2020, 0x2020202020202020, - 0x202072657475726e, 0x20656e7472793b0a, 0x2020202020202020, 0x7d3b0a2020202020, 0x202020636f6e7374, - 0x207772697461626c, 0x65203d206964203d, 0x3e207b0a20202020, 0x2020202020202020, 0x636f6e737420656e, - 0x747279203d206765, 0x74286964293b0a20, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e69736c, - 0x616e642920746872, 0x6f77206e65772045, 0x72726f7228277468, 0x652070616765206f, 0x776e732074686520, - 0x69736c616e642065, 0x6c656d656e742729, 0x3b0a202020202020, 0x2020202020207265, 0x7475726e20656e74, - 0x72793b0a20202020, 0x202020207d3b0a20, 0x2020202020202063, 0x6f6e737420656c65, 0x6d656e74203d2069, - 0x64203d3e207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20656e747279203d, 0x207772697461626c, - 0x65286964293b0a20, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e746578, 0x7429207468726f77, - 0x206e657720457272, 0x6f72282765787065, 0x6374656420444f4d, 0x20656c656d656e74, 0x27293b0a20202020, - 0x2020202020202020, 0x72657475726e2065, 0x6e7472793b0a2020, 0x2020202020207d3b, 0x0a20202020202020, - 0x20636f6e73742066, 0x72657368203d2028, 0x69642c20656e7472, 0x7929203d3e207b0a, 0x2020202020202020, - 0x2020202069662028, 0x216964207c7c2073, 0x6861646f772e6861, 0x7328696429207c7c, 0x20736861646f772e, - 0x73697a65203e3d20, 0x6d6178456e747269, 0x657329207468726f, 0x77206e6577204572, 0x726f722827696e76, - 0x616c6964206f7220, 0x6475706c69636174, 0x6520444f4d206e6f, 0x646527293b0a2020, 0x2020202020202020, - 0x2020736861646f77, 0x2e7365742869642c, 0x207b2e2e2e656e74, 0x72792c2070617265, 0x6e743a206e756c6c, - 0x2c206368696c6472, 0x656e3a206e657720, 0x53657428297d293b, 0x0a20202020202020, 0x207d3b0a20202020, - 0x20202020636f6e73, 0x7420666f72676574, 0x203d206964203d3e, 0x207b0a2020202020, 0x202020202020202f, - 0x2f20497465726174, 0x6976652074726176, 0x657273616c3a2068, 0x6f7374696c652064, 0x6565702074726565, - 0x73206d757374206e, 0x6f74206f76657266, 0x6c6f772074686520, 0x4a61766153637269, 0x707420737461636b, - 0x2e0a202020202020, 0x202020202020636f, 0x6e73742070656e64, 0x696e67203d205b69, 0x645d3b0a20202020, - 0x2020202020202020, 0x7768696c65202870, 0x656e64696e672e6c, 0x656e67746829207b, 0x0a20202020202020, - 0x2020202020202020, 0x20636f6e73742063, 0x757272656e74203d, 0x2070656e64696e67, 0x2e706f7028292c20, - 0x656e747279203d20, 0x6765742863757272, 0x656e74293b0a2020, 0x2020202020202020, 0x202020202020666f, - 0x722028636f6e7374, 0x206368696c64206f, 0x6620656e7472792e, 0x6368696c6472656e, 0x292070656e64696e, - 0x672e707573682863, 0x68696c64293b0a20, 0x2020202020202020, 0x2020202020202073, 0x6861646f772e6465, - 0x6c65746528637572, 0x72656e74293b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x20202020207d3b0a, - 0x2020202020202020, 0x666f722028636f6e, 0x7374207b6f702c20, 0x612c20622c20632c, 0x2076616c75652c20, - 0x6e616d654c696d69, 0x747d206f66206f70, 0x65726174696f6e73, 0x29207b0a20202020, 0x2020202020202020, - 0x636f6e7374206e61, 0x6d654174203d2069, 0x6e646578203d3e20, 0x7b0a202020202020, 0x2020202020202020, - 0x202069662028696e, 0x646578203e3d206e, 0x616d654c696d6974, 0x29207468726f7720, 0x6e6577204572726f, - 0x722860756e6b6e6f, 0x776e20444f4d206e, 0x616d6520247b696e, 0x6465787d60293b0a, 0x2020202020202020, - 0x2020202020202020, 0x72657475726e206e, 0x616d65735b696e64, 0x65785d3b0a202020, 0x2020202020202020, - 0x207d3b0a20202020, 0x2020202020202020, 0x7377697463682028, 0x6f7029207b0a2020, 0x2020202020202020, - 0x2020636173652031, 0x3a20627265616b3b, 0x0a20202020202020, 0x2020202020636173, 0x6520323a207b0a20, - 0x2020202020202020, 0x2020202020202063, 0x6f6e737420746167, 0x203d206e616d6541, 0x742862293b0a2020, - 0x2020202020202020, 0x2020202020206966, 0x202821746167732e, 0x6861732874616729, 0x207c7c20666f7262, - 0x696464656e546167, 0x732e686173287461, 0x672929207468726f, 0x77206e6577204572, 0x726f722860666f72, - 0x62696464656e2044, 0x4f4d207461672024, 0x7b7461677d60293b, 0x0a20202020202020, 0x2020202020202020, - 0x2066726573682861, 0x2c207b746578743a, 0x2066616c73657d29, 0x3b0a202020202020, 0x2020202020202020, - 0x202073746570732e, 0x7075736828282920, 0x3d3e207b206e6f64, 0x65732e7365742861, 0x2c207b6e6f64653a, - 0x20646f63756d656e, 0x742e637265617465, 0x456c656d656e7428, 0x746167297d293b20, 0x7d293b0a20202020, - 0x2020202020202020, 0x2020202062726561, 0x6b3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, - 0x2020202020636173, 0x6520333a0a202020, 0x2020202020202020, 0x2020202020667265, 0x736828612c207b74, - 0x6578743a20747275, 0x657d293b0a202020, 0x2020202020202020, 0x2020202020737465, 0x70732e7075736828, - 0x2829203d3e207b20, 0x6e6f6465732e7365, 0x7428612c207b6e6f, 0x64653a20646f6375, 0x6d656e742e637265, - 0x617465546578744e, 0x6f64652876616c75, 0x65297d293b207d29, 0x3b0a202020202020, 0x2020202020202020, - 0x2020627265616b3b, 0x0a20202020202020, 0x2020202020636173, 0x6520343a20636173, 0x6520353a207b0a20, - 0x2020202020202020, 0x2020202020202065, 0x6c656d656e742861, 0x293b0a2020202020, 0x2020202020202020, - 0x202020636f6e7374, 0x206e616d65203d20, 0x6e616d6541742862, 0x293b0a2020202020, 0x2020202020202020, - 0x2020206966202821, 0x616c6c6f77656441, 0x7474726962757465, 0x286e616d65292920, 0x7468726f77206e65, - 0x77204572726f7228, 0x60666f7262696464, 0x656e20444f4d2061, 0x7474726962757465, 0x20247b6e616d657d, - 0x60293b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x6f70203d3d3d2034, 0x2026262075726c41, - 0x7474726962757465, 0x732e686173286e61, 0x6d65292026262021, 0x7361666555726c28, 0x76616c7565292920, - 0x7468726f77206e65, 0x77204572726f7228, 0x27756e7361666520, 0x444f4d2055524c27, 0x293b0a2020202020, - 0x2020202020202020, 0x2020207374657073, 0x2e70757368282829, 0x203d3e206f70203d, 0x3d3d2034203f206e, - 0x6f6465732e676574, 0x2861292e6e6f6465, 0x2e73657441747472, 0x6962757465286e61, 0x6d652c2076616c75, - 0x6529203a206e6f64, 0x65732e6765742861, 0x292e6e6f64652e72, 0x656d6f7665417474, 0x726962757465286e, - 0x616d6529293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, - 0x20207d0a20202020, 0x2020202020202020, 0x6361736520363a20, 0x7b0a202020202020, 0x2020202020202020, - 0x2020656c656d656e, 0x742861293b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e7374206e616d65, - 0x203d206e616d6541, 0x742862293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20282170726f7065, - 0x7274794e616d6573, 0x2e686173286e616d, 0x652929207468726f, 0x77206e6577204572, 0x726f722860666f72, - 0x62696464656e2044, 0x4f4d2070726f7065, 0x72747920247b6e61, 0x6d657d60293b0a20, 0x2020202020202020, - 0x2020202020202069, 0x6620285b27636865, 0x636b6564272c2027, 0x64697361626c6564, 0x272c2027696e6465, - 0x7465726d696e6174, 0x65275d2e696e636c, 0x75646573286e616d, 0x652920262620215b, 0x2774727565272c20, - 0x2766616c7365275d, 0x2e696e636c756465, 0x732876616c756529, 0x290a202020202020, 0x2020202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d20626f6f6c65, - 0x616e27293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20286e616d65203d, 0x3d3d202773656c65, - 0x63746564496e6465, 0x7827202626202821, 0x2f5e2d3f5c642b24, 0x2f2e746573742876, 0x616c756529207c7c, - 0x20214e756d626572, 0x2e6973496e746567, 0x6572284e756d6265, 0x722876616c756529, 0x29207c7c204e756d, - 0x6265722876616c75, 0x6529203c202d3120, 0x7c7c204e756d6265, 0x722876616c756529, 0x203e203231343734, - 0x383336343729290a, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, - 0x726f722827696e76, 0x616c696420444f4d, 0x2073656c65637465, 0x64496e6465782729, 0x3b0a202020202020, - 0x2020202020202020, 0x2020636f6e737420, 0x636f6e7665727465, 0x64203d206e616d65, 0x203d3d3d20277661, - 0x6c756527203f2076, 0x616c7565203a206e, 0x616d65203d3d3d20, 0x2773656c65637465, 0x64496e6465782720, - 0x3f204e756d626572, 0x2876616c75652920, 0x3a2076616c756520, 0x3d3d3d2027747275, 0x65273b0a20202020, + 0x353533363b0a636f, 0x6e7374206d61784e, 0x616d654279746573, 0x203d203130323420, 0x2a20313032343b0a, + 0x636f6e7374206465, 0x636f646572203d20, 0x6e65772054657874, 0x4465636f64657228, 0x277574662d38272c, + 0x207b666174616c3a, 0x20747275652c2069, 0x676e6f7265424f4d, 0x3a20747275657d29, 0x3b0a636f6e737420, + 0x656e636f64657220, 0x3d206e6577205465, 0x7874456e636f6465, 0x7228293b0a636f6e, 0x7374206465666175, + 0x6c7454616773203d, 0x2027646976207370, 0x616e207020756c20, 0x6f6c206c69206275, 0x74746f6e20696e70, + 0x7574206c6162656c, 0x2073656c65637420, 0x6f7074696f6e2066, 0x6f726d206669656c, 0x64736574206c6567, + 0x656e642068312068, 0x3220683320683420, 0x7461626c65207468, 0x6561642074626f64, 0x7920747220746420, + 0x7468207374726f6e, 0x6720656d20736d61, 0x6c6c206f75747075, 0x742070726f677265, 0x7373206d65746572, + 0x2074657874617265, 0x612073656374696f, 0x6e20686561646572, 0x20666f6f74657220, 0x6e6176206120696d, + 0x6720627220687220, 0x70726520636f6465, 0x273b0a636f6e7374, 0x2064656661756c74, 0x4174747269627574, + 0x6573203d2027636c, 0x6173732069642073, 0x74796c6520746974, 0x6c65207479706520, 0x6e616d652076616c, + 0x756520706c616365, 0x686f6c646572206d, 0x696e206d61782073, 0x7465702063686563, 0x6b65642064697361, + 0x626c656420726561, 0x646f6e6c7920666f, 0x7220687265662073, 0x726320616c742072, 0x6f6c652074616269, + 0x6e64657820636f6c, 0x7370616e20726f77, 0x7370616e20776964, 0x7468206865696768, 0x742073656c656374, + 0x6564206c616e6720, 0x6469722068696464, 0x656e273b0a636f6e, 0x7374206465666175, 0x6c744576656e7473, + 0x203d2027636c6963, 0x6b2064626c636c69, 0x636b20696e707574, 0x206368616e676520, 0x7375626d6974206b, + 0x6579646f776e206b, 0x6579757020666f63, 0x757320626c757220, 0x706f696e74657264, 0x6f776e20706f696e, + 0x7465727570273b0a, 0x636f6e737420666f, 0x7262696464656e54, 0x616773203d206e65, 0x7720536574282773, + 0x6372697074206966, 0x72616d6520667261, 0x6d65206672616d65, 0x736574206f626a65, 0x637420656d626564, + 0x206c696e6b206d65, 0x7461206261736520, 0x7374796c65207376, 0x67206d617468272e, 0x73706c6974282720, + 0x2729293b0a636f6e, 0x737420666f726269, 0x6464656e41747472, 0x696275746573203d, 0x206e657720536574, + 0x2827737263646f63, 0x20697320786d6c6e, 0x7320737263736574, 0x20696d6167657372, 0x637365742070696e, + 0x67272e73706c6974, 0x2827202729293b0a, 0x636f6e7374207572, 0x6c41747472696275, 0x746573203d206e65, + 0x7720536574282768, 0x7265662073726320, 0x616374696f6e2066, 0x6f726d616374696f, 0x6e20706f73746572, + 0x2063697465206261, 0x636b67726f756e64, 0x206461746120636f, 0x646562617365206d, 0x616e696665737420, + 0x6c6f6e6764657363, 0x207573656d617020, 0x70726f66696c6527, 0x2e73706c69742827, 0x202729293b0a636f, + 0x6e73742070726f70, 0x657274794e616d65, 0x73203d206e657720, 0x536574285b277661, 0x6c7565272c202763, + 0x6865636b6564272c, 0x202764697361626c, 0x6564272c2027696e, 0x64657465726d696e, 0x617465272c202773, + 0x656c656374656449, 0x6e646578275d293b, 0x0a636f6e7374206c, 0x697374203d207465, 0x7874203d3e206e65, + 0x7720536574287465, 0x78742e73706c6974, 0x2827202729293b0a, 0x636f6e7374207661, 0x6c69644e616d6520, + 0x3d206e616d65203d, 0x3e202f5e5b612d7a, 0x5d5b612d7a302d39, 0x2d5d2a242f2e7465, 0x7374286e616d6529, + 0x3b0a0a66756e6374, 0x696f6e2072656164, 0x6572286279746573, 0x29207b0a20202020, 0x6c6574206f666673, + 0x6574203d20363b0a, 0x2020202072657475, 0x726e207b0a202020, 0x2020202020676574, 0x20646f6e65282920, + 0x7b2072657475726e, 0x206f666673657420, 0x3d3d3d2062797465, 0x732e6c656e677468, 0x3b207d2c0a202020, + 0x2020202020627974, 0x652829207b0a2020, 0x2020202020202020, 0x2020696620286f66, 0x66736574203e3d20, + 0x62797465732e6c65, 0x6e67746829207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f7228277472756e, + 0x636174656420444f, 0x4d20626174636827, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206279, + 0x7465735b6f666673, 0x65742b2b5d3b0a20, 0x202020202020207d, 0x2c0a202020202020, 0x202075696e742829, + 0x207b0a2020202020, 0x202020202020206c, 0x65742076616c7565, 0x203d20303b0a2020, 0x2020202020202020, + 0x2020666f7220286c, 0x65742069203d2030, 0x3b2069203c20353b, 0x202b2b6929207b0a, 0x2020202020202020, + 0x2020202020202020, 0x636f6e7374206e65, 0x7874203d20746869, 0x732e627974652829, 0x3b0a202020202020, + 0x2020202020202020, 0x2020696620282869, 0x203d3d3d20342026, 0x26206e657874203e, 0x20313529207c7c20, + 0x2869203e20302026, 0x26206e657874203d, 0x3d3d203029290a20, 0x2020202020202020, 0x2020202020202020, + 0x2020207468726f77, 0x206e65772052616e, 0x67654572726f7228, 0x276e6f6e63616e6f, 0x6e6963616c206f72, + 0x206f766572666c6f, 0x77696e6720444f4d, 0x20766172696e7427, 0x293b0a2020202020, 0x2020202020202020, + 0x20202076616c7565, 0x202b3d20286e6578, 0x7420262031323729, 0x202a2032202a2a20, 0x2837202a2069293b, + 0x0a20202020202020, 0x2020202020202020, 0x206966202821286e, 0x6578742026203132, 0x3829292072657475, + 0x726e2076616c7565, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x202020207468726f, + 0x77206e6577205261, 0x6e67654572726f72, 0x28276f766572666c, 0x6f77696e6720444f, 0x4d20766172696e74, + 0x27293b0a20202020, 0x202020207d2c0a20, 0x2020202020202073, 0x7472696e67282920, 0x7b0a202020202020, + 0x202020202020636f, 0x6e73742073697a65, 0x203d20746869732e, 0x75696e7428293b0a, 0x2020202020202020, + 0x2020202069662028, 0x73697a65203e2062, 0x797465732e6c656e, 0x677468202d206f66, 0x6673657429207468, + 0x726f77206e657720, 0x52616e6765457272, 0x6f7228277472756e, 0x636174656420444f, 0x4d20737472696e67, + 0x27293b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c7565203d206465, 0x636f6465722e6465, + 0x636f646528627974, 0x65732e7375626172, 0x726179286f666673, 0x65742c206f666673, 0x6574202b2073697a, + 0x6529293b0a202020, 0x2020202020202020, 0x206f666673657420, 0x2b3d2073697a653b, 0x0a20202020202020, + 0x2020202020726574, 0x75726e2076616c75, 0x653b0a2020202020, 0x2020207d2c0a2020, 0x20207d3b0a7d0a0a, + 0x2f2f205472616e73, 0x616374696f6e616c, 0x206368696c642d73, 0x6574206f7665726c, 0x61793a2065646974, + 0x696e672061207769, 0x646520706172656e, 0x7420646f6573206e, 0x6f7420636f707920, 0x6f72207363616e20, + 0x6974732065786973, 0x74696e6720636869, 0x6c6472656e2e0a63, 0x6c61737320436869, 0x6c6444656c746120, + 0x7b0a20202020636f, 0x6e7374727563746f, 0x7228626173652920, 0x7b20746869732e62, 0x617365203d206261, + 0x73653b2074686973, 0x2e6164646564203d, 0x206e657720536574, 0x28293b2074686973, 0x2e72656d6f766564, + 0x203d206e65772053, 0x657428293b207d0a, 0x2020202061646428, 0x696429207b207468, 0x69732e72656d6f76, + 0x65642e64656c6574, 0x65286964293b2069, 0x6620282174686973, 0x2e626173652e6861, 0x7328696429292074, + 0x6869732e61646465, 0x642e616464286964, 0x293b207d0a202020, 0x2064656c65746528, 0x696429207b206966, + 0x202821746869732e, 0x61646465642e6465, 0x6c65746528696429, 0x2026262074686973, 0x2e626173652e6861, + 0x7328696429292074, 0x6869732e72656d6f, 0x7665642e61646428, 0x6964293b207d0a20, 0x2020202a5b53796d, + 0x626f6c2e69746572, 0x61746f725d282920, 0x7b0a202020202020, 0x2020666f72202863, 0x6f6e737420696420, + 0x6f6620746869732e, 0x6261736529206966, 0x202821746869732e, 0x72656d6f7665642e, 0x6861732869642929, + 0x207969656c642069, 0x643b0a2020202020, 0x2020207969656c64, 0x2a20746869732e61, 0x646465643b0a2020, + 0x20207d0a20202020, 0x636f6d6d69742829, 0x207b0a2020202020, 0x202020666f722028, 0x636f6e7374206964, + 0x206f662074686973, 0x2e72656d6f766564, 0x2920746869732e62, 0x6173652e64656c65, 0x7465286964293b0a, + 0x2020202020202020, 0x666f722028636f6e, 0x7374206964206f66, 0x20746869732e6164, 0x6465642920746869, + 0x732e626173652e61, 0x6464286964293b0a, 0x2020202020202020, 0x72657475726e2074, 0x6869732e62617365, + 0x3b0a202020207d0a, 0x7d0a0a2f2a2a2049, 0x6e7374616c6c206f, 0x6e63652070657220, 0x6272696467652f64, + 0x6f63756d656e742e, 0x2054686520706167, 0x65206578706c6963, 0x69746c79206c656e, 0x647320656d707479, + 0x20656c656d656e74, 0x7320776974682069, 0x736c616e64286e61, 0x6d652c20656c656d, 0x656e74292e0a202a, + 0x20457874656e7369, 0x6f6e206c69737473, 0x2061726520636f70, 0x6965643b20657865, 0x63757461626c6520, + 0x746167732f617474, 0x7269627574657320, 0x616e6420756e7361, 0x66652055524c2073, 0x6368656d65732072, + 0x656d61696e20666f, 0x7262696464656e2e, 0x0a202a206170706c, 0x79207468726f7773, 0x206f6e2072656a65, + 0x6374696f6e3b2074, 0x6865206272696467, 0x65207265706f7274, 0x7320697420746f20, 0x432b2b2061732077, + 0x66446f6d2e72656a, 0x6563746564286261, 0x74636849642c2072, 0x6561736f6e292e0a, 0x202a2f0a6578706f, + 0x72742066756e6374, 0x696f6e20696e7374, 0x616c6c446f6d496e, 0x7465727072657465, 0x7228627269646765, + 0x203d20676c6f6261, 0x6c546869732e7765, 0x6246726f6e742c20, 0x657874656e73696f, 0x6e73203d207b7d29, + 0x207b0a2020202069, 0x6620286272696467, 0x652e646f6d426174, 0x636848616e646c65, 0x7229207468726f77, + 0x206e657720457272, 0x6f722827444f4d20, 0x696e746572707265, 0x74657220616c7265, 0x61647920696e7374, + 0x616c6c656427293b, 0x0a20202020636f6e, 0x7374207461677320, 0x3d206c6973742864, 0x656661756c745461, + 0x6773292c20617474, 0x7269627574657320, 0x3d206c6973742864, 0x656661756c744174, 0x7472696275746573, + 0x292c206576656e74, 0x73203d206c697374, 0x2864656661756c74, 0x4576656e7473293b, 0x0a20202020666f72, + 0x2028636f6e737420, 0x5b6b65792c207461, 0x726765745d206f66, 0x205b5b2774616773, 0x272c20746167735d, + 0x2c205b2761747472, 0x696275746573272c, 0x2061747472696275, 0x7465735d2c205b27, 0x6576656e7473272c, + 0x206576656e74735d, 0x5d29207b0a202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6e616d65206f6620, + 0x657874656e73696f, 0x6e735b6b65795d20, 0x7c7c205b5d29207b, 0x0a20202020202020, 0x2020202020696620, + 0x282176616c69644e, 0x616d65286e616d65, 0x29207c7c206e616d, 0x652e737461727473, 0x5769746828276f6e, + 0x2729207c7c0a2020, 0x2020202020202020, 0x202020202020286b, 0x6579203d3d3d2027, 0x7461677327202626, + 0x20666f7262696464, 0x656e546167732e68, 0x6173286e616d6529, 0x29207c7c0a202020, 0x2020202020202020, + 0x2020202020286b65, 0x79203d3d3d202761, 0x7474726962757465, 0x732720262620666f, 0x7262696464656e41, + 0x7474726962757465, 0x732e686173286e61, 0x6d652929290a2020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d20657874, 0x656e73696f6e2024, + 0x7b6e616d657d6029, 0x3b0a202020202020, 0x2020202020207461, 0x726765742e616464, 0x286e616d65293b0a, + 0x2020202020202020, 0x7d0a202020207d0a, 0x20202020636f6e73, 0x74206e616d657320, 0x3d205b5d3b0a2020, + 0x20206c6574206e61, 0x6d65427974657320, 0x3d20303b0a202020, 0x20636f6e7374206e, 0x6f646573203d206e, + 0x6577204d61702829, 0x3b0a202020206c65, 0x74206d6f756e7465, 0x64203d206e657720, 0x5765616b53657428, + 0x293b0a2020202063, 0x6f6e73742069736c, 0x616e6473203d206e, 0x6577204d61702829, 0x2c206c697374656e, + 0x657273203d206e65, 0x77204d617028293b, 0x0a20202020636f6e, 0x737420616c6c6f77, 0x6564417474726962, + 0x757465203d206e61, 0x6d65203d3e20216e, 0x616d652e73746172, 0x7473576974682827, 0x6f6e272920262620, + 0x21666f7262696464, 0x656e417474726962, 0x757465732e686173, 0x286e616d65292026, 0x260a202020202020, + 0x2020286174747269, 0x62757465732e6861, 0x73286e616d652920, 0x7c7c202f5e286172, 0x69617c6461746129, + 0x2d5b612d7a302d39, 0x2d5d2b242f2e7465, 0x7374286e616d6529, 0x293b0a2020202063, 0x6f6e737420736166, + 0x6555726c203d2076, 0x616c7565203d3e20, 0x5b27687474703a27, 0x2c20276874747073, 0x3a272c20276d6169, + 0x6c746f3a275d2e69, 0x6e636c7564657328, 0x6e65772055524c28, 0x76616c75652c2064, 0x6f63756d656e742e, + 0x6261736555524929, 0x2e70726f746f636f, 0x6c293b0a0a202020, 0x2066756e6374696f, 0x6e20756e6c697374, + 0x656e2869642c2069, 0x6e64657829207b0a, 0x2020202020202020, 0x636f6e7374206b65, 0x79203d2060247b69, + 0x647d3a247b696e64, 0x65787d602c20656e, 0x747279203d206c69, 0x7374656e6572732e, 0x676574286b657929, + 0x3b0a202020202020, 0x202069662028656e, 0x74727929207b0a20, 0x2020202020202020, 0x202020656e747279, + 0x2e6e6f64652e7265, 0x6d6f76654576656e, 0x744c697374656e65, 0x7228656e7472792e, 0x6e616d652c20656e, + 0x7472792e6c697374, 0x656e6572293b0a20, 0x2020202020202020, 0x2020206c69737465, 0x6e6572732e64656c, + 0x657465286b657929, 0x3b0a202020202020, 0x20207d0a20202020, 0x7d0a202020206675, 0x6e6374696f6e2063, + 0x6c65616e4c697374, 0x656e657273286c69, 0x766529207b0a2020, 0x202020202020666f, 0x722028636f6e7374, + 0x205b6b65792c2065, 0x6e7472795d206f66, 0x206c697374656e65, 0x7273290a20202020, 0x2020202020202020, + 0x69662028216c6976, 0x652e68617328656e, 0x7472792e69642929, 0x20756e6c69737465, 0x6e28656e7472792e, + 0x69642c204e756d62, 0x6572286b65792e73, 0x706c697428273a27, 0x295b315d29293b0a, 0x202020207d0a2020, + 0x202066756e637469, 0x6f6e206c69737465, 0x6e2869642c20696e, 0x6465782c206e616d, 0x652c20666c616773, + 0x29207b0a20202020, 0x20202020756e6c69, 0x7374656e2869642c, 0x20696e646578293b, 0x0a20202020202020, + 0x20636f6e7374206e, 0x6f6465203d206e6f, 0x6465732e67657428, 0x6964292e6e6f6465, 0x3b0a202020202020, + 0x2020636f6e737420, 0x6c697374656e6572, 0x203d206576656e74, 0x203d3e207b0a2020, 0x2020202020202020, + 0x202069662028666c, 0x6167732026203129, 0x206576656e742e70, 0x726576656e744465, 0x6661756c7428293b, + 0x0a20202020202020, 0x2020202020696620, 0x28666c6167732026, 0x203229206576656e, 0x742e73746f705072, + 0x6f7061676174696f, 0x6e28293b0a202020, 0x2020202020202020, 0x20636f6e73742076, 0x616c7565203d206e, + 0x616d65203d3d3d20, 0x27696e7075742720, 0x7c7c206e616d6520, 0x3d3d3d2027636861, 0x6e6765270a202020, + 0x2020202020202020, 0x20202020203f2028, 0x6e6f64652e747970, 0x65203d3d3d202763, 0x6865636b626f7827, + 0x203f20537472696e, 0x67286e6f64652e63, 0x6865636b65642920, 0x3a20537472696e67, 0x286e6f64652e7661, + 0x6c756529290a2020, 0x2020202020202020, 0x2020202020203a20, 0x6e616d65203d3d3d, 0x20276b6579646f77, + 0x6e27207c7c206e61, 0x6d65203d3d3d2027, 0x6b6579757027203f, 0x206576656e742e6b, 0x6579203a2027273b, + 0x0a20202020202020, 0x2020202020627269, 0x6467652e63707046, 0x756e6374696f6e28, 0x277766446f6d2e65, + 0x76656e7427292869, 0x642c20696e646578, 0x2c2076616c756529, 0x2e63617463682828, 0x29203d3e207b7d29, + 0x3b0a202020202020, 0x20207d3b0a202020, 0x20202020206e6f64, 0x652e616464457665, 0x6e744c697374656e, + 0x6572286e616d652c, 0x206c697374656e65, 0x72293b0a20202020, 0x202020206c697374, 0x656e6572732e7365, + 0x742860247b69647d, 0x3a247b696e646578, 0x7d602c207b69642c, 0x206e6f64652c206e, 0x616d652c206c6973, + 0x74656e65727d293b, 0x0a202020207d0a0a, 0x2020202066756e63, 0x74696f6e20646563, 0x6f64652862797465, + 0x7329207b0a202020, 0x2020202020696620, 0x2821286279746573, 0x20696e7374616e63, 0x656f662055696e74, + 0x3841727261792920, 0x7c7c206279746573, 0x2e6c656e67746820, 0x3c2036207c7c2062, 0x797465732e6c656e, + 0x677468203e206d61, 0x784279746573207c, 0x7c2062797465735b, 0x305d20213d3d2035, 0x207c7c2062797465, + 0x735b315d20213d3d, 0x2031290a20202020, 0x2020202020202020, 0x7468726f77206e65, 0x772052616e676545, + 0x72726f722827696e, 0x76616c696420444f, 0x4d20626174636820, 0x686561646572206f, 0x722073697a652729, + 0x3b0a202020202020, 0x2020636f6e737420, 0x696e707574203d20, 0x7265616465722862, 0x79746573292c206f, + 0x7065726174696f6e, 0x73203d205b5d3b0a, 0x2020202020202020, 0x2f2f205265746169, 0x6e20656163682066, + 0x756c6c7920646563, 0x6f646564204e414d, 0x45206576656e2069, 0x662061206c617465, 0x72206f7065726174, + 0x696f6e206f722076, 0x616c69646174696f, 0x6e2072656a656374, 0x7320746865206261, 0x7463682e0a202020, + 0x2020202020776869, 0x6c65202821696e70, 0x75742e646f6e6529, 0x207b0a2020202020, 0x2020202020202063, + 0x6f6e7374206f7020, 0x3d20696e7075742e, 0x6279746528293b0a, 0x2020202020202020, 0x2020202069662028, + 0x6f70203c2031207c, 0x7c206f70203e2031, 0x3329207468726f77, 0x206e657720457272, 0x6f722860756e6b6e, + 0x6f776e20444f4d20, 0x6f7065726174696f, 0x6e20247b6f707d60, 0x293b0a2020202020, 0x2020202020202063, + 0x6f6e73742061203d, 0x20696e7075742e75, 0x696e7428293b0a20, 0x2020202020202020, 0x202020636f6e7374, + 0x2062203d205b322c, 0x20342c20352c2036, 0x2c20382c20392c20, 0x31312c2031322c20, 0x31335d2e696e636c, + 0x75646573286f7029, 0x203f20696e707574, 0x2e75696e74282920, 0x3a20303b0a202020, 0x2020202020202020, + 0x20636f6e73742063, 0x203d206f70203d3d, 0x3d2039203f20696e, 0x7075742e75696e74, 0x2829203a206f7020, + 0x3d3d3d203131203f, 0x20696e7075742e62, 0x7974652829203a20, 0x303b0a2020202020, 0x2020202020202063, + 0x6f6e73742076616c, 0x7565203d205b312c, 0x20332c20342c2036, 0x2c20375d2e696e63, 0x6c75646573286f70, + 0x29203f20696e7075, 0x742e737472696e67, 0x2829203a2027273b, 0x0a20202020202020, 0x2020202020696620, + 0x286f70203d3d3d20, 0x3129207b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x73742073697a6520, + 0x3d20656e636f6465, 0x722e656e636f6465, 0x2876616c7565292e, 0x6c656e6774683b0a, 0x2020202020202020, + 0x2020202020202020, 0x696620286120213d, 0x3d206e616d65732e, 0x6c656e677468207c, 0x7c2061203e3d206d, + 0x6178456e74726965, 0x73207c7c2073697a, 0x65203e2031303234, 0x207c7c2073697a65, 0x203e206d61784e61, + 0x6d65427974657320, 0x2d206e616d654279, 0x746573290a202020, 0x2020202020202020, 0x2020202020202020, + 0x207468726f77206e, 0x6577204572726f72, 0x2827696e76616c69, 0x6420444f4d206e61, 0x6d6520646566696e, + 0x6974696f6e206f72, 0x2064696374696f6e, 0x6172792062756467, 0x657427293b0a2020, 0x2020202020202020, + 0x2020202020206e61, 0x6d65732e70757368, 0x2876616c7565293b, 0x0a20202020202020, 0x2020202020202020, + 0x206e616d65427974, 0x6573202b3d207369, 0x7a653b0a20202020, 0x2020202020202020, 0x7d0a202020202020, + 0x2020202020206f70, 0x65726174696f6e73, 0x2e70757368287b6f, 0x702c20612c20622c, 0x20632c2076616c75, + 0x652c206e616d654c, 0x696d69743a206e61, 0x6d65732e6c656e67, 0x74687d293b0a2020, 0x2020202020207d0a, + 0x2020202020202020, 0x72657475726e206f, 0x7065726174696f6e, 0x733b0a202020207d, 0x0a0a202020206675, + 0x6e6374696f6e2061, 0x70706c7928627974, 0x657329207b0a2020, 0x202020202020636f, 0x6e7374206f706572, + 0x6174696f6e73203d, 0x206465636f646528, 0x6279746573293b0a, 0x2020202020202020, 0x2f2f204f6e6c7920, + 0x6564697465642072, 0x65636f7264732061, 0x6e64206368696c64, 0x2d7365742064656c, 0x7461732061726520, + 0x636f706965642e20, 0x556e746f75636865, 0x6420656e74726965, 0x7320737461792069, 0x6e20746865206c69, + 0x7665207461626c65, 0x2e0a202020202020, 0x2020636f6e737420, 0x6368616e67657320, 0x3d206e6577204d61, + 0x7028292c206e6577, 0x4d6f756e7473203d, 0x206e657720536574, 0x28293b0a20202020, 0x202020206c657420, + 0x6c69766553697a65, 0x203d206e6f646573, 0x2e73697a653b0a20, 0x2020202020202063, 0x6f6e7374206c6f6f, + 0x6b7570203d206964, 0x203d3e206368616e, 0x6765732e68617328, 0x696429203f206368, 0x616e6765732e6765, + 0x7428696429203a20, 0x6e6f6465732e6765, 0x74286964293b0a20, 0x2020202020202063, 0x6f6e737420737465, + 0x7073203d205b5d3b, 0x0a20202020202020, 0x20636f6e73742067, 0x6574203d20696420, 0x3d3e207b0a202020, + 0x2020202020202020, 0x20636f6e73742065, 0x6e747279203d206c, 0x6f6f6b7570286964, 0x293b0a2020202020, + 0x2020202020202069, 0x66202821656e7472, 0x7929207468726f77, 0x206e657720457272, 0x6f722860756e6b6e, + 0x6f776e20444f4d20, 0x6e6f646520247b69, 0x647d60293b0a2020, 0x2020202020202020, 0x202072657475726e, + 0x20656e7472793b0a, 0x2020202020202020, 0x7d3b0a2020202020, 0x202020636f6e7374, 0x2065646974203d20, + 0x6964203d3e207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420656e74727920, 0x3d20676574286964, + 0x293b0a2020202020, 0x2020202020202069, 0x662028216368616e, 0x6765732e68617328, 0x6964292920636861, + 0x6e6765732e736574, 0x2869642c207b2e2e, 0x2e656e7472792c20, 0x6368696c6472656e, 0x3a206e6577204368, + 0x696c6444656c7461, 0x28656e7472792e63, 0x68696c6472656e29, 0x7d293b0a20202020, 0x2020202020202020, + 0x72657475726e2063, 0x68616e6765732e67, 0x6574286964293b0a, 0x2020202020202020, 0x7d3b0a2020202020, + 0x202020636f6e7374, 0x207772697461626c, 0x65203d206964203d, 0x3e207b0a20202020, 0x2020202020202020, + 0x636f6e737420656e, 0x747279203d206765, 0x74286964293b0a20, 0x2020202020202020, 0x2020206966202865, + 0x6e7472792e69736c, 0x616e642920746872, 0x6f77206e65772045, 0x72726f7228277468, 0x652070616765206f, + 0x776e732074686520, 0x69736c616e642065, 0x6c656d656e742729, 0x3b0a202020202020, 0x2020202020207265, + 0x7475726e20656e74, 0x72793b0a20202020, 0x202020207d3b0a20, 0x2020202020202063, 0x6f6e737420656c65, + 0x6d656e74203d2069, 0x64203d3e207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20656e747279203d, + 0x207772697461626c, 0x65286964293b0a20, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e746578, + 0x7429207468726f77, 0x206e657720457272, 0x6f72282765787065, 0x6374656420444f4d, 0x20656c656d656e74, + 0x27293b0a20202020, 0x2020202020202020, 0x72657475726e2065, 0x6e7472793b0a2020, 0x2020202020207d3b, + 0x0a20202020202020, 0x20636f6e73742066, 0x72657368203d2028, 0x69642c20656e7472, 0x7929203d3e207b0a, + 0x2020202020202020, 0x2020202069662028, 0x216964207c7c206c, 0x6f6f6b7570286964, 0x29207c7c206c6976, + 0x6553697a65203e3d, 0x206d6178456e7472, 0x6965732920746872, 0x6f77206e65772045, 0x72726f722827696e, + 0x76616c6964206f72, 0x206475706c696361, 0x746520444f4d206e, 0x6f646527293b0a20, 0x2020202020202020, + 0x2020206368616e67, 0x65732e7365742869, 0x642c207b2e2e2e65, 0x6e7472792c207061, 0x72656e743a206e75, + 0x6c6c2c206368696c, 0x6472656e3a206e65, 0x772053657428297d, 0x293b0a2020202020, 0x202020202020202b, + 0x2b6c69766553697a, 0x653b0a2020202020, 0x2020207d3b0a2020, 0x202020202020636f, 0x6e737420666f7267, + 0x6574203d20696420, 0x3d3e207b0a202020, 0x2020202020202020, 0x202f2f2049746572, 0x6174697665207472, + 0x6176657273616c3a, 0x20686f7374696c65, 0x2064656570207472, 0x656573206d757374, 0x206e6f74206f7665, + 0x72666c6f77207468, 0x65204a6176615363, 0x7269707420737461, 0x636b2e0a20202020, 0x2020202020202020, + 0x636f6e7374207065, 0x6e64696e67203d20, 0x5b69645d3b0a2020, 0x2020202020202020, 0x20207768696c6520, + 0x2870656e64696e67, 0x2e6c656e67746829, 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, + 0x2063757272656e74, 0x203d2070656e6469, 0x6e672e706f702829, 0x2c20656e74727920, 0x3d20676574286375, + 0x7272656e74293b0a, 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, 0x7374206368696c64, + 0x206f6620656e7472, 0x792e6368696c6472, 0x656e292070656e64, 0x696e672e70757368, 0x286368696c64293b, + 0x0a20202020202020, 0x2020202020202020, 0x206368616e676573, 0x2e73657428637572, 0x72656e742c206e75, + 0x6c6c293b0a202020, 0x2020202020202020, 0x20202020202d2d6c, 0x69766553697a653b, 0x0a20202020202020, + 0x20202020207d0a20, 0x202020202020207d, 0x3b0a202020202020, 0x2020666f72202863, 0x6f6e7374207b6f70, + 0x2c20612c20622c20, 0x632c2076616c7565, 0x2c206e616d654c69, 0x6d69747d206f6620, 0x6f7065726174696f, + 0x6e7329207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6e616d654174203d, 0x20696e646578203d, + 0x3e207b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x696e646578203e3d, 0x206e616d654c696d, + 0x697429207468726f, 0x77206e6577204572, 0x726f722860756e6b, 0x6e6f776e20444f4d, 0x206e616d6520247b, + 0x696e6465787d6029, 0x3b0a202020202020, 0x2020202020202020, 0x202072657475726e, 0x206e616d65735b69, + 0x6e6465785d3b0a20, 0x2020202020202020, 0x2020207d3b0a2020, 0x2020202020202020, 0x2020737769746368, + 0x20286f7029207b0a, 0x2020202020202020, 0x2020202063617365, 0x20313a2062726561, 0x6b3b0a2020202020, + 0x2020202020202063, 0x61736520323a207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742074, + 0x6167203d206e616d, 0x6541742862293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821746167, + 0x732e686173287461, 0x6729207c7c20666f, 0x7262696464656e54, 0x6167732e68617328, 0x7461672929207468, + 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d20746167, 0x20247b7461677d60, + 0x293b0a2020202020, 0x2020202020202020, 0x2020206672657368, 0x28612c207b746578, 0x743a2066616c7365, + 0x7d293b0a20202020, 0x2020202020202020, 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, + 0x6f6465732e736574, 0x28612c207b6e6f64, 0x653a20646f63756d, 0x656e742e63726561, 0x7465456c656d656e, + 0x7428746167297d29, 0x3b207d293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, + 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x61736520333a0a20, 0x2020202020202020, + 0x2020202020202066, 0x7265736828612c20, 0x7b746578743a2074, 0x7275657d293b0a20, 0x2020202020202020, + 0x2020202020202073, 0x746570732e707573, 0x68282829203d3e20, 0x7b206e6f6465732e, 0x73657428612c207b, + 0x6e6f64653a20646f, 0x63756d656e742e63, 0x7265617465546578, 0x744e6f6465287661, 0x6c7565297d293b20, + 0x7d293b0a20202020, 0x2020202020202020, 0x2020202062726561, 0x6b3b0a2020202020, 0x2020202020202063, + 0x61736520343a2063, 0x61736520353a207b, 0x0a20202020202020, 0x2020202020202020, 0x20656c656d656e74, + 0x2861293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206e616d6520, 0x3d206e616d654174, + 0x2862293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2821616c6c6f7765, 0x6441747472696275, + 0x7465286e616d6529, 0x29207468726f7720, 0x6e6577204572726f, 0x722860666f726269, 0x6464656e20444f4d, + 0x2061747472696275, 0x746520247b6e616d, 0x657d60293b0a2020, 0x2020202020202020, 0x2020202020206966, + 0x20286f70203d3d3d, 0x2034202626207572, 0x6c41747472696275, 0x7465732e68617328, 0x6e616d6529202626, + 0x2021736166655572, 0x6c2876616c756529, 0x29207468726f7720, 0x6e6577204572726f, 0x722827756e736166, + 0x6520444f4d205552, 0x4c27293b0a202020, 0x2020202020202020, 0x2020202020737465, 0x70732e7075736828, + 0x2829203d3e206f70, 0x203d3d3d2034203f, 0x206e6f6465732e67, 0x65742861292e6e6f, 0x64652e7365744174, + 0x7472696275746528, 0x6e616d652c207661, 0x6c756529203a206e, 0x6f6465732e676574, 0x2861292e6e6f6465, + 0x2e72656d6f766541, 0x7474726962757465, 0x286e616d6529293b, 0x0a20202020202020, 0x2020202020202020, + 0x20627265616b3b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x2020636173652036, + 0x3a207b0a20202020, 0x2020202020202020, 0x20202020656c656d, 0x656e742861293b0a, 0x2020202020202020, + 0x2020202020202020, 0x636f6e7374206e61, 0x6d65203d206e616d, 0x6541742862293b0a, 0x2020202020202020, + 0x2020202020202020, 0x696620282170726f, 0x70657274794e616d, 0x65732e686173286e, 0x616d652929207468, + 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d2070726f, 0x706572747920247b, + 0x6e616d657d60293b, 0x0a20202020202020, 0x2020202020202020, 0x20696620285b2763, 0x6865636b6564272c, + 0x202764697361626c, 0x6564272c2027696e, 0x64657465726d696e, 0x617465275d2e696e, 0x636c75646573286e, + 0x616d652920262620, 0x215b277472756527, 0x2c202766616c7365, 0x275d2e696e636c75, 0x6465732876616c75, + 0x6529290a20202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, + 0x27696e76616c6964, 0x20444f4d20626f6f, 0x6c65616e27293b0a, 0x2020202020202020, 0x2020202020202020, + 0x696620286e616d65, 0x203d3d3d20277365, 0x6c6563746564496e, 0x6465782720262620, 0x28212f5e2d3f5c64, + 0x2b242f2e74657374, 0x2876616c75652920, 0x7c7c20214e756d62, 0x65722e6973496e74, 0x65676572284e756d, + 0x6265722876616c75, 0x652929207c7c204e, 0x756d626572287661, 0x6c756529203c202d, 0x31207c7c204e756d, + 0x6265722876616c75, 0x6529203e20323134, 0x3734383336343729, 0x290a202020202020, 0x2020202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d2073656c6563, + 0x746564496e646578, 0x27293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420636f6e766572, + 0x746564203d206e61, 0x6d65203d3d3d2027, 0x76616c756527203f, 0x2076616c7565203a, 0x206e616d65203d3d, + 0x3d202773656c6563, 0x746564496e646578, 0x27203f204e756d62, 0x65722876616c7565, 0x29203a2076616c75, + 0x65203d3d3d202774, 0x727565273b0a2020, 0x2020202020202020, 0x2020202020207374, 0x6570732e70757368, + 0x282829203d3e207b, 0x206e6f6465732e67, 0x65742861292e6e6f, 0x64655b6e616d655d, 0x203d20636f6e7665, + 0x727465643b207d29, 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, + 0x20202020207d0a20, 0x2020202020202020, 0x2020206361736520, 0x373a0a2020202020, 0x2020202020202020, + 0x2020206966202821, 0x7772697461626c65, 0x2861292e74657874, 0x29207468726f7720, 0x6e6577204572726f, + 0x7228275345545f54, 0x4558542072657175, 0x6972657320612074, 0x657874206e6f6465, 0x27293b0a20202020, 0x2020202020202020, 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, 0x6f6465732e676574, - 0x2861292e6e6f6465, 0x5b6e616d655d203d, 0x20636f6e76657274, 0x65643b207d293b0a, 0x2020202020202020, - 0x2020202020202020, 0x627265616b3b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, - 0x206361736520373a, 0x0a20202020202020, 0x2020202020202020, 0x2069662028217772, 0x697461626c652861, - 0x292e746578742920, 0x7468726f77206e65, 0x77204572726f7228, 0x275345545f544558, 0x5420726571756972, - 0x6573206120746578, 0x74206e6f64652729, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, - 0x7075736828282920, 0x3d3e207b206e6f64, 0x65732e6765742861, 0x292e6e6f64652e64, 0x617461203d207661, - 0x6c75653b207d293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, - 0x2020202063617365, 0x20383a2063617365, 0x20393a207b0a2020, 0x2020202020202020, 0x202020202020636f, - 0x6e73742070617265, 0x6e74203d20676574, 0x2861292c20636869, 0x6c64203d20777269, 0x7461626c65286229, - 0x3b0a202020202020, 0x2020202020202020, 0x2020696620287061, 0x72656e742e746578, 0x7429207468726f77, - 0x206e657720457272, 0x6f72282761207465, 0x7874206e6f646520, 0x63616e6e6f74206f, 0x776e206368696c64, - 0x72656e27293b0a20, 0x2020202020202020, 0x2020202020202069, 0x6620286f70203d3d, 0x3d20392026262067, - 0x65742863292e7061, 0x72656e7420213d3d, 0x206129207468726f, 0x77206e6577204572, 0x726f722827696e73, - 0x6572744265666f72, 0x6520726566657265, 0x6e6365206973206e, 0x6f74206120636869, 0x6c6427293b0a2020, - 0x2020202020202020, 0x202020202020666f, 0x7220286c65742061, 0x6e636573746f7220, 0x3d20613b20616e63, - 0x6573746f7220213d, 0x3d206e756c6c3b20, 0x616e636573746f72, 0x203d206765742861, 0x6e636573746f7229, - 0x2e706172656e7429, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, 0x28616e636573746f, - 0x72203d3d3d206229, 0x207468726f77206e, 0x6577204572726f72, 0x2827444f4d206379, 0x636c6527293b0a20, - 0x2020202020202020, 0x2020202020202069, 0x6620286368696c64, 0x2e706172656e7420, 0x213d3d206e756c6c, - 0x2920676574286368, 0x696c642e70617265, 0x6e74292e6368696c, 0x6472656e2e64656c, 0x6574652862293b0a, - 0x2020202020202020, 0x2020202020202020, 0x6368696c642e7061, 0x72656e74203d2061, 0x3b0a202020202020, - 0x2020202020202020, 0x2020706172656e74, 0x2e6368696c647265, 0x6e2e616464286229, 0x3b0a202020202020, - 0x2020202020202020, 0x202073746570732e, 0x7075736828282920, 0x3d3e206f70203d3d, 0x3d2038203f206e6f, - 0x6465732e67657428, 0x61292e6e6f64652e, 0x617070656e644368, 0x696c64286e6f6465, 0x732e676574286229, - 0x2e6e6f646529203a, 0x0a20202020202020, 0x2020202020202020, 0x20202020206e6f64, 0x65732e6765742861, - 0x292e6e6f64652e69, 0x6e73657274426566, 0x6f7265286e6f6465, 0x732e676574286229, 0x2e6e6f64652c206e, - 0x6f6465732e676574, 0x2863292e6e6f6465, 0x29293b0a20202020, 0x2020202020202020, 0x2020202062726561, - 0x6b3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020636173, 0x652031303a207b0a, - 0x2020202020202020, 0x2020202020202020, 0x636f6e737420656e, 0x747279203d207772, 0x697461626c652861, - 0x293b0a2020202020, 0x2020202020202020, 0x2020206966202865, 0x6e7472792e706172, 0x656e7420213d3d20, - 0x6e756c6c29206765, 0x7428656e7472792e, 0x706172656e74292e, 0x6368696c6472656e, 0x2e64656c65746528, - 0x61293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x742072656d6f7665, 0x64203d205b5d3b0a, - 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207065, 0x6e64696e67203d20, 0x5b615d3b0a202020, - 0x2020202020202020, 0x2020202020776869, 0x6c65202870656e64, 0x696e672e6c656e67, 0x746829207b0a2020, - 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x6964203d2070656e, 0x64696e672e706f70, - 0x28293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x72656d6f7665642e, 0x7075736828696429, - 0x3b0a202020202020, 0x2020202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x206368696c64206f, - 0x6620676574286964, 0x292e6368696c6472, 0x656e292070656e64, 0x696e672e70757368, 0x286368696c64293b, - 0x0a20202020202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202020, 0x202020666f726765, - 0x742861293b0a2020, 0x2020202020202020, 0x2020202020207374, 0x6570732e70757368, 0x282829203d3e207b, - 0x0a20202020202020, 0x2020202020202020, 0x20202020206e6f64, 0x65732e6765742861, 0x292e6e6f64652e72, - 0x656d6f766528293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, - 0x6964206f66207265, 0x6d6f76656429206e, 0x6f6465732e64656c, 0x657465286964293b, 0x0a20202020202020, - 0x2020202020202020, 0x2020202020636c65, 0x616e4c697374656e, 0x657273286e6f6465, 0x73293b0a20202020, - 0x2020202020202020, 0x202020207d293b0a, 0x2020202020202020, 0x2020202020202020, 0x627265616b3b0a20, - 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2063617365203131, 0x3a20636173652031, - 0x323a207b0a202020, 0x2020202020202020, 0x2020202020656c65, 0x6d656e742861293b, 0x0a20202020202020, - 0x2020202020202020, 0x20636f6e7374206e, 0x616d65203d206e61, 0x6d6541742862293b, 0x0a20202020202020, - 0x2020202020202020, 0x2069662028216576, 0x656e74732e686173, 0x286e616d6529207c, 0x7c2063203e203329, - 0x207468726f77206e, 0x6577204572726f72, 0x2827696e76616c69, 0x6420444f4d206576, 0x656e74206f722066, - 0x6c61677327293b0a, 0x2020202020202020, 0x2020202020202020, 0x73746570732e7075, 0x7368282829203d3e, - 0x206f70203d3d3d20, 0x3131203f206c6973, 0x74656e28612c2062, 0x2c206e616d652c20, 0x6329203a20756e6c, - 0x697374656e28612c, 0x206229293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, - 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x6173652031333a20, 0x7b0a202020202020, - 0x2020202020202020, 0x2020636f6e737420, 0x6e616d65203d206e, 0x616d654174286229, 0x2c206e6f6465203d, - 0x2069736c616e6473, 0x2e676574286e616d, 0x65293f2e656c656d, 0x656e743b0a202020, 0x2020202020202020, - 0x2020202020696620, 0x28216e6f64652920, 0x7468726f77206e65, 0x77204572726f7228, 0x60756e6b6e6f776e, - 0x20444f4d2069736c, 0x616e6420247b6e61, 0x6d657d60293b0a20, 0x2020202020202020, 0x2020202020202069, - 0x6620284172726179, 0x2e66726f6d287368, 0x61646f772e76616c, 0x7565732829292e73, 0x6f6d6528656e7472, - 0x79203d3e20656e74, 0x72792e6e6f646520, 0x3d3d3d206e6f6465, 0x2929207468726f77, 0x206e657720457272, - 0x6f72282769736c61, 0x6e6420616c726561, 0x6479206d6f756e74, 0x656427293b0a2020, 0x2020202020202020, - 0x2020202020206672, 0x65736828612c207b, 0x6e6f64652c207465, 0x78743a2066616c73, 0x652c2069736c616e, - 0x643a20747275657d, 0x293b0a2020202020, 0x2020202020202020, 0x2020207374657073, 0x2e70757368282829, - 0x203d3e206e6f6465, 0x732e73657428612c, 0x207b6e6f64657d29, 0x293b0a2020202020, 0x2020202020202020, - 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x202020207d0a2020, - 0x2020202020207d0a, 0x2020202020202020, 0x2f2f205265736964, 0x75616c20444f4d20, 0x657863657074696f, - 0x6e732028666f7220, 0x6578616d706c6520, 0x6120706167652773, 0x20637573746f6d20, 0x656c656d656e7429, - 0x2070726f70616761, 0x746520746f207468, 0x6520627269646765, 0x2061732061207265, 0x6a656374696f6e2e, - 0x0a20202020202020, 0x202f2f20496e2074, 0x6861742063617365, 0x2064697363617264, 0x2068616e646c6573, - 0x3a20746865206163, 0x7475616c20444f4d, 0x206d617920686176, 0x65206265656e2070, 0x6172746c79206368, - 0x616e67656420616e, 0x64206d7573742062, 0x65206c656e742061, 0x6761696e2e0a2020, 0x2020202020207472, - 0x79207b0a20202020, 0x2020202020202020, 0x666f722028636f6e, 0x7374207374657020, 0x6f66207374657073, - 0x2920737465702829, 0x3b0a202020202020, 0x20207d2063617463, 0x6820286572726f72, 0x29207b0a20202020, - 0x2020202020202020, 0x636c65616e4c6973, 0x74656e657273286e, 0x6577204d61702829, 0x293b0a2020202020, - 0x202020202020206e, 0x6f6465732e636c65, 0x617228293b0a2020, 0x2020202020202020, 0x202069736c616e64, - 0x732e636c65617228, 0x293b0a2020202020, 0x2020202020202074, 0x68726f7720657272, 0x6f723b0a20202020, - 0x202020207d0a2020, 0x202020202020666f, 0x722028636f6e7374, 0x205b69642c20656e, 0x7472795d206f6620, - 0x736861646f772920, 0x656e7472792e6e6f, 0x6465203d206e6f64, 0x65732e6765742869, 0x64292e6e6f64653b, - 0x0a20202020202020, 0x206e6f646573203d, 0x20736861646f773b, 0x0a202020207d0a0a, 0x20202020636f6e73, - 0x7420617069203d20, 0x7b0a202020202020, 0x20206170706c792c, 0x0a20202020202020, 0x2069736c616e6428, - 0x6e616d652c20656c, 0x656d656e7429207b, 0x0a20202020202020, 0x2020202020696620, 0x282128656c656d65, - 0x6e7420696e737461, 0x6e63656f66204854, 0x4d4c456c656d656e, 0x7429207c7c202174, 0x6167732e68617328, - 0x656c656d656e742e, 0x6c6f63616c4e616d, 0x6529207c7c20666f, 0x7262696464656e54, 0x6167732e68617328, - 0x656c656d656e742e, 0x6c6f63616c4e616d, 0x6529290a20202020, 0x2020202020202020, 0x202020207468726f, - 0x77206e6577205479, 0x70654572726f7228, 0x27616e2069736c61, 0x6e64206d75737420, 0x626520616e20616c, - 0x6c6f776564204854, 0x4d4c20656c656d65, 0x6e7427293b0a2020, 0x2020202020202020, 0x2020636f6e737420, - 0x70726576696f7573, 0x203d2069736c616e, 0x64732e676574286e, 0x616d65293b0a2020, 0x2020202020202020, - 0x2020696620287072, 0x6576696f75732026, 0x262070726576696f, 0x75732e656c656d65, 0x6e7420213d3d2065, - 0x6c656d656e742920, 0x7468726f77206e65, 0x77204572726f7228, 0x2769736c616e6420, 0x6e616d6520616c72, - 0x65616479206c656e, 0x7427293b0a202020, 0x2020202020202020, 0x2069662028217072, 0x6576696f75732920, - 0x7b0a202020202020, 0x2020202020202020, 0x202069662028656c, 0x656d656e742e6368, 0x696c644e6f646573, - 0x2e6c656e67746820, 0x7c7c204172726179, 0x2e66726f6d286973, 0x6c616e64732e7661, 0x6c7565732829292e, - 0x736f6d6528656e74, 0x7279203d3e20656e, 0x7472792e656c656d, 0x656e74203d3d3d20, 0x656c656d656e7420, - 0x7c7c20656e747279, 0x2e656c656d656e74, 0x2e636f6e7461696e, 0x7328656c656d656e, 0x7429207c7c20656c, - 0x656d656e742e636f, 0x6e7461696e732865, 0x6e7472792e656c65, 0x6d656e742929290a, 0x2020202020202020, - 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f72282769736c, 0x616e6473206d7573, - 0x7420626520656d70, 0x747920616e642064, 0x69736a6f696e7427, 0x293b0a2020202020, 0x202020202020207d, - 0x0a20202020202020, 0x2020202020636f6e, 0x737420746f6b656e, 0x203d207b656c656d, 0x656e747d3b0a2020, - 0x2020202020202020, 0x202069736c616e64, 0x732e736574286e61, 0x6d652c20746f6b65, 0x6e293b0a20202020, - 0x2020202020202020, 0x72657475726e2028, 0x29203d3e207b0a20, 0x2020202020202020, 0x2020202020202069, - 0x66202869736c616e, 0x64732e676574286e, 0x616d652920213d3d, 0x20746f6b656e2920, 0x72657475726e3b0a, - 0x2020202020202020, 0x2020202020202020, 0x69736c616e64732e, 0x64656c657465286e, 0x616d65293b0a2020, - 0x2020202020202020, 0x202020202020636f, 0x6e73742072656d6f, 0x766564203d206e65, 0x772053657428293b, - 0x0a20202020202020, 0x2020202020202020, 0x20666f722028636f, 0x6e7374205b69642c, 0x20656e7472795d20, - 0x6f66206e6f646573, 0x29207b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x69662028656e7472, - 0x792e6e6f6465203d, 0x3d3d20656c656d65, 0x6e74207c7c20656c, 0x656d656e742e636f, 0x6e7461696e732865, - 0x6e7472792e6e6f64, 0x6529292072656d6f, 0x7665642e61646428, 0x6964293b0a202020, 0x2020202020202020, - 0x2020202020202020, 0x20656c7365207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, - 0x666f7220286c6574, 0x20706172656e7420, 0x3d20656e7472792e, 0x706172656e743b20, 0x706172656e742021, - 0x3d3d206e756c6c3b, 0x20706172656e7420, 0x3d206e6f6465732e, 0x6765742870617265, 0x6e74293f2e706172, - 0x656e74203f3f206e, 0x756c6c290a202020, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, - 0x20696620286e6f64, 0x65732e6765742870, 0x6172656e74293f2e, 0x6e6f6465203d3d3d, 0x20656c656d656e74, - 0x29207b2072656d6f, 0x7665642e61646428, 0x6964293b20627265, 0x616b3b207d0a2020, 0x2020202020202020, - 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, - 0x202020202020666f, 0x722028636f6e7374, 0x206964206f662072, 0x656d6f7665642920, 0x6e6f6465732e6465, - 0x6c65746528696429, 0x3b0a202020202020, 0x2020202020202020, 0x2020636c65616e4c, 0x697374656e657273, - 0x286e6f646573293b, 0x0a20202020202020, 0x20202020207d3b0a, 0x2020202020202020, 0x7d2c0a202020207d, - 0x3b0a202020206272, 0x696467652e646f6d, 0x426174636848616e, 0x646c6572203d2061, 0x70706c793b0a2020, - 0x202072657475726e, 0x206170693b0a7d0a + 0x2861292e6e6f6465, 0x2e64617461203d20, 0x76616c75653b207d, 0x293b0a2020202020, 0x2020202020202020, + 0x202020627265616b, 0x3b0a202020202020, 0x2020202020206361, 0x736520383a206361, 0x736520393a207b0a, + 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207061, 0x72656e74203d2067, 0x65742861292c2063, + 0x68696c64203d2077, 0x72697461626c6528, 0x62293b0a20202020, 0x2020202020202020, 0x2020202069662028, + 0x706172656e742e74, 0x6578742920746872, 0x6f77206e65772045, 0x72726f7228276120, 0x74657874206e6f64, + 0x652063616e6e6f74, 0x206f776e20636869, 0x6c6472656e27293b, 0x0a20202020202020, 0x2020202020202020, + 0x20696620286f7020, 0x3d3d3d2039202626, 0x206765742863292e, 0x706172656e742021, 0x3d3d206129207468, + 0x726f77206e657720, 0x4572726f72282769, 0x6e73657274426566, 0x6f72652072656665, 0x72656e6365206973, + 0x206e6f7420612063, 0x68696c6427293b0a, 0x2020202020202020, 0x2020202020202020, 0x666f7220286c6574, + 0x20616e636573746f, 0x72203d20613b2061, 0x6e636573746f7220, 0x213d3d206e756c6c, 0x3b20616e63657374, + 0x6f72203d20676574, 0x28616e636573746f, 0x72292e706172656e, 0x74290a2020202020, 0x2020202020202020, + 0x2020202020202069, 0x662028616e636573, 0x746f72203d3d3d20, 0x6229207468726f77, 0x206e657720457272, + 0x6f722827444f4d20, 0x6379636c6527293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028636869, + 0x6c642e706172656e, 0x7420213d3d206e75, 0x6c6c292065646974, 0x286368696c642e70, 0x6172656e74292e63, + 0x68696c6472656e2e, 0x64656c6574652862, 0x293b0a2020202020, 0x2020202020202020, 0x2020206564697428, + 0x62292e706172656e, 0x74203d20613b0a20, 0x2020202020202020, 0x2020202020202065, 0x6469742861292e63, + 0x68696c6472656e2e, 0x6164642862293b0a, 0x2020202020202020, 0x2020202020202020, 0x73746570732e7075, + 0x7368282829203d3e, 0x206f70203d3d3d20, 0x38203f206e6f6465, 0x732e676574286129, 0x2e6e6f64652e6170, + 0x70656e644368696c, 0x64286e6f6465732e, 0x6765742862292e6e, 0x6f646529203a0a20, 0x2020202020202020, + 0x2020202020202020, 0x2020206e6f646573, 0x2e6765742861292e, 0x6e6f64652e696e73, 0x6572744265666f72, + 0x65286e6f6465732e, 0x6765742862292e6e, 0x6f64652c206e6f64, 0x65732e6765742863, 0x292e6e6f64652929, + 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x20202020207d0a20, + 0x2020202020202020, 0x2020206361736520, 0x31303a207b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e737420656e7472, 0x79203d2077726974, 0x61626c652861293b, 0x0a20202020202020, 0x2020202020202020, + 0x2069662028656e74, 0x72792e706172656e, 0x7420213d3d206e75, 0x6c6c292065646974, 0x28656e7472792e70, + 0x6172656e74292e63, 0x68696c6472656e2e, 0x64656c6574652861, 0x293b0a2020202020, 0x2020202020202020, + 0x202020636f6e7374, 0x2072656d6f766564, 0x203d205b5d3b0a20, 0x2020202020202020, 0x2020202020202063, + 0x6f6e73742070656e, 0x64696e67203d205b, 0x615d3b0a20202020, 0x2020202020202020, 0x202020207768696c, + 0x65202870656e6469, 0x6e672e6c656e6774, 0x6829207b0a202020, 0x2020202020202020, 0x2020202020202020, + 0x20636f6e73742069, 0x64203d2070656e64, 0x696e672e706f7028, 0x293b0a2020202020, 0x2020202020202020, + 0x2020202020202072, 0x656d6f7665642e70, 0x757368286964293b, 0x0a20202020202020, 0x2020202020202020, + 0x2020202020666f72, 0x2028636f6e737420, 0x6368696c64206f66, 0x2067657428696429, 0x2e6368696c647265, + 0x6e292070656e6469, 0x6e672e7075736828, 0x6368696c64293b0a, 0x2020202020202020, 0x2020202020202020, + 0x7d0a202020202020, 0x2020202020202020, 0x2020666f72676574, 0x2861293b0a202020, 0x2020202020202020, + 0x2020202020737465, 0x70732e7075736828, 0x2829203d3e207b0a, 0x2020202020202020, 0x2020202020202020, + 0x202020206e6f6465, 0x732e676574286129, 0x2e6e6f64652e7265, 0x6d6f766528293b0a, 0x2020202020202020, + 0x2020202020202020, 0x20202020666f7220, 0x28636f6e73742069, 0x64206f662072656d, 0x6f76656429206e6f, + 0x6465732e64656c65, 0x7465286964293b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020636c6561, + 0x6e4c697374656e65, 0x7273286e6f646573, 0x293b0a2020202020, 0x2020202020202020, 0x2020207d293b0a20, + 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x20207d0a20202020, + 0x2020202020202020, 0x636173652031313a, 0x2063617365203132, 0x3a207b0a20202020, 0x2020202020202020, + 0x20202020656c656d, 0x656e742861293b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206e61, + 0x6d65203d206e616d, 0x6541742862293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821657665, + 0x6e74732e68617328, 0x6e616d6529207c7c, 0x2063203e20332920, 0x7468726f77206e65, 0x77204572726f7228, + 0x27696e76616c6964, 0x20444f4d20657665, 0x6e74206f7220666c, 0x61677327293b0a20, 0x2020202020202020, + 0x2020202020202073, 0x746570732e707573, 0x68282829203d3e20, 0x6f70203d3d3d2031, 0x31203f206c697374, + 0x656e28612c20622c, 0x206e616d652c2063, 0x29203a20756e6c69, 0x7374656e28612c20, 0x6229293b0a202020, + 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x7d0a202020202020, + 0x2020202020206361, 0x73652031333a207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e7374206e, + 0x616d65203d206e61, 0x6d6541742862292c, 0x206e6f6465203d20, 0x69736c616e64732e, 0x676574286e616d65, + 0x293f2e656c656d65, 0x6e743b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x216e6f6465292074, + 0x68726f77206e6577, 0x204572726f722860, 0x756e6b6e6f776e20, 0x444f4d2069736c61, 0x6e6420247b6e616d, + 0x657d60293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20286d6f756e7465, 0x642e686173286e6f, + 0x646529207c7c206e, 0x65774d6f756e7473, 0x2e686173286e6f64, 0x652929207468726f, 0x77206e6577204572, + 0x726f72282769736c, 0x616e6420616c7265, 0x616479206d6f756e, 0x74656427293b0a20, 0x2020202020202020, + 0x202020202020206e, 0x65774d6f756e7473, 0x2e616464286e6f64, 0x65293b0a20202020, 0x2020202020202020, + 0x2020202066726573, 0x6828612c207b6e6f, 0x64652c2074657874, 0x3a2066616c73652c, 0x2069736c616e643a, + 0x20747275657d293b, 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, + 0x3e206e6f6465732e, 0x73657428612c207b, 0x6e6f64657d29293b, 0x0a20202020202020, 0x2020202020202020, + 0x20627265616b3b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207d0a20202020, + 0x202020207d0a2020, 0x2020202020202f2f, 0x2052657369647561, 0x6c20444f4d206578, 0x63657074696f6e73, + 0x2028666f72206578, 0x616d706c65206120, 0x7061676527732063, 0x7573746f6d20656c, 0x656d656e74292070, + 0x726f706167617465, 0x20746f2074686520, 0x6272696467652061, 0x7320612072656a65, 0x6374696f6e2e0a20, + 0x202020202020202f, 0x2f20496e20746861, 0x7420636173652064, 0x6973636172642068, 0x616e646c65733a20, + 0x7468652061637475, 0x616c20444f4d206d, 0x6179206861766520, 0x6265656e20706172, 0x746c79206368616e, + 0x67656420616e6420, 0x6d75737420626520, 0x6c656e7420616761, 0x696e2e0a20202020, 0x2020202074727920, + 0x7b0a202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x2073746570206f66, 0x2073746570732920, + 0x7374657028293b0a, 0x2020202020202020, 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, + 0x202020202020636c, 0x65616e4c69737465, 0x6e657273286e6577, 0x204d61702829293b, 0x0a20202020202020, + 0x20202020206e6f64, 0x65732e636c656172, 0x28293b0a20202020, 0x2020202020202020, 0x69736c616e64732e, + 0x636c65617228293b, 0x0a20202020202020, 0x20202020206d6f75, 0x6e746564203d206e, 0x6577205765616b53, + 0x657428293b0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6572726f723b0a20, 0x202020202020207d, + 0x0a20202020202020, 0x20666f722028636f, 0x6e7374205b69642c, 0x20656e7472795d20, 0x6f66206368616e67, + 0x657329207b0a2020, 0x2020202020202020, 0x2020696620282165, 0x6e74727929206e6f, 0x6465732e64656c65, + 0x7465286964293b0a, 0x2020202020202020, 0x20202020656c7365, 0x207b0a2020202020, 0x2020202020202020, + 0x202020656e747279, 0x2e6e6f6465203d20, 0x6e6f6465732e6765, 0x74286964292e6e6f, 0x64653b0a20202020, + 0x2020202020202020, 0x2020202069662028, 0x656e7472792e6368, 0x696c6472656e2069, 0x6e7374616e63656f, + 0x66204368696c6444, 0x656c74612920656e, 0x7472792e6368696c, 0x6472656e203d2065, 0x6e7472792e636869, + 0x6c6472656e2e636f, 0x6d6d697428293b0a, 0x2020202020202020, 0x2020202020202020, 0x6e6f6465732e7365, + 0x742869642c20656e, 0x747279293b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x202020207d0a2020, + 0x202020202020666f, 0x722028636f6e7374, 0x206e6f6465206f66, 0x206e65774d6f756e, 0x747329206d6f756e, + 0x7465642e61646428, 0x6e6f6465293b0a20, 0x2020207d0a0a2020, 0x2020636f6e737420, 0x617069203d207b0a, + 0x2020202020202020, 0x6170706c792c0a20, 0x2020202020202069, 0x736c616e64286e61, 0x6d652c20656c656d, + 0x656e7429207b0a20, 0x2020202020202020, 0x2020206966202821, 0x28656c656d656e74, 0x20696e7374616e63, + 0x656f662048544d4c, 0x456c656d656e7429, 0x207c7c2021746167, 0x732e68617328656c, 0x656d656e742e6c6f, + 0x63616c4e616d6529, 0x207c7c20666f7262, 0x696464656e546167, 0x732e68617328656c, 0x656d656e742e6c6f, + 0x63616c4e616d6529, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, + 0x4572726f72282761, 0x6e2069736c616e64, 0x206d757374206265, 0x20616e20616c6c6f, 0x7765642048544d4c, + 0x20656c656d656e74, 0x27293b0a20202020, 0x2020202020202020, 0x636f6e7374207072, 0x6576696f7573203d, + 0x2069736c616e6473, 0x2e676574286e616d, 0x65293b0a20202020, 0x2020202020202020, 0x6966202870726576, + 0x696f757320262620, 0x70726576696f7573, 0x2e656c656d656e74, 0x20213d3d20656c65, 0x6d656e7429207468, + 0x726f77206e657720, 0x4572726f72282769, 0x736c616e64206e61, 0x6d6520616c726561, 0x6479206c656e7427, + 0x293b0a2020202020, 0x2020202020202069, 0x6620282170726576, 0x696f757329207b0a, 0x2020202020202020, + 0x2020202020202020, 0x69662028656c656d, 0x656e742e6368696c, 0x644e6f6465732e6c, 0x656e677468207c7c, + 0x2041727261792e66, 0x726f6d2869736c61, 0x6e64732e76616c75, 0x65732829292e736f, 0x6d6528656e747279, + 0x203d3e20656e7472, 0x792e656c656d656e, 0x74203d3d3d20656c, 0x656d656e74207c7c, 0x20656e7472792e65, + 0x6c656d656e742e63, 0x6f6e7461696e7328, 0x656c656d656e7429, 0x207c7c20656c656d, 0x656e742e636f6e74, + 0x61696e7328656e74, 0x72792e656c656d65, 0x6e742929290a2020, 0x2020202020202020, 0x2020202020202020, + 0x20207468726f7720, 0x6e6577204572726f, 0x72282769736c616e, 0x6473206d75737420, 0x626520656d707479, + 0x20616e6420646973, 0x6a6f696e7427293b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x20746f6b656e203d, 0x207b656c656d656e, 0x747d3b0a20202020, 0x2020202020202020, + 0x69736c616e64732e, 0x736574286e616d65, 0x2c20746f6b656e29, 0x3b0a202020202020, 0x2020202020207265, + 0x7475726e20282920, 0x3d3e207b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2869736c616e6473, + 0x2e676574286e616d, 0x652920213d3d2074, 0x6f6b656e29207265, 0x7475726e3b0a2020, 0x2020202020202020, + 0x2020202020206973, 0x6c616e64732e6465, 0x6c657465286e616d, 0x65293b0a20202020, 0x2020202020202020, + 0x202020206d6f756e, 0x7465642e64656c65, 0x746528656c656d65, 0x6e74293b0a202020, 0x2020202020202020, + 0x2020202020636f6e, 0x73742072656d6f76, 0x6564203d206e6577, 0x2053657428293b0a, 0x2020202020202020, + 0x2020202020202020, 0x666f722028636f6e, 0x7374205b69642c20, 0x656e7472795d206f, 0x66206e6f64657329, + 0x207b0a2020202020, 0x2020202020202020, 0x2020202020202069, 0x662028656e747279, 0x2e6e6f6465203d3d, + 0x3d20656c656d656e, 0x74207c7c20656c65, 0x6d656e742e636f6e, 0x7461696e7328656e, 0x7472792e6e6f6465, + 0x29292072656d6f76, 0x65642e6164642869, 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, + 0x656c7365207b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020202020202066, 0x6f7220286c657420, + 0x706172656e74203d, 0x20656e7472792e70, 0x6172656e743b2070, 0x6172656e7420213d, 0x3d206e756c6c3b20, + 0x706172656e74203d, 0x206e6f6465732e67, 0x657428706172656e, 0x74293f2e70617265, 0x6e74203f3f206e75, + 0x6c6c290a20202020, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, 0x696620286e6f6465, + 0x732e676574287061, 0x72656e74293f2e6e, 0x6f6465203d3d3d20, 0x656c656d656e7429, 0x207b2072656d6f76, + 0x65642e6164642869, 0x64293b2062726561, 0x6b3b207d0a202020, 0x2020202020202020, 0x2020202020202020, + 0x207d0a2020202020, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2020202020666f72, + 0x2028636f6e737420, 0x6964206f66207265, 0x6d6f76656429206e, 0x6f6465732e64656c, 0x657465286964293b, + 0x0a20202020202020, 0x2020202020202020, 0x20636c65616e4c69, 0x7374656e65727328, 0x6e6f646573293b0a, + 0x2020202020202020, 0x202020207d3b0a20, 0x202020202020207d, 0x2c0a202020207d3b, 0x0a20202020627269, + 0x6467652e646f6d42, 0x6174636848616e64, 0x6c6572203d206170, 0x706c793b0a202020, 0x2072657475726e20, + 0x6170693b0a7d0a00 }; }; diff --git a/include/webfront/system/IndexFS.hpp b/include/webfront/system/IndexFS.hpp index d1383d26..d65dede5 100644 --- a/include/webfront/system/IndexFS.hpp +++ b/include/webfront/system/IndexFS.hpp @@ -3,11 +3,11 @@ /// @brief Virtual file system providing access to WebFront.js, favicon.ico and a minimal index.html. #pragma once +#include "DomInterpreterData.hpp" #include "FallbackIndexHtmlData.hpp" #include "FallbackModuleData.hpp" #include "FaviconData.hpp" #include "FileSystem.hpp" -#include "DomInterpreterData.hpp" #include "WebFrontJsData.hpp" #include diff --git a/js/core/dom-interpreter.mjs b/js/core/dom-interpreter.mjs index 0f026338..89587d6d 100644 --- a/js/core/dom-interpreter.mjs +++ b/js/core/dom-interpreter.mjs @@ -1,6 +1,7 @@ // ADR-003: optional DOM command interpreter. Only this module touches the DOM; WebFront.js routes command 5. const maxBytes = 1024 * 1024; const maxEntries = 65536; +const maxNameBytes = 1024 * 1024; const decoder = new TextDecoder('utf-8', {fatal: true, ignoreBOM: true}); const encoder = new TextEncoder(); const defaultTags = 'div span p ul ol li button input label select option form fieldset legend h1 h2 h3 h4 table thead tbody tr td th strong em small output progress meter textarea section header footer nav a img br hr pre code'; @@ -42,6 +43,22 @@ function reader(bytes) { }; } +// Transactional child-set overlay: editing a wide parent does not copy or scan its existing children. +class ChildDelta { + constructor(base) { this.base = base; this.added = new Set(); this.removed = new Set(); } + add(id) { this.removed.delete(id); if (!this.base.has(id)) this.added.add(id); } + delete(id) { if (!this.added.delete(id) && this.base.has(id)) this.removed.add(id); } + *[Symbol.iterator]() { + for (const id of this.base) if (!this.removed.has(id)) yield id; + yield* this.added; + } + commit() { + for (const id of this.removed) this.base.delete(id); + for (const id of this.added) this.base.add(id); + return this.base; + } +} + /** Install once per bridge/document. The page explicitly lends empty elements with island(name, element). * Extension lists are copied; executable tags/attributes and unsafe URL schemes remain forbidden. * apply throws on rejection; the bridge reports it to C++ as wfDom.rejected(batchId, reason). @@ -59,7 +76,9 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = } } const names = []; - let nodes = new Map(); + let nameBytes = 0; + const nodes = new Map(); + let mounted = new WeakSet(); const islands = new Map(), listeners = new Map(); const allowedAttribute = name => !name.startsWith('on') && !forbiddenAttributes.has(name) && (attributes.has(name) || /^(aria|data)-[a-z0-9-]+$/.test(name)); @@ -104,9 +123,11 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = const c = op === 9 ? input.uint() : op === 11 ? input.byte() : 0; const value = [1, 3, 4, 6, 7].includes(op) ? input.string() : ''; if (op === 1) { - if (a !== names.length || a >= maxEntries || encoder.encode(value).length > 1024) - throw new Error('invalid DOM name definition'); + const size = encoder.encode(value).length; + if (a !== names.length || a >= maxEntries || size > 1024 || size > maxNameBytes - nameBytes) + throw new Error('invalid DOM name definition or dictionary budget'); names.push(value); + nameBytes += size; } operations.push({op, a, b, c, value, nameLimit: names.length}); } @@ -115,14 +136,21 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = function apply(bytes) { const operations = decode(bytes); - // A shadow tree tracks the state produced by every preceding operation, including removals and moves. - const shadow = new Map(Array.from(nodes, ([id, entry]) => [id, {...entry, children: new Set(entry.children)}])); + // Only edited records and child-set deltas are copied. Untouched entries stay in the live table. + const changes = new Map(), newMounts = new Set(); + let liveSize = nodes.size; + const lookup = id => changes.has(id) ? changes.get(id) : nodes.get(id); const steps = []; const get = id => { - const entry = shadow.get(id); + const entry = lookup(id); if (!entry) throw new Error(`unknown DOM node ${id}`); return entry; }; + const edit = id => { + const entry = get(id); + if (!changes.has(id)) changes.set(id, {...entry, children: new ChildDelta(entry.children)}); + return changes.get(id); + }; const writable = id => { const entry = get(id); if (entry.island) throw new Error('the page owns the island element'); @@ -134,8 +162,9 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = return entry; }; const fresh = (id, entry) => { - if (!id || shadow.has(id) || shadow.size >= maxEntries) throw new Error('invalid or duplicate DOM node'); - shadow.set(id, {...entry, parent: null, children: new Set()}); + if (!id || lookup(id) || liveSize >= maxEntries) throw new Error('invalid or duplicate DOM node'); + changes.set(id, {...entry, parent: null, children: new Set()}); + ++liveSize; }; const forget = id => { // Iterative traversal: hostile deep trees must not overflow the JavaScript stack. @@ -143,7 +172,8 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = while (pending.length) { const current = pending.pop(), entry = get(current); for (const child of entry.children) pending.push(child); - shadow.delete(current); + changes.set(current, null); + --liveSize; } }; for (const {op, a, b, c, value, nameLimit} of operations) { @@ -194,16 +224,16 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = if (op === 9 && get(c).parent !== a) throw new Error('insertBefore reference is not a child'); for (let ancestor = a; ancestor !== null; ancestor = get(ancestor).parent) if (ancestor === b) throw new Error('DOM cycle'); - if (child.parent !== null) get(child.parent).children.delete(b); - child.parent = a; - parent.children.add(b); + if (child.parent !== null) edit(child.parent).children.delete(b); + edit(b).parent = a; + edit(a).children.add(b); steps.push(() => op === 8 ? nodes.get(a).node.appendChild(nodes.get(b).node) : nodes.get(a).node.insertBefore(nodes.get(b).node, nodes.get(c).node)); break; } case 10: { const entry = writable(a); - if (entry.parent !== null) get(entry.parent).children.delete(a); + if (entry.parent !== null) edit(entry.parent).children.delete(a); const removed = []; const pending = [a]; while (pending.length) { @@ -229,7 +259,8 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = case 13: { const name = nameAt(b), node = islands.get(name)?.element; if (!node) throw new Error(`unknown DOM island ${name}`); - if (Array.from(shadow.values()).some(entry => entry.node === node)) throw new Error('island already mounted'); + if (mounted.has(node) || newMounts.has(node)) throw new Error('island already mounted'); + newMounts.add(node); fresh(a, {node, text: false, island: true}); steps.push(() => nodes.set(a, {node})); break; @@ -244,10 +275,18 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = cleanListeners(new Map()); nodes.clear(); islands.clear(); + mounted = new WeakSet(); throw error; } - for (const [id, entry] of shadow) entry.node = nodes.get(id).node; - nodes = shadow; + for (const [id, entry] of changes) { + if (!entry) nodes.delete(id); + else { + entry.node = nodes.get(id).node; + if (entry.children instanceof ChildDelta) entry.children = entry.children.commit(); + nodes.set(id, entry); + } + } + for (const node of newMounts) mounted.add(node); } const api = { @@ -266,6 +305,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = return () => { if (islands.get(name) !== token) return; islands.delete(name); + mounted.delete(element); const removed = new Set(); for (const [id, entry] of nodes) { if (entry.node === element || element.contains(entry.node)) removed.add(id); diff --git a/test/unit/WebFrontTests.cpp b/test/unit/WebFrontTests.cpp index e886941b..a2995232 100644 --- a/test/unit/WebFrontTests.cpp +++ b/test/unit/WebFrontTests.cpp @@ -834,3 +834,17 @@ SCENARIO("Ephemeral ports are bound atomically and forwarded to the frontend") { REQUIRE(mock.port() == "0"); } } + +SCENARIO("Sending a DOM batch through a lost UI link throws ConnectionError") { + using App = BasicWFWithFrontend; + GIVEN("a UI handle whose connection is absent from the application") { + App app("9161"); + App::UI ui(app, 42); + msg::DomBatch batch(7); + batch.add({msg::DomOp::text, 1, 0, 0, "unreachable"}); + THEN("sending fails synchronously without queuing a frame") { + REQUIRE_THROWS_AS(ui.sendDomBatch(batch), ConnectionError); + REQUIRE(ui.pendingWrites() == 0); + } + } +} diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index 78ac6962..ca603f1e 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -38,6 +38,9 @@ constexpr string_view jsToCppToken{"js-to-cpp-token"}; struct TestState { atomic browserReady{false}; + atomic domBatchSent{false}; + atomic domRejectionObserved{false}; + atomic domEventsObserved{false}; atomic jsToCppObserved{false}; atomic jsExtendedFrameObserved{false}; atomic jsArraysObserved{false}; @@ -107,8 +110,9 @@ class BrowserIntegrationTest { optional rejectedWebSocket; optional cancelledTask; TestState state; + // Accessed only by callbacks on the server context. finish() runs after WfDriver joins app.shutdown(). std::map domRejections; - bool domBatchSent{}; + std::string domEventLog; optional connectedUI; UISubscription uiSubscription; future cppResult; @@ -270,16 +274,26 @@ class BrowserIntegrationTest { msg::DomBatch batch(id); for (const auto& operation : operations) batch.add(operation); ui.sendDomBatch(batch); - domBatchSent = true; + state.domBatchSent = true; }); webFront->cppFunction("wfDom.rejected", [this](uint32_t id, const string& reason) { domRejections[id] = reason; + state.domRejectionObserved = true; }); webFront->cppFunction("domBatchRejection", [this](uint32_t id) { const auto found = domRejections.find(id); return found == domRejections.end() ? string{} : found->second; }); + webFront->cppFunction("wfDom.event", [this](uint32_t node, uint32_t event, const string& value) { + domEventLog += to_string(node) + ":" + to_string(event) + ":" + value + "|"; + }); + webFront->cppFunction("domEventLog", [this] { + if (domEventLog == "10:4:hello|11:5:true|11:5:false|10:6:Escape|10:7:|") + state.domEventsObserved = true; + return domEventLog; + }); + webFront->cppFunction("cancelBrowserSender", [this] { if (cancelledTask) cancelledTask->requestStop(); @@ -424,7 +438,7 @@ class BrowserIntegrationTest { log::error("The specs did not report the end of the run"); return 1; } - if (!(domBatchSent && !domRejections.empty() && state.browserReady && state.subscriberNotified && browserCallsObserved() && cppCallsObserved() + if (!(state.domBatchSent && state.domRejectionObserved && state.domEventsObserved && state.browserReady && state.subscriberNotified && browserCallsObserved() && cppCallsObserved() && rejectedWebSocket->rejectedRequests() >= 2)) { log::error("The specs passed but one of the bridge-direction checks failed"); return 1; diff --git a/test/web/dom-benchmark.html b/test/web/dom-benchmark.html new file mode 100644 index 00000000..c1502c8c --- /dev/null +++ b/test/web/dom-benchmark.html @@ -0,0 +1,56 @@ + + +DOM batch measurement +

Single-operation DOM batches

+

Manual measurement on detached DOM trees. No timing threshold, transport, rendering or layout measurement.

+ +
Ready
+ diff --git a/test/web/suite/specs/dom-specs.mjs b/test/web/suite/specs/dom-specs.mjs index b5bf9665..7beb5276 100644 --- a/test/web/suite/specs/dom-specs.mjs +++ b/test/web/suite/specs/dom-specs.mjs @@ -162,15 +162,98 @@ describe('Embedded DOM command interpreter', () => { expect(root.isConnected).toBeTrue(); }); + it('does not scan unrelated nodes or siblings for a small text or append batch', () => { + const ops = []; + for (let id = 2; id < 2002; ++id) ops.push(text(id, 'x'), [8, 1, ...uint(id)]); + dom.apply(packet(ops)); + const update = packet([[7, 2, ...str('changed')], text(2002, 'new'), [8, 1, ...uint(2002)]]); + let visited = 0; + const originals = [Map.prototype[Symbol.iterator], Set.prototype[Symbol.iterator]]; + try { + for (const [prototype, original] of [[Map.prototype, originals[0]], [Set.prototype, originals[1]]]) { + prototype[Symbol.iterator] = function* () { + for (const value of original.call(this)) { ++visited; yield value; } + }; + } + dom.apply(update); + } finally { + Map.prototype[Symbol.iterator] = originals[0]; + Set.prototype[Symbol.iterator] = originals[1]; + } + expect(root.firstChild.data).toBe('changed'); + expect(root.lastChild.data).toBe('new'); + expect(visited).toBeLessThan(20); // Work must not grow with the 2,000 untouched children. + }); + + it('discards rejected structural deltas and supports removing then recreating an identifier', () => { + dom.apply(packet([[2, 2, 1], text(3, 'old'), [8, 2, 3], [8, 1, 2]])); + expect(() => dom.apply(packet([[8, 1, 3], [8, 3, 2]]))).toThrow(); + dom.apply(packet([[10, 2], text(2, 'replacement'), [8, 1, 2]])); + expect(root.textContent).toBe('replacement'); + expect(() => dom.apply(packet([[7, 3, ...str('gone')]]))).toThrow(); + }); + + it('bounds retained name bytes across accepted and rejected batches', () => { + const word = 'a'.repeat(1024); + let index = 3; + for (const count of [512, 511]) { + const ops = []; + for (let i = 0; i < count; ++i) ops.push(name(index++, word)); + // Definitions survive semantic rejection, but still consume the same global byte budget. + expect(() => dom.apply(packet([...ops, [10, 99]]))).toThrow(); + } + // root/div/title occupy 12 bytes. Fill exactly the remaining dictionary budget. + dom.apply(packet([name(index++, 'b'.repeat(1012))])); + expect(() => dom.apply(packet([name(index, 'x')]))).toThrow(); + dom.apply(packet([[2, 2, 1], [8, 1, 2]])); // Already-interned names remain usable. + expect(root.firstChild.localName).toBe('div'); + }); + it('reports residual DOM exceptions as rejection instead of losing them', () => { dom.apply(packet([[2, 2, 1], [8, 1, 2]])); spyOn(root.firstChild, 'setAttribute').and.throwError('DOM failure'); expect(() => dom.apply(packet([attr(2, 2, 'value')]))).toThrowError('DOM failure'); expect(() => dom.apply(packet([[10, 2]]))).toThrow(); + release(); // Already invalidated: this does not erase the partial DOM left in the page. + expect(root.childNodes.length).toBe(1); + expect(() => dom.island('root', root)).toThrow(); + root.replaceChildren(); + release = dom.island('root', root); + dom.apply(packet([[13, 1, 0], text(2, 'recovered'), [8, 1, 2]])); + expect(root.textContent).toBe('recovered'); }); }); describe('DOM commands over the real WebSocket', () => { + it('delivers event values and listener removal through the real WebSocket', async () => { + await webFront.ready; + const {installDomInterpreter} = await import(moduleUrl); + const dom = installDomInterpreter(webFront); + const root = document.body.appendChild(document.createElement('div')); + const release = dom.island('root', root); + try { + await webFront.cppFunction('sendDomBatch')(packet([ + name(0, 'root'), name(1, 'input'), name(2, 'type'), name(3, 'checked'), + name(4, 'input'), name(5, 'change'), name(6, 'keydown'), name(7, 'click'), + [13, 1, 0], [2, 10, 1], [2, 11, 1], attr(11, 2, 'checkbox'), + [8, 1, 10], [8, 1, 11], [11, 10, 4, 0], [11, 11, 5, 0], + [11, 10, 6, 0], [11, 10, 7, 3], + ])); + const input = root.firstChild, checkbox = root.lastChild; + input.value = 'hello'; input.dispatchEvent(new Event('input')); + checkbox.checked = true; checkbox.dispatchEvent(new Event('change')); + checkbox.checked = false; checkbox.dispatchEvent(new Event('change')); + input.dispatchEvent(new KeyboardEvent('keydown', {key: 'Escape'})); + const click = new Event('click', {cancelable: true}); input.dispatchEvent(click); + expect(click.defaultPrevented).toBeTrue(); + const expected = '10:4:hello|11:5:true|11:5:false|10:6:Escape|10:7:|'; + expect(await webFront.cppFunction('domEventLog')()).toBe(expected); + await webFront.cppFunction('sendDomBatch')(packet([[12, 10, 4], [10, 11]])); + input.dispatchEvent(new Event('input')); checkbox.dispatchEvent(new Event('change')); + expect(await webFront.cppFunction('domEventLog')()).toBe(expected); + } finally { release(); root.remove(); delete webFront.domBatchHandler; } + }); + it('round trips C++ encoding and reports correlated hostile and unloaded-interpreter rejections', async () => { await webFront.ready; const id = 0x12345678; From 589f0866edb29aa0ce6d8a9b412506c7c1318ae7 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Tue, 27 Oct 2026 08:21:06 +0100 Subject: [PATCH 4/5] Bound DOM batch decoding and scope lifecycle cleanup [#380] --- docs/CHANGELOG.md | 4 + docs/EMBEDDED_ASSETS.md | 13 +- .../ADR-003-protocole-binaire-et-bornes.md | 31 +- docs/adr/README.md | 2 +- .../webfront/system/DomInterpreterData.hpp | 483 +++++++++--------- include/webfront/weblink/DomBatch.hpp | 90 ++-- js/core/dom-interpreter.mjs | 55 +- test/unit/DomBatchTests.cpp | 50 +- test/web/JasmineTest.cpp | 22 +- test/web/dom-benchmark.html | 4 +- test/web/suite/specs/dom-specs.mjs | 110 +++- 11 files changed, 538 insertions(+), 326 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c07177ad..1bce49cf 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -12,6 +12,10 @@ 1 MiB per interpreter, and document the trusted-content model, event values and recovery after residual exceptions. Real WebSocket tests cover events and listener cleanup; a C++ regression covers sending through a lost UI link. The manual DOM benchmark is described in embedded assets. + Reserve batch id zero for uncorrelated rejections and require explicit nonzero C++ ids. Index + subscriptions by node and revoke islands by subtree traversal. Both codecs limit each batch to + 131,072 operations; C++ reserves the counted operation total and rejects unused operands. + Event integration checks count identities/values independently of arrival order. - The single-command test driver can set `--command-timeout` after browser/bootstrap startup, within its unchanged overall `--timeout` deadline (#376). The watchdog regression deliberately diff --git a/docs/EMBEDDED_ASSETS.md b/docs/EMBEDDED_ASSETS.md index 1fa0a76d..75d4ea40 100644 --- a/docs/EMBEDDED_ASSETS.md +++ b/docs/EMBEDDED_ASSETS.md @@ -88,7 +88,18 @@ specifies. `style` may load CSS resources or position overlays, and `id`/`name` DOM properties. The allowlist does not isolate untrusted producers. The name dictionary is retained until the document is discarded, including definitions acquired from rejected batches; it has a 1 MiB UTF-8 budget in addition to the entry and per-name limits. Low-level C++ callers manage its -mirror; the document helper is separate work (#381). +mirror; the document helper is separate work (#381). After semantic rejection, retry the corrected +operations using the names already acquired, without repeating their NAME definitions. Redefining +an acquired index is rejected. + +`data:` URLs are rejected even for ``; serve an image from an embedded application provider +or a development document root and use its relative HTTP URL instead. + +C++ batches require an explicit nonzero identifier (`msg::DomBatch(id)`); zero is reserved for +uncorrelated malformed-message rejections. Both codecs enforce a limit of 131,072 operations per +batch as well as the 1 MiB byte limit. The owning C++ decoder reserves the counted operation total; +its object memory still scales with that count. Invalid formats, UTF-8 and unused nonzero operands +throw `std::invalid_argument`; byte/operation budget violations throw `std::length_error`. A residual DOM exception invalidates all node handles and island registrations. Existing release functions then do nothing. C++ receives `wfDom.rejected` and must arrange page recovery: explicitly diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index de08351e..528a277a 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -16,11 +16,12 @@ | 1.9 | 2026-10-20 | Acceptée | Ambroise Leclerc | `std::bitset` compacté dans le format Uint8Array existant, sans nouvel opcode. | [5bc294e](https://github.com/ambroise-leclerc/WebFront/commit/5bc294eb0a9ba81ae7789b425baa6e299e848d97) | | 1.10 | 2026-10-26 | Acceptée | Ambroise Leclerc | Commande `domBatch` bornée, interpréteur embarqué optionnel et validation transactionnelle (#380). | — | | 1.11 | 2026-10-27 | Acceptée | Ambroise Leclerc | Validation par delta, budget cumulé des noms, récupération et contrat des événements précisés (#380). | — | +| 1.12 | 2026-10-27 | Acceptée | Ambroise Leclerc | Identifiant de lot non nul, plafond d’opérations, codec canonique et nettoyage limité aux sous-arbres concernés (#380). | — | ## État et chronologie **Acceptée.** Décision initiale : **2022-02-06** (version 1.0). -Dernière révision : **2026-10-27** (version 1.11). +Dernière révision : **2026-10-27** (version 1.12). Le présent texte expose la décision en vigueur ; le tableau retrace ses états antérieurs. ## Contexte @@ -67,9 +68,20 @@ Cette section remplace le transport `wfDom.apply` des prototypes de l'[ADR-018]( les propositions d'API de document et de nœuds de cette ADR restent distinctes. Un message WebSocket C++ → navigateur contient exactement un lot : `05 01`, un identifiant de lot -`uint32` **little-endian fixe**, puis zéro ou plusieurs opérations jusqu'à la fin du message. Le plafond +`uint32` **little-endian fixe non nul**, puis zéro ou plusieurs opérations jusqu'à la fin du message. +L'identifiant zéro est réservé aux rejets non corrélables, notamment un en-tête tronqué ; il n'est +jamais un identifiant de lot valide. C++ exige `DomBatch(id)` sans valeur par défaut et rejette zéro, +comme le décodeur JavaScript. Le plafond est de **1 048 576 octets, en-tête de six octets inclus**, vérifié avant décodage/allocation par les codecs C++ et JavaScript. Il est indépendant du plafond WebSocket (qui peut être plus restrictif). +Chaque lot contient au plus **131 072 opérations**, NAME comprises, vérifiées à l'encodage C++ et +avant application au décodage C++/JavaScript. Ce second plafond limite l'amplification mémoire des +nombreuses opérations courtes. Le décodeur C++ compte et valide la structure sans copier les chaînes, +réserve le nombre d'opérations comptées, puis décode les valeurs possédées : au plus 131 072 objets +`DomOperation` (soit `131072 * sizeof(DomOperation)` octets de valeurs), plus les chaînes et les +surcoûts des conteneurs/allocateurs, plutôt qu'une croissance géométrique jusqu'à environ 524 000 objets. +Le coût accepté est un second parcours des en-têtes. Le budget des valeurs de chaînes reste inclus +dans le plafond de message. Le retour possédé n'est pas une vue sans allocation. Aucune compatibilité avec le prototype de l'ADR-018 n'est requise. Les entiers des opérations sont des `uint32` LEB128 non signés **canoniques** : cinq octets au plus, @@ -105,6 +117,9 @@ réinitialisation sur le fil : les réutiliser permet de continuer à muter apr de nouveaux noms exige un nouveau document/rechargement. L'émetteur doit tenir le miroir des indices, des longueurs et des définitions acquises ; le codec `msg::DomBatch` ne constitue pas une table d'internement. Le helper C++ de document reste dans #381. Un rechargement impose de reconstruire également ce miroir. +Après un rejet sémantique, le lot corrigé réemploie les indices déjà acquis : il ne renvoie pas les +mêmes NAME. Par exemple, si NAME(3, `data-ready`) précède une opération rejetée, la reprise utilise +ATTRIBUTE(..., 3, ...) ; renvoyer NAME(3, ...) est une redéfinition hors séquence et sera rejeté. Les noms sont internés par document navigateur, définis séquentiellement à partir de zéro. Une référence ne peut viser qu'une définition antérieure dans le flux. Toutes les définitions entièrement @@ -115,8 +130,10 @@ suit créations, déplacements et suppressions. Cet arbre est un delta sur la ta identifiants et ensembles d'enfants modifiés sont enregistrés ; un parent large utilise lui aussi des ajouts/suppressions différés. MOUNT consulte un index faible des éléments montés. Un petit lot de texte ou d'attributs ne parcourt donc pas les nœuds non concernés. Les suppressions parcourent le sous-arbre -affecté et les déplacements vérifient les chaînes d'ancêtres ; la révocation d'un îlot et le nettoyage -des écouteurs peuvent parcourir les tables correspondantes. Ces limites bornent les ressources, sans +affecté et les déplacements vérifient les chaînes d'ancêtres. Les écouteurs sont indexés par identifiant +de nœud : REMOVE ne désabonne que les identifiants supprimés. La révocation d'un îlot part de son +identifiant monté et parcourt ses enfants ; elle ne scanne ni les arbres détachés ni leurs ancêtres. +Son coût est linéaire dans son sous-arbre et ses abonnements. Ces limites bornent les ressources, sans promesse de temps constant. Une erreur de validation ne modifie aucun nœud DOM. Un parent texte, un cycle, une référence INSERT_BEFORE qui n'est pas enfant du parent, la réutilisation d'un nœud supprimé et toute mutation/déplacement/suppression de l'élément d'îlot sont rejetés. @@ -148,6 +165,12 @@ conservés pour construire des interfaces ordinaires. Les restrictions des URL d les attributs URL, pas le contenu CSS. Ne pas transmettre des lots non fiables à cet interpréteur ; les politiques d'origine/navigations ne filtrent pas toutes les sous-ressources réseau. +Les erreurs de format, d'UTF-8, de flags, d'identifiant zéro et d'opérandes C++ inutilisés non nuls +produisent `std::invalid_argument`. Les dépassements de taille de message ou de nombre d'opérations +produisent `std::length_error`. À l'encodage C++, les champs `b`/`c` absents du format de l'opération +doivent être zéro et une valeur de chaîne absente doit être vide ; ils ne sont jamais ignorés. +Une erreur d'ajout n'ajoute aucun préfixe ni opération au lot. + C++ construit `msg::DomBatch` (`weblink/DomBatch.hpp`) et l'envoie par `ui.sendDomBatch(batch)` sur le contexte du bridge. L'envoi n'est pas attendable et n'accuse pas réception. Tout rejet, y compris l'absence de module installé ou une exception DOM résiduelle pendant l'application, remonte par le diff --git a/docs/adr/README.md b/docs/adr/README.md index 6528fcdf..ee96ef65 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -42,7 +42,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.4 — 2026-10-14 | -| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.11 — 2026-10-27 | +| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.12 — 2026-10-27 | | [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted | 2022-02-06 | 2.4 — 2026-10-18 | | [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/include/webfront/system/DomInterpreterData.hpp b/include/webfront/system/DomInterpreterData.hpp index 9918de6b..f8a19db0 100644 --- a/include/webfront/system/DomInterpreterData.hpp +++ b/include/webfront/system/DomInterpreterData.hpp @@ -9,162 +9,174 @@ namespace webfront::fs::generated { struct DomInterpreterData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{16007}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{16368}; + static constexpr std::array data{ 0x2f2f204144522d30, 0x30333a206f707469, 0x6f6e616c20444f4d, 0x20636f6d6d616e64, 0x20696e7465727072, 0x657465722e204f6e, 0x6c79207468697320, 0x6d6f64756c652074, 0x6f75636865732074, 0x686520444f4d3b20, 0x57656246726f6e74, 0x2e6a7320726f7574, 0x657320636f6d6d61, 0x6e6420352e0a636f, 0x6e7374206d617842, 0x79746573203d2031, 0x303234202a203130, 0x32343b0a636f6e73, 0x74206d6178456e74, 0x72696573203d2036, - 0x353533363b0a636f, 0x6e7374206d61784e, 0x616d654279746573, 0x203d203130323420, 0x2a20313032343b0a, - 0x636f6e7374206465, 0x636f646572203d20, 0x6e65772054657874, 0x4465636f64657228, 0x277574662d38272c, - 0x207b666174616c3a, 0x20747275652c2069, 0x676e6f7265424f4d, 0x3a20747275657d29, 0x3b0a636f6e737420, - 0x656e636f64657220, 0x3d206e6577205465, 0x7874456e636f6465, 0x7228293b0a636f6e, 0x7374206465666175, - 0x6c7454616773203d, 0x2027646976207370, 0x616e207020756c20, 0x6f6c206c69206275, 0x74746f6e20696e70, - 0x7574206c6162656c, 0x2073656c65637420, 0x6f7074696f6e2066, 0x6f726d206669656c, 0x64736574206c6567, - 0x656e642068312068, 0x3220683320683420, 0x7461626c65207468, 0x6561642074626f64, 0x7920747220746420, - 0x7468207374726f6e, 0x6720656d20736d61, 0x6c6c206f75747075, 0x742070726f677265, 0x7373206d65746572, - 0x2074657874617265, 0x612073656374696f, 0x6e20686561646572, 0x20666f6f74657220, 0x6e6176206120696d, - 0x6720627220687220, 0x70726520636f6465, 0x273b0a636f6e7374, 0x2064656661756c74, 0x4174747269627574, - 0x6573203d2027636c, 0x6173732069642073, 0x74796c6520746974, 0x6c65207479706520, 0x6e616d652076616c, - 0x756520706c616365, 0x686f6c646572206d, 0x696e206d61782073, 0x7465702063686563, 0x6b65642064697361, - 0x626c656420726561, 0x646f6e6c7920666f, 0x7220687265662073, 0x726320616c742072, 0x6f6c652074616269, - 0x6e64657820636f6c, 0x7370616e20726f77, 0x7370616e20776964, 0x7468206865696768, 0x742073656c656374, - 0x6564206c616e6720, 0x6469722068696464, 0x656e273b0a636f6e, 0x7374206465666175, 0x6c744576656e7473, - 0x203d2027636c6963, 0x6b2064626c636c69, 0x636b20696e707574, 0x206368616e676520, 0x7375626d6974206b, - 0x6579646f776e206b, 0x6579757020666f63, 0x757320626c757220, 0x706f696e74657264, 0x6f776e20706f696e, - 0x7465727570273b0a, 0x636f6e737420666f, 0x7262696464656e54, 0x616773203d206e65, 0x7720536574282773, - 0x6372697074206966, 0x72616d6520667261, 0x6d65206672616d65, 0x736574206f626a65, 0x637420656d626564, - 0x206c696e6b206d65, 0x7461206261736520, 0x7374796c65207376, 0x67206d617468272e, 0x73706c6974282720, - 0x2729293b0a636f6e, 0x737420666f726269, 0x6464656e41747472, 0x696275746573203d, 0x206e657720536574, - 0x2827737263646f63, 0x20697320786d6c6e, 0x7320737263736574, 0x20696d6167657372, 0x637365742070696e, - 0x67272e73706c6974, 0x2827202729293b0a, 0x636f6e7374207572, 0x6c41747472696275, 0x746573203d206e65, - 0x7720536574282768, 0x7265662073726320, 0x616374696f6e2066, 0x6f726d616374696f, 0x6e20706f73746572, - 0x2063697465206261, 0x636b67726f756e64, 0x206461746120636f, 0x646562617365206d, 0x616e696665737420, - 0x6c6f6e6764657363, 0x207573656d617020, 0x70726f66696c6527, 0x2e73706c69742827, 0x202729293b0a636f, - 0x6e73742070726f70, 0x657274794e616d65, 0x73203d206e657720, 0x536574285b277661, 0x6c7565272c202763, - 0x6865636b6564272c, 0x202764697361626c, 0x6564272c2027696e, 0x64657465726d696e, 0x617465272c202773, - 0x656c656374656449, 0x6e646578275d293b, 0x0a636f6e7374206c, 0x697374203d207465, 0x7874203d3e206e65, - 0x7720536574287465, 0x78742e73706c6974, 0x2827202729293b0a, 0x636f6e7374207661, 0x6c69644e616d6520, - 0x3d206e616d65203d, 0x3e202f5e5b612d7a, 0x5d5b612d7a302d39, 0x2d5d2a242f2e7465, 0x7374286e616d6529, - 0x3b0a0a66756e6374, 0x696f6e2072656164, 0x6572286279746573, 0x29207b0a20202020, 0x6c6574206f666673, - 0x6574203d20363b0a, 0x2020202072657475, 0x726e207b0a202020, 0x2020202020676574, 0x20646f6e65282920, - 0x7b2072657475726e, 0x206f666673657420, 0x3d3d3d2062797465, 0x732e6c656e677468, 0x3b207d2c0a202020, - 0x2020202020627974, 0x652829207b0a2020, 0x2020202020202020, 0x2020696620286f66, 0x66736574203e3d20, - 0x62797465732e6c65, 0x6e67746829207468, 0x726f77206e657720, 0x52616e6765457272, 0x6f7228277472756e, - 0x636174656420444f, 0x4d20626174636827, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206279, - 0x7465735b6f666673, 0x65742b2b5d3b0a20, 0x202020202020207d, 0x2c0a202020202020, 0x202075696e742829, - 0x207b0a2020202020, 0x202020202020206c, 0x65742076616c7565, 0x203d20303b0a2020, 0x2020202020202020, - 0x2020666f7220286c, 0x65742069203d2030, 0x3b2069203c20353b, 0x202b2b6929207b0a, 0x2020202020202020, - 0x2020202020202020, 0x636f6e7374206e65, 0x7874203d20746869, 0x732e627974652829, 0x3b0a202020202020, - 0x2020202020202020, 0x2020696620282869, 0x203d3d3d20342026, 0x26206e657874203e, 0x20313529207c7c20, - 0x2869203e20302026, 0x26206e657874203d, 0x3d3d203029290a20, 0x2020202020202020, 0x2020202020202020, - 0x2020207468726f77, 0x206e65772052616e, 0x67654572726f7228, 0x276e6f6e63616e6f, 0x6e6963616c206f72, - 0x206f766572666c6f, 0x77696e6720444f4d, 0x20766172696e7427, 0x293b0a2020202020, 0x2020202020202020, - 0x20202076616c7565, 0x202b3d20286e6578, 0x7420262031323729, 0x202a2032202a2a20, 0x2837202a2069293b, - 0x0a20202020202020, 0x2020202020202020, 0x206966202821286e, 0x6578742026203132, 0x3829292072657475, - 0x726e2076616c7565, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x202020207468726f, - 0x77206e6577205261, 0x6e67654572726f72, 0x28276f766572666c, 0x6f77696e6720444f, 0x4d20766172696e74, - 0x27293b0a20202020, 0x202020207d2c0a20, 0x2020202020202073, 0x7472696e67282920, 0x7b0a202020202020, - 0x202020202020636f, 0x6e73742073697a65, 0x203d20746869732e, 0x75696e7428293b0a, 0x2020202020202020, - 0x2020202069662028, 0x73697a65203e2062, 0x797465732e6c656e, 0x677468202d206f66, 0x6673657429207468, - 0x726f77206e657720, 0x52616e6765457272, 0x6f7228277472756e, 0x636174656420444f, 0x4d20737472696e67, - 0x27293b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c7565203d206465, 0x636f6465722e6465, - 0x636f646528627974, 0x65732e7375626172, 0x726179286f666673, 0x65742c206f666673, 0x6574202b2073697a, - 0x6529293b0a202020, 0x2020202020202020, 0x206f666673657420, 0x2b3d2073697a653b, 0x0a20202020202020, - 0x2020202020726574, 0x75726e2076616c75, 0x653b0a2020202020, 0x2020207d2c0a2020, 0x20207d3b0a7d0a0a, - 0x2f2f205472616e73, 0x616374696f6e616c, 0x206368696c642d73, 0x6574206f7665726c, 0x61793a2065646974, - 0x696e672061207769, 0x646520706172656e, 0x7420646f6573206e, 0x6f7420636f707920, 0x6f72207363616e20, - 0x6974732065786973, 0x74696e6720636869, 0x6c6472656e2e0a63, 0x6c61737320436869, 0x6c6444656c746120, - 0x7b0a20202020636f, 0x6e7374727563746f, 0x7228626173652920, 0x7b20746869732e62, 0x617365203d206261, - 0x73653b2074686973, 0x2e6164646564203d, 0x206e657720536574, 0x28293b2074686973, 0x2e72656d6f766564, - 0x203d206e65772053, 0x657428293b207d0a, 0x2020202061646428, 0x696429207b207468, 0x69732e72656d6f76, - 0x65642e64656c6574, 0x65286964293b2069, 0x6620282174686973, 0x2e626173652e6861, 0x7328696429292074, - 0x6869732e61646465, 0x642e616464286964, 0x293b207d0a202020, 0x2064656c65746528, 0x696429207b206966, - 0x202821746869732e, 0x61646465642e6465, 0x6c65746528696429, 0x2026262074686973, 0x2e626173652e6861, - 0x7328696429292074, 0x6869732e72656d6f, 0x7665642e61646428, 0x6964293b207d0a20, 0x2020202a5b53796d, - 0x626f6c2e69746572, 0x61746f725d282920, 0x7b0a202020202020, 0x2020666f72202863, 0x6f6e737420696420, - 0x6f6620746869732e, 0x6261736529206966, 0x202821746869732e, 0x72656d6f7665642e, 0x6861732869642929, - 0x207969656c642069, 0x643b0a2020202020, 0x2020207969656c64, 0x2a20746869732e61, 0x646465643b0a2020, - 0x20207d0a20202020, 0x636f6d6d69742829, 0x207b0a2020202020, 0x202020666f722028, 0x636f6e7374206964, - 0x206f662074686973, 0x2e72656d6f766564, 0x2920746869732e62, 0x6173652e64656c65, 0x7465286964293b0a, - 0x2020202020202020, 0x666f722028636f6e, 0x7374206964206f66, 0x20746869732e6164, 0x6465642920746869, - 0x732e626173652e61, 0x6464286964293b0a, 0x2020202020202020, 0x72657475726e2074, 0x6869732e62617365, - 0x3b0a202020207d0a, 0x7d0a0a2f2a2a2049, 0x6e7374616c6c206f, 0x6e63652070657220, 0x6272696467652f64, - 0x6f63756d656e742e, 0x2054686520706167, 0x65206578706c6963, 0x69746c79206c656e, 0x647320656d707479, - 0x20656c656d656e74, 0x7320776974682069, 0x736c616e64286e61, 0x6d652c20656c656d, 0x656e74292e0a202a, - 0x20457874656e7369, 0x6f6e206c69737473, 0x2061726520636f70, 0x6965643b20657865, 0x63757461626c6520, - 0x746167732f617474, 0x7269627574657320, 0x616e6420756e7361, 0x66652055524c2073, 0x6368656d65732072, - 0x656d61696e20666f, 0x7262696464656e2e, 0x0a202a206170706c, 0x79207468726f7773, 0x206f6e2072656a65, - 0x6374696f6e3b2074, 0x6865206272696467, 0x65207265706f7274, 0x7320697420746f20, 0x432b2b2061732077, - 0x66446f6d2e72656a, 0x6563746564286261, 0x74636849642c2072, 0x6561736f6e292e0a, 0x202a2f0a6578706f, - 0x72742066756e6374, 0x696f6e20696e7374, 0x616c6c446f6d496e, 0x7465727072657465, 0x7228627269646765, - 0x203d20676c6f6261, 0x6c546869732e7765, 0x6246726f6e742c20, 0x657874656e73696f, 0x6e73203d207b7d29, - 0x207b0a2020202069, 0x6620286272696467, 0x652e646f6d426174, 0x636848616e646c65, 0x7229207468726f77, - 0x206e657720457272, 0x6f722827444f4d20, 0x696e746572707265, 0x74657220616c7265, 0x61647920696e7374, - 0x616c6c656427293b, 0x0a20202020636f6e, 0x7374207461677320, 0x3d206c6973742864, 0x656661756c745461, - 0x6773292c20617474, 0x7269627574657320, 0x3d206c6973742864, 0x656661756c744174, 0x7472696275746573, - 0x292c206576656e74, 0x73203d206c697374, 0x2864656661756c74, 0x4576656e7473293b, 0x0a20202020666f72, - 0x2028636f6e737420, 0x5b6b65792c207461, 0x726765745d206f66, 0x205b5b2774616773, 0x272c20746167735d, - 0x2c205b2761747472, 0x696275746573272c, 0x2061747472696275, 0x7465735d2c205b27, 0x6576656e7473272c, - 0x206576656e74735d, 0x5d29207b0a202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6e616d65206f6620, - 0x657874656e73696f, 0x6e735b6b65795d20, 0x7c7c205b5d29207b, 0x0a20202020202020, 0x2020202020696620, - 0x282176616c69644e, 0x616d65286e616d65, 0x29207c7c206e616d, 0x652e737461727473, 0x5769746828276f6e, - 0x2729207c7c0a2020, 0x2020202020202020, 0x202020202020286b, 0x6579203d3d3d2027, 0x7461677327202626, - 0x20666f7262696464, 0x656e546167732e68, 0x6173286e616d6529, 0x29207c7c0a202020, 0x2020202020202020, - 0x2020202020286b65, 0x79203d3d3d202761, 0x7474726962757465, 0x732720262620666f, 0x7262696464656e41, - 0x7474726962757465, 0x732e686173286e61, 0x6d652929290a2020, 0x2020202020202020, 0x2020202020207468, - 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d20657874, 0x656e73696f6e2024, - 0x7b6e616d657d6029, 0x3b0a202020202020, 0x2020202020207461, 0x726765742e616464, 0x286e616d65293b0a, - 0x2020202020202020, 0x7d0a202020207d0a, 0x20202020636f6e73, 0x74206e616d657320, 0x3d205b5d3b0a2020, - 0x20206c6574206e61, 0x6d65427974657320, 0x3d20303b0a202020, 0x20636f6e7374206e, 0x6f646573203d206e, - 0x6577204d61702829, 0x3b0a202020206c65, 0x74206d6f756e7465, 0x64203d206e657720, 0x5765616b53657428, - 0x293b0a2020202063, 0x6f6e73742069736c, 0x616e6473203d206e, 0x6577204d61702829, 0x2c206c697374656e, - 0x657273203d206e65, 0x77204d617028293b, 0x0a20202020636f6e, 0x737420616c6c6f77, 0x6564417474726962, - 0x757465203d206e61, 0x6d65203d3e20216e, 0x616d652e73746172, 0x7473576974682827, 0x6f6e272920262620, - 0x21666f7262696464, 0x656e417474726962, 0x757465732e686173, 0x286e616d65292026, 0x260a202020202020, - 0x2020286174747269, 0x62757465732e6861, 0x73286e616d652920, 0x7c7c202f5e286172, 0x69617c6461746129, - 0x2d5b612d7a302d39, 0x2d5d2b242f2e7465, 0x7374286e616d6529, 0x293b0a2020202063, 0x6f6e737420736166, - 0x6555726c203d2076, 0x616c7565203d3e20, 0x5b27687474703a27, 0x2c20276874747073, 0x3a272c20276d6169, - 0x6c746f3a275d2e69, 0x6e636c7564657328, 0x6e65772055524c28, 0x76616c75652c2064, 0x6f63756d656e742e, - 0x6261736555524929, 0x2e70726f746f636f, 0x6c293b0a0a202020, 0x2066756e6374696f, 0x6e20756e6c697374, - 0x656e2869642c2069, 0x6e64657829207b0a, 0x2020202020202020, 0x636f6e7374206b65, 0x79203d2060247b69, - 0x647d3a247b696e64, 0x65787d602c20656e, 0x747279203d206c69, 0x7374656e6572732e, 0x676574286b657929, - 0x3b0a202020202020, 0x202069662028656e, 0x74727929207b0a20, 0x2020202020202020, 0x202020656e747279, - 0x2e6e6f64652e7265, 0x6d6f76654576656e, 0x744c697374656e65, 0x7228656e7472792e, 0x6e616d652c20656e, - 0x7472792e6c697374, 0x656e6572293b0a20, 0x2020202020202020, 0x2020206c69737465, 0x6e6572732e64656c, - 0x657465286b657929, 0x3b0a202020202020, 0x20207d0a20202020, 0x7d0a202020206675, 0x6e6374696f6e2063, - 0x6c65616e4c697374, 0x656e657273286c69, 0x766529207b0a2020, 0x202020202020666f, 0x722028636f6e7374, - 0x205b6b65792c2065, 0x6e7472795d206f66, 0x206c697374656e65, 0x7273290a20202020, 0x2020202020202020, - 0x69662028216c6976, 0x652e68617328656e, 0x7472792e69642929, 0x20756e6c69737465, 0x6e28656e7472792e, - 0x69642c204e756d62, 0x6572286b65792e73, 0x706c697428273a27, 0x295b315d29293b0a, 0x202020207d0a2020, - 0x202066756e637469, 0x6f6e206c69737465, 0x6e2869642c20696e, 0x6465782c206e616d, 0x652c20666c616773, - 0x29207b0a20202020, 0x20202020756e6c69, 0x7374656e2869642c, 0x20696e646578293b, 0x0a20202020202020, - 0x20636f6e7374206e, 0x6f6465203d206e6f, 0x6465732e67657428, 0x6964292e6e6f6465, 0x3b0a202020202020, - 0x2020636f6e737420, 0x6c697374656e6572, 0x203d206576656e74, 0x203d3e207b0a2020, 0x2020202020202020, - 0x202069662028666c, 0x6167732026203129, 0x206576656e742e70, 0x726576656e744465, 0x6661756c7428293b, - 0x0a20202020202020, 0x2020202020696620, 0x28666c6167732026, 0x203229206576656e, 0x742e73746f705072, - 0x6f7061676174696f, 0x6e28293b0a202020, 0x2020202020202020, 0x20636f6e73742076, 0x616c7565203d206e, - 0x616d65203d3d3d20, 0x27696e7075742720, 0x7c7c206e616d6520, 0x3d3d3d2027636861, 0x6e6765270a202020, - 0x2020202020202020, 0x20202020203f2028, 0x6e6f64652e747970, 0x65203d3d3d202763, 0x6865636b626f7827, - 0x203f20537472696e, 0x67286e6f64652e63, 0x6865636b65642920, 0x3a20537472696e67, 0x286e6f64652e7661, - 0x6c756529290a2020, 0x2020202020202020, 0x2020202020203a20, 0x6e616d65203d3d3d, 0x20276b6579646f77, - 0x6e27207c7c206e61, 0x6d65203d3d3d2027, 0x6b6579757027203f, 0x206576656e742e6b, 0x6579203a2027273b, - 0x0a20202020202020, 0x2020202020627269, 0x6467652e63707046, 0x756e6374696f6e28, 0x277766446f6d2e65, - 0x76656e7427292869, 0x642c20696e646578, 0x2c2076616c756529, 0x2e63617463682828, 0x29203d3e207b7d29, - 0x3b0a202020202020, 0x20207d3b0a202020, 0x20202020206e6f64, 0x652e616464457665, 0x6e744c697374656e, - 0x6572286e616d652c, 0x206c697374656e65, 0x72293b0a20202020, 0x202020206c697374, 0x656e6572732e7365, - 0x742860247b69647d, 0x3a247b696e646578, 0x7d602c207b69642c, 0x206e6f64652c206e, 0x616d652c206c6973, - 0x74656e65727d293b, 0x0a202020207d0a0a, 0x2020202066756e63, 0x74696f6e20646563, 0x6f64652862797465, - 0x7329207b0a202020, 0x2020202020696620, 0x2821286279746573, 0x20696e7374616e63, 0x656f662055696e74, - 0x3841727261792920, 0x7c7c206279746573, 0x2e6c656e67746820, 0x3c2036207c7c2062, 0x797465732e6c656e, - 0x677468203e206d61, 0x784279746573207c, 0x7c2062797465735b, 0x305d20213d3d2035, 0x207c7c2062797465, - 0x735b315d20213d3d, 0x2031290a20202020, 0x2020202020202020, 0x7468726f77206e65, 0x772052616e676545, - 0x72726f722827696e, 0x76616c696420444f, 0x4d20626174636820, 0x686561646572206f, 0x722073697a652729, - 0x3b0a202020202020, 0x2020636f6e737420, 0x696e707574203d20, 0x7265616465722862, 0x79746573292c206f, - 0x7065726174696f6e, 0x73203d205b5d3b0a, 0x2020202020202020, 0x2f2f205265746169, 0x6e20656163682066, - 0x756c6c7920646563, 0x6f646564204e414d, 0x45206576656e2069, 0x662061206c617465, 0x72206f7065726174, - 0x696f6e206f722076, 0x616c69646174696f, 0x6e2072656a656374, 0x7320746865206261, 0x7463682e0a202020, - 0x2020202020776869, 0x6c65202821696e70, 0x75742e646f6e6529, 0x207b0a2020202020, 0x2020202020202063, + 0x353533363b0a636f, 0x6e7374206d61784f, 0x7065726174696f6e, 0x73203d2031333130, 0x37323b0a636f6e73, + 0x74206d61784e616d, 0x654279746573203d, 0x2031303234202a20, 0x313032343b0a636f, 0x6e7374206465636f, + 0x646572203d206e65, 0x7720546578744465, 0x636f646572282775, 0x74662d38272c207b, 0x666174616c3a2074, + 0x7275652c2069676e, 0x6f7265424f4d3a20, 0x747275657d293b0a, 0x636f6e737420656e, 0x636f646572203d20, + 0x6e65772054657874, 0x456e636f64657228, 0x293b0a636f6e7374, 0x2064656661756c74, 0x54616773203d2027, + 0x646976207370616e, 0x207020756c206f6c, 0x206c692062757474, 0x6f6e20696e707574, 0x206c6162656c2073, + 0x656c656374206f70, 0x74696f6e20666f72, 0x6d206669656c6473, 0x6574206c6567656e, 0x6420683120683220, + 0x6833206834207461, 0x626c652074686561, 0x642074626f647920, 0x7472207464207468, 0x207374726f6e6720, + 0x656d20736d616c6c, 0x206f757470757420, 0x70726f6772657373, 0x206d657465722074, 0x6578746172656120, + 0x73656374696f6e20, 0x6865616465722066, 0x6f6f746572206e61, 0x76206120696d6720, 0x6272206872207072, + 0x6520636f6465273b, 0x0a636f6e73742064, 0x656661756c744174, 0x7472696275746573, 0x203d2027636c6173, + 0x7320696420737479, 0x6c65207469746c65, 0x2074797065206e61, 0x6d652076616c7565, 0x20706c616365686f, + 0x6c646572206d696e, 0x206d617820737465, 0x7020636865636b65, 0x642064697361626c, 0x656420726561646f, + 0x6e6c7920666f7220, 0x6872656620737263, 0x20616c7420726f6c, 0x6520746162696e64, 0x657820636f6c7370, + 0x616e20726f777370, 0x616e207769647468, 0x2068656967687420, 0x73656c6563746564, 0x206c616e67206469, + 0x722068696464656e, 0x273b0a636f6e7374, 0x2064656661756c74, 0x4576656e7473203d, 0x2027636c69636b20, + 0x64626c636c69636b, 0x20696e7075742063, 0x68616e6765207375, 0x626d6974206b6579, 0x646f776e206b6579, + 0x757020666f637573, 0x20626c757220706f, 0x696e746572646f77, 0x6e20706f696e7465, 0x727570273b0a636f, + 0x6e737420666f7262, 0x696464656e546167, 0x73203d206e657720, 0x5365742827736372, 0x6970742069667261, + 0x6d65206672616d65, 0x206672616d657365, 0x74206f626a656374, 0x20656d626564206c, 0x696e6b206d657461, + 0x2062617365207374, 0x796c652073766720, 0x6d617468272e7370, 0x6c69742827202729, 0x293b0a636f6e7374, + 0x20666f7262696464, 0x656e417474726962, 0x75746573203d206e, 0x6577205365742827, 0x737263646f632069, + 0x7320786d6c6e7320, 0x7372637365742069, 0x6d61676573726373, 0x65742070696e6727, 0x2e73706c69742827, + 0x202729293b0a636f, 0x6e73742075726c41, 0x7474726962757465, 0x73203d206e657720, 0x5365742827687265, + 0x6620737263206163, 0x74696f6e20666f72, 0x6d616374696f6e20, 0x706f737465722063, 0x697465206261636b, + 0x67726f756e642064, 0x61746120636f6465, 0x62617365206d616e, 0x6966657374206c6f, 0x6e67646573632075, + 0x73656d6170207072, 0x6f66696c65272e73, 0x706c697428272027, 0x29293b0a636f6e73, 0x742070726f706572, + 0x74794e616d657320, 0x3d206e6577205365, 0x74285b2776616c75, 0x65272c2027636865, 0x636b6564272c2027, + 0x64697361626c6564, 0x272c2027696e6465, 0x7465726d696e6174, 0x65272c202773656c, 0x6563746564496e64, + 0x6578275d293b0a63, 0x6f6e7374206c6973, 0x74203d2074657874, 0x203d3e206e657720, 0x5365742874657874, + 0x2e73706c69742827, 0x202729293b0a636f, 0x6e73742076616c69, 0x644e616d65203d20, 0x6e616d65203d3e20, + 0x2f5e5b612d7a5d5b, 0x612d7a302d392d5d, 0x2a242f2e74657374, 0x286e616d65293b0a, 0x0a66756e6374696f, + 0x6e20726561646572, 0x2862797465732920, 0x7b0a202020206c65, 0x74206f6666736574, 0x203d20363b0a2020, + 0x202072657475726e, 0x207b0a2020202020, 0x2020206765742064, 0x6f6e652829207b20, 0x72657475726e206f, + 0x6666736574203d3d, 0x3d2062797465732e, 0x6c656e6774683b20, 0x7d2c0a2020202020, 0x2020206279746528, + 0x29207b0a20202020, 0x2020202020202020, 0x696620286f666673, 0x6574203e3d206279, 0x7465732e6c656e67, + 0x746829207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x28277472756e6361, 0x74656420444f4d20, + 0x626174636827293b, 0x0a20202020202020, 0x2020202020726574, 0x75726e2062797465, 0x735b6f6666736574, + 0x2b2b5d3b0a202020, 0x20202020207d2c0a, 0x2020202020202020, 0x75696e742829207b, 0x0a20202020202020, + 0x20202020206c6574, 0x2076616c7565203d, 0x20303b0a20202020, 0x2020202020202020, 0x666f7220286c6574, + 0x2069203d20303b20, 0x69203c20353b202b, 0x2b6929207b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e7374206e657874, 0x203d20746869732e, 0x6279746528293b0a, 0x2020202020202020, 0x2020202020202020, + 0x696620282869203d, 0x3d3d203420262620, 0x6e657874203e2031, 0x3529207c7c202869, 0x203e203020262620, + 0x6e657874203d3d3d, 0x203029290a202020, 0x2020202020202020, 0x2020202020202020, 0x207468726f77206e, + 0x65772052616e6765, 0x4572726f7228276e, 0x6f6e63616e6f6e69, 0x63616c206f72206f, 0x766572666c6f7769, + 0x6e6720444f4d2076, 0x6172696e7427293b, 0x0a20202020202020, 0x2020202020202020, 0x2076616c7565202b, + 0x3d20286e65787420, 0x262031323729202a, 0x2032202a2a202837, 0x202a2069293b0a20, 0x2020202020202020, + 0x2020202020202069, 0x66202821286e6578, 0x7420262031323829, 0x292072657475726e, 0x2076616c75653b0a, + 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, + 0x654572726f722827, 0x6f766572666c6f77, 0x696e6720444f4d20, 0x766172696e742729, 0x3b0a202020202020, + 0x20207d2c0a202020, 0x2020202020737472, 0x696e672829207b0a, 0x2020202020202020, 0x20202020636f6e73, + 0x742073697a65203d, 0x20746869732e7569, 0x6e7428293b0a2020, 0x2020202020202020, 0x2020696620287369, + 0x7a65203e20627974, 0x65732e6c656e6774, 0x68202d206f666673, 0x657429207468726f, 0x77206e6577205261, + 0x6e67654572726f72, 0x28277472756e6361, 0x74656420444f4d20, 0x737472696e672729, 0x3b0a202020202020, + 0x202020202020636f, 0x6e73742076616c75, 0x65203d206465636f, 0x6465722e6465636f, 0x6465286279746573, + 0x2e73756261727261, 0x79286f6666736574, 0x2c206f6666736574, 0x202b2073697a6529, 0x293b0a2020202020, + 0x202020202020206f, 0x6666736574202b3d, 0x2073697a653b0a20, 0x2020202020202020, 0x2020207265747572, + 0x6e2076616c75653b, 0x0a20202020202020, 0x207d2c0a20202020, 0x7d3b0a7d0a0a2f2f, 0x205472616e736163, + 0x74696f6e616c2063, 0x68696c642d736574, 0x206f7665726c6179, 0x3a2065646974696e, 0x6720612077696465, + 0x20706172656e7420, 0x646f6573206e6f74, 0x20636f7079206f72, 0x207363616e206974, 0x7320657869737469, + 0x6e67206368696c64, 0x72656e2e0a636c61, 0x7373204368696c64, 0x44656c7461207b0a, 0x20202020636f6e73, + 0x74727563746f7228, 0x6261736529207b20, 0x746869732e626173, 0x65203d2062617365, 0x3b20746869732e61, + 0x64646564203d206e, 0x6577205365742829, 0x3b20746869732e72, 0x656d6f766564203d, 0x206e657720536574, + 0x28293b207d0a2020, 0x2020616464286964, 0x29207b2074686973, 0x2e72656d6f766564, 0x2e64656c65746528, + 0x6964293b20696620, 0x2821746869732e62, 0x6173652e68617328, 0x6964292920746869, 0x732e61646465642e, + 0x616464286964293b, 0x207d0a2020202064, 0x656c657465286964, 0x29207b2069662028, 0x21746869732e6164, + 0x6465642e64656c65, 0x7465286964292026, 0x2620746869732e62, 0x6173652e68617328, 0x6964292920746869, + 0x732e72656d6f7665, 0x642e616464286964, 0x293b207d0a202020, 0x202a5b53796d626f, 0x6c2e697465726174, + 0x6f725d2829207b0a, 0x2020202020202020, 0x666f722028636f6e, 0x7374206964206f66, 0x20746869732e6261, + 0x7365292069662028, 0x21746869732e7265, 0x6d6f7665642e6861, 0x7328696429292079, 0x69656c642069643b, + 0x0a20202020202020, 0x207969656c642a20, 0x746869732e616464, 0x65643b0a20202020, 0x7d0a20202020636f, + 0x6d6d69742829207b, 0x0a20202020202020, 0x20666f722028636f, 0x6e7374206964206f, 0x6620746869732e72, + 0x656d6f7665642920, 0x746869732e626173, 0x652e64656c657465, 0x286964293b0a2020, 0x202020202020666f, + 0x722028636f6e7374, 0x206964206f662074, 0x6869732e61646465, 0x642920746869732e, 0x626173652e616464, + 0x286964293b0a2020, 0x2020202020207265, 0x7475726e20746869, 0x732e626173653b0a, 0x202020207d0a7d0a, + 0x0a2f2a2a20496e73, 0x74616c6c206f6e63, 0x6520706572206272, 0x696467652f646f63, 0x756d656e742e2054, + 0x6865207061676520, 0x6578706c69636974, 0x6c79206c656e6473, 0x20656d7074792065, 0x6c656d656e747320, + 0x776974682069736c, 0x616e64286e616d65, 0x2c20656c656d656e, 0x74292e0a202a2045, 0x7874656e73696f6e, + 0x206c697374732061, 0x726520636f706965, 0x643b206578656375, 0x7461626c65207461, 0x67732f6174747269, + 0x627574657320616e, 0x6420756e73616665, 0x2055524c20736368, 0x656d65732072656d, 0x61696e20666f7262, + 0x696464656e2e0a20, 0x2a206170706c7920, 0x7468726f7773206f, 0x6e2072656a656374, 0x696f6e3b20746865, + 0x2062726964676520, 0x7265706f72747320, 0x697420746f20432b, 0x2b20617320776644, 0x6f6d2e72656a6563, + 0x7465642862617463, 0x6849642c20726561, 0x736f6e292e0a202a, 0x2f0a6578706f7274, 0x2066756e6374696f, + 0x6e20696e7374616c, 0x6c446f6d496e7465, 0x7270726574657228, 0x627269646765203d, 0x20676c6f62616c54, + 0x6869732e77656246, 0x726f6e742c206578, 0x74656e73696f6e73, 0x203d207b7d29207b, 0x0a20202020696620, + 0x286272696467652e, 0x646f6d4261746368, 0x48616e646c657229, 0x207468726f77206e, 0x6577204572726f72, + 0x2827444f4d20696e, 0x7465727072657465, 0x7220616c72656164, 0x7920696e7374616c, 0x6c656427293b0a20, + 0x202020636f6e7374, 0x2074616773203d20, 0x6c69737428646566, 0x61756c7454616773, 0x292c206174747269, + 0x6275746573203d20, 0x6c69737428646566, 0x61756c7441747472, 0x696275746573292c, 0x206576656e747320, + 0x3d206c6973742864, 0x656661756c744576, 0x656e7473293b0a20, 0x202020666f722028, 0x636f6e7374205b6b, + 0x65792c2074617267, 0x65745d206f66205b, 0x5b2774616773272c, 0x20746167735d2c20, 0x5b27617474726962, + 0x75746573272c2061, 0x7474726962757465, 0x735d2c205b276576, 0x656e7473272c2065, 0x76656e74735d5d29, + 0x207b0a2020202020, 0x202020666f722028, 0x636f6e7374206e61, 0x6d65206f66206578, 0x74656e73696f6e73, + 0x5b6b65795d207c7c, 0x205b5d29207b0a20, 0x2020202020202020, 0x2020206966202821, 0x76616c69644e616d, + 0x65286e616d652920, 0x7c7c206e616d652e, 0x7374617274735769, 0x746828276f6e2729, 0x207c7c0a20202020, + 0x2020202020202020, 0x20202020286b6579, 0x203d3d3d20277461, 0x6773272026262066, 0x6f7262696464656e, + 0x546167732e686173, 0x286e616d65292920, 0x7c7c0a2020202020, 0x2020202020202020, 0x202020286b657920, + 0x3d3d3d2027617474, 0x7269627574657327, 0x20262620666f7262, 0x696464656e417474, 0x726962757465732e, + 0x686173286e616d65, 0x2929290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, + 0x726f722860666f72, 0x62696464656e2044, 0x4f4d20657874656e, 0x73696f6e20247b6e, 0x616d657d60293b0a, + 0x2020202020202020, 0x2020202074617267, 0x65742e616464286e, 0x616d65293b0a2020, 0x2020202020207d0a, + 0x202020207d0a2020, 0x2020636f6e737420, 0x6e616d6573203d20, 0x5b5d3b0a20202020, 0x6c6574206e616d65, + 0x4279746573203d20, 0x303b0a2020202063, 0x6f6e7374206e6f64, 0x6573203d206e6577, 0x204d617028293b0a, + 0x202020206c657420, 0x6d6f756e74656420, 0x3d206e6577205765, 0x616b4d617028293b, 0x0a20202020636f6e, + 0x73742069736c616e, 0x6473203d206e6577, 0x204d617028292c20, 0x6c697374656e6572, 0x73203d206e657720, + 0x4d617028293b0a20, 0x202020636f6e7374, 0x20616c6c6f776564, 0x4174747269627574, 0x65203d206e616d65, + 0x203d3e20216e616d, 0x652e737461727473, 0x5769746828276f6e, 0x2729202626202166, 0x6f7262696464656e, + 0x4174747269627574, 0x65732e686173286e, 0x616d65292026260a, 0x2020202020202020, 0x2861747472696275, + 0x7465732e68617328, 0x6e616d6529207c7c, 0x202f5e2861726961, 0x7c64617461292d5b, 0x612d7a302d392d5d, + 0x2b242f2e74657374, 0x286e616d6529293b, 0x0a20202020636f6e, 0x7374207361666555, 0x726c203d2076616c, + 0x7565203d3e205b27, 0x687474703a272c20, 0x2768747470733a27, 0x2c20276d61696c74, 0x6f3a275d2e696e63, + 0x6c75646573286e65, 0x772055524c287661, 0x6c75652c20646f63, 0x756d656e742e6261, 0x7365555249292e70, + 0x726f746f636f6c29, 0x3b0a0a2020202066, 0x756e6374696f6e20, 0x756e6c697374656e, 0x2869642c20696e64, + 0x657829207b0a2020, 0x202020202020636f, 0x6e73742067726f75, 0x70203d206c697374, 0x656e6572732e6765, + 0x74286964292c2065, 0x6e747279203d2067, 0x726f75703f2e6765, 0x7428696e64657829, 0x3b0a202020202020, + 0x202069662028656e, 0x74727929207b0a20, 0x2020202020202020, 0x202020656e747279, 0x2e6e6f64652e7265, + 0x6d6f76654576656e, 0x744c697374656e65, 0x7228656e7472792e, 0x6e616d652c20656e, 0x7472792e6c697374, + 0x656e6572293b0a20, 0x2020202020202020, 0x20202067726f7570, 0x2e64656c65746528, 0x696e646578293b0a, + 0x2020202020202020, 0x2020202069662028, 0x2167726f75702e73, 0x697a6529206c6973, 0x74656e6572732e64, + 0x656c657465286964, 0x293b0a2020202020, 0x2020207d0a202020, 0x207d0a2020202066, 0x756e6374696f6e20, + 0x636c65616e4c6973, 0x74656e6572732869, 0x647329207b0a2020, 0x202020202020666f, 0x722028636f6e7374, + 0x206964206f662069, 0x647329207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x67726f7570203d20, + 0x6c697374656e6572, 0x732e676574286964, 0x293b0a2020202020, 0x2020202020202069, 0x6620282167726f75, + 0x702920636f6e7469, 0x6e75653b0a202020, 0x2020202020202020, 0x20666f722028636f, 0x6e737420656e7472, + 0x79206f662067726f, 0x75702e76616c7565, 0x7328292920656e74, 0x72792e6e6f64652e, 0x72656d6f76654576, + 0x656e744c69737465, 0x6e657228656e7472, 0x792e6e616d652c20, 0x656e7472792e6c69, 0x7374656e6572293b, + 0x0a20202020202020, 0x20202020206c6973, 0x74656e6572732e64, 0x656c657465286964, 0x293b0a2020202020, + 0x2020207d0a202020, 0x207d0a2020202066, 0x756e6374696f6e20, 0x6c697374656e2869, 0x642c20696e646578, + 0x2c206e616d652c20, 0x666c61677329207b, 0x0a20202020202020, 0x20756e6c69737465, 0x6e2869642c20696e, + 0x646578293b0a2020, 0x202020202020636f, 0x6e7374206e6f6465, 0x203d206e6f646573, 0x2e67657428696429, + 0x2e6e6f64653b0a20, 0x2020202020202063, 0x6f6e7374206c6973, 0x74656e6572203d20, 0x6576656e74203d3e, + 0x207b0a2020202020, 0x2020202020202069, 0x662028666c616773, 0x2026203129206576, 0x656e742e70726576, + 0x656e744465666175, 0x6c7428293b0a2020, 0x2020202020202020, 0x202069662028666c, 0x6167732026203229, + 0x206576656e742e73, 0x746f7050726f7061, 0x676174696f6e2829, 0x3b0a202020202020, 0x202020202020636f, + 0x6e73742076616c75, 0x65203d206e616d65, 0x203d3d3d2027696e, 0x70757427207c7c20, 0x6e616d65203d3d3d, + 0x20276368616e6765, 0x270a202020202020, 0x2020202020202020, 0x20203f20286e6f64, 0x652e74797065203d, + 0x3d3d202763686563, 0x6b626f7827203f20, 0x537472696e67286e, 0x6f64652e63686563, 0x6b656429203a2053, + 0x7472696e67286e6f, 0x64652e76616c7565, 0x29290a2020202020, 0x2020202020202020, 0x2020203a206e616d, + 0x65203d3d3d20276b, 0x6579646f776e2720, 0x7c7c206e616d6520, 0x3d3d3d20276b6579, 0x757027203f206576, + 0x656e742e6b657920, 0x3a2027273b0a2020, 0x2020202020202020, 0x2020627269646765, 0x2e63707046756e63, + 0x74696f6e28277766, 0x446f6d2e6576656e, 0x7427292869642c20, 0x696e6465782c2076, 0x616c7565292e6361, + 0x746368282829203d, 0x3e207b7d293b0a20, 0x202020202020207d, 0x3b0a202020202020, 0x20206e6f64652e61, + 0x64644576656e744c, 0x697374656e657228, 0x6e616d652c206c69, 0x7374656e6572293b, 0x0a20202020202020, + 0x206c65742067726f, 0x7570203d206c6973, 0x74656e6572732e67, 0x6574286964293b0a, 0x2020202020202020, + 0x696620282167726f, 0x757029207b206772, 0x6f7570203d206e65, 0x77204d617028293b, 0x206c697374656e65, + 0x72732e7365742869, 0x642c2067726f7570, 0x293b207d0a202020, 0x202020202067726f, 0x75702e7365742869, + 0x6e6465782c207b6e, 0x6f64652c206e616d, 0x652c206c69737465, 0x6e65727d293b0a20, 0x2020207d0a0a2020, + 0x202066756e637469, 0x6f6e206465636f64, 0x6528627974657329, 0x207b0a2020202020, 0x2020206966202821, + 0x2862797465732069, 0x6e7374616e63656f, 0x662055696e743841, 0x7272617929207c7c, 0x2062797465732e6c, + 0x656e677468203c20, 0x36207c7c20627974, 0x65732e6c656e6774, 0x68203e206d617842, 0x79746573207c7c20, + 0x62797465735b305d, 0x20213d3d2035207c, 0x7c2062797465735b, 0x315d20213d3d2031, 0x207c7c0a20202020, + 0x2020202020202020, 0x2862797465735b32, 0x5d207c2062797465, 0x735b335d207c2062, 0x797465735b345d20, + 0x7c2062797465735b, 0x355d29203d3d3d20, 0x30290a2020202020, 0x2020202020202074, 0x68726f77206e6577, + 0x2052616e67654572, 0x726f722827696e76, 0x616c696420444f4d, 0x2062617463682068, 0x6561646572206f72, + 0x2073697a6527293b, 0x0a20202020202020, 0x20636f6e73742069, 0x6e707574203d2072, 0x6561646572286279, + 0x746573292c206f70, 0x65726174696f6e73, 0x203d205b5d3b0a20, 0x202020202020202f, 0x2f2052657461696e, + 0x2065616368206675, 0x6c6c79206465636f, 0x646564204e414d45, 0x206576656e206966, 0x2061206c61746572, + 0x206f706572617469, 0x6f6e206f72207661, 0x6c69646174696f6e, 0x2072656a65637473, 0x2074686520626174, + 0x63682e0a20202020, 0x202020207768696c, 0x65202821696e7075, 0x742e646f6e652920, 0x7b0a202020202020, + 0x2020202020206966, 0x20286f7065726174, 0x696f6e732e6c656e, 0x677468203d3d3d20, 0x6d61784f70657261, + 0x74696f6e73292074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f722827444f4d, 0x206261746368206f, + 0x7065726174696f6e, 0x206c696d69742065, 0x7863656564656427, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e7374206f7020, 0x3d20696e7075742e, 0x6279746528293b0a, 0x2020202020202020, 0x2020202069662028, 0x6f70203c2031207c, 0x7c206f70203e2031, 0x3329207468726f77, 0x206e657720457272, 0x6f722860756e6b6e, 0x6f776e20444f4d20, 0x6f7065726174696f, 0x6e20247b6f707d60, 0x293b0a2020202020, 0x2020202020202063, @@ -192,7 +204,7 @@ struct DomInterpreterData { 0x6564697465642072, 0x65636f7264732061, 0x6e64206368696c64, 0x2d7365742064656c, 0x7461732061726520, 0x636f706965642e20, 0x556e746f75636865, 0x6420656e74726965, 0x7320737461792069, 0x6e20746865206c69, 0x7665207461626c65, 0x2e0a202020202020, 0x2020636f6e737420, 0x6368616e67657320, 0x3d206e6577204d61, - 0x7028292c206e6577, 0x4d6f756e7473203d, 0x206e657720536574, 0x28293b0a20202020, 0x202020206c657420, + 0x7028292c206e6577, 0x4d6f756e7473203d, 0x206e6577204d6170, 0x28293b0a20202020, 0x202020206c657420, 0x6c69766553697a65, 0x203d206e6f646573, 0x2e73697a653b0a20, 0x2020202020202063, 0x6f6e7374206c6f6f, 0x6b7570203d206964, 0x203d3e206368616e, 0x6765732e68617328, 0x696429203f206368, 0x616e6765732e6765, 0x7428696429203a20, 0x6e6f6465732e6765, 0x74286964293b0a20, 0x2020202020202063, 0x6f6e737420737465, @@ -327,91 +339,88 @@ struct DomInterpreterData { 0x202020206e6f6465, 0x732e676574286129, 0x2e6e6f64652e7265, 0x6d6f766528293b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020666f7220, 0x28636f6e73742069, 0x64206f662072656d, 0x6f76656429206e6f, 0x6465732e64656c65, 0x7465286964293b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020636c6561, - 0x6e4c697374656e65, 0x7273286e6f646573, 0x293b0a2020202020, 0x2020202020202020, 0x2020207d293b0a20, + 0x6e4c697374656e65, 0x72732872656d6f76, 0x6564293b0a202020, 0x2020202020202020, 0x20202020207d293b, + 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, 0x202020207d0a2020, + 0x2020202020202020, 0x2020636173652031, 0x313a206361736520, 0x31323a207b0a2020, 0x2020202020202020, + 0x202020202020656c, 0x656d656e74286129, 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, + 0x6e616d65203d206e, 0x616d654174286229, 0x3b0a202020202020, 0x2020202020202020, 0x2020696620282165, + 0x76656e74732e6861, 0x73286e616d652920, 0x7c7c2063203e2033, 0x29207468726f7720, 0x6e6577204572726f, + 0x722827696e76616c, 0x696420444f4d2065, 0x76656e74206f7220, 0x666c61677327293b, 0x0a20202020202020, + 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e206f70203d3d3d, 0x203131203f206c69, + 0x7374656e28612c20, 0x622c206e616d652c, 0x206329203a20756e, 0x6c697374656e2861, 0x2c206229293b0a20, 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x20207d0a20202020, - 0x2020202020202020, 0x636173652031313a, 0x2063617365203132, 0x3a207b0a20202020, 0x2020202020202020, - 0x20202020656c656d, 0x656e742861293b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206e61, - 0x6d65203d206e616d, 0x6541742862293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821657665, - 0x6e74732e68617328, 0x6e616d6529207c7c, 0x2063203e20332920, 0x7468726f77206e65, 0x77204572726f7228, - 0x27696e76616c6964, 0x20444f4d20657665, 0x6e74206f7220666c, 0x61677327293b0a20, 0x2020202020202020, - 0x2020202020202073, 0x746570732e707573, 0x68282829203d3e20, 0x6f70203d3d3d2031, 0x31203f206c697374, - 0x656e28612c20622c, 0x206e616d652c2063, 0x29203a20756e6c69, 0x7374656e28612c20, 0x6229293b0a202020, - 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x7d0a202020202020, - 0x2020202020206361, 0x73652031333a207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e7374206e, - 0x616d65203d206e61, 0x6d6541742862292c, 0x206e6f6465203d20, 0x69736c616e64732e, 0x676574286e616d65, - 0x293f2e656c656d65, 0x6e743b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x216e6f6465292074, - 0x68726f77206e6577, 0x204572726f722860, 0x756e6b6e6f776e20, 0x444f4d2069736c61, 0x6e6420247b6e616d, - 0x657d60293b0a2020, 0x2020202020202020, 0x2020202020206966, 0x20286d6f756e7465, 0x642e686173286e6f, - 0x646529207c7c206e, 0x65774d6f756e7473, 0x2e686173286e6f64, 0x652929207468726f, 0x77206e6577204572, - 0x726f72282769736c, 0x616e6420616c7265, 0x616479206d6f756e, 0x74656427293b0a20, 0x2020202020202020, - 0x202020202020206e, 0x65774d6f756e7473, 0x2e616464286e6f64, 0x65293b0a20202020, 0x2020202020202020, - 0x2020202066726573, 0x6828612c207b6e6f, 0x64652c2074657874, 0x3a2066616c73652c, 0x2069736c616e643a, - 0x20747275657d293b, 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, - 0x3e206e6f6465732e, 0x73657428612c207b, 0x6e6f64657d29293b, 0x0a20202020202020, 0x2020202020202020, - 0x20627265616b3b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207d0a20202020, - 0x202020207d0a2020, 0x2020202020202f2f, 0x2052657369647561, 0x6c20444f4d206578, 0x63657074696f6e73, - 0x2028666f72206578, 0x616d706c65206120, 0x7061676527732063, 0x7573746f6d20656c, 0x656d656e74292070, - 0x726f706167617465, 0x20746f2074686520, 0x6272696467652061, 0x7320612072656a65, 0x6374696f6e2e0a20, - 0x202020202020202f, 0x2f20496e20746861, 0x7420636173652064, 0x6973636172642068, 0x616e646c65733a20, - 0x7468652061637475, 0x616c20444f4d206d, 0x6179206861766520, 0x6265656e20706172, 0x746c79206368616e, - 0x67656420616e6420, 0x6d75737420626520, 0x6c656e7420616761, 0x696e2e0a20202020, 0x2020202074727920, - 0x7b0a202020202020, 0x202020202020666f, 0x722028636f6e7374, 0x2073746570206f66, 0x2073746570732920, - 0x7374657028293b0a, 0x2020202020202020, 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, - 0x202020202020636c, 0x65616e4c69737465, 0x6e657273286e6577, 0x204d61702829293b, 0x0a20202020202020, - 0x20202020206e6f64, 0x65732e636c656172, 0x28293b0a20202020, 0x2020202020202020, 0x69736c616e64732e, - 0x636c65617228293b, 0x0a20202020202020, 0x20202020206d6f75, 0x6e746564203d206e, 0x6577205765616b53, - 0x657428293b0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6572726f723b0a20, 0x202020202020207d, - 0x0a20202020202020, 0x20666f722028636f, 0x6e7374205b69642c, 0x20656e7472795d20, 0x6f66206368616e67, - 0x657329207b0a2020, 0x2020202020202020, 0x2020696620282165, 0x6e74727929206e6f, 0x6465732e64656c65, - 0x7465286964293b0a, 0x2020202020202020, 0x20202020656c7365, 0x207b0a2020202020, 0x2020202020202020, - 0x202020656e747279, 0x2e6e6f6465203d20, 0x6e6f6465732e6765, 0x74286964292e6e6f, 0x64653b0a20202020, - 0x2020202020202020, 0x2020202069662028, 0x656e7472792e6368, 0x696c6472656e2069, 0x6e7374616e63656f, - 0x66204368696c6444, 0x656c74612920656e, 0x7472792e6368696c, 0x6472656e203d2065, 0x6e7472792e636869, - 0x6c6472656e2e636f, 0x6d6d697428293b0a, 0x2020202020202020, 0x2020202020202020, 0x6e6f6465732e7365, - 0x742869642c20656e, 0x747279293b0a2020, 0x2020202020202020, 0x20207d0a20202020, 0x202020207d0a2020, - 0x202020202020666f, 0x722028636f6e7374, 0x206e6f6465206f66, 0x206e65774d6f756e, 0x747329206d6f756e, - 0x7465642e61646428, 0x6e6f6465293b0a20, 0x2020207d0a0a2020, 0x2020636f6e737420, 0x617069203d207b0a, - 0x2020202020202020, 0x6170706c792c0a20, 0x2020202020202069, 0x736c616e64286e61, 0x6d652c20656c656d, - 0x656e7429207b0a20, 0x2020202020202020, 0x2020206966202821, 0x28656c656d656e74, 0x20696e7374616e63, - 0x656f662048544d4c, 0x456c656d656e7429, 0x207c7c2021746167, 0x732e68617328656c, 0x656d656e742e6c6f, - 0x63616c4e616d6529, 0x207c7c20666f7262, 0x696464656e546167, 0x732e68617328656c, 0x656d656e742e6c6f, - 0x63616c4e616d6529, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, - 0x4572726f72282761, 0x6e2069736c616e64, 0x206d757374206265, 0x20616e20616c6c6f, 0x7765642048544d4c, - 0x20656c656d656e74, 0x27293b0a20202020, 0x2020202020202020, 0x636f6e7374207072, 0x6576696f7573203d, - 0x2069736c616e6473, 0x2e676574286e616d, 0x65293b0a20202020, 0x2020202020202020, 0x6966202870726576, - 0x696f757320262620, 0x70726576696f7573, 0x2e656c656d656e74, 0x20213d3d20656c65, 0x6d656e7429207468, - 0x726f77206e657720, 0x4572726f72282769, 0x736c616e64206e61, 0x6d6520616c726561, 0x6479206c656e7427, - 0x293b0a2020202020, 0x2020202020202069, 0x6620282170726576, 0x696f757329207b0a, 0x2020202020202020, - 0x2020202020202020, 0x69662028656c656d, 0x656e742e6368696c, 0x644e6f6465732e6c, 0x656e677468207c7c, - 0x2041727261792e66, 0x726f6d2869736c61, 0x6e64732e76616c75, 0x65732829292e736f, 0x6d6528656e747279, - 0x203d3e20656e7472, 0x792e656c656d656e, 0x74203d3d3d20656c, 0x656d656e74207c7c, 0x20656e7472792e65, - 0x6c656d656e742e63, 0x6f6e7461696e7328, 0x656c656d656e7429, 0x207c7c20656c656d, 0x656e742e636f6e74, - 0x61696e7328656e74, 0x72792e656c656d65, 0x6e742929290a2020, 0x2020202020202020, 0x2020202020202020, - 0x20207468726f7720, 0x6e6577204572726f, 0x72282769736c616e, 0x6473206d75737420, 0x626520656d707479, - 0x20616e6420646973, 0x6a6f696e7427293b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x20746f6b656e203d, 0x207b656c656d656e, 0x747d3b0a20202020, 0x2020202020202020, - 0x69736c616e64732e, 0x736574286e616d65, 0x2c20746f6b656e29, 0x3b0a202020202020, 0x2020202020207265, - 0x7475726e20282920, 0x3d3e207b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2869736c616e6473, - 0x2e676574286e616d, 0x652920213d3d2074, 0x6f6b656e29207265, 0x7475726e3b0a2020, 0x2020202020202020, - 0x2020202020206973, 0x6c616e64732e6465, 0x6c657465286e616d, 0x65293b0a20202020, 0x2020202020202020, - 0x202020206d6f756e, 0x7465642e64656c65, 0x746528656c656d65, 0x6e74293b0a202020, 0x2020202020202020, - 0x2020202020636f6e, 0x73742072656d6f76, 0x6564203d206e6577, 0x2053657428293b0a, 0x2020202020202020, - 0x2020202020202020, 0x666f722028636f6e, 0x7374205b69642c20, 0x656e7472795d206f, 0x66206e6f64657329, - 0x207b0a2020202020, 0x2020202020202020, 0x2020202020202069, 0x662028656e747279, 0x2e6e6f6465203d3d, - 0x3d20656c656d656e, 0x74207c7c20656c65, 0x6d656e742e636f6e, 0x7461696e7328656e, 0x7472792e6e6f6465, - 0x29292072656d6f76, 0x65642e6164642869, 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, - 0x656c7365207b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020202020202066, 0x6f7220286c657420, - 0x706172656e74203d, 0x20656e7472792e70, 0x6172656e743b2070, 0x6172656e7420213d, 0x3d206e756c6c3b20, - 0x706172656e74203d, 0x206e6f6465732e67, 0x657428706172656e, 0x74293f2e70617265, 0x6e74203f3f206e75, - 0x6c6c290a20202020, 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, 0x696620286e6f6465, - 0x732e676574287061, 0x72656e74293f2e6e, 0x6f6465203d3d3d20, 0x656c656d656e7429, 0x207b2072656d6f76, - 0x65642e6164642869, 0x64293b2062726561, 0x6b3b207d0a202020, 0x2020202020202020, 0x2020202020202020, - 0x207d0a2020202020, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2020202020666f72, - 0x2028636f6e737420, 0x6964206f66207265, 0x6d6f76656429206e, 0x6f6465732e64656c, 0x657465286964293b, - 0x0a20202020202020, 0x2020202020202020, 0x20636c65616e4c69, 0x7374656e65727328, 0x6e6f646573293b0a, - 0x2020202020202020, 0x202020207d3b0a20, 0x202020202020207d, 0x2c0a202020207d3b, 0x0a20202020627269, - 0x6467652e646f6d42, 0x6174636848616e64, 0x6c6572203d206170, 0x706c793b0a202020, 0x2072657475726e20, - 0x6170693b0a7d0a00 + 0x2020202020202020, 0x636173652031333a, 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, + 0x206e616d65203d20, 0x6e616d6541742862, 0x292c206e6f646520, 0x3d2069736c616e64, 0x732e676574286e61, + 0x6d65293f2e656c65, 0x6d656e743b0a2020, 0x2020202020202020, 0x2020202020206966, 0x2028216e6f646529, + 0x207468726f77206e, 0x6577204572726f72, 0x2860756e6b6e6f77, 0x6e20444f4d206973, 0x6c616e6420247b6e, + 0x616d657d60293b0a, 0x2020202020202020, 0x2020202020202020, 0x696620286d6f756e, 0x7465642e68617328, + 0x6e6f646529207c7c, 0x206e65774d6f756e, 0x74732e686173286e, 0x6f64652929207468, 0x726f77206e657720, + 0x4572726f72282769, 0x736c616e6420616c, 0x7265616479206d6f, 0x756e74656427293b, 0x0a20202020202020, + 0x2020202020202020, 0x206e65774d6f756e, 0x74732e736574286e, 0x6f64652c2061293b, 0x0a20202020202020, + 0x2020202020202020, 0x2066726573682861, 0x2c207b6e6f64652c, 0x20746578743a2066, 0x616c73652c206973, + 0x6c616e643a207472, 0x75657d293b0a2020, 0x2020202020202020, 0x2020202020207374, 0x6570732e70757368, + 0x282829203d3e206e, 0x6f6465732e736574, 0x28612c207b6e6f64, 0x657d29293b0a2020, 0x2020202020202020, + 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x202020202020207d, + 0x0a20202020202020, 0x207d0a2020202020, 0x2020202f2f205265, 0x73696475616c2044, 0x4f4d206578636570, + 0x74696f6e73202866, 0x6f72206578616d70, 0x6c65206120706167, 0x6527732063757374, 0x6f6d20656c656d65, + 0x6e74292070726f70, 0x616761746520746f, 0x2074686520627269, 0x6467652061732061, 0x2072656a65637469, + 0x6f6e2e0a20202020, 0x202020202f2f2049, 0x6e20746861742063, 0x6173652064697363, 0x6172642068616e64, + 0x6c65733a20746865, 0x2061637475616c20, 0x444f4d206d617920, 0x6861766520626565, 0x6e20706172746c79, + 0x206368616e676564, 0x20616e64206d7573, 0x74206265206c656e, 0x7420616761696e2e, 0x0a20202020202020, + 0x20747279207b0a20, 0x2020202020202020, 0x202020666f722028, 0x636f6e7374207374, 0x6570206f66207374, + 0x6570732920737465, 0x7028293b0a202020, 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, + 0x2020202020202020, 0x202020636c65616e, 0x4c697374656e6572, 0x73286c697374656e, 0x6572732e6b657973, + 0x2829293b0a202020, 0x2020202020202020, 0x206e6f6465732e63, 0x6c65617228293b0a, 0x2020202020202020, + 0x2020202069736c61, 0x6e64732e636c6561, 0x7228293b0a202020, 0x2020202020202020, 0x206d6f756e746564, + 0x203d206e65772057, 0x65616b4d61702829, 0x3b0a202020202020, 0x2020202020207468, 0x726f77206572726f, + 0x723b0a2020202020, 0x2020207d0a202020, 0x2020202020666f72, 0x2028636f6e737420, 0x5b69642c20656e74, + 0x72795d206f662063, 0x68616e6765732920, 0x7b0a202020202020, 0x2020202020206966, 0x202821656e747279, + 0x29206e6f6465732e, 0x64656c6574652869, 0x64293b0a20202020, 0x2020202020202020, 0x656c7365207b0a20, + 0x2020202020202020, 0x2020202020202065, 0x6e7472792e6e6f64, 0x65203d206e6f6465, 0x732e676574286964, + 0x292e6e6f64653b0a, 0x2020202020202020, 0x2020202020202020, 0x69662028656e7472, 0x792e6368696c6472, + 0x656e20696e737461, 0x6e63656f66204368, 0x696c6444656c7461, 0x2920656e7472792e, 0x6368696c6472656e, + 0x203d20656e747279, 0x2e6368696c647265, 0x6e2e636f6d6d6974, 0x28293b0a20202020, 0x2020202020202020, + 0x202020206e6f6465, 0x732e736574286964, 0x2c20656e74727929, 0x3b0a202020202020, 0x2020202020207d0a, + 0x2020202020202020, 0x7d0a202020202020, 0x2020666f72202863, 0x6f6e7374205b6e6f, 0x64652c2069645d20, + 0x6f66206e65774d6f, 0x756e747329206d6f, 0x756e7465642e7365, 0x74286e6f64652c20, 0x6964293b0a202020, + 0x207d0a0a20202020, 0x636f6e7374206170, 0x69203d207b0a2020, 0x2020202020206170, 0x706c792c0a202020, + 0x202020202069736c, 0x616e64286e616d65, 0x2c20656c656d656e, 0x7429207b0a202020, 0x2020202020202020, + 0x2069662028212865, 0x6c656d656e742069, 0x6e7374616e63656f, 0x662048544d4c456c, 0x656d656e7429207c, + 0x7c2021746167732e, 0x68617328656c656d, 0x656e742e6c6f6361, 0x6c4e616d6529207c, 0x7c20666f72626964, + 0x64656e546167732e, 0x68617328656c656d, 0x656e742e6c6f6361, 0x6c4e616d6529290a, 0x2020202020202020, + 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, 0x726f722827616e20, 0x69736c616e64206d, + 0x7573742062652061, 0x6e20616c6c6f7765, 0x642048544d4c2065, 0x6c656d656e742729, 0x3b0a202020202020, + 0x202020202020636f, 0x6e73742070726576, 0x696f7573203d2069, 0x736c616e64732e67, 0x6574286e616d6529, + 0x3b0a202020202020, 0x2020202020206966, 0x202870726576696f, 0x7573202626207072, 0x6576696f75732e65, + 0x6c656d656e742021, 0x3d3d20656c656d65, 0x6e7429207468726f, 0x77206e6577204572, 0x726f72282769736c, + 0x616e64206e616d65, 0x20616c7265616479, 0x206c656e7427293b, 0x0a20202020202020, 0x2020202020696620, + 0x282170726576696f, 0x757329207b0a2020, 0x2020202020202020, 0x2020202020206966, 0x2028656c656d656e, + 0x742e6368696c644e, 0x6f6465732e6c656e, 0x677468207c7c2041, 0x727261792e66726f, 0x6d2869736c616e64, + 0x732e76616c756573, 0x2829292e736f6d65, 0x28656e747279203d, 0x3e20656e7472792e, 0x656c656d656e7420, + 0x3d3d3d20656c656d, 0x656e74207c7c2065, 0x6e7472792e656c65, 0x6d656e742e636f6e, 0x7461696e7328656c, + 0x656d656e7429207c, 0x7c20656c656d656e, 0x742e636f6e746169, 0x6e7328656e747279, 0x2e656c656d656e74, + 0x2929290a20202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, + 0x2769736c616e6473, 0x206d757374206265, 0x20656d7074792061, 0x6e64206469736a6f, 0x696e7427293b0a20, + 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x20636f6e73742074, 0x6f6b656e203d207b, + 0x656c656d656e747d, 0x3b0a202020202020, 0x2020202020206973, 0x6c616e64732e7365, 0x74286e616d652c20, + 0x746f6b656e293b0a, 0x2020202020202020, 0x2020202072657475, 0x726e202829203d3e, 0x207b0a2020202020, + 0x2020202020202020, 0x2020206966202869, 0x736c616e64732e67, 0x6574286e616d6529, 0x20213d3d20746f6b, + 0x656e292072657475, 0x726e3b0a20202020, 0x2020202020202020, 0x2020202069736c61, 0x6e64732e64656c65, + 0x7465286e616d6529, 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x726f6f744964203d, + 0x206d6f756e746564, 0x2e67657428656c65, 0x6d656e74293b0a20, 0x2020202020202020, 0x202020202020206d, + 0x6f756e7465642e64, 0x656c65746528656c, 0x656d656e74293b0a, 0x2020202020202020, 0x2020202020202020, + 0x69662028726f6f74, 0x4964203d3d3d2075, 0x6e646566696e6564, 0x292072657475726e, 0x3b0a202020202020, + 0x2020202020202020, 0x2020636f6e737420, 0x70656e64696e6720, 0x3d205b726f6f7449, 0x645d3b0a20202020, + 0x2020202020202020, 0x202020207768696c, 0x65202870656e6469, 0x6e672e6c656e6774, 0x6829207b0a202020, + 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742069, 0x64203d2070656e64, 0x696e672e706f7028, + 0x292c20656e747279, 0x203d206e6f646573, 0x2e67657428696429, 0x3b0a202020202020, 0x2020202020202020, + 0x202020202020666f, 0x722028636f6e7374, 0x206368696c64206f, 0x6620656e7472792e, 0x6368696c6472656e, + 0x292070656e64696e, 0x672e707573682863, 0x68696c64293b0a20, 0x2020202020202020, 0x2020202020202020, + 0x202020636c65616e, 0x4c697374656e6572, 0x73285b69645d293b, 0x0a20202020202020, 0x2020202020202020, + 0x20202020206e6f64, 0x65732e64656c6574, 0x65286964293b0a20, 0x2020202020202020, 0x202020202020207d, + 0x0a20202020202020, 0x20202020207d3b0a, 0x2020202020202020, 0x7d2c0a202020207d, 0x3b0a202020206272, + 0x696467652e646f6d, 0x426174636848616e, 0x646c6572203d2061, 0x70706c793b0a2020, 0x202072657475726e, + 0x206170693b0a7d0a }; }; diff --git a/include/webfront/weblink/DomBatch.hpp b/include/webfront/weblink/DomBatch.hpp index 4b6de652..48fe6c47 100644 --- a/include/webfront/weblink/DomBatch.hpp +++ b/include/webfront/weblink/DomBatch.hpp @@ -34,19 +34,29 @@ struct DomOperation { /** @brief An owning command; all integers are canonical uint32 LEB128 except the fixed little-endian batch id. */ class DomBatch { public: - static constexpr std::size_t maxBytes = 1024 * 1024; // Complete command, including the six-byte header. - static constexpr std::size_t headerBytes = 6; + static constexpr std::size_t maxBytes = 1024 * 1024; // Complete command, including the six-byte header. + static constexpr std::size_t headerBytes = 6; + static constexpr std::size_t maxOperations = 131072; - explicit DomBatch(std::uint32_t id = 0) : bytes{std::byte(Command::domBatch), std::byte{1}} { + explicit DomBatch(std::uint32_t id) : bytes{std::byte(Command::domBatch), std::byte{1}} { + if (id == 0) + throw std::invalid_argument("DOM batch id zero is reserved"); for (unsigned shift = 0; shift < 32; shift += 8) bytes.push_back(std::byte((id >> shift) & 255)); } /// Appends atomically: an invalid UTF-8 string or an oversized operation leaves this batch unchanged. void add(const DomOperation& op) { - std::vector encoded{std::byte(op.code)}; + if (operationCount == maxOperations) + throw std::length_error("DOM batch operation limit exceeded"); const auto [integers, string] = layout(op.code); const std::array values{op.a, op.b, op.c}; + for (unsigned i = integers; i < values.size(); ++i) + if (values[i] != 0 && !(op.code == DomOp::listen && i == 2)) + throw std::invalid_argument("Nonzero unused DOM operand"); + if (!string && !op.value.empty()) + throw std::invalid_argument("Unused DOM string operand"); + std::vector encoded{std::byte(op.code)}; for (unsigned i = 0; i < integers; ++i) putVarint(encoded, values[i]); if (op.code == DomOp::listen) { @@ -65,6 +75,7 @@ class DomBatch { if (encoded.size() > maxBytes - bytes.size()) throw std::length_error("DOM batch exceeds 1 MiB"); bytes.insert(bytes.end(), encoded.begin(), encoded.end()); + ++operationCount; } [[nodiscard]] std::span header() const { @@ -82,38 +93,31 @@ class DomBatch { if (raw.size() > maxBytes) throw std::length_error("DOM batch exceeds 1 MiB"); if (raw.size() < headerBytes || raw[0] != std::byte(Command::domBatch) || raw[1] != std::byte{1}) - throw std::runtime_error("Invalid DOM batch header"); + throw std::invalid_argument("Invalid DOM batch header"); std::uint32_t id{}; for (unsigned i = 0; i < 4; ++i) id |= std::uint32_t(raw[2 + i]) << (8 * i); + if (id == 0) + throw std::invalid_argument("DOM batch id zero is reserved"); + Reader counter{raw.subspan(headerBytes)}; + std::size_t count{}; + while (!counter.raw.empty()) { + if (count == maxOperations) + throw std::length_error("DOM batch operation limit exceeded"); + readOperation(counter, false); + ++count; + } Reader input{raw.subspan(headerBytes)}; std::vector operations; - while (!input.raw.empty()) { - DomOperation op{static_cast(input.byte())}; - const auto [integers, string] = layout(op.code); - std::array values{&op.a, &op.b, &op.c}; - for (unsigned i = 0; i < integers; ++i) - *values[i] = input.varint(); - if (op.code == DomOp::listen) { - op.c = input.byte(); - if (op.c > 3) - throw std::runtime_error("Invalid DOM listener flags"); - } - if (string) { - const auto size = input.varint(); - if (size > input.raw.size()) - throw std::runtime_error("Truncated DOM string"); - op.value.assign(reinterpret_cast(input.raw.data()), size); - validateUtf8(op.value); - input.raw = input.raw.subspan(size); - } - operations.push_back(std::move(op)); - } + operations.reserve(count); + while (!input.raw.empty()) + operations.push_back(readOperation(input, true)); return {id, std::move(operations)}; } private: std::vector bytes; + std::size_t operationCount{}; static std::pair layout(DomOp code) { switch (code) { @@ -136,7 +140,7 @@ class DomBatch { case DomOp::remove: return {1, false}; } - throw std::runtime_error("Unknown DOM operation"); + throw std::invalid_argument("Unknown DOM operation"); } static void putVarint(std::vector& out, std::uint32_t value) { @@ -151,7 +155,7 @@ class DomBatch { std::span raw; std::uint8_t byte() { if (raw.empty()) - throw std::runtime_error("Truncated DOM batch"); + throw std::invalid_argument("Truncated DOM batch"); const auto value = std::uint8_t(raw.front()); raw = raw.subspan(1); return value; @@ -161,15 +165,41 @@ class DomBatch { for (unsigned i = 0; i < 5; ++i) { const auto next = byte(); if ((i == 4 && next > 15) || (i && next == 0)) - throw std::runtime_error("Noncanonical or overflowing DOM varint"); + throw std::invalid_argument("Noncanonical or overflowing DOM varint"); value |= std::uint32_t(next & 127) << (7 * i); if (!(next & 128)) return value; } - throw std::runtime_error("Overflowing DOM varint"); + throw std::invalid_argument("Overflowing DOM varint"); } }; + // First pass validates structure/count without allocating strings; the owning pass checks UTF-8 before copying. + static DomOperation readOperation(Reader& input, bool ownStrings) { + DomOperation op{static_cast(input.byte())}; + const auto [integers, string] = layout(op.code); + std::array values{&op.a, &op.b, &op.c}; + for (unsigned i = 0; i < integers; ++i) + *values[i] = input.varint(); + if (op.code == DomOp::listen) { + op.c = input.byte(); + if (op.c > 3) + throw std::invalid_argument("Invalid DOM listener flags"); + } + if (string) { + const auto size = input.varint(); + if (size > input.raw.size()) + throw std::invalid_argument("Truncated DOM string"); + if (ownStrings) { + const std::string_view value(reinterpret_cast(input.raw.data()), size); + validateUtf8(value); + op.value.assign(value); + } + input.raw = input.raw.subspan(size); + } + return op; + } + static void validateUtf8(std::string_view value) { std::size_t i = 0; while (i < value.size()) { diff --git a/js/core/dom-interpreter.mjs b/js/core/dom-interpreter.mjs index 89587d6d..fc447a10 100644 --- a/js/core/dom-interpreter.mjs +++ b/js/core/dom-interpreter.mjs @@ -1,6 +1,7 @@ // ADR-003: optional DOM command interpreter. Only this module touches the DOM; WebFront.js routes command 5. const maxBytes = 1024 * 1024; const maxEntries = 65536; +const maxOperations = 131072; const maxNameBytes = 1024 * 1024; const decoder = new TextDecoder('utf-8', {fatal: true, ignoreBOM: true}); const encoder = new TextEncoder(); @@ -78,22 +79,27 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = const names = []; let nameBytes = 0; const nodes = new Map(); - let mounted = new WeakSet(); + let mounted = new WeakMap(); const islands = new Map(), listeners = new Map(); const allowedAttribute = name => !name.startsWith('on') && !forbiddenAttributes.has(name) && (attributes.has(name) || /^(aria|data)-[a-z0-9-]+$/.test(name)); const safeUrl = value => ['http:', 'https:', 'mailto:'].includes(new URL(value, document.baseURI).protocol); function unlisten(id, index) { - const key = `${id}:${index}`, entry = listeners.get(key); + const group = listeners.get(id), entry = group?.get(index); if (entry) { entry.node.removeEventListener(entry.name, entry.listener); - listeners.delete(key); + group.delete(index); + if (!group.size) listeners.delete(id); } } - function cleanListeners(live) { - for (const [key, entry] of listeners) - if (!live.has(entry.id)) unlisten(entry.id, Number(key.split(':')[1])); + function cleanListeners(ids) { + for (const id of ids) { + const group = listeners.get(id); + if (!group) continue; + for (const entry of group.values()) entry.node.removeEventListener(entry.name, entry.listener); + listeners.delete(id); + } } function listen(id, index, name, flags) { unlisten(id, index); @@ -107,15 +113,19 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = bridge.cppFunction('wfDom.event')(id, index, value).catch(() => {}); }; node.addEventListener(name, listener); - listeners.set(`${id}:${index}`, {id, node, name, listener}); + let group = listeners.get(id); + if (!group) { group = new Map(); listeners.set(id, group); } + group.set(index, {node, name, listener}); } function decode(bytes) { - if (!(bytes instanceof Uint8Array) || bytes.length < 6 || bytes.length > maxBytes || bytes[0] !== 5 || bytes[1] !== 1) + if (!(bytes instanceof Uint8Array) || bytes.length < 6 || bytes.length > maxBytes || bytes[0] !== 5 || bytes[1] !== 1 || + (bytes[2] | bytes[3] | bytes[4] | bytes[5]) === 0) throw new RangeError('invalid DOM batch header or size'); const input = reader(bytes), operations = []; // Retain each fully decoded NAME even if a later operation or validation rejects the batch. while (!input.done) { + if (operations.length === maxOperations) throw new RangeError('DOM batch operation limit exceeded'); const op = input.byte(); if (op < 1 || op > 13) throw new Error(`unknown DOM operation ${op}`); const a = input.uint(); @@ -137,7 +147,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = function apply(bytes) { const operations = decode(bytes); // Only edited records and child-set deltas are copied. Untouched entries stay in the live table. - const changes = new Map(), newMounts = new Set(); + const changes = new Map(), newMounts = new Map(); let liveSize = nodes.size; const lookup = id => changes.has(id) ? changes.get(id) : nodes.get(id); const steps = []; @@ -245,7 +255,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = steps.push(() => { nodes.get(a).node.remove(); for (const id of removed) nodes.delete(id); - cleanListeners(nodes); + cleanListeners(removed); }); break; } @@ -260,7 +270,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = const name = nameAt(b), node = islands.get(name)?.element; if (!node) throw new Error(`unknown DOM island ${name}`); if (mounted.has(node) || newMounts.has(node)) throw new Error('island already mounted'); - newMounts.add(node); + newMounts.set(node, a); fresh(a, {node, text: false, island: true}); steps.push(() => nodes.set(a, {node})); break; @@ -272,10 +282,10 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = try { for (const step of steps) step(); } catch (error) { - cleanListeners(new Map()); + cleanListeners(listeners.keys()); nodes.clear(); islands.clear(); - mounted = new WeakSet(); + mounted = new WeakMap(); throw error; } for (const [id, entry] of changes) { @@ -286,7 +296,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = nodes.set(id, entry); } } - for (const node of newMounts) mounted.add(node); + for (const [node, id] of newMounts) mounted.set(node, id); } const api = { @@ -305,17 +315,16 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = return () => { if (islands.get(name) !== token) return; islands.delete(name); + const rootId = mounted.get(element); mounted.delete(element); - const removed = new Set(); - for (const [id, entry] of nodes) { - if (entry.node === element || element.contains(entry.node)) removed.add(id); - else { - for (let parent = entry.parent; parent !== null; parent = nodes.get(parent)?.parent ?? null) - if (nodes.get(parent)?.node === element) { removed.add(id); break; } - } + if (rootId === undefined) return; + const pending = [rootId]; + while (pending.length) { + const id = pending.pop(), entry = nodes.get(id); + for (const child of entry.children) pending.push(child); + cleanListeners([id]); + nodes.delete(id); } - for (const id of removed) nodes.delete(id); - cleanListeners(nodes); }; }, }; diff --git a/test/unit/DomBatchTests.cpp b/test/unit/DomBatchTests.cpp index 07de8dd6..cf6b0809 100644 --- a/test/unit/DomBatchTests.cpp +++ b/test/unit/DomBatchTests.cpp @@ -2,6 +2,7 @@ #include #include +#include using namespace webfront::msg; @@ -71,7 +72,7 @@ SCENARIO("DOM codecs reject malformed input and enforce the complete command bud packet({11, 1, 2, 4})}; THEN("Each is rejected") { for (const auto& bytes : invalid) - REQUIRE_THROWS(DomBatch::decode(bytes)); + REQUIRE_THROWS_AS(DomBatch::decode(bytes), std::invalid_argument); auto header = packet({}); for (std::size_t size = 0; size < 6; ++size) REQUIRE_THROWS(DomBatch::decode(std::span(header).first(size))); @@ -83,7 +84,7 @@ SCENARIO("DOM codecs reject malformed input and enforce the complete command bud } } GIVEN("A text operation filling exactly 1 MiB including headers") { - DomBatch batch; + DomBatch batch(1); batch.add({DomOp::text, 1, 0, 0, std::string(DomBatch::maxBytes - 11, 'x')}); THEN("The boundary succeeds, the next operation fails atomically, and the decoder rejects oversized input") { REQUIRE(batch.data().size() == DomBatch::maxBytes); @@ -96,7 +97,7 @@ SCENARIO("DOM codecs reject malformed input and enforce the complete command bud } } GIVEN("An invalid outgoing operation") { - DomBatch batch; + DomBatch batch(1); THEN("No prefix is appended") { REQUIRE_THROWS(batch.add({DomOp::text, 1, 0, 0, std::string("\xc0\x80", 2)})); REQUIRE_THROWS(batch.add({DomOp::listen, 1, 2, 4})); @@ -105,3 +106,46 @@ SCENARIO("DOM codecs reject malformed input and enforce the complete command bud } } } + +SCENARIO("DOM batch identifiers and operands are explicit and canonical") { + STATIC_REQUIRE_FALSE(std::is_default_constructible_v); + GIVEN("the reserved uncorrelated identifier zero") { + THEN("neither encoder nor decoder accepts it as a real batch") { + REQUIRE_THROWS_AS(DomBatch(0), std::invalid_argument); + auto raw = packet({}); + std::fill(raw.begin() + 2, raw.begin() + 6, std::byte{0}); + REQUIRE_THROWS_AS(DomBatch::decode(raw), std::invalid_argument); + } + } + GIVEN("nonzero operands absent from the operation's wire layout") { + DomBatch batch(1); + const std::vector invalid{ + {DomOp::remove, 1, 2}, + {DomOp::text, 1, 0, 3, "text"}, + {DomOp::append, 1, 2, 3}, + {DomOp::listen, 1, 2, 0, "unused"} + }; + THEN("each encoding fails without appending a prefix") { + for (const auto& op : invalid) + REQUIRE_THROWS_AS(batch.add(op), std::invalid_argument); + REQUIRE(batch.data().size() == DomBatch::headerBytes); + } + } +} + +SCENARIO("DOM operation counts bound owning decoder allocation independently of wire bytes") { + GIVEN("a batch containing exactly the maximum number of minimum-sized operations") { + DomBatch batch(1); + for (std::size_t i = 0; i < DomBatch::maxOperations; ++i) + batch.add({DomOp::remove, 1}); + THEN("the exact boundary decodes, and both codecs reject one additional operation") { + REQUIRE(DomBatch::decode(batch.data()).second.size() == DomBatch::maxOperations); + REQUIRE_THROWS_AS(batch.add({DomOp::remove, 1}), std::length_error); + auto raw = std::vector(batch.data().begin(), batch.data().end()); + raw.push_back(std::byte(DomOp::remove)); + raw.push_back(std::byte{1}); + REQUIRE(raw.size() < DomBatch::maxBytes); + REQUIRE_THROWS_AS(DomBatch::decode(raw), std::length_error); + } + } +} diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index ca603f1e..ded39578 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -112,7 +112,7 @@ class BrowserIntegrationTest { TestState state; // Accessed only by callbacks on the server context. finish() runs after WfDriver joins app.shutdown(). std::map domRejections; - std::string domEventLog; + std::array domEventCounts{}; optional connectedUI; UISubscription uiSubscription; future cppResult; @@ -286,12 +286,18 @@ class BrowserIntegrationTest { }); webFront->cppFunction("wfDom.event", [this](uint32_t node, uint32_t event, const string& value) { - domEventLog += to_string(node) + ":" + to_string(event) + ":" + value + "|"; + using Event = tuple; + static constexpr array expected{ + Event{10, 4, "hello"}, Event{11, 5, "true"}, Event{11, 5, "false"}, + Event{10, 6, "Escape"}, Event{10, 7, ""}}; + size_t index = 0; + while (index < expected.size() && expected[index] != Event{node, event, value}) + ++index; + ++domEventCounts[index]; // Last slot counts all unexpected identities or values. }); - webFront->cppFunction("domEventLog", [this] { - if (domEventLog == "10:4:hello|11:5:true|11:5:false|10:6:Escape|10:7:|") - state.domEventsObserved = true; - return domEventLog; + webFront->cppFunction("domEventCounts", [this] { + if (domEventCounts == array{1, 1, 1, 1, 1, 0}) state.domEventsObserved = true; + return domEventCounts; }); webFront->cppFunction("cancelBrowserSender", [this] { @@ -438,7 +444,9 @@ class BrowserIntegrationTest { log::error("The specs did not report the end of the run"); return 1; } - if (!(state.domBatchSent && state.domRejectionObserved && state.domEventsObserved && state.browserReady && state.subscriberNotified && browserCallsObserved() && cppCallsObserved() + if (!(state.domBatchSent && state.domRejectionObserved && state.domEventsObserved + && state.browserReady && state.subscriberNotified + && browserCallsObserved() && cppCallsObserved() && rejectedWebSocket->rejectedRequests() >= 2)) { log::error("The specs passed but one of the bridge-direction checks failed"); return 1; diff --git a/test/web/dom-benchmark.html b/test/web/dom-benchmark.html index c1502c8c..f58184d2 100644 --- a/test/web/dom-benchmark.html +++ b/test/web/dom-benchmark.html @@ -21,7 +21,7 @@

Single-operation DOM batches

for (const byte of bytes) out.push(byte); } function tree(count) { - const out = [5, 1, 0, 0, 0, 0, 1, 0]; + const out = [5, 1, 1, 0, 0, 0, 1, 0]; string(out, 'root'); out.push(13, 1, 0); for (let id = 2; id <= count + 1; ++id) { @@ -38,7 +38,7 @@

Single-operation DOM batches

const release = dom.island('root', root); try { dom.apply(tree(count)); - const update = new Uint8Array([5, 1, 0, 0, 0, 0, 7, 2, 1, 120]); + const update = new Uint8Array([5, 1, 1, 0, 0, 0, 7, 2, 1, 120]); for (let i = 0; i < 20; ++i) dom.apply(update); const samples = []; for (let repeat = 0; repeat < 3; ++repeat) { diff --git a/test/web/suite/specs/dom-specs.mjs b/test/web/suite/specs/dom-specs.mjs index 7beb5276..15fed0c3 100644 --- a/test/web/suite/specs/dom-specs.mjs +++ b/test/web/suite/specs/dom-specs.mjs @@ -15,6 +15,24 @@ const text = (id, value) => [3, ...uint(id), ...str(value)]; const attr = (id, index, value) => [4, ...uint(id), ...uint(index), ...str(value)]; const prop = (id, index, value) => [6, ...uint(id), ...uint(index), ...str(value)]; +function countCollectionVisits(action) { + let visited = 0; + const methods = [[Map.prototype, Symbol.iterator], [Map.prototype, 'values'], [Set.prototype, Symbol.iterator]]; + const originals = methods.map(([prototype, key]) => prototype[key]); + try { + methods.forEach(([prototype, key], i) => { + const original = originals[i]; + prototype[key] = function* () { + for (const value of original.call(this)) { ++visited; yield value; } + }; + }); + action(); + } finally { + methods.forEach(([prototype, key], i) => { prototype[key] = originals[i]; }); + } + return visited; +} + describe('Embedded DOM command interpreter', () => { let install, bridge, dom, root, release; beforeAll(async () => { ({installDomInterpreter: install} = await import(moduleUrl)); }); @@ -167,24 +185,80 @@ describe('Embedded DOM command interpreter', () => { for (let id = 2; id < 2002; ++id) ops.push(text(id, 'x'), [8, 1, ...uint(id)]); dom.apply(packet(ops)); const update = packet([[7, 2, ...str('changed')], text(2002, 'new'), [8, 1, ...uint(2002)]]); - let visited = 0; - const originals = [Map.prototype[Symbol.iterator], Set.prototype[Symbol.iterator]]; - try { - for (const [prototype, original] of [[Map.prototype, originals[0]], [Set.prototype, originals[1]]]) { - prototype[Symbol.iterator] = function* () { - for (const value of original.call(this)) { ++visited; yield value; } - }; - } - dom.apply(update); - } finally { - Map.prototype[Symbol.iterator] = originals[0]; - Set.prototype[Symbol.iterator] = originals[1]; - } + const visited = countCollectionVisits(() => dom.apply(update)); expect(root.firstChild.data).toBe('changed'); expect(root.lastChild.data).toBe('new'); expect(visited).toBeLessThan(20); // Work must not grow with the 2,000 untouched children. }); + it('only visits subscriptions of removed nodes across a multi-remove batch', () => { + const ops = [name(3, 'click')]; + for (let id = 2; id < 1002; ++id) + ops.push([2, ...uint(id), 1], [8, 1, ...uint(id)], [11, ...uint(id), 3, 0]); + dom.apply(packet(ops)); + const removed = Array.from(root.children).slice(0, 50); + const update = packet(removed.map((_, i) => [10, ...uint(i + 2)])); + const visited = countCollectionVisits(() => dom.apply(update)); + expect(visited).toBeLessThan(500); + for (const node of removed) node.click(); + expect(bridge.cppFunction).not.toHaveBeenCalled(); + root.firstChild.click(); + expect(bridge.cppFunction).toHaveBeenCalledTimes(1); + }); + + it('revokes only its subtree without scanning or invalidating a detached chain', () => { + const count = 1000, ops = [name(3, 'click'), [2, 2, 1], [8, 1, 2], [11, 2, 3, 0]]; + for (let id = 100; id < 100 + count; ++id) { + ops.push([2, ...uint(id), 1]); + if (id > 100) ops.push([8, ...uint(id - 1), ...uint(id)]); + } + ops.push([11, ...uint(99 + count), 3, 0]); + dom.apply(packet(ops)); + const child = root.firstChild; + const visited = countCollectionVisits(() => release()); + expect(visited).toBeLessThan(20); + child.click(); + expect(bridge.cppFunction).not.toHaveBeenCalled(); + expect(() => dom.apply(packet([attr(2, 2, 'forgotten')]))).toThrow(); + const other = document.createElement('div'), revoke = dom.island('other', other); + try { + dom.apply(packet([name(4, 'other'), [13, 1, 4], [8, 1, 100]])); + expect(other.querySelectorAll('div').length).toBe(count); + let leaf = other.firstChild; + while (leaf.firstChild) leaf = leaf.firstChild; + leaf.click(); + expect(bridge.cppFunction).toHaveBeenCalledTimes(1); + } finally { revoke(); } + }); + + it('resumes after semantic rejection by reusing acquired names instead of redefining them', () => { + const rejected = packet([name(3, 'data-ready'), [2, 2, 1], [8, 1, 2], [10, 99]]); + expect(() => dom.apply(rejected)).toThrow(); + expect(root.childNodes.length).toBe(0); + dom.apply(packet([[2, 2, 1], attr(2, 3, 'recovered'), [8, 1, 2]])); + expect(root.firstChild.dataset.ready).toBe('recovered'); + expect(() => dom.apply(packet([name(3, 'data-ready')]))).toThrow(); + }); + + it('reserves batch id zero for uncorrelated malformed-message rejections', () => { + expect(() => dom.apply(packet([], 0))).toThrow(); + expect(() => dom.apply(packet([], 1))).not.toThrow(); + }); + + it('enforces the operation-count boundary before applying an oversized operation stream', () => { + dom.apply(packet([text(2, 'initial'), [8, 1, 2]])); + const count = 131072, bytes = new Uint8Array(6 + count * 3); + bytes.set(packet([])); + for (let offset = 6; offset < bytes.length; offset += 3) bytes.set([7, 2, 0], offset); + expect(() => dom.apply(bytes)).not.toThrow(); + expect(root.textContent).toBe(''); + dom.apply(packet([[7, 2, ...str('keep')]])); + const oversized = new Uint8Array(bytes.length + 3); + oversized.set(bytes); oversized.set([7, 2, 0], bytes.length); + expect(() => dom.apply(oversized)).toThrow(); + expect(root.textContent).toBe('keep'); + }); + it('discards rejected structural deltas and supports removing then recreating an identifier', () => { dom.apply(packet([[2, 2, 1], text(3, 'old'), [8, 2, 3], [8, 1, 2]])); expect(() => dom.apply(packet([[8, 1, 3], [8, 3, 2]]))).toThrow(); @@ -241,16 +315,16 @@ describe('DOM commands over the real WebSocket', () => { ])); const input = root.firstChild, checkbox = root.lastChild; input.value = 'hello'; input.dispatchEvent(new Event('input')); - checkbox.checked = true; checkbox.dispatchEvent(new Event('change')); checkbox.checked = false; checkbox.dispatchEvent(new Event('change')); - input.dispatchEvent(new KeyboardEvent('keydown', {key: 'Escape'})); const click = new Event('click', {cancelable: true}); input.dispatchEvent(click); + input.dispatchEvent(new KeyboardEvent('keydown', {key: 'Escape'})); + checkbox.checked = true; checkbox.dispatchEvent(new Event('change')); expect(click.defaultPrevented).toBeTrue(); - const expected = '10:4:hello|11:5:true|11:5:false|10:6:Escape|10:7:|'; - expect(await webFront.cppFunction('domEventLog')()).toBe(expected); + const expected = [1, 1, 1, 1, 1, 0]; // One of each expected event/value, no unexpected events; arrival order is irrelevant. + expect(Array.from(await webFront.cppFunction('domEventCounts')())).toEqual(expected); await webFront.cppFunction('sendDomBatch')(packet([[12, 10, 4], [10, 11]])); input.dispatchEvent(new Event('input')); checkbox.dispatchEvent(new Event('change')); - expect(await webFront.cppFunction('domEventLog')()).toBe(expected); + expect(Array.from(await webFront.cppFunction('domEventCounts')())).toEqual(expected); } finally { release(); root.remove(); delete webFront.domBatchHandler; } }); From b0f61c848e2885046c71886568ea3e530b41f644 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Tue, 27 Oct 2026 12:23:35 +0100 Subject: [PATCH 5/5] Fix DOM output property validation and MSVC event indexing [#380] --- docs/CHANGELOG.md | 2 + docs/EMBEDDED_ASSETS.md | 3 + .../ADR-003-protocole-binaire-et-bornes.md | 5 +- docs/adr/README.md | 2 +- .../webfront/system/DomInterpreterData.hpp | 341 +++++++++--------- js/core/dom-interpreter.mjs | 7 +- test/web/JasmineTest.cpp | 2 +- test/web/suite/specs/dom-specs.mjs | 19 + 8 files changed, 209 insertions(+), 172 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 1bce49cf..c41f77b3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -16,6 +16,8 @@ subscriptions by node and revoke islands by subtree traversal. Both codecs limit each batch to 131,072 operations; C++ reserves the counted operation total and rejects unused operands. Event integration checks count identities/values independently of arrival order. + Reject `PROPERTY value` on `output` before applying a batch, preserving tracked children; + update output text with `SET_TEXT`. Use checked event-count indexing for MSVC analysis. - The single-command test driver can set `--command-timeout` after browser/bootstrap startup, within its unchanged overall `--timeout` deadline (#376). The watchdog regression deliberately diff --git a/docs/EMBEDDED_ASSETS.md b/docs/EMBEDDED_ASSETS.md index 75d4ea40..c8d346c8 100644 --- a/docs/EMBEDDED_ASSETS.md +++ b/docs/EMBEDDED_ASSETS.md @@ -107,6 +107,9 @@ empty the former island elements (`replaceChildren()`) or replace them before le again. Names remain interned. Reload the document to reset names as well. See ADR-003 for the exact `wfDom.event` value contract. +`PROPERTY value` is rejected on ``, including empty elements, because its native setter +replaces child nodes. Create a text child and use `SET_TEXT` to update the displayed value. + ## Manual small-batch measurement `test/web/dom-benchmark.html` measures repeated single-operation SET_TEXT batches against detached diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 528a277a..9f1ca956 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -17,11 +17,12 @@ | 1.10 | 2026-10-26 | Acceptée | Ambroise Leclerc | Commande `domBatch` bornée, interpréteur embarqué optionnel et validation transactionnelle (#380). | — | | 1.11 | 2026-10-27 | Acceptée | Ambroise Leclerc | Validation par delta, budget cumulé des noms, récupération et contrat des événements précisés (#380). | — | | 1.12 | 2026-10-27 | Acceptée | Ambroise Leclerc | Identifiant de lot non nul, plafond d’opérations, codec canonique et nettoyage limité aux sous-arbres concernés (#380). | — | +| 1.13 | 2026-10-27 | Acceptée | Ambroise Leclerc | Rejet de PROPERTY value sur output pour préserver les identifiants de ses enfants (#380). | — | ## État et chronologie **Acceptée.** Décision initiale : **2022-02-06** (version 1.0). -Dernière révision : **2026-10-27** (version 1.12). +Dernière révision : **2026-10-27** (version 1.13). Le présent texte expose la décision en vigueur ; le tableau retrace ses états antérieurs. ## Contexte @@ -108,6 +109,8 @@ au-delà de U+10FFFF ; un BOM initial est conservé). L'opcode et les flags sont Les flags de LISTEN sont `1 = preventDefault`, `2 = stopPropagation` ; tous les autres bits sont interdits. PROPERTY accepte `value` (chaîne), `checked`, `disabled`, `indeterminate` (exactement `true` ou `false`), et `selectedIndex` (entier décimal de -1 à 2³¹-1). Les objets ne traversent pas le pont. +`PROPERTY value` est rejeté sur `output`, même vide : son setter natif remplace les enfants et +invaliderait les identifiants suivis. Créer un nœud texte enfant et le mettre à jour par SET_TEXT. Les identifiants de nœuds sont non nuls et uniques parmi les nœuds vivants. L'interpréteur borne les nœuds vivants et les noms à 65 536 entrées chacun, les noms à 1 024 octets UTF-8, et la somme des longueurs UTF-8 des noms à **1 048 576 octets par interpréteur** (hors surcoûts des chaînes et tables JS). diff --git a/docs/adr/README.md b/docs/adr/README.md index ee96ef65..2fd8b885 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -42,7 +42,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.4 — 2026-10-14 | -| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.12 — 2026-10-27 | +| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted | 2022-02-06 | 1.13 — 2026-10-27 | | [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted | 2022-02-06 | 2.4 — 2026-10-18 | | [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/include/webfront/system/DomInterpreterData.hpp b/include/webfront/system/DomInterpreterData.hpp index f8a19db0..3fb58407 100644 --- a/include/webfront/system/DomInterpreterData.hpp +++ b/include/webfront/system/DomInterpreterData.hpp @@ -9,8 +9,8 @@ namespace webfront::fs::generated { struct DomInterpreterData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{16368}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{16652}; + static constexpr std::array data{ 0x2f2f204144522d30, 0x30333a206f707469, 0x6f6e616c20444f4d, 0x20636f6d6d616e64, 0x20696e7465727072, 0x657465722e204f6e, 0x6c79207468697320, 0x6d6f64756c652074, 0x6f75636865732074, 0x686520444f4d3b20, 0x57656246726f6e74, 0x2e6a7320726f7574, 0x657320636f6d6d61, 0x6e6420352e0a636f, 0x6e7374206d617842, @@ -256,171 +256,178 @@ struct DomInterpreterData { 0x6167203d206e616d, 0x6541742862293b0a, 0x2020202020202020, 0x2020202020202020, 0x6966202821746167, 0x732e686173287461, 0x6729207c7c20666f, 0x7262696464656e54, 0x6167732e68617328, 0x7461672929207468, 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d20746167, 0x20247b7461677d60, - 0x293b0a2020202020, 0x2020202020202020, 0x2020206672657368, 0x28612c207b746578, 0x743a2066616c7365, - 0x7d293b0a20202020, 0x2020202020202020, 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, - 0x6f6465732e736574, 0x28612c207b6e6f64, 0x653a20646f63756d, 0x656e742e63726561, 0x7465456c656d656e, - 0x7428746167297d29, 0x3b207d293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, - 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x61736520333a0a20, 0x2020202020202020, - 0x2020202020202066, 0x7265736828612c20, 0x7b746578743a2074, 0x7275657d293b0a20, 0x2020202020202020, - 0x2020202020202073, 0x746570732e707573, 0x68282829203d3e20, 0x7b206e6f6465732e, 0x73657428612c207b, - 0x6e6f64653a20646f, 0x63756d656e742e63, 0x7265617465546578, 0x744e6f6465287661, 0x6c7565297d293b20, - 0x7d293b0a20202020, 0x2020202020202020, 0x2020202062726561, 0x6b3b0a2020202020, 0x2020202020202063, - 0x61736520343a2063, 0x61736520353a207b, 0x0a20202020202020, 0x2020202020202020, 0x20656c656d656e74, - 0x2861293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206e616d6520, 0x3d206e616d654174, - 0x2862293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x2821616c6c6f7765, 0x6441747472696275, - 0x7465286e616d6529, 0x29207468726f7720, 0x6e6577204572726f, 0x722860666f726269, 0x6464656e20444f4d, - 0x2061747472696275, 0x746520247b6e616d, 0x657d60293b0a2020, 0x2020202020202020, 0x2020202020206966, - 0x20286f70203d3d3d, 0x2034202626207572, 0x6c41747472696275, 0x7465732e68617328, 0x6e616d6529202626, - 0x2021736166655572, 0x6c2876616c756529, 0x29207468726f7720, 0x6e6577204572726f, 0x722827756e736166, - 0x6520444f4d205552, 0x4c27293b0a202020, 0x2020202020202020, 0x2020202020737465, 0x70732e7075736828, - 0x2829203d3e206f70, 0x203d3d3d2034203f, 0x206e6f6465732e67, 0x65742861292e6e6f, 0x64652e7365744174, - 0x7472696275746528, 0x6e616d652c207661, 0x6c756529203a206e, 0x6f6465732e676574, 0x2861292e6e6f6465, - 0x2e72656d6f766541, 0x7474726962757465, 0x286e616d6529293b, 0x0a20202020202020, 0x2020202020202020, - 0x20627265616b3b0a, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x2020636173652036, - 0x3a207b0a20202020, 0x2020202020202020, 0x20202020656c656d, 0x656e742861293b0a, 0x2020202020202020, - 0x2020202020202020, 0x636f6e7374206e61, 0x6d65203d206e616d, 0x6541742862293b0a, 0x2020202020202020, - 0x2020202020202020, 0x696620282170726f, 0x70657274794e616d, 0x65732e686173286e, 0x616d652929207468, - 0x726f77206e657720, 0x4572726f72286066, 0x6f7262696464656e, 0x20444f4d2070726f, 0x706572747920247b, - 0x6e616d657d60293b, 0x0a20202020202020, 0x2020202020202020, 0x20696620285b2763, 0x6865636b6564272c, - 0x202764697361626c, 0x6564272c2027696e, 0x64657465726d696e, 0x617465275d2e696e, 0x636c75646573286e, - 0x616d652920262620, 0x215b277472756527, 0x2c202766616c7365, 0x275d2e696e636c75, 0x6465732876616c75, - 0x6529290a20202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, - 0x27696e76616c6964, 0x20444f4d20626f6f, 0x6c65616e27293b0a, 0x2020202020202020, 0x2020202020202020, - 0x696620286e616d65, 0x203d3d3d20277365, 0x6c6563746564496e, 0x6465782720262620, 0x28212f5e2d3f5c64, - 0x2b242f2e74657374, 0x2876616c75652920, 0x7c7c20214e756d62, 0x65722e6973496e74, 0x65676572284e756d, - 0x6265722876616c75, 0x652929207c7c204e, 0x756d626572287661, 0x6c756529203c202d, 0x31207c7c204e756d, - 0x6265722876616c75, 0x6529203e20323134, 0x3734383336343729, 0x290a202020202020, 0x2020202020202020, - 0x2020202020207468, 0x726f77206e657720, 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d2073656c6563, - 0x746564496e646578, 0x27293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420636f6e766572, - 0x746564203d206e61, 0x6d65203d3d3d2027, 0x76616c756527203f, 0x2076616c7565203a, 0x206e616d65203d3d, - 0x3d202773656c6563, 0x746564496e646578, 0x27203f204e756d62, 0x65722876616c7565, 0x29203a2076616c75, - 0x65203d3d3d202774, 0x727565273b0a2020, 0x2020202020202020, 0x2020202020207374, 0x6570732e70757368, - 0x282829203d3e207b, 0x206e6f6465732e67, 0x65742861292e6e6f, 0x64655b6e616d655d, 0x203d20636f6e7665, - 0x727465643b207d29, 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, - 0x20202020207d0a20, 0x2020202020202020, 0x2020206361736520, 0x373a0a2020202020, 0x2020202020202020, - 0x2020206966202821, 0x7772697461626c65, 0x2861292e74657874, 0x29207468726f7720, 0x6e6577204572726f, - 0x7228275345545f54, 0x4558542072657175, 0x6972657320612074, 0x657874206e6f6465, 0x27293b0a20202020, - 0x2020202020202020, 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, 0x6f6465732e676574, - 0x2861292e6e6f6465, 0x2e64617461203d20, 0x76616c75653b207d, 0x293b0a2020202020, 0x2020202020202020, - 0x202020627265616b, 0x3b0a202020202020, 0x2020202020206361, 0x736520383a206361, 0x736520393a207b0a, - 0x2020202020202020, 0x2020202020202020, 0x636f6e7374207061, 0x72656e74203d2067, 0x65742861292c2063, - 0x68696c64203d2077, 0x72697461626c6528, 0x62293b0a20202020, 0x2020202020202020, 0x2020202069662028, - 0x706172656e742e74, 0x6578742920746872, 0x6f77206e65772045, 0x72726f7228276120, 0x74657874206e6f64, - 0x652063616e6e6f74, 0x206f776e20636869, 0x6c6472656e27293b, 0x0a20202020202020, 0x2020202020202020, - 0x20696620286f7020, 0x3d3d3d2039202626, 0x206765742863292e, 0x706172656e742021, 0x3d3d206129207468, - 0x726f77206e657720, 0x4572726f72282769, 0x6e73657274426566, 0x6f72652072656665, 0x72656e6365206973, - 0x206e6f7420612063, 0x68696c6427293b0a, 0x2020202020202020, 0x2020202020202020, 0x666f7220286c6574, - 0x20616e636573746f, 0x72203d20613b2061, 0x6e636573746f7220, 0x213d3d206e756c6c, 0x3b20616e63657374, - 0x6f72203d20676574, 0x28616e636573746f, 0x72292e706172656e, 0x74290a2020202020, 0x2020202020202020, - 0x2020202020202069, 0x662028616e636573, 0x746f72203d3d3d20, 0x6229207468726f77, 0x206e657720457272, - 0x6f722827444f4d20, 0x6379636c6527293b, 0x0a20202020202020, 0x2020202020202020, 0x2069662028636869, - 0x6c642e706172656e, 0x7420213d3d206e75, 0x6c6c292065646974, 0x286368696c642e70, 0x6172656e74292e63, - 0x68696c6472656e2e, 0x64656c6574652862, 0x293b0a2020202020, 0x2020202020202020, 0x2020206564697428, - 0x62292e706172656e, 0x74203d20613b0a20, 0x2020202020202020, 0x2020202020202065, 0x6469742861292e63, - 0x68696c6472656e2e, 0x6164642862293b0a, 0x2020202020202020, 0x2020202020202020, 0x73746570732e7075, - 0x7368282829203d3e, 0x206f70203d3d3d20, 0x38203f206e6f6465, 0x732e676574286129, 0x2e6e6f64652e6170, - 0x70656e644368696c, 0x64286e6f6465732e, 0x6765742862292e6e, 0x6f646529203a0a20, 0x2020202020202020, - 0x2020202020202020, 0x2020206e6f646573, 0x2e6765742861292e, 0x6e6f64652e696e73, 0x6572744265666f72, - 0x65286e6f6465732e, 0x6765742862292e6e, 0x6f64652c206e6f64, 0x65732e6765742863, 0x292e6e6f64652929, - 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x20202020207d0a20, - 0x2020202020202020, 0x2020206361736520, 0x31303a207b0a2020, 0x2020202020202020, 0x202020202020636f, - 0x6e737420656e7472, 0x79203d2077726974, 0x61626c652861293b, 0x0a20202020202020, 0x2020202020202020, - 0x2069662028656e74, 0x72792e706172656e, 0x7420213d3d206e75, 0x6c6c292065646974, 0x28656e7472792e70, - 0x6172656e74292e63, 0x68696c6472656e2e, 0x64656c6574652861, 0x293b0a2020202020, 0x2020202020202020, - 0x202020636f6e7374, 0x2072656d6f766564, 0x203d205b5d3b0a20, 0x2020202020202020, 0x2020202020202063, - 0x6f6e73742070656e, 0x64696e67203d205b, 0x615d3b0a20202020, 0x2020202020202020, 0x202020207768696c, - 0x65202870656e6469, 0x6e672e6c656e6774, 0x6829207b0a202020, 0x2020202020202020, 0x2020202020202020, - 0x20636f6e73742069, 0x64203d2070656e64, 0x696e672e706f7028, 0x293b0a2020202020, 0x2020202020202020, - 0x2020202020202072, 0x656d6f7665642e70, 0x757368286964293b, 0x0a20202020202020, 0x2020202020202020, - 0x2020202020666f72, 0x2028636f6e737420, 0x6368696c64206f66, 0x2067657428696429, 0x2e6368696c647265, - 0x6e292070656e6469, 0x6e672e7075736828, 0x6368696c64293b0a, 0x2020202020202020, 0x2020202020202020, - 0x7d0a202020202020, 0x2020202020202020, 0x2020666f72676574, 0x2861293b0a202020, 0x2020202020202020, - 0x2020202020737465, 0x70732e7075736828, 0x2829203d3e207b0a, 0x2020202020202020, 0x2020202020202020, - 0x202020206e6f6465, 0x732e676574286129, 0x2e6e6f64652e7265, 0x6d6f766528293b0a, 0x2020202020202020, - 0x2020202020202020, 0x20202020666f7220, 0x28636f6e73742069, 0x64206f662072656d, 0x6f76656429206e6f, - 0x6465732e64656c65, 0x7465286964293b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020636c6561, - 0x6e4c697374656e65, 0x72732872656d6f76, 0x6564293b0a202020, 0x2020202020202020, 0x20202020207d293b, - 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, 0x202020207d0a2020, - 0x2020202020202020, 0x2020636173652031, 0x313a206361736520, 0x31323a207b0a2020, 0x2020202020202020, - 0x202020202020656c, 0x656d656e74286129, 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, - 0x6e616d65203d206e, 0x616d654174286229, 0x3b0a202020202020, 0x2020202020202020, 0x2020696620282165, - 0x76656e74732e6861, 0x73286e616d652920, 0x7c7c2063203e2033, 0x29207468726f7720, 0x6e6577204572726f, - 0x722827696e76616c, 0x696420444f4d2065, 0x76656e74206f7220, 0x666c61677327293b, 0x0a20202020202020, - 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e206f70203d3d3d, 0x203131203f206c69, - 0x7374656e28612c20, 0x622c206e616d652c, 0x206329203a20756e, 0x6c697374656e2861, 0x2c206229293b0a20, - 0x2020202020202020, 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x20207d0a20202020, - 0x2020202020202020, 0x636173652031333a, 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, - 0x206e616d65203d20, 0x6e616d6541742862, 0x292c206e6f646520, 0x3d2069736c616e64, 0x732e676574286e61, - 0x6d65293f2e656c65, 0x6d656e743b0a2020, 0x2020202020202020, 0x2020202020206966, 0x2028216e6f646529, - 0x207468726f77206e, 0x6577204572726f72, 0x2860756e6b6e6f77, 0x6e20444f4d206973, 0x6c616e6420247b6e, - 0x616d657d60293b0a, 0x2020202020202020, 0x2020202020202020, 0x696620286d6f756e, 0x7465642e68617328, - 0x6e6f646529207c7c, 0x206e65774d6f756e, 0x74732e686173286e, 0x6f64652929207468, 0x726f77206e657720, - 0x4572726f72282769, 0x736c616e6420616c, 0x7265616479206d6f, 0x756e74656427293b, 0x0a20202020202020, - 0x2020202020202020, 0x206e65774d6f756e, 0x74732e736574286e, 0x6f64652c2061293b, 0x0a20202020202020, - 0x2020202020202020, 0x2066726573682861, 0x2c207b6e6f64652c, 0x20746578743a2066, 0x616c73652c206973, - 0x6c616e643a207472, 0x75657d293b0a2020, 0x2020202020202020, 0x2020202020207374, 0x6570732e70757368, - 0x282829203d3e206e, 0x6f6465732e736574, 0x28612c207b6e6f64, 0x657d29293b0a2020, 0x2020202020202020, - 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x202020202020207d, - 0x0a20202020202020, 0x207d0a2020202020, 0x2020202f2f205265, 0x73696475616c2044, 0x4f4d206578636570, - 0x74696f6e73202866, 0x6f72206578616d70, 0x6c65206120706167, 0x6527732063757374, 0x6f6d20656c656d65, - 0x6e74292070726f70, 0x616761746520746f, 0x2074686520627269, 0x6467652061732061, 0x2072656a65637469, - 0x6f6e2e0a20202020, 0x202020202f2f2049, 0x6e20746861742063, 0x6173652064697363, 0x6172642068616e64, - 0x6c65733a20746865, 0x2061637475616c20, 0x444f4d206d617920, 0x6861766520626565, 0x6e20706172746c79, - 0x206368616e676564, 0x20616e64206d7573, 0x74206265206c656e, 0x7420616761696e2e, 0x0a20202020202020, - 0x20747279207b0a20, 0x2020202020202020, 0x202020666f722028, 0x636f6e7374207374, 0x6570206f66207374, - 0x6570732920737465, 0x7028293b0a202020, 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, - 0x2020202020202020, 0x202020636c65616e, 0x4c697374656e6572, 0x73286c697374656e, 0x6572732e6b657973, - 0x2829293b0a202020, 0x2020202020202020, 0x206e6f6465732e63, 0x6c65617228293b0a, 0x2020202020202020, - 0x2020202069736c61, 0x6e64732e636c6561, 0x7228293b0a202020, 0x2020202020202020, 0x206d6f756e746564, - 0x203d206e65772057, 0x65616b4d61702829, 0x3b0a202020202020, 0x2020202020207468, 0x726f77206572726f, - 0x723b0a2020202020, 0x2020207d0a202020, 0x2020202020666f72, 0x2028636f6e737420, 0x5b69642c20656e74, - 0x72795d206f662063, 0x68616e6765732920, 0x7b0a202020202020, 0x2020202020206966, 0x202821656e747279, - 0x29206e6f6465732e, 0x64656c6574652869, 0x64293b0a20202020, 0x2020202020202020, 0x656c7365207b0a20, - 0x2020202020202020, 0x2020202020202065, 0x6e7472792e6e6f64, 0x65203d206e6f6465, 0x732e676574286964, - 0x292e6e6f64653b0a, 0x2020202020202020, 0x2020202020202020, 0x69662028656e7472, 0x792e6368696c6472, - 0x656e20696e737461, 0x6e63656f66204368, 0x696c6444656c7461, 0x2920656e7472792e, 0x6368696c6472656e, - 0x203d20656e747279, 0x2e6368696c647265, 0x6e2e636f6d6d6974, 0x28293b0a20202020, 0x2020202020202020, - 0x202020206e6f6465, 0x732e736574286964, 0x2c20656e74727929, 0x3b0a202020202020, 0x2020202020207d0a, - 0x2020202020202020, 0x7d0a202020202020, 0x2020666f72202863, 0x6f6e7374205b6e6f, 0x64652c2069645d20, - 0x6f66206e65774d6f, 0x756e747329206d6f, 0x756e7465642e7365, 0x74286e6f64652c20, 0x6964293b0a202020, - 0x207d0a0a20202020, 0x636f6e7374206170, 0x69203d207b0a2020, 0x2020202020206170, 0x706c792c0a202020, - 0x202020202069736c, 0x616e64286e616d65, 0x2c20656c656d656e, 0x7429207b0a202020, 0x2020202020202020, - 0x2069662028212865, 0x6c656d656e742069, 0x6e7374616e63656f, 0x662048544d4c456c, 0x656d656e7429207c, - 0x7c2021746167732e, 0x68617328656c656d, 0x656e742e6c6f6361, 0x6c4e616d6529207c, 0x7c20666f72626964, - 0x64656e546167732e, 0x68617328656c656d, 0x656e742e6c6f6361, 0x6c4e616d6529290a, 0x2020202020202020, - 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, 0x726f722827616e20, 0x69736c616e64206d, - 0x7573742062652061, 0x6e20616c6c6f7765, 0x642048544d4c2065, 0x6c656d656e742729, 0x3b0a202020202020, - 0x202020202020636f, 0x6e73742070726576, 0x696f7573203d2069, 0x736c616e64732e67, 0x6574286e616d6529, - 0x3b0a202020202020, 0x2020202020206966, 0x202870726576696f, 0x7573202626207072, 0x6576696f75732e65, - 0x6c656d656e742021, 0x3d3d20656c656d65, 0x6e7429207468726f, 0x77206e6577204572, 0x726f72282769736c, - 0x616e64206e616d65, 0x20616c7265616479, 0x206c656e7427293b, 0x0a20202020202020, 0x2020202020696620, - 0x282170726576696f, 0x757329207b0a2020, 0x2020202020202020, 0x2020202020206966, 0x2028656c656d656e, - 0x742e6368696c644e, 0x6f6465732e6c656e, 0x677468207c7c2041, 0x727261792e66726f, 0x6d2869736c616e64, - 0x732e76616c756573, 0x2829292e736f6d65, 0x28656e747279203d, 0x3e20656e7472792e, 0x656c656d656e7420, - 0x3d3d3d20656c656d, 0x656e74207c7c2065, 0x6e7472792e656c65, 0x6d656e742e636f6e, 0x7461696e7328656c, - 0x656d656e7429207c, 0x7c20656c656d656e, 0x742e636f6e746169, 0x6e7328656e747279, 0x2e656c656d656e74, - 0x2929290a20202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, - 0x2769736c616e6473, 0x206d757374206265, 0x20656d7074792061, 0x6e64206469736a6f, 0x696e7427293b0a20, - 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x20636f6e73742074, 0x6f6b656e203d207b, - 0x656c656d656e747d, 0x3b0a202020202020, 0x2020202020206973, 0x6c616e64732e7365, 0x74286e616d652c20, - 0x746f6b656e293b0a, 0x2020202020202020, 0x2020202072657475, 0x726e202829203d3e, 0x207b0a2020202020, - 0x2020202020202020, 0x2020206966202869, 0x736c616e64732e67, 0x6574286e616d6529, 0x20213d3d20746f6b, - 0x656e292072657475, 0x726e3b0a20202020, 0x2020202020202020, 0x2020202069736c61, 0x6e64732e64656c65, - 0x7465286e616d6529, 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x726f6f744964203d, - 0x206d6f756e746564, 0x2e67657428656c65, 0x6d656e74293b0a20, 0x2020202020202020, 0x202020202020206d, - 0x6f756e7465642e64, 0x656c65746528656c, 0x656d656e74293b0a, 0x2020202020202020, 0x2020202020202020, - 0x69662028726f6f74, 0x4964203d3d3d2075, 0x6e646566696e6564, 0x292072657475726e, 0x3b0a202020202020, - 0x2020202020202020, 0x2020636f6e737420, 0x70656e64696e6720, 0x3d205b726f6f7449, 0x645d3b0a20202020, - 0x2020202020202020, 0x202020207768696c, 0x65202870656e6469, 0x6e672e6c656e6774, 0x6829207b0a202020, - 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742069, 0x64203d2070656e64, 0x696e672e706f7028, - 0x292c20656e747279, 0x203d206e6f646573, 0x2e67657428696429, 0x3b0a202020202020, 0x2020202020202020, - 0x202020202020666f, 0x722028636f6e7374, 0x206368696c64206f, 0x6620656e7472792e, 0x6368696c6472656e, - 0x292070656e64696e, 0x672e707573682863, 0x68696c64293b0a20, 0x2020202020202020, 0x2020202020202020, - 0x202020636c65616e, 0x4c697374656e6572, 0x73285b69645d293b, 0x0a20202020202020, 0x2020202020202020, - 0x20202020206e6f64, 0x65732e64656c6574, 0x65286964293b0a20, 0x2020202020202020, 0x202020202020207d, - 0x0a20202020202020, 0x20202020207d3b0a, 0x2020202020202020, 0x7d2c0a202020207d, 0x3b0a202020206272, - 0x696467652e646f6d, 0x426174636848616e, 0x646c6572203d2061, 0x70706c793b0a2020, 0x202072657475726e, - 0x206170693b0a7d0a + 0x293b0a2020202020, 0x2020202020202020, 0x2020206672657368, 0x28612c207b746167, 0x2c20746578743a20, + 0x66616c73657d293b, 0x0a20202020202020, 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, + 0x3e207b206e6f6465, 0x732e73657428612c, 0x207b6e6f64653a20, 0x646f63756d656e74, 0x2e63726561746545, + 0x6c656d656e742874, 0x6167297d293b207d, 0x293b0a2020202020, 0x2020202020202020, 0x202020627265616b, + 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x2020202063617365, 0x20333a0a20202020, + 0x2020202020202020, 0x2020202066726573, 0x6828612c207b7465, 0x78743a2074727565, 0x7d293b0a20202020, + 0x2020202020202020, 0x2020202073746570, 0x732e707573682828, 0x29203d3e207b206e, 0x6f6465732e736574, + 0x28612c207b6e6f64, 0x653a20646f63756d, 0x656e742e63726561, 0x7465546578744e6f, 0x64652876616c7565, + 0x297d293b207d293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, + 0x2020202063617365, 0x20343a2063617365, 0x20353a207b0a2020, 0x2020202020202020, 0x202020202020656c, + 0x656d656e74286129, 0x3b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x6e616d65203d206e, + 0x616d654174286229, 0x3b0a202020202020, 0x2020202020202020, 0x2020696620282161, 0x6c6c6f7765644174, + 0x7472696275746528, 0x6e616d6529292074, 0x68726f77206e6577, 0x204572726f722860, 0x666f726269646465, + 0x6e20444f4d206174, 0x7472696275746520, 0x247b6e616d657d60, 0x293b0a2020202020, 0x2020202020202020, + 0x202020696620286f, 0x70203d3d3d203420, 0x26262075726c4174, 0x7472696275746573, 0x2e686173286e616d, + 0x6529202626202173, 0x61666555726c2876, 0x616c756529292074, 0x68726f77206e6577, 0x204572726f722827, + 0x756e736166652044, 0x4f4d2055524c2729, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, + 0x7075736828282920, 0x3d3e206f70203d3d, 0x3d2034203f206e6f, 0x6465732e67657428, 0x61292e6e6f64652e, + 0x7365744174747269, 0x62757465286e616d, 0x652c2076616c7565, 0x29203a206e6f6465, 0x732e676574286129, + 0x2e6e6f64652e7265, 0x6d6f766541747472, 0x6962757465286e61, 0x6d6529293b0a2020, 0x2020202020202020, + 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, + 0x61736520363a207b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e73742065, 0x6e747279203d2065, + 0x6c656d656e742861, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, 0x206e616d65203d20, + 0x6e616d6541742862, 0x293b0a2020202020, 0x2020202020202020, 0x2020206966202821, 0x70726f7065727479, + 0x4e616d65732e6861, 0x73286e616d652929, 0x207468726f77206e, 0x6577204572726f72, 0x2860666f72626964, + 0x64656e20444f4d20, 0x70726f7065727479, 0x20247b6e616d657d, 0x60293b0a20202020, 0x2020202020202020, + 0x202020202f2f2054, 0x6865206e61746976, 0x65206f7574707574, 0x2e76616c75652073, 0x6574746572207265, + 0x706c616365732063, 0x68696c6472656e20, 0x626568696e642074, 0x686520747261636b, 0x6564207472656527, + 0x73206261636b2e0a, 0x2020202020202020, 0x2020202020202020, 0x696620286e616d65, 0x203d3d3d20277661, + 0x6c75652720262620, 0x656e7472792e7461, 0x67203d3d3d20276f, 0x757470757427290a, 0x2020202020202020, + 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f72282750524f, 0x5045525459207661, + 0x6c7565206f6e206f, 0x7574707574207265, 0x7175697265732065, 0x78706c6963697420, 0x746578742d6e6f64, + 0x6520757064617465, 0x7327293b0a202020, 0x2020202020202020, 0x2020202020696620, 0x285b27636865636b, + 0x6564272c20276469, 0x7361626c6564272c, 0x2027696e64657465, 0x726d696e61746527, 0x5d2e696e636c7564, + 0x6573286e616d6529, 0x20262620215b2774, 0x727565272c202766, 0x616c7365275d2e69, 0x6e636c7564657328, + 0x76616c756529290a, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, + 0x726f722827696e76, 0x616c696420444f4d, 0x20626f6f6c65616e, 0x27293b0a20202020, 0x2020202020202020, + 0x2020202069662028, 0x6e616d65203d3d3d, 0x202773656c656374, 0x6564496e64657827, 0x2026262028212f5e, + 0x2d3f5c642b242f2e, 0x746573742876616c, 0x756529207c7c2021, 0x4e756d6265722e69, 0x73496e7465676572, + 0x284e756d62657228, 0x76616c7565292920, 0x7c7c204e756d6265, 0x722876616c756529, 0x203c202d31207c7c, + 0x204e756d62657228, 0x76616c756529203e, 0x2032313437343833, 0x36343729290a2020, 0x2020202020202020, + 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, 0x722827696e76616c, 0x696420444f4d2073, + 0x656c656374656449, 0x6e64657827293b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e737420636f, + 0x6e76657274656420, 0x3d206e616d65203d, 0x3d3d202776616c75, 0x6527203f2076616c, 0x7565203a206e616d, + 0x65203d3d3d202773, 0x656c656374656449, 0x6e64657827203f20, 0x4e756d6265722876, 0x616c756529203a20, + 0x76616c7565203d3d, 0x3d20277472756527, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, + 0x7075736828282920, 0x3d3e207b206e6f64, 0x65732e6765742861, 0x292e6e6f64655b6e, 0x616d655d203d2063, + 0x6f6e766572746564, 0x3b207d293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, + 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202063, 0x61736520373a0a20, 0x2020202020202020, + 0x2020202020202069, 0x6620282177726974, 0x61626c652861292e, 0x7465787429207468, 0x726f77206e657720, + 0x4572726f72282753, 0x45545f5445585420, 0x7265717569726573, 0x2061207465787420, 0x6e6f646527293b0a, + 0x2020202020202020, 0x2020202020202020, 0x73746570732e7075, 0x7368282829203d3e, 0x207b206e6f646573, + 0x2e6765742861292e, 0x6e6f64652e646174, 0x61203d2076616c75, 0x653b207d293b0a20, 0x2020202020202020, + 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x2020636173652038, 0x3a20636173652039, + 0x3a207b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420706172656e74, 0x203d206765742861, + 0x292c206368696c64, 0x203d207772697461, 0x626c652862293b0a, 0x2020202020202020, 0x2020202020202020, + 0x6966202870617265, 0x6e742e7465787429, 0x207468726f77206e, 0x6577204572726f72, 0x2827612074657874, + 0x206e6f6465206361, 0x6e6e6f74206f776e, 0x206368696c647265, 0x6e27293b0a202020, 0x2020202020202020, + 0x2020202020696620, 0x286f70203d3d3d20, 0x3920262620676574, 0x2863292e70617265, 0x6e7420213d3d2061, + 0x29207468726f7720, 0x6e6577204572726f, 0x722827696e736572, 0x744265666f726520, 0x7265666572656e63, + 0x65206973206e6f74, 0x2061206368696c64, 0x27293b0a20202020, 0x2020202020202020, 0x20202020666f7220, + 0x286c657420616e63, 0x6573746f72203d20, 0x613b20616e636573, 0x746f7220213d3d20, 0x6e756c6c3b20616e, + 0x636573746f72203d, 0x2067657428616e63, 0x6573746f72292e70, 0x6172656e74290a20, 0x2020202020202020, + 0x2020202020202020, 0x2020206966202861, 0x6e636573746f7220, 0x3d3d3d2062292074, 0x68726f77206e6577, + 0x204572726f722827, 0x444f4d206379636c, 0x6527293b0a202020, 0x2020202020202020, 0x2020202020696620, + 0x286368696c642e70, 0x6172656e7420213d, 0x3d206e756c6c2920, 0x6564697428636869, 0x6c642e706172656e, + 0x74292e6368696c64, 0x72656e2e64656c65, 0x74652862293b0a20, 0x2020202020202020, 0x2020202020202065, + 0x6469742862292e70, 0x6172656e74203d20, 0x613b0a2020202020, 0x2020202020202020, 0x2020206564697428, + 0x61292e6368696c64, 0x72656e2e61646428, 0x62293b0a20202020, 0x2020202020202020, 0x2020202073746570, + 0x732e707573682828, 0x29203d3e206f7020, 0x3d3d3d2038203f20, 0x6e6f6465732e6765, 0x742861292e6e6f64, + 0x652e617070656e64, 0x4368696c64286e6f, 0x6465732e67657428, 0x62292e6e6f646529, 0x203a0a2020202020, + 0x2020202020202020, 0x202020202020206e, 0x6f6465732e676574, 0x2861292e6e6f6465, 0x2e696e7365727442, + 0x65666f7265286e6f, 0x6465732e67657428, 0x62292e6e6f64652c, 0x206e6f6465732e67, 0x65742863292e6e6f, + 0x646529293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, + 0x207d0a2020202020, 0x2020202020202063, 0x6173652031303a20, 0x7b0a202020202020, 0x2020202020202020, + 0x2020636f6e737420, 0x656e747279203d20, 0x7772697461626c65, 0x2861293b0a202020, 0x2020202020202020, + 0x2020202020696620, 0x28656e7472792e70, 0x6172656e7420213d, 0x3d206e756c6c2920, 0x6564697428656e74, + 0x72792e706172656e, 0x74292e6368696c64, 0x72656e2e64656c65, 0x74652861293b0a20, 0x2020202020202020, + 0x2020202020202063, 0x6f6e73742072656d, 0x6f766564203d205b, 0x5d3b0a2020202020, 0x2020202020202020, + 0x202020636f6e7374, 0x2070656e64696e67, 0x203d205b615d3b0a, 0x2020202020202020, 0x2020202020202020, + 0x7768696c65202870, 0x656e64696e672e6c, 0x656e67746829207b, 0x0a20202020202020, 0x2020202020202020, + 0x2020202020636f6e, 0x7374206964203d20, 0x70656e64696e672e, 0x706f7028293b0a20, 0x2020202020202020, + 0x2020202020202020, 0x20202072656d6f76, 0x65642e7075736828, 0x6964293b0a202020, 0x2020202020202020, + 0x2020202020202020, 0x20666f722028636f, 0x6e7374206368696c, 0x64206f6620676574, 0x286964292e636869, + 0x6c6472656e292070, 0x656e64696e672e70, 0x757368286368696c, 0x64293b0a20202020, 0x2020202020202020, + 0x202020207d0a2020, 0x2020202020202020, 0x202020202020666f, 0x726765742861293b, 0x0a20202020202020, + 0x2020202020202020, 0x2073746570732e70, 0x757368282829203d, 0x3e207b0a20202020, 0x2020202020202020, + 0x2020202020202020, 0x6e6f6465732e6765, 0x742861292e6e6f64, 0x652e72656d6f7665, 0x28293b0a20202020, + 0x2020202020202020, 0x2020202020202020, 0x666f722028636f6e, 0x7374206964206f66, 0x2072656d6f766564, + 0x29206e6f6465732e, 0x64656c6574652869, 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, + 0x636c65616e4c6973, 0x74656e6572732872, 0x656d6f766564293b, 0x0a20202020202020, 0x2020202020202020, + 0x207d293b0a202020, 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, + 0x7d0a202020202020, 0x2020202020206361, 0x73652031313a2063, 0x6173652031323a20, 0x7b0a202020202020, + 0x2020202020202020, 0x2020656c656d656e, 0x742861293b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e7374206e616d65, 0x203d206e616d6541, 0x742862293b0a2020, 0x2020202020202020, 0x2020202020206966, + 0x2028216576656e74, 0x732e686173286e61, 0x6d6529207c7c2063, 0x203e203329207468, 0x726f77206e657720, + 0x4572726f72282769, 0x6e76616c69642044, 0x4f4d206576656e74, 0x206f7220666c6167, 0x7327293b0a202020, + 0x2020202020202020, 0x2020202020737465, 0x70732e7075736828, 0x2829203d3e206f70, 0x203d3d3d20313120, + 0x3f206c697374656e, 0x28612c20622c206e, 0x616d652c20632920, 0x3a20756e6c697374, 0x656e28612c206229, + 0x293b0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, + 0x2020202020202020, 0x2020202063617365, 0x2031333a207b0a20, 0x2020202020202020, 0x2020202020202063, + 0x6f6e7374206e616d, 0x65203d206e616d65, 0x41742862292c206e, 0x6f6465203d206973, 0x6c616e64732e6765, + 0x74286e616d65293f, 0x2e656c656d656e74, 0x3b0a202020202020, 0x2020202020202020, 0x202069662028216e, + 0x6f64652920746872, 0x6f77206e65772045, 0x72726f722860756e, 0x6b6e6f776e20444f, 0x4d2069736c616e64, + 0x20247b6e616d657d, 0x60293b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x6d6f756e7465642e, + 0x686173286e6f6465, 0x29207c7c206e6577, 0x4d6f756e74732e68, 0x6173286e6f646529, 0x29207468726f7720, + 0x6e6577204572726f, 0x72282769736c616e, 0x6420616c72656164, 0x79206d6f756e7465, 0x6427293b0a202020, + 0x2020202020202020, 0x20202020206e6577, 0x4d6f756e74732e73, 0x6574286e6f64652c, 0x2061293b0a202020, + 0x2020202020202020, 0x2020202020667265, 0x736828612c207b6e, 0x6f64652c20746578, 0x743a2066616c7365, + 0x2c2069736c616e64, 0x3a20747275657d29, 0x3b0a202020202020, 0x2020202020202020, 0x202073746570732e, + 0x7075736828282920, 0x3d3e206e6f646573, 0x2e73657428612c20, 0x7b6e6f64657d2929, 0x3b0a202020202020, + 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, + 0x2020207d0a202020, 0x20202020207d0a20, 0x202020202020202f, 0x2f20526573696475, 0x616c20444f4d2065, + 0x7863657074696f6e, 0x732028666f722065, 0x78616d706c652061, 0x2070616765277320, 0x637573746f6d2065, + 0x6c656d656e742920, 0x70726f7061676174, 0x6520746f20746865, 0x2062726964676520, 0x617320612072656a, + 0x656374696f6e2e0a, 0x2020202020202020, 0x2f2f20496e207468, 0x6174206361736520, 0x6469736361726420, + 0x68616e646c65733a, 0x2074686520616374, 0x75616c20444f4d20, 0x6d61792068617665, 0x206265656e207061, + 0x72746c7920636861, 0x6e67656420616e64, 0x206d757374206265, 0x206c656e74206167, 0x61696e2e0a202020, + 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202066, 0x6f722028636f6e73, 0x742073746570206f, + 0x6620737465707329, 0x207374657028293b, 0x0a20202020202020, 0x207d206361746368, 0x20286572726f7229, + 0x207b0a2020202020, 0x2020202020202063, 0x6c65616e4c697374, 0x656e657273286c69, 0x7374656e6572732e, + 0x6b6579732829293b, 0x0a20202020202020, 0x20202020206e6f64, 0x65732e636c656172, 0x28293b0a20202020, + 0x2020202020202020, 0x69736c616e64732e, 0x636c65617228293b, 0x0a20202020202020, 0x20202020206d6f75, + 0x6e746564203d206e, 0x6577205765616b4d, 0x617028293b0a2020, 0x2020202020202020, 0x20207468726f7720, + 0x6572726f723b0a20, 0x202020202020207d, 0x0a20202020202020, 0x20666f722028636f, 0x6e7374205b69642c, + 0x20656e7472795d20, 0x6f66206368616e67, 0x657329207b0a2020, 0x2020202020202020, 0x2020696620282165, + 0x6e74727929206e6f, 0x6465732e64656c65, 0x7465286964293b0a, 0x2020202020202020, 0x20202020656c7365, + 0x207b0a2020202020, 0x2020202020202020, 0x202020656e747279, 0x2e6e6f6465203d20, 0x6e6f6465732e6765, + 0x74286964292e6e6f, 0x64653b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x656e7472792e6368, + 0x696c6472656e2069, 0x6e7374616e63656f, 0x66204368696c6444, 0x656c74612920656e, 0x7472792e6368696c, + 0x6472656e203d2065, 0x6e7472792e636869, 0x6c6472656e2e636f, 0x6d6d697428293b0a, 0x2020202020202020, + 0x2020202020202020, 0x6e6f6465732e7365, 0x742869642c20656e, 0x747279293b0a2020, 0x2020202020202020, + 0x20207d0a20202020, 0x202020207d0a2020, 0x202020202020666f, 0x722028636f6e7374, 0x205b6e6f64652c20, + 0x69645d206f66206e, 0x65774d6f756e7473, 0x29206d6f756e7465, 0x642e736574286e6f, 0x64652c206964293b, + 0x0a202020207d0a0a, 0x20202020636f6e73, 0x7420617069203d20, 0x7b0a202020202020, 0x20206170706c792c, + 0x0a20202020202020, 0x2069736c616e6428, 0x6e616d652c20656c, 0x656d656e7429207b, 0x0a20202020202020, + 0x2020202020696620, 0x282128656c656d65, 0x6e7420696e737461, 0x6e63656f66204854, 0x4d4c456c656d656e, + 0x7429207c7c202174, 0x6167732e68617328, 0x656c656d656e742e, 0x6c6f63616c4e616d, 0x6529207c7c20666f, + 0x7262696464656e54, 0x6167732e68617328, 0x656c656d656e742e, 0x6c6f63616c4e616d, 0x6529290a20202020, + 0x2020202020202020, 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, 0x27616e2069736c61, + 0x6e64206d75737420, 0x626520616e20616c, 0x6c6f776564204854, 0x4d4c20656c656d65, 0x6e7427293b0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x70726576696f7573, 0x203d2069736c616e, 0x64732e676574286e, + 0x616d65293b0a2020, 0x2020202020202020, 0x2020696620287072, 0x6576696f75732026, 0x262070726576696f, + 0x75732e656c656d65, 0x6e7420213d3d2065, 0x6c656d656e742920, 0x7468726f77206e65, 0x77204572726f7228, + 0x2769736c616e6420, 0x6e616d6520616c72, 0x65616479206c656e, 0x7427293b0a202020, 0x2020202020202020, + 0x2069662028217072, 0x6576696f75732920, 0x7b0a202020202020, 0x2020202020202020, 0x202069662028656c, + 0x656d656e742e6368, 0x696c644e6f646573, 0x2e6c656e67746820, 0x7c7c204172726179, 0x2e66726f6d286973, + 0x6c616e64732e7661, 0x6c7565732829292e, 0x736f6d6528656e74, 0x7279203d3e20656e, 0x7472792e656c656d, + 0x656e74203d3d3d20, 0x656c656d656e7420, 0x7c7c20656e747279, 0x2e656c656d656e74, 0x2e636f6e7461696e, + 0x7328656c656d656e, 0x7429207c7c20656c, 0x656d656e742e636f, 0x6e7461696e732865, 0x6e7472792e656c65, + 0x6d656e742929290a, 0x2020202020202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, + 0x726f72282769736c, 0x616e6473206d7573, 0x7420626520656d70, 0x747920616e642064, 0x69736a6f696e7427, + 0x293b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020636f6e, 0x737420746f6b656e, + 0x203d207b656c656d, 0x656e747d3b0a2020, 0x2020202020202020, 0x202069736c616e64, 0x732e736574286e61, + 0x6d652c20746f6b65, 0x6e293b0a20202020, 0x2020202020202020, 0x72657475726e2028, 0x29203d3e207b0a20, + 0x2020202020202020, 0x2020202020202069, 0x66202869736c616e, 0x64732e676574286e, 0x616d652920213d3d, + 0x20746f6b656e2920, 0x72657475726e3b0a, 0x2020202020202020, 0x2020202020202020, 0x69736c616e64732e, + 0x64656c657465286e, 0x616d65293b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e737420726f6f74, + 0x4964203d206d6f75, 0x6e7465642e676574, 0x28656c656d656e74, 0x293b0a2020202020, 0x2020202020202020, + 0x2020206d6f756e74, 0x65642e64656c6574, 0x6528656c656d656e, 0x74293b0a20202020, 0x2020202020202020, + 0x2020202069662028, 0x726f6f744964203d, 0x3d3d20756e646566, 0x696e656429207265, 0x7475726e3b0a2020, + 0x2020202020202020, 0x202020202020636f, 0x6e73742070656e64, 0x696e67203d205b72, 0x6f6f7449645d3b0a, + 0x2020202020202020, 0x2020202020202020, 0x7768696c65202870, 0x656e64696e672e6c, 0x656e67746829207b, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206964203d20, 0x70656e64696e672e, + 0x706f7028292c2065, 0x6e747279203d206e, 0x6f6465732e676574, 0x286964293b0a2020, 0x2020202020202020, + 0x2020202020202020, 0x2020666f72202863, 0x6f6e737420636869, 0x6c64206f6620656e, 0x7472792e6368696c, + 0x6472656e29207065, 0x6e64696e672e7075, 0x7368286368696c64, 0x293b0a2020202020, 0x2020202020202020, + 0x2020202020202063, 0x6c65616e4c697374, 0x656e657273285b69, 0x645d293b0a202020, 0x2020202020202020, + 0x2020202020202020, 0x206e6f6465732e64, 0x656c657465286964, 0x293b0a2020202020, 0x2020202020202020, + 0x2020207d0a202020, 0x2020202020202020, 0x207d3b0a20202020, 0x202020207d2c0a20, 0x2020207d3b0a2020, + 0x2020627269646765, 0x2e646f6d42617463, 0x6848616e646c6572, 0x203d206170706c79, 0x3b0a202020207265, + 0x7475726e20617069, 0x3b0a7d0a00000000 }; }; diff --git a/js/core/dom-interpreter.mjs b/js/core/dom-interpreter.mjs index fc447a10..3c1fcda2 100644 --- a/js/core/dom-interpreter.mjs +++ b/js/core/dom-interpreter.mjs @@ -196,7 +196,7 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = case 2: { const tag = nameAt(b); if (!tags.has(tag) || forbiddenTags.has(tag)) throw new Error(`forbidden DOM tag ${tag}`); - fresh(a, {text: false}); + fresh(a, {tag, text: false}); steps.push(() => { nodes.set(a, {node: document.createElement(tag)}); }); break; } @@ -213,9 +213,12 @@ export function installDomInterpreter(bridge = globalThis.webFront, extensions = break; } case 6: { - element(a); + const entry = element(a); const name = nameAt(b); if (!propertyNames.has(name)) throw new Error(`forbidden DOM property ${name}`); + // The native output.value setter replaces children behind the tracked tree's back. + if (name === 'value' && entry.tag === 'output') + throw new Error('PROPERTY value on output requires explicit text-node updates'); if (['checked', 'disabled', 'indeterminate'].includes(name) && !['true', 'false'].includes(value)) throw new Error('invalid DOM boolean'); if (name === 'selectedIndex' && (!/^-?\d+$/.test(value) || !Number.isInteger(Number(value)) || Number(value) < -1 || Number(value) > 2147483647)) diff --git a/test/web/JasmineTest.cpp b/test/web/JasmineTest.cpp index ded39578..11d16b90 100644 --- a/test/web/JasmineTest.cpp +++ b/test/web/JasmineTest.cpp @@ -293,7 +293,7 @@ class BrowserIntegrationTest { size_t index = 0; while (index < expected.size() && expected[index] != Event{node, event, value}) ++index; - ++domEventCounts[index]; // Last slot counts all unexpected identities or values. + ++domEventCounts.at(index); // Last slot counts all unexpected identities or values. }); webFront->cppFunction("domEventCounts", [this] { if (domEventCounts == array{1, 1, 1, 1, 1, 0}) state.domEventsObserved = true; diff --git a/test/web/suite/specs/dom-specs.mjs b/test/web/suite/specs/dom-specs.mjs index 15fed0c3..c73492b4 100644 --- a/test/web/suite/specs/dom-specs.mjs +++ b/test/web/suite/specs/dom-specs.mjs @@ -60,6 +60,25 @@ describe('Embedded DOM command interpreter', () => { expect(() => dom.apply(packet([[7, 3, ...str('gone')]]))).toThrow(); }); + it('rejects output.value atomically and keeps its child handles attached and usable', () => { + dom.apply(packet([name(3, 'output'), name(4, 'value'), [2, 2, 3], + text(3, 'original'), [8, 2, 3], [8, 1, 2]])); + const output = root.firstChild, child = output.firstChild; + expect(() => dom.apply(packet([attr(2, 2, 'partial'), prop(2, 4, 'replacement')]))).toThrow(); + expect(output.hasAttribute('title')).toBeFalse(); + expect(output.firstChild).toBe(child); + expect(output.textContent).toBe('original'); + dom.apply(packet([[7, 3, ...str('updated')]])); + expect(output.firstChild).toBe(child); + expect(output.textContent).toBe('updated'); + // Newly created (even empty) outputs must also reject the native setter before any DOM step. + expect(() => dom.apply(packet([[2, 4, 3], [8, 1, 4], prop(4, 4, 'untracked')]))).toThrow(); + expect(root.childNodes.length).toBe(1); + dom.apply(packet([[10, 2]])); + expect(root.childNodes.length).toBe(0); + expect(() => dom.apply(packet([[7, 3, ...str('gone')]]))).toThrow(); + }); + for (const [label, definition, operation] of [ ['script', 'script', [2, 8, 3]], ['inline handler', 'onclick', attr(2, 3, 'alert(1)')],