(()=>{"use strict";const{rE:e}={rE:"16.2.6"},t=`dynamic-cache-${e}#1`,s=`static-cache-${e}#1`,a=["./"];self.addEventListener("install",e=>{e.waitUntil(caches.open(s).then(e=>Promise.allSettled(a.map(t=>async function(e,t){const s=await fetch(t,{redirect:"follow"});if(!s.ok)throw new Error(`Failed to precache ${t}: ${s.status}`);const a=await s.blob();await e.put(t,new Response(a,{status:s.status,statusText:s.statusText,headers:s.headers}))}(e,t))))),self.skipWaiting()}),self.addEventListener("activate",e=>{e.waitUntil(caches.keys().then(e=>Promise.all(e.map(e=>e!==s&&e!==t?caches.delete(e):Promise.resolve())))),self.clients.claim()}),self.addEventListener("fetch",e=>{e.respondWith(fetch(e.request).then(s=>{const a=s.clone();return"GET"!==e.request.method?s:(console.debug("Caching",{request:e.request}),caches.open(t).then(t=>t.put(e.request,a)).then(()=>s))}).catch(t=>(console.debug(t),console.debug("Hitting cache",{request:e.request}),caches.match(e.request))))})})();
//# sourceMappingURL=bookmarks-service-worker.js.map?v=6d30df209dafa61ca7b8