/*global UVServiceWorker,__uv$config*/1/*2* Stock service worker script.3* Users can provide their own sw.js if they need to extend the functionality of the service worker.4* Ideally, this will be registered under the scope in uv.config.js so it will not need to be modified.5* However, if a user changes the location of uv.bundle.js/uv.config.js or sw.js is not relative to them, they will need to modify this script locally.6*/7importScripts("uv.bundle.js");8importScripts("uv.config.js");9importScripts(__uv$config.sw || "uv.sw.js");1011const uv = new UVServiceWorker();1213async function handleRequest(event) {14if (uv.route(event)) {15return await uv.fetch(event);16}1718return await fetch(event.request);19}2021self.addEventListener("fetch", (event) => {22event.respondWith(handleRequest(event));23});242526