forked from AkkomaGang/akkoma
4 lines
No EOL
11 KiB
JavaScript
4 lines
No EOL
11 KiB
JavaScript
var serviceWorkerOption = {"assets":["/static/fontello.1591965453669.css","/static/font/fontello.1591965453669.eot","/static/font/fontello.1591965453669.svg","/static/font/fontello.1591965453669.ttf","/static/font/fontello.1591965453669.woff","/static/font/fontello.1591965453669.woff2","/static/img/nsfw.74818f9.png","/static/css/app.493b9b5acee37ba97824.css","/static/js/app.99a96ef603f838cbdb04.js","/static/js/vendors~app.edec75f9af718d3a2ed0.js","/static/css/2.0778a6a864a1307a6c41.css","/static/js/2.b82a250abca7d23f22ee.js","/static/css/3.b2603a50868c68a1c192.css","/static/js/3.4b920c7d72743cb791a2.js","/static/js/4.b715418dce7a13ffb2a0.js","/static/js/5.8a3d39f40d1e5ff709d9.js","/static/js/6.f1998a70b19408b9126e.js","/static/js/7.e041705e0bd83bf17bdb.js","/static/js/8.89629564ba7d789bb197.js","/static/js/9.77b2349e110a4e9bcab7.js","/static/js/10.eb579c63a493a46aaf8d.js","/static/js/11.ae4355255af4df8a9dac.js","/static/js/12.eb920d79fbfca2e6d8f1.js","/static/js/13.c39361e144a5455a4b7a.js","/static/js/14.95bac7bc6ca8019f02e2.js","/static/js/15.2767e04f12eff8256efe.js","/static/js/16.c963c60f9a8a633b2abb.js","/static/js/17.8bb64f3ca0a605684625.js","/static/js/18.5e0262d7363cf4ef59bf.js","/static/js/19.0099bc6bb726cd98413d.js","/static/js/20.d1907a5a19f73c48cc32.js","/static/js/21.8abecb1fbcf18d0435a9.js","/static/js/22.c996d7b0ccc8f8830236.js","/static/js/23.9fec419918c1e00399b4.js","/static/js/24.af41d44b264985f912ce.js","/static/js/25.332e2c15260534d8d44a.js","/static/js/26.e836cc97a55020d716ca.js","/static/js/27.988682e082704e2f8bc1.js","/static/js/28.5fdb36abf78a5d077d6a.js","/static/js/29.e6db74a4655c69a6c236.js","/static/js/30.a3d2d0a29c308f62643f.js"]};
|
|
|
|
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=2)}([function(t,e,r){t.exports=r(1)},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",v={};function d(){}function y(){}function g(){}var w={};w[i]=function(){return this};var m=Object.getPrototypeOf,b=m&&m(m(k([])));b&&b!==r&&n.call(b,i)&&(w=b);var x=g.prototype=d.prototype=Object.create(w);function L(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(r,o){function i(){return new Promise(function(e,i){!function e(r,o,i,a){var c=s(t[r],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){u.value=t,i(u)},function(t){return e("throw",t,i,a)})}a(c.arg)}(r,o,e,i)})}return e=e?e.then(i,i):i()}}function _(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return y.prototype=x.constructor=g,g.constructor=y,g[c]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},L(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,r,n,o){var i=new E(u(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},L(x),x[c]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";r.r(e);var n=r(0),o=r.n(n),i=function(t){return new Promise(function(e,r){t.onerror=function(t){return r(t)},t.onsuccess=function(t){return e(t.target.result)}})},a=function(t,e){var r=window.indexedDB.open(t,e);return r.onupgradeneeded=function(t){t.target.result.createObjectStore("keyvaluepairs")},i(r)},c=function(){var t,e,r,n,c,u=arguments;return o.a.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:"storage_2",e=u.length>1&&void 0!==u[1]?u[1]:1,s.prev=2,s.next=5,o.a.awrap(a(t,e));case 5:return r=s.sent,n={getItem:function(t){var e,n;return o.a.async(function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.transaction(["keyvaluepairs"]).objectStore("keyvaluepairs").get(t),n=i(e),o.abrupt("return",n);case 3:case"end":return o.stop()}})},setItem:function(t,e){var n;return o.a.async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=r.transaction(["keyvaluepairs"],"readwrite").objectStore("keyvaluepairs").put(e,t),o.abrupt("return",i(n));case 2:case"end":return o.stop()}})}},s.abrupt("return",n);case 10:return s.prev=10,s.t0=s.catch(2),console.log("Can't get indexeddb going, let's use localstorage"),c={getItem:function(e){var r;return o.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:return r=window.localStorage.getItem("".concat(t,"/").concat(e)),n.prev=1,n.abrupt("return",JSON.parse(r));case 5:return n.prev=5,n.t0=n.catch(1),n.abrupt("return",void 0);case 8:case"end":return n.stop()}},null,null,[[1,5]])},setItem:function(e,r){var n;return o.a.async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=JSON.stringify(r),o.abrupt("return",window.localStorage.setItem("".concat(t,"/").concat(e),n));case 2:case"end":return o.stop()}})}},s.abrupt("return",c);case 15:case"end":return s.stop()}},null,null,[[2,10]])};function u(){return clients.matchAll({includeUncontrolled:!0}).then(function(t){return t.filter(function(t){return"window"===t.type})})}self.addEventListener("push",function(t){var e;t.data&&t.waitUntil(o.a.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.a.awrap(c());case 2:return e=t.sent,t.abrupt("return",e.getItem("vuex-lz").then(function(t){return t.config.webPushNotifications}));case 4:case"end":return t.stop()}}).then(function(e){return e&&u().then(function(e){var r=t.data.json();if(0===e.length)return self.registration.showNotification(r.title,r)})}))}),self.addEventListener("notificationclick",function(t){t.notification.close(),t.waitUntil(u().then(function(t){for(var e=0;e<t.length;e++){var r=t[e];if("/"===r.url&&"focus"in r)return r.focus()}if(clients.openWindow)return clients.openWindow("/")}))})}]);
|
|
//# sourceMappingURL=sw-pleroma.js.map
|