const cacheName="omnifaces.5.4.4b0a9ef9",cacheableResources=["\/","\/index.xhtml","\/jakarta.faces.resource\/faces.js.xhtml?ln=jakarta.faces","\/jakarta.faces.resource\/eNorKMrMTU1LTE4ttsoqLE0tqtSHUHpZxTUFOOR0C3JK0zPzitHUJOcXpWII5Rbk56XmlYDV5iRW5peWWGUV66eV5iWXZOaDjQAAZuw0RQ.js.xhtml?ln=omnifaces.combined","\/jakarta.faces.resource\/eNorKMrMTU1LTE4ttkrOzy3Iz0vNKynWSy4urslJrMwvLbECMvUhTJAoAMlwEvg.css.xhtml?ln=omnifaces.combined","\/jakarta.faces.resource\/img\/OmniFaces-logo-90x90-white.png.xhtml?ln=layout","\/offline.xhtml","\/jakarta.faces.resource\/omnifaces.js.xhtml?ln=omnifaces"],offlineResource="\/offline.xhtml";self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(n=>n.addAll(cacheableResources)))}),self.addEventListener("fetch",function(e){const n=e.request,t=new URL(n.url);if(t.origin!==self.location.origin)return;t.searchParams.delete("v");const o=t.toString(),c=n.method,r=(i,l)=>{self.clients.matchAll().then(a=>{a.forEach(s=>{s.postMessage({type:"omnifaces.event",name:i,detail:l})})})},d=()=>{r("omnifaces.online",{method:c,url:o})},h=i=>{r("omnifaces.offline",{method:c,url:o,error:i})};if(c=="GET"){const i=e.request.mode=="navigate",l=o.includes("/jakarta.faces.resource/");(i||l)&&e.respondWith(caches.match(o).then(function(a){const s=fetch(n).then(m,u).catch(u);return i?s:a||s;function m(f){return i&&d(),f}function u(f){if(navigator.onLine)throw f;return i&&(h(f),offlineResource)?caches.match(offlineResource):a}}))}else c=="POST"&&(navigator.onLine?d():h(new Error("The network connection has been lost.")))}),self.addEventListener("notificationclick",function(e){e.notification.close(),self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then(n=>{n.forEach(t=>{t.postMessage({type:"omnifaces.event",name:"omnifaces.notificationclick",detail:{tag:e.notification.tag,data:e.notification.data}})})}),e.notification.data&&e.notification.data.url&&e.waitUntil(self.clients.openWindow(e.notification.data.url))}),self.addEventListener("notificationclose",function(e){self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then(n=>{n.forEach(t=>{t.postMessage({type:"omnifaces.event",name:"omnifaces.notificationclose",detail:{tag:e.notification.tag,data:e.notification.data}})})})}),self.addEventListener("activate",function(e){e.waitUntil(caches.keys().then(n=>Promise.all(n.filter(t=>t.startsWith("omnifaces.")&&t!==cacheName).map(t=>caches.delete(t)))))});
