'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": "5417f08ca7c2f02b134fa3e3de825291", "main.dart.js_276.part.js": "aff9b85c3e50ce84232f035f2687dc62", "main.dart.js_274.part.js": "b1f28a9bfd2471fd664c8fd5da4c2134", "main.dart.js_292.part.js": "af19e835d786f8723f13bc139eb069f3", "main.dart.js_286.part.js": "a3c0c66a2ebc96715c8c55a0b548a567", "main.dart.js_239.part.js": "7ba0d25d2e47f54f43bb7aeb66d665a3", "main.dart.js_263.part.js": "429d6590f3a4dbf27e6fb38f24f2a37c", "main.dart.js_203.part.js": "8599364d4615289d36696afbdf52e11a", "main.dart.js_232.part.js": "13157cbc2b505e377c2646cb8b104436", "main.dart.js_243.part.js": "5b11104baad20f1a70094e74ffc1d001", "main.dart.js_248.part.js": "9e5307cb6cea5812ab3cb0284c5cb8a6", "main.dart.js_275.part.js": "7cfb345ace29cd3740ef51df8f718487", "main.dart.js_296.part.js": "66d1e18d89e1b6518bd5f78259c90d65", "main.dart.js_212.part.js": "07146649fc35abf1a88efae4c311eabb", "main.dart.js_189.part.js": "943d5dc50937e41d5089e2348f12e866", "main.dart.js_242.part.js": "42d91bea001d3ce59b669896fde2ea45", "main.dart.js_241.part.js": "5cd872e238efe0fee72f0dc3ce9298f3", "main.dart.js_1.part.js": "03a789b5b857bbbae319e5458f5c9ed2", "main.dart.js_252.part.js": "94e6b412f416ba98d36d972afd88d819", "main.dart.js_16.part.js": "655b838f970fd942642570c6cba85ebb", "icons/Icon-192.png": "97f7226b0a52c22cfe1557cecce6763e", "icons/Icon-512.png": "391892c6f6720429a9d4f93ec1ce5f4e", "main.dart.js_294.part.js": "af5ef834b3b0dca373aa8a93325ebfb6", "main.dart.js_220.part.js": "156467045eb6df9924d5a41d192900cf", "main.dart.js_253.part.js": "515626179130674bc4e06c7c83bd1f9d", "main.dart.js_218.part.js": "a5d2ff2f9a631418de413e396188eadd", "main.dart.js_204.part.js": "2dc937995f71429b1fa283484a044ce8", "main.dart.js_287.part.js": "f618c4052e85b35065600d8c1476cfa0", "assets/fonts/MaterialIcons-Regular.otf": "f5f22db300aa7bdf86de1c57d4aa8d3f", "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": "c4c151b1b0760395c474aef86e34c28c", "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": "59e5be8bbc4311cf881cb56c4afecf0d", "main.dart.js_254.part.js": "0dad729c15d97a82425b2f1eff44fa9b", "main.dart.js_273.part.js": "6979c53f6148bff6754f15e94324c6c0", "manifest.json": "cc4b6aa791018840b65fd0b0e325b201", "main.dart.js_268.part.js": "b88c1157a92054e583843112bfb94471", "version.json": "9e35f3ded4f3cc3cfb8043a1a528ab26", "main.dart.js_295.part.js": "8c89abfd04a4edea7b4ce59045344ce9", "canvaskit/skwasm.js.symbols": "9fe690d47b904d72c7d020bd303adf16", "canvaskit/canvaskit.js": "728b2d477d9b8c14593d4f9b82b484f3", "canvaskit/skwasm.wasm": "1c93738510f202d9ff44d36a4760126b", "canvaskit/canvaskit.wasm": "a37f2b0af4995714de856e21e882325c", "canvaskit/canvaskit.js.symbols": "27361387bc24144b46a745f1afe92b50", "canvaskit/skwasm.js": "ea559890a088fe28b4ddf70e17e60052", "canvaskit/chromium/canvaskit.js": "8191e843020c832c9cf8852a4b909d4c", "canvaskit/chromium/canvaskit.wasm": "c054c2c892172308ca5a0bd1d7a7754b", "canvaskit/chromium/canvaskit.js.symbols": "f7c5e5502d577306fb6d530b1864ff86", "main.dart.js_281.part.js": "1ab3c266ce724529f59ed0235ef8483f", "main.dart.js_282.part.js": "40790254dfefc3aee725c9512d488a4d", "main.dart.js_279.part.js": "4d21d71cfb342bfce7a06b2764ed6166", "main.dart.js_191.part.js": "3e9d6a20483080b94a0b60f0e475e5a0", "main.dart.js_293.part.js": "e4fef5a0207098c6b995567e593e2d51", "main.dart.js_202.part.js": "330b61f8cf074c1f342b565d07ae563d", "main.dart.js_297.part.js": "8a38053e26ec62b46b74ac8a88c63e14", "main.dart.js_2.part.js": "d6c338eddec0d3623b489032ee604cec", "main.dart.js_229.part.js": "f10460b22bb87bcf08b4e5dcfeed9152", "main.dart.js_270.part.js": "25ecb39e187fe43d2e18cc480e597530", "main.dart.js_280.part.js": "b410dc22a5dab6b86f221d42ddbcda60", "main.dart.js_288.part.js": "c3440e3e521412d60c4e19ae221d23e4", "main.dart.js_237.part.js": "75bbeeeb100a837783a858dabb4f449d", "main.dart.js_228.part.js": "e7370d09454b867893c8aeb253bda1a0", "main.dart.js_277.part.js": "b072762caa66740d596df671436b54c1", "flutter_bootstrap.js": "28e962c4a3f0eda5e68c8c3072a217f4", "main.dart.js_247.part.js": "bf48f3e8cb7098a50afe7c2e1651e23a", "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": "eec350b34c96f9d7edd4bdeaf41253bd", "main.dart.js_260.part.js": "2c0891e14b1ed450d005ccab08f8cd75", "main.dart.js_244.part.js": "580fc1a1d5cd4cd3e1364024dab725e0", "favicon.png": "a409751f0ecf6dee76fb350d7402f9be", "main.dart.js_290.part.js": "ca85e9818aef81de564c8be8c5163a80", "index.html": "6a2ebc0086b86c82802460107524f398", "/": "6a2ebc0086b86c82802460107524f398", "flutter.js": "83d881c1dbb6d6bcd6b42e274605b69c", "main.dart.js_272.part.js": "6e0fe3c5373c1cc01273d8dc269d5117", "main.dart.js_261.part.js": "c367b32b7ce300f1f2f33da59d0e54ba", "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; }); }); }) ); }