(()=>{const e=self.location.origin+self.location.pathname.replace("sw.js",""),t=[{'revision':'713c12857fc5eadb6915c96aa328fdd7','url':'index.html'},{'revision':null,'url':'js/285.902dc3166e82226541a5.chunk.js'},{'revision':null,'url':'js/334.f72694a737e72404ed6e.chunk.js'},{'revision':null,'url':'js/424.b407aaf3218fa480b144.chunk.js'},{'revision':null,'url':'js/668.d0b45ae92f54a69beee3.chunk.js'},{'revision':null,'url':'js/69.8ca10b3d679cc4c52a20.chunk.js'},{'revision':null,'url':'js/702.99e6ce480dc579b6e542.chunk.js'},{'revision':null,'url':'js/760.75d229a05d7b9bdf414b.chunk.js'},{'revision':null,'url':'js/favorite-hubs.8e51f1debd3cd6c6d6c7.chunk.js'},{'revision':null,'url':'js/filelists.a1ecb558a5c0c376191d.chunk.js'},{'revision':null,'url':'js/files.9b2b25680e1e04de1931.chunk.js'},{'revision':null,'url':'js/home.21a1fe21d45ac82fafe5.chunk.js'},{'revision':null,'url':'js/hubs.f336a1aeaac00fab20ce.chunk.js'},{'revision':null,'url':'js/locales/ca.7409d603c21de58635a6.chunk.js'},{'revision':null,'url':'js/locales/da.bd0c6f71e355d0794e71.chunk.js'},{'revision':null,'url':'js/locales/de.5adea2a7ce417c784479.chunk.js'},{'revision':null,'url':'js/locales/el.648369d465eb99118703.chunk.js'},{'revision':null,'url':'js/locales/en.c66f69f706afd2da9eb5.chunk.js'},{'revision':null,'url':'js/locales/es.793f17d88083bf7f0738.chunk.js'},{'revision':null,'url':'js/locales/eu.010416cbe0a067839d4a.chunk.js'},{'revision':null,'url':'js/locales/fi.7ecbf3197777fb8fd70f.chunk.js'},{'revision':null,'url':'js/locales/fr.cf760489c7a0a9a02e31.chunk.js'},{'revision':null,'url':'js/locales/hu.37c8f09717da5f1bc37c.chunk.js'},{'revision':null,'url':'js/locales/it.9842f3b2b5bb3b7420c5.chunk.js'},{'revision':null,'url':'js/locales/nl.88085590f152551ec225.chunk.js'},{'revision':null,'url':'js/locales/no.cfa0a90ce428e087e846.chunk.js'},{'revision':null,'url':'js/locales/pl.89540648cb16acad8d27.chunk.js'},{'revision':null,'url':'js/locales/pt-br.a537d1e531731dbec9dd.chunk.js'},{'revision':null,'url':'js/locales/pt.08213e494539393b14d1.chunk.js'},{'revision':null,'url':'js/locales/ro.23f02315e6d9ab090aac.chunk.js'},{'revision':null,'url':'js/locales/ru.c775ae5709b4e2affc37.chunk.js'},{'revision':null,'url':'js/locales/sv.60ec4539680a48384a56.chunk.js'},{'revision':null,'url':'js/locales/tr.c19f95d7bf191aad9a74.chunk.js'},{'revision':null,'url':'js/locales/uk_UA.0678837b62a41e004e9c.chunk.js'},{'revision':null,'url':'js/locales/zh_CN.d27ea53dd79304789681.chunk.js'},{'revision':null,'url':'js/main.d64158ea2453985dde98.entry.js'},{'revision':null,'url':'js/messages.e4523315258f6dab0f37.chunk.js'},{'revision':null,'url':'js/queue.e52e481f79bce96a17e1.chunk.js'},{'revision':null,'url':'js/search.321f771dd92b51431378.chunk.js'},{'revision':null,'url':'js/settings.3c031a77619c7df3a86e.chunk.js'},{'revision':null,'url':'js/share.ecb413c8d6a1cc8a6154.chunk.js'},{'revision':null,'url':'js/system-log.7aa8ba9d8b4a5711c4fc.chunk.js'},{'revision':null,'url':'js/transfers.5a7661c5701a462d4c53.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,l,s)=>-1!==t.indexOf(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,o)=>{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