summaryrefslogtreecommitdiffstats
path: root/services/settings/docs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /services/settings/docs
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'services/settings/docs')
-rw-r--r--services/settings/docs/index.rst547
-rw-r--r--services/settings/docs/synchronization-flow.svg4
2 files changed, 551 insertions, 0 deletions
diff --git a/services/settings/docs/index.rst b/services/settings/docs/index.rst
new file mode 100644
index 0000000000..846a834936
--- /dev/null
+++ b/services/settings/docs/index.rst
@@ -0,0 +1,547 @@
+.. _services/remotesettings:
+
+===============
+Remote Settings
+===============
+
+The :searchfox:`remote-settings.sys.mjs <services/settings/remote-settings.sys.mjs>` module offers the ability to fetch remote settings that are kept in sync with Mozilla servers.
+
+
+Usage
+=====
+
+The ``get()`` method returns the list of entries for a specific key. Each entry can have arbitrary attributes, and can only be modified on the server.
+
+.. code-block:: js
+
+ const { RemoteSettings } = ChromeUtils.import("resource://services-settings/remote-settings.sys.mjs");
+
+ const data = await RemoteSettings("a-key").get();
+
+ /*
+ data == [
+ {label: "Yahoo", enabled: true, weight: 10, id: "d0782d8d", last_modified: 1522764475905},
+ {label: "Google", enabled: true, weight: 20, id: "8883955f", last_modified: 1521539068414},
+ {label: "Ecosia", enabled: false, weight: 5, id: "337c865d", last_modified: 1520527480321},
+ ]
+ */
+
+ for (const entry of data) {
+ // Do something with entry...
+ // await InternalAPI.load(entry.id, entry.label, entry.weight);
+ });
+
+.. note::
+ The ``id`` and ``last_modified`` (timestamp) attributes are assigned by the server.
+
+
+Empty local database
+--------------------
+
+On new user profiles or for recently added use-cases, the local database will be empty until a synchronization with the server happens. Synchronizations are managed internally, and can sometimes be triggered minutes after browser starts.
+
+By default, if ``.get()`` is called before the local database had the chance to be synchronized, and if no initial data was provided (:ref:`see below <services/initial-data>`), then the settings will be pulled from the server in order to avoid returning an empty list. In that case, the first call to ``.get()`` will thus take longer than the following ones.
+
+This behaviour can be disabled using the ``syncIfEmpty`` option.
+
+.. important::
+
+ If the implicit synchronization fails (e.g network is not available) then errors are silent and **an empty list is returned**. :ref:`Uptake Telemetry <services/settings/uptake-telemetry>` status is sent though.
+
+
+Options
+-------
+
+* ``filters``, ``order``: The list can optionally be filtered or ordered:
+
+ .. code-block:: js
+
+ const subset = await RemoteSettings("a-key").get({
+ filters: {
+ property: "value"
+ },
+ order: "-weight"
+ });
+
+* ``syncIfEmpty``: if ``true`` and no local data is present, then look for a packaged dump to load. If none, then pull records from network.
+ Set it to ``false`` to skip loading of packaged dump and network activity. Use this only if your use-case can tolerate an empty list until the first synchronization happens (default: ``true``).
+
+ .. code-block:: js
+
+ await RemoteSettings("a-key").get({ syncIfEmpty: false });
+
+* ``verifySignature``: verify the content signature of the local data (default: ``false``).
+ An error is thrown if the local data was altered. This hurts performance, but can be used if your use case needs to be secure from local tampering.
+
+* ``emptyListFallback``: return an empty list if obtaining the records fails (default: ``true``).
+ If an error occurs during the reading of local data, or during synchronization, then an empty list is returned.
+
+
+Events
+------
+
+The ``on()`` function registers handlers to be triggered when events occur.
+
+The ``"sync"`` event allows to be notified when the remote settings are changed on the server side. Your handler is given an ``event`` object that contains a ``data`` attribute that has information about the changes:
+
+- ``current``: current list of entries (after changes were applied);
+- ``created``, ``updated``, ``deleted``: list of entries that were created/updated/deleted respectively.
+
+.. code-block:: js
+
+ RemoteSettings("a-key").on("sync", event => {
+ const { data: { current } } = event;
+ for (const entry of current) {
+ // Do something with entry...
+ // await InternalAPI.reload(entry.id, entry.label, entry.weight);
+ }
+ });
+
+.. note::
+
+ Currently, the synchronization of remote settings is triggered via push notifications, and also by its own timer every 24H (see the preference ``services.settings.poll_interval`` ).
+
+
+File attachments
+----------------
+
+When an entry has a file attached to it, it has an ``attachment`` attribute, which contains the file related information (url, hash, size, mimetype, etc.).
+
+Remote files are not downloaded automatically. In order to keep attachments in sync, the provided helper can be leveraged like this:
+
+.. code-block:: js
+
+ const client = RemoteSettings("a-key");
+
+ client.on("sync", async ({ data: { created, updated, deleted } }) => {
+ const toDelete = deleted.filter(d => d.attachment);
+ const toDownload = created
+ .concat(updated.map(u => u.new))
+ .filter(d => d.attachment);
+
+ // Remove local files of deleted records
+ await Promise.all(
+ toDelete.map(record => client.attachments.deleteDownloaded(record))
+ );
+
+ // Download new attachments
+ const fileContents = await Promise.all(
+ toDownload.map(async record => {
+ const { buffer } = await client.attachments.download(record);
+ return buffer;
+ });
+ );
+ });
+
+The provided helper will:
+ - fetch the remote binary content
+ - write the file in the local IndexedDB
+ - check the file size
+ - check the content SHA256 hash
+ - do nothing if the attachment was already present and sound locally.
+
+.. important::
+
+ The following aspects are not taken care of (yet! help welcome):
+
+ - check available disk space
+ - preserve bandwidth
+ - resume downloads of large files
+
+.. note::
+
+ The ``download()`` method supports the following options:
+
+ - ``retries`` (default: ``3``): number of retries on network errors
+ - ``fallbackToCache`` (default: ``false``): allows callers to fall back to the cached file and record, if the requested record's attachment fails to download.
+ This enables callers to always have a valid pair of attachment and record,
+ provided that the attachment has been retrieved at least once.
+ - ``fallbackToDump`` (default: ``false``): activates a fallback to a dump that has been
+ packaged with the client, when other ways to load the attachment have failed.
+ See :ref:`services/packaging-attachments <services/packaging-attachments>` for more information.
+
+.. note::
+
+ A ``downloadAsBytes()`` method returning an ``ArrayBuffer`` is also available, if writing the attachment locally is not necessary.
+
+ Some ``downloadToDisk()`` and ``deleteFromDisk()`` methods are also available but generally discouraged, since they are prone to leaving extraneous files
+ in the profile directory (see `Bug 1634127 <https://bugzilla.mozilla.org/show_bug.cgi?id=1634127>`_).
+
+
+.. _services/initial-data:
+
+Initial data
+------------
+
+It is possible to package a dump of the server records that will be loaded into the local database when no synchronization has happened yet.
+
+The JSON dump will serve as the default dataset for ``.get()``, instead of doing a round-trip to pull the latest data. It will also reduce the amount of data to be downloaded on the first synchronization.
+
+#. Place the JSON dump of the server records in the ``services/settings/dumps/main/`` folder
+#. Add the filename to the ``FINAL_TARGET_FILES`` list in ``services/settings/dumps/main/moz.build``
+#. Add the filename to the ``[browser]`` section of ``mobile/android/installer/package-manifest.in`` IF the file should be bundled with Android.
+
+Now, when ``RemoteSettings("some-key").get()`` is called from an empty profile, the ``some-key.json`` file is going to be loaded before the results are returned.
+
+JSON dumps in the tree are periodically updated by ``taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh``.
+If your collection's in-tree dump should not be kept up to date by this automation, place the JSON file in ``services/settings/static-dumps/`` instead.
+
+.. note::
+
+ The example above uses "main" because that's the default bucket name.
+ If you have customized the bucket name, use the actual bucket name instead of "main".
+
+.. _services/packaging-attachments:
+
+Packaging attachments
+~~~~~~~~~~~~~~~~~~~~~
+
+Attachments are not included in the JSON dumps by default. You may choose to package the attachment
+with the client, for example if it is important to have the data available at the first startup
+without requiring network activity. Or if most users would download the attachment anyway.
+Only package attachments if needed, since they increase the file size of the Firefox installer.
+
+To package an attachment for consumers of the `download()` method:
+
+#. Select the desired attachment record from the JSON dump of the server records, and place it at
+ ``services/settings/dumps/<bucket name>/<collection name>/<attachment id>.meta.json``.
+ The ``<attachment id>`` defaults to the ``id`` field of the record. If this ``id`` is not fixed,
+ you must choose a custom ID that can be relied upon as a long-term attachment identifier. See
+ the notes below for more details.
+#. Download the attachment associated with the record, and place it at
+ ``services/settings/dumps/<bucket name>/<collection name>/<attachment id>``.
+#. Update ``taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh`` and add the attachment,
+ by editing the ``compare_remote_settings_files`` function and describing the attachment.
+ Unlike JSON dumps, attachments must explicitly be listed in that update script, because the
+ attachment selection logic needs to be codified in a ``jq`` filter in the script.
+ For an example, see `Bug 1636158 <https://bugzilla.mozilla.org/show_bug.cgi?id=1636158>`_.
+#. Register the location of the ``<attachment id>.meta.json`` and ``<attachment id>`` in the
+ ``moz.build`` file of the collection folder, and possibly ``package-manifest.in``,
+ as described in `the previous section about registering JSON dumps <services/initial-data>`.
+
+.. note::
+
+ ``<attachment id>`` is used to derive the file names of the packaged attachment dump, and as the
+ key for the cache where attachment updates from the network are saved.
+ The attachment identifier is expected to be fixed across client application updates.
+ If that expectation cannot be met, the ``attachmentId`` option of the ``download`` method of the
+ attachment downloader should be used to override the attachment ID with a custom (stable) value.
+ In order to keep track of the cached attachment, and prevent it from being pruned automatically,
+ the attachment identifier will have to be explicitly listed in the ``keepAttachmentsIds = [<attachment id>]``
+ option of the RemoteSettings client constructor.
+
+.. note::
+
+ The contents of the ``.meta.json`` file is already contained within the records, but separated
+ from the main set of records to ensure the availability of the original record with the data,
+ independently of the packaged or downloaded records.
+ This file may become optional in a future update, see `Bug 1640059 <https://bugzilla.mozilla.org/show_bug.cgi?id=1640059>`_.
+
+
+Synchronization Process
+=======================
+
+The synchronization process consists in pulling the recent changes, merging them with the local data, and verifying the integrity of the result.
+
+.. image:: synchronization-flow.svg
+
+.. Source of diagram
+.. https://mermaid-js.github.io/mermaid-live-editor/
+.. When using this tool, please remove xlink prefix from attributes in the resulting SVG file.
+.. See bug 1481470.
+..
+.. graph TD
+.. 0[Sync] --> pull;
+.. pull[Pull changes] --> merge[Merge with local]
+.. merge --> valid{Is signature valid?};
+.. valid -->|Yes| Success;
+.. valid -->|No| retried{Retried?};
+.. retried --> |Yes| validchanges{Valid without changes?};
+.. retried --> |No| valid2{Valid without changes?};
+.. validchanges -->|Yes| restoredata[Restore previous data];
+.. validchanges -->|No| clear[Clear local];
+.. restore --> Failure;
+.. valid2 --> |No| clear2[Clear local];
+.. valid2 --> |Yes| Retry;
+.. Retry --> |Retry| pull;
+.. clear2 --> Retry;
+.. clear --> restore[Restore packaged dump];
+.. restoredata --> Failure;
+.. style 0 fill:#00ff00;
+.. style Success fill:#00ff00;
+.. style Failure fill:#ff0000;
+
+.. important::
+
+ As shown above, we can end-up in situations where synchronization fails and will leave the local DB in an empty state.
+
+
+Targets and A/B testing
+=======================
+
+In order to deliver settings to subsets of the population, you can set targets on entries (platform, language, channel, version range, preferences values, samples, etc.) when editing records on the server.
+
+From the client API standpoint, this is completely transparent: the ``.get()`` method — as well as the event data — will always filter the entries on which the target matches.
+
+.. note::
+
+ The remote settings targets follow the same approach as the :ref:`Normandy recipe client <components/normandy>` (ie. JEXL filter expressions).
+
+
+.. _services/settings/uptake-telemetry:
+
+Uptake Telemetry
+================
+
+Some :ref:`uptake telemetry <telemetry/collection/uptake>` is collected in order to monitor how remote settings are propagated.
+
+It is submitted to a single :ref:`keyed histogram <histogram-type-keyed>` whose id is ``UPTAKE_REMOTE_CONTENT_RESULT_1`` and the keys are prefixed with ``main/`` (eg. ``main/a-key`` in the above example).
+
+
+Create new remote settings
+==========================
+
+Staff members can create new kinds of remote settings, following `this documentation <https://remote-settings.readthedocs.io/en/latest/getting-started.html>`_.
+
+It basically consists in:
+
+#. Choosing a key (eg. ``search-providers``)
+#. Assigning collaborators to editors and reviewers groups
+#. (*optional*) Define a JSONSchema to validate entries
+#. (*optional*) Allow attachments on entries
+
+And once done:
+
+#. Create, modify or delete entries and let reviewers approve the changes
+#. Wait for Firefox to pick-up the changes for your settings key
+
+
+Global Notifications
+====================
+
+The polling for changes process sends two notifications that observers can register to:
+
+* ``remote-settings:changes-poll-start``: Polling for changes is starting. triggered either by the scheduled timer or a push broadcast.
+* ``remote-settings:changes-poll-end``: Polling for changes has ended
+* ``remote-settings:sync-error``: A synchronization error occurred. Notification subject provides information about the error and affected
+ collection in the ``wrappedJSObject`` attribute.
+* ``remote-settings:broken-sync-error``: Synchronization seems to be consistently failing. Profile is at risk.
+
+.. code-block:: javascript
+
+ const observer = {
+ observe(aSubject, aTopic, aData) {
+ Services.obs.removeObserver(this, "remote-settings:changes-poll-start");
+
+ const { expectedTimestamp } = JSON.parse(aData);
+ console.log("Polling started", expectedTimestamp ? "from push broadcast" : "by scheduled trigger");
+ },
+ };
+ Services.obs.addObserver(observer, "remote-settings:changes-poll-start");
+
+
+Advanced Options
+================
+
+``localFields``: records fields that remain local
+-------------------------------------------------
+
+During synchronization, the local database is compared with the server data. Any difference will be overwritten by the remote version.
+
+In some use-cases it's necessary to store some state using extra attributes on records. The ``localFields`` options allows to specify which records field names should be preserved on records during synchronization.
+
+.. code-block:: javascript
+
+ const client = RemoteSettings("a-collection", {
+ localFields: [ "userNotified", "userResponse" ],
+ });
+
+
+``filterFunc``: custom filtering function
+-----------------------------------------
+
+By default, the entries returned by ``.get()`` are filtered based on the JEXL expression result from the ``filter_expression`` field. The ``filterFunc`` option allows to execute a custom filter (async) function, that should return the record (modified or not) if kept or a falsy value if filtered out.
+
+.. code-block:: javascript
+
+ const client = RemoteSettings("a-collection", {
+ filterFunc: (record, environment) => {
+ const { enabled, ...entry } = record;
+ return enabled ? entry : null;
+ }
+ });
+
+
+Debugging and manual testing
+============================
+
+Logging
+-------
+
+In order to enable verbose logging, set the log level preference to ``debug``.
+
+.. code-block:: javascript
+
+ Services.prefs.setCharPref("services.settings.loglevel", "debug");
+
+Remote Settings Dev Tools
+-------------------------
+
+The Remote Settings Dev Tools extension provides some tooling to inspect synchronization statuses, to change the remote server or to switch to *preview* mode in order to sign-off pending changes. `More information on the dedicated repository <https://github.com/mozilla/remote-settings-devtools>`_.
+
+Preview Mode
+------------
+
+Enable the preview mode in order to preview changes to be reviewed on the server. This can be achieved using the *Remote Settings Dev Tools*, or programmatically with:
+
+.. code-block:: javascript
+
+ RemoteSettings.enablePreviewMode(true);
+
+In order to pull preview data **on startup**, or in order to persist it across restarts, set ``services.settings.preview_enabled`` to ``true`` in the profile preferences (ie. ``user.js``).
+For release and ESR, for security reasons, you would have to run the application with the ``MOZ_REMOTE_SETTINGS_DEVTOOLS=1`` environment variable for the preference to be taken into account. Note that toggling the preference won't have any effect until restart.
+
+Trigger a synchronization manually
+----------------------------------
+
+The synchronization of every known remote settings clients can be triggered manually with ``pollChanges()``:
+
+.. code-block:: js
+
+ await RemoteSettings.pollChanges()
+
+In order to ignore last synchronization status during polling for changes, set the ``full`` option:
+
+.. code-block:: js
+
+ await RemoteSettings.pollChanges({ full: true })
+
+The synchronization of a single client can be forced with the ``.sync()`` method:
+
+.. code-block:: js
+
+ await RemoteSettings("a-key").sync();
+
+.. important::
+
+ The above methods are only relevant during development or debugging and should never be called in production code.
+
+
+Inspect local data
+------------------
+
+The internal IndexedDB of Remote Settings can be accessed via the Storage Inspector in the `browser toolbox <https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox>`_.
+
+For example, the local data of the ``"key"`` collection can be accessed in the ``remote-settings`` database at *Browser Toolbox* > *Storage* > *IndexedDB* > *chrome*, in the ``records`` store.
+
+
+Delete all local data
+---------------------
+
+All local data, of **every collection**, including downloaded attachments, can be deleted with:
+
+.. code-block:: js
+
+ await RemoteSettings.clearAll();
+
+
+Unit Tests
+==========
+
+As a foreword, we would like to underline the fact that your tests should not test Remote Settings itself. Your tests should assume Remote Settings works, and should only run assertions on the integration part. For example, if you see yourself mocking the server responses, your tests may go over their responsibility.
+
+If your code relies on the ``"sync"`` event, you are likely to be interested in faking this event and make sure your code runs as expected. If it relies on ``.get()``, you will probably want to insert some fake local data.
+
+
+Simulate ``"sync"`` events
+--------------------------
+
+You can forge a ``payload`` that contains the events attributes as described above, and emit it :)
+
+.. code-block:: js
+
+ const payload = {
+ current: [{ id: "abc", age: 43 }],
+ created: [],
+ updated: [{ old: { id: "abc", age: 42 }, new: { id: "abc", age: 43 }}],
+ deleted: [],
+ };
+
+ await RemoteSettings("a-key").emit("sync", { data: payload });
+
+
+Manipulate local data
+---------------------
+
+A handle on the underlying database can be obtained through the ``.db`` attribute.
+
+.. code-block:: js
+
+ const db = RemoteSettings("a-key").db;
+
+And records can be created manually (as if they were synchronized from the server):
+
+.. code-block:: js
+
+ const record = await db.create({
+ id: "a-custom-string-or-uuid",
+ domain: "website.com",
+ usernameSelector: "#login-account",
+ passwordSelector: "#pass-signin",
+ });
+
+If no timestamp is set, any call to ``.get()`` will trigger the load of initial data (JSON dump) if any, or a synchronization will be triggered. To avoid that, store a fake timestamp. We use ``Date.now()`` instead of an arbitrary number, to make sure it's higher than the dump's, and thus prevent its load from the test.
+
+.. code-block:: js
+
+ await db.importChanges({}, Date.now());
+
+In order to bypass the potential target filtering of ``RemoteSettings("key").get()``, the low-level listing of records can be obtained with ``collection.list()``:
+
+.. code-block:: js
+
+ const { data: subset } = await db.list({
+ filters: {
+ "property": "value"
+ }
+ });
+
+The local data can be flushed with ``clear()``:
+
+.. code-block:: js
+
+ await db.clear()
+
+
+Misc
+====
+
+We host more documentation on https://remote-settings.readthedocs.io/, on how to run a server locally, manage attachments, or use the REST API etc.
+
+About blocklists
+----------------
+
+The security settings, as well as addons, plugins, and GFX blocklists were the first use-cases of remote settings, and thus have some specificities.
+
+For example, they leverage advanced customization options (bucket, content-signature certificate, target filtering etc.). In order to get a reference to these clients, their initialization code must be executed first.
+
+.. code-block:: js
+
+ const {RemoteSecuritySettings} = ChromeUtils.import("resource://gre/modules/psm/RemoteSecuritySettings.jsm");
+
+ RemoteSecuritySettings.init();
+
+
+ const {BlocklistPrivate} = ChromeUtils.import("resource://gre/modules/Blocklist.jsm");
+
+ BlocklistPrivate.ExtensionBlocklistRS._ensureInitialized();
+ BlocklistPrivate.PluginBlocklistRS._ensureInitialized();
+ BlocklistPrivate.GfxBlocklistRS._ensureInitialized();
+
+Then, in order to access a specific client instance, the ``bucketName`` must be specified:
+
+.. code-block:: js
+
+ const client = RemoteSettings("onecrl", { bucketName: "security-state" });
+
+And in the storage inspector, the IndexedDB internal store will be prefixed with ``security-state`` instead of ``main`` (eg. ``security-state/onecrl``).
diff --git a/services/settings/docs/synchronization-flow.svg b/services/settings/docs/synchronization-flow.svg
new file mode 100644
index 0000000000..f8cd66e42e
--- /dev/null
+++ b/services/settings/docs/synchronization-flow.svg
@@ -0,0 +1,4 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+License, v. 2.0. If a copy of the MPL was not distributed with this file,
+You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<svg id="mermaid-1614267332297" width="100%" xmlns="http://www.w3.org/2000/svg" height="1191.02001953125" style="max-width: 681.097900390625px;" viewBox="0 0 681.097900390625 1191.02001953125"><style>#mermaid-1614267332297{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-1614267332297 .error-icon{fill:#552222;}#mermaid-1614267332297 .error-text{fill:#552222;stroke:#552222;}#mermaid-1614267332297 .edge-thickness-normal{stroke-width:2px;}#mermaid-1614267332297 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1614267332297 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1614267332297 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1614267332297 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1614267332297 .marker{fill:#333333;stroke:#333333;}#mermaid-1614267332297 .marker.cross{stroke:#333333;}#mermaid-1614267332297 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-1614267332297 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-1614267332297 .cluster-label text{fill:#333;}#mermaid-1614267332297 .cluster-label span{color:#333;}#mermaid-1614267332297 .label text,#mermaid-1614267332297 span{fill:#333;color:#333;}#mermaid-1614267332297 .node rect,#mermaid-1614267332297 .node circle,#mermaid-1614267332297 .node ellipse,#mermaid-1614267332297 .node polygon,#mermaid-1614267332297 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-1614267332297 .node .label{text-align:center;}#mermaid-1614267332297 .node.clickable{cursor:pointer;}#mermaid-1614267332297 .arrowheadPath{fill:#333333;}#mermaid-1614267332297 .edgePath .path{stroke:#333333;stroke-width:1.5px;}#mermaid-1614267332297 .flowchart-link{stroke:#333333;fill:none;}#mermaid-1614267332297 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-1614267332297 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-1614267332297 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-1614267332297 .cluster text{fill:#333;}#mermaid-1614267332297 .cluster span{color:#333;}#mermaid-1614267332297 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80,100%,96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-1614267332297:root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}#mermaid-1614267332297 flowchart{fill:apa;}</style><g><g class="output"><g class="clusters"></g><g class="edgePaths"><g class="edgePath LS-0 LE-pull" style="opacity: 1;" id="L-0-pull"><path class="path" d="M342.5449962615967,48L342.5449962615967,73L342.5449962615967,98" marker-end="url(#arrowhead2240)" style="fill:none"></path><defs><marker id="arrowhead2240" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-pull LE-merge" style="opacity: 1;" id="L-pull-merge"><path class="path" d="M312.50888548956976,138L274.96374702453613,163L274.96374702453613,188" marker-end="url(#arrowhead2241)" style="fill:none"></path><defs><marker id="arrowhead2241" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-merge LE-valid" style="opacity: 1;" id="L-merge-valid"><path class="path" d="M274.96374702453613,228L274.96374702453613,253L275.46374702453613,278.5000038146973" marker-end="url(#arrowhead2242)" style="fill:none"></path><defs><marker id="arrowhead2242" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-valid LE-Success" style="opacity: 1;" id="L-valid-Success"><path class="path" d="M244.2903903057476,415.77665167354536L204.9066619873047,481.45001220703125L204.9066619873047,549.5725135803223" marker-end="url(#arrowhead2243)" style="fill:none"></path><defs><marker id="arrowhead2243" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-valid LE-retried" style="opacity: 1;" id="L-valid-retried"><path class="path" d="M306.6371009195334,415.7766468679424L345.0208320617676,481.45001220703125L345.5208320617674,516.9500122070311" marker-end="url(#arrowhead2244)" style="fill:none"></path><defs><marker id="arrowhead2244" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-retried LE-validchanges" style="opacity: 1;" id="L-retried-validchanges"><path class="path" d="M314.3468395079885,592.021022399834L219.85833358764648,657.6950149536133L220.35833358764648,693.1950157165527" marker-end="url(#arrowhead2245)" style="fill:none"></path><defs><marker id="arrowhead2245" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-retried LE-valid2" style="opacity: 1;" id="L-retried-valid2"><path class="path" d="M380.78403175221416,587.931815263167L519.0187530517578,657.6950149536133L519.5187530517578,693.1950157165533" marker-end="url(#arrowhead2246)" style="fill:none"></path><defs><marker id="arrowhead2246" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-validchanges LE-restoredata" style="opacity: 1;" id="L-validchanges-restoredata"><path class="path" d="M266.73461943413736,847.1437237665461L336.4000015258789,928.0200119018555L336.4000015258789,983.0200119018555L336.4000015258789,1028.0200119018555L336.4000015258789,1053.0200119018555" marker-end="url(#arrowhead2247)" style="fill:none"></path><defs><marker id="arrowhead2247" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-validchanges LE-clear" style="opacity: 1;" id="L-validchanges-clear"><path class="path" d="M173.98204703465768,847.1437245859271L103.31666564941406,928.0200119018555L103.31666564941406,963.0200119018555" marker-end="url(#arrowhead2248)" style="fill:none"></path><defs><marker id="arrowhead2248" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-restore LE-Failure" style="opacity: 1;" id="L-restore-Failure"><path class="path" d="M103.31666564941406,1093.0200119018555L103.31666564941406,1118.0200119018555L184.9666633605957,1149.5473614070174" marker-end="url(#arrowhead2249)" style="fill:none"></path><defs><marker id="arrowhead2249" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-valid2 LE-clear2" style="opacity: 1;" id="L-valid2-clear2"><path class="path" d="M535.6179849609663,877.4207777038293L544.904167175293,928.0200119018555L544.904167175293,963.0200119018555" marker-end="url(#arrowhead2250)" style="fill:none"></path><defs><marker id="arrowhead2250" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-valid2 LE-Retry" style="opacity: 1;" id="L-valid2-Retry"><path class="path" d="M471.3317676967353,845.3330257838934L393.7083320617676,928.0200119018555L393.7083320617676,983.0200119018555L393.7083320617676,1028.0200119018555L541.872917175293,1065.6716907714963" marker-end="url(#arrowhead2251)" style="fill:none"></path><defs><marker id="arrowhead2251" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-Retry LE-pull" style="opacity: 1;" id="L-Retry-pull"><path class="path" d="M599.7062454223633,1057.4159367943996L654.1812515258789,1028.0200119018555L654.1812515258789,983.0200119018555L654.1812515258789,928.0200119018555L654.1812515258789,792.8575134277344L654.1812515258789,657.6950149536133L654.1812515258789,569.5725135803223L654.1812515258789,481.45001220703125L654.1812515258789,362.2250061035156L654.1812515258789,253L654.1812515258789,208L654.1812515258789,163L397.03666496276855,125.86854882938192" marker-end="url(#arrowhead2252)" style="fill:none"></path><defs><marker id="arrowhead2252" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-clear2 LE-Retry" style="opacity: 1;" id="L-clear2-Retry"><path class="path" d="M544.904167175293,1003.0200119018555L544.904167175293,1028.0200119018555L559.2849527994791,1053.0200119018555" marker-end="url(#arrowhead2253)" style="fill:none"></path><defs><marker id="arrowhead2253" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-clear LE-restore" style="opacity: 1;" id="L-clear-restore"><path class="path" d="M103.31666564941406,1003.0200119018555L103.31666564941406,1028.0200119018555L103.31666564941406,1053.0200119018555" marker-end="url(#arrowhead2254)" style="fill:none"></path><defs><marker id="arrowhead2254" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g><g class="edgePath LS-restoredata LE-Failure" style="opacity: 1;" id="L-restoredata-Failure"><path class="path" d="M336.4000015258789,1093.0200119018555L336.4000015258789,1118.0200119018555L254.75000381469727,1149.5473614070174" marker-end="url(#arrowhead2255)" style="fill:none"></path><defs><marker id="arrowhead2255" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1px; stroke-dasharray: 1px, 0px;"></path></marker></defs></g></g><g class="edgeLabels"><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-0-pull" class="edgeLabel L-LS-0' L-LE-pull"></span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-pull-merge" class="edgeLabel L-LS-pull' L-LE-merge"></span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-merge-valid" class="edgeLabel L-LS-merge' L-LE-valid"></span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(204.9066619873047,481.45001220703125)"><g transform="translate(-11.324996948242188,-10)" class="label"><rect rx="0" ry="0" width="22.649993896484375" height="20"></rect><foreignObject width="22.649993896484375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-valid-Success" class="edgeLabel L-LS-valid' L-LE-Success">Yes</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(345.0208320617676,481.45001220703125)"><g transform="translate(-9.399993896484375,-10)" class="label"><rect rx="0" ry="0" width="18.79998779296875" height="20"></rect><foreignObject width="18.79998779296875" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-valid-retried" class="edgeLabel L-LS-valid' L-LE-retried">No</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(219.85833358764648,657.6950149536133)"><g transform="translate(-11.324996948242188,-10)" class="label"><rect rx="0" ry="0" width="22.649993896484375" height="20"></rect><foreignObject width="22.649993896484375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-retried-validchanges" class="edgeLabel L-LS-retried' L-LE-validchanges">Yes</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(519.0187530517578,657.6950149536133)"><g transform="translate(-9.399993896484375,-10)" class="label"><rect rx="0" ry="0" width="18.79998779296875" height="20"></rect><foreignObject width="18.79998779296875" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-retried-valid2" class="edgeLabel L-LS-retried' L-LE-valid2">No</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(336.4000015258789,983.0200119018555)"><g transform="translate(-11.324996948242188,-10)" class="label"><rect rx="0" ry="0" width="22.649993896484375" height="20"></rect><foreignObject width="22.649993896484375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-validchanges-restoredata" class="edgeLabel L-LS-validchanges' L-LE-restoredata">Yes</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(103.31666564941406,928.0200119018555)"><g transform="translate(-9.399993896484375,-10)" class="label"><rect rx="0" ry="0" width="18.79998779296875" height="20"></rect><foreignObject width="18.79998779296875" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-validchanges-clear" class="edgeLabel L-LS-validchanges' L-LE-clear">No</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-restore-Failure" class="edgeLabel L-LS-restore' L-LE-Failure"></span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(544.904167175293,928.0200119018555)"><g transform="translate(-9.399993896484375,-10)" class="label"><rect rx="0" ry="0" width="18.79998779296875" height="20"></rect><foreignObject width="18.79998779296875" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-valid2-clear2" class="edgeLabel L-LS-valid2' L-LE-clear2">No</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(393.7083320617676,983.0200119018555)"><g transform="translate(-11.324996948242188,-10)" class="label"><rect rx="0" ry="0" width="22.649993896484375" height="20"></rect><foreignObject width="22.649993896484375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-valid2-Retry" class="edgeLabel L-LS-valid2' L-LE-Retry">Yes</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(654.1812515258789,569.5725135803223)"><g transform="translate(-18.916671752929688,-10)" class="label"><rect rx="0" ry="0" width="37.833343505859375" height="20"></rect><foreignObject width="37.833343505859375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-Retry-pull" class="edgeLabel L-LS-Retry' L-LE-pull">Retry</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-clear2-Retry" class="edgeLabel L-LS-clear2' L-LE-Retry"></span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-clear-restore" class="edgeLabel L-LS-clear' L-LE-restore"></span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform=""><g transform="translate(0,0)" class="label"><rect rx="0" ry="0" width="0" height="0"></rect><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span id="L-L-restoredata-Failure" class="edgeLabel L-LS-restoredata' L-LE-Failure"></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default" style="opacity: 1;" id="flowchart-0-2553" transform="translate(342.5449962615967,28)"><rect rx="0" ry="0" x="-26.125" y="-20" width="52.25" height="40" class="label-container" style="fill:#00ff00;"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-16.125,-10)"><foreignObject width="32.25" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Sync</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-pull-2554" transform="translate(342.5449962615967,118)"><rect rx="0" ry="0" x="-54.491668701171875" y="-20" width="108.98333740234375" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-44.491668701171875,-10)"><foreignObject width="88.98333740234375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Pull changes</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-merge-2556" transform="translate(274.96374702453613,208)"><rect rx="0" ry="0" x="-69.30000305175781" y="-20" width="138.60000610351562" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-59.30000305175781,-10)"><foreignObject width="118.60000610351562" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Merge with local</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-valid-2558" transform="translate(274.96374702453613,362.2250061035156)"><polygon points="84.22500228881836,0 168.45000457763672,-84.22500228881836 84.22500228881836,-168.45000457763672 0,-84.22500228881836" transform="translate(-84.22500228881836,84.22500228881836)" class="label-container"></polygon><g class="label" transform="translate(0,0)"><g transform="translate(-63.583335876464844,-10)"><foreignObject width="127.16667175292969" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Is signature valid?</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-Success-2560" transform="translate(204.9066619873047,569.5725135803223)"><rect rx="0" ry="0" x="-36.991668701171875" y="-20" width="73.98333740234375" height="40" class="label-container" style="fill:#00ff00;"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-26.991668701171875,-10)"><foreignObject width="53.98333740234375" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Success</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-retried-2562" transform="translate(345.0208320617676,569.5725135803223)"><polygon points="53.122501373291016,0 106.24500274658203,-53.122501373291016 53.122501373291016,-106.24500274658203 0,-53.122501373291016" transform="translate(-53.122501373291016,53.122501373291016)" class="label-container"></polygon><g class="label" transform="translate(0,0)"><g transform="translate(-29.025001525878906,-10)"><foreignObject width="58.05000305175781" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Retried?</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-validchanges-2564" transform="translate(219.85833358764648,792.8575134277344)"><polygon points="100.16249771118164,0 200.3249954223633,-100.16249771118164 100.16249771118164,-200.3249954223633 0,-100.16249771118164" transform="translate(-100.16249771118164,100.16249771118164)" class="label-container"></polygon><g class="label" transform="translate(0,0)"><g transform="translate(-81.29166412353516,-10)"><foreignObject width="162.5833282470703" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Valid without changes?</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-valid2-2566" transform="translate(519.0187530517578,792.8575134277344)"><polygon points="100.16249771118164,0 200.3249954223633,-100.16249771118164 100.16249771118164,-200.3249954223633 0,-100.16249771118164" transform="translate(-100.16249771118164,100.16249771118164)" class="label-container"></polygon><g class="label" transform="translate(0,0)"><g transform="translate(-81.29166412353516,-10)"><foreignObject width="162.5833282470703" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Valid without changes?</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-restoredata-2568" transform="translate(336.4000015258789,1073.0200119018555)"><rect rx="0" ry="0" x="-87.76667022705078" y="-20" width="175.53334045410156" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-77.76667022705078,-10)"><foreignObject width="155.53334045410156" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Restore previous data</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-clear-2570" transform="translate(103.31666564941406,983.0200119018555)"><rect rx="0" ry="0" x="-48.39167022705078" y="-20" width="96.78334045410156" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-38.39167022705078,-10)"><foreignObject width="76.78334045410156" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Clear local</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-restore-2571" transform="translate(103.31666564941406,1073.0200119018555)"><rect rx="0" ry="0" x="-95.31666564941406" y="-20" width="190.63333129882812" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-85.31666564941406,-10)"><foreignObject width="170.63333129882812" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Restore packaged dump</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-Failure-2572" transform="translate(219.85833358764648,1163.0200119018555)"><rect rx="0" ry="0" x="-34.89167022705078" y="-20" width="69.78334045410156" height="40" class="label-container" style="fill:#ff0000;"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-24.89167022705078,-10)"><foreignObject width="49.78334045410156" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Failure</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-clear2-2574" transform="translate(544.904167175293,983.0200119018555)"><rect rx="0" ry="0" x="-48.39167022705078" y="-20" width="96.78334045410156" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-38.39167022705078,-10)"><foreignObject width="76.78334045410156" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Clear local</div></foreignObject></g></g></g><g class="node default" style="opacity: 1;" id="flowchart-Retry-2576" transform="translate(570.7895812988281,1073.0200119018555)"><rect rx="0" ry="0" x="-28.916664123535156" y="-20" width="57.83332824707031" height="40" class="label-container"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-18.916664123535156,-10)"><foreignObject width="37.83332824707031" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Retry</div></foreignObject></g></g></g></g></g></g></svg> \ No newline at end of file