1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-10-16 15:27:28 +00:00
steffoweb/docs/sw.js.map
2020-06-30 19:13:48 +02:00

1 line
No EOL
7.8 KiB
Text
Vendored

{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../node_modules/preact-cli/lib/lib/sw.js"],"names":["__webpack_require__","moduleId","installedModules","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","self","__precacheManifest","concat","isNav","event","request","workbox","routing","registerRoute","strategies","NetworkFirst","cacheName","core","cacheNames","precache","networkTimeoutSeconds","plugins","cacheableResponse","Plugin","statuses","precaching","precacheAndRoute","setCatchHandler","caches","match","getCacheKeyForURL","Response","error"],"mappings":"aAIE,SAASA,EAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,OAAOC,EAAiBD,GAAUE,QAGnC,IAAIC,EAASF,EAAiBD,GAAY,CACzCI,EAAGJ,EACHK,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQN,GAAUO,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,IAAID,EAAmB,GA4BvBF,EAAoBS,EAAIF,EAGxBP,EAAoBU,EAAIR,EAGxBF,EAAoBW,EAAI,SAASR,EAASS,EAAMC,GAC3Cb,EAAoBc,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEb,EAAoBmB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDtB,EAAoBuB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQtB,EAAoBsB,IAC/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n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"idKB\");\n","self.__precacheManifest = [].concat(self.__precacheManifest || []);\n\n/* global workbox */\n/** We are sure brotli is enabled for browsers supporting script type=module\n * so we do brotli support only for them.\n * We can do brolti support for other browsers but there is no good way of\n * feature detect the same at the time of pre-caching.\n */\nif (process.env.ENABLE_BROTLI && process.env.ES_BUILD) {\n\t// Alter the precache manifest to precache brotli files instead of gzip files.\n\tself.__precacheManifest = self.__precacheManifest.map(asset => {\n\t\tif (/\\.js$/.test(asset.url)) {\n\t\t\tasset.url = asset.url.replace(/\\.esm\\.js$/, '.esm.js.br');\n\t\t}\n\t\treturn asset;\n\t});\n\n\tclass BrotliRedirectPlugin {\n\t\t// Before saving the response in cache, we need to treat the headers.\n\t\tasync cacheWillUpdate({ response }) {\n\t\t\tconst clonedResponse = response.clone();\n\t\t\tif (/\\.js\\.br(\\?.*)?$/.test(clonedResponse.url)) {\n\t\t\t\tconst headers = new Headers(clonedResponse.headers);\n\t\t\t\theaders.set('content-type', 'application/javascript');\n\t\t\t\treturn new Response(await clonedResponse.text(), { headers });\n\t\t\t}\n\t\t\treturn response;\n\t\t}\n\t}\n\tworkbox.precaching.addPlugins([new BrotliRedirectPlugin()]);\n}\n\nconst precacheOptions = {};\nif (process.env.ENABLE_BROTLI) {\n\tprecacheOptions['urlManipulation'] = ({ url }) => {\n\t\tif (/\\.esm\\.js$/.test(url.href)) {\n\t\t\turl.href += '.br';\n\t\t}\n\t\treturn [url];\n\t};\n}\n\nconst isNav = event => event.request.mode === 'navigate';\n\n/**\n * Adding this before `precacheAndRoute` lets us handle all\n * the navigation requests even if they are in precache.\n */\nworkbox.routing.registerRoute(\n\t({ event }) => isNav(event),\n\tnew workbox.strategies.NetworkFirst({\n\t\t// this cache is plunged with every new service worker deploy so we dont need to care about purging the cache.\n\t\tcacheName: workbox.core.cacheNames.precache,\n\t\tnetworkTimeoutSeconds: 5, // if u dont start getting headers within 5 sec fallback to cache.\n\t\tplugins: [\n\t\t\tnew workbox.cacheableResponse.Plugin({\n\t\t\t\tstatuses: [200], // only cache valid responses, not opaque responses e.g. wifi portal.\n\t\t\t}),\n\t\t],\n\t})\n);\n\nworkbox.precaching.precacheAndRoute(self.__precacheManifest, precacheOptions);\n\nworkbox.routing.setCatchHandler(({ event }) => {\n\tif (isNav(event))\n\t\treturn caches.match(workbox.precaching.getCacheKeyForURL('/index.html'));\n\treturn Response.error();\n});\n"],"sourceRoot":""}