pleroma/priv/static/sw-pleroma.js

23 lines
144 KiB
JavaScript
Raw Normal View History

2025-09-04 15:24:03 +04:00
(function(){"use strict";self.serviceWorkerOption={assets:["/static/img/nsfw.DepQPhG0.png","/static/css/main.D22XtkBO.css","/static/css/settings_modal.5GFa6N-U.css","/static/css/update_notification.BJ1CAGCw.css","/static/css/sticker_picker.BzJVB0Ta.css","/static/css/settings_modal_user_content.hxNh--rt.css","/static/css/string_setting.B27wX1PR.css","/static/css/settings_modal_admin_content.WeD-61n6.css","/static/js/main.AC3URMfQ.js","/static/js/i18n/ar.Cr-3kZBh.js","/static/js/i18n/ca.Bv4d2Muy.js","/static/js/i18n/cs.EyNXpVXW.js","/static/js/i18n/de.CvXWIhiF.js","/static/js/i18n/eo.C9h09SOv.js","/static/js/i18n/es.BFMlvXsf.js","/static/js/i18n/et.fhuMKZXQ.js","/static/js/i18n/eu.C1UxLEb6.js","/static/js/i18n/fa.BxVyTR8q.js","/static/js/i18n/fi.Brm9lhAA.js","/static/js/i18n/fr.DzBG0KvL.js","/static/js/i18n/ga.CPJnGxWv.js","/static/js/i18n/he.BllNuLoC.js","/static/js/i18n/hu.CljyAvQa.js","/static/js/i18n/id.DLjgbCu5.js","/static/js/i18n/it.ERg696CD.js","/static/js/i18n/ja_easy.PsomvmuF.js","/static/js/i18n/ja_pedantic.VWLd9bHt.js","/static/js/i18n/ko.b1sv0xRp.js","/static/js/i18n/nan-TW.Ci98X1S7.js","/static/js/i18n/nb.DCCmz1gh.js","/static/js/i18n/nl.D6wYIlyz.js","/static/js/i18n/oc.C4DhJxhs.js","/static/js/i18n/pdc.FmFgRqLi.js","/static/js/i18n/pl.CPLK-gPs.js","/static/js/i18n/pt.BzQabObA.js","/static/js/i18n/ro.BA9koejw.js","/static/js/i18n/ru.CYi-PMDA.js","/static/js/i18n/sk.fGdLyyK_.js","/static/js/i18n/te.CikZ4jPW.js","/static/js/i18n/uk.CkmtgYNq.js","/static/js/i18n/vi.BsGK9mjD.js","/static/js/i18n/zh.BZkJuR5j.js","/static/js/i18n/zh_Hant.dSMADUQ9.js","/static/js/emoji.CF2IDMqM.js","/static/js/emoji-annotations/ar.B8mhZA6U.js","/static/js/emoji-annotations/ca.BNs7Pavf.js","/static/js/emoji-annotations/cs.CdaRuLZ2.js","/static/js/emoji-annotations/de.i-ePE-E2.js","/static/js/emoji-annotations/en.UxzeFsjk.js","/static/js/emoji-annotations/es.BgprEtDA.js","/static/js/emoji-annotations/et.RsBIeRrK.js","/static/js/emoji-annotations/eu.DflrXXOX.js","/static/js/emoji-annotations/fi.BQTjfiqL.js","/static/js/emoji-annotations/fr.6uuBHV2n.js","/static/js/emoji-annotations/ga.D-L92xRm.js","/static/js/emoji-annotations/he.Ql7ZB6oR.js","/static/js/emoji-annotations/hu.CfFMlYJN.js","/static/js/emoji-annotations/it.CjUsZ0f4.js","/static/js/emoji-annotations/ja.Cp7hRpKj.js","/static/js/emoji-annotations/ko.DGjjBGsA.js","/static/js/emoji-annotations/nl.BCmP3XAV.js","/static/js/emoji-annotations/pl.C1i62U33.js","/static/js/emoji-annotations/pt.qcD2jbqr.js","/static/js/emoji-annotations/ro.Q0r94aGX.js","/static/js/emoji-annotations/ru.BsjC3M1d.js","/static/js/emoji-annotations/sk.BrZ6jXEe.js","/static/js/emoji-annotations/te.3rQpXN4b.js","/static/js/emoji-annotations/uk.C7RXZT0o.js","/static/js/emoji-annotations/zh.DXJ_1nIQ.js","/static/js/emoji-annotations/zh_Hant.ccXyIXaI.js","/static/js/settings_modal.Hse38PiB.js","/static/js/update_notification.CZcx2OQ7.js","/static/js/sticker_picker.rmgSQPc6.js","/static/js/settings_modal_user_content.DPmqx1OJ.js","/static/js/string_setting.5SBT91w5.js","/static/js/settings_modal_admin_content.k7LAvjl-.js","/index.html"]};var ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function un(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dn={exports:{}};/*!
localForage -- Offline Storage, Improved
Version 1.10.0
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*/var Gr;function Qi(){return Gr||(Gr=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function a(g,E){if(!o[g]){if(!r[g]){var d=typeof un=="function"&&un;if(!E&&d)return d(g,!0);if(c)return c(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var R=o[g]={exports:{}};r[g][0].call(R.exports,function(F){var x=r[g][1][F];return a(x||F)},R,R.exports,n,r,o,i)}return o[g].exports}for(var c=typeof un=="function"&&un,u=0;u<i.length;u++)a(i[u]);return a}({1:[function(n,r,o){(function(i){var a=i.MutationObserver||i.WebKitMutationObserver,c;if(a){var u=0,g=new a(F),E=i.document.createTextNode("");g.observe(E,{characterData:!0}),c=function(){E.data=u=++u%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var d=new i.MessageChannel;d.port1.onmessage=F,c=function(){d.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?c=function(){var U=i.document.createElement("script");U.onreadystatechange=function(){F(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},i.document.documentElement.appendChild(U)}:c=function(){setTimeout(F,0)};var b,R=[];function F(){b=!0;for(var U,y,N=R.length;N;){for(y=R,R=[],U=-1;++U<N;)y[U]();N=R.length}b=!1}r.exports=x;function x(U){R.push(U)===1&&!b&&c()}}).call(this,typeof ln<"u"?ln:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function a(){}var c={},u=["REJECTED"],g=["FULFILLED"],E=["PENDING"];r.exports=d;function d(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=E,this.queue=[],this.outcome=void 0,w!==a&&x(this,w)}d.prototype.catch=function(w){return this.then(null,w)},d.prototype.then=function(w,C){if(typeof w!="function"&&this.state===g||typeof C!="function"&&this.state===u)return this;var L=new this.constructor(a);if(this.state!==E){var V=this.state===g?w:C;R(L,V,this.outcome)}else this.queue.push(new b(L,w,C));return L};function b(w,C,L){this.promise=w,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}b.prototype.callFulfilled=function(w){c.resolve(this.promise,w)},b.prototype.otherCallFulfilled=function(w){R(this.promise,this.onFulfilled,w)},b.prototype.callRejected=function(w){c.reject(this.promise,w)},b.prototype.otherCallRejected=function(w){R(this.promise,this.onRejected,w)};function R(w,C,L){i(function(){var V;try{V=C(L)}catch(H){return c.reject(w,H)}V===w?c.reject(w,new TypeError("Cannot resolve promise with itself")):c.resolve(w,V)})}c.resolve=function(w,C){var L=U(F,C);if(L.status==="error")return c.reject(w,L.value);var V=L.value;if(V)x(w,V);else{w.state=g,w.outcome=C;for(var H=-1,re=w.queue.length;++H<re;)w.queue[H].callFulfilled(C)}return w},c.reject=function(w,C){w.state=u,w.outcome=C;for(var L=-1,V=w.queue.length;++L<V;)w.queue[L].callRejected(C);return w};function F(w){var C=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof C=="function")return function(){C.apply(w,arguments)}}function x(w,C){var L=!1;function V(G){L||(L=!0,c.reject(w,G))}function H(G){L||(L=!0,c.resolve(w,G))}function re(){C(H,V)}var se=U(re);se.status==="error"&&V(se.value)}function U(w,C){var L={};try{L.value=w(C),L.status="success"}catch(V){L.status="error",L.value=V}return L}d.resolve=y;function y(w){return w instanceof this?w:c.resolve(new this(a),w)}d.reject=N;function N(w){var C=new this(a);return c.reject(C,w)}d.all=j;function j(w){var C=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=w.length,V=!1;if(!L)return this.resolve([]);for(var H=new Array(L),re=0,se=-1,G=new this(a);++se<L;)he(w[se],se);return G;function he(Ye,st){C.resolve(Ye).then(dt,function(Ue){V||(V=!0,c.reject(G,Ue))});function dt(Ue){H[st]=Ue,++re===L&&!V&&(V=!0,c.resolve(G,H))}}}d.race=S;function S(w){var C=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=w.lengt
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var jn,zr;function ts(){if(zr)return jn;zr=1;var e=/["'&<>]/;jn=t;function t(n){var r=""+n,o=e.exec(r);if(!o)return r;var i,a="",c=0,u=0;for(c=o.index;c<r.length;c++){switch(r.charCodeAt(c)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}u!==c&&(a+=r.substring(u,c)),u=c+1,a+=i}return u!==c?a+r.substring(u,c):a}return jn}var ns=ts();const fn=Kr(ns),Fn="pleroma-fe",rs="pleroma-fe-emoji";/**
* @vue/shared v3.5.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function os(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const xn={},Pt=()=>{},is=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Dt=Object.assign,ss=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},as=Object.prototype.hasOwnProperty,Mn=(e,t)=>as.call(e,t),me=Array.isArray,jt=e=>_n(e)==="[object Map]",cs=e=>_n(e)==="[object Set]",Se=e=>typeof e=="function",Ge=e=>typeof e=="string",Ft=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",ls=e=>(Ce(e)||Se(e))&&Se(e.then)&&Se(e.catch),us=Object.prototype.toString,_n=e=>us.call(e),fs=e=>_n(e).slice(8,-1),_s=e=>_n(e)==="[object Object]",Un=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ze=(e,t)=>!Object.is(e,t);let Xr;const Wn=()=>Xr||(Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $n(e){if(me(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ge(r)?ps(r):$n(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(Ge(e)||Ce(e))return e}const ds=/;(?![^(]*\))/g,ms=/:([^]+)/,hs=/\/\*[^]*?\*\//g;function ps(e){const t={};return e.replace(hs,"").split(ds).forEach(n=>{if(n){const r=n.split(ms);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Bn(e){let t="";if(Ge(e))t=e;else if(me(e))for(let n=0;n<e.length;n++){const r=Bn(e[n]);r&&(t+=r+" ")}else if(Ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var gs={NODE_ENV:"production",HAS_MODULE_SERVICE_WORKER:!1};let be;class vs{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){++this._on===1&&(this.prevScope=be,be=this)}off(){this._on>0&&--this._on===0&&(be=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function bs(e){return new vs(e)}function ys(){return be}let oe;const Vn=new WeakSet;class Es{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,be&&be.active&&be.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vn.has(this)&&(Vn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Qr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ro(this),Zr(this);const t=oe,n=Oe;oe=this,Oe=!0;try{return this.fn()}finally{eo(this),oe=t,Oe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Kn(t);this.deps=this.depsTail=void 0,ro(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Yn(this)&&this.run()}get dirty(){return Yn(this)}}let Jr=0,xt,Mt;function Qr(e,t=!1){if(e.flags|=8,t){e.next=Mt,Mt=e;return}e.next=xt,xt=e}function Hn(){Jr++}function qn(){if(--Jr>0)return;if(Mt){let t=Mt;for(Mt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xt;){let t=xt;for(xt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)
* shared v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Wa(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Sn=typeof window<"u",nt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),$a=(e,t,n)=>Ba({l:e,k:t,s:n}),Ba=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),fe=e=>typeof e=="number"&&isFinite(e),Va=e=>hr(e)==="[object Date]",It=e=>hr(e)==="[object RegExp]",In=e=>K(e)&&Object.keys(e).length===0,de=Object.assign,Ha=Object.create,te=(e=null)=>Ha(e);let xo;const _t=()=>xo||(xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:te());function Mo(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Uo(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qa(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,o,i)=>`${o}="${Uo(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,o,i)=>`${o}='${Uo(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Ya=Object.prototype.hasOwnProperty;function Pe(e,t){return Ya.call(e,t)}const le=Array.isArray,ie=e=>typeof e=="function",W=e=>typeof e=="string",z=e=>typeof e=="boolean",X=e=>e!==null&&typeof e=="object",Ka=e=>X(e)&&ie(e.then)&&ie(e.catch),Wo=Object.prototype.toString,hr=e=>Wo.call(e),K=e=>hr(e)==="[object Object]",Ga=e=>e==null?"":le(e)||K(e)&&e.toString===Wo?JSON.stringify(e,null,2):String(e);function pr(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const Ln=e=>!X(e)||le(e);function Nn(e,t){if(Ln(e)||Ln(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(X(r[i])&&!X(o[i])&&(o[i]=Array.isArray(r[i])?[]:te()),Ln(o[i])||Ln(r[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]}))})}}function za(e,t,n){return{line:e,column:t,offset:n}}function gr(e,t,n){return{start:e,end:t}}const Z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Xa=17;function Tn(e,t,n={}){const{domain:r,messages:o,args:i}=n,a=e,c=new SyntaxError(String(a));return c.code=e,t&&(c.location=t),c.domain=r,c}function Ja(e){throw e}const Ve=" ",Qa="\r",ge=`
`,Za="\u2028",ec="\u2029";function tc(e){const t=e;let n=0,r=1,o=1,i=0;const a=L=>t[L]===Qa&&t[L+1]===ge,c=L=>t[L]===ge,u=L=>t[L]===ec,g=L=>t[L]===Za,E=L=>a(L)||c(L)||u(L)||g(L),d=()=>n,b=()=>r,R=()=>o,F=()=>i,x=L=>a(L)||u(L)||g(L)?ge:t[L],U=()=>x(n),y=()=>x(n+i);function N(){return i=0,E(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}function j(){return a(n+i)&&i++,i++,t[n+i]}function S(){n=0,r=1,o=1,i=0}function w(L=0){i=L}function C(){const L=n+i;for(;L!==n;)N();i=0}return{index:d,line:b,column:R,peekOffset:F,charAt:x,currentChar:U,currentPeek:y,next:N,peek:j,reset:S,resetPeek:w,skipToPeek:C}}const rt=void 0,nc=".",$o="'",rc="tokenizer";function oc(e,t={}){const n=t.location!==!1,r=tc(e),o=()=>r.index(),i=()=>za(r.line(),r.column(),r.index()),a=i(),c=o(),u={currentType:13,offset:c,startLoc:a,endLoc:a,lastType:13,lastOffset:c,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},g=()=>u,{onError:E}=t;function d(_,m,O,...B){const ae=g();if(m.column+=O,m.offset+=O,E){const q=n?gr(ae.startLoc,m):null,I=Tn(_,q,{domain:rc,args:B});E(I)}}function b(_,m,O){_.endLoc=i(),_.currentType=m;const B={type:m};return n&&(B.loc=gr(_.startLoc,_.endLoc)),O!=null&&(B.value=O),B}const R=_=>b(_,13);function F(_,m){return _.currentChar()===m?(_.next(),m):(d(Z.EXPECTED_TOKEN,i(),0,m),"")}function x(_){let m="";for(;_.currentPeek()===Ve||_.currentPeek()===ge;)m+=_.currentPeek(),_.peek();return m}function U(_){const m=x(_);return _.skipToPeek(),m}function y(_){if(_===rt)return!1;const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function N(_){if(_===rt)return!1;const m=_.charCodeAt(0);return m>=48&&m<=57}function j(_,m){const{currentType:O}=m;if(O!==2)return!1;x(_);const B=y(_.currentPeek());return _.resetPeek(),B}function S(_,m){const{currentType:O}=m;if(O!==2)return!1;x(_);const B=_.currentPeek()==="-"?_.peek():_.currentPeek(),ae=N(B);return _.resetPeek(),ae}function w(_,m){const{currentType:O}=m;if(O!==2)return!1;x(_);const B=_.currentPeek()===$o;return _.resetPeek(),B}function C(_,m){const{currentType:O}=m;if(O!==7)return!1;x(_);const B=_.currentPeek()===".";return _.resetPeek(),B}function L(_,m){const{currentType:O}=m;if(O!==8)return!1;x(_);const B=y(_.currentPeek());return _.resetPeek(),B}function V(_,m){const{currentType:O}=m;if(!(O===7||O===11))return!1;x(_);const B=_.currentPeek()===":";return _.resetPeek(),B}function H(_,m){const{currentType:O}=m;if(O!==9)return!1;const B=()=>{const q=_.currentPeek();return q==="{"?y(_.peek()):q==="@"||q==="|"||q===":"||q==="."||q===Ve||!q?!1:q===ge?(_.peek(),B()):se(_,!1)},ae=B();return _.resetPeek(),ae}function re(_){x(_);const m=_.currentPeek()==="|";return _.resetPeek(),m}function se(_,m=!0){const O=(ae=!1,q="")=>{const I=_.currentPeek();return I==="{"||I==="@"||!I?ae:I==="|"?!(q===Ve||q===ge):I===Ve?(_.peek(),O(!0,Ve)):I===ge?(_.peek(),O(!0,ge)):!0},B=O();return m&&_.resetPeek(),B}function G(_,m){const O=_.currentChar();return O===rt?rt:m(O)?(_.next(),O):null}function he(_){const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function Ye(_){return G(_,he)}function st(_){const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function dt(_){return G(_,st)}function Ue(_){const m=_.charCodeAt(0);return m>=48&&m<=57}function Tt(_){return G(_,Ue)}function De(_){const m=_.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function Rt(_){return G(_,De)}function we(_){let m="",O="";for(;m=Tt(_);)O+=m;return O}function Ct(_){let m="";for(;;){const O=_.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O===Ve||O===ge)if(se(_))m+=O,_.next();else{if(re(_))break;m+=O,_.next()}else m+=O,_.next()}return m}function Qt(_){U(_);let m="",O="";for(;m=dt(_);)O+=m;return _.currentChar()===rt&&d(Z.UNTERMINATED_CLOSING_BRACE,i(),0),O}function Zt(_){U(_);let m="";return _.currentChar()==="-"?(_.next(),m+=`-${we(_)}`):m+=we(_),_.currentChar()===rt&&d(Z.UNTERMINATED_CLOSING_BRACE,i(),0),m}function kn(_){return _!==$o&&_!==ge}function en(_){U(_),F(_,"'");let m="",O="";for(;m=G(_,kn);)m==="\\"?O+=tn(_):O+=m;co
`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],c=_c(e,{filename:r,breakLineCode:o,needIndent:i});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(i),a.length>0&&(c.push(`const { ${pr(a.map(E=>`${E}: _${E}`),", ")} } = ctx`),c.newline()),c.push("return "),Nt(c,e),c.deindent(i),c.push("}"),delete e.helpers;const{code:u,map:g}=c.context();return{ast:e,code:u,map:g?g.toJSON():void 0}};function vc(e,t={}){const n=de({},t),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,c=cc(n).parse(e);return r?(i&&fc(c),o&&Lt(c),{ast:c,code:""}):(uc(c,n),gc(c,n))}var bc={NODE_ENV:"production"};function yc(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_t().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_t().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Me(e){return X(e)&&br(e)===0&&(Pe(e,"b")||Pe(e,"body"))}const Ho=["b","body"];function Ec(e){return ot(e,Ho)}const qo=["c","cases"];function wc(e){return ot(e,qo,[])}const Yo=["s","static"];function Sc(e){return ot(e,Yo)}const Ko=["i","items"];function Ic(e){return ot(e,Ko,[])}const Go=["t","type"];function br(e){return ot(e,Go)}const zo=["v","value"];function Rn(e,t){const n=ot(e,zo);if(n!=null)return n;throw Kt(t)}const Xo=["m","modifier"];function Lc(e){return ot(e,Xo)}const Jo=["k","key"];function Nc(e){const t=ot(e,Jo);if(t)return t;throw Kt(6)}function ot(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(Pe(e,o)&&e[o]!=null)return e[o]}return n}const Qo=[...Ho,...qo,...Yo,...Ko,...Jo,...Xo,...zo,...Go];function Kt(e){return new Error(`unhandled node type: ${e}`)}function yr(e){return n=>Tc(n,e)}function Tc(e,t){const n=Ec(t);if(n==null)throw Kt(0);if(br(n)===1){const i=wc(n);return e.plural(i.reduce((a,c)=>[...a,Zo(e,c)],[]))}else return Zo(e,n)}function Zo(e,t){const n=Sc(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Ic(t).reduce((o,i)=>[...o,Er(e,i)],[]);return e.normalize(r)}}function Er(e,t){const n=br(t);switch(n){case 3:return Rn(t,n);case 9:return Rn(t,n);case 4:{const r=t;if(Pe(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Pe(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Kt(n)}case 5:{const r=t;if(Pe(r,"i")&&fe(r.i))return e.interpolate(e.list(r.i));if(Pe(r,"index")&&fe(r.index))return e.interpolate(e.list(r.index));throw Kt(n)}case 6:{const r=t,o=Lc(r),i=Nc(r);return e.linked(Er(e,i),o?Er(e,o):void 0,e.type)}case 7:return Rn(t,n);case 8:return Rn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Rc=e=>e;let Cn=te();function Cc(e,t={}){let n=!1;const r=t.onError||Ja;return t.onError=o=>{n=!0,r(o)},{...vc(e,t),detectError:n}}function Oc(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){z(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Rc)(e),o=Cn[r];if(o)return o;const{ast:i,detectError:a}=Cc(e,{...t,location:bc.NODE_ENV!=="production",jit:!0}),c=yr(i);return a?c:Cn[r]=c}else{const n=e.cacheKey;if(n){const r=Cn[n];return r||(Cn[n]=yr(e))}else return yr(e)}}let Gt=null;function kc(e){Gt=e}function Ac(e,t,n){Gt&&Gt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Pc=Dc("function:translate");function Dc(e){return t=>Gt&&Gt.emit(e,t)}const He={INVALID_ARGUMENT:Xa,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},jc=24;function qe(e){return Tn(e,null,void 0)}function wr(e,t){return t.locale!=null?ei(t.locale):ei(e.locale)}let Sr;function ei(e){if(W(e))return e;if(ie(e)){if(e.resolvedOnce&&Sr!=null)return Sr;if(e.constructor.name==="Function"){const t=e();if(Ka(t))throw qe(He.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Sr=t}else throw qe(He.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw qe(He.NOT_SUPPORT_LOCALE_TYPE)}function Fc(e,t,n){return[...new Set([n,...le(t)?t:X(t)?Object.keys(t):W(t)?[t]:[n]])]}function ti(e,t,n){const r=W(n)?n:zt,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let a=[n];for(;le(a);)a=ni(i,a,t);const c=le(t)||!K(t)?t:t.default?
//# sourceMappingURL=sw-pleroma.js.map