distraction.party/priv/static/sw.js

3 lines
63 KiB
JavaScript
Raw Normal View History

2018-08-12 13:29:30 +00:00
var __wpo = {"assets":{"main":["/packs/base_polyfills.js","/packs/extra_polyfills.js","/packs/features/compose.js","/packs/modals/onboarding_modal.js","/packs/emoji_picker.js","/packs/features/notifications.js","/packs/features/account_timeline.js","/packs/features/home_timeline.js","/packs/features/public_timeline.js","/packs/features/community_timeline.js","/packs/features/direct_timeline.js","/packs/features/pinned_statuses.js","/packs/features/domain_blocks.js","/packs/features/following.js","/packs/features/followers.js","/packs/features/favourited_statuses.js","/packs/features/list_timeline.js","/packs/features/account_gallery.js","/packs/features/hashtag_timeline.js","/packs/features/status.js","/packs/features/lists.js","/packs/modals/report_modal.js","/packs/features/getting_started.js","/packs/features/follow_requests.js","/packs/features/mutes.js","/packs/features/blocks.js","/packs/features/reblogs.js","/packs/features/favourites.js","/packs/features/keyboard_shortcuts.js","/packs/modals/mute_modal.js","/packs/features/generic_not_found.js","/packs/features/list_editor.js","/packs/modals/embed_modal.js","/packs/status/media_gallery.js","/packs/containers/media_container.js","/packs/share.js","/packs/application.js","/packs/about.js","/packs/mailer.js","/packs/mastodon-light.js","/packs/contrast.js","/packs/default.js","/packs/public.js","/packs/admin.js","/packs/common.js","/packs/common.css","/packs/mailer.css","/packs/default.css","/packs/contrast.css","/packs/mastodon-light.css","/packs/manifest.json"],"additional":["/emoji/1f602.svg","/emoji/sheet_10.png"],"optional":["/packs/locale_zh-TW.js","/packs/locale_zh-HK.js","/packs/locale_zh-CN.js","/packs/locale_uk.js","/packs/locale_tr.js","/packs/locale_th.js","/packs/locale_te.js","/packs/locale_sv.js","/packs/locale_sr.js","/packs/locale_sr-Latn.js","/packs/locale_sl.js","/packs/locale_sk.js","/packs/locale_ru.js","/packs/locale_pt.js","/packs/locale_pt-BR.js","/packs/locale_pl.js","/packs/locale_oc.js","/packs/locale_no.js","/packs/locale_nl.js","/packs/locale_ko.js","/packs/locale_ja.js","/packs/locale_it.js","/packs/locale_io.js","/packs/locale_id.js","/packs/locale_hy.js","/packs/locale_hu.js","/packs/locale_hr.js","/packs/locale_he.js","/packs/locale_gl.js","/packs/locale_fr.js","/packs/locale_fi.js","/packs/locale_fa.js","/packs/locale_eu.js","/packs/locale_es.js","/packs/locale_eo.js","/packs/locale_en.js","/packs/locale_el.js","/packs/locale_de.js","/packs/locale_co.js","/packs/locale_ca.js","/packs/locale_bg.js","/packs/locale_ar.js","/packs/roboto-italic-webfont-50efdad8c62f5f279e3f4f1f63a4f9bc.woff2","/packs/roboto-bold-webfont-f633cb5c651ba4d50791e1adf55d3c18.woff2","/packs/roboto-medium-webfont-69c55fc2fe77d38934ea98dc31642ce6.woff2","/packs/roboto-regular-webfont-3ec24f953ed5e859a6402cb3c030ea8b.woff2","/packs/fontawesome-webfont-af7ae505a9eed503f8b8e6982036873e.woff2","/packs/robotomono-regular-webfont-6c1ce30b90ee993b22618ec489585594.woff2","/packs/Montserrat-Regular-080422d4c1328f3407818d25c86cce51.woff2","/packs/void-65dfe5bd31335a5b308d36964d320574.png","/packs/reticle-7d7ce959271e5ff1193fb32cff90ea56.png","/packs/icon_cached-98a757f1d9e93652742be43c22f46287.png","/packs/icon_done-12b87c12f915597dccbd2ca4d7167ba4.png","/packs/icon_email-738c89662d6640f5e6539151023d049a.png","/packs/icon_file_download-e5c29678f3a639e1e62374911d85e1d0.png","/packs/icon_grade-3ec67253b37908d2ab783f7225f20682.png","/packs/icon_lock_open-0bfd71a52eb3f34934edd59088b559fb.png","/packs/icon_person_add-e2c6b660f6e1c95785d8d2bfa7a823af.png","/packs/icon_reply-4f6ada7a0b886b084706a484753a0ff0.png","/packs/logo_full-5c51cffe1fcb8225ae02400d6a7e7077.png","/packs/logo_transparent-6f79eeb2c38ec2d12ed4d978322457d6.png","/packs/icon_cached-108e30d96e1d5152be7fe2978bcdfe14.svg","/packs/icon_done-dba357bfbba455428787fefc655ce120.svg","/packs/icon_email-1346985c7aaceb601b0d4257133254f4.svg","/packs/icon_file_download-4b5c054e76b0df3cbbc851854cd10c3c.svg","/packs/icon_grade-8e81b8e88c2b5834347a2a226c65d440.svg","/packs/icon_lock_open-c9627928caaaa505ac7de2a64bd065ec.svg","/p
2017-11-12 13:23:05 +00:00
2018-08-12 13:29:30 +00:00
!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/packs/",e(e.s=2)}([function(t,e,n){var o=n(10),i=o.Symbol;t.exports=i},function(t,e,n){"use strict";function o(t){var e,n,o,a,r=Array.prototype.slice.call(arguments,1);for(e=0,n=r.length;e<n;e+=1)if(o=r[e])for(a in o)i.call(o,a)&&(t[a]=o[a]);return t}e.extend=o;var i=Object.prototype.hasOwnProperty;e.hop=i},function(t,e,n){"use strict";function o(t,e){return caches.match(t,{cacheName:e}).then(function(n){return r()?n:u(n).then(function(n){return caches.open(e).then(function(e){return e.put(t,n)}).then(function(){return n})})}).catch(function(){})}function i(t,e){return t+(-1!==t.indexOf("?")?"&":"?")+"__uncache="+encodeURIComponent(e)}function a(t){return"navigate"===t.mode||t.headers.get("Upgrade-Insecure-Requests")||-1!==(t.headers.get("Accept")||"").indexOf("text/html")}function r(t){return!t||!t.redirected||!t.ok||"opaqueredirect"===t.type}function u(t){return r(t)?Promise.resolve(t):("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status})})}function s(t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},{})}function c(t,e){e.forEach(function(t){})}if(function(){var t=ExtendableEvent.prototype.waitUntil,e=FetchEvent.prototype.respondWith,n=new WeakMap;ExtendableEvent.prototype.waitUntil=function(e){var o=this,i=n.get(o);return i?void i.push(Promise.resolve(e)):(i=[Promise.resolve(e)],n.set(o,i),t.call(o,Promise.resolve().then(function t(){var e=i.length;return Promise.all(i.map(function(t){return t.catch(function(){})})).then(function(){return i.length!=e?t():(n.delete(o),Promise.all(i))})})))},FetchEvent.prototype.respondWith=function(t){return this.waitUntil(t),e.call(this,t)}}(),void 0===f)var f=!1;!function(t,e){function n(){if(!k.additional.length)return Promise.resolve();var t=void 0;return t="changed"===j?f("additional"):r("additional"),t.catch(function(t){})}function r(e){var n=k[e];return caches.open(S).then(function(e){return g(e,n,{bust:t.version,request:t.prefetchRequest})}).then(function(){c("Cached assets: "+e,n)}).catch(function(t){throw t})}function f(e){return m().then(function(n){if(!n)return r(e);var o=n[0],i=n[1],a=n[2],u=a.hashmap,s=a.version;if(!a.hashmap||s===t.version)return r(e);var f=Object.keys(u).map(function(t){return u[t]}),l=i.map(function(t){var e=new URL(t.url);return e.search="",e.hash="",e.toString()}),m=k[e],p=[],d=m.filter(function(t){return-1===l.indexOf(t)||-1===f.indexOf(t)});Object.keys(P).forEach(function(t){var e=P[t];if(-1!==m.indexOf(e)&&-1===d.indexOf(e)&&-1===p.indexOf(e)){var n=u[t];n&&-1!==l.indexOf(n)?p.push([n,e]):d.push(e)}}),c("Changed assets: "+e,d),c("Moved assets: "+e,p);var h=Promise.all(p.map(function(t){return o.match(t[0]).then(function(e){return[t[1],e]})}));return caches.open(S).then(function(e){var n=h.then(function(t){return Promise.all(t.map(function(t){return e.put(t[0],t[1])}))});return Promise.all([n,g(e,d,{bust:t.version,request:t.prefetchRequest})])})})}function l(){return caches.keys().then(function(t){var e=t.map(function(t){if(0===t.indexOf(A)&&0!==t.indexOf(S))return caches.delete(t)});return Promise.all(e)})}function m(){return caches.keys().then(function(t){for(var e=t.length,n=void 0;e--&&(n=t[e],0!==n.indexOf(A)););if(n){var o=void 0;return caches.open(n).then(function(t){return o=t,t.match(new URL(R,location).toString())}).then(function(t){if(t)return Promise.all([o,o.keys(),t.json()])})}})}function p(){return caches.open(S).then(function(e){var n=new Response(JSON.stringify({version:t.version,hashmap:P}));return e.put(new URL(R,location).toString(),n)})}function d(t,e,n){return o(n,S).then(function(o){return o||fetch(t.r