var __wpo = {"assets":{"main":[],"additional":[],"optional":[]},"externals":["/emoji/1f602.svg","/emoji/sheet_10.png"],"hashesMap":{},"strategy":"changed","responseStrategy":"cache-first","version":"2/29/2020, 5:37:53 AM","name":"webpack-offline:mastodon","pluginVersion":"5.0.7","relativePaths":false}; !function(t){var o={};function n(e){if(o[e])return o[e].exports;var i=o[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=o,n.d=function(t,o,e){n.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,o){if(1&o&&(t=n(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var i in t)n.d(e,i,function(o){return t[o]}.bind(null,i));return e},n.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(o,"a",o),o},n.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},n.p="/packs/",n(n.s=5)}([function(t,o,n){var e=n(8).Symbol;t.exports=e},function(t,o,n){"use strict";o.extend=function(t){var o,n,i,a,r=Array.prototype.slice.call(arguments,1);for(o=0,n=r.length;o",""":'"',"'":"'"});t.exports=e},function(t,o){t.exports=function(t){return function(o){return null==t?void 0:t[o]}}},function(t,o,n){"use strict";var e=n(21),i=n(26);e.default.__addLocaleData(i.default),e.default.defaultLocale="en",o.default=e.default},function(t,o,n){"use strict";var e=n(1),i=n(22),a=n(23),r=n(24);function s(t,o,n){var e="string"==typeof t?s.__parse(t):t;if(!e||"messageFormatPattern"!==e.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(o)});var a=this._findPluralRuleFunction(this._locale),r=this._compilePattern(e,o,n,a),u=this;this.format=function(o){try{return u._format(r,o)}catch(o){throw o.variableId?new Error("The intl string context variable '"+o.variableId+"' was not provided to the string '"+t+"'"):o}}}o.default=s,i.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(t){if(!t||!t.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[t.locale.toLowerCase()]=t}}),i.defineProperty(s,"__parse",{value:r.default.parse}),i.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(t,o,n,e){return new a.default(o,n,e).compile(t)},s.prototype._findPluralRuleFunction=function(t){for(var o=s.__localeData__,n=o[t.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&o[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+t)},s.prototype._format=function(t,o){var n,i,a,r,s,u,l="";for(n=0,i=t.length;n1?arguments[1]:{},i={},a={start:Ot},r=Ot,s=function(t){return{type:"messageFormatPattern",elements:t,location:Ft()}},u=function(t){var o,n,e,i,a,r="";for(o=0,e=t.length;oqt&&(qt=bt,kt=[]),kt.push(t))}function zt(o,n,e,i){return null!==n&&function(t){var o=1;for(t.sort((function(t,o){return t.descriptiono.description?1:0}));o1?e.slice(0,-1).join(", ")+" or "+e[t.length-1]:e[0])+" but "+(o?'"'+function(t){function o(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+o(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+o(t)})).replace(/[\u0100-\u0FFF]/g,(function(t){return"\\u0"+o(t)})).replace(/[\u1000-\uFFFF]/g,(function(t){return"\\u"+o(t)}))}(o)+'"':"end of input")+" found."}(n,e),n,e,i)}function Ot(){return St()}function St(){var t,o,n;for(t=bt,o=[],n=Et();n!==i;)o.push(n),n=Et();return o!==i&&(yt=t,o=s(o)),t=o}function Et(){var t;return(t=function(){var t,n;t=bt,(n=function(){var t,n,e,a,r,s;t=bt,n=[],e=bt,(a=Ct())!==i&&(r=Dt())!==i&&(s=Ct())!==i?e=a=[a,r,s]:(bt=e,e=i);if(e!==i)for(;e!==i;)n.push(e),e=bt,(a=Ct())!==i&&(r=Dt())!==i&&(s=Ct())!==i?e=a=[a,r,s]:(bt=e,e=i);else n=i;n!==i&&(yt=t,n=u(n));(t=n)===i&&(t=bt,n=Lt(),t=n!==i?o.substring(t,bt):n);return t}())!==i&&(yt=t,n=l(n));return t=n}())===i&&(t=function(){var t,n,e,a,r,s,u;t=bt,123===o.charCodeAt(bt)?(n=m,bt++):(n=i,0===jt&&Pt(d));n!==i&&Ct()!==i&&(e=function(){var t,n,e;if((t=Bt())===i){if(t=bt,n=[],f.test(o.charAt(bt))?(e=o.charAt(bt),bt++):(e=i,0===jt&&Pt(c)),e!==i)for(;e!==i;)n.push(e),f.test(o.charAt(bt))?(e=o.charAt(bt),bt++):(e=i,0===jt&&Pt(c));else n=i;t=n!==i?o.substring(t,bt):n}return t}())!==i&&Ct()!==i?(a=bt,44===o.charCodeAt(bt)?(r=p,bt++):(r=i,0===jt&&Pt(h)),r!==i&&(s=Ct())!==i&&(u=function(){var t;(t=function(){var t,n,e,a,r,s;t=bt,o.substr(bt,6)===b?(n=b,bt+=6):(n=i,0===jt&&Pt(y));n===i&&(o.substr(bt,4)===_?(n=_,bt+=4):(n=i,0===jt&&Pt(q)),n===i&&(o.substr(bt,4)===k?(n=k,bt+=4):(n=i,0===jt&&Pt(j))));n!==i&&Ct()!==i?(e=bt,44===o.charCodeAt(bt)?(a=p,bt++):(a=i,0===jt&&Pt(h)),a!==i&&(r=Ct())!==i&&(s=Dt())!==i?e=a=[a,r,s]:(bt=e,e=i),e===i&&(e=null),e!==i?(yt=t,n=F(n,e),t=n):(bt=t,t=i)):(bt=t,t=i);return t}())===i&&(t=function(){var t,n,e,a;t=bt,o.substr(bt,6)===A?(n=A,bt+=6):(n=i,0===jt&&Pt(x));n!==i&&Ct()!==i?(44===o.charCodeAt(bt)?(e=p,bt++):(e=i,0===jt&&Pt(h)),e!==i&&Ct()!==i&&(a=Ut())!==i?(yt=t,n=P(a),t=n):(bt=t,t=i)):(bt=t,t=i);return t}())===i&&(t=function(){var t,n,e,a;t=bt,o.substr(bt,13)===z?(n=z,bt+=13):(n=i,0===jt&&Pt(O));n!==i&&Ct()!==i?(44===o.charCodeAt(bt)?(e=p,bt++):(e=i,0===jt&&Pt(h)),e!==i&&Ct()!==i&&(a=Ut())!==i?(yt=t,n=S(a),t=n):(bt=t,t=i)):(bt=t,t=i);return t}())===i&&(t=function(){var t,n,e,a,r;t=bt,o.substr(bt,6)===E?(n=E,bt+=6):(n=i,0===jt&&Pt(R));if(n!==i)if(Ct()!==i)if(44===o.charCodeAt(bt)?(e=p,bt++):(e=i,0===jt&&Pt(h)),e!==i)if(Ct()!==i){if(a=[],(r=Rt())!==i)for(;r!==i;)a.push(r),r=Rt();else a=i;a!==i?(yt=t,n=U(a),t=n):(bt=t,t=i)}else bt=t,t=i;else bt=t,t=i;else bt=t,t=i;else bt=t,t=i;return t}());return t}())!==i?a=r=[r,s,u]:(bt=a,a=i),a===i&&(a=null),a!==i&&(r=Ct())!==i?(125===o.charCodeAt(bt)?(s=v,bt++):(s=i,0===jt&&Pt(g)),s!==i?(yt=t,n=w(e,a),t=n):(bt=t,t=i)):(bt=t,t=i)):(bt=t,t=i);return t}()),t}function Rt(){var t,n,e,a,r;return t=bt,Ct()!==i&&(n=function(){var t,n,e,a;return t=bt,n=bt,61===o.charCodeAt(bt)?(e=L,bt++):(e=i,0===jt&&Pt(C)),e!==i&&(a=Bt())!==i?n=e=[e,a]:(bt=n,n=i),(t=n!==i?o.substring(t,bt):n)===i&&(t=Dt()),t}())!==i&&Ct()!==i?(123===o.charCodeAt(bt)?(e=m,bt++):(e=i,0===jt&&Pt(d)),e!==i&&Ct()!==i&&(a=St())!==i&&Ct()!==i?(125===o.charCodeAt(bt)?(r=v,bt++):(r=i,0===jt&&Pt(g)),r!==i?(yt=t,t=M(n,a)):(bt=t,t=i)):(bt=t,t=i)):(bt=t,t=i),t}function Ut(){var t,n,e,a;if(t=bt,(n=function(){var t,n,e;return t=bt,o.substr(bt,7)===T?(n=T,bt+=7):(n=i,0===jt&&Pt(B)),n!==i&&Ct()!==i&&(e=Bt())!==i?(yt=t,t=n=N(e)):(bt=t,t=i),t}())===i&&(n=null),n!==i)if(Ct()!==i){if(e=[],(a=Rt())!==i)for(;a!==i;)e.push(a),a=Rt();else e=i;e!==i?(yt=t,t=n=D(n,e)):(bt=t,t=i)}else bt=t,t=i;else bt=t,t=i;return t}function Lt(){var t,n;if(jt++,t=[],W.test(o.charAt(bt))?(n=o.charAt(bt),bt++):(n=i,0===jt&&Pt(V)),n!==i)for(;n!==i;)t.push(n),W.test(o.charAt(bt))?(n=o.charAt(bt),bt++):(n=i,0===jt&&Pt(V));else t=i;return jt--,t===i&&(n=i,0===jt&&Pt(I)),t}function Ct(){var t,n,e;for(jt++,t=bt,n=[],e=Lt();e!==i;)n.push(e),e=Lt();return t=n!==i?o.substring(t,bt):n,jt--,t===i&&(n=i,0===jt&&Pt(G)),t}function Mt(){var t;return H.test(o.charAt(bt))?(t=o.charAt(bt),bt++):(t=i,0===jt&&Pt(K)),t}function Tt(){var t;return Z.test(o.charAt(bt))?(t=o.charAt(bt),bt++):(t=i,0===jt&&Pt(J)),t}function Bt(){var t,n,e,a,r,s;if(t=bt,48===o.charCodeAt(bt)?(n=$,bt++):(n=i,0===jt&&Pt(X)),n===i){if(n=bt,e=bt,Q.test(o.charAt(bt))?(a=o.charAt(bt),bt++):(a=i,0===jt&&Pt(Y)),a!==i){for(r=[],s=Mt();s!==i;)r.push(s),s=Mt();r!==i?e=a=[a,r]:(bt=e,e=i)}else bt=e,e=i;n=e!==i?o.substring(n,bt):e}return n!==i&&(yt=t,n=tt(n)),t=n}function Nt(){var t,n,e,a,r,s,u,l;return ot.test(o.charAt(bt))?(t=o.charAt(bt),bt++):(t=i,0===jt&&Pt(nt)),t===i&&(t=bt,o.substr(bt,2)===et?(n=et,bt+=2):(n=i,0===jt&&Pt(it)),n!==i&&(yt=t,n=at()),(t=n)===i&&(t=bt,o.substr(bt,2)===rt?(n=rt,bt+=2):(n=i,0===jt&&Pt(st)),n!==i&&(yt=t,n=ut()),(t=n)===i&&(t=bt,o.substr(bt,2)===lt?(n=lt,bt+=2):(n=i,0===jt&&Pt(ft)),n!==i&&(yt=t,n=ct()),(t=n)===i&&(t=bt,o.substr(bt,2)===mt?(n=mt,bt+=2):(n=i,0===jt&&Pt(dt)),n!==i&&(yt=t,n=pt()),(t=n)===i&&(t=bt,o.substr(bt,2)===ht?(n=ht,bt+=2):(n=i,0===jt&&Pt(vt)),n!==i?(e=bt,a=bt,(r=Tt())!==i&&(s=Tt())!==i&&(u=Tt())!==i&&(l=Tt())!==i?a=r=[r,s,u,l]:(bt=a,a=i),(e=a!==i?o.substring(e,bt):a)!==i?(yt=t,t=n=gt(e)):(bt=t,t=i)):(bt=t,t=i)))))),t}function Dt(){var t,o,n;if(t=bt,o=[],(n=Nt())!==i)for(;n!==i;)o.push(n),n=Nt();else o=i;return o!==i&&(yt=t,o=wt(o)),t=o}if((n=r())!==i&&bt===o.length)return n;throw n!==i&&bt=5){var n={title:d("notifications.group",t.data.preferred_locale,{count:o.length+1}),body:o.sort((function(t,o){return t.timestamp/g,"\n").replace(/<\/p>

/g,"\n\n").replace(/<[^>]*>/g,""))},h=function(t){return{action:"expand",icon:"/web-push-icon_expand.png",title:d("status.show_more",t)}},v=function(t){return{action:"reblog",icon:"/web-push-icon_reblog.png",title:d("status.reblog",t)}},g=function(t){return{action:"favourite",icon:"/web-push-icon_favourite.png",title:d("status.favourite",t)}},w=function(t){var o=t.find((function(t){return t.focused})),n=t.find((function(t){return"visible"===t.visibilityState}));return o||n||t[0]},b=function(t,o){var n=m(t);return n.actions=n.actions.filter((function(t){return t.action!==o})),self.registration.showNotification(n.title,n)};self.addEventListener("push",(function(t){var o=t.data.json(),n=o.access_token,e=o.notification_id,i=o.preferred_locale,a=o.title,r=o.body,s=o.icon;t.waitUntil(c("/api/v1/notifications/"+e,"get",n).then((function(t){var o={};return o.title=d("notification."+t.type,i,{name:t.account.display_name.length>0?t.account.display_name:t.account.username}),o.body=t.status&&p(t.status.content),o.icon=t.account.avatar_static,o.timestamp=t.created_at&&new Date(t.created_at),o.tag=t.id,o.badge="/badge.png",o.image=t.status&&t.status.media_attachments.length>0&&t.status.media_attachments[0].preview_url||void 0,o.data={access_token:n,preferred_locale:i,id:t.status?t.status.id:t.account.id,url:t.status?"/web/statuses/"+t.status.id:"/web/accounts/"+t.account.id},t.status&&t.status.spoiler_text||t.status.sensitive?(o.data.hiddenBody=p(t.status.content),o.data.hiddenImage=t.status.media_attachments.length>0&&t.status.media_attachments[0].preview_url,t.status.spoiler_text&&(o.body=t.status.spoiler_text),o.image=void 0,o.actions=[h(i)]):"mention"===t.type&&(o.actions=[v(i),g(i)]),f(o)})).catch((function(){return f({title:a,body:r,icon:s,tag:e,timestamp:new Date,badge:"/badge.png",data:{access_token:n,preferred_locale:i,url:"/web/notifications"}})})))})),self.addEventListener("notificationclick",(function(t){var o=new Promise((function(o,n){if(t.action)if("expand"===t.action)o((r=t.notification,(s=m(r)).body=s.data.hiddenBody,s.image=s.data.hiddenImage,s.actions=[v(r.data.preferred_locale),g(r.data.preferred_locale)],self.registration.showNotification(s.title,s)));else if("reblog"===t.action){var e=t.notification.data;o(c("/api/v1/statuses/"+e.id+"/reblog","post",e.access_token).then((function(){return b(t.notification,"reblog")})))}else if("favourite"===t.action){var i=t.notification.data;o(c("/api/v1/statuses/"+i.id+"/favourite","post",i.access_token).then((function(){return b(t.notification,"favourite")})))}else n("Unknown action: "+t.action);else t.notification.close(),o((a=t.notification.data.url,self.clients.matchAll({type:"window"}).then((function(t){if(0!==t.length){var o=t.filter((function(t){return/\/web\//.test(t.url)}));if(0!==o.length){var n=w(o),e=new URL(a,self.location).pathname;if(e.startsWith("/web/"))return n.focus().then((function(t){return t.postMessage({type:"navigate",path:e.slice("/web/".length-1)})}))}else if("navigate"in t[0])return w(t).navigate(a).then((function(t){return t.focus()}))}return self.clients.openWindow(a)}))));var a,r,s}));t.waitUntil(o)}));function y(){return caches.open("mastodon-web")}function _(){return fetch("/web",{credentials:"include",redirect:"manual"})}self.addEventListener("install",(function(t){t.waitUntil(Promise.all([y(),_()]).then((function(t){var o=t[0],n=t[1];return o.put("/web",n)})))})),self.addEventListener("activate",(function(t){t.waitUntil(self.clients.claim())})),self.addEventListener("fetch",(function(t){var o=new URL(t.request.url);if(o.pathname.startsWith("/web")){if(o.pathname.startsWith("/web/login"))return;var n=_(),e=y();t.respondWith(n.then((function(t){var o=t.clone();return e.then((function(t){return t.put("/web",o)})).catch(),t}),(function(){return e.then((function(t){return t.match("/web")}))})))}else if("/auth/sign_out"===o.pathname){var i=fetch(t.request),a=y();t.respondWith(i.then((function(t){return t.ok||"opaqueredirect"===t.type?Promise.all([a.then((function(t){return t.delete("/web")})),indexedDB.deleteDatabase("mastodon")]).then((function(){return t})):t})))}}))}]);