'use strict'; const MANIFEST = 'flutter-app-manifest'; const TEMP = 'flutter-temp-cache'; const CACHE_NAME = 'flutter-app-cache'; const RESOURCES = {"main.dart.js_230.part.js": "7ca47b90b48d0e9ebba4f6e88596530f", "main.dart.js_276.part.js": "2485756fd660eef0f0dca038ab12b87d", "main.dart.js_274.part.js": "5e08ae775731591af053f1373f1c6c65", "main.dart.js_292.part.js": "c6059939746e88e6ed0ff77a805374e1", "main.dart.js_286.part.js": "36c477ea7066a177f87cab2701337765", "main.dart.js_239.part.js": "4538ed94231b5ef8d384a75bd0e633c7", "main.dart.js_263.part.js": "c3e56958a0aa79fca50188dcbc06a9a0", "main.dart.js_203.part.js": "74e93627e7f52465552f3ebbdc45f87d", "main.dart.js_232.part.js": "eebdd0a0df758154998baadaaed83491", "main.dart.js_243.part.js": "599f91569c488db642c073731372dbc5", "main.dart.js_248.part.js": "f70f32071e55d9a347fc2270fca9e867", "main.dart.js_275.part.js": "a0c32fe574c87f0a58e96106a0173db3", "main.dart.js_296.part.js": "50ce9636dc35bd91a161e8eb836e570c", "main.dart.js_212.part.js": "151ad87d1895d13c3cfd6e3b9232ac5f", "main.dart.js_189.part.js": "55f80f9ecc62f8a1a9b1216dd3cde0dc", "main.dart.js_242.part.js": "1fdb5ff36e44f4814f5b6d4add8e543a", "main.dart.js_241.part.js": "ae342d0edf29c31f3ac524d608a828f0", "main.dart.js_1.part.js": "91440901675e09d488731e2630e42908", "main.dart.js_252.part.js": "bed974a92112381c547e49719b99ab26", "main.dart.js_16.part.js": "6c62ebdf567f2a33f0879aa4dffb9f98", "icons/Icon-192.png": "97f7226b0a52c22cfe1557cecce6763e", "icons/Icon-512.png": "391892c6f6720429a9d4f93ec1ce5f4e", "main.dart.js_294.part.js": "6d286644181bf5b3d10d1e0d52e1610c", "main.dart.js_220.part.js": "5f2fe9a08f34177f437a8834cc015ee5", "main.dart.js_253.part.js": "b81242b374d5539b8590cce3b7efcb4f", "main.dart.js_218.part.js": "08a36f2496a43265ab6a55ba119306ec", "main.dart.js_204.part.js": "aad3816f1c54706d335b32cb731f1152", "main.dart.js_287.part.js": "179dde83eb540f0f6efbf827c785f31b", "assets/fonts/MaterialIcons-Regular.otf": "0f73bdbc3eb9e9032a2a319f3942ff0a", "assets/AssetManifest.bin.json": "fb071ee11f921dab7eeaf2599e3351a8", "assets/AssetManifest.bin": "002b21ac1c4e3934c8ab6ab9e39ddb52", "assets/AssetManifest.json": "a1253d1a66d540724635213afe489056", "assets/assets/info-logo.png": "9d1d72596564e6639fd984fea2dfd048", "assets/assets/logo.svg": "d042b70cf11a41f2764028e85b07a00a", "assets/assets/banner_transparent.png": "364e2030f739bf0c7ed1c061c4cb5901", "assets/assets/sounds/call.ogg": "7e8c646f83fba83bfb9084dc1bfec31e", "assets/assets/sounds/notification.ogg": "d928d619828e6dbccf6e9e40f1c99d83", "assets/assets/sounds/phone.ogg": "5c8fb947eb92ca55229cb6bbf533c40f", "assets/assets/logo_transparent.png": "f00cda39300c9885a7c9ae52a65babbf", "assets/assets/sas-emoji.json": "b9d99fc6dda6a3250af57af969b4a02d", "assets/assets/js/package/olm_legacy.js": "54770eb325f042f9cfca7d7a81f79141", "assets/assets/js/package/olm.wasm": "239a014f3b39dc9cbf051c42d72353d4", "assets/assets/js/package/olm.js": "e9f296441f78d7f67c416ba8519fe7ed", "assets/assets/banner.png": "4a005db27a8787aea061537223dabb7d", "assets/assets/favicon.png": "3ea6cdc2aeab08defd0659bad734a69b", "assets/assets/logo.png": "d329be9cd7af685717f68e03561f96c0", "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": "5c124396503231de315ac975bb8653d8", "assets/packages/flutter_map/lib/assets/flutter_map_logo.png": "208d63cc917af9713fc9572bd5c09362", "assets/packages/record_web/assets/js/record.fixwebmduration.js": "1f0108ea80c8951ba702ced40cf8cdce", "assets/packages/record_web/assets/js/record.worklet.js": "356bcfeddb8a625e3e2ba43ddf1cc13e", "assets/packages/wakelock_plus/assets/no_sleep.js": "7748a45cd593f33280669b29c2c8919a", "assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce", "assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57", "assets/NOTICES": "983fbbb360750a0476b9a04a2c1cf05c", "main.dart.js": "e6c93e569311724d00461d5b4b4130ca", "main.dart.js_254.part.js": "0b8c89a888f129d3ec9e16d7ca30c27c", "main.dart.js_273.part.js": "a3e3a4c729be287d4bb4bddd48e3d742", "manifest.json": "cc4b6aa791018840b65fd0b0e325b201", "main.dart.js_268.part.js": "926971dd700fedb65a72304debde0489", "version.json": "862de28dd61d480a6b68d3d8cf190d73", "main.dart.js_295.part.js": "51bd82502d984fce4d19ea30773c4f85", "canvaskit/skwasm.js.symbols": "e72c79950c8a8483d826a7f0560573a1", "canvaskit/canvaskit.js": "728b2d477d9b8c14593d4f9b82b484f3", "canvaskit/skwasm.wasm": "39dd80367a4e71582d234948adc521c0", "canvaskit/canvaskit.wasm": "7a3f4ae7d65fc1de6a6e7ddd3224bc93", "canvaskit/canvaskit.js.symbols": "bdcd3835edf8586b6d6edfce8749fb77", "canvaskit/skwasm.js": "ea559890a088fe28b4ddf70e17e60052", "canvaskit/chromium/canvaskit.js": "8191e843020c832c9cf8852a4b909d4c", "canvaskit/chromium/canvaskit.wasm": "f504de372e31c8031018a9ec0a9ef5f0", "canvaskit/chromium/canvaskit.js.symbols": "b61b5f4673c9698029fa0a746a9ad581", "main.dart.js_281.part.js": "e3da050b4db05a72a20d14b918bda534", "main.dart.js_282.part.js": "a625821cd008613f0806e88e19293618", "main.dart.js_279.part.js": "1b9f76c5486b7d4e7b07c67d37d57340", "main.dart.js_191.part.js": "369f0fe907219f2b11ab8b26afef8389", "main.dart.js_293.part.js": "a46534e374e7cdb8eb831d68051d4c00", "main.dart.js_202.part.js": "7fe2b1a3b9d3446cd6f34f279619bb56", "main.dart.js_297.part.js": "e3f68dfde1f9db8cea6449c4691c9397", "main.dart.js_2.part.js": "d6c338eddec0d3623b489032ee604cec", "main.dart.js_229.part.js": "58f5e7fba3d562faf1ccc48b20e82b03", "main.dart.js_270.part.js": "075602bd5b4cbe65be242cc128283788", "main.dart.js_280.part.js": "d38cab52e34ed997747d7a6aead908db", "main.dart.js_288.part.js": "e9aa7507a068bb39bb85696605bea9c1", "main.dart.js_237.part.js": "36603004971349c34675fd3b731c12bd", "main.dart.js_228.part.js": "46086b6b52d2b11e63430e650c534678", "main.dart.js_277.part.js": "07b2bb146bd8fad63edc0fd7e11934c9", "flutter_bootstrap.js": "83e1f7f19743331f0b157983bcef4cdf", "main.dart.js_247.part.js": "cbba13363a8cb83e75f83a7bf90f14aa", "splash/img/light-3x.png": "da261be18bbda768fa1462fd8a8cef46", "splash/img/dark-4x.png": "e0346148103c17a87682a35525499afe", "splash/img/light-1x.png": "db5b72b7f4b38640c974f20d9c90f464", "splash/img/dark-1x.png": "db5b72b7f4b38640c974f20d9c90f464", "splash/img/light-2x.png": "9371a9e18df59f2bbe9b32e04c3fc5d4", "splash/img/dark-2x.png": "9371a9e18df59f2bbe9b32e04c3fc5d4", "splash/img/dark-3x.png": "da261be18bbda768fa1462fd8a8cef46", "splash/img/light-4x.png": "e0346148103c17a87682a35525499afe", "splash/style.css": "740c493f9c5dfc859ca07663691b24fb", "main.dart.js_291.part.js": "1b4dbd124c939eb5f502b11cebf968c3", "main.dart.js_260.part.js": "65c837360af42dc609d12045f0ee3587", "main.dart.js_244.part.js": "72e199c2aada4b4833ec9d05339d8850", "favicon.png": "a409751f0ecf6dee76fb350d7402f9be", "main.dart.js_290.part.js": "e854d212603c19fc27514c171ed4f8ec", "index.html": "6e7df1c312cf6b0860d00780cb571481", "/": "6e7df1c312cf6b0860d00780cb571481", "flutter.js": "83d881c1dbb6d6bcd6b42e274605b69c", "main.dart.js_272.part.js": "dfdd993ed1a897bb6e5cdbc0e9ccd8ac", "main.dart.js_261.part.js": "0c867e85354fdbbd48fcfbc0277d50ce", "auth.html": "88530dca48290678d3ce28a34fc66cbd"}; // 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; }); }); }) ); }