-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsw.js
3 lines (2 loc) · 18.1 KB
/
sw.js
1
2
3
var __wpo = {"assets":{"main":["/4465ef46f616032afa20.worker.js","/static/fonts/RobotoMono-Bold.819f3b2.woff","/static/fonts/RobotoMono-Regular.0b6a547.woff","/static/fonts/lato-black-italic.798eafd.woff","/static/fonts/lato-black.f80bda6.woff","/static/fonts/lato-normal-italic.f28f2d6.woff","/static/fonts/lato-normal.27bd77b.woff","/static/js/vendor.e8b892ad62cda3021ea0.js","/static/js/app.b50b72b38cd6de93b744.js","/static/js/manifest.5e2c0f2293c0b22ca492.js","/static/css/app.2f2ba43761ed72e36bd6aa8532c9edaa.css","/static/landing/discussion.png","/static/landing/favicon.ico","/static/landing/gfm.png","/static/landing/katex.gif","/static/landing/mermaid.gif","/static/landing/navigation-bar.png","/static/landing/logo.svg","/static/landing/providers.png","/static/landing/scroll-sync.gif","/static/landing/syntax-highlighting.gif","/static/landing/smart-layout.png","/static/landing/workspace.png","/2273e3d8ad9264b7daa5bdbf8e6b47f8.png","/4f0283c6ce28e888000e978e537a6a56.png","/static/sitemap.xml","/a6137456ed160d7606981aa57c559898.png","/blocks_helper.js","/favicon.ico","/calc_handlers.js","/fonts.css","/fonts/Asap-Bold.eot","/fonts/Asap-Bold.ttf","/fonts/Asap-Bold.woff","/fonts/Asap-Bold.svg","/fonts/Asap-Bold.woff2","/fonts/Asap-BoldItalic.ttf","/fonts/Asap-Medium.eot","/fonts/Asap-Italic.ttf","/fonts/Asap-Medium.svg","/fonts/Asap-Medium.ttf","/fonts/Asap-Medium.woff2","/fonts/Asap-Medium.woff","/fonts/Asap-Regular.eot","/fonts/Asap-MediumItalic.ttf","/fonts/Asap-Regular.ttf","/fonts/Asap-Regular.svg","/fonts/Asap-Regular.woff","/fonts/Asap-Regular.woff2","/fonts/Asap-SemiBold.ttf","/fonts/Asap-SemiBoldItalic.ttf","/fonts/UbuntuMono-Bold.eot","/fonts/UbuntuMono-Bold.svg","/fonts/UbuntuMono-Bold.ttf","/fonts/UbuntuMono-Bold.woff","/fonts/UbuntuMono-Bold.woff2","/fonts/UbuntuMono-BoldItalic.eot","/fonts/UbuntuMono-BoldItalic.ttf","/fonts/UbuntuMono-BoldItalic.woff","/fonts/UbuntuMono-BoldItalic.svg","/fonts/UbuntuMono-BoldItalic.woff2","/fonts/UbuntuMono-Regular.eot","/fonts/UbuntuMono-Italic.ttf","/fonts/UbuntuMono-Regular.svg","/fonts/UbuntuMono-Regular.ttf","/fonts/UbuntuMono-Regular.woff","/fonts/UbuntuMono-Regular.woff2","/inline_helper.js","/marker-icon-2x.png","/marker-shadow.png","/marker-icon.png","/lite.render.js","/smartdown_p5DOM.js","/smartdown_ldf.js","/smartdown_stdlib.js","/smartdown_vendors~p5DOM~p5Sound~p5js.js","/smartdown_vendors~p5Sound.js","/smartdown_vendors~stdlib.js","/smartdown.css","/smartdown_vendors~three.js","/smartdown_vendors~stdlib-sotu.js","/smartdown.js","/src/esprima_dummy.js","/src/index.js","/viz.js","/starter.js","/xypic.js","/","/app","/oauth2/callback"],"additional":[],"optional":[]},"externals":["/","/app","/oauth2/callback"],"hashesMap":{"ce0c093e018d74a4bde11c18dbd7b86241db4671":"/4465ef46f616032afa20.worker.js","35ef657adc06cd0701eca980feb69596290bed2a":"/static/fonts/RobotoMono-Bold.819f3b2.woff","ea7cd3212cbf682fd1452323d607a88a9b0e155a":"/static/fonts/RobotoMono-Regular.0b6a547.woff","be2aefe84e2f3580c123461d02a30e63d58c1406":"/static/fonts/lato-black-italic.798eafd.woff","b7a7c103ea4750947483255d9e2561ab421cce55":"/static/fonts/lato-black.f80bda6.woff","4d9ca4395224374f368de41c6b79f048645fe484":"/static/fonts/lato-normal-italic.f28f2d6.woff","331448c1f46d14dd6f1dc84b13cae72f8078384b":"/static/fonts/lato-normal.27bd77b.woff","eab57e15e71d394541f2cd92d4b52fc1f499482d":"/static/js/vendor.e8b892ad62cda3021ea0.js","770ff6895ede6504952ea19608d3b09d5e837495":"/static/js/app.b50b72b38cd6de93b744.js","aab2dfa62f35e9223523a663eb55dc433bfda43a":"/static/js/manifest.5e2c0f2293c0b22ca492.js","41bf7506c00655979b819677c71ab508f372cc48":"/static/css/app.2f2ba43761ed72e36bd6aa8532c9edaa.css","5312cb51b884ad486fdcb83328e72a9f68b0a48b":"/","d503c5fca0e208de82790c597047b307267f8749":"/static/landing/discussion.png","b3655c61343c618a3b89cfdedb05658e3a6452e8":"/static/landing/favicon.ico","a1b44b5fe2bb3b1cc169ddda14fb4216d9a97645":"/static/landing/gfm.png","5dc6978bcc760f81f1f67b3ae3cfcc5b893fe6cd":"/static/landing/katex.gif","39c857f9fd51ca66d7517eca44425bf1509cb2c9":"/static/landing/mermaid.gif","371b3bd54840cd2eb2fe9a6c935200ee98a3fc61":"/static/landing/navigation-bar.png","ef2c8fd299bae098b332691d9356e908de37ea85":"/static/landing/logo.svg","daa28f44d95f932e959eec8e72ebba229b05b00d":"/static/landing/providers.png","d4d6034e16a946e50e69f529cf2e56a95c92ff1a":"/static/landing/scroll-sync.gif","b31c755b6a1067cbbd3ae951f3ecb6d5976c3ed2":"/static/landing/syntax-highlighting.gif","2cf112e0911d0f9d6f901b579cb19d5afb23ed70":"/static/landing/smart-layout.png","09c2dbe538a406c94647f0fa04d5036c358339a7":"/static/landing/workspace.png","60a90bcbb2b42b7ddb4556db94eb7c1084b0e5da":"/marker-icon.png","152a162333e46d24f9d89f566312fc0c64011dee":"/4f0283c6ce28e888000e978e537a6a56.png","027d19048efd226857026ddff430f4b97ee538e6":"/static/sitemap.xml","c9e7528e491a39232ba24a2706c6c739d6fb0f06":"/a6137456ed160d7606981aa57c559898.png","2a67b9273f6682b8e9e34c8290b264d6eb9bb577":"/blocks_helper.js","160822189bd18d3a1abf0895809c71cd9944ae3d":"/favicon.ico","987da441a48efd1e4dbc7d456e7d4d564888cc64":"/calc_handlers.js","8a3cb2ad8b3040c3108f642546524eb33453e81f":"/fonts.css","b5d7bf4ae95623c2179fe70b1f04afc2021c1c6c":"/fonts/Asap-Bold.eot","fe4d22f1550a8ab52df7126164c28b5c7b12d876":"/fonts/Asap-Bold.ttf","4a7ef15f78164d645e2e4a3118af3a38e5f98bd1":"/fonts/Asap-Bold.woff","bbcc530c3a5b03f49dfcc8516e819d8cf61a169e":"/fonts/Asap-Bold.svg","8b8e3adbdadf438d587cee6340412edf6719e238":"/fonts/Asap-Bold.woff2","9ccb20eabf452179f447a89c6c71e710799ecadb":"/fonts/Asap-BoldItalic.ttf","2953464a5b2fb77796dfddd5243b0049428e35f0":"/fonts/Asap-Medium.eot","48c9e8aef38a46b28864971c9c1070fc9354fa8c":"/fonts/Asap-Italic.ttf","d61bd20ce5cf7a954d5407d983ded27b2acc3c0e":"/fonts/Asap-Medium.svg","f4961de662a0eb9ee69f1925f3636795ff6ed121":"/fonts/Asap-Medium.ttf","18f27f5e2f1ec2f95a0d5036a427cef27b686e2f":"/fonts/Asap-Medium.woff2","2c63092b787ad53f273e4c6cfd7b9dcd8485993d":"/fonts/Asap-Medium.woff","5df6dc7078cfbb6d4914e03502d169ea5b77dfdd":"/fonts/Asap-Regular.eot","3bf94c1311625d8642ffc49f4ae8d8c101a87a89":"/fonts/Asap-MediumItalic.ttf","f9b4e1a7e101cc291e6272b0eb39fcda7f6bf5ab":"/fonts/Asap-Regular.ttf","478bba7ea85c8e09869b3ddeeb52de67e3d01335":"/fonts/Asap-Regular.svg","cf3e948778f327f4e2637e89d87a627312f3d8ec":"/fonts/Asap-Regular.woff","26876118ad54fecc7cc449254d37d1e1468a9211":"/fonts/Asap-Regular.woff2","b3238403f4d1e5b31beee075e463d2beba94934d":"/fonts/Asap-SemiBold.ttf","8109b208c33a672074ac9954cb46b94e34be2c28":"/fonts/Asap-SemiBoldItalic.ttf","a787e88900ee6f7a0d3127e2239593c3fee9c0d9":"/fonts/UbuntuMono-Bold.eot","0bbf08c3b3648270c7794120198825386c5d2e27":"/fonts/UbuntuMono-Bold.svg","c015eb3a0edc4e89d0400d392240411a61555d4d":"/fonts/UbuntuMono-Bold.ttf","4d8a419028cf09c6bdfed482700be47ab4aa1c43":"/fonts/UbuntuMono-Bold.woff","349ca59614e1f6fabce966dda99814ae2ce0a276":"/fonts/UbuntuMono-Bold.woff2","fe869456be2c4f934a6d8f853fb20af780449f44":"/fonts/UbuntuMono-BoldItalic.eot","a654fed6c90d7bf529e97470bfcedeb50e96620e":"/fonts/UbuntuMono-BoldItalic.ttf","212139f9f874f707ecc87b72e31b8936bdaf56f1":"/fonts/UbuntuMono-BoldItalic.woff","a06a6c1f6816326993a885d4a27adf3d3c3dc64c":"/fonts/UbuntuMono-BoldItalic.svg","04181661da05855e1823870032c59e2633521ccf":"/fonts/UbuntuMono-BoldItalic.woff2","b4a112903d7d091206d2fa400d0d92c6421bfe26":"/fonts/UbuntuMono-Regular.eot","e4f50e05294d455a946cb8682e210e68fdcf5cb3":"/fonts/UbuntuMono-Italic.ttf","242dd17a9c7f5e06ebc766f2c27790b303aa8c96":"/fonts/UbuntuMono-Regular.svg","da1766ec2669b7e14134b1c9420bcadda6205a1f":"/fonts/UbuntuMono-Regular.ttf","2844c9a1ed946e22f3b914bc0eb31ce2b484c5c1":"/fonts/UbuntuMono-Regular.woff","1248f62320ab58c922f09d2cc6495332164928e9":"/fonts/UbuntuMono-Regular.woff2","712a26e6992f850be4fac313573c31d963a3dc97":"/inline_helper.js","cf3a536596b1f58e0ac805404183c8e6d6bdacb5":"/marker-icon-2x.png","7b6a8df63930381e96604e705168d0527d6b82bc":"/marker-shadow.png","b0200ea897be784d765290c3cb6163156afa2d3f":"/lite.render.js","d9ac923aa9887fe749893c4fe7b759c604497af8":"/smartdown_p5DOM.js","4b950a2384868f74b577a5cafb73d89007bf4c1f":"/smartdown_ldf.js","4855fbd9d40bcf625bec8403c8b39320825e4922":"/smartdown_stdlib.js","d382ef29d009c94f8aad57bdad548c7ae04c65f1":"/smartdown_vendors~p5DOM~p5Sound~p5js.js","2abe0935990cd97d0f9dd0f974e7b512a28a0195":"/smartdown_vendors~p5Sound.js","961b5f277305426996a4cb33ea54caaf65025619":"/smartdown_vendors~stdlib.js","abcefe697fa40966a6929f36855e57a3d2fe2778":"/smartdown.css","84c8e7ee6fa6c7f5ae8a6a26711e65ea657ba3d2":"/smartdown_vendors~three.js","911dd1f211cd1ee59043e4f15b2125ee18969db1":"/smartdown_vendors~stdlib-sotu.js","18615685dcae82b855bc2c50bce640faac943b83":"/smartdown.js","1b5f59f6491c5dba963e452fd78a2c6421f7308b":"/src/esprima_dummy.js","294083cde40c8933f730b13dc0fb3db985e9bbed":"/src/index.js","5f824bee00f965038d7776d4c986b3c31f30b9b4":"/viz.js","580e68a18324ce3b626ea8d4436ac366750e81dd":"/starter.js","a1342e8f4669a5243819badbe8a62fae61be7dc7":"/xypic.js"},"strategy":"changed","responseStrategy":"cache-first","version":"2018-7-9 08:47:59","name":"webpack-offline","pluginVersion":"4.9.0","relativePaths":false};
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="/",n(n.s=1)}([function(e,n){},function(e,n,t){"use strict";function r(e,n){return caches.match(e,{cacheName:n}).then(function(t){return a()?t:c(t).then(function(t){return caches.open(n).then(function(n){return n.put(e,t)}).then(function(){return t})})}).catch(function(){})}function o(e,n){return e+(-1!==e.indexOf("?")?"&":"?")+"__uncache="+encodeURIComponent(n)}function i(e){return"navigate"===e.mode||e.headers.get("Upgrade-Insecure-Requests")||-1!==(e.headers.get("Accept")||"").indexOf("text/html")}function a(e){return!e||!e.redirected||!e.ok||"opaqueredirect"===e.type}function c(e){return a(e)?Promise.resolve(e):("body"in e?Promise.resolve(e.body):e.blob()).then(function(n){return new Response(n,{headers:e.headers,status:e.status})})}function u(e){return Object.keys(e).reduce(function(n,t){return n[t]=e[t],n},{})}function s(e,n){console.groupCollapsed("[SW]:",e),n.forEach(function(e){console.log("Asset:",e)}),console.groupEnd()}if(function(){var e=ExtendableEvent.prototype.waitUntil,n=FetchEvent.prototype.respondWith,t=new WeakMap;ExtendableEvent.prototype.waitUntil=function(n){var r=this,o=t.get(r);return o?void o.push(Promise.resolve(n)):(o=[Promise.resolve(n)],t.set(r,o),e.call(r,Promise.resolve().then(function e(){var n=o.length;return Promise.all(o.map(function(e){return e.catch(function(){})})).then(function(){return o.length!=n?e():(t.delete(r),Promise.all(o))})})))},FetchEvent.prototype.respondWith=function(e){return this.waitUntil(e),n.call(this,e)}}(),void 0===f)var f=!1;!function(e,n){function t(){if(!E.additional.length)return Promise.resolve();f&&console.log("[SW]:","Caching additional");var e=void 0;return e="changed"===W?l("additional"):a("additional"),e.catch(function(e){console.error("[SW]:","Cache section `additional` failed to load")})}function a(n){var t=E[n];return caches.open(A).then(function(n){return O(n,t,{bust:e.version,request:e.prefetchRequest})}).then(function(){s("Cached assets: "+n,t)}).catch(function(e){throw console.error(e),e})}function l(n){return d().then(function(t){if(!t)return a(n);var r=t[0],o=t[1],i=t[2],c=i.hashmap,u=i.version;if(!i.hashmap||u===e.version)return a(n);var f=Object.keys(c).map(function(e){return c[e]}),l=o.map(function(e){var n=new URL(e.url);return n.search="",n.hash="",n.toString()}),h=E[n],d=[],p=h.filter(function(e){return-1===l.indexOf(e)||-1===f.indexOf(e)});Object.keys(_).forEach(function(e){var n=_[e];if(-1!==h.indexOf(n)&&-1===p.indexOf(n)&&-1===d.indexOf(n)){var t=c[e];t&&-1!==l.indexOf(t)?d.push([t,n]):p.push(n)}}),s("Changed assets: "+n,p),s("Moved assets: "+n,d);var v=Promise.all(d.map(function(e){return r.match(e[0]).then(function(n){return[e[1],n]})}));return caches.open(A).then(function(n){var t=v.then(function(e){return Promise.all(e.map(function(e){return n.put(e[0],e[1])}))});return Promise.all([t,O(n,p,{bust:e.version,request:e.prefetchRequest})])})})}function h(){return caches.keys().then(function(e){var n=e.map(function(e){if(0===e.indexOf(M)&&0!==e.indexOf(A))return console.log("[SW]:","Delete cache:",e),caches.delete(e)});return Promise.all(n)})}function d(){return caches.keys().then(function(e){for(var n=e.length,t=void 0;n--&&(t=e[n],0!==t.indexOf(M)););if(t){var r=void 0;return caches.open(t).then(function(e){return r=e,e.match(new URL(T,location).toString())}).then(function(e){if(e)return Promise.all([r,r.keys(),e.json()])})}})}function p(){return caches.open(A).then(function(n){var t=new Response(JSON.stringify({version:e.version,hashmap:_}));return n.put(new URL(T,location).toString(),t)})}function v(e,n,t){return m(e),r(t,A).then(function(r){return r?(f&&console.log("[SW]:","URL ["+t+"]("+n+") from cache"),r):fetch(e.request).then(function(r){return r.ok?(f&&console.log("[SW]:","URL ["+n+"] from network"),t===n&&function(){var t=r.clone(),o=caches.open(A).then(function(e){return e.put(n,t)}).then(function(){console.log("[SW]:","Cache asset: "+n)});e.waitUntil(o)}(),r):(f&&console.log("[SW]:","URL ["+n+"] wrong response: ["+r.status+"] "+r.type),r)})})}function g(e,n,t){return P(e).then(function(e){if(e.ok)return f&&console.log("[SW]:","URL ["+n+"] from network"),e;throw new Error("Response is not ok")}).catch(function(){return f&&console.log("[SW]:","URL ["+n+"] from cache if possible"),r(t,A)})}function m(e){if(L&&"function"==typeof L.map&&e.preloadResponse&&"navigate"===e.request.mode){var n=L.map(new URL(e.request.url),e.request);n&&w(n,e)}}function w(e,n){var t=new URL(e,location),r=n.preloadResponse;J.set(r,{url:t,response:r});var o=function(){return J.has(r)},i=r.then(function(e){if(e&&o()){var n=e.clone();return caches.open(I).then(function(e){if(o())return e.put(t,n).then(function(){if(!o())return caches.open(I).then(function(e){return e.delete(t)})})})}});n.waitUntil(i)}function y(e){if(J){var n=void 0,t=void 0;return J.forEach(function(r,o){r.url.href===e.href&&(n=r.response,t=o)}),n?(J.delete(t),n):void 0}}function R(e){var n=new URL(e.request.url);if(self.registration.navigationPreload&&L&&L.test&&L.test(n,e.request)){var t=y(n),o=e.request;return t?(e.waitUntil(caches.open(I).then(function(e){return e.delete(o)})),t):r(o,I).then(function(n){return n&&e.waitUntil(caches.open(I).then(function(e){return e.delete(o)})),n||fetch(e.request)})}}function x(e){return e.catch(function(){}).then(function(e){var n=e&&e.ok,t=e&&"opaqueredirect"===e.type;return n||t&&!G?e:(f&&console.log("[SW]:","Loading navigation fallback ["+D+"] from cache"),r(D,A))})}function O(e,n,t){var r=!1!==t.allowLoaders,i=t&&t.bust,a=t.request||{credentials:"omit",mode:"cors"};return Promise.all(n.map(function(e){return i&&(e=o(e,i)),fetch(e,a).then(c)})).then(function(o){if(o.some(function(e){return!e.ok}))return Promise.reject(new Error("Wrong response status"));var i=[],a=o.map(function(t,o){return r&&i.push(U(n[o],t)),e.put(n[o],t)});return i.length?function(){var r=u(t);r.allowLoaders=!1;var o=a;a=Promise.all(i).then(function(t){var i=[].concat.apply([],t);return n.length&&(o=o.concat(O(e,i,r))),Promise.all(o)})}():a=Promise.all(a),a})}function U(e,n){var t=Object.keys(j).map(function(t){if(-1!==j[t].indexOf(e)&&b[t])return b[t](n.clone())}).filter(function(e){return!!e});return Promise.all(t).then(function(e){return[].concat.apply([],e)})}function k(e){var n=e.url,t=new URL(n),r=void 0;r=i(e)?"navigate":t.origin===location.origin?"same-origin":"cross-origin";for(var o=0;o<q.length;o++){var a=q[o];if(a&&(!a.requestTypes||-1!==a.requestTypes.indexOf(r))){var c=void 0;if((c="function"==typeof a.match?a.match(t,e):n.replace(a.match,a.to))&&c!==n)return c}}}function P(e){return e.preloadResponse&&!0===L?e.preloadResponse.then(function(n){return n||fetch(e.request)}):fetch(e.request)}var b=n.loaders,q=n.cacheMaps,L=n.navigationPreload,W=e.strategy,S=e.responseStrategy,E=e.assets,j=e.loaders||{},_=e.hashesMap,C=e.externals,M=e.name,F=e.version,A=M+":"+F,I=M+"$preload",T="__offline_webpack__data";!function(){Object.keys(E).forEach(function(e){E[e]=E[e].map(function(e){var n=new URL(e,location);return n.hash="",-1===C.indexOf(e)&&(n.search=""),n.toString()})}),Object.keys(j).forEach(function(e){j[e]=j[e].map(function(e){var n=new URL(e,location);return n.hash="",-1===C.indexOf(e)&&(n.search=""),n.toString()})}),_=Object.keys(_).reduce(function(e,n){var t=new URL(_[n],location);return t.search="",t.hash="",e[n]=t.toString(),e},{}),C=C.map(function(e){var n=new URL(e,location);return n.hash="",n.toString()})}();var N=[].concat(E.main,E.additional,E.optional),D=e.navigateFallbackURL,G=e.navigateFallbackForRedirects;self.addEventListener("install",function(e){console.log("[SW]:","Install event");var n=void 0;n="changed"===W?l("main"):a("main"),e.waitUntil(n)}),self.addEventListener("activate",function(e){console.log("[SW]:","Activate event");var n=t();n=n.then(p),n=n.then(h),n=n.then(function(){if(self.clients&&self.clients.claim)return self.clients.claim()}),L&&self.registration.navigationPreload&&(n=Promise.all([n,self.registration.navigationPreload.enable()])),e.waitUntil(n)}),self.addEventListener("fetch",function(e){var n=new URL(e.request.url);n.hash="";var t=n.toString();-1===C.indexOf(t)&&(n.search="",t=n.toString());var r="GET"===e.request.method,o=-1!==N.indexOf(t),a=t;if(!o){var c=k(e.request);c&&(a=c,o=!0)}if(o||!r){if(!o||!r)return void(n.origin!==location.origin&&-1!==navigator.userAgent.indexOf("Firefox/44.")&&e.respondWith(fetch(e.request)));var u=void 0;u="network-first"===S?g(e,t,a):v(e,t,a),D&&i(e.request)&&(u=x(u)),e.respondWith(u)}else{if(D&&i(e.request))return void e.respondWith(x(P(e)));if(!0===L)return void e.respondWith(P(e));if(L){var s=R(e);if(s)return void e.respondWith(s)}}}),self.addEventListener("message",function(e){var n=e.data;if(n)switch(n.action){case"skipWaiting":self.skipWaiting&&self.skipWaiting()}});var J=new Map}(__wpo,{loaders:{},cacheMaps:[],navigationPreload:!1}),e.exports=t(0)}]);