import{L as Za,O as Xa,E as Qa,P as fn,Q as ua,U as eo,V as to,x as da,i as no,W as ma,_ as te,p as pe,a as e,h as Q,u as je,X as ao,e as oo,N as ha,Y as io,Z as ro,M as Ee,$ as so,S as co,g as W,w as gn,a0 as lo,a1 as vt,a2 as uo,a3 as mo,a4 as ho,a5 as po,D as fo,a6 as go,a7 as vo,a8 as bo,a9 as yo,aa as _o,ab as ko,ac as wo,ad as Eo,ae as xo,m as pa,af as To,f as fa,ag as Lo,T as vn,F as Fe,y as hn,ah as Vn,t as Ao,b as _t,q as Co,r as Fo,d as en,J as ga,C as So,ai as $o,aj as Po,ak as jn,al as Io,am as Un,n as Ro,z as Hn}from"./vendor-f6XEe9UY.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=a(o);fetch(o.href,r)}})();function va(t){const n=O.local.getJSON("accounts")||[];return n.find(a=>a.info.id===t)||n[0]}function Do(t){return(O.local.getJSON("accounts")||[]).find(a=>a.accessToken===t)}function Mo(t){return(O.local.getJSON("accounts")||[]).find(a=>a.instanceURL===t)}function Nt(){window.__IGNORE_GET_ACCOUNT_ERROR__;const t=O.session.get("currentAccount");return va(t)}function It(){const t=Nt(),{instanceURL:n,info:{id:a}}=t;return`${a}@${n}`}function Oo(t){const n=O.local.getJSON("accounts")||[],a=n.find(s=>s.info.id===t.info.id);a?(a.info=t.info,a.instanceURL=t.instanceURL,a.accessToken=t.accessToken,a.vapidKey=t.vapidKey):n.push(t),O.local.setJSON("accounts",n),O.session.set("currentAccount",t.info.id)}function Tr(t){const n=O.local.getJSON("accounts")||[],a=n.find(s=>s.info.id===t.id);a&&(a.info.displayName!==t.displayName||a.info.avatar!==t.avatar||a.info.avatar_static!==t.avatar_static)&&(a.info={...a.info,...t},O.local.setJSON("accounts",n))}let tn=null;function ba(){if(tn)return tn;try{const t=Nt(),n=O.local.getJSON("instances"),a=t.instanceURL.toLowerCase();return tn=n[a]}catch(t){return alert(`Failed to load instance configuration. Please try again.
${t}`),O.local.del("instances"),location.reload(),{}}}function zo(t){const{configuration:n,maxMediaAttachments:a,maxTootChars:s,pleroma:o,pollLimits:r}=t,c=(n==null?void 0:n.statuses)||{};a&&(c.maxMediaAttachments??(c.maxMediaAttachments=a)),s&&(c.maxCharacters??(c.maxCharacters=s));const l=(n==null?void 0:n.polls)||{};return r&&(l.maxCharactersPerOption??(l.maxCharactersPerOption=r.maxOptionChars),l.maxExpiration??(l.maxExpiration=r.maxExpiration),l.maxOptions??(l.maxOptions=r.maxOptions),l.minExpiration??(l.minExpiration=r.minExpiration)),{...n,statuses:c,polls:l}}function No(){const t=ba();return zo(t)}const Ue={get:t=>{try{return localStorage.getItem(t)}catch{return null}},getJSON:t=>{try{return JSON.parse(Ue.get(t))}catch{return null}},set:(t,n)=>{try{return localStorage.setItem(t,n)}catch{return null}},setJSON:(t,n)=>{try{return Ue.set(t,JSON.stringify(n))}catch{return null}},del:t=>{try{return localStorage.removeItem(t)}catch{return null}}},pn={get:t=>{try{return sessionStorage.getItem(t)}catch{return null}},getJSON:t=>{try{return JSON.parse(pn.get(t))}catch{return null}},set:(t,n)=>{try{return sessionStorage.setItem(t,n)}catch{return null}},setJSON:(t,n)=>{try{return pn.set(t,JSON.stringify(n))}catch{return null}},del:t=>{try{return sessionStorage.removeItem(t)}catch{return null}}},Bo={get:t=>{try{return Ue.getJSON(t)[It()]}catch{return null}},set:(t,n)=>{try{const a=Ue.getJSON(t)||{};return a[It()]=n,Ue.setJSON(t,a)}catch{return null}},del:t=>{try{const n=Ue.getJSON(t)||{};return delete n[It()],Ue.setJSON(t,n)}catch{return null}}},O={local:Ue,session:pn,account:Bo},Rt="mastodon.social",Mt={},Pe={};window.__ACCOUNT_APIS__=Pe;let ve;function Be({instance:t,accessToken:n}){/^https?:\/\//.test(t)&&(t=t.replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase());const a=t?`https://${t}`:`https://${Rt}`,o={masto:Za({url:a,accessToken:n,timeout:3e4}),instance:t,accessToken:n};return Mt[t]=o,Pe[t]||(Pe[t]={}),n&&(Pe[t][n]=o),o}async function Lr(t,n){const{masto:a,accessToken:s}=t;let o;try{o=await a.v2.instance.fetch()}catch{}if(!o)try{o=await a.v1.instance.fetch()}catch{}if(!o)return;const{uri:r,urls:{streamingApi:c}={},domain:l,configuration:{urls:{streaming:d}={}}={}}=o,f=O.local.getJSON("instances")||{};if((r||l)&&(f[(l||r).replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase()]=o),n&&(f[n.toLowerCase()]=o),O.local.setJSON("instances",f),"WebSocket"in window&&(c||d)){const p=Xa({streamingApiUrl:d||c,accessToken:s,implementation:WebSocket});t.streaming=p}}async function Ar(t,n,a,s){const{masto:o}=t,r=await o.v1.accounts.verifyCredentials();O.session.set("currentAccount",r.id),Oo({info:r,instanceURL:n.toLowerCase(),accessToken:a,vapidKey:s})}async function Cr(t){try{const{masto:n}=t,a=await n.v1.preferences.fetch();O.account.set("preferences",a)}catch{}}function qe({instance:t,accessToken:n,accountID:a,account:s}={}){var d,f,m,p,h;if(t&&(t=t.toLowerCase().trim()),t&&n){const g=((d=Pe[t])==null?void 0:d[n])||Be({instance:t,accessToken:n}),{masto:y,streaming:v}=g;return{masto:y,streaming:v,client:g,authenticated:!0,instance:t}}if(n)for(const g in Pe)if(Pe[g][n]){const y=Pe[g][n],{masto:v,streaming:k}=y;return{masto:v,streaming:k,client:y,authenticated:!0,instance:g}}else{const y=Do(n);if(y){const v=y.accessToken,k=y.instanceURL.toLowerCase().trim(),_=Be({instance:k,accessToken:v}),{masto:b,streaming:T}=_;return{masto:b,streaming:T,client:_,authenticated:!0,instance:k}}else throw new Error("Access token not found")}if(s||a)if(s=s||va(a),s){const g=s.accessToken,y=s.instanceURL.toLowerCase().trim(),v=((f=Pe[y])==null?void 0:f[g])||Be({instance:y,accessToken:g}),{masto:k,streaming:_}=v;return{masto:k,streaming:_,client:v,authenticated:!0,instance:y}}else throw new Error(`Account ${a} not found`);const o=Nt();if(t){if((ve==null?void 0:ve.instance)===t)return{masto:ve.masto,streaming:ve.streaming,client:ve,authenticated:!0,instance:t};if((o==null?void 0:o.instanceURL)===t){const{accessToken:b}=o;return ve=((m=Pe[t])==null?void 0:m[b])||Be({instance:t,accessToken:b}),{masto:ve.masto,streaming:ve.streaming,client:ve,authenticated:!0,instance:t}}const g=Mo(t);if(g){const b=g.accessToken,T=((p=Pe[t])==null?void 0:p[b])||Be({instance:t,accessToken:b}),{masto:I,streaming:A}=T;return{masto:I,streaming:A,client:T,authenticated:!0,instance:t}}const y=Mt[t]||Be({instance:t}),{masto:v,streaming:k,accessToken:_}=y;return{masto:v,streaming:k,client:y,authenticated:!!_,instance:t}}if(ve)return{masto:ve.masto,streaming:ve.streaming,client:ve,authenticated:!0,instance:ve.instance};if(o){const{accessToken:g,instanceURL:y}=o;return ve=((h=Pe[y])==null?void 0:h[g])||Be({instance:y,accessToken:g}),{masto:ve.masto,streaming:ve.streaming,client:ve,authenticated:!0,instance:y}}const r=Mt[Rt]||Be({instance:Rt}),{masto:c,streaming:l}=r;return{masto:c,streaming:l,client:r,authenticated:!1,instance:Rt}}window.__API__={currentAccountApi:ve,apis:Mt,accountApis:Pe};window._showToast=Le;function Le(t){typeof t=="string"&&(t={text:t});const{onClick:n,delay:a,...s}=t,o=Qa({className:`${n||t.destination?"shiny-pill":""}`,gravity:"bottom",position:"center",...s,onClick:()=>{n==null||n(o)}});return a?setTimeout(()=>{o.showToast()},a):o.showToast(),o}function ya(t){try{const{pathname:n,hash:a}=new URL(t);return/^\/.*\/\d+$/i.test(n)||/^\/(@[^/]+|users\/[^/]+)\/(statuses|posts)\/\w+\/?$/i.test(n)||/^\/notes\/[a-z0-9]+$/i.test(n)||/^\/(notice|objects)\/[a-z0-9-]+$/i.test(n)||/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(a)}catch{return!1}}window._moize=fn;function We(t,n={}){return fn(t,{...n,maxSize:50,isDeepEqual:!0})}function Bt(t,n={}){return We(t,{isPromise:!0,...n})}function Vo(t,n){let a=[],s=!1;function o(){if(a.length===0){s=!1;return}a.shift()(),setTimeout(o,n)}return function(...r){const c=()=>t.apply(this,r);a.push(c),s||(s=!0,setTimeout(o,n))}}const jo=ua({limit:1,interval:1e3}),Uo=/(twitter|github)\.com/i,Kn={};function Ho(t,n){var v;const a=eo(M);if(Uo.test(n)||Kn[n])return;if(new RegExp(t+"/").test((v=a.unfurledLinks[n])==null?void 0:v.url))return Promise.resolve(a.unfurledLinks[n]);let o,r=n;/\/\/elk\.[^\/]+\/[^\/]+\.[^\/]+/i.test(r)&&(r=r.replace(/elk\.[^\/]+\//i,"")),/\/\/trunks\.[^\/]+\/status\/[^\/]+\.[^\/]+/i.test(r)&&(r=r.replace(/trunks\.[^\/]+\/status\//i,"")),/\/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(r)&&(r=`https://${r.split("/#/")[1].replace(/\/s\//i,"/@fakeUsername/")}`);let c;try{c=new URL(r)}catch{return}const l=c.hostname,d=c.pathname,m=/\/@([^@\/]+)@?([^\/]+)?\/(\d+)$/i.exec(d);if(m){const k=m[3],{masto:_}=qe({instance:l});o=_.v1.statuses.$select(k).fetch().then(b=>{if(b!=null&&b.id)return{status:b,instance:l};throw new Error("No results")})}const{masto:p}=qe({instance:t}),h=p.v2.search.fetch({q:r,type:"statuses",resolve:!0,limit:1}).then(k=>{if(k.statuses.length>0)return{status:k.statuses[0],instance:t};throw new Error("No results")});function g(k){const{status:_,instance:b}=k,{id:T}=_,I=`/${b}/s/${T}`,A={id:T,instance:b,url:I};return M.unfurledLinks[n]=A,Re(_,b,{skipThreading:!0}),A}function y(k){Kn[n]=!0}return o?Promise.race([h,new Promise((_,b)=>setTimeout(b,3e3))]).catch(()=>o.catch(()=>h)).then(g).catch(y):h.then(g).catch(y)}const _a=jo(Ho),ie=to({appVersion:{},prevLocation:null,currentLocation:null,statuses:{},statusThreadNumber:{},home:[],homeNew:[],homeLast:null,homeLastFetchTime:null,notifications:[],notificationsLast:null,notificationsNew:[],notificationsShowNew:!1,notificationsLastFetchTime:null,reloadStatusPage:0,reloadGenericAccounts:{id:null,counter:0},spoilers:{},spoilersMedia:{},scrollPositions:{},unfurledLinks:{},statusQuotes:{},statusFollowedTags:{},accounts:{},routeNotification:null,showCompose:!1,showSettings:!1,showAccount:!1,showAccounts:!1,showDrafts:!1,showMediaModal:!1,showShortcutsSettings:!1,showKeyboardShortcutsHelp:!1,showGenericAccounts:!1,showMediaAlt:!1,showEmbedModal:!1,shortcuts:[],settings:{autoRefresh:!1,shortcutsViewMode:null,shortcutsColumnsMode:!1,boostsCarousel:!0,contentTranslation:!0,contentTranslationTargetLanguage:null,contentTranslationHideLanguages:[],contentTranslationAutoInline:!1,mediaAltGenerator:!1,cloakMode:!1}}),M=ie;function Fr(){ie.notificationsLast=O.account.get("notificationsLast")||null,ie.shortcuts=O.account.get("shortcuts")??[],ie.settings.autoRefresh=O.account.get("settings-autoRefresh")??!1,ie.settings.shortcutsViewMode=O.account.get("settings-shortcutsViewMode")??null,O.account.get("settings-shortcutsColumnsMode")&&(ie.settings.shortcutsColumnsMode=!0),ie.settings.boostsCarousel=O.account.get("settings-boostsCarousel")??!0,ie.settings.contentTranslation=O.account.get("settings-contentTranslation")??!0,ie.settings.contentTranslationTargetLanguage=O.account.get("settings-contentTranslationTargetLanguage")||null,ie.settings.contentTranslationHideLanguages=O.account.get("settings-contentTranslationHideLanguages")||[],ie.settings.contentTranslationAutoInline=O.account.get("settings-contentTranslationAutoInline")??!1,ie.settings.mediaAltGenerator=O.account.get("settings-mediaAltGenerator")??!1,ie.settings.cloakMode=O.account.get("settings-cloakMode")??!1}da(ie,"notificationsLast",t=>{O.account.set("notificationsLast",ie.notificationsLast)});no(ie,t=>{for(const[n,a,s,o]of t)a.join(".")==="settings.autoRefresh"&&O.account.set("settings-autoRefresh",!!s),a.join(".")==="settings.boostsCarousel"&&O.account.set("settings-boostsCarousel",!!s),a.join(".")==="settings.shortcutsViewMode"&&O.account.set("settings-shortcutsViewMode",s),a.join(".")==="settings.contentTranslation"&&O.account.set("settings-contentTranslation",!!s),a.join(".")==="settings.contentTranslationAutoInline"&&O.account.set("settings-contentTranslationAutoInline",!!s),a.join(".")==="settings.contentTranslationTargetLanguage"&&O.account.set("settings-contentTranslationTargetLanguage",s),/^settings\.contentTranslationHideLanguages/i.test(a.join("."))&&O.account.set("settings-contentTranslationHideLanguages",ie.settings.contentTranslationHideLanguages),a.join(".")==="settings.mediaAltGenerator"&&O.account.set("settings-mediaAltGenerator",!!s),(a==null?void 0:a[0])==="shortcuts"&&O.account.set("shortcuts",ie.shortcuts),a.join(".")==="settings.cloakMode"&&O.account.set("settings-cloakMode",!!s)});function De(t,n){if(t)return n?`${n}/${t}`:t}function ka(t,n){if(n){const a=De(t,n);return ie.statuses[a]}return ie.statuses[t]}function Re(t,n,a){typeof n=="object"&&(a=n,n=null);const{override:s=!0,skipThreading:o=!1,skipUnfurling:r=!1}=a||{};if(!t)return;const c=ka(t.id,n);!s&&c||ma(t,c)||(queueMicrotask(()=>{const l=De(t.id,n);if(c!=null&&c._pinned&&(t._pinned=c._pinned),ie.statuses[l]=t,t.reblog){const d=De(t.reblog.id,n);ie.statuses[d]=t.reblog}}),o||queueMicrotask(()=>{qo(t.reblog||t,n)}),r||queueMicrotask(()=>{Wo(t.reblog||t,n)}))}function Ko(t,n){const{masto:a,instance:s}=qe({instance:n});let o=0;async function r(c,l=0){const{inReplyToId:d,inReplyToAccountId:f}=c;if(!d||f!==c.account.id)return[c];if(d&&f!==c.account.id)throw"Not a thread";const m=De(d,s);let p=ie.statuses[m];if(!p){if(o++>3)throw"Too many fetches for thread";await new Promise(h=>setTimeout(h,500*o)),p=await Go(d,a),Re(p,s,{skipThreading:!0})}return[...await r(p,++l),c]}return r(t).then(c=>{c.length>1&&c.forEach((l,d)=>{const f=De(l.id,s);ie.statusThreadNumber[f]=d+1})}).catch(c=>{})}const qo=Vo(Ko,100),qn=document.createElement("div");function Wo(t,n){const{instance:a}=qe(),s=t==null?void 0:t.content;if(/{const d=l.href;return!(d===t.url||d===t.uri)&&ya(d)}).forEach((l,d)=>{_a(a,l.href).then(f=>{f&&r&&(Array.isArray(ie.statusQuotes[r])||(ie.statusQuotes[r]=[]),ie.statusQuotes[r][d]||ie.statusQuotes[r].splice(d,0,f))})})}}const Go=Bt((t,n)=>n.v1.statuses.$select(t).fetch());function Yo(t,n,a,s){const o=te(t);pe(()=>{o.current=t},[t,a]),pe(()=>{!s||n===null||n===!1||o.current()},[s]),pe(()=>{if(n===null||n===!1)return;const c=setInterval(()=>o.current(),n);return()=>clearInterval(c)},[n])}function wa(t){const n=new URL("/compose/",window.location),{width:a,height:s}=window.screen,o=Math.max(0,(a-600)/2),r=Math.max(0,(s-450)/2),c=Math.min(a,600),l=Math.min(s,450),d=(t==null?void 0:t.uid)||Math.random(),f=window.open(n,"compose"+d,`width=${c},height=${l},left=${o},top=${r}`);return f?f.__COMPOSE__=t:alert("Looks like your browser is blocking popups."),f}const Jo="modulepreload",Zo=function(t,n){return new URL(t,n).href},Wn={},w=function(n,a,s){let o=Promise.resolve();if(a&&a.length>0){const r=document.getElementsByTagName("link");o=Promise.all(a.map(c=>{if(c=Zo(c,s),c in Wn)return;Wn[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(!!s)for(let p=r.length-1;p>=0;p--){const h=r[p];if(h.href===c&&(!l||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const m=document.createElement("link");if(m.rel=l?"stylesheet":Jo,l||(m.as="script",m.crossOrigin=""),m.href=c,document.head.appendChild(m),l)return new Promise((p,h)=>{m.addEventListener("load",p),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>n()).catch(r=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=r,window.dispatchEvent(c),!c.defaultPrevented)throw r})},Xo={s:12,m:16,l:20,xl:24,xxl:32},Ea={x:()=>w(()=>import("./icons/close-line-YTE7hIJE.js"),__vite__mapDeps([]),import.meta.url),heart:()=>w(()=>import("./icons/heart-line-VwvWYh8h.js"),__vite__mapDeps([]),import.meta.url),bookmark:()=>w(()=>import("./icons/bookmark-line-D6jQ7QFs.js"),__vite__mapDeps([]),import.meta.url),"check-circle":()=>w(()=>import("./icons/check-circle-line-sE41WGxF.js"),__vite__mapDeps([]),import.meta.url),"x-circle":()=>w(()=>import("./icons/close-circle-line-qd3g541O.js"),__vite__mapDeps([]),import.meta.url),transfer:()=>w(()=>import("./icons/transfer-4-line-Q9QJoxz3.js"),__vite__mapDeps([]),import.meta.url),rocket:()=>w(()=>import("./icons/rocket-line-rZbVYYCZ.js"),__vite__mapDeps([]),import.meta.url),"arrow-left":()=>w(()=>import("./icons/arrow-left-line-_YC6-XGG.js"),__vite__mapDeps([]),import.meta.url),"arrow-right":()=>w(()=>import("./icons/arrow-right-line-PypiEqpu.js"),__vite__mapDeps([]),import.meta.url),"arrow-up":()=>w(()=>import("./icons/arrow-up-line-fcuKqhVE.js"),__vite__mapDeps([]),import.meta.url),"arrow-down":()=>w(()=>import("./icons/arrow-down-line-0TRJUP_K.js"),__vite__mapDeps([]),import.meta.url),earth:()=>w(()=>import("./icons/earth-line-t1Um8wpQ.js"),__vite__mapDeps([]),import.meta.url),lock:()=>w(()=>import("./icons/lock-line-0jNHqZpm.js"),__vite__mapDeps([]),import.meta.url),unlock:()=>w(()=>import("./icons/unlock-line-w3piJMVb.js"),__vite__mapDeps([]),import.meta.url),"eye-close":()=>w(()=>import("./icons/eye-close-line-lBiePPv9.js"),__vite__mapDeps([]),import.meta.url),"eye-open":()=>w(()=>import("./icons/eye-2-line-vz_Kw-rK.js"),__vite__mapDeps([]),import.meta.url),message:()=>w(()=>import("./icons/mail-line-5XLS6FEo.js"),__vite__mapDeps([]),import.meta.url),comment:()=>w(()=>import("./icons/chat-3-line-F0xcdpXY.js"),__vite__mapDeps([]),import.meta.url),comment2:()=>w(()=>import("./icons/comment-2-line-xEXuT-Ip.js"),__vite__mapDeps([]),import.meta.url),home:()=>w(()=>import("./icons/home-3-line-qJiZhXUH.js"),__vite__mapDeps([]),import.meta.url),notification:()=>w(()=>import("./icons/notification-line-olNPLtgS.js"),__vite__mapDeps([]),import.meta.url),follow:()=>w(()=>import("./icons/user-follow-line-k_GCWTtp.js"),__vite__mapDeps([]),import.meta.url),"follow-add":()=>w(()=>import("./icons/user-add-line-zzW9OULB.js"),__vite__mapDeps([]),import.meta.url),poll:[()=>w(()=>import("./icons/chart-bar-line-5r_DfN2w.js"),__vite__mapDeps([]),import.meta.url),"90deg"],pencil:()=>w(()=>import("./icons/pencil-line-bKXqElLR.js"),__vite__mapDeps([]),import.meta.url),quill:()=>w(()=>import("./icons/quill-pen-line-h_5-FsGz.js"),__vite__mapDeps([]),import.meta.url),at:()=>w(()=>import("./icons/at-line-9vJS_Hnl.js"),__vite__mapDeps([]),import.meta.url),attachment:()=>w(()=>import("./icons/attachment-line-C2PUa1Ke.js"),__vite__mapDeps([]),import.meta.url),upload:()=>w(()=>import("./icons/upload-3-line-Qsjvubiw.js"),__vite__mapDeps([]),import.meta.url),gear:()=>w(()=>import("./icons/settings-3-line-kt4MSpRv.js"),__vite__mapDeps([]),import.meta.url),more:()=>w(()=>import("./icons/more-3-line-wUD-Yhmj.js"),__vite__mapDeps([]),import.meta.url),more2:()=>w(()=>import("./icons/more-1-fill-je1-slyh.js"),__vite__mapDeps([]),import.meta.url),external:()=>w(()=>import("./icons/external-link-line-8nOOkmFu.js"),__vite__mapDeps([]),import.meta.url),popout:()=>w(()=>import("./icons/external-link-line-8nOOkmFu.js"),__vite__mapDeps([]),import.meta.url),popin:[()=>w(()=>import("./icons/external-link-line-8nOOkmFu.js"),__vite__mapDeps([]),import.meta.url),"180deg"],plus:()=>w(()=>import("./icons/add-circle-line--O-MfyNy.js"),__vite__mapDeps([]),import.meta.url),"chevron-left":()=>w(()=>import("./icons/left-line-Jck0yVmC.js"),__vite__mapDeps([]),import.meta.url),"chevron-right":()=>w(()=>import("./icons/right-line-7VBoqLdz.js"),__vite__mapDeps([]),import.meta.url),"chevron-down":()=>w(()=>import("./icons/down-line-9PeS5YhF.js"),__vite__mapDeps([]),import.meta.url),reply:[()=>w(()=>import("./icons/share-forward-line-4jL-2Q4u.js"),__vite__mapDeps([]),import.meta.url),"180deg","horizontal"],thread:()=>w(()=>import("./icons/route-line-2YYy3958.js"),__vite__mapDeps([]),import.meta.url),group:()=>w(()=>import("./icons/group-line-JvhJklhQ.js"),__vite__mapDeps([]),import.meta.url),bot:()=>w(()=>import("./icons/android-2-line-uPwvVubH.js"),__vite__mapDeps([]),import.meta.url),menu:()=>w(()=>import("./icons/rows-4-line-SxGPYpTa.js"),__vite__mapDeps([]),import.meta.url),list:()=>w(()=>import("./icons/list-check-line-qNqx9Mm4.js"),__vite__mapDeps([]),import.meta.url),search:()=>w(()=>import("./icons/search-2-line-G39AynEw.js"),__vite__mapDeps([]),import.meta.url),hashtag:()=>w(()=>import("./icons/hashtag-line-SS3QMu1R.js"),__vite__mapDeps([]),import.meta.url),info:()=>w(()=>import("./icons/information-line-8SOch6cR.js"),__vite__mapDeps([]),import.meta.url),shortcut:()=>w(()=>import("./icons/lightning-line-JMYUlCZM.js"),__vite__mapDeps([]),import.meta.url),user:()=>w(()=>import("./icons/user-4-line-zT_bpOrS.js"),__vite__mapDeps([]),import.meta.url),following:()=>w(()=>import("./icons/walk-line-CF7a5s4t.js"),__vite__mapDeps([]),import.meta.url),pin:()=>w(()=>import("./icons/pin-line-ULyRQyWZ.js"),__vite__mapDeps([]),import.meta.url),bus:()=>w(()=>import("./icons/bus-2-line-XuQdDZ_w.js"),__vite__mapDeps([]),import.meta.url),link:()=>w(()=>import("./icons/link-2-line-BUqp1EwN.js"),__vite__mapDeps([]),import.meta.url),history:()=>w(()=>import("./icons/history-line-yoG7K8wL.js"),__vite__mapDeps([]),import.meta.url),share:()=>w(()=>import("./icons/share-2-line-PYo-zN94.js"),__vite__mapDeps([]),import.meta.url),sparkles:()=>w(()=>import("./icons/sparkles-line-wjZWGZ1a.js"),__vite__mapDeps([]),import.meta.url),sparkles2:()=>w(()=>import("./icons/sparkles-2-line-g2FqdZ0R.js"),__vite__mapDeps([]),import.meta.url),exit:()=>w(()=>import("./icons/exit-line-l-1uUgI7.js"),__vite__mapDeps([]),import.meta.url),translate:()=>w(()=>import("./icons/translate-line-HpDtlqS2.js"),__vite__mapDeps([]),import.meta.url),play:()=>w(()=>import("./icons/play-fill-Ey-zv2eL.js"),__vite__mapDeps([]),import.meta.url),trash:()=>w(()=>import("./icons/delete-2-line-pjUduCFs.js"),__vite__mapDeps([]),import.meta.url),mute:()=>w(()=>import("./icons/volume-mute-line-WthBoXru.js"),__vite__mapDeps([]),import.meta.url),unmute:()=>w(()=>import("./icons/volume-line-PZujbN8h.js"),__vite__mapDeps([]),import.meta.url),block:()=>w(()=>import("./icons/forbid-circle-line-3FxopGoP.js"),__vite__mapDeps([]),import.meta.url),unblock:[()=>w(()=>import("./icons/forbid-circle-line-3FxopGoP.js"),__vite__mapDeps([]),import.meta.url),"180deg"],flag:()=>w(()=>import("./icons/flag-4-line-M3u-PO0J.js"),__vite__mapDeps([]),import.meta.url),time:()=>w(()=>import("./icons/time-line-ThP0kTRr.js"),__vite__mapDeps([]),import.meta.url),refresh:()=>w(()=>import("./icons/refresh-2-line-t42qqclb.js"),__vite__mapDeps([]),import.meta.url),emoji2:()=>w(()=>import("./icons/emoji-2-line--uNVc2IC.js"),__vite__mapDeps([]),import.meta.url),filter:()=>w(()=>import("./icons/filter-2-line-KyjbFYlO.js"),__vite__mapDeps([]),import.meta.url),chart:()=>w(()=>import("./icons/chart-line-line-pHaLt6yC.js"),__vite__mapDeps([]),import.meta.url),react:()=>w(()=>import("./icons/react-line-YfZPqZem.js"),__vite__mapDeps([]),import.meta.url),layout4:()=>w(()=>import("./icons/layout-4-line-FOdnyEcZ.js"),__vite__mapDeps([]),import.meta.url),layout5:()=>w(()=>import("./icons/layout-5-line-9Kks7dle.js"),__vite__mapDeps([]),import.meta.url),announce:()=>w(()=>import("./icons/announcement-line-MSlAmDH1.js"),__vite__mapDeps([]),import.meta.url),alert:()=>w(()=>import("./icons/alert-line-zyc6hy8V.js"),__vite__mapDeps([]),import.meta.url),round:()=>w(()=>import("./icons/round-fill-a0rplSmV.js"),__vite__mapDeps([]),import.meta.url),"arrow-up-circle":()=>w(()=>import("./icons/arrow-up-circle-line-e3kZqEZN.js"),__vite__mapDeps([]),import.meta.url),"arrow-down-circle":()=>w(()=>import("./icons/arrow-down-circle-line-mpqFtRtO.js"),__vite__mapDeps([]),import.meta.url),clipboard:()=>w(()=>import("./icons/clipboard-line-9F_Yeo71.js"),__vite__mapDeps([]),import.meta.url),"account-edit":()=>w(()=>import("./icons/user-edit-line-9VnWCh0X.js"),__vite__mapDeps([]),import.meta.url),"account-warning":()=>w(()=>import("./icons/user-warning-line-gL3RGb1N.js"),__vite__mapDeps([]),import.meta.url),keyboard:()=>w(()=>import("./icons/keyboard-line-10AZQcVH.js"),__vite__mapDeps([]),import.meta.url),cloud:()=>w(()=>import("./icons/cloud-line-abe0HgFS.js"),__vite__mapDeps([]),import.meta.url),month:()=>w(()=>import("./icons/calendar-month-line-VoXZVWAe.js"),__vite__mapDeps([]),import.meta.url),media:()=>w(()=>import("./icons/photo-album-line--GdJqjfq.js"),__vite__mapDeps([]),import.meta.url),speak:()=>w(()=>import("./icons/radar-line-ndI8IhOG.js"),__vite__mapDeps([]),import.meta.url),building:()=>w(()=>import("./icons/building-5-line-ew7lu83B.js"),__vite__mapDeps([]),import.meta.url)},Gn={},Qo=fn(function({size:t,width:n,height:a,body:s,rotate:o,flip:r}){return e("svg",{width:t,height:t,viewBox:`0 0 ${n} ${a}`,dangerouslySetInnerHTML:{__html:s},style:{transform:`${o?`rotate(${o})`:""} ${r?"scaleX(-1)":""}`}})},{isShallowEqual:!0,maxSize:Object.keys(Ea).length});function x({icon:t,size:n="m",alt:a,title:s,class:o="",style:r={}}){if(!t)return null;const c=Xo[n];let l=Ea[t];if(!l)return null;let d,f;Array.isArray(l)&&([l,d,f]=l);const[m,p]=Q(Gn[t]),h=te(t);return pe(()=>{m&&h.current===t||((async()=>{const g=await l();p(g.default),Gn[t]=g.default})(),h.current=t)},[t]),e("span",{class:`icon ${o}`,title:s||a,style:{width:`${c}px`,height:`${c}px`,...r},children:m&&e(Qo,{size:c,width:m.width,height:m.height,body:m.body,rotate:d,flip:f})})}function ei(t,n=[]){!t||typeof t!="function"||pe(()=>{const a=new CloseWatcher;return a.addEventListener("close",t),()=>{a.destroy()}},n)}const xa=window.CloseWatcher?ei:()=>{},ti=document.getElementById("modal-container");function Vt({children:t,onClose:n,onClick:a,class:s}){if(!t)return null;const o=te();pe(()=>{let d=setTimeout(()=>{var m;const f=(m=o.current)==null?void 0:m.querySelector('[tabindex="-1"]');f&&f.focus()},100);return()=>clearTimeout(d)},[]);const r=window.CloseWatcher,c=je("esc",()=>{setTimeout(()=>{n==null||n()},0)},{enabled:!r&&!!n,keydown:!1,keyup:!0},[n]);xa(n,[n]);const l=e("div",{ref:d=>{var f;o.current=d,c.current=((f=d==null?void 0:d.querySelector)==null?void 0:f.call(d,'[tabindex="-1"]'))||d},className:s,onClick:d=>{a==null||a(d),d.target===d.currentTarget&&(n==null||n(d))},tabIndex:"-1",onFocus:d=>{var f,m,p,h;d.target===d.currentTarget&&((h=(p=(m=(f=o.current)==null?void 0:f.querySelector)==null?void 0:m.call(f,'[tabindex="-1"]'))==null?void 0:p.focus)==null||h.call(p))},children:t});return ao(l,ti)}function jt({abrupt:t,hidden:n,...a}){return e("span",{...a,class:`loader-container ${t?"abrupt":""} ${n?"hidden":""}`,children:e("span",{class:"loader"})})}const Yn={s:16,m:20,l:24,xl:32,xxl:50,xxxl:64},ut={},mt=window.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas"),nn=mt.getContext("2d",{willReadFrequently:!0});function ni({url:t,size:n,alt:a="",squircle:s,...o}){n=Yn[n]||n||Yn.m;const r=te(),c=/missing\.png$/.test(t);return e("span",{ref:r,class:`avatar ${s?"squircle":""} ${ut[t]?"has-alpha":""}`,style:{width:n,height:n},title:a,...o,children:!!t&&e("img",{src:t,width:n,height:n,alt:a,loading:"lazy",decoding:"async",crossOrigin:ut[t]===void 0&&!c?"anonymous":void 0,onError:l=>{l.target.crossOrigin&&(l.target.crossOrigin=null,l.target.src=t)},onLoad:l=>{r.current&&(r.current.dataset.loaded=!0),ut[t]===void 0&&(c||queueMicrotask(()=>{try{const{width:d,height:f}=l.target;mt.width!==d&&(mt.width=d),mt.height!==f&&(mt.height=f),nn.drawImage(l.target,0,0);const m=nn.getImageData(0,0,d,f),p=m.data.filter((h,g)=>g%4===3&&h<=128).length/(m.data.length/4)>.1;p&&r.current.classList.add("has-alpha"),ut[t]=p,nn.clearRect(0,0,d,f)}catch{ut[t]=!1}}))}})})}const Qe=We(ni),at=ha((t,n)=>{let a;try{a=oo()}catch{}let s=(location.hash||"").replace(/^#/,"").trim();s===""&&(s="/");const{to:o,...r}=t;if(s&&s!=="/"&&s.includes("?"))try{const l=new URL(s,location.origin);if(l.searchParams.size){const d=Array.from(l.searchParams.entries()).map(([f,m])=>`${f}=${encodeURIComponent(m)}`).join("&");s=l.pathname+"?"+d}}catch{}const c=s===o||decodeURIComponent(s)===o;return e("a",{ref:n,href:`#${o}`,...r,class:`${t.class||""} ${c?"is-active":""}`,onClick:l=>{var d,f,m;(f=(d=l.currentTarget)==null?void 0:d.parentNode)!=null&&f.closest("a")&&l.stopPropagation(),a&&(M.prevLocation=a),(m=t.onClick)==null||m.call(t,l)}})}),ai=document.documentElement,$t=getComputedStyle(ai),oi=8;let Ta=[0,0,0,0];function La(){const t=$t.getPropertyValue("--sai-top"),n=$t.getPropertyValue("--sai-right"),a=$t.getPropertyValue("--sai-bottom"),s=$t.getPropertyValue("--sai-left");Ta=[Math.max(0,parseInt(t,10)),Math.max(0,parseInt(n,10)),Math.max(0,parseInt(a,10)),Math.max(0,parseInt(s,10))]}requestAnimationFrame(La);function Aa(t=[]){return Ta.map((a,s)=>(a||oi)+(t[s]||0)).join(" ")}CSS.supports("top: env(safe-area-inset-top)")&&window.addEventListener("resize",La,{passive:!0});function bn(t){const{containerProps:n,instanceRef:a}=t,s=io(),o=a!=null&&a.current?a:te();return e(ro,{boundingBoxPadding:Aa(),repositionFlag:`${s.width}x${s.height}`,unmountOnClose:!0,...t,instanceRef:o,containerProps:{onClick:r=>{var c,l,d;r.target===r.currentTarget&&((l=(c=o.current)==null?void 0:c.closeMenu)==null||l.call(c)),(d=n==null?void 0:n.onClick)==null||d.call(n,r)},...n}})}function an({subMenu:t=!1,confirm:n=!0,confirmLabel:a,menuItemClassName:s,menuFooter:o,...r}){const{children:c,onClick:l,...d}=r;if(!n)return t?e(Ee,{...r}):l?so(c,{onClick:l}):c;const f=t?co:bn,m=te();return e(f,{instanceRef:m,openTrigger:"clickOnly",direction:"bottom",overflow:"auto",gap:-8,shift:8,menuClassName:"menu-emphasized",...d,menuButton:t?void 0:c,label:t?c:void 0,itemProps:{onPointerMove:p=>{var h,g;p.pointerType==="touch"&&((g=(h=m.current)==null?void 0:h.openMenu)==null||g.call(h))},onPointerLeave:p=>{var h,g;p.pointerType==="touch"&&((g=(h=m.current)==null?void 0:h.openMenu)==null||g.call(h))}},children:[e(Ee,{className:s,onClick:l,children:a}),o]})}function bt({text:t,emojis:n}){if(!t)return"";if(!(n!=null&&n.length)||t.indexOf(":")===-1)return t;const a=new RegExp(`:(${n.map(o=>o.shortcode).join("|")}):`,"g");return t.split(a).map(o=>{const r=n.find(c=>c.shortcode===o);if(r){const{url:c,staticUrl:l}=r;return e("picture",{children:[e("source",{srcset:l,media:"(prefers-reduced-motion: reduce)"}),e("img",{src:c,alt:o,class:"shortcode-emoji emoji",width:"16",height:"16",loading:"lazy",decoding:"async"},o)]})}return o})}const ii=new Intl.Collator("en",{sensitivity:"base"});function ri({account:t,instance:n,showAvatar:a,showAcct:s,short:o,external:r,onClick:c}){const{acct:l,avatar:d,avatarStatic:f,id:m,url:p,displayName:h,emojis:g,bot:y}=t;let{username:v}=t;const[k,_,b]=l.match(/([^@]+)(@.+)/i)||[,l],T=v.toLowerCase().trim(),I=(h||"").toLowerCase().trim(),A=I.replace(/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g,"").replace(/\s+/g,""),L=A.replace(/[^a-z0-9]/gi,"");return!o&&(T===I||T===A||T===L||ii.compare(T,A)===0)&&(v=null),e("a",{class:`name-text ${s?"show-acct":""} ${o?"short":""}`,href:p,target:r?"_blank":null,title:`${h?`${h} `:""}@${l}`,onClick:C=>{if(!r){if(C.preventDefault(),C.stopPropagation(),c)return c(C);M.showAccount={account:t,instance:n}}},children:[a&&e(W,{children:[e(Qe,{url:f||d,squircle:y})," "]}),h&&!o?e(W,{children:[e("b",{children:e(bt,{text:h,emojis:g})}),!s&&v&&e(W,{children:[" ",e("i",{children:["@",v]})]})]}):o?e("i",{children:v}):e("b",{children:v}),s&&e(W,{children:[e("br",{}),e("i",{children:["@",_,e("span",{class:"ib",children:b})]})]})]})}const ht=gn(ri);vt.extend(lo);vt.extend(uo);vt.extend(mo);const si=new Intl.DateTimeFormat;function yt({datetime:t,format:n}){if(!t)return null;const a=vt(t);let s;if(n==="micro"){const o=vt();o.diff(a,"day")<=1||o.year()===a.year()?s=a.twitter():s=si.format(a.toDate())}else s=a.fromNow();return e("time",{datetime:a.toISOString(),title:a.format("LLLL"),children:s})}const ci=[{code:"af",name:"Afrikaans"},{code:"sq",name:"Albanian"},{code:"am",name:"Amharic"},{code:"ar",name:"Arabic"},{code:"hy",name:"Armenian"},{code:"as",name:"Assamese"},{code:"ay",name:"Aymara"},{code:"az",name:"Azerbaijani"},{code:"bm",name:"Bambara"},{code:"eu",name:"Basque"},{code:"be",name:"Belarusian"},{code:"bn",name:"Bengali"},{code:"bho",name:"Bhojpuri"},{code:"bs",name:"Bosnian"},{code:"bg",name:"Bulgarian"},{code:"ca",name:"Catalan"},{code:"ceb",name:"Cebuano"},{code:"ny",name:"Chichewa"},{code:"zh",name:"Chinese"},{code:"zh_HANT",name:"Chinese (Traditional)"},{code:"co",name:"Corsican"},{code:"hr",name:"Croatian"},{code:"cs",name:"Czech"},{code:"da",name:"Danish"},{code:"dv",name:"Dhivehi"},{code:"doi",name:"Dogri"},{code:"nl",name:"Dutch"},{code:"en",name:"English"},{code:"eo",name:"Esperanto"},{code:"et",name:"Estonian"},{code:"ee",name:"Ewe"},{code:"tl",name:"Filipino"},{code:"fi",name:"Finnish"},{code:"fr",name:"French"},{code:"fy",name:"Frisian"},{code:"gl",name:"Galician"},{code:"ka",name:"Georgian"},{code:"de",name:"German"},{code:"el",name:"Greek"},{code:"gn",name:"Guarani"},{code:"gu",name:"Gujarati"},{code:"ht",name:"Haitian Creole"},{code:"ha",name:"Hausa"},{code:"haw",name:"Hawaiian"},{code:"iw",name:"Hebrew"},{code:"hi",name:"Hindi"},{code:"hmn",name:"Hmong"},{code:"hu",name:"Hungarian"},{code:"is",name:"Icelandic"},{code:"ig",name:"Igbo"},{code:"ilo",name:"Ilocano"},{code:"id",name:"Indonesian"},{code:"ga",name:"Irish"},{code:"it",name:"Italian"},{code:"ja",name:"Japanese"},{code:"jw",name:"Javanese"},{code:"kn",name:"Kannada"},{code:"kk",name:"Kazakh"},{code:"km",name:"Khmer"},{code:"rw",name:"Kinyarwanda"},{code:"gom",name:"Konkani"},{code:"ko",name:"Korean"},{code:"kri",name:"Krio"},{code:"ku",name:"Kurdish (Kurmanji)"},{code:"ckb",name:"Kurdish (Sorani)"},{code:"ky",name:"Kyrgyz"},{code:"lo",name:"Lao"},{code:"la",name:"Latin"},{code:"lv",name:"Latvian"},{code:"ln",name:"Lingala"},{code:"lt",name:"Lithuanian"},{code:"lg",name:"Luganda"},{code:"lb",name:"Luxembourgish"},{code:"mk",name:"Macedonian"},{code:"mai",name:"Maithili"},{code:"mg",name:"Malagasy"},{code:"ms",name:"Malay"},{code:"ml",name:"Malayalam"},{code:"mt",name:"Maltese"},{code:"mi",name:"Maori"},{code:"mr",name:"Marathi"},{code:"mni-Mtei",name:"Meiteilon (Manipuri)"},{code:"lus",name:"Mizo"},{code:"mn",name:"Mongolian"},{code:"my",name:"Myanmar (Burmese)"},{code:"ne",name:"Nepali"},{code:"no",name:"Norwegian"},{code:"or",name:"Odia (Oriya)"},{code:"om",name:"Oromo"},{code:"ps",name:"Pashto"},{code:"fa",name:"Persian"},{code:"pl",name:"Polish"},{code:"pt",name:"Portuguese"},{code:"pa",name:"Punjabi"},{code:"qu",name:"Quechua"},{code:"ro",name:"Romanian"},{code:"ru",name:"Russian"},{code:"sm",name:"Samoan"},{code:"sa",name:"Sanskrit"},{code:"gd",name:"Scots Gaelic"},{code:"nso",name:"Sepedi"},{code:"sr",name:"Serbian"},{code:"st",name:"Sesotho"},{code:"sn",name:"Shona"},{code:"sd",name:"Sindhi"},{code:"si",name:"Sinhala"},{code:"sk",name:"Slovak"},{code:"sl",name:"Slovenian"},{code:"so",name:"Somali"},{code:"es",name:"Spanish"},{code:"su",name:"Sundanese"},{code:"sw",name:"Swahili"},{code:"sv",name:"Swedish"},{code:"tg",name:"Tajik"},{code:"ta",name:"Tamil"},{code:"tt",name:"Tatar"},{code:"te",name:"Telugu"},{code:"th",name:"Thai"},{code:"ti",name:"Tigrinya"},{code:"ts",name:"Tsonga"},{code:"tr",name:"Turkish"},{code:"tk",name:"Turkmen"},{code:"ak",name:"Twi"},{code:"uk",name:"Ukrainian"},{code:"ur",name:"Urdu"},{code:"ug",name:"Uyghur"},{code:"uz",name:"Uzbek"},{code:"vi",name:"Vietnamese"},{code:"cy",name:"Welsh"},{code:"xh",name:"Xhosa"},{code:"yi",name:"Yiddish"},{code:"yo",name:"Yoruba"},{code:"zu",name:"Zulu"}];function li(...t){try{return ho(...t)}catch{return t[2]||!1}}const Ot=We(li),ui=[new Intl.DateTimeFormat().resolvedOptions().locale,...navigator.languages],di=Ot(ui,ci.map(t=>t.code.replace("_","-")),"en");function Ca(t=!1){if(t){const{contentTranslationTargetLanguage:n}=M.settings;if(n)return n}return di}function on(t){try{return new Intl.DisplayNames(navigator.languages,{type:"language"}).of(t)}catch{return null}}function yn(t,n=[]){return t?(!n.length||t.indexOf(":")===-1||n.forEach(a=>{const{shortcode:s,staticUrl:o,url:r}=a;t=t.replace(new RegExp(`:${s}:`,"g"),``)}),t):""}const tt=document.createElement("div"),mi=["u-url","mention","hashtag"];function hi(t,n={}){const{emojis:a,postEnhanceDOM:s=()=>{}}=n;let o=t;const r=document.createElement("div");r.innerHTML=o;const c=/{p.setAttribute("target","_blank")}),r.querySelectorAll("a[class]").forEach(p=>{p.classList.forEach(h=>{mi.includes(h)||p.classList.remove(h)})})),c&&r.querySelectorAll("a[href]").forEach(m=>{/^https?:\/\//i.test(m.textContent.trim())&&m.classList.add("has-url-text")}),c){const f=r.querySelectorAll("a[href]"),m=[];f.forEach(p=>{const h=p.innerText.trim(),g=p.querySelector("*");if(/^@[^@]+(@[^@]+)?$/g.test(h)){const[y,v,k]=h.split("@");g||(!m.some(([_])=>_===v)||m.some(([_,b])=>_===v&&b===k)?(p.innerHTML=`@${v}`,m.push([v,k])):p.innerHTML=`@${v}@${k}`),p.classList.add("mention")}/^#[^#]+$/g.test(h)&&(g||(p.innerHTML=`#${h.slice(1)}`),p.classList.add("mention","hashtag"))})}let d;if(o.includes(":")&&(d=rn(r),d.forEach(f=>{let m=f.nodeValue.replace(/&/g,"&").replace(//g,">");a&&(m=yn(m,a)),tt.innerHTML=m,f.replaceWith(...tt.childNodes)})),l&&[...r.querySelectorAll("p")].filter(m=>/^```[^]+```$/g.test(m.innerText.trim())).forEach(m=>{const p=document.createElement("pre");m.querySelectorAll("br").forEach(h=>h.replaceWith(`
`)),p.innerHTML=`${m.innerHTML.trim()}
`,m.replaceWith(p)}),l&&[...r.querySelectorAll("p")].filter(p=>/^```/g.test(p.innerText)).forEach(p=>{const h=[p];let g=!1,y=p;for(;y.nextElementSibling;){const v=y.nextElementSibling;if(v&&v.tagName==="P")if(/```$/g.test(v.innerText)){h.push(v),g=!0;break}else h.push(v);else break;y=v}if(g){const v=document.createElement("pre");h.forEach(_=>{_.querySelectorAll("br").forEach(b=>b.replaceWith(`
`))});const k=h.map(_=>_.innerHTML).join(`
`);v.innerHTML=`${k}
`,p.replaceWith(v),h.forEach(_=>_.remove())}}),o.includes("`")&&(d=rn(r),d.forEach(f=>{let m=f.nodeValue.replace(/&/g,"&").replace(//g,">");/`[^`]+`/g.test(m)&&(m=m.replaceAll(/(`[^]+?`)/g,"$1
")),tt.innerHTML=m,f.replaceWith(...tt.childNodes)})),/twitter\.com/i.test(o)&&(d=rn(r,{rejectFilter:["A"]}),d.forEach(f=>{let m=f.nodeValue.replace(/&/g,"&").replace(//g,">");/@[a-zA-Z0-9_]+@twitter\.com/g.test(m)&&(m=m.replaceAll(/(@([a-zA-Z0-9_]+)@twitter\.com)/g,'$1')),tt.innerHTML=m,f.replaceWith(...tt.childNodes)})),o.includes("#")){let f=null;const m=[...r.querySelectorAll("p")].filter((p,h)=>{let g=0;for(let y=0;y
3||g>1&&f&&h===f+1)return f=h,!0});m!=null&&m.length&&m.forEach(p=>{p.classList.add("hashtag-stuffing"),p.title=p.innerText})}return s&&queueMicrotask(()=>s(r)),o=r.innerHTML,o}const Fa=We(hi),pi=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],fi=Object.fromEntries(pi.map(t=>[t,!0]));function rn(t,n={}){var c;const a=[],s=Object.assign({},fi,(c=n.rejectFilter)==null?void 0:c.reduce((l,d)=>(l[d]=!0,l),{})),o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode(l){return s[l.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let r;for(;r=o.nextNode();)a.push(r);return a}const dt=document.createElement("div");function gi(t){return t?(dt.innerHTML=t.replace(/<\/p>/g,`
`).replace(/<\/li>/g,`
`),dt.querySelectorAll("br").forEach(n=>{n.replaceWith(`
`)}),dt.querySelectorAll(".invisible").forEach(n=>{n.remove()}),dt.querySelectorAll(".ellipsis").forEach(n=>{n.append("...")}),dt.innerText.replace(/[\r\n]{3,}/g,`
`).trim()):""}const _n=We(gi);function vi(t){const{mentions:n=[],instance:a,previewMode:s,statusURL:o}=t||{};return r=>{var m,p;let{target:c}=r;if(c=c.closest("a"),!c||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||r.which===2)return;const l=(m=c.previousSibling)==null?void 0:m.textContent,d=l==null?void 0:l.endsWith("@"),f=c.innerText.startsWith("@");if(c.classList.contains("u-url")&&f||d&&!f){const h=(c.querySelector("span")||c).innerText.trim(),g=h.replace(/^@/,""),y=c.getAttribute("href"),v=n.find(k=>k.username===g||k.acct===g||k.url===y);if(v)r.preventDefault(),r.stopPropagation(),M.showAccount={account:v.acct,instance:a};else if(!/^http/i.test(h)){r.preventDefault(),r.stopPropagation();const k=c.getAttribute("href");M.showAccount={account:k,instance:a}}}else if(!s){const h=l==null?void 0:l.endsWith("#");if(c.classList.contains("hashtag")||h){r.preventDefault(),r.stopPropagation();const g=c.innerText.replace(/^#/,"").trim(),y=a?`#/${a}/t/${g}`:`#/t/${g}`;location.hash=y}else(p=M.unfurledLinks[c.href])!=null&&p.url&&o!==c.href&&(r.preventDefault(),r.stopPropagation(),M.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${M.unfurledLinks[c.href].url}`)}}}const{locale:bi}=new Intl.DateTimeFormat().resolvedOptions(),yi=t=>{const{dateYear:n,hideTime:a,formatOpts:s}=t||{},o=new Date().getFullYear();return Intl.DateTimeFormat(bi,{year:n===o?void 0:"numeric",month:"short",day:"numeric",hour:a?void 0:"numeric",minute:a?void 0:"numeric",...s})},_i=We(yi);function zt(t,n){return t instanceof Date||(t=new Date(t)),_i({dateYear:t.getFullYear(),...n}).format(t)}const{locale:ki}=Intl.NumberFormat().resolvedOptions(),Ke=Intl.NumberFormat(ki,{notation:"compact"}).format;function wi({skeleton:t,account:n,avatarSize:a="xl",useAvatarStatic:s=!1,instance:o,external:r,internal:c,onClick:l,showActivity:d=!1,showStats:f=!1,accountInstance:m,hideDisplayName:p=!1,relationship:h={},excludeRelationshipAttrs:g=[]}){if(t)return e("div",{class:"account-block skeleton",children:[e(Qe,{size:a}),e("span",{children:[e("b",{children:"████████"}),e("br",{}),e("span",{class:"account-block-acct",children:"@██████"})]})]});if(!n)return null;const{id:y,acct:v,avatar:k,avatarStatic:_,displayName:b,username:T,emojis:I,url:A,statusesCount:L,lastStatusAt:C,bot:F,fields:Y,note:V,group:N,followersCount:j}=n;let[J,Z,le]=v.match(/([^@]+)(@.+)/i)||[,v];m&&(le=`@${m}`);const fe=Y==null?void 0:Y.find(G=>!!G.verifiedAt&&!!G.value),q={};for(const G in h)g.includes(G)||(q[G]=h[G]);const B=q.following||q.followedBy||q.requested;return e("a",{class:"account-block",href:A,target:r?"_blank":null,title:`@${v}`,onClick:G=>{if(!r){if(G.preventDefault(),l)return l(G);c?location.hash=`/${o}/a/${y}`:M.showAccount={account:n,instance:o}}},children:[e(Qe,{url:s?_:k||_,size:a,squircle:F}),e("span",{class:"account-block-content",children:[!p&&e(W,{children:b?e("b",{children:e(bt,{text:b,emojis:I})}):e("b",{children:T})})," ",e("span",{class:"account-block-acct",children:["@",Z,e("wbr",{}),le]}),d&&e(W,{children:[e("br",{}),e("small",{class:"last-status-at insignificant",children:["Posts: ",L,!!C&&e(W,{children:[" ","· Last posted:"," ",zt(C,{hideTime:!0})]})]})]}),f&&e("div",{class:"account-block-stats",children:[F&&e(W,{children:e("span",{class:"tag collapsed",children:[e(x,{icon:"bot"})," Automated"]})}),!!N&&e(W,{children:e("span",{class:"tag collapsed",children:[e(x,{icon:"group"})," Group"]})}),B&&e("div",{class:"shazam-container-horizontal",children:e("div",{class:"shazam-container-inner",children:q.following&&q.followedBy?e("span",{class:"tag minimal",children:"Mutual"}):q.requested?e("span",{class:"tag minimal",children:"Requested"}):q.following?e("span",{class:"tag minimal",children:"Following"}):q.followedBy?e("span",{class:"tag minimal",children:"Follows you"}):null})},h.id),!!j&&e("span",{class:"ib",children:[Ke(j)," ",j===1?"follower":"followers"]}),!!fe&&e("span",{class:"verified-field",children:[e(x,{icon:"check-circle",size:"s"})," ",e("span",{dangerouslySetInnerHTML:{__html:Fa(fe.value,{emojis:I})}})]})]})]})]})}const Ei={"@mastodon/edit-media-attributes":">=4.1","@mastodon/list-exclusive":">=4.2"},sn={};function Sa(t){try{const{version:n,domain:a}=ba(),s=`${a}-${t}`;if(sn[s])return sn[s];const o=Ei[t];return o?sn[s]=po(n,o,{includePrerelease:!0,loose:!0}):!1}catch{return!1}}const xi=[{code:"auto",name:"Detect"},{code:"af",name:"Afrikaans"},{code:"sq",name:"Albanian"},{code:"am",name:"Amharic"},{code:"ar",name:"Arabic"},{code:"hy",name:"Armenian"},{code:"as",name:"Assamese"},{code:"ay",name:"Aymara"},{code:"az",name:"Azerbaijani"},{code:"bm",name:"Bambara"},{code:"eu",name:"Basque"},{code:"be",name:"Belarusian"},{code:"bn",name:"Bengali"},{code:"bho",name:"Bhojpuri"},{code:"bs",name:"Bosnian"},{code:"bg",name:"Bulgarian"},{code:"ca",name:"Catalan"},{code:"ceb",name:"Cebuano"},{code:"ny",name:"Chichewa"},{code:"zh",name:"Chinese"},{code:"co",name:"Corsican"},{code:"hr",name:"Croatian"},{code:"cs",name:"Czech"},{code:"da",name:"Danish"},{code:"dv",name:"Dhivehi"},{code:"doi",name:"Dogri"},{code:"nl",name:"Dutch"},{code:"en",name:"English"},{code:"eo",name:"Esperanto"},{code:"et",name:"Estonian"},{code:"ee",name:"Ewe"},{code:"tl",name:"Filipino"},{code:"fi",name:"Finnish"},{code:"fr",name:"French"},{code:"fy",name:"Frisian"},{code:"gl",name:"Galician"},{code:"ka",name:"Georgian"},{code:"de",name:"German"},{code:"el",name:"Greek"},{code:"gn",name:"Guarani"},{code:"gu",name:"Gujarati"},{code:"ht",name:"Haitian Creole"},{code:"ha",name:"Hausa"},{code:"haw",name:"Hawaiian"},{code:"iw",name:"Hebrew"},{code:"hi",name:"Hindi"},{code:"hmn",name:"Hmong"},{code:"hu",name:"Hungarian"},{code:"is",name:"Icelandic"},{code:"ig",name:"Igbo"},{code:"ilo",name:"Ilocano"},{code:"id",name:"Indonesian"},{code:"ga",name:"Irish"},{code:"it",name:"Italian"},{code:"ja",name:"Japanese"},{code:"jw",name:"Javanese"},{code:"kn",name:"Kannada"},{code:"kk",name:"Kazakh"},{code:"km",name:"Khmer"},{code:"rw",name:"Kinyarwanda"},{code:"gom",name:"Konkani"},{code:"ko",name:"Korean"},{code:"kri",name:"Krio"},{code:"ku",name:"Kurdish (Kurmanji)"},{code:"ckb",name:"Kurdish (Sorani)"},{code:"ky",name:"Kyrgyz"},{code:"lo",name:"Lao"},{code:"la",name:"Latin"},{code:"lv",name:"Latvian"},{code:"ln",name:"Lingala"},{code:"lt",name:"Lithuanian"},{code:"lg",name:"Luganda"},{code:"lb",name:"Luxembourgish"},{code:"mk",name:"Macedonian"},{code:"mai",name:"Maithili"},{code:"mg",name:"Malagasy"},{code:"ms",name:"Malay"},{code:"ml",name:"Malayalam"},{code:"mt",name:"Maltese"},{code:"mi",name:"Maori"},{code:"mr",name:"Marathi"},{code:"mni-Mtei",name:"Meiteilon (Manipuri)"},{code:"lus",name:"Mizo"},{code:"mn",name:"Mongolian"},{code:"my",name:"Myanmar (Burmese)"},{code:"ne",name:"Nepali"},{code:"no",name:"Norwegian"},{code:"or",name:"Odia (Oriya)"},{code:"om",name:"Oromo"},{code:"ps",name:"Pashto"},{code:"fa",name:"Persian"},{code:"pl",name:"Polish"},{code:"pt",name:"Portuguese"},{code:"pa",name:"Punjabi"},{code:"qu",name:"Quechua"},{code:"ro",name:"Romanian"},{code:"ru",name:"Russian"},{code:"sm",name:"Samoan"},{code:"sa",name:"Sanskrit"},{code:"gd",name:"Scots Gaelic"},{code:"nso",name:"Sepedi"},{code:"sr",name:"Serbian"},{code:"st",name:"Sesotho"},{code:"sn",name:"Shona"},{code:"sd",name:"Sindhi"},{code:"si",name:"Sinhala"},{code:"sk",name:"Slovak"},{code:"sl",name:"Slovenian"},{code:"so",name:"Somali"},{code:"es",name:"Spanish"},{code:"su",name:"Sundanese"},{code:"sw",name:"Swahili"},{code:"sv",name:"Swedish"},{code:"tg",name:"Tajik"},{code:"ta",name:"Tamil"},{code:"tt",name:"Tatar"},{code:"te",name:"Telugu"},{code:"th",name:"Thai"},{code:"ti",name:"Tigrinya"},{code:"ts",name:"Tsonga"},{code:"tr",name:"Turkish"},{code:"tk",name:"Turkmen"},{code:"ak",name:"Twi"},{code:"uk",name:"Ukrainian"},{code:"ur",name:"Urdu"},{code:"ug",name:"Uyghur"},{code:"uz",name:"Uzbek"},{code:"vi",name:"Vietnamese"},{code:"cy",name:"Welsh"},{code:"xh",name:"Xhosa"},{code:"yi",name:"Yiddish"},{code:"yo",name:"Yoruba"},{code:"zu",name:"Zulu"}];var Ti={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{PHANPY_LINGVA_INSTANCES:Jn}=Ti,gt=Jn?Jn.split(/\s+/):[],Li=ua({limit:1,interval:2e3});let cn=0;function Ai(t,n,a){return fo(()=>{let o=gt[cn];return fetch(`https://${o}/api/v1/${n}/${a}/${encodeURIComponent(t)}`).then(r=>{if(!r.ok)throw new Error(r.statusText);return r.json()}).then(r=>{var c;return{provider:"lingva",content:r.translation,detectedSourceLanguage:(c=r.info)==null?void 0:c.detectedSource,info:r.info}})},{retries:3,onFailedAttempt:o=>{cn=(cn+1)%gt.length}})}const $a=1e3*60*60,Pa=Bt(Ai,{maxAge:$a}),Ci=Bt(Li(Pa),{maxAge:$a});function Fi({forceTranslate:t,sourceLanguage:n,onTranslate:a,text:s="",mini:o}){const r=Ca(!0),[c,l]=Q("default"),[d,f]=Q(null),[m,p]=Q(null),[h,g]=Q(null),y=te(),v=n?on(n):null,k=on(r),_=te("auto");a||(a=o?Ci:Pa);const b=async()=>{var T,I;l("loading");try{const{content:A,detectedSourceLanguage:L,provider:C,error:F,...Y}=await a(s,_.current,r);if(A){if(L){const V=on(L);g(V)}if(C==="lingva"){const V=(I=(T=Y==null?void 0:Y.info)==null?void 0:T.pronunciation)==null?void 0:I.query;V&&f(V)}p(A),l("default"),!o&&A.trim()!==s.trim()&&(y.current.open=!0,y.current.scrollIntoView({behavior:"smooth",block:"nearest"}))}else l("error")}catch{l("error")}};return pe(()=>{t&&b()},[t]),o?m&&m.trim()!==s.trim()&&h!==k?e("div",{class:"shazam-container",children:e("div",{class:"shazam-container-inner",children:e("div",{class:"status-translation-block-mini",children:[e(x,{icon:"translate",alt:`Auto-translated from ${v}`}),e("output",{lang:r,dir:"auto",title:d||"",children:m})]})})}):null:e("div",{class:"status-translation-block",onClick:T=>{T.preventDefault()},children:e("details",{ref:y,children:[e("summary",{children:e("button",{type:"button",onClick:async T=>{T.preventDefault(),T.stopPropagation(),y.current.open=!y.current.open,c!=="loading"&&(m||b())},children:[e(x,{icon:"translate"})," ",e("span",{children:c==="loading"?"Translating…":n&&v&&!h?`Translate from ${v}`:"Translate"})]})}),e("div",{class:"translated-block",children:[e("div",{class:"translation-info insignificant",children:[e("select",{class:"translated-source-select",disabled:c==="loading",onChange:T=>{_.current=T.target.value,b()},children:xi.map(T=>e("option",{value:T.code,children:T.code==="auto"?`Auto (${h??"…"})`:T.name}))})," ",e("span",{children:["→ ",k]}),e(jt,{abrupt:!0,hidden:c!=="loading"})]}),c==="error"?e("p",{class:"ui-state",children:"Failed to translate"}):!!m&&e(W,{children:[e("output",{class:"translated-content",lang:r,dir:"auto",children:m}),!!d&&e("output",{class:"translated-pronunciation-content",tabIndex:-1,onClick:T=>{T.target.classList.toggle("expand")},children:d})]})]})]})})}const Si=gt!=null&>.length?Fi:()=>null,kn=[["aa","Afar","Afaraf"],["ab","Abkhaz","аҧсуа бызшәа"],["ae","Avestan","avesta"],["af","Afrikaans","Afrikaans"],["ak","Akan","Akan"],["am","Amharic","አማርኛ"],["an","Aragonese","aragonés"],["ar","Arabic","اللغة العربية"],["as","Assamese","অসমীয়া"],["av","Avaric","авар мацӀ"],["ay","Aymara","aymar aru"],["az","Azerbaijani","azərbaycan dili"],["ba","Bashkir","башҡорт теле"],["be","Belarusian","беларуская мова"],["bg","Bulgarian","български език"],["bh","Bihari","भोजपुरी"],["bi","Bislama","Bislama"],["bm","Bambara","bamanankan"],["bn","Bengali","বাংলা"],["bo","Tibetan","བོད་ཡིག"],["br","Breton","brezhoneg"],["bs","Bosnian","bosanski jezik"],["ca","Catalan","Català"],["ce","Chechen","нохчийн мотт"],["ch","Chamorro","Chamoru"],["co","Corsican","corsu"],["cr","Cree","ᓀᐦᐃᔭᐍᐏᐣ"],["cs","Czech","čeština"],["cu","Old Church Slavonic","ѩзыкъ словѣньскъ"],["cv","Chuvash","чӑваш чӗлхи"],["cy","Welsh","Cymraeg"],["da","Danish","dansk"],["de","German","Deutsch"],["dv","Divehi","Dhivehi"],["dz","Dzongkha","རྫོང་ཁ"],["ee","Ewe","Eʋegbe"],["el","Greek","Ελληνικά"],["en","English","English"],["eo","Esperanto","Esperanto"],["es","Spanish","Español"],["et","Estonian","eesti"],["eu","Basque","euskara"],["fa","Persian","فارسی"],["ff","Fula","Fulfulde"],["fi","Finnish","suomi"],["fj","Fijian","Vakaviti"],["fo","Faroese","føroyskt"],["fr","French","Français"],["fy","Western Frisian","Frysk"],["ga","Irish","Gaeilge"],["gd","Scottish Gaelic","Gàidhlig"],["gl","Galician","galego"],["gu","Gujarati","ગુજરાતી"],["gv","Manx","Gaelg"],["ha","Hausa","هَوُسَ"],["he","Hebrew","עברית"],["hi","Hindi","हिन्दी"],["ho","Hiri Motu","Hiri Motu"],["hr","Croatian","Hrvatski"],["ht","Haitian","Kreyòl ayisyen"],["hu","Hungarian","magyar"],["hy","Armenian","Հայերեն"],["hz","Herero","Otjiherero"],["ia","Interlingua","Interlingua"],["id","Indonesian","Bahasa Indonesia"],["ie","Interlingue","Interlingue"],["ig","Igbo","Asụsụ Igbo"],["ii","Nuosu","ꆈꌠ꒿ Nuosuhxop"],["ik","Inupiaq","Iñupiaq"],["io","Ido","Ido"],["is","Icelandic","Íslenska"],["it","Italian","Italiano"],["iu","Inuktitut","ᐃᓄᒃᑎᑐᑦ"],["ja","Japanese","日本語"],["jv","Javanese","basa Jawa"],["ka","Georgian","ქართული"],["kg","Kongo","Kikongo"],["ki","Kikuyu","Gĩkũyũ"],["kj","Kwanyama","Kuanyama"],["kk","Kazakh","қазақ тілі"],["kl","Kalaallisut","kalaallisut"],["km","Khmer","ខេមរភាសា"],["kn","Kannada","ಕನ್ನಡ"],["ko","Korean","한국어"],["kr","Kanuri","Kanuri"],["ks","Kashmiri","कश्मीरी"],["ku","Kurmanji (Kurdish)","Kurmancî"],["kv","Komi","коми кыв"],["kw","Cornish","Kernewek"],["ky","Kyrgyz","Кыргызча"],["la","Latin","latine"],["lb","Luxembourgish","Lëtzebuergesch"],["lg","Ganda","Luganda"],["li","Limburgish","Limburgs"],["ln","Lingala","Lingála"],["lo","Lao","ລາວ"],["lt","Lithuanian","lietuvių kalba"],["lu","Luba-Katanga","Tshiluba"],["lv","Latvian","latviešu valoda"],["mg","Malagasy","fiteny malagasy"],["mh","Marshallese","Kajin M̧ajeļ"],["mi","Māori","te reo Māori"],["mk","Macedonian","македонски јазик"],["ml","Malayalam","മലയാളം"],["mn","Mongolian","Монгол хэл"],["mr","Marathi","मराठी"],["ms","Malay","Bahasa Melayu"],["mt","Maltese","Malti"],["my","Burmese","ဗမာစာ"],["na","Nauru","Ekakairũ Naoero"],["nb","Norwegian Bokmål","Norsk bokmål"],["nd","Northern Ndebele","isiNdebele"],["ne","Nepali","नेपाली"],["ng","Ndonga","Owambo"],["nl","Dutch","Nederlands"],["nn","Norwegian Nynorsk","Norsk Nynorsk"],["no","Norwegian","Norsk"],["nr","Southern Ndebele","isiNdebele"],["nv","Navajo","Diné bizaad"],["ny","Chichewa","chiCheŵa"],["oc","Occitan","occitan"],["oj","Ojibwe","ᐊᓂᔑᓈᐯᒧᐎᓐ"],["om","Oromo","Afaan Oromoo"],["or","Oriya","ଓଡ଼ିଆ"],["os","Ossetian","ирон æвзаг"],["pa","Panjabi","ਪੰਜਾਬੀ"],["pi","Pāli","पाऴि"],["pl","Polish","Polski"],["ps","Pashto","پښتو"],["pt","Portuguese","Português"],["qu","Quechua","Runa Simi"],["rm","Romansh","rumantsch grischun"],["rn","Kirundi","Ikirundi"],["ro","Romanian","Română"],["ru","Russian","Русский"],["rw","Kinyarwanda","Ikinyarwanda"],["sa","Sanskrit","संस्कृतम्"],["sc","Sardinian","sardu"],["sd","Sindhi","सिन्धी"],["se","Northern Sami","Davvisámegiella"],["sg","Sango","yângâ tî sängö"],["si","Sinhala","සිංහල"],["sk","Slovak","slovenčina"],["sl","Slovenian","slovenščina"],["sn","Shona","chiShona"],["so","Somali","Soomaaliga"],["sq","Albanian","Shqip"],["sr","Serbian","српски језик"],["ss","Swati","SiSwati"],["st","Southern Sotho","Sesotho"],["su","Sundanese","Basa Sunda"],["sv","Swedish","Svenska"],["sw","Swahili","Kiswahili"],["ta","Tamil","தமிழ்"],["te","Telugu","తెలుగు"],["tg","Tajik","тоҷикӣ"],["th","Thai","ไทย"],["ti","Tigrinya","ትግርኛ"],["tk","Turkmen","Türkmen"],["tl","Tagalog","Wikang Tagalog"],["tn","Tswana","Setswana"],["to","Tonga","faka Tonga"],["tr","Turkish","Türkçe"],["ts","Tsonga","Xitsonga"],["tt","Tatar","татар теле"],["tw","Twi","Twi"],["ty","Tahitian","Reo Tahiti"],["ug","Uyghur","ئۇيغۇرچە"],["uk","Ukrainian","Українська"],["ur","Urdu","اردو"],["uz","Uzbek","Ўзбек"],["ve","Venda","Tshivenḓa"],["vi","Vietnamese","Tiếng Việt"],["vo","Volapük","Volapük"],["wa","Walloon","walon"],["wo","Wolof","Wollof"],["xh","Xhosa","isiXhosa"],["yi","Yiddish","ייִדיש"],["yo","Yoruba","Yorùbá"],["za","Zhuang","Saɯ cueŋƅ"],["zh","Chinese","中文"],["zu","Zulu","isiZulu"],["zh-CN","Chinese (China)","简体中文"],["zh-HK","Chinese (Hong Kong)","繁體中文(香港)"],["zh-TW","Chinese (Taiwan)","繁體中文(臺灣)"],["zh-YUE","Cantonese","廣東話"],["ast","Asturian","Asturianu"],["chr","Cherokee","ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ"],["ckb","Sorani (Kurdish)","سۆرانی"],["cnr","Montenegrin","crnogorski"],["jbo","Lojban","la .lojban."],["kab","Kabyle","Taqbaylit"],["kmr","Kurmanji (Kurdish)","Kurmancî"],["ldn","Láadan","Láadan"],["lfn","Lingua Franca Nova","lingua franca nova"],["sco","Scots","Scots"],["sma","Southern Sami","Åarjelsaemien Gïele"],["smj","Lule Sami","Julevsámegiella"],["szl","Silesian","ślůnsko godka"],["tok","Toki Pona","toki pona"],["xal","Kalmyk","Хальмг келн"],["zba","Balaibalan","باليبلن"],["zgh","Standard Moroccan Tamazight","ⵜⴰⵎⴰⵣⵉⵖⵜ"]],$i="(((?:[^A-Za-z0-9@@$##\\uFFFE\\uFEFF\\uFFFF]|[\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069]|^))((https?:\\/\\/)((?:(?:(?:[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/](?:[_-]|[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/])*)?[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/]\\.)*(?:(?:[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/](?:-|[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/])*)?[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/]\\.)(?:(?:(?:삼성|닷컴|닷넷|香格里拉|餐厅|食品|飞利浦|電訊盈科|集团|通販|购物|谷歌|诺基亚|联通|网络|网站|网店|网址|组织机构|移动|珠宝|点看|游戏|淡马锡|机构|書籍|时尚|新闻|政府|政务|招聘|手表|手机|我爱你|慈善|微博|广东|工行|家電|娱乐|天主教|大拿|大众汽车|在线|嘉里大酒店|嘉里|商标|商店|商城|公益|公司|八卦|健康|信息|佛山|企业|中文网|中信|世界|ポイント|ファッション|セール|ストア|コム|グーグル|クラウド|みんな|คอม|संगठन|नेट|कॉम|همراه|موقع|موبايلي|كوم|كاثوليك|عرب|شبكة|بيتك|بازار|العليان|ارامكو|اتصالات|ابوظبي|קום|сайт|рус|орг|онлайн|москва|ком|католик|дети|zuerich|zone|zippo|zip|zero|zara|zappos|yun|youtube|you|yokohama|yoga|yodobashi|yandex|yamaxun|yahoo|yachts|xyz|xxx|xperia|xin|xihuan|xfinity|xerox|xbox|wtf|wtc|wow|world|works|work|woodside|wolterskluwer|wme|winners|wine|windows|win|williamhill|wiki|wien|whoswho|weir|weibo|wedding|wed|website|weber|webcam|weatherchannel|weather|watches|watch|warman|wanggou|wang|walter|walmart|wales|vuelos|voyage|voto|voting|vote|volvo|volkswagen|vodka|vlaanderen|vivo|viva|vistaprint|vista|vision|visa|virgin|vip|vin|villas|viking|vig|video|viajes|vet|versicherung|vermögensberatung|vermögensberater|verisign|ventures|vegas|vanguard|vana|vacations|ups|uol|uno|university|unicom|uconnect|ubs|ubank|tvs|tushu|tunes|tui|tube|trv|trust|travelersinsurance|travelers|travelchannel|travel|training|trading|trade|toys|toyota|town|tours|total|toshiba|toray|top|tools|tokyo|today|tmall|tkmaxx|tjx|tjmaxx|tirol|tires|tips|tiffany|tienda|tickets|tiaa|theatre|theater|thd|teva|tennis|temasek|telefonica|telecity|tel|technology|tech|team|tdk|tci|taxi|tax|tattoo|tatar|tatamotors|target|taobao|talk|taipei|tab|systems|symantec|sydney|swiss|swiftcover|swatch|suzuki|surgery|surf|support|supply|supplies|sucks|style|study|studio|stream|store|storage|stockholm|stcgroup|stc|statoil|statefarm|statebank|starhub|star|staples|stada|srt|srl|spreadbetting|spot|sport|spiegel|space|soy|sony|song|solutions|solar|sohu|software|softbank|social|soccer|sncf|smile|smart|sling|skype|sky|skin|ski|site|singles|sina|silk|shriram|showtime|show|shouji|shopping|shop|shoes|shiksha|shia|shell|shaw|sharp|shangrila|sfr|sexy|sex|sew|seven|ses|services|sener|select|seek|security|secure|seat|search|scot|scor|scjohnson|science|schwarz|schule|school|scholarships|schmidt|schaeffler|scb|sca|sbs|sbi|saxo|save|sas|sarl|sapo|sap|sanofi|sandvikcoromant|sandvik|samsung|samsclub|salon|sale|sakura|safety|safe|saarland|ryukyu|rwe|run|ruhr|rugby|rsvp|room|rogers|rodeo|rocks|rocher|rmit|rip|rio|ril|rightathome|ricoh|richardli|rich|rexroth|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reliance|reit|reisen|reise|rehab|redumbrella|redstone|red|recipes|realty|realtor|realestate|read|raid|radio|racing|qvc|quest|quebec|qpon|pwc|pub|prudential|pru|protection|property|properties|promo|progressive|prof|productions|prod|pro|prime|press|praxi|pramerica|post|porn|politie|poker|pohl|pnc|plus|plumbing|playstation|play|place|pizza|pioneer|pink|ping|pin|pid|pictures|pictet|pics|piaget|physio|photos|photography|photo|phone|philips|phd|pharmacy|pfizer|pet|pccw|pay|passagens|party|parts|partners|pars|paris|panerai|panasonic|pamperedchef|page|ovh|ott|otsuka|osaka|origins|orientexpress|organic|org|orange|oracle|open|ooo|onyourside|online|onl|ong|one|omega|ollo|oldnavy|olayangroup|olayan|okinawa|office|off|observer|obi|nyc|ntt|nrw|nra|nowtv|nowruz|now|norton|northwesternmutual|nokia|nissay|nissan|ninja|nikon|nike|nico|nhk|ngo|nfl|nexus|nextdirect|next|news|newholland|new|neustar|network|netflix|netbank|net|nec|nba|navy|natura|nationwide|name|nagoya|nadex|nab|mutuelle|mutual|museum|mtr|mtpc|mtn|msd|movistar|movie|mov|motorcycles|moto|moscow|mortgage|mormon|mopar|montblanc|monster|money|monash|mom|moi|moe|moda|mobily|mobile|mobi|mma|mls|mlb|mitsubishi|mit|mint|mini|mil|microsoft|miami|metlife|merckmsd|meo|menu|men|memorial|meme|melbourne|meet|media|med|mckinsey|mcdonalds|mcd|mba|mattel|maserati|marshalls|marriott|markets|marketing|market|map|mango|management|man|makeup|maison|maif|madrid|macys|luxury|luxe|lupin|lundbeck|ltda|ltd|lplfinancial|lpl|love|lotto|lotte|london|lol|loft|locus|locker|loans|loan|llp|llc|lixil|living|live|lipsy|link|linde|lincoln|limo|limited|lilly|like|lighting|lifestyle|lifeinsurance|life|lidl|liaison|lgbt|lexus|lego|legal|lefrak|leclerc|lease|lds|lawyer|law|latrobe|latino|lat|lasalle|lanxess|landrover|land|lancome|lancia|lancaster|lamer|lamborghini|ladbrokes|lacaixa|kyoto|kuokgroup|kred|krd|kpn|kpmg|kosher|komatsu|koeln|kiwi|kitchen|kindle|kinder|kim|kia|kfh|kerryproperties|kerrylogistics|kerryhotels|kddi|kaufen|juniper|juegos|jprs|jpmorgan|joy|jot|joburg|jobs|jnj|jmp|jll|jlc|jio|jewelry|jetzt|jeep|jcp|jcb|java|jaguar|iwc|iveco|itv|itau|istanbul|ist|ismaili|iselect|irish|ipiranga|investments|intuit|international|intel|int|insure|insurance|institute|ink|ing|info|infiniti|industries|inc|immobilien|immo|imdb|imamat|ikano|iinet|ifm|ieee|icu|ice|icbc|ibm|hyundai|hyatt|hughes|htc|hsbc|how|house|hotmail|hotels|hoteles|hot|hosting|host|hospital|horse|honeywell|honda|homesense|homes|homegoods|homedepot|holiday|holdings|hockey|hkt|hiv|hitachi|hisamitsu|hiphop|hgtv|hermes|here|helsinki|help|healthcare|health|hdfcbank|hdfc|hbo|haus|hangout|hamburg|hair|guru|guitars|guide|guge|gucci|guardian|group|grocery|gripe|green|gratis|graphics|grainger|gov|got|gop|google|goog|goodyear|goodhands|goo|golf|goldpoint|gold|godaddy|gmx|gmo|gmbh|gmail|globo|global|gle|glass|glade|giving|gives|gifts|gift|ggee|george|genting|gent|gea|gdn|gbiz|gay|garden|gap|games|game|gallup|gallo|gallery|gal|fyi|futbol|furniture|fund|fun|fujixerox|fujitsu|ftr|frontier|frontdoor|frogans|frl|fresenius|free|fox|foundation|forum|forsale|forex|ford|football|foodnetwork|food|foo|fly|flsmidth|flowers|florist|flir|flights|flickr|fitness|fit|fishing|fish|firmdale|firestone|fire|financial|finance|final|film|fido|fidelity|fiat|ferrero|ferrari|feedback|fedex|fast|fashion|farmers|farm|fans|fan|family|faith|fairwinds|fail|fage|extraspace|express|exposed|expert|exchange|everbank|events|eus|eurovision|etisalat|esurance|estate|esq|erni|ericsson|equipment|epson|epost|enterprises|engineering|engineer|energy|emerck|email|education|edu|edeka|eco|eat|earth|dvr|dvag|durban|dupont|duns|dunlop|duck|dubai|dtv|drive|download|dot|doosan|domains|doha|dog|dodge|doctor|docs|dnp|diy|dish|discover|discount|directory|direct|digital|diet|diamonds|dhl|dev|design|desi|dentist|dental|democrat|delta|deloitte|dell|delivery|degree|deals|dealer|deal|dds|dclk|day|datsun|dating|date|data|dance|dad|dabur|cyou|cymru|cuisinella|csc|cruises|cruise|crs|crown|cricket|creditunion|creditcard|credit|cpa|courses|coupons|coupon|country|corsica|coop|cool|cookingchannel|cooking|contractors|contact|consulting|construction|condos|comsec|computer|compare|company|community|commbank|comcast|com|cologne|college|coffee|codes|coach|clubmed|club|cloud|clothing|clinique|clinic|click|cleaning|claims|cityeats|city|citic|citi|citadel|cisco|circle|cipriani|church|chrysler|chrome|christmas|chloe|chintai|cheap|chat|chase|charity|channel|chanel|cfd|cfa|cern|ceo|center|ceb|cbs|cbre|cbn|cba|catholic|catering|cat|casino|cash|caseih|case|casa|cartier|cars|careers|career|care|cards|caravan|car|capitalone|capital|capetown|canon|cancerresearch|camp|camera|cam|calvinklein|call|cal|cafe|cab|bzh|buzz|buy|business|builders|build|bugatti|budapest|brussels|brother|broker|broadway|bridgestone|bradesco|box|boutique|bot|boston|bostik|bosch|boots|booking|book|boo|bond|bom|bofa|boehringer|boats|bnpparibas|bnl|bmw|bms|blue|bloomberg|blog|blockbuster|blanco|blackfriday|black|biz|bio|bingo|bing|bike|bid|bible|bharti|bet|bestbuy|best|berlin|bentley|beer|beauty|beats|bcn|bcg|bbva|bbt|bbc|bayern|bauhaus|basketball|baseball|bargains|barefoot|barclays|barclaycard|barcelona|bar|bank|band|bananarepublic|banamex|baidu|baby|azure|axa|aws|avianca|autos|auto|author|auspost|audio|audible|audi|auction|attorney|athleta|associates|asia|asda|arte|art|arpa|army|archi|aramco|arab|aquarelle|apple|app|apartments|aol|anz|anquan|android|analytics|amsterdam|amica|amfam|amex|americanfamily|americanexpress|alstom|alsace|ally|allstate|allfinanz|alipay|alibaba|alfaromeo|akdn|airtel|airforce|airbus|aigo|aig|agency|agakhan|africa|afl|afamilycompany|aetna|aero|aeg|adult|ads|adac|actor|active|aco|accountants|accountant|accenture|academy|abudhabi|abogado|able|abc|abbvie|abbott|abb|abarth|aarp|aaa|onion)(?=[^0-9a-zA-Z@+-]|$))|(?:(?:한국|香港|澳門|新加坡|台灣|台湾|中國|中国|გე|ລາວ|ไทย|ලංකා|ഭാരതം|ಭಾರತ|భారత్|சிங்கப்பூர்|இலங்கை|இந்தியா|ଭାରତ|ભારત|ਭਾਰਤ|ভাৰত|ভারত|বাংলা|भारोत|भारतम्|भारत|ڀارت|پاکستان|موريتانيا|مليسيا|مصر|قطر|فلسطين|عمان|عراق|سورية|سودان|تونس|بھارت|بارت|ایران|امارات|المغرب|السعودية|الجزائر|البحرين|الاردن|հայ|қаз|укр|срб|рф|мон|мкд|ею|бел|бг|ευ|ελ|zw|zm|za|yt|ye|ws|wf|vu|vn|vi|vg|ve|vc|va|uz|uy|us|um|uk|ug|ua|tz|tw|tv|tt|tr|tp|to|tn|tm|tl|tk|tj|th|tg|tf|td|tc|sz|sy|sx|sv|su|st|ss|sr|so|sn|sm|sl|sk|sj|si|sh|sg|se|sd|sc|sb|sa|rw|ru|rs|ro|re|qa|py|pw|pt|ps|pr|pn|pm|pl|pk|ph|pg|pf|pe|pa|om|nz|nu|nr|np|no|nl|ni|ng|nf|ne|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|mn|mm|ml|mk|mh|mg|mf|me|md|mc|ma|ly|lv|lu|lt|ls|lr|lk|li|lc|lb|la|kz|ky|kw|kr|kp|kn|km|ki|kh|kg|ke|jp|jo|jm|je|it|is|ir|iq|io|in|im|il|ie|id|hu|ht|hr|hn|hm|hk|gy|gw|gu|gt|gs|gr|gq|gp|gn|gm|gl|gi|gh|gg|gf|ge|gd|gb|ga|fr|fo|fm|fk|fj|fi|eu|et|es|er|eh|eg|ee|ec|dz|do|dm|dk|dj|de|cz|cy|cx|cw|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|bz|by|bw|bv|bt|bs|br|bq|bo|bn|bm|bl|bj|bi|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ar|aq|ao|an|am|al|ai|ag|af|ae|ad|ac)(?=[^0-9a-zA-Z@+-]|$))|(?:xn--[\\-0-9a-z]+))))(?::([0-9]+))?(\\/(?:(?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*(?:\\((?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+|(?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*\\([a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+\\)[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*))\\)[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*)*[\\+\\-a-z\\u0400-\\u04FF0-9=_#\\/\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]|(?:\\((?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+|(?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*\\([a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+\\)[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*))\\)))|(?:@[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+\\/))*)?(\\?[a-z0-9!?\\*'@\\(\\);:&=\\+\\$\\/%#\\[\\]\\-_\\.,~|]*[a-z0-9\\-_&=#\\/])?))",Pi="gi",Zn={source:$i,flags:Pi},Je=go("drafts-db","drafts-store"),Ii={set:(t,n)=>vo(t,n,Je),get:t=>bo(t,Je),getMany:t=>yo(t,Je),del:t=>_o(t,Je),delMany:t=>ko(t,Je),clear:()=>wo(Je),keys:()=>Eo(Je)},Xn={drafts:Ii},nt={public:"earth",unlisted:"group",private:"lock",direct:"message"};function Ri({poll:t,lang:n,readOnly:a,refresh:s=()=>{},votePoll:o=()=>{}}){const[r,c]=Q("default"),{expired:l,expiresAt:d,id:f,multiple:m,options:p,ownVotes:h,voted:g,votersCount:y,votesCount:v,emojis:k}=t,_=!!d&&new Date(d),b=y||v;let T=0;b<=1e3?T=0:b<=1e4?T=1:b<=1e5&&(T=2);const[I,A]=Q(!1),L=p.every(C=>C.votesCount!==null);return e("div",{lang:n,dir:"auto",class:`poll ${a?"read-only":""} ${r==="loading"?"loading":""}`,children:[I&&L||g||l?e(W,{children:[e("div",{class:"poll-options",children:p.map((C,F)=>{const{title:Y,votesCount:V}=C,N=b?(V/b*100).toFixed(T):0,j=V>0&&V===Math.max(...p.map(J=>J.votesCount));return e("div",{class:`poll-option poll-result ${j?"poll-option-leading":""}`,style:{"--percentage":`${N}%`},children:[e("div",{class:"poll-option-title",children:[e("span",{children:e(bt,{text:Y,emojis:k})}),g&&h.includes(F)&&e(W,{children:[" ",e(x,{icon:"check-circle"})]})]}),e("div",{class:"poll-option-votes",title:`${V} vote${V===1?"":"s"}`,children:[N,"%"]})]},`${F}-${Y}-${V}`)})}),!l&&!g&&e("button",{class:"poll-vote-button plain2",disabled:r==="loading",onClick:C=>{C.preventDefault(),A(!1)},children:[e(x,{icon:"arrow-left",size:"s"})," Hide results"]})]}):e("form",{onSubmit:async C=>{C.preventDefault();const F=C.target,Y=new FormData(F),V=[];Y.forEach((N,j)=>{j==="poll"&&V.push(N)}),V.length&&(c("loading"),await o(V),c("default"))},children:[e("div",{class:"poll-options",children:p.map((C,F)=>{const{title:Y}=C;return e("div",{class:"poll-option",children:e("label",{class:"poll-label",children:[e("input",{type:m?"checkbox":"radio",name:"poll",value:F,disabled:r==="loading",readOnly:a}),e("span",{class:"poll-option-title",children:e(bt,{text:Y,emojis:k})})]})})})}),!a&&e("button",{class:"poll-vote-button",type:"submit",disabled:r==="loading",children:"Vote"})]}),e("p",{class:"poll-meta",children:[!l&&!a&&e("button",{type:"button",class:"plain small",disabled:r==="loading",style:{marginLeft:-8},onClick:C=>{C.preventDefault(),c("loading"),(async()=>(await s(),c("default")))()},title:"Refresh",children:e(x,{icon:"refresh",alt:"Refresh"})}),!g&&!l&&!a&&L&&e("button",{type:"button",class:"plain small",disabled:r==="loading",onClick:C=>{C.preventDefault(),A(!I)},title:I?"Hide results":"Show results",children:[e(x,{icon:I?"eye-open":"eye-close",alt:I?"Hide results":"Show results"})," "]}),!l&&!a&&" ",e("span",{title:v,children:Ke(v)})," vote",v===1?"":"s",!!y&&y!==v&&e(W,{children:[" ","• ",e("span",{title:y,children:Ke(y)})," ","voter",y===1?"":"s"]})," ","• ",l?"Ended":"Ending"," ",!!_&&e(yt,{datetime:_})]})," "]})}const Di=xo();function Mi(t,n){if(!(t!=null&&t.length))return!1;const a=t.filter(r=>{const{filter:c}=r,l=c.context.includes(n);return l?c.expiresAt?new Date(c.expiresAt)>new Date:l:!1});if(!a.length)return!1;if(a.some(r=>r.filter.filterAction==="hide"))return{action:"hide"};if(a.some(r=>r.filter.filterAction==="warn")){const r=a.map(c=>c.filter.title);return{action:"warn",titles:r,titlesStr:r.join(" • ")}}return!1}const Ia=We(Mi);function Oi(t,n,a){var c;const{filtered:s}=t;if(!(s!=null&&s.length)||a&&((c=t.account)==null?void 0:c.id)===a)return!0;const r=Ia(s,n);return r?r.action!=="hide":!0}function Sr(t,n){if(!(t!=null&&t.length))return[];if(!n)return t;const a=O.session.get("currentAccount");return t.filter(s=>Oi(s,n,a))}const ln=document.createElement("div");function un(t){return t?(ln.innerHTML=t,ln.querySelectorAll(".invisible").forEach(n=>{n.remove()}),ln.innerText.length):0}const pt="speechSynthesis"in window;function Qn(t,n){if(pt)try{speechSynthesis.speaking&&speechSynthesis.cancel();const a=new SpeechSynthesisUtterance(t);n&&(a.lang=n),speechSynthesis.speak(a)}catch(a){alert(a)}}function zi(t){const{spoilerText:n,content:a,poll:s,mediaAttachments:o}=t;let r="";return n!=null&&n.trim()?r+=n:r+=_n(a),r=r.trim(),s&&(r+=" 📊"),o!=null&&o.length&&(r+=" "+o.map(c=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[c.type]||"").join("")),r}function Dt({className:t="truncated"}={}){const n=te(),a=pa(({height:s})=>{if(n.current){const{scrollHeight:o}=n.current;let r=o>s;if(r){const{height:c,maxHeight:l}=getComputedStyle(n.current),d=parseInt(l||c,10);r=o>d}n.current.classList.toggle(t,r)}},300);return To({ref:n,box:"border-box",onResize:a}),n}const Ni=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Bi="ALT",dn=t=>{const{alt:n,lang:a,index:s,...o}=t;return!n||!n.trim()?null:e("button",{type:"button",class:"alt-badge clickable",...o,onClick:r=>{r.stopPropagation(),r.preventDefault(),M.showMediaAlt={alt:n,lang:a}},title:"Media description",children:[Bi,!!s&&e("sup",{children:s})]})},Vi=140,Ra=We(t=>t!=null&&t.length?t.length>Vi||/[\n\r].*[\n\r]/.test(t.trim()):!1);function ji({class:t="",media:n,to:a,lang:s,showOriginal:o,autoAnimate:r,showCaption:c,altIndex:l,onClick:d=()=>{}}){const{blurhash:f,description:m,meta:p,previewRemoteUrl:h,previewUrl:g,remoteUrl:y,url:v,type:k}=n,{original:_={},small:b,focus:T}=p||{},I=o?_==null?void 0:_.width:b==null?void 0:b.width,A=o?_==null?void 0:_.height:b==null?void 0:b.height,L=o?v:g||v,C=o?y:h||y,F=I>=A?"landscape":"portrait",Y=f?fa(f):null,V=te();let N;if(T){const z=(T.x+1)/2*100,ne=(1-T.y)/2*100;N=`${z.toFixed(0)}% ${ne.toFixed(0)}%`}const j=te(),J=vn(({x:z,y:ne,scale:we})=>{const{current:oe}=j;if(oe){const Ce=Lo({x:z,y:ne,scale:we});we===1?oe.style.removeProperty("transform"):oe.style.setProperty("transform",Ce),oe.closest(".media-zoom").style.touchAction=we<=1.01?"pan-x":""}},[]),[Z,le]=Q(!1),fe={enabled:Z,draggableUnZoomed:!1,inertiaFriction:.9,doubleTapZoomOutOnMaxScale:!0,containerProps:{className:"media-zoom",style:{overflow:"visible"}},onUpdate:J},q=Fe(()=>a?z=>e(at,{to:a,...z}):"div",[a]),B=k==="unknown"&&/\.(mp4|m4a|m4p|m4b|m4r|m4v|mov|webm)$/i.test(C),G=k==="image"||k==="unknown"&&g&&!B,R=te(),[ge,re]=Q(!1);hn(()=>{if(!G||!o||!R.current)return;const{offsetWidth:z,offsetHeight:ne}=R.current,we=I{const{children:ne,...we}=z;return e("figure",{...we,children:[ne,e("figcaption",{class:"media-caption",lang:s,dir:"auto",onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),M.showMediaAlt={alt:m,lang:s}},children:m})]})}:W;if(G)return fe.containerProps.style.display="inherit",hn(()=>{Ni&&o&&(async()=>{try{await fetch(L,{mode:"no-cors"}),j.current.src=L}catch{}})()},[L]),e(de,{children:e(q,{ref:R,class:`media media-image ${t}`,onClick:d,"data-orientation":F,"data-has-alt":!se,style:o?{backgroundImage:`url(${g})`,backgroundSize:ge?`${I}px ${A}px`:void 0,..._e}:Se,children:o?e(Vn,{...fe,children:e("img",{ref:j,src:L,alt:m,width:I,height:A,"data-orientation":F,loading:"eager",decoding:"sync",onLoad:z=>{z.target.closest(".media-image").style.backgroundImage="",z.target.closest(".media-zoom").style.display="",le(!0)},onError:z=>{const{src:ne}=z.target;ne===L&&L!==C&&(z.target.src=C)}})}):e(W,{children:[e("img",{src:L,alt:se?"":m,width:I,height:A,"data-orientation":F,loading:"lazy",style:{objectPosition:N||"center","--anim-duration":`${Math.min(Math.max(Math.max(I,A)/100,5),120)}s`},onLoad:z=>{z.target.dataset.loaded=!0},onError:z=>{const{src:ne}=z.target;ne===L&&L!==C&&(z.target.src=C)}}),!se&&e(dn,{alt:m,lang:s,index:l})]})})});if(k==="gifv"||k==="video"||B){const z=_.duration<31,ne=k==="gifv"&&z,we=_.duration<61,oe=na(_.duration),Ce=!o&&!r&&ne,xe=!o&&r&&ne,Te=_.duration>5,ke=`
`;return e(de,{children:e(q,{class:`media ${t} media-${ne?"gif":"video"} ${xe?"media-contain":""} ${Ce?"media-hover-animate":""}`,"data-orientation":F,"data-formatted-duration":o?void 0:oe,"data-label":ne&&!o&&!xe?"GIF":"","data-has-alt":!se,style:!o&&Se,onClick:be=>{if(Ce)try{V.current.pause()}catch{}d(be)},onMouseEnter:()=>{if(Ce)try{V.current.play()}catch{}},onMouseLeave:()=>{if(Ce)try{V.current.pause()}catch{}},onFocus:()=>{if(Ce)try{V.current.play()}catch{}},onBlur:()=>{if(Ce)try{V.current.pause()}catch{}},children:[o||xe?ne&&o?e(Vn,{...fe,enabled:!0,children:e("div",{ref:j,dangerouslySetInnerHTML:{__html:ke}})}):e("div",{class:"video-container",dangerouslySetInnerHTML:{__html:ke}}):ne?e("video",{ref:V,src:v,poster:g,width:I,height:A,"data-orientation":F,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:Te?be=>{const{target:ae}=be,Me=ae==null?void 0:ae.closest(".media-gif");if(Me){const kt=ae.currentTime/ae.duration*100;Me.style.setProperty("--progress",`${kt}%`)}}:void 0}):e(W,{children:[e("img",{src:g,alt:se?"":m,width:I,height:A,"data-orientation":F,loading:"lazy"}),e("div",{class:"media-play",children:e(x,{icon:"play",size:"xl"})})]}),!o&&!se&&e(dn,{alt:m,lang:s,index:l})]})})}else if(k==="audio"){const z=na(_.duration);return e(de,{children:e(q,{class:`media media-audio ${t}`,"data-formatted-duration":o?void 0:z,"data-has-alt":!se,onClick:d,style:!o&&Se,children:[o?e("audio",{src:y||v,preload:"none",controls:!0,autoplay:!0}):g?e("img",{src:g,alt:se?"":m,width:I,height:A,"data-orientation":F,loading:"lazy"}):null,!o&&e(W,{children:[e("div",{class:"media-play",children:e(x,{icon:"play",size:"xl"})}),!se&&e(dn,{alt:m,lang:s,index:l})]})]})})}}function ea(t){return e(Ao,{children:({ref:n,closeMenu:a})=>e(at,{...t,ref:n,onClick:({detail:s})=>a(s===0?"Enter":void 0)})})}const Ui=280,Hi=140;function Ki(t,n){return n.v1.accounts.$select(t).fetch()}const qi=Bt(Ki),ft={public:"Public",unlisted:"Unlisted",private:"Followers only",direct:"Private mention"},Wi=window.ontouchstart!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent),ta=80;function Gi(t){var n;return(n=t==null?void 0:t.options)!=null&&n.length?`📊:
${t.options.map(a=>`- ${a.title}${a.votesCount>=0?` (${a.votesCount})`:""}`).join(`
`)}`:""}function mn(t){const{spoilerText:n,content:a,poll:s}=t;return(n?`${n}
`:"")+_n(a)+Gi(s)}function Xe({statusID:t,status:n,instance:a,size:s="m",contentTextWeight:o,readOnly:r,enableCommentHint:c,withinContext:l,skeleton:d,enableTranslate:f,forceTranslate:m,previewMode:p,onMediaClick:h,quoted:g,onStatusLinkClick:y=()=>{},showFollowedTags:v,allowContextMenu:k}){var Mn,On,zn;if(d)return e("div",{class:"status skeleton",children:[e(Qe,{size:"xxl"}),e("div",{class:"container",children:[e("div",{class:"meta",children:"███ ████████"}),e("div",{class:"content-container",children:e("div",{class:"content",children:e("p",{children:"████ ████████"})})})]})]});const{masto:_,instance:b,authenticated:T}=qe({instance:a}),{instance:I}=qe(),A=b===I;let L=De(t||(n==null?void 0:n.id),b);const C=_t(M);if(n||(n=C.statuses[L]||C.statuses[t],L=De(n==null?void 0:n.id,b)),!n)return null;const{account:{acct:F,avatar:Y,avatarStatic:V,id:N,url:j,displayName:J,username:Z,emojis:le,bot:fe,group:q},id:B,repliesCount:G,reblogged:R,reblogsCount:ge,favourited:re,favouritesCount:Ae,bookmarked:ue,poll:_e,muted:Se,sensitive:Ie,spoilerText:se,visibility:de,language:z,editedAt:ne,filtered:we,card:oe,createdAt:Ce,inReplyToId:xe,inReplyToAccountId:Te,content:ke,mentions:be,mediaAttachments:ae,reblog:Me,uri:kt,url:Oe,emojis:E,tags:S,_deleted:D,_pinned:P}=n,X=Fe(()=>O.session.get("currentAccount"),[]),U=Fe(()=>X&&X===N,[N,X]),H=Co(Di),K=!U&&!r&&!p&&Ia(we,H);if((K==null?void 0:K.action)==="hide")return null;const ce=u=>{u.shiftKey};if(s!=="l"&&K)return e(Qi,{status:n,filterInfo:K,instance:b,containerProps:{onMouseEnter:ce},showFollowedTags:!0});const ye=new Date(Ce),Ne=new Date(ne);let $e=be==null?void 0:be.find(u=>u.id===Te);!$e&&Te===B&&($e={url:j,username:Z,displayName:J});const[ze,wt]=Q($e);if(!l&&!ze&&Te){const u=M.accounts[Te];u?wt(u):qi(Te,_).then($=>{wt($),M.accounts[$.id]=$}).catch($=>{})}const Et=Te===X||(be==null?void 0:be.find(u=>u.id===X)),Ge=Fe(()=>!!(O.account.get("preferences")||{})["reading:expand:spoilers"],[]),et=Fe(()=>(O.account.get("preferences")||{})["reading:expand:media"]||"default",[]),ot=p||Ge||!!C.spoilers[B],it=p||et==="show_all"||!!C.spoilersMedia[B];if(Me)return q?e("div",{"data-state-post-id":L,class:"status-group",onMouseEnter:ce,children:[e("div",{class:"status-pre-meta",children:[e(x,{icon:"group",size:"l",alt:"Group"})," ",e(ht,{account:n.account,instance:b,showAvatar:!0})]}),e(Xe,{status:t?null:Me,statusID:t?Me.id:null,instance:b,size:s,contentTextWeight:o,readOnly:r})]}):e("div",{"data-state-post-id":L,class:"status-reblog",onMouseEnter:ce,children:[e("div",{class:"status-pre-meta",children:[e(x,{icon:"rocket",size:"l"})," ",e(ht,{account:n.account,instance:b,showAvatar:!0})," ",e("span",{children:"boosted"})]}),e(Xe,{status:t?null:Me,statusID:t?Me.id:null,instance:b,size:s,contentTextWeight:o,readOnly:r,enableCommentHint:!0})]});if(v&&((Mn=C.statusFollowedTags[L])!=null&&Mn.length))return e("div",{"data-state-post-id":L,class:"status-followed-tags",onMouseEnter:ce,children:[e("div",{class:"status-pre-meta",children:[e(x,{icon:"hashtag",size:"l"})," ",C.statusFollowedTags[L].slice(0,3).map(u=>e(at,{to:b?`/${b}/t/${u}`:`/t/${u}`,class:"status-followed-tag-item",children:u},u))]}),e(Xe,{status:t?null:n,statusID:t?n.id:null,instance:b,size:s,contentTextWeight:o,readOnly:r,enableCommentHint:!0})]});const me=s==="l",[Ut,Oa]=Q(m),wn=Ca(!0),za=C.settings.contentTranslationHideLanguages||[],{contentTranslation:Ht,contentTranslationAutoInline:En}=C.settings;Ht||(f=!1);const xn=Fe(()=>{if(!Ht||!En||r||l&&!me||p||se||Ie||_e||oe||ae!=null&&ae.length)return!1;const u=un(ke);return u>0&&u<=Hi},[Ht,En,r,l,me,p,se,Ie,_e,oe,ae,ke]),[Kt,xt]=Q(!1),Na=Dt(),Ba=Dt(),Va=Dt(),Tn="Read more →",qt=te(null),rt="Sorry, your current logged-in instance can't interact with this post from another instance.",Ln=vn(()=>Math.max(Math.round((se.length+un(ke))/140)||1,1),[se,ke]),An=zt(ye),Cn=ne&&zt(Ne);let st=T&&de!=="direct"&&de!=="private";de==="private"&&U&&(st=!0);const Wt=u=>{var $;if(!A||!T)return alert(rt);(u!=null&&u.shiftKey||($=u==null?void 0:u.syntheticEvent)!=null&&$.shiftKey)&&wa({replyToStatus:n})||(M.showCompose={replyToStatus:n})},Gt=Fe(()=>ae.some(u=>{var $,ee;return!((ee=($=u.description)==null?void 0:$.trim)!=null&&ee.call($))}),[ae]),wr=async()=>{if(!A||!T)return alert(rt),!1;try{if(!R){let u="Boost this post?";if(Gt&&(u+=`
⚠️ Some media have no descriptions.`),!confirm(u))return!1}if(M.statuses[L]={...n,reblogged:!R,reblogsCount:ge+(R?-1:1)},R){const u=await _.v1.statuses.$select(B).unreblog();return Re(u,b),!0}else{const u=await _.v1.statuses.$select(B).reblog();return Re(u,b),!0}}catch{return M.statuses[L]=n,!1}},Yt=async()=>{if(!A||!T)return alert(rt),!1;try{if(M.statuses[L]={...n,reblogged:!R,reblogsCount:ge+(R?-1:1)},R){const u=await _.v1.statuses.$select(B).unreblog();return Re(u,b),!0}else{const u=await _.v1.statuses.$select(B).reblog();return Re(u,b),!0}}catch{return M.statuses[L]=n,!1}},Jt=async()=>{if(!A||!T)return alert(rt);try{if(M.statuses[L]={...n,favourited:!re,favouritesCount:Ae+(re?-1:1)},re){const u=await _.v1.statuses.$select(B).unfavourite();Re(u,b)}else{const u=await _.v1.statuses.$select(B).favourite();Re(u,b)}}catch{M.statuses[L]=n}},Zt=async()=>{if(!A||!T)return alert(rt);try{if(M.statuses[L]={...n,bookmarked:!ue},ue){const u=await _.v1.statuses.$select(B).unbookmark();Re(u,b)}else{const u=await _.v1.statuses.$select(B).bookmark();Re(u,b)}}catch{M.statuses[L]=n}},Fn=!!z&&z!==wn&&!Ot([z],[wn])&&!za.find(u=>z===u||Ot([z],[u])),Sn=te(),$n=te();async function ja(u){var he,Ye,Nn,Bn;u&&(Sn.current=_.v1.statuses.$select(t).rebloggedBy.list({limit:ta}),$n.current=_.v1.statuses.$select(t).favouritedBy.list({limit:ta}));const[{value:$},{value:ee}]=await Promise.allSettled([Sn.current.next(),$n.current.next()]);if((he=$.value)!=null&&he.length||(Ye=ee.value)!=null&&Ye.length){const Qt=[];return(Nn=$.value)!=null&&Nn.length&&Qt.push(...$.value.map(lt=>(lt._types=["reblog"],lt))),(Bn=ee.value)!=null&&Bn.length&&Qt.push(...ee.value.map(lt=>(lt._types=["favourite"],lt))),{value:Qt,done:$.done&&ee.done}}return{value:[],done:!0}}const Er=te(),Pn=e(W,{children:[!me&&e(W,{children:[e(Fo,{children:[e("span",{class:"ib",children:[e(x,{icon:nt[de],size:"s"})," ",e("span",{children:ft[de]})]})," ",e("span",{class:"ib",children:[G>0&&e("span",{children:[e(x,{icon:"comment2",alt:"Replies",size:"s"})," ",e("span",{children:Ke(G)})]})," ",ge>0&&e("span",{children:[e(x,{icon:"rocket",alt:"Boosts",size:"s"})," ",e("span",{children:Ke(ge)})]})," ",Ae>0&&e("span",{children:[e(x,{icon:"heart",alt:"Likes",size:"s"})," ",e("span",{children:Ke(Ae)})]})]}),e("br",{}),An]}),e(ea,{to:b?`/${b}/s/${B}`:`/s/${B}`,onClick:u=>{y(u,n)},children:[e(x,{icon:"arrow-right"}),e("span",{children:["View post by @",Z||F]})]})]}),!!ne&&e(Ee,{onClick:()=>{xt(B)},children:[e(x,{icon:"history"}),e("span",{children:["Show Edit History",e("br",{}),e("small",{class:"more-insignificant",children:["Edited: ",Cn]})]})]}),(!me||!!ne)&&e(en,{}),me&&e(Ee,{onClick:()=>{M.showGenericAccounts={heading:"Boosted/Liked by…",fetchAccounts:ja,instance:b,showReactions:!0}},children:[e(x,{icon:"react"}),e("span",{children:["Boosted/Liked by",e("span",{class:"more-insignificant",children:"…"})]})]}),!me&&A&&e(W,{children:[e("div",{class:"menu-horizontal",children:[e(an,{subMenu:!0,confirmLabel:e(W,{children:[e(x,{icon:"rocket"}),e("span",{children:R?"Unboost?":"Boost to everyone?"})]}),menuFooter:Gt&&!R&&e("div",{class:"footer",children:[e(x,{icon:"alert"}),"Some media have no descriptions."]}),disabled:!st,onClick:async()=>{try{const u=await Yt();!me&&u&&Le(R?`Unboosted @${Z||F}'s post`:`Boosted @${Z||F}'s post`)}catch{}},children:[e(x,{icon:"rocket",style:{color:R&&"var(--reblog-color)"}}),e("span",{children:R?"Unboost":"Boost…"})]}),e(Ee,{onClick:()=>{try{Jt(),me||Le(re?`Unliked @${Z||F}'s post`:`Liked @${Z||F}'s post`)}catch{}},children:[e(x,{icon:"heart",style:{color:re&&"var(--favourite-color)"}}),e("span",{children:re?"Unlike":"Like"})]})]}),e("div",{class:"menu-horizontal",children:[e(Ee,{onClick:Wt,children:[e(x,{icon:"reply"}),e("span",{children:"Reply"})]}),e(Ee,{onClick:()=>{try{Zt(),me||Le(ue?`Unbookmarked @${Z||F}'s post`:`Bookmarked @${Z||F}'s post`)}catch{}},children:[e(x,{icon:"bookmark",style:{color:ue&&"var(--link-color)"}}),e("span",{children:ue?"Unbookmark":"Bookmark"})]})]})]}),f?e("div",{class:pt?"menu-horizontal":"",children:[e(Ee,{disabled:Ut,onClick:()=>{Oa(!0)},children:[e(x,{icon:"translate"}),e("span",{children:"Translate"})]}),pt&&e(Ee,{onClick:()=>{const u=mn(n);u&&Qn(u,z)},children:[e(x,{icon:"speak"}),e("span",{children:"Speak"})]})]}):(!z||Fn)&&e("div",{class:pt?"menu-horizontal":"",children:[e(ea,{to:`${b?`/${b}`:""}/s/${B}?translate=1`,children:[e(x,{icon:"translate"}),e("span",{children:"Translate"})]}),pt&&e(Ee,{onClick:()=>{const u=mn(n);u&&Qn(u,z)},children:[e(x,{icon:"speak"}),e("span",{children:"Speak"})]})]}),(!me&&A||f)&&e(en,{}),e(Ee,{href:Oe,target:"_blank",children:[e(x,{icon:"external"}),e("small",{class:"menu-double-lines",children:Xi(Oe)})]}),e("div",{class:"menu-horizontal",children:[e(Ee,{onClick:()=>{try{navigator.clipboard.writeText(Oe),Le("Link copied")}catch{Le("Unable to copy link")}},children:[e(x,{icon:"link"}),e("span",{children:"Copy"})]}),(navigator==null?void 0:navigator.share)&&((On=navigator==null?void 0:navigator.canShare)==null?void 0:On.call(navigator,{url:Oe}))&&e(Ee,{onClick:()=>{try{navigator.share({url:Oe})}catch{alert("Sharing doesn't seem to work.")}},children:[e(x,{icon:"share"}),e("span",{children:"Share…"})]})]}),(U||Et)&&e(en,{}),(U||Et)&&e(Ee,{onClick:async()=>{try{const u=await _.v1.statuses.$select(B)[Se?"unmute":"mute"]();Re(u,b),Le(Se?"Conversation unmuted":"Conversation muted")}catch{Le(Se?"Unable to unmute conversation":"Unable to mute conversation")}},children:Se?e(W,{children:[e(x,{icon:"unmute"}),e("span",{children:"Unmute conversation"})]}):e(W,{children:[e(x,{icon:"mute"}),e("span",{children:"Mute conversation"})]})}),U&&e("div",{class:"menu-horizontal",children:[e(Ee,{onClick:()=>{M.showCompose={editStatus:n}},children:[e(x,{icon:"pencil"}),e("span",{children:"Edit"})]}),me&&e(an,{subMenu:!0,confirmLabel:e(W,{children:[e(x,{icon:"trash"}),e("span",{children:"Delete this post?"})]}),menuItemClassName:"danger",onClick:()=>{(async()=>{try{await _.v1.statuses.$select(B).remove();const u=ka(B,b);u._deleted=!0,Le("Deleted")}catch{Le("Unable to delete")}})()},children:[e(x,{icon:"trash"}),e("span",{children:"Delete…"})]})]})]}),In=te(),[Rn,Tt]=Q(!1),[Lt,Xt]=Q({}),At=k||!me&&!p&&!D&&!g,Ua=ga(Wi&&At?u=>{var Ye;if(u.pointerType==="mouse")return;const{clientX:$,clientY:ee}=((Ye=u.touches)==null?void 0:Ye[0])||u,he=u.target.closest("a");he&&/^https?:\/\//.test(he.getAttribute("href"))||(u.preventDefault(),Xt({anchorPoint:{x:$,y:ee},direction:"right"}),Tt(!0))}:null,{threshold:600,captureEvent:!0,detect:"touch",cancelOnMovement:2}),Ct=!r&&!p&&!g,Ha=je("r, shift+r",Wt,{enabled:Ct}),Ka=je("f, l",()=>{try{Jt(),me||Le(re?`Unliked @${Z||F}'s post`:`Liked @${Z||F}'s post`)}catch{}},{enabled:Ct}),qa=je("d",()=>{try{Zt(),me||Le(ue?`Unbookmarked @${Z||F}'s post`:`Bookmarked @${Z||F}'s post`)}catch{}},{enabled:Ct}),Wa=je("shift+b",()=>{(async()=>{try{const u=await Yt();!me&&u&&Le(R?`Unboosted @${Z||F}'s post`:`Boosted @${Z||F}'s post`)}catch{}})()},{enabled:Ct&&st}),Ga=je("x",u=>{const $=document.activeElement.closest(".status-link, .status-focus");if($){const ee=$.querySelector(".spoiler-button:not(.spoiling)");if(ee)u.stopPropagation(),ee.click();else{const he=$.querySelector(".spoiler-media-button:not(.spoiling)");he&&(u.stopPropagation(),he.click())}}}),Ft=ae.slice(0,me?void 0:4),St=ae.length>1&&Ft.some(u=>!!u.description&&!Ra(u.description)),Ya=Fe(()=>{if(!St)return null;const u=[];return Ft.forEach(($,ee)=>{if(!$.description)return;const he=u.findIndex(Ye=>Ye.media.description===$.description);he===-1?u.push({media:$,indices:[ee]}):u[he].indices.push(ee)}),u.map(({media:$,indices:ee})=>e("div",{"data-caption-index":ee.map(he=>he+1).join(" "),onClick:he=>{he.preventDefault(),he.stopPropagation(),M.showMediaAlt={alt:$.description,lang:z}},title:$.description,children:[e("sup",{children:ee.map(he=>he+1).join(" ")})," ",$.description]},$.id))},[St,Ft,z]),ct=Fe(()=>{var u;return!!xe&&Te===((u=n.account)==null?void 0:u.id)||!!C.statusThreadNumber[L]},[xe,Te,(zn=n.account)==null?void 0:zn.id,C.statusThreadNumber[L]]),Ja=Fe(()=>c&&!ct&&!l&&!xe&&de==="public"&&G>0,[c,ct,l,xe,G,de]),Dn=Fe(()=>{if(oe||_e||Ie||se||ae!=null&&ae.length||ct||l||xe||G<=0||!/[???︖❓❔⁇⁈⁉¿‽؟]/.test(ke))return!1;const ee=un(ke);if(ee>0&&ee<=Ui)return!0},[oe,_e,Ie,se,ae,Me,ct,l,xe,G,ke]);return e("article",{"data-state-post-id":L,ref:u=>{var ee;qt.current=u;const $=((ee=u==null?void 0:u.closest)==null?void 0:ee.call(u,".timeline-item, .timeline-item-alt, .status-link, .status-focus"))||u;Ha.current=$,Ka.current=$,qa.current=$,Wa.current=$,Ga.current=$},tabindex:"-1",class:`status ${!l&&xe&&ze?"status-reply-to":""} visibility-${de} ${P?"status-pinned":""} ${{s:"small",m:"medium",l:"large"}[s]} ${D?"status-deleted":""} ${g?"status-card":""}`,onMouseEnter:ce,onContextMenu:u=>{if(!At||u.metaKey)return;const $=u.target.closest("a");$&&/^https?:\/\//.test($.getAttribute("href"))||(u.preventDefault(),Xt({anchorPoint:{x:u.clientX,y:u.clientY},direction:"right"}),Tt(!0))},...At?Ua():{},children:[At&&e(So,{ref:In,state:Rn?"open":void 0,...Lt,onClose:u=>{var $,ee,he;Tt(!1),(u==null?void 0:u.reason)==="click"&&((he=(ee=($=qt.current)==null?void 0:$.closest("[tabindex]"))==null?void 0:ee.focus)==null||he.call(ee))},portal:{target:document.body},containerProps:{style:{zIndex:1001},onClick:()=>{var u,$;($=(u=In.current)==null?void 0:u.closeMenu)==null||$.call(u)}},overflow:"auto",boundingBoxPadding:Aa(),unmountOnClose:!0,children:Pn}),s!=="l"&&e("div",{class:"status-badge",children:[R&&e(x,{class:"reblog",icon:"rocket",size:"s"}),re&&e(x,{class:"favourite",icon:"heart",size:"s"}),ue&&e(x,{class:"bookmark",icon:"bookmark",size:"s"}),P&&e(x,{class:"pin",icon:"pin",size:"s"})]}),s!=="s"&&e("a",{href:j,tabindex:"-1",title:`@${F}`,onClick:u=>{u.preventDefault(),u.stopPropagation(),M.showAccount={account:n.account,instance:b}},children:e(Qe,{url:V||Y,size:"xxl",squircle:fe})}),e("div",{class:"container",children:[e("div",{class:"meta",children:[e("span",{class:"meta-name",children:e(ht,{account:n.account,instance:b,showAvatar:s==="s",showAcct:me})})," ",s!=="l"&&(D?e("span",{class:"status-deleted-tag",children:"Deleted"}):Oe&&!p&&!g?e(at,{to:b?`/${b}/s/${B}`:`/s/${B}`,onClick:u=>{u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.which===2||(u.preventDefault(),u.stopPropagation(),y==null||y(u,n),Xt({anchorRef:{current:u.currentTarget},align:"end",direction:"bottom",gap:4}),Tt(!0))},class:`time ${Rn&&(Lt!=null&&Lt.anchorRef)?"is-open":""}`,children:[Ja&&!Dn?e(x,{icon:"comment2",size:"s",alt:`${G} ${G===1?"reply":"replies"}`}):e(x,{icon:nt[de],alt:ft[de],size:"s"})," ",e(yt,{datetime:ye,format:"micro"}),!p&&e(x,{icon:"more2",class:"more"})]}):e("span",{class:"time",children:[e(x,{icon:nt[de],alt:ft[de],size:"s"})," ",e(yt,{datetime:ye,format:"micro"})]}))]}),de==="direct"&&e(W,{children:[e("div",{class:"status-direct-badge",children:"Private mention"})," "]}),!l&&e(W,{children:ct?e("div",{class:"status-thread-badge",children:[e(x,{icon:"thread",size:"s"}),"Thread",C.statusThreadNumber[L]?` ${C.statusThreadNumber[L]}/X`:""]}):!!xe&&!!ze&&(!!se||!be.find(u=>u.id===Te))&&e("div",{class:"status-reply-badge",children:[e(x,{icon:"reply"})," ",e(ht,{account:ze,instance:b,short:!0})]})}),e("div",{class:`content-container ${se||Ie?"has-spoiler":""} ${ot?"show-spoiler":""} ${it?"show-media":""}`,"data-content-text-weight":o?Ln():null,style:(me||o)&&{"--content-text-weight":Ln()},children:[!!se&&e(W,{children:[e("div",{class:"content spoiler-content",lang:z,dir:"auto",ref:Na,"data-read-more":Tn,children:e("p",{children:e(bt,{text:se,emojis:E})})}),Ge||p?e("div",{class:"spoiler-divider",children:[e(x,{icon:"eye-open"})," Content warning"]}):e("button",{class:`light spoiler-button ${ot?"spoiling":""}`,type:"button",onClick:u=>{u.preventDefault(),u.stopPropagation(),ot?(delete M.spoilers[B],Ge||delete M.spoilersMedia[B]):(M.spoilers[B]=!0,Ge||(M.spoilersMedia[B]=!0))},children:[e(x,{icon:ot?"eye-open":"eye-close"})," ",ot?"Show less":"Show content"]})]}),!!ke&&e("div",{class:"content",ref:Ba,"data-read-more":Tn,children:[e("div",{lang:z,dir:"auto",class:"inner-content",onClick:vi({mentions:be,instance:b,previewMode:p,statusURL:Oe}),dangerouslySetInnerHTML:{__html:Fa(ke,{emojis:E,postEnhanceDOM:u=>{u.querySelectorAll('a.u-url[target="_blank"]').forEach($=>{/http/i.test($.innerText.trim())||$.removeAttribute("target")})}})}}),e(er,{id:B,instance:b,level:g})]}),!!_e&&e(Ri,{lang:z,poll:_e,readOnly:r||!A||!T,onUpdate:u=>{M.statuses[L].poll=u},refresh:()=>_.v1.polls.$select(_e.id).fetch().then(u=>{M.statuses[L].poll=u}).catch(u=>{}),votePoll:u=>_.v1.polls.$select(_e.id).votes.create({choices:u}).then($=>{M.statuses[L].poll=$}).catch($=>{})}),((f||xn)&&!!ke.trim()&&!!_n(yn(ke,E))&&Fn||Ut)&&e(Si,{forceTranslate:Ut||xn,mini:!me&&!l,sourceLanguage:z,text:mn(n)}),!p&&Ie&&!!ae.length&&et!=="show_all"&&e("button",{class:`plain spoiler-media-button ${it?"spoiling":""}`,type:"button",hidden:!Ge&&!!se,onClick:u=>{u.preventDefault(),u.stopPropagation(),it?delete M.spoilersMedia[B]:M.spoilersMedia[B]=!0},children:[e(x,{icon:it?"eye-open":"eye-close"})," ",it?"Show less":"Show media"]}),!!ae.length&&e(Yi,{lang:z,enabled:St,captionChildren:Ya,children:e("div",{ref:Va,class:`media-container media-eq${ae.length} ${ae.length>2?"media-gt2":""} ${ae.length>4?"media-gt4":""}`,children:Ft.map((u,$)=>e(ji,{media:u,autoAnimate:me,showCaption:ae.length===1,lang:z,altIndex:St&&!!u.description&&$+1,to:`/${b}/s/${B}?${l?"media":"media-only"}=${$+1}`,onClick:h?ee=>{h(ee,$,u,n)}:void 0},u.id))})}),!!oe&&/^https/i.test(oe==null?void 0:oe.url)&&!Ie&&!se&&!_e&&!ae.length&&!C.statusQuotes[L]&&e(Ji,{card:oe,selfReferential:(oe==null?void 0:oe.url)===n.url||(oe==null?void 0:oe.url)===n.uri,instance:I})]}),!me&&Dn&&e("div",{class:"content-comment-hint insignificant",children:[e(x,{icon:"comment2",alt:"Replies"})," ",G]}),me&&e(W,{children:[e("div",{class:"extra-meta",children:D?e("span",{class:"status-deleted-tag",children:"Deleted"}):e(W,{children:[e(x,{icon:nt[de],alt:ft[de]})," ",e("a",{href:Oe,target:"_blank",rel:"noopener noreferrer",children:e("time",{class:"created",datetime:ye.toISOString(),title:ye.toLocaleString(),children:An})}),ne&&e(W,{children:[" ","• ",e(x,{icon:"pencil",alt:"Edited"})," ",e("time",{tabIndex:"0",class:"edited",datetime:Ne.toISOString(),onClick:()=>{xt(B)},children:Cn})]})]})}),e("div",{class:`actions ${D?"disabled":""}`,children:[e("div",{class:"action has-count",children:e(Pt,{title:"Reply",alt:"Comments",class:"reply-button",icon:"comment",count:G,onClick:Wt})}),e(an,{disabled:!st,onClick:Yt,confirmLabel:e(W,{children:[e(x,{icon:"rocket"}),e("span",{children:R?"Unboost?":"Boost to everyone?"})]}),menuFooter:Gt&&!R&&e("div",{class:"footer",children:[e(x,{icon:"alert"}),"Some media have no descriptions."]}),children:e("div",{class:"action has-count",children:e(Pt,{checked:R,title:["Boost","Unboost"],alt:["Boost","Boosted"],class:"reblog-button",icon:"rocket",count:ge,disabled:!st})})}),e("div",{class:"action has-count",children:e(Pt,{checked:re,title:["Like","Unlike"],alt:["Like","Liked"],class:"favourite-button",icon:"heart",count:Ae,onClick:Jt})}),e("div",{class:"action",children:e(Pt,{checked:ue,title:["Bookmark","Unbookmark"],alt:["Bookmark","Bookmarked"],class:"bookmark-button",icon:"bookmark",onClick:Zt})}),e(bn,{portal:{target:document.querySelector(".status-deck")||document.body},align:"end",gap:4,overflow:"auto",viewScroll:"close",menuButton:e("div",{class:"action",children:e("button",{type:"button",title:"More",class:"plain more-button",children:e(x,{icon:"more",size:"l",alt:"More"})})}),children:Pn})]})]})]}),!!Kt&&e(Vt,{class:"light",onClick:u=>{u.target===u.currentTarget&&xt(!1)},children:e(Zi,{statusID:Kt,instance:b,fetchStatusHistory:()=>_.v1.statuses.$select(Kt).history.list(),onClose:()=>{var u;xt(!1),(u=qt.current)==null||u.focus()}})})]})}function Yi(t){const{enabled:n,children:a,lang:s,captionChildren:o}=t;return!n||!o?a:e("figure",{class:"media-figure-multiple",children:[a,e("figcaption",{lang:s,dir:"auto",children:o})]})}function Ji({card:t,selfReferential:n,instance:a}){var j;const s=_t(M),{blurhash:o,title:r,description:c,html:l,providerName:d,providerUrl:f,authorName:m,authorUrl:p,width:h,height:g,image:y,imageDescription:v,url:k,type:_,embedUrl:b,language:T,publishedAt:I}=t,A=r||d||m,C=h/g>=1.2?"large":"",[F,Y]=Q(null);if(pe(()=>{A&&y&&!n&&ya(k)&&_a(a,k).then(J=>{if(!J)return;const{id:Z,url:le}=J;Y("#"+le)})},[A,y,n]),s.unfurledLinks[k])return null;const V=/