-
Notifications
You must be signed in to change notification settings - Fork 1
/
service-worker.js
1 lines (1 loc) · 4.45 KB
/
service-worker.js
1
"use strict";var precacheConfig=[["/shdbhyf/index.html","b14980b8156252bcddc212ab6e58f266"],["/shdbhyf/static/css/main.ef2de8e0.css","b42aa291ea339dec3754b0fe1cb6dfe4"],["/shdbhyf/static/js/main.105b966a.js","f4f1b070f2a4da91b0ee8a0b53f8493b"],["/shdbhyf/static/media/bet-box-pc.0d1da2a5.png","0d1da2a51fb13c0aa7fe4aae01f40b03"],["/shdbhyf/static/media/bet-box.3eae71a8.png","3eae71a8526e0ffbb74349b31b0b45c4"],["/shdbhyf/static/media/cup.a8f61f0f.gif","a8f61f0fae367d219a0545f094cd14da"],["/shdbhyf/static/media/cup.a9f86894.png","a9f86894eb153a6beca219c3b3631966"],["/shdbhyf/static/media/large-before.e52dab00.png","e52dab00354a6e43bc672a1513c771db"],["/shdbhyf/static/media/large-contract.8e3e368c.png","8e3e368c0f3edebef6f3e5f715753fd5"],["/shdbhyf/static/media/large-player.011ee221.png","011ee2218735594fc2f40763f88b327b"],["/shdbhyf/static/media/layout-bg-pc.25410e30.gif","25410e308d9bbce792290a7d71092e56"],["/shdbhyf/static/media/layout-bg.e65f1978.gif","e65f19784a4666e8a91506fcbdedb694"],["/shdbhyf/static/media/player-fail.4d46410e.png","4d46410e45c47db482e33aee0e63d4bf"],["/shdbhyf/static/media/player-win.3007cd8b.png","3007cd8bdba09f4c1a70f7e566fc0d89"],["/shdbhyf/static/media/reveal-large.b5aff805.png","b5aff805b3be5162ed7e725a852c237f"],["/shdbhyf/static/media/reveal-small.3207b845.png","3207b8450c4b7eeaf598b8618c21a94e"],["/shdbhyf/static/media/small-before.c4b2e6fd.png","c4b2e6fd9b5cb40f96d64b7fa231ba76"],["/shdbhyf/static/media/small-contract.c70a7c8e.png","c70a7c8e3420f1d2fb4c256cc405e401"],["/shdbhyf/static/media/small-player.25c866c1.png","25c866c1e56528424c28dd28e6239ecb"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var a=new URL(e);return"/"===a.pathname.slice(-1)&&(a.pathname+=t),a.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,a,n){var r=new URL(e);return n&&r.pathname.match(n)||(r.search+=(r.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(a)),r.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var a=new URL(t).pathname;return e.some(function(e){return a.match(e)})},stripIgnoredUrlParameters=function(e,a){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return a.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],a=e[1],n=new URL(t,self.location),r=createCacheKey(n,hashParamName,a,/\.\w{8}\./);return[n.toString(),r]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(n){return setOfCachedUrls(n).then(function(a){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!a.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return n.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var a=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!a.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,a=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),n="index.html";(e=urlsToCacheKeys.has(a))||(a=addDirectoryIndex(a,n),e=urlsToCacheKeys.has(a));var r="/shdbhyf/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(a=new URL(r,self.location).toString(),e=urlsToCacheKeys.has(a)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(a)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}});