'use strict'; const MANIFEST = 'flutter-app-manifest'; const TEMP = 'flutter-temp-cache'; const CACHE_NAME = 'flutter-app-cache'; const RESOURCES = {"main.dart.js_199.part.js": "25f698dc2e2fcfc0dad9337c454f623e", "main.dart.js_266.part.js": "4afe2655b278e5e4673b61983c7f669e", "main.dart.js_270.part.js": "eaf29da9f1e8038a9eb9ffa4aba987a6", "main.dart.js_237.part.js": "f4d81e71de847353829fd69570e3b453", "main.dart.js_198.part.js": "301022e45919672b4edc99b71662fcdc", "main.dart.js_268.part.js": "0e728620fc46e9ebe8befe26adf6f04e", "main.dart.js_257.part.js": "2ea7a2b834472b823aaee5e39446b6cd", "main.dart.js_238.part.js": "c61b4c394900a4a4a94817ce10a335e0", "main.dart.js_241.part.js": "621a28f67399835e95d86a199bff166f", "main.dart.js_287.part.js": "2f7bf99f577c5e68d08697184a493e93", "main.dart.js_254.part.js": "c632618303a4a763b3f7afef6446dbe8", "main.dart.js_288.part.js": "37dc2ac910e711453ffc25ada809ab4a", "main.dart.js_208.part.js": "d0e01b602e55ee18859a549b2d935d18", "flutter.js": "4b2350e14c6650ba82871f60906437ea", "main.dart.js_246.part.js": "ad1d6e54b695497b42b963be7d56bdc6", "main.dart.js_284.part.js": "46218ee7e832bbab388bd95f3568883f", "main.dart.js_187.part.js": "76081ceaceaf62800707f7a587fed989", "main.dart.js_214.part.js": "6e1cc33f40d18fc50c6c39d7a7f75657", "splash/img/dark-2x.png": "9371a9e18df59f2bbe9b32e04c3fc5d4", "splash/img/light-4x.png": "e0346148103c17a87682a35525499afe", "splash/img/light-3x.png": "da261be18bbda768fa1462fd8a8cef46", "splash/img/dark-3x.png": "da261be18bbda768fa1462fd8a8cef46", "splash/img/light-1x.png": "db5b72b7f4b38640c974f20d9c90f464", "splash/img/dark-4x.png": "e0346148103c17a87682a35525499afe", "splash/img/dark-1x.png": "db5b72b7f4b38640c974f20d9c90f464", "splash/img/light-2x.png": "9371a9e18df59f2bbe9b32e04c3fc5d4", "splash/style.css": "740c493f9c5dfc859ca07663691b24fb", "main.dart.js_233.part.js": "d5b26c6c9a0da3626aff81f01889a02c", "main.dart.js_267.part.js": "f916f4a7e9197a23b6682f2438242135", "main.dart.js_248.part.js": "007848cc413a48231adade649a497e75", "main.dart.js_262.part.js": "9a521f13c2d0bc316fb3840547bfbcda", "main.dart.js_222.part.js": "c136fe645b6ab8eb9af30ecccf727a45", "main.dart.js_255.part.js": "f974ecfd9e41e47bcd7566c35d4f0970", "main.dart.js_247.part.js": "746167adba600ef1152ba4a2d98f4c39", "main.dart.js_286.part.js": "ccde3fe402fc3ce09db8a71f6c2fd3af", "main.dart.js_275.part.js": "818ba7b6fd5329f92fe43106169360ea", "main.dart.js_282.part.js": "024379225ef33600452acbc32377f343", "main.dart.js_276.part.js": "c30ed2db0a866eb435fe821ec56e2d5f", "main.dart.js_14.part.js": "542dade0808c6c9cd87fcfe36a5aa857", "icons/Icon-512.png": "391892c6f6720429a9d4f93ec1ce5f4e", "icons/Icon-192.png": "97f7226b0a52c22cfe1557cecce6763e", "main.dart.js_269.part.js": "f043e93b37fa884fce5d01494e72d317", "main.dart.js_236.part.js": "b4d982bb6bf3861d35438b7ae804e1e5", "version.json": "8edb4a10da08d1d0f56fa9aa2dba5d2c", "flutter_bootstrap.js": "f0dcf29cf9d853d8e029a7d8755b6073", "main.dart.js_235.part.js": "413eacfa2392399b2fa6cc53ee938c31", "main.dart.js_264.part.js": "476e96652524dcdad5ffdec7d18692fa", "manifest.json": "cc4b6aa791018840b65fd0b0e325b201", "main.dart.js_223.part.js": "b6f71ba28f574caf98f97cc4c771cf4f", "main.dart.js_285.part.js": "a616c33aa41e36948ebbf6d9cf0767ab", "main.dart.js_224.part.js": "c9c7d4f17218580aa7d59306c0eea5ff", "main.dart.js_226.part.js": "91b3ad0aeee4656f17b080b2464b8dbc", "main.dart.js_274.part.js": "acb915f8284cd3f511a8ffb9d09a5d0b", "main.dart.js_289.part.js": "39b9fb8292732875478b7961e202f1ef", "main.dart.js_280.part.js": "38017807fafcaa04a35c7ffda0b754ba", "main.dart.js_231.part.js": "554356201892a2d4b1e2c09de0b38032", "main.dart.js": "7eb2e30392b5e203ac04bde3a685320a", "main.dart.js_2.part.js": "592b7682355010a6166e3d8e675136d4", "main.dart.js_273.part.js": "97f4df82efec62af40c6f2cf561c840a", "main.dart.js_281.part.js": "a7cc9b07f9b42687b3ee33c5a82ab685", "index.html": "d3d055c1bb9ffa3345594e3b74b93ea0", "/": "d3d055c1bb9ffa3345594e3b74b93ea0", "main.dart.js_271.part.js": "e0cbc6135aad58fd37c4bc2950b86cf1", "main.dart.js_200.part.js": "ffbae9d52ecca0b8fb152d257ce41f8b", "main.dart.js_1.part.js": "68ae44bb18bac6e600545ae7cda716c4", "assets/AssetManifest.json": "341b122113248d15c16dff08b1bd5047", "assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce", "assets/fonts/Roboto/RobotoMono-Regular.ttf": "7e173cf37bb8221ac504ceab2acfb195", "assets/fonts/Roboto/Roboto-Italic.ttf": "cebd892d1acfcc455f5e52d4104f2719", "assets/fonts/Roboto/Roboto-Regular.ttf": "8a36205bd9b83e03af0591a004bc97f4", "assets/fonts/Roboto/Roboto-Bold.ttf": "b8e42971dec8d49207a8c8e2b919a6ac", "assets/fonts/MaterialIcons-Regular.otf": "9afeb8627ec2db3e8c103ba3fee8e83f", "assets/AssetManifest.bin": "de0be742194cbe9b25a9890efbcb2467", "assets/packages/flutter_map/lib/assets/flutter_map_logo.png": "208d63cc917af9713fc9572bd5c09362", "assets/packages/handy_window/assets/handy-window.css": "0434ee701235cf1c72458fd4ce022a64", "assets/packages/handy_window/assets/handy-window-dark.css": "45fb3160206a5f74c0a9f1763c00c372", "assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "04bc91744b625a64b095c6aec2f83ed9", "assets/packages/wakelock_plus/assets/no_sleep.js": "7748a45cd593f33280669b29c2c8919a", "assets/packages/record_web/assets/js/record.worklet.js": "356bcfeddb8a625e3e2ba43ddf1cc13e", "assets/packages/record_web/assets/js/record.fixwebmduration.js": "1f0108ea80c8951ba702ced40cf8cdce", "assets/FontManifest.json": "f7fada60693e36e425e760c51ceb59a3", "assets/AssetManifest.bin.json": "a501696bd1e234d2a7b0f016d4994600", "assets/NOTICES": "ad0bae227833957d26c4c04efb3df256", "assets/assets/js/package/olm.wasm": "1bee19214b0a80e2f498922ec044f470", "assets/assets/js/package/olm.js": "1c13112cb119a2592b9444be60fdad1f", "assets/assets/js/package/olm_legacy.js": "89449cce143a94c311e5d2a8717012fc", "assets/assets/logo_transparent.png": "f00cda39300c9885a7c9ae52a65babbf", "assets/assets/logo.png": "d329be9cd7af685717f68e03561f96c0", "assets/assets/sas-emoji.json": "b9d99fc6dda6a3250af57af969b4a02d", "assets/assets/sounds/notification.ogg": "d928d619828e6dbccf6e9e40f1c99d83", "assets/assets/sounds/call.ogg": "7e8c646f83fba83bfb9084dc1bfec31e", "assets/assets/sounds/phone.ogg": "5c8fb947eb92ca55229cb6bbf533c40f", "assets/assets/info-logo.png": "9d1d72596564e6639fd984fea2dfd048", "assets/assets/logo.svg": "d042b70cf11a41f2764028e85b07a00a", "assets/assets/banner.png": "4a005db27a8787aea061537223dabb7d", "assets/assets/banner_transparent.png": "364e2030f739bf0c7ed1c061c4cb5901", "assets/assets/favicon.png": "3ea6cdc2aeab08defd0659bad734a69b", "main.dart.js_185.part.js": "57ca85ef9c49a60c243fa2aded44c996", "auth.html": "88530dca48290678d3ce28a34fc66cbd", "main.dart.js_242.part.js": "711bd1c60a05a7f9306a2264e975a4f1", "canvaskit/canvaskit.wasm": "e7602c687313cfac5f495c5eac2fb324", "canvaskit/skwasm.worker.js": "89990e8c92bcb123999aa81f7e203b1c", "canvaskit/skwasm.wasm": "828c26a0b1cc8eb1adacbdd0c5e8bcfa", "canvaskit/chromium/canvaskit.wasm": "ea5ab288728f7200f398f60089048b48", "canvaskit/chromium/canvaskit.js": "b7ba6d908089f706772b2007c37e6da4", "canvaskit/chromium/canvaskit.js.symbols": "e115ddcfad5f5b98a90e389433606502", "canvaskit/canvaskit.js": "26eef3024dbc64886b7f48e1b6fb05cf", "canvaskit/canvaskit.js.symbols": "efc2cd87d1ff6c586b7d4c7083063a40", "canvaskit/skwasm.js": "ac0f73826b925320a1e9b0d3fd7da61c", "canvaskit/skwasm.js.symbols": "96263e00e3c9bd9cd878ead867c04f3c", "favicon.png": "a409751f0ecf6dee76fb350d7402f9be"}; // The application shell files that are downloaded before a service worker can // start. const CORE = ["main.dart.js", "index.html", "flutter_bootstrap.js", "assets/AssetManifest.bin.json", "assets/FontManifest.json"]; // During install, the TEMP cache is populated with the application shell files. self.addEventListener("install", (event) => { self.skipWaiting(); return event.waitUntil( caches.open(TEMP).then((cache) => { return cache.addAll( CORE.map((value) => new Request(value, {'cache': 'reload'}))); }) ); }); // During activate, the cache is populated with the temp files downloaded in // install. If this service worker is upgrading from one with a saved // MANIFEST, then use this to retain unchanged resource files. self.addEventListener("activate", function(event) { return event.waitUntil(async function() { try { var contentCache = await caches.open(CACHE_NAME); var tempCache = await caches.open(TEMP); var manifestCache = await caches.open(MANIFEST); var manifest = await manifestCache.match('manifest'); // When there is no prior manifest, clear the entire cache. if (!manifest) { await caches.delete(CACHE_NAME); contentCache = await caches.open(CACHE_NAME); for (var request of await tempCache.keys()) { var response = await tempCache.match(request); await contentCache.put(request, response); } await caches.delete(TEMP); // Save the manifest to make future upgrades efficient. await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES))); // Claim client to enable caching on first launch self.clients.claim(); return; } var oldManifest = await manifest.json(); var origin = self.location.origin; for (var request of await contentCache.keys()) { var key = request.url.substring(origin.length + 1); if (key == "") { key = "/"; } // If a resource from the old manifest is not in the new cache, or if // the MD5 sum has changed, delete it. Otherwise the resource is left // in the cache and can be reused by the new service worker. if (!RESOURCES[key] || RESOURCES[key] != oldManifest[key]) { await contentCache.delete(request); } } // Populate the cache with the app shell TEMP files, potentially overwriting // cache files preserved above. for (var request of await tempCache.keys()) { var response = await tempCache.match(request); await contentCache.put(request, response); } await caches.delete(TEMP); // Save the manifest to make future upgrades efficient. await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES))); // Claim client to enable caching on first launch self.clients.claim(); return; } catch (err) { // On an unhandled exception the state of the cache cannot be guaranteed. console.error('Failed to upgrade service worker: ' + err); await caches.delete(CACHE_NAME); await caches.delete(TEMP); await caches.delete(MANIFEST); } }()); }); // The fetch handler redirects requests for RESOURCE files to the service // worker cache. self.addEventListener("fetch", (event) => { if (event.request.method !== 'GET') { return; } var origin = self.location.origin; var key = event.request.url.substring(origin.length + 1); // Redirect URLs to the index.html if (key.indexOf('?v=') != -1) { key = key.split('?v=')[0]; } if (event.request.url == origin || event.request.url.startsWith(origin + '/#') || key == '') { key = '/'; } // If the URL is not the RESOURCE list then return to signal that the // browser should take over. if (!RESOURCES[key]) { return; } // If the URL is the index.html, perform an online-first request. if (key == '/') { return onlineFirst(event); } event.respondWith(caches.open(CACHE_NAME) .then((cache) => { return cache.match(event.request).then((response) => { // Either respond with the cached resource, or perform a fetch and // lazily populate the cache only if the resource was successfully fetched. return response || fetch(event.request).then((response) => { if (response && Boolean(response.ok)) { cache.put(event.request, response.clone()); } return response; }); }) }) ); }); self.addEventListener('message', (event) => { // SkipWaiting can be used to immediately activate a waiting service worker. // This will also require a page refresh triggered by the main worker. if (event.data === 'skipWaiting') { self.skipWaiting(); return; } if (event.data === 'downloadOffline') { downloadOffline(); return; } }); // Download offline will check the RESOURCES for all files not in the cache // and populate them. async function downloadOffline() { var resources = []; var contentCache = await caches.open(CACHE_NAME); var currentContent = {}; for (var request of await contentCache.keys()) { var key = request.url.substring(origin.length + 1); if (key == "") { key = "/"; } currentContent[key] = true; } for (var resourceKey of Object.keys(RESOURCES)) { if (!currentContent[resourceKey]) { resources.push(resourceKey); } } return contentCache.addAll(resources); } // Attempt to download the resource online before falling back to // the offline cache. function onlineFirst(event) { return event.respondWith( fetch(event.request).then((response) => { return caches.open(CACHE_NAME).then((cache) => { cache.put(event.request, response.clone()); return response; }); }).catch((error) => { return caches.open(CACHE_NAME).then((cache) => { return cache.match(event.request).then((response) => { if (response != null) { return response; } throw error; }); }); }) ); }