import{K as no,L as ao,D as oo,O as kn,Q as pa,U as io,V as ro,t as fa,s as so,W as ga,F as ee,_ as ge,a as e,p as X,u as je,X as co,e as lo,N as va,Y as uo,Z as mo,M as xe,$ as ho,S as po,w as Lt,g as K,a0 as fo,a1 as wt,a2 as go,a3 as vo,q as ke,a4 as bo,a5 as yo,B as _o,a6 as ko,a7 as wo,a8 as Eo,a9 as xo,aa as To,ab as Lo,ac as Ao,ad as Co,ae as So,j as ba,af as $o,f as ya,ag as Fo,x as wn,A as yn,ah as Kn,o as Po,b as it,P as Io,d as Vt,J as _a,C as Ro,ai as Do,aj as Mo,ak as qn,al as Oo,am as Wn,k as zo,v as Gn}from"./vendor-7Tkqe_A2.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"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=a(o);fetch(o.href,s)}})();function ka(t){const n=N.local.getJSON("accounts")||[];return n.find(a=>a.info.id===t)||n[0]}function No(t){return(N.local.getJSON("accounts")||[]).find(a=>a.accessToken===t)}function Bo(t){return(N.local.getJSON("accounts")||[]).find(a=>a.instanceURL===t)}function Yt(){window.__IGNORE_GET_ACCOUNT_ERROR__;const t=N.session.get("currentAccount");return ka(t)}function jt(){const t=Yt(),{instanceURL:n,info:{id:a}}=t;return`${a}@${n}`}function Vo(t){const n=N.local.getJSON("accounts")||[],a=n.find(r=>r.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),N.local.setJSON("accounts",n),N.session.set("currentAccount",t.info.id)}function Pr(t){const n=N.local.getJSON("accounts")||[],a=n.find(r=>r.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},N.local.setJSON("accounts",n))}let sn=null;function wa(){if(sn)return sn;try{const t=Yt(),n=N.local.getJSON("instances"),a=t.instanceURL.toLowerCase();return sn=n[a]}catch(t){return alert(`Failed to load instance configuration. Please try again.
${t}`),N.local.del("instances"),location.reload(),{}}}function Uo(t){const{configuration:n,maxMediaAttachments:a,maxTootChars:r,pleroma:o,pollLimits:s}=t,c=(n==null?void 0:n.statuses)||{};a&&(c.maxMediaAttachments??(c.maxMediaAttachments=a)),r&&(c.maxCharacters??(c.maxCharacters=r));const l=(n==null?void 0:n.polls)||{};return s&&(l.maxCharactersPerOption??(l.maxCharactersPerOption=s.maxOptionChars),l.maxExpiration??(l.maxExpiration=s.maxExpiration),l.maxOptions??(l.maxOptions=s.maxOptions),l.minExpiration??(l.minExpiration=s.minExpiration)),{...n,statuses:c,polls:l}}function jo(){const t=wa();return Uo(t)}const He={get:t=>{try{return localStorage.getItem(t)}catch{return null}},getJSON:t=>{try{return JSON.parse(He.get(t))}catch{return null}},set:(t,n)=>{try{return localStorage.setItem(t,n)}catch{return null}},setJSON:(t,n)=>{try{return He.set(t,JSON.stringify(n))}catch{return null}},del:t=>{try{return localStorage.removeItem(t)}catch{return null}}},_n={get:t=>{try{return sessionStorage.getItem(t)}catch{return null}},getJSON:t=>{try{return JSON.parse(_n.get(t))}catch{return null}},set:(t,n)=>{try{return sessionStorage.setItem(t,n)}catch{return null}},setJSON:(t,n)=>{try{return _n.set(t,JSON.stringify(n))}catch{return null}},del:t=>{try{return sessionStorage.removeItem(t)}catch{return null}}},Ho={get:t=>{try{return He.getJSON(t)[jt()]}catch{return null}},set:(t,n)=>{try{const a=He.getJSON(t)||{};return a[jt()]=n,He.setJSON(t,a)}catch{return null}},del:t=>{try{const n=He.getJSON(t)||{};return delete n[jt()],He.setJSON(t,n)}catch{return null}}},N={local:He,session:_n,account:Ho},Ht="mastodon.social",qt={},Re={};window.__ACCOUNT_APIS__=Re;let be;function Ve({instance:t,accessToken:n}){/^https?:\/\//.test(t)&&(t=t.replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase());const a=t?`https://${t}`:`https://${Ht}`,o={masto:no({url:a,accessToken:n,timeout:3e4}),instance:t,accessToken:n};return qt[t]=o,Re[t]||(Re[t]={}),n&&(Re[t][n]=o),o}async function Ir(t,n){const{masto:a,accessToken:r}=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:s,urls:{streamingApi:c}={},domain:l,configuration:{urls:{streaming:d}={}}={}}=o,f=N.local.getJSON("instances")||{};if((s||l)&&(f[(l||s).replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase()]=o),n&&(f[n.toLowerCase()]=o),N.local.setJSON("instances",f),"WebSocket"in window&&(c||d)){const p=ao({streamingApiUrl:d||c,accessToken:r,implementation:WebSocket});t.streaming=p}}async function Rr(t,n,a,r){const{masto:o}=t,s=await o.v1.accounts.verifyCredentials();N.session.set("currentAccount",s.id),Vo({info:s,instanceURL:n.toLowerCase(),accessToken:a,vapidKey:r})}async function Dr(t){try{const{masto:n}=t,a=await n.v1.preferences.fetch();N.account.set("preferences",a)}catch{}}function We({instance:t,accessToken:n,accountID:a,account:r}={}){var d,f,m,p,h;if(t&&(t=t.toLowerCase().trim()),t&&n){const g=((d=Re[t])==null?void 0:d[n])||Ve({instance:t,accessToken:n}),{masto:b,streaming:v}=g;return{masto:b,streaming:v,client:g,authenticated:!0,instance:t}}if(n)for(const g in Re)if(Re[g][n]){const b=Re[g][n],{masto:v,streaming:_}=b;return{masto:v,streaming:_,client:b,authenticated:!0,instance:g}}else{const b=No(n);if(b){const v=b.accessToken,_=b.instanceURL.toLowerCase().trim(),E=Ve({instance:_,accessToken:v}),{masto:L,streaming:w}=E;return{masto:L,streaming:w,client:E,authenticated:!0,instance:_}}else throw new Error("Access token not found")}if(r||a)if(r=r||ka(a),r){const g=r.accessToken,b=r.instanceURL.toLowerCase().trim(),v=((f=Re[b])==null?void 0:f[g])||Ve({instance:b,accessToken:g}),{masto:_,streaming:E}=v;return{masto:_,streaming:E,client:v,authenticated:!0,instance:b}}else throw new Error(`Account ${a} not found`);const o=Yt();if(t){if((be==null?void 0:be.instance)===t)return{masto:be.masto,streaming:be.streaming,client:be,authenticated:!0,instance:t};if((o==null?void 0:o.instanceURL)===t){const{accessToken:L}=o;return be=((m=Re[t])==null?void 0:m[L])||Ve({instance:t,accessToken:L}),{masto:be.masto,streaming:be.streaming,client:be,authenticated:!0,instance:t}}const g=Bo(t);if(g){const L=g.accessToken,w=((p=Re[t])==null?void 0:p[L])||Ve({instance:t,accessToken:L}),{masto:k,streaming:$}=w;return{masto:k,streaming:$,client:w,authenticated:!0,instance:t}}const b=qt[t]||Ve({instance:t}),{masto:v,streaming:_,accessToken:E}=b;return{masto:v,streaming:_,client:b,authenticated:!!E,instance:t}}if(be)return{masto:be.masto,streaming:be.streaming,client:be,authenticated:!0,instance:be.instance};if(o){const{accessToken:g,instanceURL:b}=o;return be=((h=Re[b])==null?void 0:h[g])||Ve({instance:b,accessToken:g}),{masto:be.masto,streaming:be.streaming,client:be,authenticated:!0,instance:b}}const s=qt[Ht]||Ve({instance:Ht}),{masto:c,streaming:l}=s;return{masto:c,streaming:l,client:s,authenticated:!1,instance:Ht}}window.__API__={currentAccountApi:be,apis:qt,accountApis:Re};window._showToast=_e;function _e(t){typeof t=="string"&&(t={text:t});const{onClick:n,delay:a,...r}=t,o=oo({className:`${n||t.destination?"shiny-pill":""}`,gravity:"bottom",position:"center",...r,onClick:()=>{n==null||n(o)}});return a?setTimeout(()=>{o.showToast()},a):o.showToast(),o}function Ea(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=kn;function Ye(t,n={}){return kn(t,{...n,maxSize:50,isDeepEqual:!0})}function Jt(t,n={}){return Ye(t,{isPromise:!0,...n})}function Ko(t,n){let a=[],r=!1;function o(){if(a.length===0){r=!1;return}a.shift()(),setTimeout(o,n)}return function(...s){const c=()=>t.apply(this,s);a.push(c),r||(r=!0,setTimeout(o,n))}}const qo=pa({limit:1,interval:1e3}),Wo=/(twitter|github)\.com/i,Yn={};function Go(t,n){var v;const a=io(M);if(Wo.test(n)||Yn[n])return;if(new RegExp(t+"/").test((v=a.unfurledLinks[n])==null?void 0:v.url))return Promise.resolve(a.unfurledLinks[n]);let o,s=n;/\/\/elk\.[^\/]+\/[^\/]+\.[^\/]+/i.test(s)&&(s=s.replace(/elk\.[^\/]+\//i,"")),/\/\/trunks\.[^\/]+\/status\/[^\/]+\.[^\/]+/i.test(s)&&(s=s.replace(/trunks\.[^\/]+\/status\//i,"")),/\/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(s)&&(s=`https://${s.split("/#/")[1].replace(/\/s\//i,"/@fakeUsername/")}`);let c;try{c=new URL(s)}catch{return}const l=c.hostname,d=c.pathname,m=/\/@([^@\/]+)@?([^\/]+)?\/(\d+)$/i.exec(d);if(m){const _=m[3],{masto:E}=We({instance:l});o=E.v1.statuses.$select(_).fetch().then(L=>{if(L!=null&&L.id)return{status:L,instance:l};throw new Error("No results")})}const{masto:p}=We({instance:t}),h=p.v2.search.fetch({q:s,type:"statuses",resolve:!0,limit:1}).then(_=>{if(_.statuses.length>0)return{status:_.statuses[0],instance:t};throw new Error("No results")});function g(_){const{status:E,instance:L}=_,{id:w}=E,k=`/${L}/s/${w}`,$={id:w,instance:L,url:k};return M.unfurledLinks[n]=$,Me(E,L,{skipThreading:!0}),$}function b(_){Yn[n]=!0}return o?Promise.race([h,new Promise((E,L)=>setTimeout(L,3e3))]).catch(()=>o.catch(()=>h)).then(g).catch(b):h.then(g).catch(b)}const xa=qo(Go),ae=ro({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:{},statusReply:{},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=ae;function Mr(){ae.notificationsLast=N.account.get("notificationsLast")||null,ae.shortcuts=N.account.get("shortcuts")??[],ae.settings.autoRefresh=N.account.get("settings-autoRefresh")??!1,ae.settings.shortcutsViewMode=N.account.get("settings-shortcutsViewMode")??null,N.account.get("settings-shortcutsColumnsMode")&&(ae.settings.shortcutsColumnsMode=!0),ae.settings.boostsCarousel=N.account.get("settings-boostsCarousel")??!0,ae.settings.contentTranslation=N.account.get("settings-contentTranslation")??!0,ae.settings.contentTranslationTargetLanguage=N.account.get("settings-contentTranslationTargetLanguage")||null,ae.settings.contentTranslationHideLanguages=N.account.get("settings-contentTranslationHideLanguages")||[],ae.settings.contentTranslationAutoInline=N.account.get("settings-contentTranslationAutoInline")??!1,ae.settings.mediaAltGenerator=N.account.get("settings-mediaAltGenerator")??!1,ae.settings.cloakMode=N.account.get("settings-cloakMode")??!1}fa(ae,"notificationsLast",t=>{N.account.set("notificationsLast",ae.notificationsLast)});so(ae,t=>{for(const[n,a,r,o]of t)a.join(".")==="settings.autoRefresh"&&N.account.set("settings-autoRefresh",!!r),a.join(".")==="settings.boostsCarousel"&&N.account.set("settings-boostsCarousel",!!r),a.join(".")==="settings.shortcutsViewMode"&&N.account.set("settings-shortcutsViewMode",r),a.join(".")==="settings.contentTranslation"&&N.account.set("settings-contentTranslation",!!r),a.join(".")==="settings.contentTranslationAutoInline"&&N.account.set("settings-contentTranslationAutoInline",!!r),a.join(".")==="settings.contentTranslationTargetLanguage"&&N.account.set("settings-contentTranslationTargetLanguage",r),/^settings\.contentTranslationHideLanguages/i.test(a.join("."))&&N.account.set("settings-contentTranslationHideLanguages",ae.settings.contentTranslationHideLanguages),a.join(".")==="settings.mediaAltGenerator"&&N.account.set("settings-mediaAltGenerator",!!r),(a==null?void 0:a[0])==="shortcuts"&&N.account.set("shortcuts",ae.shortcuts),a.join(".")==="settings.cloakMode"&&N.account.set("settings-cloakMode",!!r)});function Pe(t,n){if(t)return n?`${n}/${t}`:t}function En(t,n){if(n){const a=Pe(t,n);return ae.statuses[a]}return ae.statuses[t]}function Me(t,n,a){typeof n=="object"&&(a=n,n=null);const{override:r=!0,skipThreading:o=!1,skipUnfurling:s=!1}=a||{};if(!t)return;const c=En(t.id,n);!r&&c||ga(t,c)||(queueMicrotask(()=>{var d,f;const l=Pe(t.id,n);if(c!=null&&c._pinned&&(t._pinned=c._pinned),ae.statuses[l]=t,(d=t.reblog)!=null&&d.id){const m=Pe(t.reblog.id,n);ae.statuses[m]=t.reblog}if((f=t.quote)!=null&&f.id){const m=Pe(t.quote.id,n);ae.statuses[m]=t.quote,ae.statusQuotes[l]=[{id:t.quote.id,instance:n}]}}),o||queueMicrotask(()=>{Jo(t.reblog||t,n)}),s||queueMicrotask(()=>{Zo(t.reblog||t,n)}))}function Yo(t,n){const{masto:a,instance:r}=We({instance:n});let o=0;async function s(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=Pe(d,r);let p=ae.statuses[m];if(!p){if(o++>3)throw"Too many fetches for thread";await new Promise(h=>setTimeout(h,500*o)),p=await Xo(d,a),Me(p,r,{skipThreading:!0})}return[...await s(p,++l),c]}return s(t).then(c=>{c.length>1&&c.forEach((l,d)=>{const f=Pe(l.id,r);ae.statusThreadNumber[f]=d+1})}).catch(c=>{})}const Jo=Ko(Yo,100),Jn=document.createElement("div");function Zo(t,n){const{instance:a}=We(),r=t==null?void 0:t.content;if(/{const d=l.href;return!(d===t.url||d===t.uri)&&Ea(d)}).forEach((l,d)=>{xa(a,l.href).then(f=>{f&&s&&(Array.isArray(ae.statusQuotes[s])||(ae.statusQuotes[s]=[]),ae.statusQuotes[s][d]||ae.statusQuotes[s].splice(d,0,f))})})}}const Xo=Jt((t,n)=>n.v1.statuses.$select(t).fetch());function Qo(t,n,a,r){const o=ee(t);ge(()=>{o.current=t},[t,a]),ge(()=>{!r||n===null||n===!1||o.current()},[r]),ge(()=>{if(n===null||n===!1)return;const c=setInterval(()=>o.current(),n);return()=>clearInterval(c)},[n])}function Ta(t){const n=new URL("/compose/",window.location),{width:a,height:r}=window.screen,o=Math.max(0,(a-600)/2),s=Math.max(0,(r-450)/2),c=Math.min(a,600),l=Math.min(r,450),d=(t==null?void 0:t.uid)||Math.random(),f=window.open(n,"compose"+d,`width=${c},height=${l},left=${o},top=${s}`);return f?f.__COMPOSE__=t:alert("Looks like your browser is blocking popups."),f}const ei="modulepreload",ti=function(t,n){return new URL(t,n).href},Zn={},y=function(n,a,r){let o=Promise.resolve();if(a&&a.length>0){const s=document.getElementsByTagName("link");o=Promise.all(a.map(c=>{if(c=ti(c,r),c in Zn)return;Zn[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const h=s[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":ei,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(s=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s})},La={x:()=>y(()=>import("./icons/close-line-YTE7hIJE.js"),__vite__mapDeps([]),import.meta.url),heart:()=>y(()=>import("./icons/heart-line-VwvWYh8h.js"),__vite__mapDeps([]),import.meta.url),bookmark:()=>y(()=>import("./icons/bookmark-line-D6jQ7QFs.js"),__vite__mapDeps([]),import.meta.url),"check-circle":()=>y(()=>import("./icons/check-circle-line-sE41WGxF.js"),__vite__mapDeps([]),import.meta.url),"x-circle":()=>y(()=>import("./icons/close-circle-line-qd3g541O.js"),__vite__mapDeps([]),import.meta.url),transfer:()=>y(()=>import("./icons/transfer-4-line-Q9QJoxz3.js"),__vite__mapDeps([]),import.meta.url),rocket:()=>y(()=>import("./icons/rocket-line-rZbVYYCZ.js"),__vite__mapDeps([]),import.meta.url),"arrow-left":()=>y(()=>import("./icons/arrow-left-line-_YC6-XGG.js"),__vite__mapDeps([]),import.meta.url),"arrow-right":()=>y(()=>import("./icons/arrow-right-line-PypiEqpu.js"),__vite__mapDeps([]),import.meta.url),"arrow-up":()=>y(()=>import("./icons/arrow-up-line-fcuKqhVE.js"),__vite__mapDeps([]),import.meta.url),"arrow-down":()=>y(()=>import("./icons/arrow-down-line-0TRJUP_K.js"),__vite__mapDeps([]),import.meta.url),earth:()=>y(()=>import("./icons/earth-line-t1Um8wpQ.js"),__vite__mapDeps([]),import.meta.url),lock:()=>y(()=>import("./icons/lock-line-0jNHqZpm.js"),__vite__mapDeps([]),import.meta.url),unlock:()=>y(()=>import("./icons/unlock-line-w3piJMVb.js"),__vite__mapDeps([]),import.meta.url),"eye-close":()=>y(()=>import("./icons/eye-close-line-lBiePPv9.js"),__vite__mapDeps([]),import.meta.url),"eye-open":()=>y(()=>import("./icons/eye-2-line-vz_Kw-rK.js"),__vite__mapDeps([]),import.meta.url),message:()=>y(()=>import("./icons/mail-line-5XLS6FEo.js"),__vite__mapDeps([]),import.meta.url),comment:()=>y(()=>import("./icons/chat-3-line-F0xcdpXY.js"),__vite__mapDeps([]),import.meta.url),comment2:()=>y(()=>import("./icons/comment-2-line-xEXuT-Ip.js"),__vite__mapDeps([]),import.meta.url),home:()=>y(()=>import("./icons/home-3-line-qJiZhXUH.js"),__vite__mapDeps([]),import.meta.url),notification:()=>y(()=>import("./icons/notification-line-olNPLtgS.js"),__vite__mapDeps([]),import.meta.url),follow:()=>y(()=>import("./icons/user-follow-line-k_GCWTtp.js"),__vite__mapDeps([]),import.meta.url),"follow-add":()=>y(()=>import("./icons/user-add-line-zzW9OULB.js"),__vite__mapDeps([]),import.meta.url),poll:[()=>y(()=>import("./icons/chart-bar-line-5r_DfN2w.js"),__vite__mapDeps([]),import.meta.url),"90deg"],pencil:()=>y(()=>import("./icons/pencil-line-bKXqElLR.js"),__vite__mapDeps([]),import.meta.url),quill:()=>y(()=>import("./icons/quill-pen-line-h_5-FsGz.js"),__vite__mapDeps([]),import.meta.url),at:()=>y(()=>import("./icons/at-line-9vJS_Hnl.js"),__vite__mapDeps([]),import.meta.url),attachment:()=>y(()=>import("./icons/attachment-line-C2PUa1Ke.js"),__vite__mapDeps([]),import.meta.url),upload:()=>y(()=>import("./icons/upload-3-line-Qsjvubiw.js"),__vite__mapDeps([]),import.meta.url),gear:()=>y(()=>import("./icons/settings-3-line-kt4MSpRv.js"),__vite__mapDeps([]),import.meta.url),more:()=>y(()=>import("./icons/more-3-line-wUD-Yhmj.js"),__vite__mapDeps([]),import.meta.url),more2:()=>y(()=>import("./icons/more-1-fill-je1-slyh.js"),__vite__mapDeps([]),import.meta.url),external:()=>y(()=>import("./icons/external-link-line-8nOOkmFu.js"),__vite__mapDeps([]),import.meta.url),popout:()=>y(()=>import("./icons/external-link-line-8nOOkmFu.js"),__vite__mapDeps([]),import.meta.url),popin:[()=>y(()=>import("./icons/external-link-line-8nOOkmFu.js"),__vite__mapDeps([]),import.meta.url),"180deg"],plus:()=>y(()=>import("./icons/add-circle-line--O-MfyNy.js"),__vite__mapDeps([]),import.meta.url),"chevron-left":()=>y(()=>import("./icons/left-line-Jck0yVmC.js"),__vite__mapDeps([]),import.meta.url),"chevron-right":()=>y(()=>import("./icons/right-line-7VBoqLdz.js"),__vite__mapDeps([]),import.meta.url),"chevron-down":()=>y(()=>import("./icons/down-line-9PeS5YhF.js"),__vite__mapDeps([]),import.meta.url),reply:[()=>y(()=>import("./icons/share-forward-line-4jL-2Q4u.js"),__vite__mapDeps([]),import.meta.url),"180deg","horizontal"],thread:()=>y(()=>import("./icons/route-line-2YYy3958.js"),__vite__mapDeps([]),import.meta.url),group:()=>y(()=>import("./icons/group-line-JvhJklhQ.js"),__vite__mapDeps([]),import.meta.url),bot:()=>y(()=>import("./icons/android-2-line-uPwvVubH.js"),__vite__mapDeps([]),import.meta.url),menu:()=>y(()=>import("./icons/rows-4-line-SxGPYpTa.js"),__vite__mapDeps([]),import.meta.url),list:()=>y(()=>import("./icons/list-check-line-qNqx9Mm4.js"),__vite__mapDeps([]),import.meta.url),search:()=>y(()=>import("./icons/search-2-line-G39AynEw.js"),__vite__mapDeps([]),import.meta.url),hashtag:()=>y(()=>import("./icons/hashtag-line-SS3QMu1R.js"),__vite__mapDeps([]),import.meta.url),info:()=>y(()=>import("./icons/information-line-8SOch6cR.js"),__vite__mapDeps([]),import.meta.url),shortcut:()=>y(()=>import("./icons/lightning-line-JMYUlCZM.js"),__vite__mapDeps([]),import.meta.url),user:()=>y(()=>import("./icons/user-4-line-zT_bpOrS.js"),__vite__mapDeps([]),import.meta.url),following:()=>y(()=>import("./icons/walk-line-CF7a5s4t.js"),__vite__mapDeps([]),import.meta.url),pin:()=>y(()=>import("./icons/pin-line-ULyRQyWZ.js"),__vite__mapDeps([]),import.meta.url),unpin:[()=>y(()=>import("./icons/pin-line-ULyRQyWZ.js"),__vite__mapDeps([]),import.meta.url),"180deg"],bus:()=>y(()=>import("./icons/bus-2-line-XuQdDZ_w.js"),__vite__mapDeps([]),import.meta.url),link:()=>y(()=>import("./icons/link-2-line-BUqp1EwN.js"),__vite__mapDeps([]),import.meta.url),history:()=>y(()=>import("./icons/history-line-yoG7K8wL.js"),__vite__mapDeps([]),import.meta.url),share:()=>y(()=>import("./icons/share-2-line-PYo-zN94.js"),__vite__mapDeps([]),import.meta.url),sparkles:()=>y(()=>import("./icons/sparkles-line-wjZWGZ1a.js"),__vite__mapDeps([]),import.meta.url),sparkles2:()=>y(()=>import("./icons/sparkles-2-line-g2FqdZ0R.js"),__vite__mapDeps([]),import.meta.url),exit:()=>y(()=>import("./icons/exit-line-l-1uUgI7.js"),__vite__mapDeps([]),import.meta.url),translate:()=>y(()=>import("./icons/translate-line-HpDtlqS2.js"),__vite__mapDeps([]),import.meta.url),play:()=>y(()=>import("./icons/play-fill-Ey-zv2eL.js"),__vite__mapDeps([]),import.meta.url),trash:()=>y(()=>import("./icons/delete-2-line-pjUduCFs.js"),__vite__mapDeps([]),import.meta.url),mute:()=>y(()=>import("./icons/volume-mute-line-WthBoXru.js"),__vite__mapDeps([]),import.meta.url),unmute:()=>y(()=>import("./icons/volume-line-PZujbN8h.js"),__vite__mapDeps([]),import.meta.url),block:()=>y(()=>import("./icons/forbid-circle-line-3FxopGoP.js"),__vite__mapDeps([]),import.meta.url),unblock:[()=>y(()=>import("./icons/forbid-circle-line-3FxopGoP.js"),__vite__mapDeps([]),import.meta.url),"180deg"],flag:()=>y(()=>import("./icons/flag-4-line-M3u-PO0J.js"),__vite__mapDeps([]),import.meta.url),time:()=>y(()=>import("./icons/time-line-ThP0kTRr.js"),__vite__mapDeps([]),import.meta.url),refresh:()=>y(()=>import("./icons/refresh-2-line-t42qqclb.js"),__vite__mapDeps([]),import.meta.url),emoji2:()=>y(()=>import("./icons/emoji-2-line--uNVc2IC.js"),__vite__mapDeps([]),import.meta.url),filter:()=>y(()=>import("./icons/filter-2-line-KyjbFYlO.js"),__vite__mapDeps([]),import.meta.url),chart:()=>y(()=>import("./icons/chart-line-line-pHaLt6yC.js"),__vite__mapDeps([]),import.meta.url),react:()=>y(()=>import("./icons/react-line-YfZPqZem.js"),__vite__mapDeps([]),import.meta.url),layout4:()=>y(()=>import("./icons/layout-4-line-FOdnyEcZ.js"),__vite__mapDeps([]),import.meta.url),layout5:()=>y(()=>import("./icons/layout-5-line-9Kks7dle.js"),__vite__mapDeps([]),import.meta.url),announce:()=>y(()=>import("./icons/announcement-line-MSlAmDH1.js"),__vite__mapDeps([]),import.meta.url),alert:()=>y(()=>import("./icons/alert-line-zyc6hy8V.js"),__vite__mapDeps([]),import.meta.url),round:()=>y(()=>import("./icons/round-fill-a0rplSmV.js"),__vite__mapDeps([]),import.meta.url),"arrow-up-circle":()=>y(()=>import("./icons/arrow-up-circle-line-e3kZqEZN.js"),__vite__mapDeps([]),import.meta.url),"arrow-down-circle":()=>y(()=>import("./icons/arrow-down-circle-line-mpqFtRtO.js"),__vite__mapDeps([]),import.meta.url),clipboard:()=>y(()=>import("./icons/clipboard-line-9F_Yeo71.js"),__vite__mapDeps([]),import.meta.url),"account-edit":()=>y(()=>import("./icons/user-edit-line-9VnWCh0X.js"),__vite__mapDeps([]),import.meta.url),"account-warning":()=>y(()=>import("./icons/user-warning-line-gL3RGb1N.js"),__vite__mapDeps([]),import.meta.url),keyboard:()=>y(()=>import("./icons/keyboard-line-10AZQcVH.js"),__vite__mapDeps([]),import.meta.url),cloud:()=>y(()=>import("./icons/cloud-line-abe0HgFS.js"),__vite__mapDeps([]),import.meta.url),month:()=>y(()=>import("./icons/calendar-month-line-VoXZVWAe.js"),__vite__mapDeps([]),import.meta.url),media:()=>y(()=>import("./icons/photo-album-line--GdJqjfq.js"),__vite__mapDeps([]),import.meta.url),speak:()=>y(()=>import("./icons/radar-line-ndI8IhOG.js"),__vite__mapDeps([]),import.meta.url),building:()=>y(()=>import("./icons/building-5-line-ew7lu83B.js"),__vite__mapDeps([]),import.meta.url),history:()=>y(()=>import("./icons/history-2-line-3yIVzoWo.js"),__vite__mapDeps([]),import.meta.url),document:()=>y(()=>import("./icons/document-line--D6ooZg1.js"),__vite__mapDeps([]),import.meta.url),"arrows-right":()=>y(()=>import("./icons/arrows-right-line-HF4HILdT.js"),__vite__mapDeps([]),import.meta.url)},ni={s:12,m:16,l:20,xl:24,xxl:32},Xn={},ai=kn(function({width:t,height:n,body:a,rotate:r,flip:o}){return e("svg",{viewBox:`0 0 ${t} ${n}`,dangerouslySetInnerHTML:{__html:a},style:{transform:`${r?`rotate(${r})`:""} ${o?"scaleX(-1)":""}`}})},{isShallowEqual:!0,maxSize:Object.keys(La).length,matchesArg:(t,n)=>t.icon===n.icon&&t.body===n.body});function T({icon:t,size:n="m",alt:a,title:r,class:o="",style:s={}}){if(!t)return null;const c=ni[n];let l=La[t];if(!l)return null;let d,f;Array.isArray(l)&&([l,d,f]=l);const[m,p]=X(Xn[t]),h=ee(t);return ge(()=>{m&&h.current===t||((async()=>{const g=await l();p(g.default),Xn[t]=g.default})(),h.current=t)},[t]),e("span",{class:`icon ${o}`,title:r||a,style:{width:`${c}px`,height:`${c}px`,...s},children:m&&e(ai,{icon:t,width:m.width,height:m.height,body:m.body,rotate:d,flip:f})})}function oi(t,n=[]){!t||typeof t!="function"||ge(()=>{const a=new CloseWatcher;return a.addEventListener("close",t),()=>{a.destroy()}},n)}const Aa=window.CloseWatcher?oi:()=>{},ii=document.getElementById("modal-container");function Zt({children:t,onClose:n,onClick:a,class:r}){if(!t)return null;const o=ee();ge(()=>{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 s=window.CloseWatcher,c=je("esc",()=>{setTimeout(()=>{n==null||n()},0)},{enabled:!s&&!!n,keydown:!1,keyup:!0},[n]);Aa(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:r,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 co(l,ii)}function Xt({abrupt:t,hidden:n,...a}){return e("span",{...a,class:`loader-container ${t?"abrupt":""} ${n?"hidden":""}`,children:e("span",{class:"loader"})})}const Qn={s:16,m:20,l:24,xl:32,xxl:50,xxxl:64},ft={},vt=window.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas"),cn=vt.getContext("2d",{willReadFrequently:!0});function ri({url:t,size:n,alt:a="",squircle:r,...o}){n=Qn[n]||n||Qn.m;const s=ee(),c=/missing\.png$/.test(t);return e("span",{ref:s,class:`avatar ${r?"squircle":""} ${ft[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:ft[t]===void 0&&!c?"anonymous":void 0,onError:l=>{l.target.crossOrigin&&(l.target.crossOrigin=null,l.target.src=t)},onLoad:l=>{s.current&&(s.current.dataset.loaded=!0),ft[t]===void 0&&(c||queueMicrotask(()=>{try{const{width:d,height:f}=l.target;vt.width!==d&&(vt.width=d),vt.height!==f&&(vt.height=f),cn.drawImage(l.target,0,0);const m=cn.getImageData(0,0,d,f),p=m.data.filter((h,g)=>g%4===3&&h<=128).length/(m.data.length/4)>.1;p&&s.current.classList.add("has-alpha"),ft[t]=p,cn.clearRect(0,0,d,f)}catch{ft[t]=!1}}))}})})}const Ge=Ye(ri),ot=va((t,n)=>{let a;try{a=lo()}catch{}let r=(location.hash||"").replace(/^#/,"").trim();r===""&&(r="/");const{to:o,...s}=t;if(r&&r!=="/"&&r.includes("?"))try{const l=new URL(r,location.origin);if(l.searchParams.size){const d=Array.from(l.searchParams.entries()).map(([f,m])=>`${f}=${encodeURIComponent(m)}`).join("&");r=l.pathname+"?"+d}}catch{}const c=r===o||decodeURIComponent(r)===o;return e("a",{ref:n,href:`#${o}`,...s,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)}})}),si=document.documentElement,Ut=getComputedStyle(si),ci=8;let Ca=[0,0,0,0];function Sa(){const t=Ut.getPropertyValue("--sai-top"),n=Ut.getPropertyValue("--sai-right"),a=Ut.getPropertyValue("--sai-bottom"),r=Ut.getPropertyValue("--sai-left");Ca=[Math.max(0,parseInt(t,10)),Math.max(0,parseInt(n,10)),Math.max(0,parseInt(a,10)),Math.max(0,parseInt(r,10))]}requestAnimationFrame(Sa);function $a(t=[]){return Ca.map((a,r)=>(a||ci)+(t[r]||0)).join(" ")}CSS.supports("top: env(safe-area-inset-top)")&&window.addEventListener("resize",Sa,{passive:!0});function xn(t){const{containerProps:n,instanceRef:a}=t,r=uo(),o=a!=null&&a.current?a:ee();return e(mo,{boundingBoxPadding:$a(),repositionFlag:`${r.width}x${r.height}`,unmountOnClose:!0,...t,instanceRef:o,containerProps:{onClick:s=>{var c,l,d;s.target===s.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,s)},...n}})}function ln({subMenu:t=!1,confirm:n=!0,confirmLabel:a,menuItemClassName:r,menuFooter:o,...s}){const{children:c,onClick:l,...d}=s;if(!n)return t?e(xe,{...s}):l?ho(c,{onClick:l}):c;const f=t?po:xn,m=ee();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(xe,{className:r,onClick:l,children:a}),o]})}function li({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 s=n.find(c=>c.shortcode===o);if(s){const{url:c,staticUrl:l}=s;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 Et=Lt(li,(t,n)=>{var a,r;return t.text===n.text&&((a=t.emojis)==null?void 0:a.length)===((r=n.emojis)==null?void 0:r.length)}),ui=new Intl.Collator("en",{sensitivity:"base"});function di({account:t,instance:n,showAvatar:a,showAcct:r,short:o,external:s,onClick:c}){const{acct:l,avatar:d,avatarStatic:f,id:m,url:p,displayName:h,emojis:g,bot:b}=t;let{username:v}=t;const[_,E,L]=l.match(/([^@]+)(@.+)/i)||[,l],w=v.toLowerCase().trim(),k=(h||"").toLowerCase().trim(),$=k.replace(/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g,"").replace(/\s+/g,""),O=$.replace(/[^a-z0-9]/gi,"");return!o&&(w===k||w===$||w===O||ui.compare(w,$)===0)&&(v=null),e("a",{class:`name-text ${r?"show-acct":""} ${o?"short":""}`,href:p,target:s?"_blank":null,title:`${h?`${h} `:""}@${l}`,onClick:F=>{if(!s){if(F.preventDefault(),F.stopPropagation(),c)return c(F);M.showAccount={account:t,instance:n}}},children:[a&&e(K,{children:[e(Ge,{url:f||d,squircle:b})," "]}),h&&!o?e(K,{children:[e("b",{children:e(Et,{text:h,emojis:g})}),!r&&v&&e(K,{children:[" ",e("i",{children:["@",v]})]})]}):o?e("i",{children:v}):e("b",{children:v}),r&&e(K,{children:[e("br",{}),e("i",{children:["@",E,e("span",{class:"ib",children:L})]})]})]})}const bt=Lt(di,(t,n)=>{const{account:a}=t,{account:r}=n;return(a==null?void 0:a.acct)===(r==null?void 0:r.acct)});wt.extend(fo);wt.extend(go);wt.extend(vo);const mi=new Intl.DateTimeFormat;function xt({datetime:t,format:n}){if(!t)return null;const a=ke(()=>wt(t),[t]),r=ke(()=>{if(n==="micro"){const c=wt();return c.diff(a,"day")<=1||c.year()===a.year()?a.twitter():mi.format(a.toDate())}return a.fromNow()},[a,n]),o=ke(()=>a.toISOString(),[a]),s=ke(()=>a.format("LLLL"),[a]);return e("time",{datetime:o,title:s,children:r})}const hi=[{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 pi(...t){try{return bo(...t)}catch{return t[2]||!1}}const Wt=Ye(pi),fi=[new Intl.DateTimeFormat().resolvedOptions().locale,...navigator.languages],gi=Wt(fi,hi.map(t=>t.code.replace("_","-")),"en");function Fa(t=!1){if(t){const{contentTranslationTargetLanguage:n}=M.settings;if(n)return n}return gi}function un(t){try{return new Intl.DisplayNames(navigator.languages,{type:"language"}).of(t)}catch{return null}}function Tn(t,n=[]){return t?(!n.length||t.indexOf(":")===-1||n.forEach(a=>{const{shortcode:r,staticUrl:o,url:s}=a;t=t.replace(new RegExp(`:${r}:`,"g"),``)}),t):""}const nt=document.createElement("div"),vi=["u-url","mention","hashtag"];function bi(t,n={}){const{emojis:a,postEnhanceDOM:r=()=>{}}=n;let o=t;const s=document.createElement("div");s.innerHTML=o;const c=/{p.setAttribute("target","_blank")}),s.querySelectorAll("a[class]").forEach(p=>{p.classList.forEach(h=>{vi.includes(h)||p.classList.remove(h)})})),c&&s.querySelectorAll("a[href]").forEach(m=>{/^https?:\/\//i.test(m.textContent.trim())&&(m.classList.add("has-url-text"),wi(m))}),c){const f=s.querySelectorAll("a[href]"),m=[];f.forEach(p=>{const h=p.innerText.trim(),g=p.querySelector("*");if(/^@[^@]+(@[^@]+)?$/g.test(h)){const[b,v,_]=h.split("@");g||(!m.some(([E])=>E===v)||m.some(([E,L])=>E===v&&L===_)?(p.innerHTML=`@${v}`,m.push([v,_])):p.innerHTML=`@${v}@${_}`),p.classList.add("mention")}/^#[^#]+$/g.test(h)&&(g||(p.innerHTML=`#${h.slice(1)}`),p.classList.add("mention","hashtag"))})}let d;if(o.includes(":")&&(d=mn(s),d.forEach(f=>{let m=f.nodeValue.replace(/&/g,"&").replace(//g,">");a&&(m=Tn(m,a)),nt.innerHTML=m,f.replaceWith(...nt.childNodes)})),l&&[...s.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&&[...s.querySelectorAll("p")].filter(p=>/^```/g.test(p.innerText)).forEach(p=>{const h=[p];let g=!1,b=p;for(;b.nextElementSibling;){const v=b.nextElementSibling;if(v&&v.tagName==="P")if(/```$/g.test(v.innerText)){h.push(v),g=!0;break}else h.push(v);else break;b=v}if(g){const v=document.createElement("pre");h.forEach(E=>{E.querySelectorAll("br").forEach(L=>L.replaceWith(`
`))});const _=h.map(E=>E.innerHTML).join(`
`);v.innerHTML=`${_}
`,p.replaceWith(v),h.forEach(E=>E.remove())}}),o.includes("`")&&(d=mn(s),d.forEach(f=>{let m=f.nodeValue.replace(/&/g,"&").replace(//g,">");/`[^`]+`/g.test(m)&&(m=m.replaceAll(/(`[^]+?`)/g,"$1
")),nt.innerHTML=m,f.replaceWith(...nt.childNodes)})),/twitter\.com/i.test(o)&&(d=mn(s,{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')),nt.innerHTML=m,f.replaceWith(...nt.childNodes)})),o.includes("#")){let f=null;const m=[...s.querySelectorAll("p")].filter((p,h)=>{let g=0;for(let b=0;b
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 r&&queueMicrotask(()=>r(s)),o=s.innerHTML,o}const Pa=Ye(bi),yi=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],_i=Object.fromEntries(yi.map(t=>[t,!0])),ki=/^(https?:\/\/(www\.)?|xmpp:)/,dn=30;function wi(t){var n;if(!(!t||(n=t.querySelector)!=null&&n.call(t,"*")))try{const a=t.innerText.trim(),r=(a.match(ki)||[])[0]||"";if(!r)return;const o=a.slice(r.length,r.length+dn),s=a.slice(r.length+dn),c=a.slice(r.length).length>dn;t.innerHTML=`${r}${o}${s}`}catch{}}function mn(t,n={}){var c;const a=[],r=Object.assign({},_i,(c=n.rejectFilter)==null?void 0:c.reduce((l,d)=>(l[d]=!0,l),{})),o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode(l){return r[l.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let s;for(;s=o.nextNode();)a.push(s);return a}const gt=document.createElement("div");function Ei(t){return t?(gt.innerHTML=t.replace(/<\/p>/g,`
`).replace(/<\/li>/g,`
`),gt.querySelectorAll("br").forEach(n=>{n.replaceWith(`
`)}),gt.querySelectorAll(".invisible").forEach(n=>{n.remove()}),gt.querySelectorAll(".ellipsis").forEach(n=>{n.append("...")}),gt.innerText.replace(/[\r\n]{3,}/g,`
`).trim()):""}const Ln=Ye(Ei);function xi(t){const{mentions:n=[],instance:a,previewMode:r,statusURL:o}=t||{};return s=>{var m,p;let{target:c}=s;if(c=c.closest("a"),!c||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||s.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(/^@/,""),b=c.getAttribute("href"),v=n.find(_=>_.username===g||_.acct===g||_.url===b);if(v)s.preventDefault(),s.stopPropagation(),M.showAccount={account:v.acct,instance:a};else if(!/^http/i.test(h)){s.preventDefault(),s.stopPropagation();const _=c.getAttribute("href");M.showAccount={account:_,instance:a}}}else if(!r){const h=l==null?void 0:l.endsWith("#");if(c.classList.contains("hashtag")||h){s.preventDefault(),s.stopPropagation();const g=c.innerText.replace(/^#/,"").trim(),b=a?`#/${a}/t/${g}`:`#/t/${g}`;location.hash=b}else(p=M.unfurledLinks[c.href])!=null&&p.url&&o!==c.href&&(s.preventDefault(),s.stopPropagation(),M.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${M.unfurledLinks[c.href].url}`)}}}const{locale:Ti}=new Intl.DateTimeFormat().resolvedOptions(),Li=t=>{const{dateYear:n,hideTime:a,formatOpts:r}=t||{},o=new Date().getFullYear();return Intl.DateTimeFormat(Ti,{year:n===o?void 0:"numeric",month:"short",day:"numeric",hour:a?void 0:"numeric",minute:a?void 0:"numeric",...r})},Ai=Ye(Li);function Tt(t,n){return t instanceof Date||(t=new Date(t)),Ai({dateYear:t.getFullYear(),...n}).format(t)}const{locale:Ci}=Intl.NumberFormat().resolvedOptions(),qe=Intl.NumberFormat(Ci,{notation:"compact"}).format;function Si({skeleton:t,account:n,avatarSize:a="xl",useAvatarStatic:r=!1,instance:o,external:s,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(Ge,{size:a}),e("span",{children:[e("b",{children:"████████"}),e("br",{}),e("span",{class:"account-block-acct",children:"@██████"})]})]});if(!n)return null;const{id:b,acct:v,avatar:_,avatarStatic:E,displayName:L,username:w,emojis:k,url:$,statusesCount:O,lastStatusAt:F,bot:C,fields:z,note:P,group:V,followersCount:H,createdAt:W}=n;let[me,le,Y]=v.match(/([^@]+)(@.+)/i)||[,v];m&&(Y=`@${m}`);const te=z==null?void 0:z.find(A=>!!A.verifiedAt&&!!A.value),re={};for(const A in h)g.includes(A)||(re[A]=h[A]);const he=re.following||re.followedBy||re.requested;return e("a",{class:"account-block",href:$,target:s?"_blank":null,title:`@${v}`,onClick:A=>{if(!s){if(A.preventDefault(),l)return l(A);c?location.hash=`/${o}/a/${b}`:M.showAccount={account:n,instance:o}}},children:[e(Ge,{url:r?E:_||E,size:a,squircle:C}),e("span",{class:"account-block-content",children:[!p&&e(K,{children:L?e("b",{children:e(Et,{text:L,emojis:k})}):e("b",{children:w})})," ",e("span",{class:"account-block-acct",children:["@",le,e("wbr",{}),Y]}),d&&e(K,{children:[e("br",{}),e("small",{class:"last-status-at insignificant",children:["Posts: ",O,!!F&&e(K,{children:[" ","· Last posted:"," ",Tt(F,{hideTime:!0})]})]})]}),f&&e("div",{class:"account-block-stats",children:[C&&e(K,{children:e("span",{class:"tag collapsed",children:[e(T,{icon:"bot"})," Automated"]})}),!!V&&e(K,{children:e("span",{class:"tag collapsed",children:[e(T,{icon:"group"})," Group"]})}),he&&e("div",{class:"shazam-container-horizontal",children:e("div",{class:"shazam-container-inner",children:re.following&&re.followedBy?e("span",{class:"tag minimal",children:"Mutual"}):re.requested?e("span",{class:"tag minimal",children:"Requested"}):re.following?e("span",{class:"tag minimal",children:"Following"}):re.followedBy?e("span",{class:"tag minimal",children:"Follows you"}):null})},h.id),!!H&&e("span",{class:"ib",children:[qe(H)," ",H===1?"follower":"followers"]}),!!te&&e("span",{class:"verified-field",children:[e(T,{icon:"check-circle",size:"s"})," ",e("span",{dangerouslySetInnerHTML:{__html:Pa(te.value,{emojis:k})}})]}),!C&&!V&&!he&&!H&&!te&&!!W&&e("span",{class:"created-at",children:["Joined"," ",e("time",{datetime:W,children:Tt(W,{hideTime:!0})})]})]})]})]})}const $i={"@mastodon/edit-media-attributes":">=4.1","@mastodon/list-exclusive":">=4.2"},hn={};function Ia(t){try{const{version:n,domain:a}=wa(),r=`${a}-${t}`;if(hn[r])return hn[r];const o=$i[t];return o?hn[r]=yo(n,o,{includePrerelease:!0,loose:!0}):!1}catch{return!1}}const Fi=[{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 Pi={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:ea}=Pi,kt=ea?ea.split(/\s+/):[],Ii=pa({limit:1,interval:2e3});let pn=0;function Ri(t,n,a){return _o(()=>{let o=kt[pn];return fetch(`https://${o}/api/v1/${n}/${a}/${encodeURIComponent(t)}`).then(s=>{if(!s.ok)throw new Error(s.statusText);return s.json()}).then(s=>{var c;return{provider:"lingva",content:s.translation,detectedSourceLanguage:(c=s.info)==null?void 0:c.detectedSource,info:s.info}})},{retries:3,onFailedAttempt:o=>{pn=(pn+1)%kt.length}})}const Ra=1e3*60*60,Da=Jt(Ri,{maxAge:Ra}),Di=Jt(Ii(Da),{maxAge:Ra});function Mi({forceTranslate:t,sourceLanguage:n,onTranslate:a,text:r="",mini:o}){const s=Fa(!0),[c,l]=X("default"),[d,f]=X(null),[m,p]=X(null),[h,g]=X(null),b=ee(),v=n?un(n):null,_=un(s),E=ee("auto");a||(a=o?Di:Da);const L=async()=>{var w,k;l("loading");try{const{content:$,detectedSourceLanguage:O,provider:F,error:C,...z}=await a(r,E.current,s);if($){if(O){const P=un(O);g(P)}if(F==="lingva"){const P=(k=(w=z==null?void 0:z.info)==null?void 0:w.pronunciation)==null?void 0:k.query;P&&f(P)}p($),l("default"),!o&&$.trim()!==r.trim()&&(b.current.open=!0,b.current.scrollIntoView({behavior:"smooth",block:"nearest"}))}else l("error")}catch{l("error")}};return ge(()=>{t&&L()},[t]),o?m&&m.trim()!==r.trim()&&h!==_?e("div",{class:"shazam-container",children:e("div",{class:"shazam-container-inner",children:e("div",{class:"status-translation-block-mini",children:[e(T,{icon:"translate",alt:`Auto-translated from ${v}`}),e("output",{lang:s,dir:"auto",title:d||"",children:m})]})})}):null:e("div",{class:"status-translation-block",onClick:w=>{w.preventDefault()},children:e("details",{ref:b,children:[e("summary",{children:e("button",{type:"button",onClick:async w=>{w.preventDefault(),w.stopPropagation(),b.current.open=!b.current.open,c!=="loading"&&(m||L())},children:[e(T,{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:w=>{E.current=w.target.value,L()},children:Fi.map(w=>e("option",{value:w.code,children:w.code==="auto"?`Auto (${h??"…"})`:w.name}))})," ",e("span",{children:["→ ",_]}),e(Xt,{abrupt:!0,hidden:c!=="loading"})]}),c==="error"?e("p",{class:"ui-state",children:"Failed to translate"}):!!m&&e(K,{children:[e("output",{class:"translated-content",lang:s,dir:"auto",children:m}),!!d&&e("output",{class:"translated-pronunciation-content",tabIndex:-1,onClick:w=>{w.target.classList.toggle("expand")},children:d})]})]})]})})}const Oi=kt!=null&&kt.length?Mi:()=>null,An=[["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"],["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","ⵜⴰⵎⴰⵣⵉⵖⵜ"]],zi="(((?:[^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\\-_&=#\\/])?))",Ni="gi",ta={source:zi,flags:Ni},Ze=ko("drafts-db","drafts-store"),Bi={set:(t,n)=>wo(t,n,Ze),get:t=>Eo(t,Ze),getMany:t=>xo(t,Ze),del:t=>To(t,Ze),delMany:t=>Lo(t,Ze),clear:()=>Ao(Ze),keys:()=>Co(Ze)},na={drafts:Bi},Gt={public:"earth",unlisted:"group",private:"lock",direct:"message"};function Vi({poll:t,lang:n,readOnly:a,refresh:r=()=>{},votePoll:o=()=>{}}){const[s,c]=X("default"),{expired:l,expiresAt:d,id:f,multiple:m,options:p,ownVotes:h,voted:g,votersCount:b,votesCount:v,emojis:_}=t,E=!!d&&new Date(d),L=b||v;let w=0;L<=1e3?w=0:L<=1e4?w=1:L<=1e5&&(w=2);const[k,$]=X(!1),O=p.every(F=>F.votesCount!==null);return e("div",{lang:n,dir:"auto",class:`poll ${a?"read-only":""} ${s==="loading"?"loading":""}`,children:[k&&O||g||l?e(K,{children:[e("div",{class:"poll-options",children:p.map((F,C)=>{const{title:z,votesCount:P}=F,V=L?(P/L*100).toFixed(w):0,H=P>0&&P===Math.max(...p.map(W=>W.votesCount));return e("div",{class:`poll-option poll-result ${H?"poll-option-leading":""}`,style:{"--percentage":`${V}%`},children:[e("div",{class:"poll-option-title",children:[e("span",{children:e(Et,{text:z,emojis:_})}),g&&h.includes(C)&&e(K,{children:[" ",e(T,{icon:"check-circle"})]})]}),e("div",{class:"poll-option-votes",title:`${P} vote${P===1?"":"s"}`,children:[V,"%"]})]},`${C}-${z}-${P}`)})}),!l&&!g&&e("button",{class:"poll-vote-button plain2",disabled:s==="loading",onClick:F=>{F.preventDefault(),$(!1)},children:[e(T,{icon:"arrow-left",size:"s"})," Hide results"]})]}):e("form",{onSubmit:async F=>{F.preventDefault();const C=F.target,z=new FormData(C),P=[];z.forEach((V,H)=>{H==="poll"&&P.push(V)}),P.length&&(c("loading"),await o(P),c("default"))},children:[e("div",{class:"poll-options",children:p.map((F,C)=>{const{title:z}=F;return e("div",{class:"poll-option",children:e("label",{class:"poll-label",children:[e("input",{type:m?"checkbox":"radio",name:"poll",value:C,disabled:s==="loading",readOnly:a}),e("span",{class:"poll-option-title",children:e(Et,{text:z,emojis:_})})]})})})}),!a&&e("button",{class:"poll-vote-button",type:"submit",disabled:s==="loading",children:"Vote"})]}),e("p",{class:"poll-meta",children:[!l&&!a&&e("button",{type:"button",class:"plain small",disabled:s==="loading",style:{marginLeft:-8},onClick:F=>{F.preventDefault(),c("loading"),(async()=>(await r(),c("default")))()},title:"Refresh",children:e(T,{icon:"refresh",alt:"Refresh"})}),!g&&!l&&!a&&O&&e("button",{type:"button",class:"plain small",disabled:s==="loading",onClick:F=>{F.preventDefault(),$(!k)},title:k?"Hide results":"Show results",children:[e(T,{icon:k?"eye-open":"eye-close",alt:k?"Hide results":"Show results"})," "]}),!l&&!a&&" ",e("span",{title:v,children:qe(v)})," vote",v===1?"":"s",!!b&&b!==v&&e(K,{children:[" ","• ",e("span",{title:b,children:qe(b)})," ","voter",b===1?"":"s"]})," ","• ",l?"Ended":"Ending"," ",!!E&&e(xt,{datetime:E})]})," "]})}const Ui=So();function ji(t,n){if(!(t!=null&&t.length))return!1;const a=t.filter(s=>{const{filter:c}=s,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(s=>s.filter.filterAction==="hide"))return{action:"hide"};if(a.some(s=>s.filter.filterAction==="warn")){const s=a.map(c=>c.filter.title);return{action:"warn",titles:s,titlesStr:s.join(" • ")}}return!1}const Ma=Ye(ji);function Hi(t,n,a){var c;const{filtered:r}=t;if(!(r!=null&&r.length)||a&&((c=t.account)==null?void 0:c.id)===a)return!0;const s=Ma(r,n);return s?s.action!=="hide":!0}function Or(t,n){if(!(t!=null&&t.length))return[];if(!n)return t;const a=N.session.get("currentAccount");return t.filter(r=>Hi(r,n,a))}const fn=document.createElement("div");function gn(t){return t?(fn.innerHTML=t,fn.querySelectorAll(".invisible").forEach(n=>{n.remove()}),fn.innerText.length):0}const yt="speechSynthesis"in window;function aa(t,n){if(yt)try{speechSynthesis.speaking&&speechSynthesis.cancel();const a=new SpeechSynthesisUtterance(t);n&&(a.lang=n),speechSynthesis.speak(a)}catch(a){alert(a)}}function Oa(t){const{spoilerText:n,content:a,poll:r,mediaAttachments:o}=t;let s="";return n!=null&&n.trim()?s+=n:s+=Ln(a),s=s.trim(),r&&(s+=" 📊"),o!=null&&o.length&&(s+=" "+o.map(c=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[c.type]||"").join("")),s}function Kt({className:t="truncated"}={}){const n=ee(),a=ba(({height:r})=>{if(n.current){const{scrollHeight:o}=n.current;let s=o>r;if(s){const{height:c,maxHeight:l}=getComputedStyle(n.current),d=parseInt(l||c,10);s=o>d}n.current.classList.toggle(t,s)}},300);return $o({ref:n,box:"border-box",onResize:a}),n}const Ki=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),qi="ALT",vn=t=>{const{alt:n,lang:a,index:r,...o}=t;return!n||!n.trim()?null:e("button",{type:"button",class:"alt-badge clickable",...o,onClick:s=>{s.stopPropagation(),s.preventDefault(),M.showMediaAlt={alt:n,lang:a}},title:"Media description",children:[qi,!!r&&e("sup",{children:r})]})},Wi=140,za=Ye(t=>t!=null&&t.length?t.length>Wi||/[\n\r].*[\n\r]/.test(t.trim()):!1);function Gi({class:t="",media:n,to:a,lang:r,showOriginal:o,autoAnimate:s,showCaption:c,altIndex:l,onClick:d=()=>{}}){const{blurhash:f,description:m,meta:p,previewRemoteUrl:h,previewUrl:g,remoteUrl:b,url:v,type:_}=n,{original:E={},small:L,focus:w}=p||{},k=o?E==null?void 0:E.width:L==null?void 0:L.width,$=o?E==null?void 0:E.height:L==null?void 0:L.height,O=o?v:g||v,F=o?b:h||b,C=k>=$?"landscape":"portrait",z=f?ya(f):null,P=ee();let V;if(w){const B=(w.x+1)/2*100,Q=(1-w.y)/2*100;V=`${B.toFixed(0)}% ${Q.toFixed(0)}%`}const H=ee(),W=wn(({x:B,y:Q,scale:pe})=>{const{current:ne}=H;if(ne){const Fe=Fo({x:B,y:Q,scale:pe});pe===1?ne.style.removeProperty("transform"):ne.style.setProperty("transform",Fe),ne.closest(".media-zoom").style.touchAction=pe<=1.01?"pan-x":""}},[]),[me,le]=X(!1),Y={enabled:me,draggableUnZoomed:!1,inertiaFriction:.9,doubleTapZoomOutOnMaxScale:!0,containerProps:{className:"media-zoom",style:{overflow:"visible"}},onUpdate:W},te=ke(()=>a?B=>e(ot,{to:a,...B}):"div",[a]),re=F?new URL(F):null,he=_==="unknown"&&re&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(re.pathname),A=_==="unknown"&&re&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test(re.pathname),se=_==="image"||_==="unknown"&&g&&!he&&!A,G=ee(),[Ae,ce]=X(!1);yn(()=>{if(!se||!o||!G.current)return;const{offsetWidth:B,offsetHeight:Q}=G.current,pe=k{const{children:Q,...pe}=B;return e("figure",{...pe,children:[Q,e("figcaption",{class:"media-caption",lang:r,dir:"auto",onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),M.showMediaAlt={alt:m,lang:r}},children:m})]})}:K;if(se)return Y.containerProps.style.display="inherit",yn(()=>{Ki&&o&&(async()=>{try{await fetch(O,{mode:"no-cors"}),H.current.src=O}catch{}})()},[O]),e(ve,{children:e(te,{ref:G,class:`media media-image ${t}`,onClick:d,"data-orientation":C,"data-has-alt":!oe,style:o?{backgroundImage:`url(${g})`,backgroundSize:Ae?`${k}px ${$}px`:void 0,...Te}:ze,children:o?e(Kn,{...Y,children:e("img",{ref:H,src:O,alt:m,width:k,height:$,"data-orientation":C,loading:"eager",decoding:"sync",onLoad:B=>{B.target.closest(".media-image").style.backgroundImage="",B.target.closest(".media-zoom").style.display="",le(!0)},onError:B=>{const{src:Q}=B.target;Q===O&&O!==F&&(B.target.src=F)}})}):e(K,{children:[e("img",{src:O,alt:oe?"":m,width:k,height:$,"data-orientation":C,loading:"lazy",style:{objectPosition:V||"center","--anim-duration":`${Math.min(Math.max(Math.max(k,$)/100,5),120)}s`},onLoad:B=>{B.target.dataset.loaded=!0},onError:B=>{const{src:Q}=B.target;Q===O&&O!==F&&(B.target.src=F)}}),!oe&&e(vn,{alt:m,lang:r,index:l})]})})});if(_==="gifv"||_==="video"||he){const B=E.duration<31,Q=_==="gifv"&&B,pe=E.duration<61,ne=ra(E.duration),Fe=!o&&!s&&Q,Le=!o&&s&&Q,Se=E.duration>5,we=`
`;return e(ve,{children:e(te,{class:`media ${t} media-${Q?"gif":"video"} ${Le?"media-contain":""} ${Fe?"media-hover-animate":""}`,"data-orientation":C,"data-formatted-duration":o?void 0:ne,"data-label":Q&&!o&&!Le?"GIF":"","data-has-alt":!oe,style:!o&&ze,onClick:Ee=>{if(Fe)try{P.current.pause()}catch{}d(Ee)},onMouseEnter:()=>{if(Fe)try{P.current.play()}catch{}},onMouseLeave:()=>{if(Fe)try{P.current.pause()}catch{}},onFocus:()=>{if(Fe)try{P.current.play()}catch{}},onBlur:()=>{if(Fe)try{P.current.pause()}catch{}},children:[o||Le?Q&&o?e(Kn,{...Y,enabled:!0,children:e("div",{ref:H,dangerouslySetInnerHTML:{__html:we}})}):e("div",{class:"video-container",dangerouslySetInnerHTML:{__html:we}}):Q?e("video",{ref:P,src:v,poster:g,width:k,height:$,"data-orientation":C,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:Se?Ee=>{const{target:ie}=Ee,De=ie==null?void 0:ie.closest(".media-gif");if(De){const x=ie.currentTime/ie.duration*100;De.style.setProperty("--progress",`${x}%`)}}:void 0}):e(K,{children:[e("img",{src:g,alt:oe?"":m,width:k,height:$,"data-orientation":C,loading:"lazy"}),e("div",{class:"media-play",children:e(T,{icon:"play",size:"xl"})})]}),!o&&!oe&&e(vn,{alt:m,lang:r,index:l})]})})}else if(_==="audio"||A){const B=ra(E.duration);return e(ve,{children:e(te,{class:`media media-audio ${t}`,"data-formatted-duration":o?void 0:B,"data-has-alt":!oe,onClick:d,style:!o&&ze,children:[o?e("audio",{src:b||v,preload:"none",controls:!0,autoplay:!0}):g?e("img",{src:g,alt:oe?"":m,width:k,height:$,"data-orientation":C,loading:"lazy",onError:Q=>{var pe,ne;try{(ne=(pe=Q.target)==null?void 0:pe.remove)==null||ne.call(pe)}catch{}}}):null,!o&&e(K,{children:[e("div",{class:"media-play",children:e(T,{icon:"play",size:"xl"})}),!oe&&e(vn,{alt:m,lang:r,index:l})]})]})})}}function oa(t){return e(Po,{children:({ref:n,closeMenu:a})=>e(ot,{...t,ref:n,onClick:({detail:r})=>a(r===0?"Enter":void 0)})})}const Yi=280,Ji=140;function Zi(t,n){return n.v1.accounts.$select(t).fetch()}const Xi=Jt(Zi),_t={public:"Public",unlisted:"Unlisted",private:"Followers only",direct:"Private mention"},Qi=window.ontouchstart!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent),ia=80;function er(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 bn(t){const{spoilerText:n,content:a,poll:r}=t;return(n?`${n}
`:"")+Ln(a)+er(r)}const tr=Lt(({post:t,instance:n,previewMode:a})=>{const{content:r,emojis:o,language:s,mentions:c,url:l}=t;return e("div",{lang:s,dir:"auto",class:"inner-content",onClick:xi({mentions:c,instance:n,previewMode:a,statusURL:l}),dangerouslySetInnerHTML:{__html:Pa(r,{emojis:o,postEnhanceDOM:d=>{d.querySelectorAll('a.u-url[target="_blank"]').forEach(f=>{/http/i.test(f.innerText.trim())||f.removeAttribute("target")})}})}})},(t,n)=>{const{post:a}=t,{post:r}=n;return a.content===r.content});function Qe({statusID:t,status:n,instance:a,size:r="m",contentTextWeight:o,readOnly:s,enableCommentHint:c,withinContext:l,skeleton:d,enableTranslate:f,forceTranslate:m,previewMode:p,onMediaClick:h,quoted:g,onStatusLinkClick:b=()=>{},showFollowedTags:v,allowContextMenu:_,showActionsBar:E,showReplyParent:L}){var Vn,Un,jn;if(d)return e("div",{class:"status skeleton",children:[e(Ge,{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:w,instance:k,authenticated:$}=We({instance:a}),{instance:O}=We(),F=k===O;let C=Pe(t||(n==null?void 0:n.id),k);const z=it(M);if(n||(n=z.statuses[C]||z.statuses[t],C=Pe(n==null?void 0:n.id,k)),!n)return null;const{account:{acct:P,avatar:V,avatarStatic:H,id:W,url:me,displayName:le,username:Y,emojis:te,bot:re,group:he},id:A,repliesCount:se,reblogged:G,reblogsCount:Ae,favourited:ce,favouritesCount:Oe,bookmarked:Ce,poll:Te,muted:ze,sensitive:Ie,spoilerText:oe,visibility:ve,language:B,editedAt:Q,filtered:pe,card:ne,createdAt:Fe,inReplyToId:Le,inReplyToAccountId:Se,content:we,mentions:Ee,mediaAttachments:ie,reblog:De,uri:x,url:S,emojis:D,tags:I,_deleted:J,_pinned:j}=n,U=ke(()=>N.session.get("currentAccount"),[]),q=ke(()=>U&&U===W,[W,U]),de=Io(Ui),ye=!q&&!s&&!p&&Ma(pe,de);if((ye==null?void 0:ye.action)==="hide")return null;const Ne=u=>{u.shiftKey};if(r!=="l"&&ye)return e(sr,{status:n,filterInfo:ye,instance:k,containerProps:{onMouseEnter:Ne},showFollowedTags:!0});const $e=new Date(Fe),Je=new Date(Q);let rt=Ee==null?void 0:Ee.find(u=>u.id===Se);!rt&&Se===A&&(rt={url:me,username:Y,displayName:le});const[et,At]=X(rt);if(!l&&!et&&Se){const u=M.accounts[Se];u?At(u):Xi(Se,w).then(R=>{At(R),M.accounts[R.id]=R}).catch(R=>{})}const tt=Se===U||(Ee==null?void 0:Ee.find(u=>u.id===U)),st=ke(()=>!!(N.account.get("preferences")||{})["reading:expand:spoilers"],[]),Cn=ke(()=>(N.account.get("preferences")||{})["reading:expand:media"]||"default",[]),ct=p||st||!!z.spoilers[A],lt=p||Cn==="show_all"||!!z.spoilersMedia[A];if(De)return he?e("div",{"data-state-post-id":C,class:"status-group",onMouseEnter:Ne,children:[e("div",{class:"status-pre-meta",children:[e(T,{icon:"group",size:"l",alt:"Group"})," ",e(bt,{account:n.account,instance:k,showAvatar:!0})]}),e(Qe,{status:t?null:De,statusID:t?De.id:null,instance:k,size:r,contentTextWeight:o,readOnly:s})]}):e("div",{"data-state-post-id":C,class:"status-reblog",onMouseEnter:Ne,children:[e("div",{class:"status-pre-meta",children:[e(T,{icon:"rocket",size:"l"})," ",e(bt,{account:n.account,instance:k,showAvatar:!0})," ",e("span",{children:"boosted"})]}),e(Qe,{status:t?null:De,statusID:t?De.id:null,instance:k,size:r,contentTextWeight:o,readOnly:s,enableCommentHint:!0})]});if(v&&((Vn=z.statusFollowedTags[C])!=null&&Vn.length))return e("div",{"data-state-post-id":C,class:"status-followed-tags",onMouseEnter:Ne,children:[e("div",{class:"status-pre-meta",children:[e(T,{icon:"hashtag",size:"l"})," ",z.statusFollowedTags[C].slice(0,3).map(u=>e(ot,{to:k?`/${k}/t/${u}`:`/t/${u}`,class:"status-followed-tag-item",children:u},u))]}),e(Qe,{status:t?null:n,statusID:t?n.id:null,instance:k,size:r,contentTextWeight:o,readOnly:s,enableCommentHint:!0})]});const fe=r==="l",[Qt,Va]=X(m),Sn=Fa(!0),Ua=z.settings.contentTranslationHideLanguages||[],{contentTranslation:en,contentTranslationAutoInline:$n}=z.settings;en||(f=!1);const Fn=ke(()=>{if(!en||!$n||s||l&&!fe||p||oe||Ie||Te||ne||ie!=null&&ie.length)return!1;const u=gn(we);return u>0&&u<=Ji},[en,$n,s,l,fe,p,oe,Ie,Te,ne,ie,we]),[tn,Ct]=X(!1),ja=Kt(),Ha=Kt(),Ka=Kt(),Pn="Read more →",St=ee(null),ut="Sorry, your current logged-in instance can't interact with this post from another instance.",In=wn(()=>Math.max(Math.round((oe.length+gn(we))/140)||1,1),[oe,we]),Rn=Tt($e),Dn=Q&&Tt(Je);let dt=$&&ve!=="direct"&&ve!=="private";ve==="private"&&q&&(dt=!0);const $t=u=>{var R;if(!F||!$)return alert(ut);(u!=null&&u.shiftKey||(R=u==null?void 0:u.syntheticEvent)!=null&&R.shiftKey)&&Ta({replyToStatus:n})||(M.showCompose={replyToStatus:n})},nn=ke(()=>ie.some(u=>{var R,Z;return!((Z=(R=u.description)==null?void 0:R.trim)!=null&&Z.call(R))}),[ie]),$r=async()=>{if(!F||!$)return alert(ut),!1;try{if(!G){let u="Boost this post?";if(nn&&(u+=`
⚠️ Some media have no descriptions.`),!confirm(u))return!1}if(M.statuses[C]={...n,reblogged:!G,reblogsCount:Ae+(G?-1:1)},G){const u=await w.v1.statuses.$select(A).unreblog();return Me(u,k),!0}else{const u=await w.v1.statuses.$select(A).reblog();return Me(u,k),!0}}catch{return M.statuses[C]=n,!1}},an=async()=>{if(!F||!$)return alert(ut),!1;try{if(M.statuses[C]={...n,reblogged:!G,reblogsCount:Ae+(G?-1:1)},G){const u=await w.v1.statuses.$select(A).unreblog();return Me(u,k),!0}else{const u=await w.v1.statuses.$select(A).reblog();return Me(u,k),!0}}catch{return M.statuses[C]=n,!1}},Ft=async()=>{if(!F||!$)return alert(ut);try{if(M.statuses[C]={...n,favourited:!ce,favouritesCount:Oe+(ce?-1:1)},ce){const u=await w.v1.statuses.$select(A).unfavourite();Me(u,k)}else{const u=await w.v1.statuses.$select(A).favourite();Me(u,k)}}catch{M.statuses[C]=n}},on=async()=>{if(!F||!$)return alert(ut);try{if(M.statuses[C]={...n,bookmarked:!Ce},Ce){const u=await w.v1.statuses.$select(A).unbookmark();Me(u,k)}else{const u=await w.v1.statuses.$select(A).bookmark();Me(u,k)}}catch{M.statuses[C]=n}},Pt=!!B&&B!==Sn&&!Wt([B],[Sn])&&!Ua.find(u=>B===u||Wt([B],[u])),Mn=ee(),On=ee();async function qa(u){var ue,Be,Bt,Hn;u&&(Mn.current=w.v1.statuses.$select(t).rebloggedBy.list({limit:ia}),On.current=w.v1.statuses.$select(t).favouritedBy.list({limit:ia}));const[{value:R},{value:Z}]=await Promise.allSettled([Mn.current.next(),On.current.next()]);if((ue=R.value)!=null&&ue.length||(Be=Z.value)!=null&&Be.length){const rn=[];return(Bt=R.value)!=null&&Bt.length&&rn.push(...R.value.map(pt=>(pt._types=["reblog"],pt))),(Hn=Z.value)!=null&&Hn.length&&rn.push(...Z.value.map(pt=>(pt._types=["favourite"],pt))),{value:rn,done:R.done&&Z.done}}return{value:[],done:!0}}const Wa=ee(),zn=e(K,{children:[fe&&e(K,{children:e(xe,{onClick:()=>{M.showGenericAccounts={heading:"Boosted/Liked by…",fetchAccounts:qa,instance:k,showReactions:!0}},children:[e(T,{icon:"react"}),e("span",{children:["Boosted/Liked by",e("span",{class:"more-insignificant",children:"…"})]})]})}),!fe&&F&&e(K,{children:e("div",{class:"menu-control-group-horizontal status-menu",children:[e(xe,{onClick:$t,children:[e(T,{icon:"comment"}),e("span",{children:se>0?qe(se):"Reply"})]}),e(ln,{subMenu:!0,confirmLabel:e(K,{children:[e(T,{icon:"rocket"}),e("span",{children:G?"Unboost?":"Boost to everyone?"})]}),className:`menu-reblog ${G?"checked":""}`,menuFooter:nn&&!G&&e("div",{class:"footer",children:[e(T,{icon:"alert"}),"Some media have no descriptions."]}),disabled:!dt,onClick:async()=>{try{const u=await an();!fe&&u&&_e(G?`Unboosted @${Y||P}'s post`:`Boosted @${Y||P}'s post`)}catch{}},children:[e(T,{icon:"rocket"}),e("span",{children:Ae>0?qe(Ae):G?"Unboost":"Boost…"})]}),e(xe,{onClick:()=>{try{Ft(),fe||_e(ce?`Unliked @${Y||P}'s post`:`Liked @${Y||P}'s post`)}catch{}},className:`menu-favourite ${ce?"checked":""}`,children:[e(T,{icon:"heart"}),e("span",{children:Oe>0?qe(Oe):ce?"Unlike":"Like"})]}),e(xe,{onClick:()=>{try{on(),fe||_e(Ce?`Unbookmarked @${Y||P}'s post`:`Bookmarked @${Y||P}'s post`)}catch{}},className:`menu-bookmark ${Ce?"checked":""}`,children:[e(T,{icon:"bookmark"}),e("span",{children:Ce?"Unbookmark":"Bookmark"})]})]})}),(f||!B||Pt)&&e(Vt,{}),f?e("div",{class:yt?"menu-horizontal":"",children:[e(xe,{disabled:Qt,onClick:()=>{Va(!0)},children:[e(T,{icon:"translate"}),e("span",{children:"Translate"})]}),yt&&e(xe,{onClick:()=>{const u=bn(n);u&&aa(u,B)},children:[e(T,{icon:"speak"}),e("span",{children:"Speak"})]})]}):(!B||Pt)&&e("div",{class:yt?"menu-horizontal":"",children:[e(oa,{to:`${k?`/${k}`:""}/s/${A}?translate=1`,children:[e(T,{icon:"translate"}),e("span",{children:"Translate"})]}),yt&&e(xe,{onClick:()=>{const u=bn(n);u&&aa(u,B)},children:[e(T,{icon:"speak"}),e("span",{children:"Speak"})]})]}),!fe||(f||!B||Pt)&&e(Vt,{}),!fe&&e(K,{children:[e(Vt,{}),e(oa,{to:k?`/${k}/s/${A}`:`/s/${A}`,onClick:u=>{b(u,n)},children:[e(T,{icon:"arrows-right"}),e("small",{children:["View post by @",Y||P,e("br",{}),e("span",{class:"more-insignificant",children:[_t[ve]," • ",Rn]})]})]})]}),!!Q&&e(K,{children:e(xe,{onClick:()=>{Ct(A)},children:[e(T,{icon:"history"}),e("small",{children:["Show Edit History",e("br",{}),e("span",{class:"more-insignificant",children:["Edited: ",Dn]})]})]})}),e(xe,{href:S,target:"_blank",children:[e(T,{icon:"external"}),e("small",{class:"menu-double-lines",children:ir(S)})]}),e("div",{class:"menu-horizontal",children:[e(xe,{onClick:()=>{try{navigator.clipboard.writeText(S),_e("Link copied")}catch{_e("Unable to copy link")}},children:[e(T,{icon:"link"}),e("span",{children:"Copy"})]}),(navigator==null?void 0:navigator.share)&&((Un=navigator==null?void 0:navigator.canShare)==null?void 0:Un.call(navigator,{url:S}))&&e(xe,{onClick:()=>{try{navigator.share({url:S})}catch{alert("Sharing doesn't seem to work.")}},children:[e(T,{icon:"share"}),e("span",{children:"Share…"})]})]}),(q||tt)&&e(Vt,{}),(q||tt)&&e(xe,{onClick:async()=>{try{const u=await w.v1.statuses.$select(A)[ze?"unmute":"mute"]();Me(u,k),_e(ze?"Conversation unmuted":"Conversation muted")}catch{_e(ze?"Unable to unmute conversation":"Unable to mute conversation")}},children:ze?e(K,{children:[e(T,{icon:"unmute"}),e("span",{children:"Unmute conversation"})]}):e(K,{children:[e(T,{icon:"mute"}),e("span",{children:"Mute conversation"})]})}),q&&/(public|unlisted|private)/i.test(ve)&&e(xe,{onClick:async()=>{try{const u=await w.v1.statuses.$select(A)[j?"unpin":"pin"]();_e(j?"Post unpinned from profile":"Post pinned to profile")}catch{_e(j?"Unable to unpin post":"Unable to pin post")}},children:j?e(K,{children:[e(T,{icon:"unpin"}),e("span",{children:"Unpin from profile"})]}):e(K,{children:[e(T,{icon:"pin"}),e("span",{children:"Pin to profile"})]})}),q&&e("div",{class:"menu-horizontal",children:[e(xe,{onClick:()=>{M.showCompose={editStatus:n}},children:[e(T,{icon:"pencil"}),e("span",{children:"Edit"})]}),fe&&e(ln,{subMenu:!0,confirmLabel:e(K,{children:[e(T,{icon:"trash"}),e("span",{children:"Delete this post?"})]}),menuItemClassName:"danger",onClick:()=>{(async()=>{try{await w.v1.statuses.$select(A).remove();const u=En(A,k);u._deleted=!0,_e("Deleted")}catch{_e("Unable to delete")}})()},children:[e(T,{icon:"trash"}),e("span",{children:"Delete…"})]})]})]}),Nn=ee(),[It,mt]=X(!1),[Rt,Dt]=X({}),Mt=_||!fe&&!p&&!J&&!g,Ga=_a(Qi&&Mt?u=>{var Be;if(u.pointerType==="mouse")return;const{clientX:R,clientY:Z}=((Be=u.touches)==null?void 0:Be[0])||u,ue=u.target.closest("a");ue&&/^https?:\/\//.test(ue.getAttribute("href"))||(u.preventDefault(),Dt({anchorPoint:{x:R,y:Z},direction:"right"}),mt(!0))}:null,{threshold:600,captureEvent:!0,detect:"touch",cancelOnMovement:2}),Ot=!s&&!p&&!g,Ya=je("r, shift+r",$t,{enabled:Ot}),Ja=je("f, l",()=>{try{Ft(),fe||_e(ce?`Unliked @${Y||P}'s post`:`Liked @${Y||P}'s post`)}catch{}},{enabled:Ot}),Za=je("d",()=>{try{on(),fe||_e(Ce?`Unbookmarked @${Y||P}'s post`:`Bookmarked @${Y||P}'s post`)}catch{}},{enabled:Ot}),Xa=je("shift+b",()=>{(async()=>{try{const u=await an();!fe&&u&&_e(G?`Unboosted @${Y||P}'s post`:`Boosted @${Y||P}'s post`)}catch{}})()},{enabled:Ot&&dt}),Qa=je("x",u=>{const R=document.activeElement.closest(".status-link, .status-focus");if(R){const Z=R.querySelector(".spoiler-button:not(.spoiling)");if(Z)u.stopPropagation(),Z.click();else{const ue=R.querySelector(".spoiler-media-button:not(.spoiling)");ue&&(u.stopPropagation(),ue.click())}}}),zt=ie.slice(0,fe?void 0:4),Nt=ie.length>1&&zt.some(u=>!!u.description&&!za(u.description)),eo=ke(()=>{if(!Nt)return null;const u=[];return zt.forEach((R,Z)=>{if(!R.description)return;const ue=u.findIndex(Be=>Be.media.description===R.description);ue===-1?u.push({media:R,indices:[Z]}):u[ue].indices.push(Z)}),u.map(({media:R,indices:Z})=>e("div",{"data-caption-index":Z.map(ue=>ue+1).join(" "),onClick:ue=>{ue.preventDefault(),ue.stopPropagation(),M.showMediaAlt={alt:R.description,lang:B}},title:R.description,children:[e("sup",{children:Z.map(ue=>ue+1).join(" ")})," ",R.description]},R.id))},[Nt,zt,B]),ht=ke(()=>{var u;return!!Le&&Se===((u=n.account)==null?void 0:u.id)||!!z.statusThreadNumber[C]},[Le,Se,(jn=n.account)==null?void 0:jn.id,z.statusThreadNumber[C]]),to=ke(()=>c&&!ht&&!l&&!Le&&ve==="public"&&se>0,[c,ht,l,Le,se,ve]),Bn=ke(()=>{if(ne||Te||Ie||oe||ie!=null&&ie.length||ht||l||Le||se<=0||!/[???︖❓❔⁇⁈⁉¿‽؟]/.test(we))return!1;const Z=gn(we);if(Z>0&&Z<=Yi)return!0},[ne,Te,Ie,oe,ie,De,ht,l,Le,se,we]);return e(K,{children:[L&&!!(Le&&Se)&&e(rr,{sKey:C}),e("article",{"data-state-post-id":C,ref:u=>{var Z;St.current=u;const R=((Z=u==null?void 0:u.closest)==null?void 0:Z.call(u,".timeline-item, .timeline-item-alt, .status-link, .status-focus"))||u;Ya.current=R,Ja.current=R,Za.current=R,Xa.current=R,Qa.current=R},tabindex:"-1",class:`status ${!l&&Le&&et?"status-reply-to":""} visibility-${ve} ${j?"status-pinned":""} ${{s:"small",m:"medium",l:"large"}[r]} ${J?"status-deleted":""} ${g?"status-card":""} ${It?"status-menu-open":""}`,onMouseEnter:Ne,onContextMenu:u=>{var ue,Be;if(!Mt||u.metaKey)return;const R=u.target.closest("a");if(R&&/^https?:\/\//.test(R.getAttribute("href")))return;const Z=(ue=window.getSelection)==null?void 0:ue.call(window);if(Z.toString().length>0){const{anchorNode:Bt}=Z;if((Be=St.current)!=null&&Be.contains(Bt))return}u.preventDefault(),Dt({anchorPoint:{x:u.clientX,y:u.clientY},direction:"right"}),mt(!0)},...Mt?Ga():{},children:[Mt&&e(Ro,{ref:Nn,state:It?"open":void 0,...Rt,onClose:u=>{var R,Z,ue;mt(!1),(u==null?void 0:u.reason)==="click"&&((ue=(Z=(R=St.current)==null?void 0:R.closest("[tabindex]"))==null?void 0:Z.focus)==null||ue.call(Z))},portal:{target:document.body},containerProps:{style:{zIndex:1001},onClick:()=>{var u,R;(R=(u=Nn.current)==null?void 0:u.closeMenu)==null||R.call(u)}},overflow:"auto",boundingBoxPadding:$a(),unmountOnClose:!0,children:zn}),E&&r!=="l"&&!p&&!s&&!J&&!g&&e("div",{class:`status-actions ${It==="actions-bar"?"open":""}`,ref:Wa,children:[e(at,{size:"s",title:"Reply",alt:"Reply",class:"reply-button",icon:"comment",iconSize:"m",onClick:$t}),e(at,{size:"s",checked:ce,title:["Like","Unlike"],alt:["Like","Liked"],class:"favourite-button",icon:"heart",iconSize:"m",count:Oe,onClick:()=>{try{Ft(),_e(ce?`Unliked @${Y||P}'s post`:`Liked @${Y||P}'s post`)}catch{}}}),e("button",{type:"button",title:"More",class:"plain more-button",onClick:u=>{u.preventDefault(),u.stopPropagation(),Dt({anchorRef:{current:u.currentTarget},align:"start",direction:"left",gap:0,shift:-8}),mt("actions-bar")},children:e(T,{icon:"more2",size:"m",alt:"More"})})]}),r!=="l"&&e("div",{class:"status-badge",children:[G&&e(T,{class:"reblog",icon:"rocket",size:"s"}),ce&&e(T,{class:"favourite",icon:"heart",size:"s"}),Ce&&e(T,{class:"bookmark",icon:"bookmark",size:"s"}),j&&e(T,{class:"pin",icon:"pin",size:"s"})]}),r!=="s"&&e("a",{href:me,tabindex:"-1",title:`@${P}`,onClick:u=>{u.preventDefault(),u.stopPropagation(),M.showAccount={account:n.account,instance:k}},children:e(Ge,{url:H||V,size:"xxl",squircle:re})}),e("div",{class:"container",children:[e("div",{class:"meta",children:[e("span",{class:"meta-name",children:e(bt,{account:n.account,instance:k,showAvatar:r==="s",showAcct:fe})})," ",r!=="l"&&(J?e("span",{class:"status-deleted-tag",children:"Deleted"}):S&&!p&&!s&&!g?e(ot,{to:k?`/${k}/s/${A}`:`/s/${A}`,onClick:u=>{u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.which===2||(u.preventDefault(),u.stopPropagation(),b==null||b(u,n),Dt({anchorRef:{current:u.currentTarget},align:"end",direction:"bottom",gap:4}),mt(!0))},class:`time ${It&&(Rt!=null&&Rt.anchorRef)?"is-open":""}`,children:[to&&!Bn?e(T,{icon:"comment2",size:"s",alt:`${se} ${se===1?"reply":"replies"}`}):e(T,{icon:Gt[ve],alt:_t[ve],size:"s"})," ",e(xt,{datetime:$e,format:"micro"}),!p&&!s&&e(T,{icon:"more2",class:"more"})]}):e("span",{class:"time",children:[e(T,{icon:Gt[ve],alt:_t[ve],size:"s"})," ",e(xt,{datetime:$e,format:"micro"})]}))]}),ve==="direct"&&e(K,{children:[e("div",{class:"status-direct-badge",children:"Private mention"})," "]}),!l&&e(K,{children:ht?e("div",{class:"status-thread-badge",children:[e(T,{icon:"thread",size:"s"}),"Thread",z.statusThreadNumber[C]?` ${z.statusThreadNumber[C]}/X`:""]}):!!Le&&!!et&&(!!oe||!Ee.find(u=>u.id===Se))&&e("div",{class:"status-reply-badge",children:[e(T,{icon:"reply"})," ",e(bt,{account:et,instance:k,short:!0})]})}),e("div",{class:`content-container ${oe||Ie?"has-spoiler":""} ${ct?"show-spoiler":""} ${lt?"show-media":""}`,"data-content-text-weight":o?In():null,style:(fe||o)&&{"--content-text-weight":In()},children:[!!oe&&e(K,{children:[e("div",{class:"content spoiler-content",lang:B,dir:"auto",ref:ja,"data-read-more":Pn,children:e("p",{children:e(Et,{text:oe,emojis:D})})}),st||p?e("div",{class:"spoiler-divider",children:[e(T,{icon:"eye-open"})," Content warning"]}):e("button",{class:`light spoiler-button ${ct?"spoiling":""}`,type:"button",onClick:u=>{u.preventDefault(),u.stopPropagation(),ct?(delete M.spoilers[A],st||delete M.spoilersMedia[A]):(M.spoilers[A]=!0,st||(M.spoilersMedia[A]=!0))},children:[e(T,{icon:ct?"eye-open":"eye-close"})," ",ct?"Show less":"Show content"]})]}),!!we&&e("div",{class:"content",ref:Ha,"data-read-more":Pn,children:[e(tr,{post:n,instance:k,previewMode:p}),e(cr,{id:A,instance:k,level:g})]}),!!Te&&e(Vi,{lang:B,poll:Te,readOnly:s||!F||!$,onUpdate:u=>{M.statuses[C].poll=u},refresh:()=>w.v1.polls.$select(Te.id).fetch().then(u=>{M.statuses[C].poll=u}).catch(u=>{}),votePoll:u=>w.v1.polls.$select(Te.id).votes.create({choices:u}).then(R=>{M.statuses[C].poll=R}).catch(R=>{})}),((f||Fn)&&!!we.trim()&&!!Ln(Tn(we,D))&&Pt||Qt)&&e(Oi,{forceTranslate:Qt||Fn,mini:!fe&&!l,sourceLanguage:B,text:bn(n)}),!p&&Ie&&!!ie.length&&Cn!=="show_all"&&e("button",{class:`plain spoiler-media-button ${lt?"spoiling":""}`,type:"button",hidden:!st&&!!oe,onClick:u=>{u.preventDefault(),u.stopPropagation(),lt?delete M.spoilersMedia[A]:M.spoilersMedia[A]=!0},children:[e(T,{icon:lt?"eye-open":"eye-close"})," ",lt?"Show less":"Show media"]}),!!ie.length&&e(nr,{lang:B,enabled:Nt,captionChildren:eo,children:e("div",{ref:Ka,class:`media-container media-eq${ie.length} ${ie.length>2?"media-gt2":""} ${ie.length>4?"media-gt4":""}`,children:zt.map((u,R)=>e(Gi,{media:u,autoAnimate:fe,showCaption:ie.length===1,lang:B,altIndex:Nt&&!!u.description&&R+1,to:`/${k}/s/${A}?${l?"media":"media-only"}=${R+1}`,onClick:h?Z=>{h(Z,R,u,n)}:void 0},u.id))})}),!!ne&&/^https/i.test(ne==null?void 0:ne.url)&&!Ie&&!oe&&!Te&&!ie.length&&!z.statusQuotes[C]&&e(ar,{card:ne,selfReferential:(ne==null?void 0:ne.url)===n.url||(ne==null?void 0:ne.url)===n.uri,instance:O})]}),!fe&&Bn&&e("div",{class:"content-comment-hint insignificant",children:[e(T,{icon:"comment2",alt:"Replies"})," ",se]}),fe&&e(K,{children:[e("div",{class:"extra-meta",children:J?e("span",{class:"status-deleted-tag",children:"Deleted"}):e(K,{children:[e("span",{children:_t[ve]})," •"," ",e("a",{href:S,target:"_blank",rel:"noopener noreferrer",children:e("time",{class:"created",datetime:$e.toISOString(),title:$e.toLocaleString(),children:Rn})}),Q&&e(K,{children:[" ","• ",e(T,{icon:"pencil",alt:"Edited"})," ",e("time",{tabIndex:"0",class:"edited",datetime:Je.toISOString(),onClick:()=>{Ct(A)},children:Dn})]})]})}),e("div",{class:`actions ${J?"disabled":""}`,children:[e("div",{class:"action has-count",children:e(at,{title:"Reply",alt:"Comments",class:"reply-button",icon:"comment",count:se,onClick:$t})}),e(ln,{disabled:!dt,onClick:an,confirmLabel:e(K,{children:[e(T,{icon:"rocket"}),e("span",{children:G?"Unboost?":"Boost to everyone?"})]}),menuFooter:nn&&!G&&e("div",{class:"footer",children:[e(T,{icon:"alert"}),"Some media have no descriptions."]}),children:e("div",{class:"action has-count",children:e(at,{checked:G,title:["Boost","Unboost"],alt:["Boost","Boosted"],class:"reblog-button",icon:"rocket",count:Ae,disabled:!dt})})}),e("div",{class:"action has-count",children:e(at,{checked:ce,title:["Like","Unlike"],alt:["Like","Liked"],class:"favourite-button",icon:"heart",count:Oe,onClick:Ft})}),e("div",{class:"action",children:e(at,{checked:Ce,title:["Bookmark","Unbookmark"],alt:["Bookmark","Bookmarked"],class:"bookmark-button",icon:"bookmark",onClick:on})}),e(xn,{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(T,{icon:"more",size:"l",alt:"More"})})}),children:zn})]})]})]}),!!tn&&e(Zt,{class:"light",onClick:u=>{u.target===u.currentTarget&&Ct(!1)},children:e(or,{statusID:tn,instance:k,fetchStatusHistory:()=>w.v1.statuses.$select(tn).history.list(),onClose:()=>{var u;Ct(!1),(u=St.current)==null||u.focus()}})})]})]})}function nr(t){const{enabled:n,children:a,lang:r,captionChildren:o}=t;return!n||!o?a:e("figure",{class:"media-figure-multiple",children:[a,e("figcaption",{lang:r,dir:"auto",children:o})]})}function ar({card:t,selfReferential:n,instance:a}){var H;const r=it(M),{blurhash:o,title:s,description:c,html:l,providerName:d,providerUrl:f,authorName:m,authorUrl:p,width:h,height:g,image:b,imageDescription:v,url:_,type:E,embedUrl:L,language:w,publishedAt:k}=t,$=s||d||m,F=h/g>=1.2?"large":"",[C,z]=X(null);if(ge(()=>{$&&b&&!n&&Ea(_)&&xa(a,_).then(W=>{if(!W)return;const{id:me,url:le}=W;z("#"+le)})},[$,b,n]),r.unfurledLinks[_])return null;const P=/