184 lines
200 KiB
JavaScript
184 lines
200 KiB
JavaScript
|
import{Z as ct,E as Ne,c as s,h as ee,q as Ie,A as j,_ as _n,y as se,$ as Mn,o as $t,a0 as I,a1 as fa,a2 as tr,a3 as ha,T as he,D as Lt,p as Di,a4 as pa,a5 as Ri,F as Ni,k as U,x as lt,K as ut,i as ma,s as W,a6 as ga,a as nr,n as va,a7 as Fi,a8 as ya,a9 as zi,j as ho,L as Hi,g as po,aa as _a,ab as De,ac as ba,ad as wa,ae as Hn,w as it,u as Sn,d as Zo,b as rt,J as Vi,af as Ta,ag as Ea,ah as xa}from"./useTitle-YZXo8QRp.js";import{e as Ma}from"./tinyld-light-PxOyhYWY.js";import{m as Sa}from"./index-A6D3rukc.js";function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}var ji=["shift","alt","meta","mod","ctrl"],ka={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function gt(e){return(ka[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Aa(e){return ji.includes(e)}function kr(e,t){return t===void 0&&(t=","),e.split(t)}function Ar(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return gt(a)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},i=r.filter(function(a){return!ji.includes(a)});return qr({},o,{keys:i,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&Bi([gt(e.key),gt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&Ui([gt(e.key),gt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){vt.clear()})})();var vt=new Set;function mo(e){return Array.isArray(e)}function Ia(e,t){t===void 0&&(t=",");var n=mo(e)?e:e.split(t);return n.every(function(r){return vt.has(r.trim().toLowerCase())})}function Bi(e){var t=Array.isArray(e)?e:[e];vt.has("meta")&&vt.forEach(function(n){return!Aa(n)&&vt.delete(n.toLowerCase())}),t.forEach(function(n){return vt.add(n.toLowerCase())})}function Ui(e){var t=Array.isArray(e)?e:[e];e==="meta"?vt.clear():t.forEach(function(n){return vt.delete(n.toLowerCase())})}function $a(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function La(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function Ca(e){return Wi(e,["input","textarea","select"])}function Wi(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return mo(t)?!!(r&&t&&t.some(function(o){return o.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function Pa(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var Oa=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,i=n.meta,a=n.mod,l=n.shift,c=n.ctrl,u=n.keys,f=t.key,d=t.code,p=t.ctrlKey,m=t.metaKey,h=t.shiftKey,g=t.altKey,v=gt(d),T=f.toLowerCase();if(!(u!=null&&u.includes(v))&&!(u!=null&&u.includes(T))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(o===!g&&T!=="alt"||l===!h&&T!=="shift")return!1;if(a){if(!m&&!p)return!1}else if(i===!m&&T!=="meta"&&T!=="os"||c===!p&&T!=="ctrl"&&T!=="control")return!1}return u&&u.length===1&&(u.includes(T)||u.includes(v))?!0:u?Ia(u):!u},Da=ct(void 0),Ra=function(){return Ne(Da)};function Ki(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Ki(e[r],t[r])},!0):e===t}var Na=ct({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Fa=function(){return Ne(Na)};function za(e){var t=j(void 0);return Ki(t.current,e)||(t.current=e),t.current}var Yo=functi
|
|||
|
* Toastify js 1.12.0
|
|||
|
* https://github.com/apvarun/toastify-js
|
|||
|
* @license MIT licensed
|
|||
|
*
|
|||
|
* Copyright (C) 2018 Varun A P
|
|||
|
*/var ff=go.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(Mn,function(t){var n=function(a){return new n.lib.init(a)},r="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:r,constructor:n,init:function(a){return a||(a={}),this.options={},this.toastElement=null,this.options.text=a.text||n.defaults.text,this.options.node=a.node||n.defaults.node,this.options.duration=a.duration===0?0:a.duration||n.defaults.duration,this.options.selector=a.selector||n.defaults.selector,this.options.callback=a.callback||n.defaults.callback,this.options.destination=a.destination||n.defaults.destination,this.options.newWindow=a.newWindow||n.defaults.newWindow,this.options.close=a.close||n.defaults.close,this.options.gravity=a.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=a.positionLeft||n.defaults.positionLeft,this.options.position=a.position||n.defaults.position,this.options.backgroundColor=a.backgroundColor||n.defaults.backgroundColor,this.options.avatar=a.avatar||n.defaults.avatar,this.options.className=a.className||n.defaults.className,this.options.stopOnFocus=a.stopOnFocus===void 0?n.defaults.stopOnFocus:a.stopOnFocus,this.options.onClick=a.onClick||n.defaults.onClick,this.options.offset=a.offset||n.defaults.offset,this.options.escapeMarkup=a.escapeMarkup!==void 0?a.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=a.ariaLive||n.defaults.ariaLive,this.options.style=a.style||n.defaults.style,a.backgroundColor&&(this.options.style.background=a.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var a=document.createElement("div");a.className="toastify on "+this.options.className,this.options.position?a.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(a.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):a.className+=" toastify-right",a.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var l in this.options.style)a.style[l]=this.options.style[l];if(this.options.ariaLive&&a.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)a.appendChild(this.options.node);else if(this.options.escapeMarkup?a.innerText=this.options.text:a.innerHTML=this.options.text,this.options.avatar!==""){var c=document.createElement("img");c.src=this.options.avatar,c.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(c):a.insertAdjacentElement("afterbegin",c)}if(this.options.close===!0){var u=document.createElement("button");u.type="button",u.setAttribute("aria-label","Close"),u.className="toast-close",u.innerHTML="✖",u.addEventListener("click",(function(v){v.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var f=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&f>360?a.insertAdjacentElement("afterbegin",u):a.appendChild(u)}if(this.options.stopOnFocus&&this.options.duration>0){var d=this;a.addEventListener("mouseover",function(v){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){d.removeElement(a)},d.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(v){v.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination
|
|||
|
`)),d.innerHTML=`<code>${f.innerHTML.trim()}</code>`,f.replaceWith(d)}),l&&[...i.querySelectorAll("p")].filter(d=>/^```/g.test(d.innerText)).forEach(d=>{const p=[d];let m=!1,h=d;for(;h.nextElementSibling;){const g=h.nextElementSibling;if(g&&g.tagName==="P")if(/```$/g.test(g.innerText)){p.push(g),m=!0;break}else p.push(g);else break;h=g}if(m){const g=document.createElement("pre");p.forEach(T=>{T.querySelectorAll("br").forEach(_=>_.replaceWith(`
|
|||
|
`))});const v=p.map(T=>T.innerHTML).join(`
|
|||
|
|
|||
|
`);g.innerHTML=`<code tabindex="0">${v}</code>`,d.replaceWith(g),p.forEach(T=>T.remove())}}),o.includes("`")&&(c=Nr(i),c.forEach(u=>{let f=u.nodeValue.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");/`[^`]+`/g.test(f)&&(f=f.replaceAll(/(`[^]+?`)/g,"<code>$1</code>")),Ft.innerHTML=f,u.replaceWith(...Ft.childNodes)})),/twitter\.com/i.test(o)&&(c=Nr(i,{rejectFilter:["A"]}),c.forEach(u=>{let f=u.nodeValue.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");/@[a-zA-Z0-9_]+@twitter\.com/g.test(f)&&(f=f.replaceAll(/(@([a-zA-Z0-9_]+)@twitter\.com)/g,'<a href="https://twitter.com/$2" rel="nofollow noopener noreferrer" target="_blank">$1</a>')),Ft.innerHTML=f,u.replaceWith(...Ft.childNodes)})),o.includes("#")){let u=null;const f=[...i.querySelectorAll("p")].filter((d,p)=>{let m=0;for(let h=0;h<d.childNodes.length;h++){const g=d.childNodes[h];if(g.nodeType===Node.TEXT_NODE){if(g.textContent.trim()!=="")return!1}else if(g.tagName!=="BR")if(g.tagName==="A"){const v=g.textContent.trim();if(!v||!v.startsWith("#"))return!1;m++}else return!1}if(m>3||m>1&&u&&p===u+1)return u=p,!0});f!=null&&f.length&&f.forEach(d=>{d.classList.add("hashtag-stuffing"),d.title=d.innerText})}return o.includes("<img")&&i.querySelectorAll("img").forEach(u=>{const f=u.getAttribute("width")||u.naturalWidth,d=u.getAttribute("height")||u.naturalHeight;f&&d&&u.style.setProperty("--original-aspect-ratio",`${f}/${d}`)}),r&&queueMicrotask(()=>r(i)),o=i.innerHTML,o}const bs=ut(bl),wl=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],Tl=Object.fromEntries(wl.map(e=>[e,!0])),El=/^(https?:\/\/(www\.)?|xmpp:)/,Rr=30;function xl(e){var t;if(!(!e||(t=e.querySelector)!=null&&t.call(e,"*")))try{const n=e.innerText.trim(),r=(n.match(El)||[])[0]||"";if(!r)return;const o=n.slice(r.length,r.length+Rr),i=n.slice(r.length+Rr),a=n.slice(r.length).length>Rr;e.innerHTML=`<span class="invisible">${r}</span><span class=${a?"ellipsis":""}>${o}</span><span class="invisible">${i}</span>`}catch{}}function Nr(e,t={}){var a;const n=[],r=Object.assign({},Tl,(a=t.rejectFilter)==null?void 0:a.reduce((l,c)=>(l[c]=!0,l),{})),o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(l){return r[l.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let i;for(;i=o.nextNode();)n.push(i);return n}const zt=document.createElement("div");function Ml(e,t){if(!e)return"";const{preProcess:n}=t||{};return zt.innerHTML=e.replace(/<\/p>/g,`</p>
|
|||
|
|
|||
|
`).replace(/<\/li>/g,`</li>
|
|||
|
`),zt.querySelectorAll("br").forEach(r=>{r.replaceWith(`
|
|||
|
`)}),n==null||n(zt),zt.querySelectorAll(".invisible").forEach(r=>{r.remove()}),zt.querySelectorAll(".ellipsis").forEach(r=>{r.append("...")}),zt.innerText.replace(/[\r\n]{3,}/g,`
|
|||
|
|
|||
|
`).trim()}const hr=ut(Ml);function Sl(e){const{mentions:t=[],instance:n,previewMode:r,statusURL:o}=e||{};return i=>{var f,d;let{target:a}=i;if(a=a.closest("a"),!a||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||i.which===2)return;const l=(f=a.previousSibling)==null?void 0:f.textContent,c=l==null?void 0:l.endsWith("@"),u=a.innerText.startsWith("@");if((a.classList.contains("u-url")||a.classList.contains("mention"))&&u||c&&!u){const p=(a.querySelector("span")||a).innerText.trim(),m=p.replace(/^@/,""),h=a.getAttribute("href"),g=t.find(v=>v.url===h)||t.find(v=>v.acct===m||v.username===m);if(g)i.preventDefault(),i.stopPropagation(),W.showAccount={account:g.acct,instance:n};else if(!/^http/i.test(p)){i.preventDefault(),i.stopPropagation();const v=a.getAttribute("href");W.showAccount={account:v,instance:n}}}else if(!r){const p=l==null?void 0:l.endsWith("#");if(a.classList.contains("hashtag")||p){i.preventDefault(),i.stopPropagation();const m=a.innerText.replace(/^#/,"").trim(),h=n?`#/${n}/t/${m}`:`#/t/${m}`;location.hash=h}else(d=W.unfurledLinks[a.href])!=null&&d.url&&o!==a.href&&(i.preventDefault(),i.stopPropagation(),W.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${W.unfurledLinks[a.href].url}`)}}}const{locale:kl}=new Intl.DateTimeFormat().resolvedOptions(),Al=e=>{const{dateYear:t,hideTime:n,formatOpts:r}=e||{},o=new Date().getFullYear();return Intl.DateTimeFormat(kl,{year:t===o?void 0:"numeric",month:"short",day:"numeric",hour:n?void 0:"numeric",minute:n?void 0:"numeric",...r})},Il=ut(Al);function En(e,t){return e instanceof Date||(e=new Date(e)),Il({dateYear:e.getFullYear(),...t}).format(e)}const{locale:$l}=Intl.NumberFormat().resolvedOptions(),yt=Intl.NumberFormat($l,{notation:"compact",roundingMode:"floor"}).format,ci=5e3;function Un(e){if(e||(e=!0),W.showCompose){W.composerState.minimized?Ce({duration:ci,text:"A draft post is currently minimized. Post or discard it before creating a new one."}):Ce({duration:ci,text:"A post is currently open. Post or discard it before creating a new one."});return}Wa(),W.showCompose=e}function Mf({skeleton:e,account:t,avatarSize:n="xl",useAvatarStatic:r=!1,instance:o,external:i,internal:a,onClick:l,showActivity:c=!1,showStats:u=!1,accountInstance:f,hideDisplayName:d=!1,relationship:p={},excludeRelationshipAttrs:m=[]}){if(e)return s("div",{class:"account-block skeleton",children:[s(st,{size:n}),s("span",{children:[s("b",{children:"████████"}),s("br",{}),s("span",{class:"account-block-acct",children:"██████"})]})]});if(!t)return null;const{id:h,acct:g,avatar:v,avatarStatic:T,displayName:_,username:E,emojis:w,url:b,statusesCount:M,lastStatusAt:A,bot:O,fields:P,note:x,group:S,followersCount:V,createdAt:B,locked:D}=t;let[$,k,R]=g.match(/([^@]+)(@.+)/i)||[,g];f&&(R=`@${f}`);const L=P==null?void 0:P.find(C=>!!C.verifiedAt&&!!C.value),z={};for(const C in p)m.includes(C)||(z[C]=p[C]);const N=z.following||z.followedBy||z.requested;return s("a",{class:"account-block",href:b,target:i?"_blank":null,title:R?g:`@${g}`,onClick:C=>{if(!i){if(C.preventDefault(),l)return l(C);a?location.hash=`/${o}/a/${h}`:W.showAccount={account:t,instance:o}}},children:[s(st,{url:r?T:v||T,size:n,squircle:O}),s("span",{class:"account-block-content",children:[!d&&s(U,{children:_?s("b",{children:s(Yt,{text:_,emojis:w})}):s("b",{children:E})})," ",s("span",{class:"account-block-acct",children:[R?"":"@",k,s("wbr",{}),R,D&&s(U,{children:[" ",s(H,{icon:"lock",size:"s",alt:"Locked"})]})]}),c&&s("div",{class:"account-block-stats",children:["Posts: ",yt(M),!!A&&s(U,{children:[" ","· Last posted:"," ",En(A,{hideTime:!0})]})]}),u&&s("div",{class:"account-block-stats",children:[O&&s(U,{children:s("span",{class:"tag collapsed",children:[s(H,{icon:"bot"})," Automated"]})}),!!S&&s(U,{children:s("span",{class:"tag collapsed",children:[s(H,{icon:"group"})," Group"]})}),N&&s("div",{class:"shazam-container-horizontal",children:s("div",{class:"shazam-container-inner",children:z.following&&z.followedBy?s("span",{class:"tag minimal",children:"Mutual"}):z.requested?s("span",{class:"tag minimal"
|
|||
|
<style ${n}>
|
|||
|
:host {
|
|||
|
contain: content;
|
|||
|
display: block;
|
|||
|
position: relative;
|
|||
|
width: 100%;
|
|||
|
padding-bottom: calc(100% / (16 / 9));
|
|||
|
}
|
|||
|
|
|||
|
@media (max-width: 40em) {
|
|||
|
:host([short]) {
|
|||
|
padding-bottom: calc(100% / (9 / 16));
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
#frame, #fallbackPlaceholder, iframe {
|
|||
|
position: absolute;
|
|||
|
width: 100%;
|
|||
|
height: 100%;
|
|||
|
left: 0;
|
|||
|
}
|
|||
|
|
|||
|
#frame {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
#fallbackPlaceholder {
|
|||
|
object-fit: cover;
|
|||
|
}
|
|||
|
|
|||
|
#frame::before {
|
|||
|
content: '';
|
|||
|
display: block;
|
|||
|
position: absolute;
|
|||
|
top: 0;
|
|||
|
background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
|
|||
|
height: 60px;
|
|||
|
width: 100%;
|
|||
|
z-index: 1;
|
|||
|
}
|
|||
|
|
|||
|
#playButton {
|
|||
|
width: 68px;
|
|||
|
height: 48px;
|
|||
|
background-color: transparent;
|
|||
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
|
|||
|
z-index: 1;
|
|||
|
border: 0;
|
|||
|
border-radius: inherit;
|
|||
|
}
|
|||
|
|
|||
|
#playButton:before {
|
|||
|
content: '';
|
|||
|
border-style: solid;
|
|||
|
border-width: 11px 0 11px 19px;
|
|||
|
border-color: transparent transparent transparent #fff;
|
|||
|
}
|
|||
|
|
|||
|
#playButton,
|
|||
|
#playButton:before {
|
|||
|
position: absolute;
|
|||
|
top: 50%;
|
|||
|
left: 50%;
|
|||
|
transform: translate3d(-50%, -50%, 0);
|
|||
|
cursor: inherit;
|
|||
|
}
|
|||
|
|
|||
|
/* Post-click styles */
|
|||
|
.activated {
|
|||
|
cursor: unset;
|
|||
|
}
|
|||
|
|
|||
|
#frame.activated::before,
|
|||
|
#frame.activated > #playButton {
|
|||
|
display: none;
|
|||
|
}
|
|||
|
</style>
|
|||
|
<div id="frame">
|
|||
|
<picture>
|
|||
|
<source id="webpPlaceholder" type="image/webp">
|
|||
|
<source id="jpegPlaceholder" type="image/jpeg">
|
|||
|
<img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
|
|||
|
</picture>
|
|||
|
<button id="playButton"></button>
|
|||
|
</div>
|
|||
|
`,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort())&&this.initIntersectionObserver()}attributeChangedCallback(t,n,r){switch(t){case"videoid":case"playlistid":case"videoTitle":case"videoPlay":{n!==r&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1));break}default:break}}addIframe(t=!1){if(!this.isIframeLoaded){let n=t?0:1;const r=this.noCookie?"-nocookie":"";let o;this.playlistId?o=`?listType=playlist&list=${this.playlistId}&`:o=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const i=`
|
|||
|
<iframe frameborder="0" title="${this.videoTitle}"
|
|||
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
|
|||
|
src="https://www.youtube${r}.com/embed/${o}autoplay=${n}&${this.params}"
|
|||
|
></iframe>`;this.domRefFrame.insertAdjacentHTML("beforeend",i),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var r,o;const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(o=(r=this.domRefImg)==null?void 0:r.fallback)==null||o.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,o)=>{r.forEach(i=>{i.isIntersecting&&!this.isIframeLoaded&&(Be.warmConnections(),this.addIframe(!0),o.unobserve(this))})},t).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,n;(n=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,n){const r=document.createElement("link");r.rel=t,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(){Be.isPreconnected||window.liteYouTubeIsPreconnected||(Be.addPrefetch("preconnect","https://i.ytimg.com/"),Be.addPrefetch("preconnect","https://s.ytimg.com"),Be.addPrefetch("preconnect","https://www.youtube.com"),Be.addPrefetch("preconnect","https://www.google.com"),Be.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Be.addPrefetch("preconnect","https://static.doubleclick.net"),Be.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Be.isPreconnected=!1;customElements.define("lite-youtube",Be);const lu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Qn=(e,t,n)=>{let r=0;for(;t<n;)r*=83,r+=lu.indexOf(e[t++]);return r},ks=Math.pow,xn=Math.PI,uu=xn*2,As=3294.6,Is=269.025,du=e=>e>10.31475?ks(e/Is+.052132,2.4):e/As,Vr=e=>~~(e>1227e-8?Is*ks(e,.416666)-13.025:e*As+1),yn=e=>(e<0?-1:1)*e*e,mi=e=>{for(e+=xn/2;e>xn;)e-=uu;const t=1.27323954*e-.405284735*yn(e);return .225*(yn(t)-t)+t};function So(e){const t=Qn(e,2,6);return[t>>16,t>>8&255,t&255]}function fu(e,t,n,r){const o=Qn(e,0,1),i=o%9+1,a=~~(o/9)+1,l=i*a;let c=0,u=0,f=0,d=0,p=0,m=0,h=0,g=0,v=0,T=0,_=0,E=0,w=0,b=0;const M=(Qn(e,1,2)+1)/13446*(r|1),A=new Float64Array(l*3),O=So(e);for(c=0;c<3;c++)A[c]=du(O[c]);for(c=1;c<l;c++)b=Qn(e,4+c*2,6+c*2),A[c*3]=yn(~~(b/(19*19))-9)*M,A[c*3+1]=yn(~~(b/19)%19-9)*M,A[c*3+2]=yn(b%19-9)*M;const P=t*4,x=new Uint8ClampedArray(P*n);for(d=0;d<n;d++)for(E=xn*d/n,f=0;f<t;f++){for(p=0,m=0,h=0,w=xn*f/t,u=0;u<a;u++)for(v=mi(E*u),c=0;c<i;c++)g=mi(w*c)*v,T=(c+u*i)*3,p+=A[T]*g,m+=A[T+1]*g,h+=A[T+2]*g;_=4*f+d*P,x[_]=Vr(p),x[_+1]=Vr(m),x[_+2]=Vr(h),x[_+3]=255}return x}const hu=(e,t={})=>{const n=t.char||" ",r=t.count||2;let o=0;const i=[];return e.reverse().reduce((a,l)=>{i.length&&o&&i[o]&&i[o]===l.substring(1,i[o].length+1)&&(i.splice(o,1),o--);const u=[`${n.repeat(o?o*r:0)}${l}`,...a];return l.substring(0,2)==="</"&&(o++,i[o]=l.substring(2,l.length-1)),u},[]).join(`
|
|||
|
`)};var pu=hu;const $s=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,""),mu=e=>{const t=$s(e).split(`
|
|||
|
`),n=[];let r="";for(let o=0;o<t.length;o+=1){const i=t[o];if(i.endsWith("/>")){n.push(`${r}${i.slice(0,-2)} />`),r="";continue}if(i.endsWith(">")){n.push(`${r}${i.startsWith(">")||i.startsWith("<")?"":" "}${i}`),r="";continue}r+=r.length?` ${i}`:i}return n};var gu={mergeAttributesWithElements:mu,removeEmptyLines:$s};const vu=pu,{mergeAttributesWithElements:yu}=gu,_u=(e,t={})=>{const n=yu(e);return vu(n,t)};var bu=_u;const wu=$t(bu);var hn=(e=>(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(hn||{}),pn=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(pn||{});const Ls=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,Tu=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Cs(e){const{nativeEvent:t}=e,n=Tu();return n&&t instanceof n||"touches"in e}function Ps(e){const t=Ls();return e.nativeEvent instanceof MouseEvent&&!(t&&e.nativeEvent instanceof t)}function Os(e){const{nativeEvent:t}=e;if(!t)return!1;const n=Ls();return n&&t instanceof n||"pointerId"in t}function gi(e){return Ps(e)||Cs(e)||Os(e)}function vi(e){return Cs(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:Ps(e)||Os(e)?{x:e.pageX,y:e.pageY}:null}function Eu(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persist:()=>{}}}function Ds(e,{threshold:t=400,captureEvent:n=!1,detect:r=hn.Pointer,cancelOnMovement:o=!1,cancelOutsideElement:i=!0,filterEvents:a,onStart:l,onMove:c,onFinish:u,onCancel:f}={}){const d=j(!1),p=j(!1),m=j(),h=j(),g=j(e),v=j(null),T=Ie(b=>M=>{p.current||gi(M)&&(a!==void 0&&!a(M)||(n&&M.persist(),l==null||l(M,{context:b}),v.current=vi(M),p.current=!0,m.current=M.currentTarget,h.current=setTimeout(()=>{g.current&&(g.current(M,{context:b}),d.current=!0)},t)))},[n,a,l,t]),_=Ie(b=>(M,A)=>{gi(M)&&p.current&&(v.current=null,n&&M.persist(),d.current?u==null||u(M,{context:b}):p.current&&(f==null||f(M,{context:b,reason:A??pn.CancelledByRelease})),d.current=!1,p.current=!1,h.current!==void 0&&clearTimeout(h.current))},[n,u,f]),E=Ie(b=>M=>{if(c==null||c(M,{context:b}),o!==!1&&v.current){const A=vi(M);if(A){const O=o===!0?25:o,P={x:Math.abs(A.x-v.current.x),y:Math.abs(A.y-v.current.y)};(P.x>O||P.y>O)&&_(b)(M,pn.CancelledByMovement)}}},[_,o,c]),w=Ie(b=>{if(e===null)return{};switch(r){case hn.Mouse:{const M={onMouseDown:T(b),onMouseMove:E(b),onMouseUp:_(b)};return i&&(M.onMouseLeave=A=>{_(b)(A,pn.CancelledOutsideElement)}),M}case hn.Touch:return{onTouchStart:T(b),onTouchMove:E(b),onTouchEnd:_(b)};case hn.Pointer:{const M={onPointerDown:T(b),onPointerMove:E(b),onPointerUp:_(b)};return i&&(M.onPointerLeave=A=>_(b)(A,pn.CancelledOutsideElement)),M}}},[e,_,i,r,E,T]);return se(()=>{if(!window)return;function b(M){const A=Eu(M);_()(A)}return window.addEventListener("mouseup",b),window.addEventListener("touchend",b),window.addEventListener("pointerup",b),()=>{window.removeEventListener("mouseup",b),window.removeEventListener("touchend",b),window.removeEventListener("pointerup",b)}},[_]),se(()=>()=>{h.current!==void 0&&clearTimeout(h.current)},[]),se(()=>{g.current=e},[e]),w}function xu({poll:e,lang:t,readOnly:n,refresh:r=()=>{},votePoll:o=()=>{}}){const[i,a]=ee("default"),{expired:l,expiresAt:c,id:u,multiple:f,options:d,ownVotes:p,voted:m,votersCount:h,votesCount:g,emojis:v}=e,T=!!c&&new Date(c),_=h||g;let E=0;_<=1e3?E=0:_<=1e4?E=1:_<=1e5&&(E=2);const[w,b]=ee(!1),M=d.every(A=>A.votesCount!==null);return s("div",{lang:t,dir:"auto",class:`poll ${n?"read-only":""} ${i==="loading"?"loading":""}`,children:[w&&M||m||l?s(U,{children:[s("div",{class:"poll-options",children:d.map((A,O)=>{const{title:P,votesCount:x}=A,S=_?(x/_*100).toFixed(E):0,V=x>0&&x===Math.max(...d.map(B=>B.votesCount));return s("div",{class:`poll-option poll-result ${V?"poll-option-leading":""}`,style:{"--percentage":`${S}%`},children:[s("div",{class:"poll-option-title",children:[s("span",{children:s(Yt,{text:P,emojis:v})}),m&&p.includes(O)&&s(U,{children:[" ",s(H,{icon:"check-circle"})]})]}),s("div",{class:"p
|
|||
|
|
|||
|
📊:
|
|||
|
${r.options.map(l=>`${r.multiple?"▪️":"•"} ${l.title}`).join(`
|
|||
|
`)}`),o!=null&&o.length&&(i+=" "+o.map(l=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[l.type]||"").join("")),i}function ku(e,t,n){var r=this,o=j(null),i=j(0),a=j(null),l=j([]),c=j(),u=j(),f=j(e),d=j(!0);f.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,T="debounceOnServer"in n&&!!n.debounceOnServer,_=v?Math.max(+n.maxWait||0,t):null;se(function(){return d.current=!0,function(){d.current=!1}},[]);var E=he(function(){var w=function(x){var S=l.current,V=c.current;return l.current=c.current=null,i.current=x,u.current=f.current.apply(V,S)},b=function(x,S){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(x):setTimeout(x,S)},M=function(x){if(!d.current)return!1;var S=x-o.current;return!o.current||S>=t||S<0||v&&x-i.current>=_},A=function(x){return a.current=null,g&&l.current?w(x):(l.current=c.current=null,u.current)},O=function x(){var S=Date.now();if(M(S))return A(S);if(d.current){var V=t-(S-o.current),B=v?Math.min(V,_-(S-i.current)):V;b(x,B)}},P=function(){if(p||T){var x=Date.now(),S=M(x);if(l.current=[].slice.call(arguments),c.current=r,o.current=x,S){if(!a.current&&d.current)return i.current=o.current,b(O,t),h?w(o.current):u.current;if(v)return b(O,t),w(o.current)}return a.current||b(O,t),u.current}};return P.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,l.current=o.current=c.current=a.current=null},P.isPending=function(){return!!a.current},P.flush=function(){return a.current?A(Date.now()):u.current},P},[h,v,t,_,g,m,p,T]);return E}function Au(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return ku(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}function Iu(e,t){var n=j(null),r=j(null);r.current=t;var o=j(null);se(function(){i()});var i=Ie(function(){var a=o.current,l=r.current,c=a||(l?l instanceof Element?l:l.current:null);n.current&&n.current.element===c&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:c,subscriber:e,cleanup:c?e(c):void 0})},[e]);return se(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),Ie(function(a){o.current=a,i()},[i])}function _i(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function $u(e){e===void 0&&(e={});var t=e.onResize,n=j(void 0);n.current=t;var r=e.round||Math.round,o=j(),i=ee({width:void 0,height:void 0}),a=i[0],l=i[1],c=j(!1);se(function(){return c.current=!1,function(){c.current=!0}},[]);var u=j({width:void 0,height:void 0}),f=Iu(Ie(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==r)&&(o.current={box:e.box,round:r,instance:new ResizeObserver(function(p){var m=p[0],h=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=_i(m,h,"inlineSize"),v=_i(m,h,"blockSize"),T=g?r(g):void 0,_=v?r(v):void 0;if(u.current.width!==T||u.current.height!==_){var E={width:T,height:_};u.current.width=T,u.current.height=_,n.current?n.current(E):c.current||l(E)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,r]),e.ref);return he(function(){return{ref:f,width:a.width,height:a.height}},[f,a.width,a.height])}function er({className:e="truncated"}={}){const t=j(),n=Au(({height:r})=>{if(t.current){const{scrollHeight:o}=t.current;let i=o>r;if(i){const{height:a,maxHeight:l}=getComputedStyle(t.current),c=parseInt(l||a,10);i=o>c}t.current.classList.toggle(e,i)}},300);return $u({ref:t,box:"border-box",onResize:n}),t}const oo={public:"earth",unlisted:"group",private:"lock",direct:"message"};var Fs="kvfysmfp",zs="ufhsfnkm",Lu=".".concat(Fs,"{overflow:hidden;touch-action:none}.").concat(zs,"{transform-origin: 0 0}"),Cu=typeof window>"u",Pu=function(){return!Cu&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var Ou=function(e){
|
|||
|
<video
|
|||
|
src="${v}"
|
|||
|
poster="${h}"
|
|||
|
width="${b}"
|
|||
|
height="${M}"
|
|||
|
data-orientation="${x}"
|
|||
|
preload="auto"
|
|||
|
autoplay
|
|||
|
muted
|
|||
|
playsinline
|
|||
|
${ae?"loop":""}
|
|||
|
ondblclick="this.paused ? this.play() : this.pause()"
|
|||
|
${we?"ontimeupdate=\"this.closest('.media-gif') && this.closest('.media-gif').style.setProperty('--progress', `${~~((this.currentTime / this.duration) * 100)}%`)\"":""}
|
|||
|
></video>
|
|||
|
`,Ve=`
|
|||
|
<video
|
|||
|
src="${v}"
|
|||
|
poster="${h}"
|
|||
|
width="${b}"
|
|||
|
height="${M}"
|
|||
|
data-orientation="${x}"
|
|||
|
preload="auto"
|
|||
|
autoplay
|
|||
|
playsinline
|
|||
|
${ae?"loop":""}
|
|||
|
controls
|
|||
|
></video>
|
|||
|
`;return s(ne,{children:s(z,{class:`media ${e} media-${Q?"gif":"video"} ${oe?"media-contain":""} ${de?"media-hover-animate":""}`,"data-orientation":x,"data-formatted-duration":o?void 0:ge,"data-label":Q&&!o&&!oe?"GIF":void 0,"data-has-alt":!q||void 0,style:!o&&ie,onClick:me=>{if(de)try{V.current.pause()}catch{}u(me)},onMouseEnter:()=>{if(de)try{V.current.play()}catch{}},onMouseLeave:()=>{if(de)try{V.current.pause()}catch{}},onFocus:()=>{if(de)try{V.current.play()}catch{}},onBlur:()=>{if(de)try{V.current.pause()}catch{}},children:[o||oe?Q&&o?s(xi,{...L,enabled:!0,children:s("div",{ref:D,dangerouslySetInnerHTML:{__html:bt}})}):Q?s("div",{class:"video-container",dangerouslySetInnerHTML:{__html:bt}}):s("div",{class:"video-container",dangerouslySetInnerHTML:{__html:Ve}}):Q?s("video",{ref:V,src:v,poster:h,width:b,height:M,"data-orientation":x,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:we?me=>{const{target:Ae}=me,$e=Ae==null?void 0:Ae.closest(".media-gif");if($e){const Le=Ae.currentTime/Ae.duration*100;$e.style.setProperty("--progress",`${Le}%`)}}:void 0}):s(U,{children:[h?s("img",{src:h,alt:q?"":d,width:b,height:M,"data-orientation":x,loading:"lazy",decoding:"async",onLoad:me=>{if(!P){const Ae=me.target.closest(".media");if(Ae){const{naturalHeight:$e,naturalWidth:Le}=me.target;Ae.dataset.orientation=Le>$e?"landscape":"portrait",Ae.style.setProperty("--width",`${Le}px`),Ae.style.setProperty("--height",`${$e}px`),Ae.style.aspectRatio=`${Le}/${$e}`}}}}):s("video",{src:v+"#t=0.1",width:b,height:M,"data-orientation":x,preload:"metadata",muted:!0,disablePictureInPicture:!0,onLoadedMetadata:me=>{if(!Y){const{duration:Ae}=me.target;if(Ae){const $e=Wr(Ae),Le=me.target.closest(".media-video");Le&&(Le.dataset.formattedDuration=$e)}}}}),s("div",{class:"media-play",children:s(H,{icon:"play",size:"xl"})})]}),!o&&!q&&s(Kr,{alt:d,lang:r,index:c})]})})}else if(T==="audio"||K){const Y=Wr(_.duration);return s(ne,{children:s(z,{class:`media media-audio ${e}`,"data-formatted-duration":o?void 0:Y,"data-has-alt":!q||void 0,onClick:u,style:!o&&ie,children:[o?s("audio",{src:g||v,preload:"none",controls:!0,autoPlay:!0}):h?s("img",{src:h,alt:q?"":d,width:b,height:M,"data-orientation":x,loading:"lazy",onError:ve=>{var Q,ae;try{(ae=(Q=ve.target)==null?void 0:Q.remove)==null||ae.call(Q)}catch{}}}):null,!o&&s(U,{children:[s("div",{class:"media-play",children:s(H,{icon:"play",size:"xl"})}),!q&&s(Kr,{alt:d,lang:r,index:c})]})]})})}}function td(e){return URL.parse(e,location.origin)}const io=lt(ed,(e,t)=>{const n=e.media||{},r=t.media||{};return(n==null?void 0:n.id)===(r==null?void 0:r.id)&&n.url===r.url&&e.to===t.to&&e.class===t.class}),nd=280,rd=140,od=zi({limit:1,interval:1e3});function id(e,t){return t.v1.accounts.$select(e).fetch()}const sd=ho(od(id)),gn={public:"Public",unlisted:"Unlisted",private:"Followers only",direct:"Private mention"},ad=window.ontouchstart!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent),cd=new Intl.RelativeTimeFormat,Mi=80;function ld(e){var t;return(t=e==null?void 0:e.options)!=null&&t.length?`📊:
|
|||
|
${e.options.map(n=>`- ${n.title}${n.votesCount>=0?` (${n.votesCount})`:""}`).join(`
|
|||
|
`)}`:""}function Zr(e){const{spoilerText:t,content:n,poll:r}=e;return(t?`${t}
|
|||
|
|
|||
|
`:"")+hr(n)+ld(r)}const Si=lt(({post:e,instance:t,previewMode:n})=>{const{content:r,emojis:o,language:i,mentions:a,url:l}=e;return s("div",{lang:i,dir:"auto",class:"inner-content",onClick:Sl({mentions:a,instance:t,previewMode:n,statusURL:l}),dangerouslySetInnerHTML:{__html:bs(r,{emojis:o,postEnhanceDOM:c=>{c.querySelectorAll('a.u-url[target="_blank"]').forEach(u=>{/http/i.test(u.innerText.trim())||u.removeAttribute("target")})}})}})},(e,t)=>{const{post:n}=e,{post:r}=t;return n.content===r.content}),ud={s:"small",m:"medium",l:"large"},dd=ut(e=>{if(e=e==null?void 0:e.trim(),(e==null?void 0:e.length)>500)return null;const n=Ma(e)[0];return n!=null&&n.lang&&(n==null?void 0:n.accuracy)>.5?n.lang:null});function qt({statusID:e,status:t,instance:n,size:r="m",contentTextWeight:o,readOnly:i,enableCommentHint:a,withinContext:l,skeleton:c,enableTranslate:u,forceTranslate:f,previewMode:d,onMediaClick:p,quoted:m,onStatusLinkClick:h=()=>{},showFollowedTags:g,allowContextMenu:v,showActionsBar:T,showReplyParent:_,mediaFirst:E}){var Uo,Wo,Ko;if(c)return s("div",{class:`status skeleton ${E?"status-media-first small":""}`,children:[!E&&s(st,{size:"xxl"}),s("div",{class:"container",children:[s("div",{class:"meta",children:[(r==="s"||E)&&s(st,{size:"m"})," ███ ████████"]}),s("div",{class:"content-container",children:[E&&s("div",{class:"media-first-container"}),s("div",{class:`content ${E?"media-first-content":""}`,children:s("p",{children:"████ ████████"})})]})]})]});const{masto:w,instance:b,authenticated:M}=nr({instance:n}),{instance:A}=nr(),O=b===A;let P=it(e||(t==null?void 0:t.id),b);const x=Sn(W);if(t||(t=x.statuses[P]||x.statuses[e],P=it(t==null?void 0:t.id,b)),!t)return null;const{account:{acct:S,avatar:V,avatarStatic:B,id:D,url:$,displayName:k,username:R,emojis:L,bot:z,group:N},id:C,repliesCount:K,reblogged:Z,reblogsCount:te,favourited:le,favouritesCount:Ee,bookmarked:pe,poll:_e,muted:be,sensitive:ie,spoilerText:ue,visibility:q,language:ne,editedAt:xe,filtered:ft,card:Y,createdAt:ve,inReplyToId:Q,inReplyToAccountId:ae,content:ge,mentions:de,mediaAttachments:oe,reblog:we,uri:bt,url:Ve,emojis:me,tags:Ae,_deleted:$e,_pinned:Le,emojiReactions:Pt}=t,[Ke,An]=ee(null);se(()=>{if(!ge||ne)return;let y;return y=setTimeout(()=>{let F=dd(hr(ge,{preProcess:J=>{J.querySelectorAll(".mention, .hashtag, pre, code, a:has(.invisible)").forEach(ce=>{ce.remove()}),J.querySelectorAll("a").forEach(ce=>{const Oe=ce.innerText.trim();(Oe.startsWith("https://")||Oe.startsWith("http://"))&&ce.remove()})}}));An(F)},1e3),()=>clearTimeout(y)},[ge,ne]);const Te=ne||Ke,wt=!!(oe!=null&&oe.length);E&&wt&&(r="s");const Je=he(()=>po(),[]),Qe=he(()=>Je&&Je===D,[D,Je]),yr=Ne(Rs),ht=!Qe&&!i&&!d&&ko(ft,yr);if((ht==null?void 0:ht.action)==="hide")return null;const Tt=y=>{y.shiftKey};if(r!=="l"&&ht)return s(_d,{status:t,filterInfo:ht,instance:b,containerProps:{onMouseEnter:Tt},showFollowedTags:!0,quoted:m});const et=new Date(ve),Jt=new Date(xe);let re=de==null?void 0:de.find(y=>y.id===ae);!re&&ae===C&&(re={url:$,username:R,displayName:k});const[Se,je]=ee(re);if(!l&&!Se&&ae){const y=W.accounts[ae];y?je(y):sd(ae,w).then(F=>{je(F),W.accounts[F.id]=F}).catch(F=>{})}const Fe=ae===Je||(de==null?void 0:de.find(y=>y.id===Je)),ye=he(()=>!!(Zo.account.get("preferences")||{})["reading:expand:spoilers"],[]),tt=he(()=>(Zo.account.get("preferences")||{})["reading:expand:media"]||"default",[]),Pe=d||ye||!!x.spoilers[C],ze=d||tt==="show_all"||!!x.spoilersMedia[C];if(we)return N?s("div",{"data-state-post-id":P,class:"status-group",onMouseEnter:Tt,children:[s("div",{class:"status-pre-meta",children:[s(H,{icon:"group",size:"l",alt:"Group"})," ",s(fn,{account:t.account,instance:b,showAvatar:!0})]}),s(qt,{status:e?null:we,statusID:e?we.id:null,instance:b,size:r,contentTextWeight:o,readOnly:i,mediaFirst:E})]}):s("div",{"data-state-post-id":P,class:"status-reblog",onMouseEnter:Tt,children:[s("div",{class:"status-pre-meta",children:[s(H,{icon:"rocket",size:"l"})," ",s(fn,{account:t.account,instance:b,showAvatar:!0})," ",s("span",{children:"boosted"})]}),
|
|||
|
|
|||
|
⚠️ Some media have no descriptions.`),!confirm(y))return!1}if(W.statuses[P]={...t,reblogged:!Z,reblogsCount:te+(Z?-1:1)},Z){const y=await w.v1.statuses.$select(C).unreblog();return rt(y,b),!0}else{const y=await w.v1.statuses.$select(C).reblog();return rt(y,b),!0}}catch{return W.statuses[P]=t,!1}},xr=async()=>{if(!O||!M)return alert(nn),!1;try{if(W.statuses[P]={...t,reblogged:!Z,reblogsCount:te+(Z?-1:1)},Z){const y=await w.v1.statuses.$select(C).unreblog();rt(y,b)}else{const y=await w.v1.statuses.$select(C).reblog();rt(y,b)}return!0}catch{return W.statuses[P]=t,!1}},Do=async()=>{if(!O||!M)return alert(nn),!1;try{if(W.statuses[P]={...t,favourited:!le,favouritesCount:Ee+(le?-1:1)},le){const y=await w.v1.statuses.$select(C).unfavourite();rt(y,b)}else{const y=await w.v1.statuses.$select(C).favourite();rt(y,b)}return!0}catch{return W.statuses[P]=t,!1}},Mr=async()=>{try{const y=await Do();!fe&&y&&Ce(le?`Unliked @${R||S}'s post`:`Liked @${R||S}'s post`)}catch{}},Ro=async()=>{if(Bn("@mastodon/post-bookmark")){if(!O||!M)return alert(nn),!1;try{if(W.statuses[P]={...t,bookmarked:!pe},pe){const y=await w.v1.statuses.$select(C).unbookmark();rt(y,b)}else{const y=await w.v1.statuses.$select(C).bookmark();rt(y,b)}return!0}catch{return W.statuses[P]=t,!1}}},No=async()=>{try{const y=await Ro();!fe&&y&&Ce(pe?`Unbookmarked @${R||S}'s post`:`Bookmarked @${R||S}'s post`)}catch{}},Cn=!!Te&&Te!==nt&&!no([Te],[nt])&&!tn.find(y=>Te===y||no([Te],[y])),Fo=j(),zo=j();async function ta(y){var ce,Oe,Rt,Sr;y&&(Fo.current=w.v1.statuses.$select(e).rebloggedBy.list({limit:Mi}),zo.current=w.v1.statuses.$select(e).favouritedBy.list({limit:Mi}));const[{value:F},{value:J}]=await Promise.allSettled([Fo.current.next(),zo.current.next()]);if((ce=F.value)!=null&&ce.length||(Oe=J.value)!=null&&Oe.length){const xt=[];return(Rt=F.value)!=null&&Rt.length&&xt.push(...F.value.map(Mt=>(Mt._types=["reblog"],Mt))),(Sr=J.value)!=null&&Sr.length&&xt.push(...J.value.map(Mt=>(Mt._types=["favourite"],Mt))),{value:xt,done:F.done&&J.done}}return{value:[],done:!0}}const na=j(),Ho=["public","unlisted"].includes(q),ra=["public","unlisted","private"].includes(q),Vo=s(U,{children:[!fe&&O&&s(U,{children:s("div",{class:"menu-control-group-horizontal status-menu",children:[s(ke,{onClick:Ln,children:[s(H,{icon:"comment"}),s("span",{children:K>0?yt(K):"Reply"})]}),s(Lr,{subMenu:!0,confirmLabel:s(U,{children:[s(H,{icon:"rocket"}),s("span",{children:Z?"Unboost":"Boost"})]}),className:`menu-reblog ${Z?"checked":""}`,menuExtras:s(ke,{onClick:()=>{Un({draftStatus:{status:`
|
|||
|
${Ve}`}})},children:[s(H,{icon:"quote"}),s("span",{children:"Quote"})]}),menuFooter:Er&&!Z?s("div",{class:"footer",children:[s(H,{icon:"alert"}),"Some media have no descriptions."]}):Oo>=3&&s("div",{class:"footer",children:[s(H,{icon:"info"}),s("span",{children:["Old post (",s("strong",{children:cd.format(-Oo,"month")}),")"]})]}),disabled:!rn,onClick:async()=>{try{const y=await xr();!fe&&y&&Ce(Z?`Unboosted @${R||S}'s post`:`Boosted @${R||S}'s post`)}catch{}},children:[s(H,{icon:"rocket"}),s("span",{children:te>0?yt(te):Z?"Unboost":"Boost…"})]}),s(ke,{onClick:Mr,className:`menu-favourite ${le?"checked":""}`,children:[s(H,{icon:"heart"}),s("span",{children:Ee>0?yt(Ee):le?"Unlike":"Like"})]}),Bn("@mastodon/post-bookmark")&&s(ke,{onClick:No,className:`menu-bookmark ${pe?"checked":""}`,children:[s(H,{icon:"bookmark"}),s("span",{children:pe?"Unbookmark":"Bookmark"})]})]})}),!fe&&O&&(fe||T)&&s(an,{}),(fe||T)&&s(U,{children:s(ke,{onClick:()=>{W.showGenericAccounts={heading:"Boosted/Liked by…",fetchAccounts:ta,instance:b,showReactions:!0,postID:P}},children:[s(H,{icon:"react"}),s("span",{children:["Boosted/Liked by",s("span",{class:"more-insignificant",children:"…"})]})]})}),!E&&s(U,{children:[(u||!Te||Cn)&&s(an,{}),u?s("div",{class:mn?"menu-horizontal":"",children:[s(ke,{disabled:en,onClick:()=>{_r(!0)},children:[s(H,{icon:"translate"}),s("span",{children:"Translate"})]}),mn&&s(ke,{onClick:()=>{const y=Zr(t);y&&yi(y,Te)},children:[s(H,{icon:"speak"}),s("span",{children:"Speak"})]})]}):(!Te||Cn)&&s("div",{class:mn?"menu-horizontal":"",children:[s(li,{to:`${b?`/${b}`:""}/s/${C}?translate=1`,children:[s(H,{icon:"translate"}),s("span",{children:"Translate"})]}),mn&&s(ke,{onClick:()=>{const y=Zr(t);y&&yi(y,Te)},children:[s(H,{icon:"speak"}),s("span",{children:"Speak"})]})]})]}),(!fe&&O||u||!Te||Cn)&&s(an,{}),!fe&&s(U,{children:s(li,{to:b?`/${b}/s/${C}`:`/s/${C}`,onClick:y=>{h(y,t)},children:[s(H,{icon:"arrows-right"}),s("small",{children:["View post by @",R||S,s("br",{}),s("span",{class:"more-insignificant",children:[gn[q]," • ",Co]})]})]})}),!!xe&&s(U,{children:s(ke,{onClick:()=>{$n(C)},children:[s(H,{icon:"history"}),s("small",{children:["Show Edit History",s("br",{}),s("span",{class:"more-insignificant",children:["Edited: ",Po]})]})]})}),s(ke,{href:Ve,target:"_blank",children:[s(H,{icon:"external"}),s("small",{class:"menu-double-lines",children:vd(Ve)})]}),s("div",{class:"menu-horizontal",children:[s(ke,{onClick:()=>{try{navigator.clipboard.writeText(Ve),Ce("Link copied")}catch{Ce("Unable to copy link")}},children:[s(H,{icon:"link"}),s("span",{children:"Copy"})]}),Ho&&(navigator==null?void 0:navigator.share)&&((Wo=navigator==null?void 0:navigator.canShare)==null?void 0:Wo.call(navigator,{url:Ve}))&&s(ke,{onClick:()=>{try{navigator.share({url:Ve})}catch{alert("Sharing doesn't seem to work.")}},children:[s(H,{icon:"share"}),s("span",{children:"Share…"})]})]}),Ho&&fe&&s(ke,{onClick:()=>{wr(!0)},children:[s(H,{icon:"code"}),s("span",{children:"Embed post"})]}),(Qe||Fe)&&s(an,{}),(Qe||Fe)&&s(ke,{onClick:async()=>{try{const y=await w.v1.statuses.$select(C)[be?"unmute":"mute"]();rt(y,b),Ce(be?"Conversation unmuted":"Conversation muted")}catch{Ce(be?"Unable to unmute conversation":"Unable to mute conversation")}},children:be?s(U,{children:[s(H,{icon:"unmute"}),s("span",{children:"Unmute conversation"})]}):s(U,{children:[s(H,{icon:"mute"}),s("span",{children:"Mute conversation"})]})}),Qe&&ra&&s(ke,{onClick:async()=>{try{const y=await w.v1.statuses.$select(C)[Le?"unpin":"pin"]();Ce(Le?"Post unpinned from profile":"Post pinned to profile")}catch{Ce(Le?"Unable to unpin post":"Unable to pin post")}},children:Le?s(U,{children:[s(H,{icon:"unpin"}),s("span",{children:"Unpin from profile"})]}):s(U,{children:[s(H,{icon:"pin"}),s("span",{children:"Pin to profile"})]})}),Qe&&s("div",{class:"menu-horizontal",children:[Bn("@mastodon/post-edit")&&s(ke,{onClick:()=>{Un({editStatus:t})},children:[s(H,{icon:"pencil"}),s("span",{children:"Edit"})]}),fe&&s(Lr,{subMenu:!0,confirmLabel:s(U,{children:[s(H,{icon:"trash"}),s("span",{children:"Delete th
|
|||
|
${Ve}`}})},children:[s(H,{icon:"quote"}),s("span",{children:"Quote"})]}),menuFooter:Er&&!Z&&s("div",{class:"footer",children:[s(H,{icon:"alert"}),"Some media have no descriptions."]}),children:s("div",{class:"action has-count",children:s(Vt,{checked:Z,title:["Boost","Unboost"],alt:["Boost","Boosted"],class:"reblog-button",icon:"rocket",count:te,disabled:!rn})})}),s("div",{class:"action has-count",children:s(Vt,{checked:le,title:["Like","Unlike"],alt:["Like","Liked"],class:"favourite-button",icon:"heart",count:Ee,onClick:Do})}),Bn("@mastodon/post-bookmark")&&s("div",{class:"action",children:s(Vt,{checked:pe,title:["Bookmark","Unbookmark"],alt:["Bookmark","Bookmarked"],class:"bookmark-button",icon:"bookmark",onClick:Ro})}),s(cs,{portal:{target:document.querySelector(".status-deck")||document.body},align:"end",gap:4,overflow:"auto",viewScroll:"close",menuButton:s("div",{class:"action",children:s("button",{type:"button",title:"More",class:"plain more-button",children:s(H,{icon:"more",size:"l",alt:"More"})})}),children:Vo})]})]})]}),!!br&&s(Gr,{onClick:y=>{y.target===y.currentTarget&&$n(!1)},children:s(md,{statusID:br,instance:b,fetchStatusHistory:()=>w.v1.statuses.$select(br).history.list(),onClose:()=>{var y;$n(!1),(y=Dt.current)==null||y.focus()}})}),!!Qs&&s(Gr,{onClick:y=>{y.target===y.currentTarget&&wr(!1)},children:s(gd,{post:t,instance:b,onClose:()=>{wr(!1)}})})]})]})}function fd(e){const{enabled:t,children:n,lang:r,captionChildren:o}=e;return!t||!o?n:s("figure",{class:"media-figure-multiple",children:[n,s("figcaption",{lang:r,dir:"auto",children:o})]})}function hd(e){const{mediaAttachments:t,language:n,postID:r,instance:o}=e,i=t.length>1,a=j(),[l,c]=ee(0);return se(()=>{let u=()=>{const{clientWidth:f,scrollLeft:d}=a.current,p=Math.round(d/f);c(p)};return a.current&&a.current.addEventListener("scroll",u,{passive:!0}),()=>{a.current&&a.current.removeEventListener("scroll",u)}},[]),s(U,{children:[s("div",{class:"media-first-container",children:[s("div",{class:"media-first-carousel",ref:a,children:t.map((u,f)=>s("div",{class:"media-first-item",children:s(io,{media:u,lang:n,to:`/${o}/s/${r}?media=${f+1}`})},u.id))}),i&&s("div",{class:"media-carousel-controls",children:[s("div",{class:"carousel-indexer",children:[l+1,"/",t.length]}),s("label",{class:"media-carousel-button",children:s("button",{type:"button",class:"carousel-button",hidden:l===0,onClick:u=>{u.preventDefault(),u.stopPropagation(),a.current.focus(),a.current.scrollTo({left:a.current.clientWidth*(l-1),behavior:"smooth"})},children:s(H,{icon:"arrow-left"})})}),s("label",{class:"media-carousel-button",children:s("button",{type:"button",class:"carousel-button",hidden:l===t.length-1,onClick:u=>{u.preventDefault(),u.stopPropagation(),a.current.focus(),a.current.scrollTo({left:a.current.clientWidth*(l+1),behavior:"smooth"})},children:s(H,{icon:"arrow-right"})})})]})]}),i&&s("div",{class:"media-carousel-dots",style:{"--dots-count":t.length},children:t.map((u,f)=>s("span",{class:`carousel-dot ${f===l?"active":""}`},u.id))})]})}function ki(e){return _s.toUnicode(URL.parse(e).hostname.replace(/^www\./,"").replace(/\/$/,""))}function Ai(e){return["x.com","twitter.com","threads.net","bsky.app"].includes(e)}function pd({card:e,selfReferential:t,instance:n}){var V;const r=Sn(W),{blurhash:o,title:i,description:a,html:l,providerName:c,providerUrl:u,authorName:f,authorUrl:d,width:p,height:m,image:h,imageDescription:g,url:v,type:T,embedUrl:_,language:E,publishedAt:w}=e,b=i||c||f,A=p/m>=1.2?"large":"",[O,P]=ee(null);if(se(()=>{b&&h&&!t&&Ta(v)&&Ea(n,v).then(B=>{if(!B)return;const{id:D,url:$}=B;P("#"+$)})},[b,h,t]),r.unfurledLinks[v])return null;const x=/<iframe/i.test(l),S=Ie(B=>{x&&(B.preventDefault(),W.showEmbedModal={html:l,url:v||_,width:p,height:m})},[x]);if(b&&(h||T==="photo"&&o)){const B=ki(v);let D;const $=h&&o?So(o):null;if(!h){const z=fu(o,44,44),N=window.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas");N.width=44,N.height=44;const C=N.getContext("2d");C.imageSmoothingEnabled=!1;const K=C.createImageData(44,44);K.data.set(z),C.putImageData(K,0,0)
|
|||
|
`+A+`
|
|||
|
`+((S=d==null?void 0:d.options)!=null&&S.length?`
|
|||
|
<p>📊:</p>
|
|||
|
<ul>
|
|||
|
${d.options.map(V=>`
|
|||
|
<li>
|
|||
|
${V.title}
|
|||
|
${V.votesCount>=0?` (${V.votesCount})`:""}
|
|||
|
</li>
|
|||
|
`).join("")}
|
|||
|
</ul>`:"")+(T.length>0?`
|
|||
|
`+T.map(V=>{const{description:B,meta:D,previewRemoteUrl:$,previewUrl:k,remoteUrl:R,url:L,type:z}=V,{original:N={},small:C}=D||{},K=(C==null?void 0:C.width)||(N==null?void 0:N.width),Z=(C==null?void 0:C.height)||(N==null?void 0:N.height),te=R||L,le=$||k,Ee=le||te,pe=te?URL.parse(te):null,_e=z==="unknown"&&pe&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(pe.pathname),be=z==="unknown"&&pe&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test(pe.pathname),ie=z==="image"||z==="unknown"&&le&&!_e&&!be,ue=z==="gifv"||z==="video"||_e,q=z==="audio"||be;let ne="";return ie?ne=`<img src="${Ee}" width="${K}" height="${Z}" alt="${B}" loading="lazy" />`:ue?ne=`
|
|||
|
<video src="${te}" width="${K}" height="${Z}" controls preload="auto" poster="${le}" loading="lazy"></video>
|
|||
|
${B?`<figcaption>${B}</figcaption>`:""}
|
|||
|
`:q?ne=`
|
|||
|
<audio src="${te}" controls preload="auto"></audio>
|
|||
|
${B?`<figcaption>${B}</figcaption>`:""}
|
|||
|
`:ne=`
|
|||
|
<a href="${te}">📄 ${B||te}</a>
|
|||
|
`,`<figure>${ne}</figure>`}).join(`
|
|||
|
`):""),x=`
|
|||
|
<blockquote lang="${m}" cite="${_}">
|
|||
|
${p?`
|
|||
|
<details>
|
|||
|
<summary>${p}</summary>
|
|||
|
${P}
|
|||
|
</details>
|
|||
|
`:P}
|
|||
|
<footer>
|
|||
|
— ${fr(o,l)} (@${i}) <a href="${_}"><time datetime="${O.toISOString()}">${O.toLocaleString()}</time></a>
|
|||
|
</footer>
|
|||
|
</blockquote>
|
|||
|
`;return wu(x)}function gd({post:e,instance:t,onClose:n}){const{account:{url:r,displayName:o,username:i,emojis:a,bot:l,group:c},id:u,poll:f,spoilerText:d,language:p,editedAt:m,createdAt:h,content:g,mediaAttachments:v,url:T,emojis:_}=e,E=js(e,t);return s("div",{id:"embed-post",class:"sheet",children:[!!n&&s("button",{type:"button",class:"sheet-close",onClick:n,children:s(H,{icon:"x"})}),s("header",{children:s("h2",{children:"Embed post"})}),s("main",{tabIndex:"-1",children:[s("h3",{children:"HTML Code"}),s("textarea",{class:"embed-code",readonly:!0,onClick:w=>{w.target.select()},children:E}),s("button",{type:"button",onClick:()=>{try{navigator.clipboard.writeText(E),Ce("HTML code copied")}catch{Ce("Unable to copy HTML code")}},children:[s(H,{icon:"clipboard"})," ",s("span",{children:"Copy"})]}),!!(v!=null&&v.length)&&s("section",{children:[s("p",{children:"Media attachments:"}),s("ol",{class:"links-list",children:v.map(w=>s("li",{children:s("a",{href:w.remoteUrl||w.url,target:"_blank",download:!0,children:w.remoteUrl||w.url})},w.id))})]}),!!(a!=null&&a.length)&&s("section",{children:[s("p",{children:"Account Emojis:"}),s("ul",{children:a.map(w=>s("li",{children:[s("picture",{children:[s("source",{srcset:w.staticUrl,media:"(prefers-reduced-motion: reduce)"}),s("img",{class:"shortcode-emoji emoji",src:w.url,alt:`:${w.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",s("code",{children:[":",w.shortcode,":"]})," (",s("a",{href:w.url,target:"_blank",download:!0,children:"url"}),")",w.staticUrl?s(U,{children:[" ","(",s("a",{href:w.staticUrl,target:"_blank",download:!0,children:"static"}),")"]}):null]},w.shortcode))})]}),!!(_!=null&&_.length)&&s("section",{children:[s("p",{children:"Emojis:"}),s("ul",{children:_.map(w=>s("li",{children:[s("picture",{children:[s("source",{srcset:w.staticUrl,media:"(prefers-reduced-motion: reduce)"}),s("img",{class:"shortcode-emoji emoji",src:w.url,alt:`:${w.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",s("code",{children:[":",w.shortcode,":"]})," (",s("a",{href:w.url,target:"_blank",download:!0,children:"url"}),")",w.staticUrl?s(U,{children:[" ","(",s("a",{href:w.staticUrl,target:"_blank",download:!0,children:"static"}),")"]}):null]},w.shortcode))})]}),s("section",{children:s("small",{children:[s("p",{children:"Notes:"}),s("ul",{children:[s("li",{children:"This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed."}),s("li",{children:"Polls are not interactive, becomes a list with vote counts."}),s("li",{children:"Media attachments can be images, videos, audios or any file types."}),s("li",{children:"Post could be edited or deleted later."})]})]})}),s("h3",{children:"Preview"}),s("output",{class:"embed-preview",dangerouslySetInnerHTML:{__html:E}}),s("p",{children:s("small",{children:"Note: This preview is lightly styled."})})]})]})}function Vt({checked:e,count:t,class:n,title:r,alt:o,size:i,icon:a,iconSize:l="l",onClick:c,...u}){typeof r=="string"&&(r=[r,r]),typeof o=="string"&&(o=[o,o]);const[f,d]=ee(r[0]||""),[p,m]=ee(o[0]||"");return se(()=>{e?(d(r[1]||""),m(o[1]||"")):(d(r[0]||""),m(o[0]||""))},[e,r,o]),s("button",{type:"button",title:f,class:`plain ${i?"small":""} ${n} ${e?"checked":""}`,onClick:h=>{c&&(h.preventDefault(),h.stopPropagation(),c(h))},...u,children:[s(H,{icon:a,size:l,alt:p}),!!t&&s(U,{children:[" ",s("small",{title:t,children:yt(t)})]})]})}function vd(e){if(!e)return;const t=URL.parse(e),{host:n,pathname:r}=t,o=r.replace(/\/$/,""),[i,a,l]=o.match(/\/(@[^\/]+)\/(.*)/)||[];return s(U,{children:[_s.toUnicode(n),a?s(U,{children:["/",a,s("wbr",{}),s("span",{class:"more-insignificant",children:["/",l]})]}):s("span",{class:"more-insignificant",children:o})]})}function yd({sKey:e}){const n=Sn(W).statusReply[e];if(!n)return null;const{id:r,instance:o}=n,i=Vi(r,o);if(!i)return null;const{sensitive:a,spoilerText:l,account:{avatar:c,avatarStatic:u,bot:f}={},visibility:d,content:p,language:m,filtered:h}=i;if(a||l||!p)return null;const g=it(r,o),v=Ns(i),T=Ne(Rs),_=ko(h,T);if((_==null?void 0:
|
|||
|
//# sourceMappingURL=fuse-BiYvWrZm.js.map
|