all repos — caroster @ 8396b80d084b9f803ad3232ad760aca778f3301f

[Octree] Group carpool to your event https://caroster.io

frontend/public/sw.js (view raw)

1if(!self.define){const s=s=>{"require"!==s&&(s+=".js");let e=Promise.resolve();return a[s]||(e=new Promise((async e=>{if("document"in self){const a=document.createElement("script");a.src=s,document.head.appendChild(a),a.onload=e}else importScripts(s),e()}))),e.then((()=>{if(!a[s])throw new Error(`Module ${s} didn’t register its module`);return a[s]}))},e=(e,a)=>{Promise.all(e.map(s)).then((s=>a(1===s.length?s[0]:s)))},a={require:Promise.resolve(e)};self.define=(e,t,r)=>{a[e]||(a[e]=Promise.resolve().then((()=>{let a={};const i={uri:location.origin+e.slice(1)};return Promise.all(t.map((e=>{switch(e){case"exports":return a;case"module":return i;default:return s(e)}}))).then((s=>{const e=r(...s);return a.default||(a.default=e),a}))})))}}define("./sw.js",["./workbox-ea903bce"],(function(s){"use strict";importScripts(),self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"/_next/static/chunks/654-ed986fc33b4f01a80aa9.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/660-acb7f10a4cc2aa9c433f.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/681-725739dcf7a1911ad521.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/890-f720cc774718968f607e.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/925-26267f659e168d324a87.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/940-b0d5631a090d1d9f503d.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/framework-2191d16384373197bc0a.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/main-707e3475b4679de86540.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/_app-9efb421cce5a8ea789fe.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/_error-40228b1888d317150799.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/auth/confirm-0bc3bb4df1698533c96b.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/auth/login-4559bc9118016d108ad8.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/auth/lost-password-c58d81dfdade33cebe6f.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/auth/register-853981e1d8b93dcfa3a0.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/auth/reset-8b458359a05293a5021e.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/dashboard-634beb09778df9d50b4b.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/e/%5Buuid%5D-76dcbfc36bc76cd6e1d0.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/index-83388086cb355393557c.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/pages/profile-743568128a6e49b6997a.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/polyfills-a54b4f32bdc1ef890ddd.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/chunks/webpack-6d72c6ed51d58793f029.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/isNRsH7Sfr7sSpqaevhtN/_buildManifest.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/_next/static/isNRsH7Sfr7sSpqaevhtN/_ssgManifest.js",revision:"isNRsH7Sfr7sSpqaevhtN"},{url:"/assets/Caroster_Octree_Social.jpg",revision:"563fc10a4ec83e735943c5f67d417a6e"},{url:"/assets/android-chrome-192x192.png",revision:"b288769d936ad5f9a87944e027d0096c"},{url:"/assets/android-chrome-512x512.png",revision:"c789c009674fc4a2087a8b71c24a12b7"},{url:"/assets/apple-touch-icon.png",revision:"573a4bc22886d3ef3f6c3aa0eab64d44"},{url:"/assets/favicon-16x16.png",revision:"9f98c22a36ec0001995797d29a7583b1"},{url:"/assets/favicon-32x32.png",revision:"562ff70a6694a29302644d4f85b2e920"},{url:"/assets/favicon.ico",revision:"45004f0a61722a526ca688bddc4955c4"},{url:"/assets/google-icon.svg",revision:"81ad048ed858673aaca6cc2227076b8a"},{url:"/assets/icon.png",revision:"ac122f40fd4c9fd7f1831b0dd406c950"},{url:"/assets/logo.png",revision:"d685d6b49c3aedcf4819d5cbbc873d60"},{url:"/assets/logo.svg",revision:"ac6bdc2dc62feb11a5bc8b0ad3aca84e"},{url:"/assets/site.webmanifest",revision:"053100cb84a50d2ae7f5492f7dd7f25e"},{url:"/favicon.ico",revision:"8eb6dd187ac1c4e26f8df8062bb42e09"},{url:"/manifest.json",revision:"e76480838d8eb8908456941dcb59275e"}],{ignoreURLParametersMatching:[]}),s.cleanupOutdatedCaches(),s.registerRoute("/",new s.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:s,response:e,event:a,state:t})=>e&&"opaqueredirect"===e.type?new Response(e.body,{status:200,statusText:"OK",headers:e.headers}):e}]}),"GET"),s.registerRoute(/^https:\/\/fonts\.(?:googleapis|gstatic)\.com\/.*/i,new s.CacheFirst({cacheName:"google-fonts",plugins:[new s.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new s.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new s.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new s.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new s.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\/_next\/image\?url=.+$/i,new s.StaleWhileRevalidate({cacheName:"next-image",plugins:[new s.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\.(?:mp3|mp4)$/i,new s.StaleWhileRevalidate({cacheName:"static-media-assets",plugins:[new s.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\.(?:js)$/i,new s.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new s.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\.(?:css|less)$/i,new s.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new s.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new s.StaleWhileRevalidate({cacheName:"next-data",plugins:[new s.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute(/\.(?:json|xml|csv)$/i,new s.NetworkFirst({cacheName:"static-data-assets",plugins:[new s.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute((({url:s})=>{if(!(self.origin===s.origin))return!1;const e=s.pathname;return!e.startsWith("/api/auth/")&&!!e.startsWith("/api/")}),new s.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new s.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET"),s.registerRoute((({url:s})=>{if(!(self.origin===s.origin))return!1;return!s.pathname.startsWith("/api/")}),new s.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new s.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400,purgeOnQuotaError:!0})]}),"GET")}));