(()=>{const e=self.location.origin+self.location.pathname.replace("sw.js",""),t=[{'revision':'d2f78a3ee9de82c2596e32b65cca4fbd','url':'index.html'},{'revision':null,'url':'js//locales/ca-webui-main-json.e4a9ae36d6beb98c0057.chunk.js'},{'revision':null,'url':'js//locales/da-webui-main-json.a08bb8db90fc33844135.chunk.js'},{'revision':null,'url':'js//locales/de-webui-main-json.6763aab78d26033bc160.chunk.js'},{'revision':null,'url':'js//locales/el-webui-main-json.33c629aa295c990b6816.chunk.js'},{'revision':null,'url':'js//locales/en-webui-main-json.ae2216f8443c16155761.chunk.js'},{'revision':null,'url':'js//locales/es-webui-main-json.cef003aeaf6a8669aa55.chunk.js'},{'revision':null,'url':'js//locales/eu-webui-main-json.f390f35c92cc5e80723e.chunk.js'},{'revision':null,'url':'js//locales/fi-webui-main-json.2c0e54d1e586d6d4cdf4.chunk.js'},{'revision':null,'url':'js//locales/fr-webui-main-json.eb58b9782b184c5bd0e7.chunk.js'},{'revision':null,'url':'js//locales/hu-webui-main-json.6a8b4be95cd392319f00.chunk.js'},{'revision':null,'url':'js//locales/it-webui-main-json.ace514cb8dbf846f7bb2.chunk.js'},{'revision':null,'url':'js//locales/nl-webui-main-json.99f14f67e7f7f523f435.chunk.js'},{'revision':null,'url':'js//locales/no-webui-main-json.14d6b98f5aeac4ae328e.chunk.js'},{'revision':null,'url':'js//locales/pl-webui-main-json.df98b2ed00d38e386747.chunk.js'},{'revision':null,'url':'js//locales/pt-br-webui-main-json.b06c253e99d8eb8a971d.chunk.js'},{'revision':null,'url':'js//locales/pt-webui-main-json.5278c6a5afa09777b453.chunk.js'},{'revision':null,'url':'js//locales/ro-webui-main-json.24ab9a55725a9fc18299.chunk.js'},{'revision':null,'url':'js//locales/ru-webui-main-json.e9ab289b5a1b70abdccf.chunk.js'},{'revision':null,'url':'js//locales/sv-webui-main-json.9ad571819cde0158829a.chunk.js'},{'revision':null,'url':'js//locales/tr-webui-main-json.68bb926adc13e8952b47.chunk.js'},{'revision':null,'url':'js//locales/uk_UA-webui-main-json.f4098f3ea96407bf804e.chunk.js'},{'revision':null,'url':'js//locales/zh_CN-webui-main-json.6250a926eeea9fda0697.chunk.js'},{'revision':null,'url':'js/285.f568d215104be4fb06eb.chunk.js'},{'revision':null,'url':'js/317.54d6dded7430f84fd4a7.chunk.js'},{'revision':null,'url':'js/424.b9b775d50fbed2ec85ca.chunk.js'},{'revision':null,'url':'js/668.0d2ed46d1147385f6482.chunk.js'},{'revision':null,'url':'js/69.00e5adf1f76437e343f2.chunk.js'},{'revision':null,'url':'js/702.87b71d34ebd167d76c3b.chunk.js'},{'revision':null,'url':'js/760.1679cba4f653d07819f3.chunk.js'},{'revision':null,'url':'js/favorite-hubs.9c69b40155edc72e69bb.chunk.js'},{'revision':null,'url':'js/filelists.799bae07549950c8bdce.chunk.js'},{'revision':null,'url':'js/files.c723dabab26e48d06683.chunk.js'},{'revision':null,'url':'js/home.1bfba76cdbb2fc7194dc.chunk.js'},{'revision':null,'url':'js/hubs.99a089268648607f734d.chunk.js'},{'revision':null,'url':'js/main.560335911ba879ef8877.entry.js'},{'revision':null,'url':'js/messages.1fff9c30585362386309.chunk.js'},{'revision':null,'url':'js/queue.822b774c6541212741c2.chunk.js'},{'revision':null,'url':'js/search.6a9813389fd4fec46997.chunk.js'},{'revision':null,'url':'js/settings.809f0f5d0b8ca408ae54.chunk.js'},{'revision':null,'url':'js/share.d66035dc828b2f3c8bb0.chunk.js'},{'revision':null,'url':'js/system-log.b6bc274d7fb71714ca24.chunk.js'},{'revision':null,'url':'js/transfers.8d1840e604ad0e4c0c15.chunk.js'}].map((function(t){return e+t.url})),n="resource-store";function l(e,t){return caches.match(new URL(t)).then((function(t){return t?(console.log("[SW] Return cached",e.request.url),t):(console.log("[SW] Fetch",e.request.url),fetch(e.request))}))}self.addEventListener("install",(e=>{console.log("[SW] Worker installed"),e.waitUntil(caches.open(n).then((e=>e.addAll([...t]))).then((()=>{console.log("[SW] Assets: ",t)})).catch((e=>{throw console.error(e),e})))})),self.addEventListener("activate",(e=>{console.log("[SW] Activate event"),e.waitUntil(caches.keys().then((e=>Promise.all(e.map((e=>caches.open(e).then((e=>(e=>e.keys().then((n=>Promise.all(n.map((n=>t.includes(n.url)?(console.log(`[SW] Cached asset ${n.url} still exists, skip delete`),null):e.delete(n).then((e=>{console.log(`[SW] Cached asset ${n.url} deleted`,e)}))))))))(e)))))))))})),self.addEventListener("fetch",(t=>{if("GET"===t.request.method){if("navigate"===t.request.mode||t.request.url.startsWith(e)&&-1===t.request.url.indexOf(".",e.length)&&!t.request.url.replace(e,"").match(/^(view)\//)){console.log("[SW] Navigate action, fetch index",t.request.url);const s=e+"index.html";return t.respondWith(new Promise((e=>{fetch(s).then((l=>{caches.open(n).then((n=>{n.put(new Request(s),l.clone()).then((()=>{console.log("[SW] Index file cached",t.request.url),e(l)}))}))})).catch((n=>{console.log("[SW] Navigate action, failed to fetch index",t.request.url,n),e(l(t,s))}))})))}return t.respondWith(l(t,t.request.url))}}))})();
//# sourceMappingURL=sw.js.map