custom element for embedding Bluesky posts and feeds mary-ext.github.io/bluesky-embed
typescript npm bluesky atcute
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

deploy: a6b2a09c43e7b6b767c5ed7e794690fe420efcbe

Mary 327d9df8 fc6cd627

+18 -46
+1
assets/GuideInstructions-BnT5jEHa.css
··· 1 + .code-block.svelte-1ayzm2r{display:flex;gap:12px;border:1px solid #d1d5db;border-radius:4px;background:#f9fafb;padding:12px;overflow:hidden;overflow-x:auto;pre:where(.svelte-1ayzm2r){flex-grow:1;margin:0;font-size:.75rem;line-height:1.25rem}}.actions.svelte-1ayzm2r{position:sticky;top:0;right:0}.action-button.svelte-1ayzm2r{display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;border:1px solid #d1d5db;border-radius:4px;background:#fff;padding:0;width:32px;height:32px;color:#4b5563;@media (pointer: fine){opacity:0;transition:75ms ease-in;.code-block:where(.svelte-1ayzm2r):hover &,.code-block:where(.svelte-1ayzm2r):focus-within &{opacity:1}&:hover{border-color:#9ca3af;background:#e5e7eb;color:#1f2937}}&:active{border-color:#9ca3af;background:#e5e7eb;color:#1f2937}}.icon.svelte-1ayzm2r{width:16px;height:16px}.guide.svelte-13uuyu6{margin:36px 0 0;border-top:1px solid #d1d5db}.guide-header.svelte-13uuyu6{margin:36px 0 16px}.guide-instructions.svelte-10td8te{margin:24px 0 0;padding:0 0 0 22px;font-size:.875rem;line-height:1.25rem;li+li{margin:24px 0 0}}
+1
assets/GuideInstructions-lu6IsfjL.js
··· 1 + import{n as e,o as t,q as s,r,u as n,v as a,w as o,x as i,y as c,z as l,p as d,k as u,t as p,i as h,a as f,b as y,c as v,d as b,A as g}from"./index-xYaDyaLn.js";function w(e){}function m(e=1){}function x(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function k(o,i,c,l,d){var u,p=o,h="";e((()=>{h!==(h=i()??"")&&(void 0!==u&&(a(u),u=void 0),""!==h&&(u=t((()=>{var e=s(h+"");r(n(e),e.lastChild),p.before(e)}))))}))}function j(e){null===o&&x(),function(e){null===o&&x(),i((()=>{const t=c(e);if("function"==typeof t)return t}))}((()=>()=>c(e)))}const C=({service:e,fetch:t=fetch})=>async(s,r)=>{const n=new URL(s,e);return t(n,r)},z=(e,t)=>{let s;for(const r in t){const n=t[r];null!==n&&(s??=new Headers(e),s.has(r)||s.set(r,n))}return s??e};class O extends Error{constructor(e,{kind:t=`HTTP error ${e}`,description:s="Unspecified error description",headers:r,cause:n}={}){super(`${t} > ${s}`,{cause:n}),this.name="XRPCError",this.status=e,this.kind=t,this.description=s,this.headers=r||{}}}class ${constructor({handler:e,proxy:t}){this.handle=(e=>"object"==typeof e?e.handle.bind(e):e)(e),this.proxy=t}get(e,t){return this.request({type:"get",nsid:e,...t})}call(e,t){return this.request({type:"post",nsid:e,...t})}async request(e){const t=e.data,s=`/xrpc/${e.nsid}`+A(e.params),r=E(t),n=await this.handle(s,{method:e.type,signal:e.signal,body:r?JSON.stringify(t):t,headers:z(e.headers,{"content-type":r?"application/json":null,"atproto-proxy":q(this.proxy)})}),a=n.status,o=Object.fromEntries(n.headers),i=o["content-type"];let c,l;i&&(i.startsWith("application/json")?c=n.json():i.startsWith("text/")&&(c=n.text()));try{l=await(c||n.arrayBuffer().then((e=>new Uint8Array(e))))}catch(d){throw new O(2,{cause:d,kind:"InvalidResponse",description:"Failed to parse response body",headers:o})}if(200===a)return{data:l,headers:o};if(H(l))throw new O(a,{kind:l.error,description:l.message,headers:o});throw new O(a,{headers:o})}}const q=e=>e?`${e.service}#${e.type}`:null,A=e=>{let t;for(const s in e){const r=e[s];if(void 0!==r)if(t??=new URLSearchParams,Array.isArray(r))for(let e=0,n=r.length;e<n;e++){const n=r[e];t.append(s,""+n)}else t.set(s,""+r)}return t?"?"+t.toString():""},E=e=>{if("object"!=typeof e||null===e)return!1;if("toJSON"in e)return!0;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},H=e=>{if("object"!=typeof e||null===e)return!1;const t=typeof e.error,s=typeof e.message;return!("undefined"!==t&&"string"!==t||"undefined"!==s&&"string"!==s)},P=e=>e.replace(/[<"&]/g,(e=>"&#"+e.charCodeAt(0)+";"));var R=(e,t)=>{navigator.clipboard.writeText(t.code).catch((()=>alert("Failed to copy to clipboard")))},S=v('<div class="code-block svelte-1ayzm2r"><pre class="svelte-1ayzm2r"><code> </code></pre> <div class="actions svelte-1ayzm2r"><button title="Copy" aria-label="Copy" class="action-button svelte-1ayzm2r"><svg class="icon svelte-1ayzm2r" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M15 5h4v16H5V5h4m0-2h6v4H9V3Z"></path></svg></button></div></div>');function U(e,t){d(t,!0);var s=S(),r=b(s),n=b(r),a=b(n),o=u(r,2);b(o).__click=[R,t],p((()=>h(a,t.code))),f(e,s),y()}l(["click"]);var _=v('<div class="guide svelte-13uuyu6"><h4 class="guide-header svelte-13uuyu6"> </h4> <!></div>');function T(e,t){d(t,!0);var s=_(),r=b(s),n=b(r),a=u(r,2);g(a,(()=>t.children)),p((()=>h(n,t.title))),f(e,s),y()}var B=v('<ol class="guide-instructions svelte-10td8te"><!></ol>');function F(e,t){d(t,!0);var s=B(),r=b(s);g(r,(()=>t.children)),f(e,s),y()}export{U as C,T as G,$ as X,O as a,F as b,P as e,k as h,m as n,j as o,w as r,C as s};
+1
assets/PostDisplay-Cl4Ezdpa.js
··· 1 + import{p as e,t,s as a,a as s,b as i,c as r,d as l,e as o,f as n,g as d,B as c,h as p,i as u,j as m,k as f,l as h,C as v,m as b}from"./index-xYaDyaLn.js";import{X as k,s as y,a as $,h as g,o as w,G as x,b as z,C as q,n as Z,r as A,e as F}from"./GuideInstructions-lu6IsfjL.js";import{s as C}from"./index-Cr8Vao8y.js";const M=/[&"<]/g,N=/[&<]/g;function _(e,t){const a=String(e??""),s=t?M:N;s.lastIndex=0;let i="",r=0;for(;s.test(a);){const e=s.lastIndex-1,t=a[e];i+=a.substring(r,e)+("&"===t?"&amp;":'"'===t?"&quot;":"&lt;"),r=e+1}return i+a.substring(r)}function B(e,t,a=!1){if(null==t||!t&&a||""===t&&"class"===e)return"";return` ${e}${a?"":`="${_(t,!0)}"`}`}function U(e){return"string"==typeof e?e:null==e?"":e+""}function S(e,t){const{children:a}=t;e.out+='<div class="bluesky-embed s-3olstj">',a(e),e.out+="</div>"}const T=e=>`https://bsky.app/profile/${e}`,I=(e,t)=>`https://bsky.app/profile/${e}/post/${t}`,R=(e,t)=>`https://bsky.app/profile/${e}/feed/${t}`;let D=0,H=0;const j=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),P=new Intl.DateTimeFormat("en-US",{dateStyle:"medium"}),V=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}),G=e=>{const t=new Date(e),a=t.getTime();if(isNaN(a))return"N/A";const s=Date.now();if(s>H){const e=new Date(s);e.setMonth(0,1),e.setHours(0,0,0),D=e.getTime(),e.setFullYear(e.getFullYear()+1,0,0),e.setHours(23,59,59,999),H=e.getTime()}return a>=D&&a<=H?V.format(t):P.format(t)},L=e=>{const t=new Date(e);return isNaN(t.getTime())?"N/A":j.format(t)},W={"!hide":{name:"Hidden by moderators",flags:1},"!warn":{name:"Content warning",flags:1},porn:{name:"Adult content",flags:0},sexual:{name:"Sexually suggestive",flags:0},"graphic-media":{name:"Graphic media",flags:0},nudity:{name:"Nudity",flags:0}},E=(e,t)=>{if(e?.length)for(let a=0,s=e.length;a<s;a++){const s=e[a],i=s.val;if(!(i in W))continue;const r=W[i];if(!(1&r.flags&&s.src===t))return r}},Y=new Intl.NumberFormat("en-US"),J=new Intl.NumberFormat("en-US",{notation:"compact"}),K=e=>e<1e3?""+e:e<1e5?Y.format(e):J.format(e),X=e=>Y.format(e),O=/^at:\/\/((?:did:[a-zA-Z0-9._:%-]+)|(?:[a-zA-Z0-9][a-zA-Z0-9-.]*))(?:\/([a-zA-Z0-9.-]+)(?:\/([a-zA-Z0-9_~.:-]{1,512}))?)?\/?(?:\?([^#\s]*))?(?:#([^\s]*))?$/,Q=e=>{const t=O.exec(e);if(!t)throw new ee(`invalid at-uri: ${e}`);return{repo:t[1],collection:t[2]??"",rkey:t[3]??"",query:t[4]??"",fragment:t[5]??""}};let ee=class extends Error{};function te(e,t){const{embed:a}=t,s=a.external,i=(e=>{let t;if("parse"in URL)t=URL.parse(e);else try{t=new URL(e)}catch{}return!t||"https:"!==t.protocol&&"http:"!==t.protocol?null:t})(s.uri)?.host;e.out+=`<a target="_blank"${B("href",i&&s.uri)} rel="noopener noreferrer nofollow" class="external-embed s-rtbqd8">`,s.thumb&&(e.out+=`<img loading="lazy"${B("src",s.thumb)} alt="" class="thumbnail s-rtbqd8">`),e.out+=` <div class="meta s-rtbqd8"><p class="title s-rtbqd8">${_(s.title)}</p> <p class="description s-rtbqd8">${_(s.description)}</p> `,i&&(e.out+=`<div class="domain s-rtbqd8"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="m4.172 8.07 3.94 2.957.977-1.941 3.887-.978 1.15-4.6M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-6.078 4.865.973-1.946-2.869-1.928-1.89-.12-1.08 1.075 1.947 2.919h2.919Z"></path></svg> <span class="domain-name">${_(i)}</span></div>`),e.out+="</div></a>"}function ae(e,t){const{embed:a,borderless:s,standalone:i,blur:r}=t,l=a.images,o=l.length;function n(e,t){const a=l[t];e.out+=`<img loading="lazy"${B("src",a.thumb)}${B("alt",a.alt)}${B("class",`${U("image"+(r?" is-blurred":""))} s-t3k6fc`)}>`}if(e.out+=`<div${B("class",`${U("image-embed"+(s?"":" is-bordered")+(i&&1===o?" is-aligned":""))} s-t3k6fc`)}>`,4===o)e.out+='<div class="grid s-t3k6fc"><div class="col s-t3k6fc"><div class="item wide tl s-t3k6fc">',n(e,0),e.out+='</div> <div class="item wide bl s-t3k6fc">',n(e,2),e.out+='</div></div> <div class="col s-t3k6fc"><div class="item wide tr s-t3k6fc">',n(e,1),e.out+='</div> <div class="item wide br s-t3k6fc">',n(e,3),e.out+="</div></div></div>";else if(3===o)e.out+='<div class="grid s-t3k6fc"><div class="col square s-t3k6fc"><div class="item tl bl s-t3k6fc">',n(e,0),e.out+='</div></div> <div class="col square s-t3k6fc"><div class="item tr s-t3k6fc">',n(e,1),e.out+='</div> <div class="item br s-t3k6fc">',n(e,2),e.out+="</div></div></div>";else if(2===o)e.out+='<div class="grid s-t3k6fc"><div class="col s-t3k6fc"><div class="item square tl bl s-t3k6fc">',n(e,0),e.out+='</div></div> <div class="col s-t3k6fc"><div class="item square tr br s-t3k6fc">',n(e,1),e.out+="</div></div></div>";else if(1===o){const t=i&&l[0].aspectRatio;e.out+=`<div${B("class",`${U("single-item tl tr bl br"+(t?" is-standalone":""))} s-t3k6fc`)}${B("style",t?`aspect-ratio: ${t.width}/${t.height}`:"")}>`,n(e,0),e.out+=" ",t&&(e.out+='<div class="placeholder s-t3k6fc"></div>'),e.out+="</div>"}e.out+="</div>"}function se(e,t){const{post:a,embed:s,borderless:i,standalone:r,blur:l}=t,o=r&&s.aspectRatio,n=a&&I(a.author.did,Q(a.uri).rkey);function d(e){e.out+=`<img loading="lazy"${B("src",s.thumbnail)} alt=""${B("class",`${U("thumbnail"+(l?" is-blurred":""))} s-1azk58e`)}> `,o&&(e.out+='<div class="placeholder s-1azk58e"></div>'),e.out+=' <div class="play s-1azk58e"><svg class="icon s-1azk58e" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M22 12 5 2v20l17-10Z"></path></svg></div>'}r?(e.out+=`<a target="_blank"${B("href",n)}${B("class",`${U("video-embed"+(i?"":" is-bordered")+(r?" is-standalone":""))} s-1azk58e`)}><div class="constrainer s-1azk58e"${B("style",o?`aspect-ratio: ${o.width}/${o.height}`:"")}>`,d(e),e.out+="</div></a>"):(e.out+=`<div${B("class",`${U("video-embed"+(i?"":" is-bordered"))} s-1azk58e`)}${B("style",o?`aspect-ratio: ${o.width}/${o.height}`:"")}>`,d(e),e.out+="</div>")}const ie=e=>{if(e){if("app.bsky.embed.images#view"===e.$type)return e;if("app.bsky.embed.recordWithMedia#view"===e.$type)return ie(e.media)}},re=e=>{if(e){if("app.bsky.embed.video#view"===e.$type)return e;if("app.bsky.embed.recordWithMedia#view"===e.$type)return re(e.media)}};function le(e,t){e.out+=`<div class="message s-azdpbr">${_(t)}</div>`}function oe(e,t){const{post:a,embed:s,large:i=!1}=t;function r(e,t){!function(e,t){const{warning:a,children:s}=t;a?(e.out+=`<details class="content-hider s-q6x07m"><summary class="gate s-q6x07m"><svg class="icon s-q6x07m" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M11 11h1v5m9-4a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path><path fill="currentColor" stroke="currentColor" stroke-width=".5" d="M11.5 7.25h-.25v1.5h1.5v-1.5H11.5Z"></path></svg> <span class="label s-q6x07m">${_(a.name)}</span> <span class="action s-q6x07m"></span></summary> `,s(e),e.out+="</details>"):s(e)}(e,{warning:a&&E(a.labels,a.author.did),children:e=>{"app.bsky.embed.external#view"===t.$type?te(e,{embed:t}):"app.bsky.embed.images#view"===t.$type?ae(e,{embed:t,standalone:!0}):"app.bsky.embed.video#view"===t.$type?se(e,{post:a,embed:t,standalone:!0}):le(e,"Unsupported media embed")}})}function l(e,t){const a=t.record;if("app.bsky.embed.record#viewRecord"===a.$type)!function(e,t){const{embed:a,large:s=!1}=t,i=a.value,r=i.text.trim(),l=a.author,o=l.displayName?.trim(),n=a.embeds?.[0],d=ie(n),c=re(n),p=I(l.did,Q(a.uri).rkey),u=!!E(a.labels,l.did);e.out+=`<a target="_blank"${B("href",p)} class="quote-embed s-za6fip"><div class="meta s-za6fip"><div class="avatar-wrapper s-za6fip">`,l.avatar&&(e.out+=`<img loading="lazy"${B("src",l.avatar)} alt="" class="avatar s-za6fip">`),e.out+='</div> <span class="name-wrapper s-za6fip">',o&&(e.out+=`<bdi class="display-name-wrapper s-za6fip"><span class="display-name s-za6fip">${_(o)}</span></bdi>`),e.out+=` <span class="handle s-za6fip">@${_(l.handle)}</span></span> <span aria-hidden="true" class="dot s-za6fip">·</span> <time${B("datetime",i.createdAt)} class="date s-za6fip">${_(G(i.createdAt))}</time></div> `,r?(e.out+='<div class="body s-za6fip">',s||(d?(e.out+='<div class="aside s-za6fip">',ae(e,{embed:d,blur:u}),e.out+="</div>"):c&&(e.out+='<div class="aside s-za6fip">',se(e,{embed:c,blur:u}),e.out+="</div>")),e.out+=` <p class="text s-za6fip">${_(r)}</p></div>`):e.out+='<div class="divide s-za6fip"></div>',e.out+=" ",!s&&r||(d?ae(e,{embed:d,borderless:!0,blur:u}):c&&se(e,{embed:c,borderless:!0,blur:u})),e.out+="</a>"}(e,{embed:a,large:i});else if("app.bsky.feed.defs#generatorView"===a.$type)!function(e,t){const{embed:a}=t,s=a.creator,i=R(s.did,Q(a.uri).rkey);e.out+=`<a target="_blank"${B("href",i)} class="feed-embed s-156tlwp"><div class="main s-156tlwp"><div class="avatar-wrapper s-156tlwp">`,a.avatar?e.out+=`<img loading="lazy"${B("src",a.avatar)} alt="" class="avatar s-156tlwp">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-156tlwp"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-156tlwp">${_(a.displayName)}</p> <p class="creator s-156tlwp">Feed by @${_(s.handle)}</p></div></div> <p class="description s-156tlwp">${_(a.description)}</p></a>`}(e,{embed:a});else if("app.bsky.graph.defs#listView"===a.$type)!function(e,t){const{embed:a}=t,s=a.creator,i=R(s.did,Q(a.uri).rkey);e.out+=`<a target="_blank"${B("href",i)} class="list-embed s-6uize5"><div class="main s-6uize5"><div class="avatar-wrapper s-6uize5">`,a.avatar?e.out+=`<img loading="lazy"${B("src",a.avatar)} alt="" class="avatar s-6uize5">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-6uize5"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-6uize5">${_(a.name)}</p> <p class="creator s-6uize5">${_((e=>{switch(e){case"app.bsky.graph.defs#curatelist":return"User list";case"app.bsky.graph.defs#modlist":return"Moderation list"}return"Unknown list"})(a.purpose))} by @${_(s.handle)}</p></div></div> <p class="description s-6uize5">${_(a.description)}</p></a>`}(e,{embed:a});else if("app.bsky.graph.defs#starterPackViewBasic"===a.$type)!function(e,t){const{embed:a,large:s=!1}=t,i=a.record,r=a.creator,l=r.did,o=Q(a.uri).rkey,n=((e,t)=>`https://bsky.app/starter-pack/${e}/${t}`)(l,o);if(e.out+=`<a target="_blank"${B("href",n)} class="starterpack-embed s-15v965v">`,s){const t=((e,t)=>`https://ogcard.cdn.bsky.app/start/${e}/${t}`)(l,o);e.out+=`<img loading="lazy"${B("src",t)} alt="" class="banner s-15v965v">`}e.out+=` <div class="meta s-15v965v"><div class="main s-15v965v"><svg fill="none" viewBox="0 0 24 24" class="avatar s-15v965v"><defs><linearGradient id="a" x1="0" x2="100%" y1="0" y2="0" gradientTransform="rotate(45)"><stop offset="0" stop-color="#0A7AFF"></stop><stop offset="1" stop-color="#59B9FF"></stop></linearGradient></defs><path fill="url(#a)" fill-rule="evenodd" d="M11.26 5.227 5.02 6.899c-.734.197-1.17.95-.973 1.685l1.672 6.24c.197.734.951 1.17 1.685.973l6.24-1.672a1.376 1.376 0 0 0 .973-1.685L12.945 6.2a1.375 1.375 0 0 0-1.685-.973Zm-6.566.459a2.632 2.632 0 0 0-1.86 3.223l1.672 6.24a2.632 2.632 0 0 0 3.223 1.861l6.24-1.672a2.631 2.631 0 0 0 1.861-3.223l-1.672-6.24a2.632 2.632 0 0 0-3.223-1.861l-6.24 1.672Z" clip-rule="evenodd"></path><path fill="url(#a)" fill-rule="evenodd" d="M15.138 18.411a4.606 4.606 0 1 0 0-9.211 4.606 4.606 0 0 0 0 9.211Zm0 1.257a5.862 5.862 0 1 0 0-11.724 5.862 5.862 0 0 0 0 11.724Z" clip-rule="evenodd"></path></svg> <div class="info"><p class="name s-15v965v">${_(i.name)}</p> <p class="creator s-15v965v">Starter pack by @${_(r.handle)}</p></div></div> <p class="description s-15v965v">${_(i.description)}</p></div></a>`}(e,{embed:a,large:i});else{const t=(e=>{switch(e){case"app.bsky.feed.post":return"post";case"app.bsky.feed.generator":return"feed";case"app.bsky.graph.list":return"list";case"app.bsky.graph.starterpack":return"starter pack";case"app.bsky.labeler.service":return"labeler"}return null})(Q(a.uri).collection);le(e,t&&("app.bsky.embed.record#viewNotFound"===a.$type||"app.bsky.embed.record#viewBlocked"===a.$type||"app.bsky.embed.record#viewDetached"===a.$type)?`This ${t} is unavailable`:"Unsupported record embed")}}e.out+='<div class="embeds s-azdpbr">',"app.bsky.embed.recordWithMedia#view"===s.$type?(r(e,s.media),e.out+=" ",l(e,s.record)):"app.bsky.embed.record#view"===s.$type?l(e,s):r(e,s),e.out+="</div>"}function ne(e,t){const{text:a,facets:s,large:i}=t,r=C(a,s);e.out+=`<p${B("class",`${U("rich-text"+(i?" is-large":" is-small"))} s-1lecfnd`)}>`;for(let n=0,d=r.length;n<d;n++){let t=r[n];const a=(o=t.features,o?.find((e=>"app.bsky.richtext.facet#link"===e.$type||"app.bsky.richtext.facet#mention"===e.$type||"app.bsky.richtext.facet#tag"===e.$type)));a?"app.bsky.richtext.facet#link"===a.$type?e.out+=`<a target="_blank"${B("href",a.uri)} rel="noopener nofollow" class="link s-1lecfnd">${_(t.text)}</a>`:"app.bsky.richtext.facet#mention"===a.$type?e.out+=`<a target="_blank"${B("href",T(a.did))} class="mention s-1lecfnd">${_(t.text)}</a>`:"app.bsky.richtext.facet#tag"===a.$type&&(e.out+=`<a target="_blank"${B("href",(l=a.tag,`https://bsky.app/hashtag/${l}`))} class="hashtag s-1lecfnd">${_(t.text)}</a>`):e.out+=_(t.text)}var l,o;e.out+="</p>"}function de(e,t){const{post:a,parent:s,prev:i=!1}=t,r=a.author,l=T(r.did),o=r.displayName?.trim(),n=a.record,d=I(r.did,Q(a.uri).rkey),c=a.replyCount||0,p=a.likeCount||0,u=(a.repostCount||0)+(a.quoteCount||0),m=!!E(r.labels,r.did);if(e.out+=`<div class="highlighted-post s-hik11q"><div class="meta s-hik11q"><a${B("href",l)} target="_blank" class="avatar-wrapper s-hik11q">`,r.avatar&&(e.out+=`<img loading="lazy"${B("src",r.avatar)} alt=""${B("class",`${U("avatar"+(m?" is-blurred":""))} s-hik11q`)}>`),e.out+=`</a> <a${B("href",l)} target="_blank" class="name-wrapper s-hik11q">`,o&&(e.out+=`<bdi class="display-name-wrapper s-hik11q"><span class="display-name s-hik11q">${_(o)}</span></bdi>`),e.out+=` <span class="handle s-hik11q">@${_(r.handle)}</span></a> `,i||(e.out+='<svg class="logo s-hik11q" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg>'),e.out+="</div> ",!i&&n.reply){if(e.out+='<p class="context s-hik11q">',s){const t=s.author;e.out+=`Replying to <a target="_blank"${B("href",T(t.did))} dir="auto" class="s-hik11q">${_(t.displayName?.trim()||`@${t.handle}`)}</a>`}else e.out+="Replying to an unknown post";e.out+="</p>"}e.out+=" ",ne(e,{text:n.text,facets:n.facets,large:!0}),e.out+=" ",a.embed&&oe(e,{post:a,embed:a.embed,large:!0}),e.out+=` <time${B("datetime",n.createdAt)} class="date s-hik11q">${_(L(n.createdAt))}</time> <div class="stats s-hik11q"><span class="stat s-hik11q"${B("title",1===p?`${X(p)} like`:`${X(p)} likes`)}><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M12 5.768c6.162-6.25 16.725 5.358 0 14.732C-4.725 11.126 5.838-.482 12 5.768Z"></path></svg> <span>${_(K(p))}</span></span> <span class="stat s-hik11q"${B("title",1===u?`${X(u)} repost`:`${X(u)} reposts`)}><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="m17 3 3 3-3 3M7 21l-3-3 3-3m-2 3h15v-5M4 11V6h15"></path></svg> <span>${_(K(u))}</span></span> <div class="gap s-hik11q"></div> <a${B("href",d)} target="_blank" class="permalink s-hik11q"><span>${_(c?1===c?`Read ${K(c)} reply on Bluesky`:`Read ${K(c)} replies on Bluesky`:"View on Bluesky")}</span></a></div></div>`}function ce(e,t){const{post:a,parent:s,prev:i}=t,r=a.author,l=T(r.did),o=r.displayName?.trim(),n=a.record,d=I(r.did,Q(a.uri).rkey),c=!!E(r.labels,r.did);if(e.out+='<div class="post s-12mzi62">',i||(e.out+='<svg class="logo s-12mzi62" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg>'),e.out+=` <div class="aside s-12mzi62"><a target="_blank"${B("href",l)} class="avatar-wrapper s-12mzi62">`,r.avatar&&(e.out+=`<img loading="lazy"${B("src",r.avatar)} alt=""${B("class",`${U("avatar"+(c?" is-blurred":""))} s-12mzi62`)}>`),e.out+=`</a> <div class="line s-12mzi62"></div></div> <div class="main s-12mzi62"><div class="meta s-12mzi62"><a${B("href",l)} target="_blank" class="name-wrapper s-12mzi62">`,o&&(e.out+=`<bdi class="display-name-wrapper s-12mzi62"><span class="display-name s-12mzi62">${_(o)}</span></bdi>`),e.out+=` <span class="handle s-12mzi62">@${_(r.handle)}</span></a> <span aria-hidden="true" class="dot s-12mzi62">·</span> <a target="_blank"${B("href",d)}${B("title",L(n.createdAt))} class="date s-12mzi62"><time${B("datetime",n.createdAt)}>${_(G(n.createdAt))}</time></a></div> `,!i&&n.reply){if(e.out+='<p class="context s-12mzi62">',s){const t=s.author;e.out+=`Replying to <a target="_blank"${B("href",T(t.did))} dir="auto" class="s-12mzi62">${_(t.displayName?.trim()||`@${t.handle}`)}</a>`}else e.out+="Replying to an unknown post";e.out+="</p>"}e.out+=" ",ne(e,{text:n.text,facets:n.facets}),e.out+=" ",a.embed&&oe(e,{post:a,embed:a.embed}),e.out+="</div></div>"}function pe(e,t){S(e,{children:e=>{e.out+=`<div class="message s-1q9cbx0">${_(t)}</div>`}})}function ue(e,t){const{thread:a,contextless:s,allowUnauthenticated:i}=t,r=!i&&null!==a&&"app.bsky.feed.defs#threadViewPost"===a.$type&&a.post.author.labels?.some((e=>"!no-unauthenticated"===e.val));if(null===a)pe(e,"The post can't be found, it may have been deleted.");else if(r)pe(e,"The author has requested for their posts to not be displayed on external sites.");else{const t=((e,t,a)=>{const s=[];let i=0,r=t?1:2,l=e;for(;l&&"app.bsky.feed.defs#notFoundPost"!==l.$type&&"app.bsky.feed.defs#blockedPost"!==l.$type;){const e=l.post;if(0!==i&&(s[i-1].parent=e),++i>r)break;const t=e.author;if(!a&&t.labels?.some((e=>"!no-unauthenticated"===e.val)))break;s.push({post:e,parent:null}),l=l.parent}return s.reverse()})(a,s,i);S(e,{children:e=>{const a=t;for(let s=0,i=a.length;s<i;s++){let{post:i,parent:r}=a[s];const l=0!==s;s===t.length-1?de(e,{post:i,parent:r,prev:l}):ce(e,{post:i,parent:r,prev:l})}}})}}const me=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),fe=/^at:\/\/((?:did:[a-zA-Z0-9._:%-]+)|(?:[a-zA-Z0-9][a-zA-Z0-9-.]*))(?:\/([a-zA-Z0-9.-]+)(?:\/([a-zA-Z0-9_~.:-]{1,512}))?)?\/?(?:\?([^#\s]*))?(?:#([^\s]*))?$/;class he extends Error{}var ve=r("<bluesky-post><!></bluesky-post>",2);function be(r,o){e(o,!0);var n=ve(),d=l(n);g(d,(()=>function(e,t){const a={out:""};return ue(a,t?.props??{}),{head:"",body:a.out}}(0,{props:o.data}).body)),t((()=>a(n,"src",o.data.thread?.post.uri))),s(r,n),i()}var ke=r('Doing server-side rendering? Check out examples for <a href="https://github.com/mary-ext/bluesky-embed-astro">Astro</a> and <a href="https://github.com/mary-ext/bluesky-embed-sveltekit">SvelteKit</a>.',1),ye=r("<li><p>Insert the following scripts and stylesheets to the <code>&lt;head&gt;</code> of your website.</p> <!></li> <li><p>Insert the following markup in wherever you want the post to be.</p> <!></li>",1),$e=r("<!> <!>",1),ge=r("<!> <!>",1);function we(a,r){let g;e(r,!0);const C=b((()=>{g?.abort(),g=new AbortController;const e=g.signal;return(async e=>{const t=new k({handler:y({service:e.serviceUri??"https://public.api.bsky.app"})}),a=e.contextless??!1,{data:s}=await t.get("app.bsky.feed.getPostThread",{signal:e.signal,params:{uri:e.uri,parentHeight:a?1:2,depth:0}}).catch((e=>e instanceof $&&"NotFound"===e.kind?{data:null}:Promise.reject(e)));return{thread:"app.bsky.feed.defs#threadViewPost"===s?.thread.$type?s.thread:null,contextless:a,allowUnauthenticated:e.allowUnauthenticated??!1}})({uri:`at://${r.matched.author}/app.bsky.feed.post/${r.matched.rkey}`,signal:e})}));w((()=>{g?.abort()}));const M="https://cdn.jsdelivr.net/npm/bluesky-post-embed@^1.0.0",N=()=>`\x3c!-- Core web component and styling --\x3e\n<script type="module" src="${M}/+esm"><\/script>\n<link rel="stylesheet" href="${M}/dist/core.min.css">\n\n\x3c!-- Built-in themes --\x3e\n<link rel="stylesheet" href="${M}/themes/light.min.css" media="(prefers-color-scheme: light)">\n<link rel="stylesheet" href="${M}/themes/dim.min.css" media="(prefers-color-scheme: dark)">\n\n\x3c!-- Fallback/placeholder elements if JS script is taking a while to load or is failing --\x3e\n<style>\n .bluesky-post-fallback {\n margin: 16px 0;\n border-left: 3px solid var(--divider);\n padding: 4px 8px;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n }\n .bluesky-post-fallback p {\n margin: 0 0 8px 0;\n }\n</style>\n`,_=e=>{const t=e.author,a=e.record;return`<bluesky-post src="${F(e.uri)}">\n <blockquote class="bluesky-post-fallback">\n <p dir="auto">${F(a.text)}</p>\n — ${t.displayName?.trim()?`${F(t.displayName)} (@${F(t.handle)})`:`@${F(t.handle)}`}\n <a href="${F(((e,t)=>`https://bsky.app/profile/${e}/post/${t}`)(t.did,(e=>{const t=fe.exec(e);if(!t)throw new he(`invalid at-uri: ${e}`);return{repo:t[1],collection:t[2]??"",rkey:t[3]??"",query:t[4]??"",fragment:t[5]??""}})(e.uri).rkey))}">${(e=>{const t=new Date(e);return isNaN(t.getTime())?"N/A":me.format(t)})(e.indexedAt)}</a>\n </blockquote>\n</bluesky-post>\n`};var B=o(),U=n(B);d(U,(()=>m(C)),(e=>{v(e,{})}),((e,t)=>{var a=ge(),i=n(a);be(i,{get data(){return m(t)}});var r=f(i,2),o=e=>{x(e,{title:"How do I embed this to my website?",children:(e,a)=>{var i=$e(),r=n(i);c(r,{type:"inform",children:(e,t)=>{Z();var a=ke();Z(4),s(e,a)},$$slots:{default:!0}});var o=f(r,2);z(o,{children:(e,a)=>{var i=ye(),r=n(i),o=f(l(r),2),d=b(N);q(o,{get code(){return m(d)}}),A(r);var c=f(r,2),p=f(l(c),2),u=b((()=>_(m(t).thread.post)));q(p,{get code(){return m(u)}}),A(c),s(e,i)},$$slots:{default:!0}}),s(e,i)},$$slots:{default:!0}})};h(r,(e=>{m(t).thread&&e(o)})),s(e,a)}),((e,a)=>{c(e,{type:"alert",children:(e,i)=>{Z();var r=p();t((()=>u(r,""+m(a)))),s(e,r)},$$slots:{default:!0}})})),s(a,B),i()}export{we as default};
+1
assets/PostDisplay-DSWrue0t.css
··· 1 + .bluesky-embed.s-3olstj{position:relative;box-sizing:border-box;margin:0 auto;border:1px solid var(--divider);border-radius:8px;background:var(--background-primary);min-width:250px;max-width:550px;overflow:hidden;color:var(--text-primary);font-weight:400;font-size:calc(var(--font-size) * .875);line-height:calc(var(--font-size) * 1.25);font-family:var(--font-family);:where(*),:where(*:before),:where(*:after){box-sizing:border-box;margin:0;padding:0}:where(a){color:inherit;text-decoration:none}:where(.icon){flex-shrink:0;width:1em;height:1em}}.gate.s-q6x07m{display:flex;align-items:center;gap:12px;cursor:pointer;border:1px solid var(--divider);border-radius:6px;padding:0 12px;height:44px;.content-hider[open]:where(.s-q6x07m) &{margin-bottom:12px}&:hover{border-color:var(--divider-hover)}}.icon.s-q6x07m{width:18px;height:18px;color:var(--text-secondary)}.label.s-q6x07m{flex-grow:1;overflow:hidden;font-weight:500;user-select:none;text-overflow:ellipsis}.action.s-q6x07m{color:var(--text-link);font-weight:500;font-size:calc(var(--font-size) * .8125);line-height:calc(var(--font-size) * 1.25);&:before{content:"Show"}.content-hider[open]:where(.s-q6x07m) &:before{content:"Hide"}}.external-embed.s-rtbqd8{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.thumbnail.s-rtbqd8{display:block;background:#000;aspect-ratio:1.91;width:100%}.meta.s-rtbqd8{padding:12px}.title.s-rtbqd8{display:-webkit-box;overflow:hidden;font-weight:700;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.description.s-rtbqd8{display:-webkit-box;overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.domain.s-rtbqd8{display:flex;align-items:center;gap:6px;margin:6px 0 0;color:var(--text-secondary);font-weight:500;font-size:calc(var(--font-size) * .75)}.feed-embed.s-156tlwp{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-156tlwp{display:flex;gap:12px}.avatar-wrapper.s-156tlwp{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-156tlwp{width:100%;height:100%;object-fit:cover}.name.s-156tlwp{font-weight:700}.creator.s-156tlwp{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-156tlwp{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.is-aligned.s-t3k6fc{align-self:baseline;max-width:100%}.grid.s-t3k6fc{display:flex;gap:2px}.col.s-t3k6fc{display:flex;flex:1;flex-direction:column;gap:2px}.square.s-t3k6fc{aspect-ratio:1}.wide.s-t3k6fc{aspect-ratio:1.5}.item.s-t3k6fc{position:relative;flex-grow:1;flex-shrink:0;overflow:hidden}.is-bordered.s-t3k6fc{.tl:where(.s-t3k6fc),.tr:where(.s-t3k6fc),.bl:where(.s-t3k6fc),.br:where(.s-t3k6fc){border:1px solid var(--divider)}.tl:where(.s-t3k6fc){border-top-left-radius:6px}.tr:where(.s-t3k6fc){border-top-right-radius:6px}.bl:where(.s-t3k6fc){border-bottom-left-radius:6px}.br:where(.s-t3k6fc){border-bottom-right-radius:6px}}.single-item.s-t3k6fc{position:relative;aspect-ratio:16 / 9;overflow:hidden;.image:where(.s-t3k6fc){object-fit:contain}}.is-standalone.s-t3k6fc{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.image.s-t3k6fc{position:absolute;inset:0;background:#000;width:100%;height:100%;object-fit:cover;font-size:0px}.is-blurred.s-t3k6fc{scale:125%;filter:blur(24px)}.placeholder.s-t3k6fc{width:100vw;height:100vh}.list-embed.s-6uize5{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-6uize5{display:flex;gap:12px}.avatar-wrapper.s-6uize5{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-6uize5{width:100%;height:100%;object-fit:cover}.name.s-6uize5{font-weight:700}.creator.s-6uize5{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-6uize5{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.video-embed.s-1azk58e{display:block;position:relative;background:#000;aspect-ratio:16 / 9;overflow:hidden}.is-bordered.s-1azk58e{border:1px solid var(--divider);border-radius:6px}.is-standalone.s-1azk58e{align-self:baseline;aspect-ratio:auto;max-width:100%}.constrainer.s-1azk58e{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.thumbnail.s-1azk58e{width:100%;height:100%;object-fit:contain}.is-blurred.s-1azk58e{scale:125%;filter:blur(24px)}.placeholder.s-1azk58e{width:100vw;height:100vh}.play.s-1azk58e{display:grid;position:absolute;top:50%;left:50%;place-items:center;translate:-50% -50%;border-radius:50%;background:#40404099;aspect-ratio:1 / 1;height:40%;max-height:48px;color:#fff;font-size:20px;.icon:where(.s-1azk58e){width:40%;height:40%}.is-standalone:where(.s-1azk58e) &:hover{background:#404040cc}}.quote-embed.s-za6fip{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.meta.s-za6fip{display:flex;padding:12px 12px 0;color:var(--text-secondary);.avatar-wrapper:where(.s-za6fip){flex-shrink:0;margin:0 8px 0 0;border-radius:9999px;background:var(--background-secondary);width:20px;height:20px;overflow:hidden}.avatar:where(.s-za6fip){width:100%;height:100%}.name-wrapper:where(.s-za6fip){display:flex;gap:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-za6fip){overflow:hidden;text-overflow:ellipsis}.display-name:where(.s-za6fip){color:var(--text-primary);font-weight:700}.handle:where(.s-za6fip){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-za6fip){flex-shrink:0;margin:0 6px}.date:where(.s-za6fip){white-space:nowrap}}.body.s-za6fip{display:flex;align-items:flex-start}.aside.s-za6fip{flex-grow:1;flex-basis:0;margin:8px 0 12px 12px;max-width:20%}.text.s-za6fip{display:-webkit-box;margin:8px 12px 12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;flex-grow:4;flex-basis:0px;min-width:0px;white-space:pre-wrap;overflow-wrap:break-word}.divide.s-za6fip{padding:6px 0}.starterpack-embed.s-15v965v{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.banner.s-15v965v{display:block;aspect-ratio:1.91;width:100%}.meta.s-15v965v{display:flex;flex-direction:column;gap:12px;padding:12px}.main.s-15v965v{display:flex;gap:12px}.avatar.s-15v965v{margin:2px;width:36px;height:36px}.name.s-15v965v{font-weight:700}.creator.s-15v965v{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-15v965v{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.embeds.s-azdpbr{display:flex;flex-direction:column;gap:12px;margin:12px 0 0}.message.s-azdpbr{border:1px solid var(--divider);border-radius:6px;padding:12px;color:var(--text-secondary)}.rich-text.s-1lecfnd{overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;&:empty{display:none}}.is-large.s-1lecfnd{font-size:calc(var(--font-size) * 1);line-height:calc(var(--font-size) * 1.5)}.link.s-1lecfnd,.mention.s-1lecfnd,.hashtag.s-1lecfnd{color:var(--text-link);&:hover{text-decoration:underline}}.highlighted-post.s-hik11q{padding:16px}.meta.s-hik11q{display:flex;align-items:center;gap:12px;margin:0 0 12px;color:var(--text-secondary)}.avatar-wrapper.s-hik11q{display:block;flex-shrink:0;border-radius:9999px;background:var(--background-secondary);width:40px;height:40px;overflow:hidden;&:hover{filter:brightness(.85)}}.avatar.s-hik11q{width:100%;height:100%;object-fit:cover}.is-blurred.s-hik11q{scale:125%;filter:blur(4px)}.name-wrapper.s-hik11q{display:block;flex-grow:1;max-width:100%;overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper.s-hik11q{overflow:hidden;text-overflow:ellipsis;.name-wrapper:where(.s-hik11q):hover &{text-decoration:underline}}.display-name.s-hik11q{color:var(--text-primary);font-weight:700}.handle.s-hik11q{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logo.s-hik11q{width:32px;height:32px}.context.s-hik11q{overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);text-overflow:ellipsis;white-space:nowrap;a:where(.s-hik11q){color:inherit;font-weight:500;&:hover{text-decoration:underline}}}.date.s-hik11q{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;border-bottom:1px solid var(--divider);padding:0 0 12px;color:var(--text-secondary)}.stats.s-hik11q{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 -16px;padding:12px 0;color:var(--text-secondary);.gap:where(.s-hik11q){flex:1 1 auto}.permalink:where(.s-hik11q){display:flex;align-items:center;gap:4px;color:var(--text-link);font-weight:700;&:hover{text-decoration:underline}}}.stat.s-hik11q{display:flex;align-items:center;gap:8px;font-weight:500}.post.s-12mzi62{display:flex;position:relative;gap:12px;padding:12px 16px 0}.logo.s-12mzi62{position:absolute;top:12px;right:12px;width:24px;height:24px}.aside.s-12mzi62{flex-shrink:0}.avatar-wrapper.s-12mzi62{display:block;border-radius:9999px;background:var(--background-secondary);width:40px;height:40px;overflow:hidden;&:hover{filter:brightness(.85)}}.avatar.s-12mzi62{width:100%;height:100%;object-fit:cover}.is-blurred.s-12mzi62{scale:125%;filter:blur(4px)}.line.s-12mzi62{position:absolute;top:56px;bottom:-12px;left:35px;border-left:2px solid var(--divider)}.main.s-12mzi62{display:flex;flex-grow:1;flex-direction:column;min-width:0px}.meta.s-12mzi62{display:flex;align-items:center;margin:0 0 2px;padding:0 32px 0 0;color:var(--text-secondary);.name-wrapper:where(.s-12mzi62){display:flex;gap:4px;max-width:100%;overflow:hidden;color:inherit;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-12mzi62){overflow:hidden;text-overflow:ellipsis;.name-wrapper:where(.s-12mzi62):hover &{text-decoration:underline}}.display-name:where(.s-12mzi62){color:var(--text-primary);font-weight:700}.handle:where(.s-12mzi62){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-12mzi62){flex-shrink:0;margin:0 6px}.date:where(.s-12mzi62){color:inherit;text-decoration:none;white-space:nowrap;&:hover{text-decoration:underline}}}.context.s-12mzi62{overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);text-overflow:ellipsis;white-space:nowrap;a:where(.s-12mzi62){color:inherit;font-weight:500;&:hover{text-decoration:underline}}}.message.s-1q9cbx0{margin:0 auto;padding:32px 16px;max-width:380px;color:var(--text-secondary);text-align:center}
+1
assets/ProfileCardDisplay-D4FwjqsR.css
··· 1 + .bluesky-embed.s-dgn7w7{position:relative;box-sizing:border-box;margin:0 auto;border:1px solid var(--divider);border-radius:8px;background:var(--background-primary);min-width:250px;max-width:550px;overflow:hidden;color:var(--text-primary);font-weight:400;font-size:calc(var(--font-size) * .875);line-height:calc(var(--font-size) * 1.25);font-family:var(--font-family);:where(*),:where(*:before),:where(*:after){box-sizing:border-box;margin:0;padding:0}:where(a){color:inherit;text-decoration:none}:where(.icon){flex-shrink:0;width:1em;height:1em}}.rich-text.s-1ea7h2m{overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;&:empty{display:none}}.link.s-1ea7h2m,.mention.s-1ea7h2m,.hashtag.s-1ea7h2m{color:var(--text-link);&:hover{text-decoration:underline}}.profile-card.s-2b3fq6{display:flex;flex-direction:column}.is-blurred.s-2b3fq6{scale:125%;filter:blur(4px)}.banner-wrapper.s-2b3fq6{background:var(--background-secondary);aspect-ratio:3 / 1;overflow:hidden}.banner.s-2b3fq6{width:100%;height:100%;object-fit:cover}.contents.s-2b3fq6{display:flex;position:relative;flex-direction:column;gap:8px;padding:12px 16px 16px}.logo.s-2b3fq6{width:24px;height:24px}.header.s-2b3fq6{display:flex;justify-content:space-between;align-items:end}.actions.s-2b3fq6{display:flex;align-items:center;gap:16px}.avatar-wrapper.s-2b3fq6{display:block;flex-shrink:0;outline:2px solid var(--background-primary);border-radius:9999px;background:var(--background-secondary);width:90px;height:90px;overflow:hidden;.has-banner:where(.s-2b3fq6) &{margin-top:-56px}}.avatar.s-2b3fq6{width:100%;height:100%;object-fit:cover;.avatar-wrapper:where(.s-2b3fq6):hover &{filter:brightness(.85);&.is-blurred{filter:brightness(.85) blur(4px)}}}.follow-button.s-2b3fq6{display:flex;align-items:center;gap:6px;border-radius:9999px;background:var(--button);padding:9px 12px;color:var(--button-text);font-weight:600;font-size:calc(var(--font-size) * .8125);line-height:calc(var(--font-size) * 1);user-select:none;.icon:where(.s-2b3fq6){font-size:16px}&:hover{background:var(--button-hover)}}.display-name.s-2b3fq6{font-weight:700;font-size:calc(var(--font-size) * 1.25);line-height:calc(var(--font-size) * 1.75);overflow-wrap:break-word}.handle.s-2b3fq6{color:var(--text-secondary);overflow-wrap:break-word}.stats.s-2b3fq6{display:flex;flex-wrap:wrap;gap:20px;min-width:0}.stat-entry.s-2b3fq6{color:var(--text-secondary)}.stat-count.s-2b3fq6{color:var(--text-primary);font-weight:700}.message.s-ibmh3w{margin:0 auto;padding:32px 16px;max-width:380px;color:var(--text-secondary);text-align:center}
+1
assets/ProfileCardDisplay-DKmfi7Ri.js
··· 1 + import{p as e,t,s,a,b as n,c as r,d as l,e as o,f as i,g as c,B as p,h as d,i as u,j as f,k as h,m,l as b,C as g}from"./index-xYaDyaLn.js";import{X as w,s as y,a as v,h as $,o as k,n as x,G as q,b as C,C as F,r as I,e as N}from"./GuideInstructions-lu6IsfjL.js";const A=/^[@@]([a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*(?:\.[a-zA-Z]{2,}))($|\s|\p{P})/u,P=/^(?:#(?!\ufe0f|\u20e3)|#)([\p{N}]*[\p{L}\p{M}\p{Pc}][\p{L}\p{M}\p{Pc}\p{N}]*)($|\s|\p{P})/u,B=/^:([\w-]+):/,U=/^https?:\/\/[\S]+/,_=/(?:(?<!\(.*)\))?[.,;]*$/,j=/^\[((?:\[(?:\\.|[^\[\]\\])*\]|\\.|[^\[\]\\])*?)\]\((.*?)\)/,z=/^\\([@@#:\\\[])/,S=/^.+?(?:(?=$|[:\\\[]|https?:\/\/)|(?<=\s|[(){}\/\\\[\]\-|:;'".,=+])(?=[@@##]))/s,M=e=>{const t=A.exec(e);if(t&&"@"!==t[2]){const e=t[2].length;return{type:"mention",raw:e>0?t[0].slice(0,-e):t[0],handle:t[1]}}},Z=e=>{const t=P.exec(e);if(t&&"#"!==t[2]){const e=t[2].length;return{type:"topic",raw:e>0?t[0].slice(0,-e):t[0],name:t[1]}}},G=e=>{const t=B.exec(e);if(t)return{type:"emote",raw:t[0],name:t[1]}},H=e=>{const t=U.exec(e);if(t){const e=t[0].replace(_,"");return{type:"autolink",raw:e,url:e}}},L=e=>{const t=j.exec(e);if(t)return{type:"link",raw:t[0],text:t[1],url:t[2]}},T=e=>{const t=z.exec(e);if(t)return{type:"escape",raw:t[0],escaped:t[1]}},E=e=>{const t=S.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}},R=/[&"<]/g,X=/[&<]/g;function D(e,t){const s=String(e??""),a=t?R:X;a.lastIndex=0;let n="",r=0;for(;a.test(s);){const e=a.lastIndex-1,t=s[e];n+=s.substring(r,e)+("&"===t?"&amp;":'"'===t?"&quot;":"&lt;"),r=e+1}return n+s.substring(r)}function J(e,t,s=!1){if(null==t||!t&&s||""===t&&"class"===e)return"";return` ${e}${s?"":`="${D(t,!0)}"`}`}function K(e){return"string"==typeof e?e:null==e?"":e+""}function O(e,t){const{children:s}=t;e.out+='<div class="bluesky-embed s-dgn7w7">',s(e),e.out+="</div>"}const Q=e=>`https://bsky.app/profile/${e}`,V={"!hide":{name:"Hidden by moderators",flags:1},"!warn":{name:"Content warning",flags:1},porn:{name:"Adult content",flags:0},sexual:{name:"Sexually suggestive",flags:0},"graphic-media":{name:"Graphic media",flags:0},nudity:{name:"Nudity",flags:0}},W=new Intl.NumberFormat("en-US"),Y=new Intl.NumberFormat("en-US",{notation:"compact"}),ee=e=>e<1e3?""+e:e<1e5?W.format(e):Y.format(e),te=/^https?:\/\//;function se(e,t){const{text:s}=t,a=(e=>{const t=[];let s,a;for(;e;)if(s=a,a=T(e)||H(e)||M(e)||Z(e)||G(e)||L(e))e=e.slice(a.raw.length),t.push(a);else if(a=E(e))e=e.slice(a.raw.length),s&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text,a=s):t.push(a);else if(e)throw new Error("infinite loop encountered");return t})(s);e.out+='<p class="rich-text is-small s-1ea7h2m">';for(let r=0,l=a.length;r<l;r++){let t=a[r];"autolink"===t.type?e.out+=`<a target="_blank"${J("href",t.url)} rel="noopener nofollow" class="link s-1ea7h2m">${D(t.raw.replace(te,""))}</a>`:"mention"===t.type?e.out+=`<a target="_blank"${J("href",Q(t.handle))} class="mention s-1ea7h2m">${D(t.raw)}</a>`:"topic"===t.type?e.out+=`<a target="_blank"${J("href",(n=t.name,`https://bsky.app/hashtag/${n}`))} class="hashtag s-1ea7h2m">${D(t.raw)}</a>`:e.out+=D(t.raw)}var n;e.out+="</p>"}function ae(e,t){const{profile:s}=t,a=Q(s.did),n=((e,t)=>{if(e?.length)for(let s=0,a=e.length;s<a;s++){const a=e[s],n=a.val;if(!(n in V))continue;const r=V[n];if(!(1&r.flags&&a.src===t))return r}})(s.labels,s.did);e.out+='<div class="profile-card has-banner s-2b3fq6"><div class="banner-wrapper s-2b3fq6">',s.banner&&(e.out+=`<img loading="lazy"${J("src",s.banner)} alt=""${J("class",`${K("banner"+(n?" is-blurred":""))} s-2b3fq6`)}>`),e.out+=`</div> <div class="contents s-2b3fq6"><div class="header s-2b3fq6"><a${J("href",a)} target="_blank" class="avatar-wrapper s-2b3fq6">`,s.avatar&&(e.out+=`<img loading="lazy"${J("src",s.avatar)} alt=""${J("class",`${K("avatar"+(n?" is-blurred":""))} s-2b3fq6`)}>`),e.out+=`</a> <div class="actions s-2b3fq6"><a${J("href",a)} target="_blank" class="follow-button s-2b3fq6"><svg class="icon s-2b3fq6" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M12 4v8m0 0v8m0-8H4m8 0h8"></path></svg> <span>Follow</span></a> <svg class="logo s-2b3fq6" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg></div></div> <div class="name-wrapper"><p dir="auto" class="display-name s-2b3fq6">${D(s.displayName?.trim()||s.handle.slice(0,64))}</p> <p class="handle s-2b3fq6">@${D(s.handle)}</p></div> <div class="stats s-2b3fq6"><span class="stat-entry s-2b3fq6"><span class="stat-count s-2b3fq6">${D(ee(s.followersCount||0))}</span> <span>${D(1===s.followersCount?"Follower":"Followers")}</span></span> <span class="stat-entry s-2b3fq6"><span class="stat-count s-2b3fq6">${D(ee(s.followsCount||0))}</span> <span>Following</span></span></div> `,s.description?.trim()&&se(e,{text:s.description}),e.out+="</div></div>"}function ne(e,t){O(e,{children:e=>{e.out+=`<div class="message s-ibmh3w">${D(t)}</div>`}})}function re(e,t){const{profile:s,allowUnauthenticated:a}=t,n=!a&&s?.labels?.some((e=>"!no-unauthenticated"===e.val));null===s?ne(e,"The profile can't be found, it may have been deleted."):n?ne(e,"The user has requested for their profile to not be displayed on external sites."):O(e,{children:e=>{ae(e,{profile:s})}})}var le=r("<bluesky-profile-card><!></bluesky-profile-card>",2);function oe(r,o){e(o,!0);var i=le(),c=l(i);$(c,(()=>function(e,t){const s={out:""};return re(s,t?.props??{}),{head:"",body:s.out}}(0,{props:o.data}).body)),t((()=>s(i,"actor",o.data.profile?.did))),a(r,i),n()}var ie=r("<li><p>Insert the following scripts and stylesheets to the <code>&lt;head&gt;</code> of your website.</p> <!></li> <li><p>Insert the following markup in wherever you want the profile feed to be.</p> <!></li>",1),ce=r("<!> <!>",1);function pe(s,r){let $;e(r,!0);const A=m((()=>{$?.abort(),$=new AbortController;const e=$.signal;return(async e=>{const t=e.actor,s=e.allowUnauthenticated??!1,a=new w({handler:y({service:e.serviceUri??"https://public.api.bsky.app"})}),{data:n}=await a.get("app.bsky.actor.getProfile",{signal:e.signal,params:{actor:t}}).catch((e=>e instanceof v&&"InvalidRequest"===e.kind&&"Profile not found"===e.description?{data:null}:Promise.reject(e)));return{profile:n,allowUnauthenticated:s}})({actor:r.matched.actor,signal:e})}));k((()=>{$?.abort()}));const P=()=>{const e="https://cdn.jsdelivr.net/npm/bluesky-profile-card-embed@^1.0.0";return`\x3c!-- Core web component and styling --\x3e\n<script type="module" src="${e}/+esm"><\/script>\n<link rel="stylesheet" href="${e}/dist/core.min.css">\n\n\x3c!-- Built-in themes --\x3e\n<link rel="stylesheet" href="${e}/themes/light.min.css" media="(prefers-color-scheme: light)">\n<link rel="stylesheet" href="${e}/themes/dim.min.css" media="(prefers-color-scheme: dark)">\n`};var B=o(),U=i(B);c(U,(()=>f(A)),(e=>{g(e,{})}),((e,t)=>{var s=ce(),n=i(s);oe(n,{get data(){return f(t)}});var r=h(n,2),o=e=>{q(e,{title:"How do I embed this to my website?",children:(e,s)=>{C(e,{children:(e,s)=>{var n=ie(),r=i(n),o=h(l(r),2),c=m(P);F(o,{get code(){return f(c)}}),I(r);var p=h(r,2),d=h(l(p),2),u=m((()=>(e=>{const t=`https://bsky.app/profile/${e.did}`;return`<bluesky-profile-card actor="${N(e.did)}">\n <a target="_blank" href="${N(t)}" class="bluesky-profile-card-fallback">\n ${e.displayName?.trim()?`Follow ${N(e.displayName)} (@${N(e.handle)}) on Bluesky`:`Follow @${N(e.handle)} on Bluesky`}\n </a>\n</bluesky-profile-card>\n`})(f(t).profile)));F(d,{get code(){return f(u)}}),I(p),a(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};b(r,(e=>{f(t).profile&&e(o)})),a(e,s)}),((e,s)=>{p(e,{type:"alert",children:(e,n)=>{x();var r=d();t((()=>u(r,""+f(s)))),a(e,r)},$$slots:{default:!0}})})),a(s,B),n()}export{pe as default};
+1
assets/ProfileFeedDisplay-283HcGVb.js
··· 1 + import{p as e,t as s,s as a,a as t,b as i,c as l,d as r,e as o,f as d,g as n,B as c,h as p,i as u,j as v,k as f,m,l as h,C as b}from"./index-xYaDyaLn.js";import{X as y,s as k,a as $,h as g,o as w,n as x,G as j,b as Z,C as M,r as F,e as _}from"./GuideInstructions-lu6IsfjL.js";import{s as q}from"./index-Cr8Vao8y.js";const A=/[&"<]/g,C=/[&<]/g;function z(e,s){const a=String(e??""),t=s?A:C;t.lastIndex=0;let i="",l=0;for(;t.test(a);){const e=t.lastIndex-1,s=a[e];i+=a.substring(l,e)+("&"===s?"&amp;":'"'===s?"&quot;":"&lt;"),l=e+1}return i+a.substring(l)}function B(e,s,a=!1){if(null==s||!s&&a||""===s&&"class"===e)return"";return` ${e}${a?"":`="${z(s,!0)}"`}`}function N(e){return"string"==typeof e?e:null==e?"":e+""}const U="!no-unauthenticated";function P(e,s){const{children:a}=s;e.out+='<div class="bluesky-embed s-1pz15a1">',a(e),e.out+="</div>"}const I=e=>`https://bsky.app/profile/${e}`,R=(e,s)=>`https://bsky.app/profile/${e}/post/${s}`,T=(e,s)=>`https://bsky.app/profile/${e}/feed/${s}`;let S=0,V=0;const L=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),D=new Intl.DateTimeFormat("en-US",{dateStyle:"medium"}),H=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}),G=e=>{const s=new Date(e),a=s.getTime();if(isNaN(a))return"N/A";const t=Date.now();if(t>V){const e=new Date(t);e.setMonth(0,1),e.setHours(0,0,0),S=e.getTime(),e.setFullYear(e.getFullYear()+1,0,0),e.setHours(23,59,59,999),V=e.getTime()}return a>=S&&a<=V?H.format(s):D.format(s)},W=/^at:\/\/((?:did:[a-zA-Z0-9._:%-]+)|(?:[a-zA-Z0-9][a-zA-Z0-9-.]*))(?:\/([a-zA-Z0-9.-]+)(?:\/([a-zA-Z0-9_~.:-]{1,512}))?)?\/?(?:\?([^#\s]*))?(?:#([^\s]*))?$/,Y=e=>{const s=W.exec(e);if(!s)throw new E(`invalid at-uri: ${e}`);return{repo:s[1],collection:s[2]??"",rkey:s[3]??"",query:s[4]??"",fragment:s[5]??""}};class E extends Error{}const X=new Intl.NumberFormat("en-US"),J=new Intl.NumberFormat("en-US",{notation:"compact"}),K=e=>e<1e3?""+e:e<1e5?X.format(e):J.format(e),O=e=>X.format(e);function Q(e,s){const{embed:a}=s,t=a.external,i=(e=>{let s;if("parse"in URL)s=URL.parse(e);else try{s=new URL(e)}catch{}return!s||"https:"!==s.protocol&&"http:"!==s.protocol?null:s})(t.uri)?.host;e.out+=`<a target="_blank"${B("href",i&&t.uri)} rel="noopener noreferrer nofollow" class="external-embed s-au8a8u">`,t.thumb&&(e.out+=`<img loading="lazy"${B("src",t.thumb)} alt="" class="thumbnail s-au8a8u">`),e.out+=` <div class="meta s-au8a8u"><p class="title s-au8a8u">${z(t.title)}</p> <p class="description s-au8a8u">${z(t.description)}</p> `,i&&(e.out+=`<div class="domain s-au8a8u"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="m4.172 8.07 3.94 2.957.977-1.941 3.887-.978 1.15-4.6M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-6.078 4.865.973-1.946-2.869-1.928-1.89-.12-1.08 1.075 1.947 2.919h2.919Z"></path></svg> <span class="domain-name">${z(i)}</span></div>`),e.out+="</div></a>"}function ee(e,s){e.out+=`<img loading="lazy"${B("src",s.thumb)}${B("alt",s.alt)} class="image s-1d339cy">`}function se(e,s){const{embed:a,borderless:t,standalone:i}=s,l=a.images,r=l.length;if(e.out+=`<div${B("class",`${N("image-embed"+(t?"":" is-bordered")+(i&&1===r?" is-aligned":""))} s-1d339cy`)}>`,4===r)e.out+='<div class="grid s-1d339cy"><div class="col s-1d339cy"><div class="item wide s-1d339cy">',ee(e,l[0]),e.out+='</div> <div class="item wide s-1d339cy">',ee(e,l[1]),e.out+='</div></div> <div class="col s-1d339cy"><div class="item wide s-1d339cy">',ee(e,l[2]),e.out+='</div> <div class="item wide s-1d339cy">',ee(e,l[3]),e.out+="</div></div></div>";else if(3===r)e.out+='<div class="grid s-1d339cy"><div class="col square s-1d339cy"><div class="item s-1d339cy">',ee(e,l[0]),e.out+='</div></div> <div class="col square s-1d339cy"><div class="item s-1d339cy">',ee(e,l[1]),e.out+='</div> <div class="item s-1d339cy">',ee(e,l[2]),e.out+="</div></div></div>";else if(2===r)e.out+='<div class="grid s-1d339cy"><div class="col s-1d339cy"><div class="item square s-1d339cy">',ee(e,l[0]),e.out+='</div></div> <div class="col s-1d339cy"><div class="item square s-1d339cy">',ee(e,l[1]),e.out+="</div></div></div>";else if(1===r){const s=l[0],a=i&&s.aspectRatio;e.out+=`<div${B("class",`${N("single-item"+(a?" is-standalone":""))} s-1d339cy`)}${B("style",a?`aspect-ratio: ${a.width}/${a.height}`:"")}>`,ee(e,s),e.out+=" ",a&&(e.out+='<div class="placeholder s-1d339cy"></div>'),e.out+="</div>"}e.out+="</div>"}function ae(e,s){const{post:a,embed:t,borderless:i=!1,standalone:l=!1}=s,r=l&&t.aspectRatio,o=a&&R(a.author.did,Y(a.uri).rkey);function d(e){e.out+=`<img loading="lazy"${B("src",t.thumbnail)} alt="" class="thumbnail s-1h3cnsw"> `,r&&(e.out+='<div class="placeholder s-1h3cnsw"></div>'),e.out+=' <div class="play s-1h3cnsw"><svg class="icon s-1h3cnsw" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M22 12 5 2v20l17-10Z"></path></svg></div>'}l?(e.out+=`<a target="_blank"${B("href",o)}${B("class",`${N("video-embed"+(i?"":" is-bordered")+(l?" is-standalone":""))} s-1h3cnsw`)}><div class="constrainer s-1h3cnsw"${B("style",r?`aspect-ratio: ${r.width}/${r.height}`:"")}>`,d(e),e.out+="</div></a>"):(e.out+=`<div${B("class",`${N("video-embed"+(i?"":" is-bordered"))} s-1h3cnsw`)}${B("style",r?`aspect-ratio: ${r.width}/${r.height}`:"")}>`,d(e),e.out+="</div>")}const te=e=>{if(e){if("app.bsky.embed.images#view"===e.$type)return e;if("app.bsky.embed.recordWithMedia#view"===e.$type)return te(e.media)}},ie=e=>{if(e){if("app.bsky.embed.video#view"===e.$type)return e;if("app.bsky.embed.recordWithMedia#view"===e.$type)return ie(e.media)}};function le(e,s){e.out+=`<div class="message s-1nks9gp">${z(s)}</div>`}function re(e,s){const{post:a,embed:t,large:i=!1}=s;function l(e,s){"app.bsky.embed.external#view"===s.$type?Q(e,{embed:s}):"app.bsky.embed.images#view"===s.$type?se(e,{embed:s,standalone:!0}):"app.bsky.embed.video#view"===s.$type?ae(e,{post:a,embed:s,standalone:!0}):le(e,"Unsupported media embed")}function r(e,s){const a=s.record;if("app.bsky.embed.record#viewRecord"===a.$type)!function(e,s){const{embed:a,large:t=!1}=s,i=a.value,l=i.text.trim(),r=a.author,o=r.displayName?.trim(),d=a.embeds?.[0],n=te(d),c=ie(d),p=R(r.did,Y(a.uri).rkey);e.out+=`<a target="_blank"${B("href",p)} class="quote-embed s-vbjlyj"><div class="meta s-vbjlyj"><div class="avatar-wrapper s-vbjlyj">`,r.avatar&&(e.out+=`<img loading="lazy"${B("src",r.avatar)} alt="" class="avatar s-vbjlyj">`),e.out+='</div> <span class="name-wrapper s-vbjlyj">',o&&(e.out+=`<bdi class="display-name-wrapper s-vbjlyj"><span class="display-name s-vbjlyj">${z(o)}</span></bdi>`),e.out+=` <span class="handle s-vbjlyj">@${z(r.handle)}</span></span> <span aria-hidden="true" class="dot s-vbjlyj">·</span> <time${B("datetime",i.createdAt)} class="date s-vbjlyj">${z(G(i.createdAt))}</time></div> `,l?(e.out+='<div class="body s-vbjlyj">',t||(n?(e.out+='<div class="aside s-vbjlyj">',se(e,{embed:n}),e.out+="</div>"):c&&(e.out+='<div class="aside s-vbjlyj">',ae(e,{embed:c}),e.out+="</div>")),e.out+=` <p class="text s-vbjlyj">${z(l)}</p></div>`):e.out+='<div class="divide s-vbjlyj"></div>',e.out+=" ",!t&&l||(n?se(e,{embed:n,borderless:!0}):c&&ae(e,{embed:c,borderless:!0})),e.out+="</a>"}(e,{embed:a,large:i});else if("app.bsky.feed.defs#generatorView"===a.$type)!function(e,s){const{embed:a}=s,t=a.creator,i=T(t.did,Y(a.uri).rkey);e.out+=`<a target="_blank"${B("href",i)} class="feed-embed s-1c1phtf"><div class="main s-1c1phtf"><div class="avatar-wrapper s-1c1phtf">`,a.avatar?e.out+=`<img loading="lazy"${B("src",a.avatar)} alt="" class="avatar s-1c1phtf">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-1c1phtf"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-1c1phtf">${z(a.displayName)}</p> <p class="creator s-1c1phtf">Feed by @${z(t.handle)}</p></div></div> <p class="description s-1c1phtf">${z(a.description)}</p></a>`}(e,{embed:a});else if("app.bsky.graph.defs#listView"===a.$type)!function(e,s){const{embed:a}=s,t=a.creator,i=T(t.did,Y(a.uri).rkey);e.out+=`<a target="_blank"${B("href",i)} class="list-embed s-1mo1e33"><div class="main s-1mo1e33"><div class="avatar-wrapper s-1mo1e33">`,a.avatar?e.out+=`<img loading="lazy"${B("src",a.avatar)} alt="" class="avatar s-1mo1e33">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-1mo1e33"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-1mo1e33">${z(a.name)}</p> <p class="creator s-1mo1e33">${z((e=>{switch(e){case"app.bsky.graph.defs#curatelist":return"User list";case"app.bsky.graph.defs#modlist":return"Moderation list"}return"Unknown list"})(a.purpose))} by @${z(t.handle)}</p></div></div> <p class="description s-1mo1e33">${z(a.description)}</p></a>`}(e,{embed:a});else if("app.bsky.graph.defs#starterPackViewBasic"===a.$type)!function(e,s){const{embed:a,large:t=!1}=s,i=a.record,l=a.creator,r=l.did,o=Y(a.uri).rkey,d=((e,s)=>`https://bsky.app/starter-pack/${e}/${s}`)(r,o);if(e.out+=`<a target="_blank"${B("href",d)} class="starterpack-embed s-whpa2l">`,t){const s=((e,s)=>`https://ogcard.cdn.bsky.app/start/${e}/${s}`)(r,o);e.out+=`<img loading="lazy"${B("src",s)} alt="" class="banner s-whpa2l">`}e.out+=` <div class="meta s-whpa2l"><div class="main s-whpa2l"><svg fill="none" viewBox="0 0 24 24" class="avatar s-whpa2l"><defs><linearGradient id="a" x1="0" x2="100%" y1="0" y2="0" gradientTransform="rotate(45)"><stop offset="0" stop-color="#0A7AFF"></stop><stop offset="1" stop-color="#59B9FF"></stop></linearGradient></defs><path fill="url(#a)" fill-rule="evenodd" d="M11.26 5.227 5.02 6.899c-.734.197-1.17.95-.973 1.685l1.672 6.24c.197.734.951 1.17 1.685.973l6.24-1.672a1.376 1.376 0 0 0 .973-1.685L12.945 6.2a1.375 1.375 0 0 0-1.685-.973Zm-6.566.459a2.632 2.632 0 0 0-1.86 3.223l1.672 6.24a2.632 2.632 0 0 0 3.223 1.861l6.24-1.672a2.631 2.631 0 0 0 1.861-3.223l-1.672-6.24a2.632 2.632 0 0 0-3.223-1.861l-6.24 1.672Z" clip-rule="evenodd"></path><path fill="url(#a)" fill-rule="evenodd" d="M15.138 18.411a4.606 4.606 0 1 0 0-9.211 4.606 4.606 0 0 0 0 9.211Zm0 1.257a5.862 5.862 0 1 0 0-11.724 5.862 5.862 0 0 0 0 11.724Z" clip-rule="evenodd"></path></svg> <div class="info"><p class="name s-whpa2l">${z(i.name)}</p> <p class="creator s-whpa2l">Starter pack by @${z(l.handle)}</p></div></div> <p class="description s-whpa2l">${z(i.description)}</p></div></a>`}(e,{embed:a,large:i});else{const s=(e=>{switch(e){case"app.bsky.feed.post":return"post";case"app.bsky.feed.generator":return"feed";case"app.bsky.graph.list":return"list";case"app.bsky.graph.starterpack":return"starter pack";case"app.bsky.labeler.service":return"labeler"}return null})(Y(a.uri).collection);le(e,s&&("app.bsky.embed.record#viewNotFound"===a.$type||"app.bsky.embed.record#viewBlocked"===a.$type||"app.bsky.embed.record#viewDetached"===a.$type)?`This ${s} is unavailable`:"Unsupported record embed")}}e.out+='<div class="embeds s-1nks9gp">',"app.bsky.embed.recordWithMedia#view"===t.$type?(l(e,t.media),e.out+=" ",r(e,t.record)):"app.bsky.embed.record#view"===t.$type?r(e,t):l(e,t),e.out+="</div>"}function oe(e,s){const{item:a,prev:t=!1,next:i=!1}=s,l=a.reason,r=a.post,o=a.reply?.parent,d=r.author,n=I(d.did),c=d.displayName?.trim(),p=r.record,u=R(d.did,Y(r.uri).rkey),v=r.replyCount||0,f=r.likeCount||0,m=(r.repostCount||0)+(r.quoteCount||0);if(e.out+=`<div${B("class",`${N("feed-post"+(i?"":" is-leaf"))} s-1c3lek9`)}><div class="contexts s-1c3lek9">`,t&&(e.out+='<div class="ascendant-line-wrapper s-1c3lek9"><div class="line s-1c3lek9"></div></div>'),e.out+=" ",l)if("app.bsky.feed.defs#reasonRepost"===l.$type){const s=l.by;e.out+=`<div class="context s-1c3lek9"><div class="aside s-1c3lek9"><svg class="icon" viewBox="0 0 24 24" fill="none"><path d="M17 3L20 6L17 9M7 21L4 18L7 15M5 18H20V13M4 11V6H19" stroke="currentColor" stroke-width="2" stroke-linecap="square"></path></svg></div> <a${B("href",I(s.did))} class="main s-1c3lek9"><span dir="auto" class="name s-1c3lek9">${z(s.displayName)}</span> <span class="affix s-1c3lek9"> reposted</span></a></div>`}else"app.bsky.feed.defs#reasonPin"===l.$type&&(e.out+='<div class="context s-1c3lek9"><div class="aside s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M12 15H5v-2.5l.377-.377A7.25 7.25 0 0 0 7.5 6.997V3h9v3.997a7.25 7.25 0 0 0 2.123 5.127L19 12.5V15h-7Zm0 0v6"></path></svg></div> <span class="flex min-w-0">Pinned</span></div>');if(e.out+=`</div> <div class="content s-1c3lek9"><div class="aside s-1c3lek9"><a target="_blank"${B("href",n)} class="avatar-wrapper s-1c3lek9">`,d.avatar&&(e.out+=`<img loading="lazy"${B("src",d.avatar)} alt="" class="avatar s-1c3lek9">`),e.out+="</a> ",i&&(e.out+='<div class="descendant-line s-1c3lek9"></div>'),e.out+=`</div> <div class="main s-1c3lek9"><div class="meta s-1c3lek9"><a${B("href",n)} target="_blank" class="name-wrapper s-1c3lek9">`,c&&(e.out+=`<bdi class="display-name-wrapper s-1c3lek9"><span class="display-name s-1c3lek9">${z(c)}</span></bdi>`),e.out+=` <span class="handle s-1c3lek9">@${z(d.handle)}</span></a> <span aria-hidden="true" class="dot s-1c3lek9">·</span> <a target="_blank"${B("href",u)}${B("title",(e=>{const s=new Date(e);return isNaN(s.getTime())?"N/A":L.format(s)})(p.createdAt))} class="date s-1c3lek9"><time${B("datetime",p.createdAt)}>${z(G(p.createdAt))}</time></a></div> `,!t&&p.reply){if(e.out+='<p class="reply-context s-1c3lek9">',o&&"app.bsky.feed.defs#postView"===o.$type){const s=o.author;e.out+=`Replying to <a target="_blank"${B("href",I(s.did))} dir="auto" class="s-1c3lek9">${z(s.displayName?.trim()||`@${s.handle}`)}</a>`}else e.out+="Replying to an unknown post";e.out+="</p>"}e.out+=" ",function(e,s){const{text:a,facets:t,large:i}=s,l=q(a,t);e.out+=`<p${B("class",`${N("rich-text"+(i?" is-large":" is-small"))} s-10xqaeb`)}>`;for(let d=0,n=l.length;d<n;d++){let s=l[d];const a=(o=s.features,o?.find((e=>"app.bsky.richtext.facet#link"===e.$type||"app.bsky.richtext.facet#mention"===e.$type||"app.bsky.richtext.facet#tag"===e.$type)));a?"app.bsky.richtext.facet#link"===a.$type?e.out+=`<a target="_blank"${B("href",a.uri)} rel="noopener nofollow" class="link s-10xqaeb">${z(s.text)}</a>`:"app.bsky.richtext.facet#mention"===a.$type?e.out+=`<a target="_blank"${B("href",I(a.did))} class="mention s-10xqaeb">${z(s.text)}</a>`:"app.bsky.richtext.facet#tag"===a.$type&&(e.out+=`<a target="_blank"${B("href",(r=a.tag,`https://bsky.app/hashtag/${r}`))} class="hashtag s-10xqaeb">${z(s.text)}</a>`):e.out+=z(s.text)}var r,o;e.out+="</p>"}(e,{text:p.text,facets:p.facets}),e.out+=" ",r.embed&&re(e,{post:r,embed:r.embed}),e.out+=` <div class="metrics s-1c3lek9"><div${B("title",1===v?`${O(v)} reply`:`${O(v)} replies`)} class="stat s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M3.002 4h18v14h-9l-5 3v-3h-4V4Z"></path></svg> <span class="count s-1c3lek9">${z(K(v))}</span></div> <div${B("title",1===m?`${O(m)} repost`:`${O(m)} reposts`)} class="stat s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="m17 3 3 3-3 3M7 21l-3-3 3-3m-2 3h15v-5M4 11V6h15"></path></svg> <span class="count s-1c3lek9">${z(K(m))}</span></div> <div${B("title",1===f?`${O(f)} like`:`${O(f)} likes`)} class="stat s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M12 5.768c6.162-6.25 16.725 5.358 0 14.732C-4.725 11.126 5.838-.482 12 5.768Z"></path></svg> <span class="count s-1c3lek9">${z(K(f))}</span></div></div></div></div></div>`}function de(e,s){P(e,{children:e=>{e.out+=`<div class="message s-f12rvk">${z(s)}</div>`}})}function ne(e,s){const{profile:a,feed:t,allowUnauthenticated:i}=s,l=!i&&a?.labels?.some((e=>e.val===U)),r=t.filter((e=>{if(!a)return!1;const s=e.reason;if(s){if("app.bsky.feed.defs#reasonPin"===s.$type)return!0;if("app.bsky.feed.defs#reasonRepost"===s.$type){const s=e.post.author;return s.did===a.did||(i||!s.labels?.some((e=>e.val===U)))}return!1}return!e.reply}));null===a?de(e,"The profile can't be found, it may have been deleted."):l?de(e,"The user has requested for their posts to not be displayed on external sites."):P(e,{children:e=>{if(function(e,s){const{profile:a}=s;e.out+=`<div class="profile-feed-header s-1xh30xs"><a target="_blank"${B("href",I(a.did))} class="title s-1xh30xs">Posts from @${z(a.handle)}</a> <svg class="logo s-1xh30xs" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg></div>`}(e,{profile:a}),e.out+=" ",r.length>0){const s=r;e.out+='<div class="feed s-f12rvk">';for(let a=0,t=s.length;a<t;a++){oe(e,{item:s[a]})}e.out+=' <div class="end-marker s-f12rvk"><div class="dot s-f12rvk"></div></div></div>'}else e.out+='<div class="message s-f12rvk">This user has not made any posts.</div>'}})}var ce=l("<bluesky-profile-feed><!></bluesky-profile-feed>",2);function pe(l,o){e(o,!0);var d=ce(),n=r(d);g(n,(()=>function(e,s){const a={out:""};return ne(a,s?.props??{}),{head:"",body:a.out}}(0,{props:o.data}).body)),s((()=>a(d,"actor",o.data.profile?.did))),t(l,d),i()}var ue=l("<li><p>Insert the following scripts and stylesheets to the <code>&lt;head&gt;</code> of your website.</p> <!></li> <li><p>Insert the following markup in wherever you want the profile feed to be.</p> <!></li>",1),ve=l("<!> <!>",1);function fe(a,l){let g;e(l,!0);const q=m((()=>{g?.abort(),g=new AbortController;const e=g.signal;return(async e=>{const s=e.actor,a=e.allowUnauthenticated??!1,t=new y({handler:k({service:e.serviceUri??"https://public.api.bsky.app"})}),[{data:i},{data:l}]=await Promise.all([t.get("app.bsky.actor.getProfile",{signal:e.signal,params:{actor:s}}).catch((e=>e instanceof $&&"InvalidRequest"===e.kind&&"Profile not found"===e.description?{data:null}:Promise.reject(e))),t.get("app.bsky.feed.getAuthorFeed",{signal:e.signal,params:{actor:s,includePins:e.includePins,limit:30,filter:"posts_and_author_threads"}}).catch((e=>e instanceof $&&"InvalidRequest"===e.kind&&"Profile not found"===e.description?{data:{feed:[]}}:Promise.reject(e)))]);return{profile:i,feed:l.feed,allowUnauthenticated:a}})({actor:l.matched.actor,signal:e})}));w((()=>{g?.abort()}));const A=()=>{const e="https://cdn.jsdelivr.net/npm/bluesky-profile-feed-embed@^1.0.0";return`\x3c!-- Core web component and styling --\x3e\n<script type="module" src="${e}/+esm"><\/script>\n<link rel="stylesheet" href="${e}/dist/core.min.css">\n\n\x3c!-- Built-in themes --\x3e\n<link rel="stylesheet" href="${e}/themes/light.min.css" media="(prefers-color-scheme: light)">\n<link rel="stylesheet" href="${e}/themes/dim.min.css" media="(prefers-color-scheme: dark)">\n`};var C=o(),z=d(C);n(z,(()=>v(q)),(e=>{b(e,{})}),((e,s)=>{var a=ve(),i=d(a);pe(i,{get data(){return v(s)}});var l=f(i,2),o=e=>{j(e,{title:"How do I embed this to my website?",children:(e,a)=>{Z(e,{children:(e,a)=>{var i=ue(),l=d(i),o=f(r(l),2),n=m(A);M(o,{get code(){return v(n)}}),F(l);var c=f(l,2),p=f(r(c),2),u=m((()=>(e=>{const s=`https://bsky.app/profile/${e.did}`;return`<bluesky-profile-feed actor="${_(e.did)}" include-pins>\n <a target="_blank" href="${_(s)}" class="bluesky-profile-feed-fallback">\n ${e.displayName?.trim()?`Posts by ${_(e.displayName)} (@${_(e.handle)})`:`Posts by @${_(e.handle)}`}\n </a>\n</bluesky-profile-feed>\n`})(v(s).profile)));M(p,{get code(){return v(u)}}),F(c),t(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}})};h(l,(e=>{v(s).profile&&e(o)})),t(e,a)}),((e,a)=>{c(e,{type:"alert",children:(e,i)=>{x();var l=p();s((()=>u(l,""+v(a)))),t(e,l)},$$slots:{default:!0}})})),t(a,C),i()}export{fe as default};
+1
assets/ProfileFeedDisplay-DXn37nri.css
··· 1 + .bluesky-embed.s-1pz15a1{position:relative;box-sizing:border-box;margin:0 auto;border:1px solid var(--divider);border-radius:8px;background:var(--background-primary);min-width:250px;max-width:550px;overflow:hidden;color:var(--text-primary);font-weight:400;font-size:calc(var(--font-size) * .875);line-height:calc(var(--font-size) * 1.25);font-family:var(--font-family);:where(*),:where(*:before),:where(*:after){box-sizing:border-box;margin:0;padding:0}:where(a){color:inherit;text-decoration:none}:where(.icon){flex-shrink:0;width:1em;height:1em}}.external-embed.s-au8a8u{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.thumbnail.s-au8a8u{display:block;background:#000;aspect-ratio:1.91;width:100%}.meta.s-au8a8u{padding:12px}.title.s-au8a8u{display:-webkit-box;overflow:hidden;font-weight:700;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.description.s-au8a8u{display:-webkit-box;overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.domain.s-au8a8u{display:flex;align-items:center;gap:6px;margin:6px 0 0;color:var(--text-secondary);font-weight:500;font-size:calc(var(--font-size) * .75)}.feed-embed.s-1c1phtf{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-1c1phtf{display:flex;gap:12px}.avatar-wrapper.s-1c1phtf{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-1c1phtf{width:100%;height:100%;object-fit:cover}.name.s-1c1phtf{font-weight:700}.creator.s-1c1phtf{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-1c1phtf{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.is-bordered.s-1d339cy{border:1px solid var(--divider);border-radius:6px;overflow:hidden}.is-aligned.s-1d339cy{align-self:baseline;max-width:100%}.grid.s-1d339cy{display:flex;gap:2px}.col.s-1d339cy{display:flex;flex:1;flex-direction:column;gap:2px}.square.s-1d339cy{aspect-ratio:1}.wide.s-1d339cy{aspect-ratio:1.5}.item.s-1d339cy{position:relative;flex-grow:1;flex-shrink:0}.single-item.s-1d339cy{position:relative;aspect-ratio:16 / 9;overflow:hidden;.image:where(.s-1d339cy){object-fit:contain}}.is-standalone.s-1d339cy{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.image.s-1d339cy{position:absolute;inset:0;background:#000;width:100%;height:100%;object-fit:cover;font-size:0px}.placeholder.s-1d339cy{width:100vw;height:100vh}.list-embed.s-1mo1e33{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-1mo1e33{display:flex;gap:12px}.avatar-wrapper.s-1mo1e33{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-1mo1e33{width:100%;height:100%;object-fit:cover}.name.s-1mo1e33{font-weight:700}.creator.s-1mo1e33{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-1mo1e33{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.video-embed.s-1h3cnsw{display:block;position:relative;aspect-ratio:16 / 9;overflow:hidden}.is-bordered.s-1h3cnsw{border:1px solid var(--divider);border-radius:6px}.is-standalone.s-1h3cnsw{align-self:baseline;aspect-ratio:auto;max-width:100%}.constrainer.s-1h3cnsw{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.thumbnail.s-1h3cnsw{width:100%;height:100%;object-fit:cover}.placeholder.s-1h3cnsw{width:100vw;height:100vh}.play.s-1h3cnsw{display:grid;position:absolute;top:50%;left:50%;place-items:center;translate:-50% -50%;border-radius:50%;background:#40404099;aspect-ratio:1 / 1;height:40%;max-height:48px;color:#fff;font-size:20px;.icon:where(.s-1h3cnsw){width:40%;height:40%}.is-standalone:where(.s-1h3cnsw) &:hover{background:#404040cc}}.quote-embed.s-vbjlyj{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.meta.s-vbjlyj{display:flex;padding:12px 12px 0;color:var(--text-secondary);.avatar-wrapper:where(.s-vbjlyj){flex-shrink:0;margin:0 8px 0 0;border-radius:9999px;background:var(--background-secondary);width:20px;height:20px;overflow:hidden}.avatar:where(.s-vbjlyj){width:100%;height:100%}.name-wrapper:where(.s-vbjlyj){display:flex;gap:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-vbjlyj){overflow:hidden;text-overflow:ellipsis}.display-name:where(.s-vbjlyj){color:var(--text-primary);font-weight:700}.handle:where(.s-vbjlyj){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-vbjlyj){flex-shrink:0;margin:0 6px}.date:where(.s-vbjlyj){white-space:nowrap}}.body.s-vbjlyj{display:flex;align-items:flex-start}.aside.s-vbjlyj{flex-grow:1;flex-basis:0;margin:8px 0 12px 12px;max-width:20%}.text.s-vbjlyj{display:-webkit-box;margin:8px 12px 12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;flex-grow:4;flex-basis:0px;min-width:0px;white-space:pre-wrap;overflow-wrap:break-word}.divide.s-vbjlyj{padding:6px 0}.starterpack-embed.s-whpa2l{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.banner.s-whpa2l{display:block;aspect-ratio:1.91;width:100%}.meta.s-whpa2l{display:flex;flex-direction:column;gap:12px;padding:12px}.main.s-whpa2l{display:flex;gap:12px}.avatar.s-whpa2l{margin:2px;width:36px;height:36px}.name.s-whpa2l{font-weight:700}.creator.s-whpa2l{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-whpa2l{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.embeds.s-1nks9gp{display:flex;flex-direction:column;gap:12px;margin:12px 0 0}.message.s-1nks9gp{border:1px solid var(--divider);border-radius:6px;padding:12px;color:var(--text-secondary)}.rich-text.s-10xqaeb{overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;&:empty{display:none}}.is-large.s-10xqaeb{font-size:calc(var(--font-size) * 1);line-height:calc(var(--font-size) * 1.5)}.link.s-10xqaeb,.mention.s-10xqaeb,.hashtag.s-10xqaeb{color:var(--text-link);&:hover{text-decoration:underline}}.feed-post.s-1c3lek9{padding:0 16px}.is-leaf.s-1c3lek9{border-bottom:1px solid var(--divider)}.ascendant-line-wrapper.s-1c3lek9{display:flex;flex-direction:column;align-items:center;width:36px;.line:where(.s-1c3lek9){position:absolute;top:0;bottom:4px;flex-grow:1;border-left:2px solid var(--divider)}}.descendant-line.s-1c3lek9{flex-grow:1;margin-top:4px;border-left:2px solid var(--divider)}.contexts.s-1c3lek9{display:flex;position:relative;flex-direction:column;padding:8px 0 4px}.context.s-1c3lek9{display:flex;align-items:center;gap:12px;color:var(--text-secondary);font-size:.8125rem;line-height:1.25rem;.aside:where(.s-1c3lek9){display:flex;flex-shrink:0;justify-content:flex-end;width:36px}.main:where(.s-1c3lek9){display:flex;min-width:0px;&:hover{text-decoration-line:underline}}.name:where(.s-1c3lek9){overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.affix:where(.s-1c3lek9){flex-shrink:0;white-space:pre}}.content.s-1c3lek9{display:flex;gap:12px;.aside:where(.s-1c3lek9){display:flex;flex-shrink:0;flex-direction:column;align-items:center}.main:where(.s-1c3lek9){flex-grow:1;padding-bottom:12px;min-width:0}}.avatar-wrapper.s-1c3lek9{display:block;border-radius:9999px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden;&:hover{filter:brightness(.85)}}.avatar.s-1c3lek9{width:100%;height:100%;object-fit:cover}.meta.s-1c3lek9{display:flex;align-items:center;margin:0 0 2px;color:var(--text-secondary);.name-wrapper:where(.s-1c3lek9){display:flex;gap:4px;max-width:100%;overflow:hidden;color:inherit;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-1c3lek9){overflow:hidden;text-overflow:ellipsis;.name-wrapper:where(.s-1c3lek9):hover &{text-decoration:underline}}.display-name:where(.s-1c3lek9){color:var(--text-primary);font-weight:700}.handle:where(.s-1c3lek9){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-1c3lek9){flex-shrink:0;margin:0 6px}.date:where(.s-1c3lek9){color:inherit;text-decoration:none;white-space:nowrap;&:hover{text-decoration:underline}}}.reply-context.s-1c3lek9{overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);text-overflow:ellipsis;white-space:nowrap;a:where(.s-1c3lek9){color:inherit;font-weight:500;&:hover{text-decoration:underline}}}.metrics.s-1c3lek9{display:flex;align-items:center;gap:16px;margin-top:12px;color:var(--text-secondary)}.stat.s-1c3lek9{display:flex;align-items:center;gap:8px;min-width:0px;max-width:100%;.count:where(.s-1c3lek9){padding-right:8px;overflow:hidden;font-size:.8125rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}}.profile-feed-header.s-1xh30xs{display:flex;justify-content:space-between;align-items:center;gap:16px;container-type:inline-size;border-bottom:1px solid var(--divider);padding:12px 16px}.title.s-1xh30xs{padding:4px 0;min-width:0;overflow:hidden;font-weight:600;font-size:calc(var(--font-size) * 1);line-height:calc(var(--font-size) * 1.5);text-overflow:ellipsis;white-space:nowrap;&:hover{text-decoration:underline}}.logo.s-1xh30xs{width:24px;height:24px}.message.s-f12rvk{margin:0 auto;padding:32px 16px;max-width:380px;color:var(--text-secondary);text-align:center}.feed.s-f12rvk{max-height:var(--max-feed-height);overflow-y:auto}.end-marker.s-f12rvk{display:grid;place-items:center;height:48px;.dot:where(.s-f12rvk){border-radius:50%;background:var(--text-secondary);width:4px;height:4px}}
-1
assets/index-C-FSbVJg.css
··· 1 - .bluesky-embed.s-3olstj{position:relative;box-sizing:border-box;margin:0 auto;border:1px solid var(--divider);border-radius:8px;background:var(--background-primary);min-width:250px;max-width:550px;overflow:hidden;color:var(--text-primary);font-weight:400;font-size:calc(var(--font-size) * .875);line-height:calc(var(--font-size) * 1.25);font-family:var(--font-family);:where(*),:where(*:before),:where(*:after){box-sizing:border-box;margin:0;padding:0}:where(a){color:inherit;text-decoration:none}:where(.icon){flex-shrink:0;width:1em;height:1em}}.external-embed.s-rtbqd8{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.thumbnail.s-rtbqd8{display:block;background:#000;aspect-ratio:1.91;width:100%}.meta.s-rtbqd8{padding:12px}.title.s-rtbqd8{display:-webkit-box;overflow:hidden;font-weight:700;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.description.s-rtbqd8{display:-webkit-box;overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.domain.s-rtbqd8{display:flex;align-items:center;gap:6px;margin:6px 0 0;color:var(--text-secondary);font-weight:500;font-size:calc(var(--font-size) * .75)}.feed-embed.s-156tlwp{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-156tlwp{display:flex;gap:12px}.avatar-wrapper.s-156tlwp{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-156tlwp{width:100%;height:100%;object-fit:cover}.name.s-156tlwp{font-weight:700}.creator.s-156tlwp{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-156tlwp{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.is-bordered.s-t3k6fc{border:1px solid var(--divider);border-radius:6px;overflow:hidden}.is-aligned.s-t3k6fc{align-self:baseline;max-width:100%}.grid.s-t3k6fc{display:flex;gap:2px}.col.s-t3k6fc{display:flex;flex:1;flex-direction:column;gap:2px}.square.s-t3k6fc{aspect-ratio:1}.wide.s-t3k6fc{aspect-ratio:1.5}.item.s-t3k6fc{position:relative;flex-grow:1;flex-shrink:0}.single-item.s-t3k6fc{position:relative;aspect-ratio:16 / 9;overflow:hidden;.image:where(.s-t3k6fc){object-fit:contain}}.is-standalone.s-t3k6fc{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.image.s-t3k6fc{position:absolute;inset:0;background:#000;width:100%;height:100%;object-fit:cover;font-size:0px}.placeholder.s-t3k6fc{width:100vw;height:100vh}.list-embed.s-6uize5{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-6uize5{display:flex;gap:12px}.avatar-wrapper.s-6uize5{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-6uize5{width:100%;height:100%;object-fit:cover}.name.s-6uize5{font-weight:700}.creator.s-6uize5{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-6uize5{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.video-embed.s-1azk58e{display:block;position:relative;aspect-ratio:16 / 9;overflow:hidden}.is-bordered.s-1azk58e{border:1px solid var(--divider);border-radius:6px}.is-standalone.s-1azk58e{align-self:baseline;aspect-ratio:auto;max-width:100%}.constrainer.s-1azk58e{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.thumbnail.s-1azk58e{width:100%;height:100%;object-fit:cover}.placeholder.s-1azk58e{width:100vw;height:100vh}.play.s-1azk58e{display:grid;position:absolute;top:50%;left:50%;place-items:center;translate:-50% -50%;border-radius:50%;background:#40404099;aspect-ratio:1 / 1;height:40%;max-height:48px;color:#fff;font-size:20px;.icon:where(.s-1azk58e){width:40%;height:40%}.is-standalone:where(.s-1azk58e) &:hover{background:#404040cc}}.quote-embed.s-za6fip{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.meta.s-za6fip{display:flex;padding:12px 12px 0;color:var(--text-secondary);.avatar-wrapper:where(.s-za6fip){flex-shrink:0;margin:0 8px 0 0;border-radius:9999px;background:var(--background-secondary);width:20px;height:20px;overflow:hidden}.avatar:where(.s-za6fip){width:100%;height:100%}.name-wrapper:where(.s-za6fip){display:flex;gap:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-za6fip){overflow:hidden;text-overflow:ellipsis}.display-name:where(.s-za6fip){color:var(--text-primary);font-weight:700}.handle:where(.s-za6fip){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-za6fip){flex-shrink:0;margin:0 6px}.date:where(.s-za6fip){white-space:nowrap}}.body.s-za6fip{display:flex;align-items:flex-start}.aside.s-za6fip{flex-grow:1;flex-basis:0;margin:8px 0 12px 12px;max-width:20%}.text.s-za6fip{display:-webkit-box;margin:8px 12px 12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;flex-grow:4;flex-basis:0px;min-width:0px;white-space:pre-wrap;overflow-wrap:break-word}.divide.s-za6fip{padding:6px 0}.starterpack-embed.s-15v965v{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.banner.s-15v965v{display:block;aspect-ratio:1.91;width:100%}.meta.s-15v965v{display:flex;flex-direction:column;gap:12px;padding:12px}.main.s-15v965v{display:flex;gap:12px}.avatar.s-15v965v{margin:2px;width:36px;height:36px}.name.s-15v965v{font-weight:700}.creator.s-15v965v{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-15v965v{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.embeds.s-azdpbr{display:flex;flex-direction:column;gap:12px;margin:12px 0 0}.message.s-azdpbr{border:1px solid var(--divider);border-radius:6px;padding:12px;color:var(--text-secondary)}.rich-text.s-1lecfnd{overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;&:empty{display:none}}.is-large.s-1lecfnd{font-size:calc(var(--font-size) * 1);line-height:calc(var(--font-size) * 1.5)}.link.s-1lecfnd,.mention.s-1lecfnd,.hashtag.s-1lecfnd{color:var(--text-link);&:hover{text-decoration:underline}}.highlighted-post.s-hik11q{padding:16px}.meta.s-hik11q{display:flex;align-items:center;gap:12px;margin:0 0 12px;color:var(--text-secondary);.avatar-wrapper:where(.s-hik11q){display:block;flex-shrink:0;border-radius:9999px;background:var(--background-secondary);width:40px;height:40px;overflow:hidden;&:hover{filter:brightness(.85)}}.avatar:where(.s-hik11q){width:100%;height:100%;object-fit:cover}.name-wrapper:where(.s-hik11q){display:block;flex-grow:1;max-width:100%;overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-hik11q){overflow:hidden;text-overflow:ellipsis;.name-wrapper:where(.s-hik11q):hover &{text-decoration:underline}}.display-name:where(.s-hik11q){color:var(--text-primary);font-weight:700}.handle:where(.s-hik11q){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.logo.s-hik11q{width:32px;height:32px}.context.s-hik11q{overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);text-overflow:ellipsis;white-space:nowrap;a:where(.s-hik11q){color:inherit;font-weight:500;&:hover{text-decoration:underline}}}.date.s-hik11q{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;border-bottom:1px solid var(--divider);padding:0 0 12px;color:var(--text-secondary)}.stats.s-hik11q{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 -16px;padding:12px 0;color:var(--text-secondary);.gap:where(.s-hik11q){flex:1 1 auto}.permalink:where(.s-hik11q){display:flex;align-items:center;gap:4px;color:var(--text-link);font-weight:700;&:hover{text-decoration:underline}}}.stat.s-hik11q{display:flex;align-items:center;gap:8px;font-weight:500}.post.s-12mzi62{display:flex;position:relative;gap:12px;padding:12px 16px 0}.logo.s-12mzi62{position:absolute;top:12px;right:12px;width:24px;height:24px}.aside.s-12mzi62{flex-shrink:0}.avatar-wrapper.s-12mzi62{display:block;border-radius:9999px;background:var(--background-secondary);width:40px;height:40px;overflow:hidden;&:hover{filter:brightness(.85)}}.avatar.s-12mzi62{width:100%;height:100%;object-fit:cover}.line.s-12mzi62{position:absolute;top:56px;bottom:-12px;left:35px;border-left:2px solid var(--divider)}.main.s-12mzi62{display:flex;flex-grow:1;flex-direction:column;min-width:0px}.meta.s-12mzi62{display:flex;align-items:center;margin:0 0 2px;padding:0 32px 0 0;color:var(--text-secondary);.name-wrapper:where(.s-12mzi62){display:flex;gap:4px;max-width:100%;overflow:hidden;color:inherit;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-12mzi62){overflow:hidden;text-overflow:ellipsis;.name-wrapper:where(.s-12mzi62):hover &{text-decoration:underline}}.display-name:where(.s-12mzi62){color:var(--text-primary);font-weight:700}.handle:where(.s-12mzi62){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-12mzi62){flex-shrink:0;margin:0 6px}.date:where(.s-12mzi62){color:inherit;text-decoration:none;white-space:nowrap;&:hover{text-decoration:underline}}}.context.s-12mzi62{overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);text-overflow:ellipsis;white-space:nowrap;a:where(.s-12mzi62){color:inherit;font-weight:500;&:hover{text-decoration:underline}}}.message.s-1q9cbx0{margin:0 auto;padding:32px 16px;max-width:380px;color:var(--text-secondary);text-align:center}.bluesky-embed.s-1pz15a1{position:relative;box-sizing:border-box;margin:0 auto;border:1px solid var(--divider);border-radius:8px;background:var(--background-primary);min-width:250px;max-width:550px;overflow:hidden;color:var(--text-primary);font-weight:400;font-size:calc(var(--font-size) * .875);line-height:calc(var(--font-size) * 1.25);font-family:var(--font-family);:where(*),:where(*:before),:where(*:after){box-sizing:border-box;margin:0;padding:0}:where(a){color:inherit;text-decoration:none}:where(.icon){flex-shrink:0;width:1em;height:1em}}.external-embed.s-au8a8u{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.thumbnail.s-au8a8u{display:block;background:#000;aspect-ratio:1.91;width:100%}.meta.s-au8a8u{padding:12px}.title.s-au8a8u{display:-webkit-box;overflow:hidden;font-weight:700;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.description.s-au8a8u{display:-webkit-box;overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.domain.s-au8a8u{display:flex;align-items:center;gap:6px;margin:6px 0 0;color:var(--text-secondary);font-weight:500;font-size:calc(var(--font-size) * .75)}.feed-embed.s-1c1phtf{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-1c1phtf{display:flex;gap:12px}.avatar-wrapper.s-1c1phtf{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-1c1phtf{width:100%;height:100%;object-fit:cover}.name.s-1c1phtf{font-weight:700}.creator.s-1c1phtf{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-1c1phtf{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.is-bordered.s-1d339cy{border:1px solid var(--divider);border-radius:6px;overflow:hidden}.is-aligned.s-1d339cy{align-self:baseline;max-width:100%}.grid.s-1d339cy{display:flex;gap:2px}.col.s-1d339cy{display:flex;flex:1;flex-direction:column;gap:2px}.square.s-1d339cy{aspect-ratio:1}.wide.s-1d339cy{aspect-ratio:1.5}.item.s-1d339cy{position:relative;flex-grow:1;flex-shrink:0}.single-item.s-1d339cy{position:relative;aspect-ratio:16 / 9;overflow:hidden;.image:where(.s-1d339cy){object-fit:contain}}.is-standalone.s-1d339cy{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.image.s-1d339cy{position:absolute;inset:0;background:#000;width:100%;height:100%;object-fit:cover;font-size:0px}.placeholder.s-1d339cy{width:100vw;height:100vh}.list-embed.s-1mo1e33{display:flex;flex-direction:column;gap:12px;border:1px solid var(--divider);border-radius:6px;padding:12px;&:hover{border-color:var(--divider-hover)}}.main.s-1mo1e33{display:flex;gap:12px}.avatar-wrapper.s-1mo1e33{margin:2px 0 0;border-radius:6px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden}.avatar.s-1mo1e33{width:100%;height:100%;object-fit:cover}.name.s-1mo1e33{font-weight:700}.creator.s-1mo1e33{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-1mo1e33{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.video-embed.s-1h3cnsw{display:block;position:relative;aspect-ratio:16 / 9;overflow:hidden}.is-bordered.s-1h3cnsw{border:1px solid var(--divider);border-radius:6px}.is-standalone.s-1h3cnsw{align-self:baseline;aspect-ratio:auto;max-width:100%}.constrainer.s-1h3cnsw{min-width:64px;max-width:100%;min-height:64px;max-height:320px}.thumbnail.s-1h3cnsw{width:100%;height:100%;object-fit:cover}.placeholder.s-1h3cnsw{width:100vw;height:100vh}.play.s-1h3cnsw{display:grid;position:absolute;top:50%;left:50%;place-items:center;translate:-50% -50%;border-radius:50%;background:#40404099;aspect-ratio:1 / 1;height:40%;max-height:48px;color:#fff;font-size:20px;.icon:where(.s-1h3cnsw){width:40%;height:40%}.is-standalone:where(.s-1h3cnsw) &:hover{background:#404040cc}}.quote-embed.s-vbjlyj{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.meta.s-vbjlyj{display:flex;padding:12px 12px 0;color:var(--text-secondary);.avatar-wrapper:where(.s-vbjlyj){flex-shrink:0;margin:0 8px 0 0;border-radius:9999px;background:var(--background-secondary);width:20px;height:20px;overflow:hidden}.avatar:where(.s-vbjlyj){width:100%;height:100%}.name-wrapper:where(.s-vbjlyj){display:flex;gap:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-vbjlyj){overflow:hidden;text-overflow:ellipsis}.display-name:where(.s-vbjlyj){color:var(--text-primary);font-weight:700}.handle:where(.s-vbjlyj){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-vbjlyj){flex-shrink:0;margin:0 6px}.date:where(.s-vbjlyj){white-space:nowrap}}.body.s-vbjlyj{display:flex;align-items:flex-start}.aside.s-vbjlyj{flex-grow:1;flex-basis:0;margin:8px 0 12px 12px;max-width:20%}.text.s-vbjlyj{display:-webkit-box;margin:8px 12px 12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;flex-grow:4;flex-basis:0px;min-width:0px;white-space:pre-wrap;overflow-wrap:break-word}.divide.s-vbjlyj{padding:6px 0}.starterpack-embed.s-whpa2l{display:block;border:1px solid var(--divider);border-radius:6px;overflow:hidden;&:hover{border-color:var(--divider-hover)}}.banner.s-whpa2l{display:block;aspect-ratio:1.91;width:100%}.meta.s-whpa2l{display:flex;flex-direction:column;gap:12px;padding:12px}.main.s-whpa2l{display:flex;gap:12px}.avatar.s-whpa2l{margin:2px;width:36px;height:36px}.name.s-whpa2l{font-weight:700}.creator.s-whpa2l{color:var(--text-secondary);font-size:calc(var(--font-size) * .8125)}.description.s-whpa2l{display:-webkit-box;overflow:hidden;font-size:calc(var(--font-size) * .8125);white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;&:empty{display:none}}.embeds.s-1nks9gp{display:flex;flex-direction:column;gap:12px;margin:12px 0 0}.message.s-1nks9gp{border:1px solid var(--divider);border-radius:6px;padding:12px;color:var(--text-secondary)}.rich-text.s-10xqaeb{overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;&:empty{display:none}}.is-large.s-10xqaeb{font-size:calc(var(--font-size) * 1);line-height:calc(var(--font-size) * 1.5)}.link.s-10xqaeb,.mention.s-10xqaeb,.hashtag.s-10xqaeb{color:var(--text-link);&:hover{text-decoration:underline}}.feed-post.s-1c3lek9{padding:0 16px}.is-leaf.s-1c3lek9{border-bottom:1px solid var(--divider)}.ascendant-line-wrapper.s-1c3lek9{display:flex;flex-direction:column;align-items:center;width:36px;.line:where(.s-1c3lek9){position:absolute;top:0;bottom:4px;flex-grow:1;border-left:2px solid var(--divider)}}.descendant-line.s-1c3lek9{flex-grow:1;margin-top:4px;border-left:2px solid var(--divider)}.contexts.s-1c3lek9{display:flex;position:relative;flex-direction:column;padding:8px 0 4px}.context.s-1c3lek9{display:flex;align-items:center;gap:12px;color:var(--text-secondary);font-size:.8125rem;line-height:1.25rem;.aside:where(.s-1c3lek9){display:flex;flex-shrink:0;justify-content:flex-end;width:36px}.main:where(.s-1c3lek9){display:flex;min-width:0px;&:hover{text-decoration-line:underline}}.name:where(.s-1c3lek9){overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.affix:where(.s-1c3lek9){flex-shrink:0;white-space:pre}}.content.s-1c3lek9{display:flex;gap:12px;.aside:where(.s-1c3lek9){display:flex;flex-shrink:0;flex-direction:column;align-items:center}.main:where(.s-1c3lek9){flex-grow:1;padding-bottom:12px;min-width:0}}.avatar-wrapper.s-1c3lek9{display:block;border-radius:9999px;background:var(--background-secondary);width:36px;height:36px;overflow:hidden;&:hover{filter:brightness(.85)}}.avatar.s-1c3lek9{width:100%;height:100%;object-fit:cover}.meta.s-1c3lek9{display:flex;align-items:center;margin:0 0 2px;color:var(--text-secondary);.name-wrapper:where(.s-1c3lek9){display:flex;gap:4px;max-width:100%;overflow:hidden;color:inherit;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.display-name-wrapper:where(.s-1c3lek9){overflow:hidden;text-overflow:ellipsis;.name-wrapper:where(.s-1c3lek9):hover &{text-decoration:underline}}.display-name:where(.s-1c3lek9){color:var(--text-primary);font-weight:700}.handle:where(.s-1c3lek9){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot:where(.s-1c3lek9){flex-shrink:0;margin:0 6px}.date:where(.s-1c3lek9){color:inherit;text-decoration:none;white-space:nowrap;&:hover{text-decoration:underline}}}.reply-context.s-1c3lek9{overflow:hidden;color:var(--text-secondary);font-size:calc(var(--font-size) * .8125);text-overflow:ellipsis;white-space:nowrap;a:where(.s-1c3lek9){color:inherit;font-weight:500;&:hover{text-decoration:underline}}}.metrics.s-1c3lek9{display:flex;align-items:center;gap:16px;margin-top:12px;color:var(--text-secondary)}.stat.s-1c3lek9{display:flex;align-items:center;gap:8px;min-width:0px;max-width:100%;.count:where(.s-1c3lek9){padding-right:8px;overflow:hidden;font-size:.8125rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}}.profile-feed-header.s-1xh30xs{display:flex;justify-content:space-between;align-items:center;gap:16px;container-type:inline-size;border-bottom:1px solid var(--divider);padding:12px 16px}.title.s-1xh30xs{padding:4px 0;min-width:0;overflow:hidden;font-weight:600;font-size:calc(var(--font-size) * 1);line-height:calc(var(--font-size) * 1.5);text-overflow:ellipsis;white-space:nowrap;&:hover{text-decoration:underline}}.logo.s-1xh30xs{width:24px;height:24px}.message.s-f12rvk{margin:0 auto;padding:32px 16px;max-width:380px;color:var(--text-secondary);text-align:center}.feed.s-f12rvk{max-height:var(--max-feed-height);overflow-y:auto}.end-marker.s-f12rvk{display:grid;place-items:center;height:48px;.dot:where(.s-f12rvk){border-radius:50%;background:var(--text-secondary);width:4px;height:4px}}.bluesky-embed{--font-size: 16px;--font-family: system-ui, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";--max-feed-height: 600px}.bluesky-embed{--text-primary: #000000;--text-secondary: #455668;--text-link: #1083fe;--background-primary: #ffffff;--background-secondary: #455668;--divider-hover: #a9b7c5;--divider: #d4dbe2;--button: #1083fe;--button-text: #ffffff;--button-hover: #0168d5}/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{line-height:1.15;font-family:Inter,Roboto,ui-sans-serif,sans-serif,"Noto Color Emoji",Twemoji Mozilla;-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-size:1em;font-family:JetBrains Mono NL,ui-monospace,monospace}small{font-size:80%}sub,sup{position:relative;vertical-align:baseline;font-size:75%;line-height:0}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentcolor}button,input,optgroup,select,textarea{margin:0;font-size:100%;line-height:1.15;font-family:inherit}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}.app{margin:0 auto;padding:36px 16px;width:100%;max-width:582px}.header{margin:24px 0}.input-wrapper{display:flex;flex-direction:column;gap:8px}.label{color:#4b5563;font-weight:600;font-size:.875rem;line-height:1.25rem}.text-input{outline:2px none #2563eb;outline-offset:-1px;border:1px solid #9ca3af;border-radius:4px;padding:8px 12px;font-size:.875rem;line-height:1.25rem;&::placeholder{color:#9ca3af}&:focus{outline-style:solid}}.alert{border:1px solid #fca5a5;border-radius:4px;background:#fee2e2;padding:10px 12px;color:#991b1b;font-weight:500;font-size:.875rem;line-height:1.25rem}.inform{border:1px solid #bfdbfe;border-radius:4px;background:#dbeafe;padding:10px 12px;color:#1e40af;font-weight:500;font-size:.875rem;line-height:1.25rem;a{color:inherit;font-weight:600}}.circular-spinner{display:block;animation:spin 1s linear infinite;margin:0 auto;width:24px;height:24px;.accented{stroke:#2563eb}.background{stroke:#2563eb;opacity:20%}}@keyframes spin{to{transform:rotate(360deg)}}.main{margin:36px 0 0}.guide{margin:36px 0 0;border-top:1px solid #d1d5db}.guide-header{margin:36px 0 16px}.guide-instructions{margin:24px 0 0;padding:0 0 0 22px;font-size:.875rem;line-height:1.25rem;li+li{margin:24px 0 0}}.code-block{display:flex;gap:12px;border:1px solid #d1d5db;border-radius:4px;background:#f9fafb;padding:12px;overflow:hidden;overflow-x:auto;pre{flex-grow:1;margin:0;font-size:.75rem;line-height:1.25rem}.actions{position:sticky;top:0;right:0;button{display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;border:1px solid #d1d5db;border-radius:4px;background:#fff;padding:0;width:32px;height:32px;color:#4b5563;@media (pointer: fine){opacity:0;transition:75ms ease-in;.code-block:hover &,.code-block:focus-within &{opacity:1}&:hover{border-color:#9ca3af;background:#e5e7eb;color:#1f2937}}&:active{border-color:#9ca3af;background:#e5e7eb;color:#1f2937}}svg{width:16px;height:16px}}}.footer{display:flex;flex-wrap:wrap;gap:.5rem;margin:36px 0 0;border-top:1px solid #d1d5db;padding:36px 0 0;color:#4b5563;font-size:.875rem;line-height:1.25rem;a{color:#2563eb}}
+1
assets/index-Cr8Vao8y.js
··· 1 + const t=(t,e)=>({text:t,features:t.length>0?e:void 0}),e=(e,o)=>{if(void 0===o||0===o.length)return[t(e,void 0)];const r=[],c=e.length;let h=0,d=0;const n=(t,o)=>{let r=t;if(e.charCodeAt(r)<128)for(r+=1,d+=1;d+8<=o&&r+8<=c;){if(!((e.charCodeAt(r)|e.charCodeAt(r+1)|e.charCodeAt(r+2)|e.charCodeAt(r+3)|e.charCodeAt(r+4)|e.charCodeAt(r+5)|e.charCodeAt(r+6)|e.charCodeAt(r+7))<128))break;r+=8,d+=8}for(;d<o&&r<c;){const t=e.charCodeAt(r);t<128?(r+=1,d+=1):t<2048?(r+=1,d+=2):t<55296||t>56319?(r+=1,d+=3):(r+=2,d+=4)}return r};for(let s=0,a=o.length;s<a;s++){const c=o[s],{byteStart:a,byteEnd:i}=c.index,l=c.features;if(!(a>i||0===l.length)){if(d<a){const o=n(h,a);o>h&&r.push(t(e.slice(h,o),void 0)),h=o}{const o=n(h,i);o>h&&r.push(t(e.slice(h,o),l)),h=o}}}return h<c&&r.push(t(e.slice(h),void 0)),r};export{e as s};
+1
assets/index-XffDz6pj.css
··· 1 + /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{line-height:1.15;font-family:Inter,Roboto,ui-sans-serif,sans-serif,"Noto Color Emoji",Twemoji Mozilla;-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-size:1em;font-family:JetBrains Mono NL,ui-monospace,monospace}small{font-size:80%}sub,sup{position:relative;vertical-align:baseline;font-size:75%;line-height:0}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentcolor}button,input,optgroup,select,textarea{margin:0;font-size:100%;line-height:1.15;font-family:inherit}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}.bluesky-embed{--font-size: 16px;--font-family: system-ui, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";--max-feed-height: 600px}.bluesky-embed{--text-primary: #000000;--text-secondary: #455668;--text-link: #1083fe;--background-primary: #ffffff;--background-secondary: #455668;--divider-hover: #a9b7c5;--divider: #d4dbe2;--button: #1083fe;--button-text: #ffffff;--button-hover: #0168d5}.banner.svelte-1caksau{border:1px solid;border-radius:4px;padding:10px 12px;font-weight:500;font-size:.875rem;line-height:1.25rem;a{color:inherit;font-weight:600}}.type-alert.svelte-1caksau{border-color:#fca5a5;background:#fee2e2;color:#991b1b}.type-inform.svelte-1caksau{border-color:#bfdbfe;background:#dbeafe;color:#1e40af}.circular-spinner.svelte-v1ds86{display:block;animation:svelte-v1ds86-spin 1s linear infinite;margin:0 auto;width:24px;height:24px}@keyframes svelte-v1ds86-spin{to{transform:rotate(360deg)}}.accented.svelte-v1ds86{stroke:#2563eb}.background.svelte-v1ds86{stroke:#2563eb;opacity:20%}.field.svelte-763ovh{display:flex;flex-direction:column;gap:8px}.input-wrapper.svelte-763ovh{display:contents}.label.svelte-763ovh{color:#4b5563;font-weight:600;font-size:.875rem;line-height:1.25rem}.text-input.svelte-fpaunh{outline:2px none #2563eb;outline-offset:-1px;border:1px solid #9ca3af;border-radius:4px;padding:8px 12px;font-size:.875rem;line-height:1.25rem;&::placeholder{color:#9ca3af}&:focus{outline-style:solid}}.app.svelte-1j9k2rk{margin:0 auto;padding:36px 16px;width:100%;max-width:582px}.header.svelte-1j9k2rk{margin:24px 0}.main.svelte-1j9k2rk{margin:36px 0}.choices.svelte-1j9k2rk{display:flex;flex-direction:column;gap:8px;margin:16px 0 36px;border:0;padding:0}.choice.svelte-1j9k2rk{display:flex;align-items:center;gap:8px;font-size:.875rem;line-height:1.25rem;input:where(.svelte-1j9k2rk){appearance:none;outline:2px none #2563eb;outline-offset:2px;border:1px solid #9ca3af;border-radius:8px;width:16px;height:16px;&:checked{border:0;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-color:#2563eb}&:focus{outline-style:solid}}}.footer.svelte-1j9k2rk{display:flex;flex-wrap:wrap;gap:.5rem;margin:36px 0 0;border-top:1px solid #d1d5db;padding:36px 0 0;color:#4b5563;font-size:.875rem;line-height:1.25rem;a:where(.svelte-1j9k2rk){color:#2563eb}}
-41
assets/index-jW3IhGIV.js
··· 1 - (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}})();var ae,w,et,E,Me,tt,he,st,xe,_e,me,O={},rt=[],St=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ae=Array.isArray;function S(e,t){for(var s in t)e[s]=t[s];return e}function Ue(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Mt(e,t,s){var r,n,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?n=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?ae.call(arguments,2):s),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return te(e,a,r,n,null)}function te(e,t,s,r,n){var i={type:e,props:t,key:s,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++et,__i:-1,__u:0};return n==null&&w.vnode!=null&&w.vnode(i),i}function R(e){return e.children}function se(e,t){this.props=e,this.context=t}function I(e,t){if(t==null)return e.__?I(e.__,e.__i+1):null;for(var s;t<e.__k.length;t++)if((s=e.__k[t])!=null&&s.__e!=null)return s.__e;return typeof e.type=="function"?I(e):null}function nt(e){var t,s;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((s=e.__k[t])!=null&&s.__e!=null){e.__e=e.__c.base=s.__e;break}return nt(e)}}function Ee(e){(!e.__d&&(e.__d=!0)&&E.push(e)&&!ne.__r++||Me!==w.debounceRendering)&&((Me=w.debounceRendering)||tt)(ne)}function ne(){var e,t,s,r,n,i,a,c;for(E.sort(he);e=E.shift();)e.__d&&(t=E.length,r=void 0,i=(n=(s=e).__v).__e,a=[],c=[],s.__P&&((r=S({},n)).__v=n.__v+1,w.vnode&&w.vnode(r),ze(s.__P,r,n,s.__n,s.__P.namespaceURI,32&n.__u?[i]:null,a,i??I(n),!!(32&n.__u),c),r.__v=n.__v,r.__.__k[r.__i]=r,ot(a,r,c),r.__e!=i&&nt(r)),E.length>t&&E.sort(he));ne.__r=0}function it(e,t,s,r,n,i,a,c,l,o,u){var d,h,p,x,z,k,g=r&&r.__k||rt,y=t.length;for(l=Et(s,t,g,l),d=0;d<y;d++)(p=s.__k[d])!=null&&(h=p.__i===-1?O:g[p.__i]||O,p.__i=d,k=ze(e,p,h,n,i,a,c,l,o,u),x=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Pe(h.ref,null,p),u.push(p.ref,p.__c||x,p)),z==null&&x!=null&&(z=x),4&p.__u||h.__k===p.__k?l=at(p,l,e):typeof p.type=="function"&&k!==void 0?l=k:x&&(l=x.nextSibling),p.__u&=-7);return s.__e=z,l}function Et(e,t,s,r){var n,i,a,c,l,o=t.length,u=s.length,d=u,h=0;for(e.__k=[],n=0;n<o;n++)(i=t[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(c=n+h,(i=e.__k[n]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?te(null,i,null,null,null):Ae(i)?te(R,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?te(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(l=i.__i=Rt(i,s,c,d))!==-1&&(d--,(a=s[l])&&(a.__u|=2)),a==null||a.__v===null?(l==-1&&h--,typeof i.type!="function"&&(i.__u|=4)):l!==c&&(l==c-1?h--:l==c+1?h++:(l>c?h--:h++,i.__u|=4))):i=e.__k[n]=null;if(d)for(n=0;n<u;n++)(a=s[n])!=null&&!(2&a.__u)&&(a.__e==r&&(r=I(a)),ct(a,a));return r}function at(e,t,s){var r,n;if(typeof e.type=="function"){for(r=e.__k,n=0;r&&n<r.length;n++)r[n]&&(r[n].__=e,t=at(r[n],t,s));return t}e.__e!=t&&(t&&e.type&&!s.contains(t)&&(t=I(e)),s.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Rt(e,t,s,r){var n=e.key,i=e.type,a=s-1,c=s+1,l=t[s];if(l===null||l&&n==l.key&&i===l.type&&!(2&l.__u))return s;if((typeof i!="function"||i===R||n)&&r>(l!=null&&!(2&l.__u)?1:0))for(;a>=0||c<t.length;){if(a>=0){if((l=t[a])&&!(2&l.__u)&&n==l.key&&i===l.type)return a;a--}if(c<t.length){if((l=t[c])&&!(2&l.__u)&&n==l.key&&i===l.type)return c;c++}}return-1}function Re(e,t,s){t[0]==="-"?e.setProperty(t,s??""):e[t]=s==null?"":typeof s!="number"||St.test(t)?s:s+"px"}function K(e,t,s,r,n){var i;e:if(t==="style")if(typeof s=="string")e.style.cssText=s;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)s&&t in s||Re(e.style,t,"");if(s)for(t in s)r&&s[t]===r[t]||Re(e.style,t,s[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(st,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=s,s?r?s.u=r.u:(s.u=xe,e.addEventListener(t,i?me:_e,i)):e.removeEventListener(t,i?me:_e,i);else{if(n=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=s??"";break e}catch{}typeof s=="function"||(s==null||s===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&s==1?"":s))}}function qe(e){return function(t){if(this.l){var s=this.l[t.type+e];if(t.t==null)t.t=xe++;else if(t.t<s.u)return;return s(w.event?w.event(t):t)}}}function ze(e,t,s,r,n,i,a,c,l,o){var u,d,h,p,x,z,k,g,y,j,T,J,D,Se,X,ce,le,C=t.type;if(t.constructor!==void 0)return null;128&s.__u&&(l=!!(32&s.__u),i=[c=t.__e=s.__e]),(u=w.__b)&&u(t);e:if(typeof C=="function")try{if(g=t.props,y="prototype"in C&&C.prototype.render,j=(u=C.contextType)&&r[u.__c],T=u?j?j.props.value:u.__:r,s.__c?k=(d=t.__c=s.__c).__=d.__E:(y?t.__c=d=new C(g,T):(t.__c=d=new se(g,T),d.constructor=C,d.render=Zt),j&&j.sub(d),d.props=g,d.state||(d.state={}),d.context=T,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),y&&d.__s==null&&(d.__s=d.state),y&&C.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,C.getDerivedStateFromProps(g,d.__s))),p=d.props,x=d.state,d.__v=t,h)y&&C.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),y&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(y&&C.getDerivedStateFromProps==null&&g!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(g,T),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(g,d.__s,T)===!1||t.__v===s.__v)){for(t.__v!==s.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=s.__e,t.__k=s.__k,t.__k.some(function(B){B&&(B.__=t)}),J=0;J<d._sb.length;J++)d.__h.push(d._sb[J]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(g,d.__s,T),y&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,x,z)})}if(d.context=T,d.props=g,d.__P=e,d.__e=!1,D=w.__r,Se=0,y){for(d.state=d.__s,d.__d=!1,D&&D(t),u=d.render(d.props,d.state,d.context),X=0;X<d._sb.length;X++)d.__h.push(d._sb[X]);d._sb=[]}else do d.__d=!1,D&&D(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++Se<25);d.state=d.__s,d.getChildContext!=null&&(r=S(S({},r),d.getChildContext())),y&&!h&&d.getSnapshotBeforeUpdate!=null&&(z=d.getSnapshotBeforeUpdate(p,x)),c=it(e,Ae(ce=u!=null&&u.type===R&&u.key==null?u.props.children:u)?ce:[ce],t,s,r,n,i,a,c,l,o),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),k&&(d.__E=d.__=null)}catch(B){if(t.__v=null,l||i!=null)if(B.then){for(t.__u|=l?160:128;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(le=i.length;le--;)Ue(i[le]);else t.__e=s.__e,t.__k=s.__k;w.__e(B,t,s)}else i==null&&t.__v===s.__v?(t.__k=s.__k,t.__e=s.__e):c=t.__e=qt(s.__e,t,s,r,n,i,a,l,o);return(u=w.diffed)&&u(t),128&t.__u?void 0:c}function ot(e,t,s){for(var r=0;r<s.length;r++)Pe(s[r],s[++r],s[++r]);w.__c&&w.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){w.__e(i,n.__v)}})}function qt(e,t,s,r,n,i,a,c,l){var o,u,d,h,p,x,z,k=s.props,g=t.props,y=t.type;if(y==="svg"?n="http://www.w3.org/2000/svg":y==="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),i!=null){for(o=0;o<i.length;o++)if((p=i[o])&&"setAttribute"in p==!!y&&(y?p.localName===y:p.nodeType===3)){e=p,i[o]=null;break}}if(e==null){if(y===null)return document.createTextNode(g);e=document.createElementNS(n,y,g.is&&g),c&&(w.__m&&w.__m(t,i),c=!1),i=null}if(y===null)k===g||c&&e.data===g||(e.data=g);else{if(i=i&&ae.call(e.childNodes),k=s.props||O,!c&&i!=null)for(k={},o=0;o<e.attributes.length;o++)k[(p=e.attributes[o]).name]=p.value;for(o in k)if(p=k[o],o!="children"){if(o=="dangerouslySetInnerHTML")d=p;else if(!(o in g)){if(o=="value"&&"defaultValue"in g||o=="checked"&&"defaultChecked"in g)continue;K(e,o,null,p,n)}}for(o in g)p=g[o],o=="children"?h=p:o=="dangerouslySetInnerHTML"?u=p:o=="value"?x=p:o=="checked"?z=p:c&&typeof p!="function"||k[o]===p||K(e,o,p,k[o],n);if(u)c||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),it(e,Ae(h)?h:[h],t,s,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":n,i,a,i?i[0]:s.__k&&I(s,0),c,l),i!=null)for(o=i.length;o--;)Ue(i[o]);c||(o="value",y==="progress"&&x==null?e.removeAttribute("value"):x!==void 0&&(x!==e[o]||y==="progress"&&!x||y==="option"&&x!==k[o])&&K(e,o,x,k[o],n),o="checked",z!==void 0&&z!==e[o]&&K(e,o,z,k[o],n))}return e}function Pe(e,t,s){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(n){w.__e(n,s)}}function ct(e,t,s){var r,n;if(w.unmount&&w.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Pe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){w.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(n=0;n<r.length;n++)r[n]&&ct(r[n],t,s||typeof e.type!="function");s||Ue(e.__e),e.__c=e.__=e.__e=void 0}function Zt(e,t,s){return this.constructor(e,s)}function Lt(e,t,s){var r,n,i,a;t===document&&(t=document.documentElement),w.__&&w.__(e,t),n=(r=typeof s=="function")?null:t.__k,i=[],a=[],ze(t,e=(!r&&s||t).__k=Mt(R,null,[e]),n||O,O,t.namespaceURI,!r&&s?[s]:n?null:t.firstChild?ae.call(t.childNodes):null,i,!r&&s?s:n?n.__e:t.firstChild,r,a),ot(i,e,a)}ae=rt.slice,w={__e:function(e,t,s,r){for(var n,i,a;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),a=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,r||{}),a=n.__d),a)return n.__E=n}catch(c){e=c}throw e}},et=0,se.prototype.setState=function(e,t){var s;s=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=S({},this.state),typeof e=="function"&&(e=e(S({},s),this.props)),e&&S(s,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ee(this))},se.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ee(this))},se.prototype.render=R,E=[],tt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,he=function(e,t){return e.__v.__b-t.__v.__b},ne.__r=0,st=/(PointerCapture)$|Capture$/i,xe=0,_e=qe(!1),me=qe(!0);var It=0;function f(e,t,s,r,n,i){t||(t={});var a,c,l=t;"ref"in t&&(a=t.ref,delete t.ref);var o={type:e,props:l,key:s,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--It,__i:-1,__u:0,__source:n,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)l[c]===void 0&&(l[c]=a[c]);return w.vnode&&w.vnode(o),o}var W,A,de,Ze,ve=0,lt=[],U=w,Le=U.__b,Ie=U.__r,He=U.diffed,je=U.__c,De=U.unmount,Be=U.__;function Ce(e,t){U.__h&&U.__h(A,e,ve||t),ve=0;var s=A.__H||(A.__H={__:[],__h:[]});return e>=s.__.length&&s.__.push({}),s.__[e]}function Fe(e){return ve=1,Ht(ft,e)}function Ht(e,t,s){var r=Ce(W++,2);if(r.t=e,!r.__c&&(r.__=[ft(void 0,t),function(c){var l=r.__N?r.__N[0]:r.__[0],o=r.t(l,c);l!==o&&(r.__N=[o,r.__[1]],r.__c.setState({}))}],r.__c=A,!A.u)){var n=function(c,l,o){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(h){return!!h.__c});if(u.every(function(h){return!h.__N}))return!i||i.call(this,c,l,o);var d=r.__c.props!==c;return u.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(d=!0)}}),i&&i.call(this,c,l,o)||d};A.u=!0;var i=A.shouldComponentUpdate,a=A.componentWillUpdate;A.componentWillUpdate=function(c,l,o){if(this.__e){var u=i;i=void 0,n(c,l,o),i=u}a&&a.call(this,c,l,o)},A.shouldComponentUpdate=n}return r.__N||r.__}function dt(e,t){var s=Ce(W++,3);!U.__s&&ut(s.__H,t)&&(s.__=e,s.i=t,A.__H.__h.push(s))}function Ne(e,t){var s=Ce(W++,7);return ut(s.__H,t)&&(s.__=e(),s.__H=t,s.__h=e),s.__}function jt(){for(var e;e=lt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(be),e.__H.__h=[]}catch(t){e.__H.__h=[],U.__e(t,e.__v)}}U.__b=function(e){A=null,Le&&Le(e)},U.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Be&&Be(e,t)},U.__r=function(e){Ie&&Ie(e),W=0;var t=(A=e.__c).__H;t&&(de===A?(t.__h=[],A.__h=[],t.__.forEach(function(s){s.__N&&(s.__=s.__N),s.i=s.__N=void 0})):(t.__h.forEach(re),t.__h.forEach(be),t.__h=[],W=0)),de=A},U.diffed=function(e){He&&He(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lt.push(t)!==1&&Ze===U.requestAnimationFrame||((Ze=U.requestAnimationFrame)||Dt)(jt)),t.__H.__.forEach(function(s){s.i&&(s.__H=s.i),s.i=void 0})),de=A=null},U.__c=function(e,t){t.some(function(s){try{s.__h.forEach(re),s.__h=s.__h.filter(function(r){return!r.__||be(r)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],U.__e(r,s.__v)}}),je&&je(e,t)},U.unmount=function(e){De&&De(e);var t,s=e.__c;s&&s.__H&&(s.__H.__.forEach(function(r){try{re(r)}catch(n){t=n}}),s.__H=void 0,t&&U.__e(t,s.__v))};var Ve=typeof requestAnimationFrame=="function";function Dt(e){var t,s=function(){clearTimeout(r),Ve&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(s,100);Ve&&(t=requestAnimationFrame(s))}function re(e){var t=A,s=e.__c;typeof s=="function"&&(e.__c=void 0,s()),A=t}function be(e){var t=A;e.__c=e.__(),A=t}function ut(e,t){return!e||e.length!==t.length||t.some(function(s,r){return s!==e[r]})}function ft(e,t){return typeof t=="function"?t(e):t}const Bt=e=>typeof e=="object"?e.handle.bind(e):e,pt=({service:e,fetch:t=fetch})=>async(s,r)=>{const n=new URL(s,e);return t(n,r)},Vt=(e,t)=>{let s;for(const r in t){const n=t[r];n!==null&&(s??=new Headers(e),s.has(r)||s.set(r,n))}return s??e};class L extends Error{constructor(t,{kind:s=`HTTP error ${t}`,description:r="Unspecified error description",headers:n,cause:i}={}){super(`${s} > ${r}`,{cause:i}),this.name="XRPCError",this.status=t,this.kind=s,this.description=r,this.headers=n||{}}}class ht{constructor({handler:t,proxy:s}){this.handle=Bt(t),this.proxy=s}get(t,s){return this.request({type:"get",nsid:t,...s})}call(t,s){return this.request({type:"post",nsid:t,...s})}async request(t){const s=t.data,r=`/xrpc/${t.nsid}`+Wt(t.params),n=Yt(s),i=await this.handle(r,{method:t.type,signal:t.signal,body:n?JSON.stringify(s):s,headers:Vt(t.headers,{"content-type":n?"application/json":null,"atproto-proxy":Ot(this.proxy)})}),a=i.status,c=Object.fromEntries(i.headers),l=c["content-type"];let o,u;l&&(l.startsWith("application/json")?o=i.json():l.startsWith("text/")&&(o=i.text()));try{u=await(o||i.arrayBuffer().then(d=>new Uint8Array(d)))}catch(d){throw new L(2,{cause:d,kind:"InvalidResponse",description:"Failed to parse response body",headers:c})}if(a===200)return{data:u,headers:c};throw Gt(u)?new L(a,{kind:u.error,description:u.message,headers:c}):new L(a,{headers:c})}}const Ot=e=>e?`${e.service}#${e.type}`:null,Wt=e=>{let t;for(const s in e){const r=e[s];if(r!==void 0)if(t??=new URLSearchParams,Array.isArray(r))for(let n=0,i=r.length;n<i;n++){const a=r[n];t.append(s,""+a)}else t.set(s,""+r)}return t?"?"+t.toString():""},Yt=e=>{if(typeof e!="object"||e===null)return!1;if("toJSON"in e)return!0;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},Gt=e=>{if(typeof e!="object"||e===null)return!1;const t=typeof e.error,s=typeof e.message;return(t==="undefined"||t==="string")&&(s==="undefined"||s==="string")},Q=(e,t)=>({text:e,features:e.length>0?t:void 0}),_t=(e,t)=>{if(t===void 0||t.length===0)return[Q(e,void 0)];const s=[],r=e.length;let n=0,i=0;const a=(c,l)=>{let o=c;if(e.charCodeAt(o)<128)for(o+=1,i+=1;i+8<=l&&o+8<=r;){const d=e.charCodeAt(o),h=e.charCodeAt(o+1),p=e.charCodeAt(o+2),x=e.charCodeAt(o+3),z=e.charCodeAt(o+4),k=e.charCodeAt(o+5),g=e.charCodeAt(o+6),y=e.charCodeAt(o+7);if((d|h|p|x|z|k|g|y)<128){o+=8,i+=8;continue}break}for(;i<l&&o<r;){const d=e.charCodeAt(o);d<128?(o+=1,i+=1):d<2048?(o+=1,i+=2):d<55296||d>56319?(o+=1,i+=3):(o+=2,i+=4)}return o};for(let c=0,l=t.length;c<l;c++){const o=t[c],{byteStart:u,byteEnd:d}=o.index,h=o.features;if(!(u>d||h.length===0)){if(i<u){const p=a(n,u);p>n&&s.push(Q(e.slice(n,p),void 0)),n=p}{const p=a(n,d);p>n&&s.push(Q(e.slice(n,p),h)),n=p}}}return n<r&&s.push(Q(e.slice(n),void 0)),s},Jt=/[&"<]/g,Xt=/[&<]/g;function v(e,t){const s=String(e??""),r=t?Jt:Xt;r.lastIndex=0;let n="",i=0;for(;r.test(s);){const a=r.lastIndex-1,c=s[a];n+=s.substring(i,a)+(c==="&"?"&amp;":c==='"'?"&quot;":"&lt;"),i=a+1}return n+s.substring(i)}function _(e,t,s=!1){if(t==null||!t&&s||t===""&&e==="class")return"";const n=s?"":`="${v(t,!0)}"`;return` ${e}${n}`}function Kt(e,t){const s={out:""};return e(s,t?.props??{}),{head:"",body:s.out}}function Y(e){return typeof e=="string"?e:e==null?"":e+""}const Qt="https://public.api.bsky.app",$t="!no-unauthenticated";function mt(e,t){const{children:s}=t;e.out+='<div class="bluesky-embed s-3olstj">',s(e),e.out+="</div>"}const G=e=>`https://bsky.app/profile/${e}`,oe=(e,t)=>`https://bsky.app/profile/${e}/post/${t}`,es=e=>`https://bsky.app/hashtag/${e}`,vt=(e,t)=>`https://bsky.app/profile/${e}/feed/${t}`,ts=(e,t)=>`https://bsky.app/starter-pack/${e}/${t}`,ss=(e,t)=>`https://ogcard.cdn.bsky.app/start/${e}/${t}`;let Oe=0,ue=0;const rs=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),ns=new Intl.DateTimeFormat("en-US",{dateStyle:"medium"}),is=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}),bt=e=>{const t=new Date(e),s=t.getTime();if(isNaN(s))return"N/A";const r=Date.now();if(r>ue){const n=new Date(r);n.setMonth(0,1),n.setHours(0,0,0),Oe=n.getTime(),n.setFullYear(n.getFullYear()+1,0,0),n.setHours(23,59,59,999),ue=n.getTime()}return s>=Oe&&s<=ue?is.format(t):ns.format(t)},gt=e=>{const t=new Date(e);return isNaN(t.getTime())?"N/A":rs.format(t)},kt=new Intl.NumberFormat("en-US"),as=new Intl.NumberFormat("en-US",{notation:"compact"}),$=e=>e<1e3?""+e:e<1e5?kt.format(e):as.format(e),ee=e=>kt.format(e),os=/^at:\/\/((?:did:[a-zA-Z0-9._:%-]+)|(?:[a-zA-Z0-9][a-zA-Z0-9-.]*))(?:\/([a-zA-Z0-9.-]+)(?:\/([a-zA-Z0-9_~.:-]{1,512}))?)?\/?(?:\?([^#\s]*))?(?:#([^\s]*))?$/,M=e=>{const t=os.exec(e);if(!t)throw new cs(`invalid at-uri: ${e}`);return{repo:t[1],collection:t[2]??"",rkey:t[3]??"",query:t[4]??"",fragment:t[5]??""}};let cs=class extends Error{};const ls=e=>{let t;if("parse"in URL)t=URL.parse(e);else try{t=new URL(e)}catch{}return t&&(t.protocol==="https:"||t.protocol==="http:")?t:null};function ds(e,t){const{embed:s}=t,r=s.external,n=ls(r.uri)?.host;e.out+=`<a target="_blank"${_("href",n&&r.uri)} rel="noopener noreferrer nofollow" class="external-embed s-rtbqd8">`,r.thumb&&(e.out+=`<img loading="lazy"${_("src",r.thumb)} alt="" class="thumbnail s-rtbqd8">`),e.out+=` <div class="meta s-rtbqd8"><p class="title s-rtbqd8">${v(r.title)}</p> <p class="description s-rtbqd8">${v(r.description)}</p> `,n&&(e.out+=`<div class="domain s-rtbqd8"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="m4.172 8.07 3.94 2.957.977-1.941 3.887-.978 1.15-4.6M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-6.078 4.865.973-1.946-2.869-1.928-1.89-.12-1.08 1.075 1.947 2.919h2.919Z"></path></svg> <span class="domain-name">${v(n)}</span></div>`),e.out+="</div></a>"}function us(e,t){const{embed:s}=t,r=s.creator,n=vt(r.did,M(s.uri).rkey);e.out+=`<a target="_blank"${_("href",n)} class="feed-embed s-156tlwp"><div class="main s-156tlwp"><div class="avatar-wrapper s-156tlwp">`,s.avatar?e.out+=`<img loading="lazy"${_("src",s.avatar)} alt="" class="avatar s-156tlwp">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-156tlwp"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-156tlwp">${v(s.displayName)}</p> <p class="creator s-156tlwp">Feed by @${v(r.handle)}</p></div></div> <p class="description s-156tlwp">${v(s.description)}</p></a>`}function F(e,t){e.out+=`<img loading="lazy"${_("src",t.thumb)}${_("alt",t.alt)} class="image s-t3k6fc">`}function ge(e,t){const{embed:s,borderless:r,standalone:n}=t,i=s.images,a=i.length;if(e.out+=`<div${_("class",`${Y("image-embed"+(r?"":" is-bordered")+(n&&a===1?" is-aligned":""))} s-t3k6fc`)}>`,a===4)e.out+='<div class="grid s-t3k6fc"><div class="col s-t3k6fc"><div class="item wide s-t3k6fc">',F(e,i[0]),e.out+='</div> <div class="item wide s-t3k6fc">',F(e,i[1]),e.out+='</div></div> <div class="col s-t3k6fc"><div class="item wide s-t3k6fc">',F(e,i[2]),e.out+='</div> <div class="item wide s-t3k6fc">',F(e,i[3]),e.out+="</div></div></div>";else if(a===3)e.out+='<div class="grid s-t3k6fc"><div class="col square s-t3k6fc"><div class="item s-t3k6fc">',F(e,i[0]),e.out+='</div></div> <div class="col square s-t3k6fc"><div class="item s-t3k6fc">',F(e,i[1]),e.out+='</div> <div class="item s-t3k6fc">',F(e,i[2]),e.out+="</div></div></div>";else if(a===2)e.out+='<div class="grid s-t3k6fc"><div class="col s-t3k6fc"><div class="item square s-t3k6fc">',F(e,i[0]),e.out+='</div></div> <div class="col s-t3k6fc"><div class="item square s-t3k6fc">',F(e,i[1]),e.out+="</div></div></div>";else if(a===1){const c=i[0],l=n&&c.aspectRatio;e.out+=`<div${_("class",`${Y("single-item"+(l?" is-standalone":""))} s-t3k6fc`)}${_("style",l?`aspect-ratio: ${l.width}/${l.height}`:"")}>`,F(e,c),e.out+=" ",l&&(e.out+='<div class="placeholder s-t3k6fc"></div>'),e.out+="</div>"}e.out+="</div>"}const fs=e=>{switch(e){case"app.bsky.graph.defs#curatelist":return"User list";case"app.bsky.graph.defs#modlist":return"Moderation list"}return"Unknown list"};function ps(e,t){const{embed:s}=t,r=s.creator,n=vt(r.did,M(s.uri).rkey);e.out+=`<a target="_blank"${_("href",n)} class="list-embed s-6uize5"><div class="main s-6uize5"><div class="avatar-wrapper s-6uize5">`,s.avatar?e.out+=`<img loading="lazy"${_("src",s.avatar)} alt="" class="avatar s-6uize5">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-6uize5"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-6uize5">${v(s.name)}</p> <p class="creator s-6uize5">${v(fs(s.purpose))} by @${v(r.handle)}</p></div></div> <p class="description s-6uize5">${v(s.description)}</p></a>`}function ke(e,t){const{post:s,embed:r,borderless:n=!1,standalone:i=!1}=t,a=i&&r.aspectRatio,c=s&&oe(s.author.did,M(s.uri).rkey);function l(o){o.out+=`<img loading="lazy"${_("src",r.thumbnail)} alt="" class="thumbnail s-1azk58e"> `,a&&(o.out+='<div class="placeholder s-1azk58e"></div>'),o.out+=' <div class="play s-1azk58e"><svg class="icon s-1azk58e" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M22 12 5 2v20l17-10Z"></path></svg></div>'}i?(e.out+=`<a target="_blank"${_("href",c)}${_("class",`${Y("video-embed"+(n?"":" is-bordered")+(i?" is-standalone":""))} s-1azk58e`)}><div class="constrainer s-1azk58e"${_("style",a?`aspect-ratio: ${a.width}/${a.height}`:"")}>`,l(e),e.out+="</div></a>"):(e.out+=`<div${_("class",`${Y("video-embed"+(n?"":" is-bordered"))} s-1azk58e`)}${_("style",a?`aspect-ratio: ${a.width}/${a.height}`:"")}>`,l(e),e.out+="</div>")}const yt=e=>{if(e){if(e.$type==="app.bsky.embed.images#view")return e;if(e.$type==="app.bsky.embed.recordWithMedia#view")return yt(e.media)}},wt=e=>{if(e){if(e.$type==="app.bsky.embed.video#view")return e;if(e.$type==="app.bsky.embed.recordWithMedia#view")return wt(e.media)}};function hs(e,t){const{embed:s,large:r=!1}=t,n=s.value,i=n.text.trim(),a=s.author,c=a.displayName?.trim(),l=s.embeds?.[0],o=yt(l),u=wt(l),d=oe(a.did,M(s.uri).rkey);e.out+=`<a target="_blank"${_("href",d)} class="quote-embed s-za6fip"><div class="meta s-za6fip"><div class="avatar-wrapper s-za6fip">`,a.avatar&&(e.out+=`<img loading="lazy"${_("src",a.avatar)} alt="" class="avatar s-za6fip">`),e.out+='</div> <span class="name-wrapper s-za6fip">',c&&(e.out+=`<bdi class="display-name-wrapper s-za6fip"><span class="display-name s-za6fip">${v(c)}</span></bdi>`),e.out+=` <span class="handle s-za6fip">@${v(a.handle)}</span></span> <span aria-hidden="true" class="dot s-za6fip">·</span> <time${_("datetime",n.createdAt)} class="date s-za6fip">${v(bt(n.createdAt))}</time></div> `,i?(e.out+='<div class="body s-za6fip">',r||(o?(e.out+='<div class="aside s-za6fip">',ge(e,{embed:o}),e.out+="</div>"):u&&(e.out+='<div class="aside s-za6fip">',ke(e,{embed:u}),e.out+="</div>")),e.out+=` <p class="text s-za6fip">${v(i)}</p></div>`):e.out+='<div class="divide s-za6fip"></div>',e.out+=" ",(r||!i)&&(o?ge(e,{embed:o,borderless:!0}):u&&ke(e,{embed:u,borderless:!0})),e.out+="</a>"}function _s(e,t){const{embed:s,large:r=!1}=t,n=s.record,i=s.creator,a=i.did,c=M(s.uri).rkey,l=ts(a,c);if(e.out+=`<a target="_blank"${_("href",l)} class="starterpack-embed s-15v965v">`,r){const o=ss(a,c);e.out+=`<img loading="lazy"${_("src",o)} alt="" class="banner s-15v965v">`}e.out+=` <div class="meta s-15v965v"><div class="main s-15v965v"><svg fill="none" viewBox="0 0 24 24" class="avatar s-15v965v"><defs><linearGradient id="a" x1="0" x2="100%" y1="0" y2="0" gradientTransform="rotate(45)"><stop offset="0" stop-color="#0A7AFF"></stop><stop offset="1" stop-color="#59B9FF"></stop></linearGradient></defs><path fill="url(#a)" fill-rule="evenodd" d="M11.26 5.227 5.02 6.899c-.734.197-1.17.95-.973 1.685l1.672 6.24c.197.734.951 1.17 1.685.973l6.24-1.672a1.376 1.376 0 0 0 .973-1.685L12.945 6.2a1.375 1.375 0 0 0-1.685-.973Zm-6.566.459a2.632 2.632 0 0 0-1.86 3.223l1.672 6.24a2.632 2.632 0 0 0 3.223 1.861l6.24-1.672a2.631 2.631 0 0 0 1.861-3.223l-1.672-6.24a2.632 2.632 0 0 0-3.223-1.861l-6.24 1.672Z" clip-rule="evenodd"></path><path fill="url(#a)" fill-rule="evenodd" d="M15.138 18.411a4.606 4.606 0 1 0 0-9.211 4.606 4.606 0 0 0 0 9.211Zm0 1.257a5.862 5.862 0 1 0 0-11.724 5.862 5.862 0 0 0 0 11.724Z" clip-rule="evenodd"></path></svg> <div class="info"><p class="name s-15v965v">${v(n.name)}</p> <p class="creator s-15v965v">Starter pack by @${v(i.handle)}</p></div></div> <p class="description s-15v965v">${v(n.description)}</p></div></a>`}function We(e,t){e.out+=`<div class="message s-azdpbr">${v(t)}</div>`}const ms=e=>{switch(e){case"app.bsky.feed.post":return"post";case"app.bsky.feed.generator":return"feed";case"app.bsky.graph.list":return"list";case"app.bsky.graph.starterpack":return"starter pack";case"app.bsky.labeler.service":return"labeler"}return null};function xt(e,t){const{post:s,embed:r,large:n=!1}=t;function i(c,l){l.$type==="app.bsky.embed.external#view"?ds(c,{embed:l}):l.$type==="app.bsky.embed.images#view"?ge(c,{embed:l,standalone:!0}):l.$type==="app.bsky.embed.video#view"?ke(c,{post:s,embed:l,standalone:!0}):We(c,"Unsupported media embed")}function a(c,l){const o=l.record;if(o.$type==="app.bsky.embed.record#viewRecord")hs(c,{embed:o,large:n});else if(o.$type==="app.bsky.feed.defs#generatorView")us(c,{embed:o});else if(o.$type==="app.bsky.graph.defs#listView")ps(c,{embed:o});else if(o.$type==="app.bsky.graph.defs#starterPackViewBasic")_s(c,{embed:o,large:n});else{const u=M(o.uri),d=ms(u.collection),h=d&&(o.$type==="app.bsky.embed.record#viewNotFound"||o.$type==="app.bsky.embed.record#viewBlocked"||o.$type==="app.bsky.embed.record#viewDetached");We(c,h?`This ${d} is unavailable`:"Unsupported record embed")}}e.out+='<div class="embeds s-azdpbr">',r.$type==="app.bsky.embed.recordWithMedia#view"?(i(e,r.media),e.out+=" ",a(e,r.record)):r.$type==="app.bsky.embed.record#view"?a(e,r):i(e,r),e.out+="</div>"}const vs=e=>e?.find(t=>t.$type==="app.bsky.richtext.facet#link"||t.$type==="app.bsky.richtext.facet#mention"||t.$type==="app.bsky.richtext.facet#tag");function At(e,t){const{text:s,facets:r,large:n}=t,i=_t(s,r);e.out+=`<p${_("class",`${Y("rich-text"+(n?" is-large":" is-small"))} s-1lecfnd`)}>`;for(let a=0,c=i.length;a<c;a++){let l=i[a];const o=vs(l.features);o?o.$type==="app.bsky.richtext.facet#link"?e.out+=`<a target="_blank"${_("href",o.uri)} rel="noopener nofollow" class="link s-1lecfnd">${v(l.text)}</a>`:o.$type==="app.bsky.richtext.facet#mention"?e.out+=`<a target="_blank"${_("href",G(o.did))} class="mention s-1lecfnd">${v(l.text)}</a>`:o.$type==="app.bsky.richtext.facet#tag"&&(e.out+=`<a target="_blank"${_("href",es(o.tag))} class="hashtag s-1lecfnd">${v(l.text)}</a>`):e.out+=v(l.text)}e.out+="</p>"}function bs(e,t){const{post:s,parent:r,prev:n=!1}=t,i=s.author,a=G(i.did),c=i.displayName?.trim(),l=s.record,o=oe(i.did,M(s.uri).rkey),u=s.replyCount||0,d=s.likeCount||0,h=(s.repostCount||0)+(s.quoteCount||0);if(e.out+=`<div class="highlighted-post s-hik11q"><div class="meta s-hik11q"><a${_("href",a)} target="_blank" class="avatar-wrapper s-hik11q">`,i.avatar&&(e.out+=`<img loading="lazy"${_("src",i.avatar)} class="avatar s-hik11q">`),e.out+=`</a> <a${_("href",a)} target="_blank" class="name-wrapper s-hik11q">`,c&&(e.out+=`<bdi class="display-name-wrapper s-hik11q"><span class="display-name s-hik11q">${v(c)}</span></bdi>`),e.out+=` <span class="handle s-hik11q">@${v(i.handle)}</span></a> `,n||(e.out+='<svg class="logo s-hik11q" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg>'),e.out+="</div> ",!n&&l.reply){if(e.out+='<p class="context s-hik11q">',r){const p=r.author;e.out+=`Replying to <a target="_blank"${_("href",G(p.did))} dir="auto" class="s-hik11q">${v(p.displayName?.trim()||`@${p.handle}`)}</a>`}else e.out+="Replying to an unknown post";e.out+="</p>"}e.out+=" ",At(e,{text:l.text,facets:l.facets,large:!0}),e.out+=" ",s.embed&&xt(e,{post:s,embed:s.embed,large:!0}),e.out+=` <time${_("datetime",l.createdAt)} class="date s-hik11q">${v(gt(l.createdAt))}</time> <div class="stats s-hik11q"><span class="stat s-hik11q"${_("title",d===1?`${ee(d)} like`:`${ee(d)} likes`)}><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M12 5.768c6.162-6.25 16.725 5.358 0 14.732C-4.725 11.126 5.838-.482 12 5.768Z"></path></svg> <span>${v($(d))}</span></span> <span class="stat s-hik11q"${_("title",h===1?`${ee(h)} repost`:`${ee(h)} reposts`)}><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="m17 3 3 3-3 3M7 21l-3-3 3-3m-2 3h15v-5M4 11V6h15"></path></svg> <span>${v($(h))}</span></span> <div class="gap s-hik11q"></div> <a${_("href",o)} target="_blank" class="permalink s-hik11q"><span>${v(u?u===1?`Read ${$(u)} reply on Bluesky`:`Read ${$(u)} replies on Bluesky`:"View on Bluesky")}</span></a></div></div>`}function gs(e,t){const{post:s,parent:r,prev:n}=t,i=s.author,a=G(i.did),c=i.displayName?.trim(),l=s.record,o=oe(i.did,M(s.uri).rkey);if(e.out+='<div class="post s-12mzi62">',n||(e.out+='<svg class="logo s-12mzi62" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg>'),e.out+=` <div class="aside s-12mzi62"><a target="_blank"${_("href",a)} class="avatar-wrapper s-12mzi62">`,i.avatar&&(e.out+=`<img loading="lazy"${_("src",i.avatar)} alt="" class="avatar s-12mzi62">`),e.out+=`</a> <div class="line s-12mzi62"></div></div> <div class="main s-12mzi62"><div class="meta s-12mzi62"><a${_("href",a)} target="_blank" class="name-wrapper s-12mzi62">`,c&&(e.out+=`<bdi class="display-name-wrapper s-12mzi62"><span class="display-name s-12mzi62">${v(c)}</span></bdi>`),e.out+=` <span class="handle s-12mzi62">@${v(i.handle)}</span></a> <span aria-hidden="true" class="dot s-12mzi62">·</span> <a target="_blank"${_("href",o)}${_("title",gt(l.createdAt))} class="date s-12mzi62"><time${_("datetime",l.createdAt)}>${v(bt(l.createdAt))}</time></a></div> `,!n&&l.reply){if(e.out+='<p class="context s-12mzi62">',r){const u=r.author;e.out+=`Replying to <a target="_blank"${_("href",G(u.did))} dir="auto" class="s-12mzi62">${v(u.displayName?.trim()||`@${u.handle}`)}</a>`}else e.out+="Replying to an unknown post";e.out+="</p>"}e.out+=" ",At(e,{text:l.text,facets:l.facets}),e.out+=" ",s.embed&&xt(e,{post:s,embed:s.embed}),e.out+="</div></div>"}function Ye(e,t){mt(e,{children:s=>{s.out+=`<div class="message s-1q9cbx0">${v(t)}</div>`}})}const ks=(e,t,s)=>{const r=[];let n=0,i=t?1:2,a=e;for(;a&&!(a.$type==="app.bsky.feed.defs#notFoundPost"||a.$type==="app.bsky.feed.defs#blockedPost");){const c=a.post;if(n!==0&&(r[n-1].parent=c),++n>i)break;const l=c.author;if(!s&&l.labels?.some(o=>o.val==="!no-unauthenticated"))break;r.push({post:c,parent:null}),a=a.parent}return r.reverse()};function ys(e,t){const{thread:s,contextless:r,allowUnauthenticated:n}=t,i=!n&&s!==null&&s.$type==="app.bsky.feed.defs#threadViewPost"&&s.post.author.labels?.some(a=>a.val===$t);if(s===null)Ye(e,"The post can't be found, it may have been deleted.");else if(i)Ye(e,"The author has requested for their posts to not be displayed on external sites.");else{const a=ks(s,r,n);mt(e,{children:c=>{const l=a;for(let o=0,u=l.length;o<u;o++){let{post:d,parent:h}=l[o];const p=o!==0;o===a.length-1?bs(c,{post:d,parent:h,prev:p}):gs(c,{post:d,parent:h,prev:p})}}})}}const ws=async e=>{const t=new ht({handler:pt({service:e.serviceUri??Qt})}),s=e.contextless??!1,{data:r}=await t.get("app.bsky.feed.getPostThread",{signal:e.signal,params:{uri:e.uri,parentHeight:s?1:2,depth:0}}).catch(i=>i instanceof L&&i.kind==="NotFound"?{data:null}:Promise.reject(i));return{thread:r?.thread.$type==="app.bsky.feed.defs#threadViewPost"?r.thread:null,contextless:s,allowUnauthenticated:e.allowUnauthenticated??!1}},xs=e=>Kt(ys,{props:e}).body,As=/[&"<]/g,Us=/[&<]/g;function b(e,t){const s=String(e??""),r=t?As:Us;r.lastIndex=0;let n="",i=0;for(;r.test(s);){const a=r.lastIndex-1,c=s[a];n+=s.substring(i,a)+(c==="&"?"&amp;":c==='"'?"&quot;":"&lt;"),i=a+1}return n+s.substring(i)}function m(e,t,s=!1){if(t==null||!t&&s||t===""&&e==="class")return"";const n=s?"":`="${b(t,!0)}"`;return` ${e}${n}`}function zs(e,t){const s={out:""};return e(s,t?.props??{}),{head:"",body:s.out}}function H(e){return typeof e=="string"?e:e==null?"":e+""}const Ps="https://public.api.bsky.app",Ge="!no-unauthenticated";function Ut(e,t){const{children:s}=t;e.out+='<div class="bluesky-embed s-1pz15a1">',s(e),e.out+="</div>"}const V=e=>`https://bsky.app/profile/${e}`,Te=(e,t)=>`https://bsky.app/profile/${e}/post/${t}`,Cs=e=>`https://bsky.app/hashtag/${e}`,zt=(e,t)=>`https://bsky.app/profile/${e}/feed/${t}`,Fs=(e,t)=>`https://bsky.app/starter-pack/${e}/${t}`,Ns=(e,t)=>`https://ogcard.cdn.bsky.app/start/${e}/${t}`;let Je=0,fe=0;const Ts=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),Ss=new Intl.DateTimeFormat("en-US",{dateStyle:"medium"}),Ms=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}),Pt=e=>{const t=new Date(e),s=t.getTime();if(isNaN(s))return"N/A";const r=Date.now();if(r>fe){const n=new Date(r);n.setMonth(0,1),n.setHours(0,0,0),Je=n.getTime(),n.setFullYear(n.getFullYear()+1,0,0),n.setHours(23,59,59,999),fe=n.getTime()}return s>=Je&&s<=fe?Ms.format(t):Ss.format(t)},Es=e=>{const t=new Date(e);return isNaN(t.getTime())?"N/A":Ts.format(t)},Rs=/^at:\/\/((?:did:[a-zA-Z0-9._:%-]+)|(?:[a-zA-Z0-9][a-zA-Z0-9-.]*))(?:\/([a-zA-Z0-9.-]+)(?:\/([a-zA-Z0-9_~.:-]{1,512}))?)?\/?(?:\?([^#\s]*))?(?:#([^\s]*))?$/,q=e=>{const t=Rs.exec(e);if(!t)throw new qs(`invalid at-uri: ${e}`);return{repo:t[1],collection:t[2]??"",rkey:t[3]??"",query:t[4]??"",fragment:t[5]??""}};let qs=class extends Error{};const Ct=new Intl.NumberFormat("en-US"),Zs=new Intl.NumberFormat("en-US",{notation:"compact"}),pe=e=>e<1e3?""+e:e<1e5?Ct.format(e):Zs.format(e),Z=e=>Ct.format(e),Ls=e=>{let t;if("parse"in URL)t=URL.parse(e);else try{t=new URL(e)}catch{}return t&&(t.protocol==="https:"||t.protocol==="http:")?t:null};function Is(e,t){const{embed:s}=t,r=s.external,n=Ls(r.uri)?.host;e.out+=`<a target="_blank"${m("href",n&&r.uri)} rel="noopener noreferrer nofollow" class="external-embed s-au8a8u">`,r.thumb&&(e.out+=`<img loading="lazy"${m("src",r.thumb)} alt="" class="thumbnail s-au8a8u">`),e.out+=` <div class="meta s-au8a8u"><p class="title s-au8a8u">${b(r.title)}</p> <p class="description s-au8a8u">${b(r.description)}</p> `,n&&(e.out+=`<div class="domain s-au8a8u"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="m4.172 8.07 3.94 2.957.977-1.941 3.887-.978 1.15-4.6M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-6.078 4.865.973-1.946-2.869-1.928-1.89-.12-1.08 1.075 1.947 2.919h2.919Z"></path></svg> <span class="domain-name">${b(n)}</span></div>`),e.out+="</div></a>"}function Hs(e,t){const{embed:s}=t,r=s.creator,n=zt(r.did,q(s.uri).rkey);e.out+=`<a target="_blank"${m("href",n)} class="feed-embed s-1c1phtf"><div class="main s-1c1phtf"><div class="avatar-wrapper s-1c1phtf">`,s.avatar?e.out+=`<img loading="lazy"${m("src",s.avatar)} alt="" class="avatar s-1c1phtf">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-1c1phtf"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-1c1phtf">${b(s.displayName)}</p> <p class="creator s-1c1phtf">Feed by @${b(r.handle)}</p></div></div> <p class="description s-1c1phtf">${b(s.description)}</p></a>`}function N(e,t){e.out+=`<img loading="lazy"${m("src",t.thumb)}${m("alt",t.alt)} class="image s-1d339cy">`}function ye(e,t){const{embed:s,borderless:r,standalone:n}=t,i=s.images,a=i.length;if(e.out+=`<div${m("class",`${H("image-embed"+(r?"":" is-bordered")+(n&&a===1?" is-aligned":""))} s-1d339cy`)}>`,a===4)e.out+='<div class="grid s-1d339cy"><div class="col s-1d339cy"><div class="item wide s-1d339cy">',N(e,i[0]),e.out+='</div> <div class="item wide s-1d339cy">',N(e,i[1]),e.out+='</div></div> <div class="col s-1d339cy"><div class="item wide s-1d339cy">',N(e,i[2]),e.out+='</div> <div class="item wide s-1d339cy">',N(e,i[3]),e.out+="</div></div></div>";else if(a===3)e.out+='<div class="grid s-1d339cy"><div class="col square s-1d339cy"><div class="item s-1d339cy">',N(e,i[0]),e.out+='</div></div> <div class="col square s-1d339cy"><div class="item s-1d339cy">',N(e,i[1]),e.out+='</div> <div class="item s-1d339cy">',N(e,i[2]),e.out+="</div></div></div>";else if(a===2)e.out+='<div class="grid s-1d339cy"><div class="col s-1d339cy"><div class="item square s-1d339cy">',N(e,i[0]),e.out+='</div></div> <div class="col s-1d339cy"><div class="item square s-1d339cy">',N(e,i[1]),e.out+="</div></div></div>";else if(a===1){const c=i[0],l=n&&c.aspectRatio;e.out+=`<div${m("class",`${H("single-item"+(l?" is-standalone":""))} s-1d339cy`)}${m("style",l?`aspect-ratio: ${l.width}/${l.height}`:"")}>`,N(e,c),e.out+=" ",l&&(e.out+='<div class="placeholder s-1d339cy"></div>'),e.out+="</div>"}e.out+="</div>"}const js=e=>{switch(e){case"app.bsky.graph.defs#curatelist":return"User list";case"app.bsky.graph.defs#modlist":return"Moderation list"}return"Unknown list"};function Ds(e,t){const{embed:s}=t,r=s.creator,n=zt(r.did,q(s.uri).rkey);e.out+=`<a target="_blank"${m("href",n)} class="list-embed s-1mo1e33"><div class="main s-1mo1e33"><div class="avatar-wrapper s-1mo1e33">`,s.avatar?e.out+=`<img loading="lazy"${m("src",s.avatar)} alt="" class="avatar s-1mo1e33">`:e.out+='<svg viewBox="0 0 32 32" class="avatar s-1mo1e33"><path fill="#0070FF" d="M0 0h32v32H0z"></path><path fill="#fff" d="M22.153 22.354a9.328 9.328 0 0 0 3.837-.491 3.076 3.076 0 0 0-4.802-2.79m.965 3.281a6.128 6.128 0 0 0-.965-3.28Zm-11.342-3.28a3.077 3.077 0 0 0-4.801 2.79 9.21 9.21 0 0 0 3.835.49m.966-3.28a6.127 6.127 0 0 0-.966 3.28Zm8.265-8.997a3.076 3.076 0 1 1-6.153 0 3.076 3.076 0 0 1 6.153 0Zm6.154 3.077a2.307 2.307 0 1 1-4.615 0 2.307 2.307 0 0 1 4.615 0Zm-13.847 0a2.307 2.307 0 1 1-4.614 0 2.307 2.307 0 0 1 4.614 0Z"></path><path fill="#fff" d="M22 22c0 3.314-2.686 3.5-6 3.5s-6-.186-6-3.5a6 6 0 0 1 12 0Z"></path></svg>',e.out+=`</div> <div class="info"><p class="name s-1mo1e33">${b(s.name)}</p> <p class="creator s-1mo1e33">${b(js(s.purpose))} by @${b(r.handle)}</p></div></div> <p class="description s-1mo1e33">${b(s.description)}</p></a>`}function we(e,t){const{post:s,embed:r,borderless:n=!1,standalone:i=!1}=t,a=i&&r.aspectRatio,c=s&&Te(s.author.did,q(s.uri).rkey);function l(o){o.out+=`<img loading="lazy"${m("src",r.thumbnail)} alt="" class="thumbnail s-1h3cnsw"> `,a&&(o.out+='<div class="placeholder s-1h3cnsw"></div>'),o.out+=' <div class="play s-1h3cnsw"><svg class="icon s-1h3cnsw" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M22 12 5 2v20l17-10Z"></path></svg></div>'}i?(e.out+=`<a target="_blank"${m("href",c)}${m("class",`${H("video-embed"+(n?"":" is-bordered")+(i?" is-standalone":""))} s-1h3cnsw`)}><div class="constrainer s-1h3cnsw"${m("style",a?`aspect-ratio: ${a.width}/${a.height}`:"")}>`,l(e),e.out+="</div></a>"):(e.out+=`<div${m("class",`${H("video-embed"+(n?"":" is-bordered"))} s-1h3cnsw`)}${m("style",a?`aspect-ratio: ${a.width}/${a.height}`:"")}>`,l(e),e.out+="</div>")}const Ft=e=>{if(e){if(e.$type==="app.bsky.embed.images#view")return e;if(e.$type==="app.bsky.embed.recordWithMedia#view")return Ft(e.media)}},Nt=e=>{if(e){if(e.$type==="app.bsky.embed.video#view")return e;if(e.$type==="app.bsky.embed.recordWithMedia#view")return Nt(e.media)}};function Bs(e,t){const{embed:s,large:r=!1}=t,n=s.value,i=n.text.trim(),a=s.author,c=a.displayName?.trim(),l=s.embeds?.[0],o=Ft(l),u=Nt(l),d=Te(a.did,q(s.uri).rkey);e.out+=`<a target="_blank"${m("href",d)} class="quote-embed s-vbjlyj"><div class="meta s-vbjlyj"><div class="avatar-wrapper s-vbjlyj">`,a.avatar&&(e.out+=`<img loading="lazy"${m("src",a.avatar)} alt="" class="avatar s-vbjlyj">`),e.out+='</div> <span class="name-wrapper s-vbjlyj">',c&&(e.out+=`<bdi class="display-name-wrapper s-vbjlyj"><span class="display-name s-vbjlyj">${b(c)}</span></bdi>`),e.out+=` <span class="handle s-vbjlyj">@${b(a.handle)}</span></span> <span aria-hidden="true" class="dot s-vbjlyj">·</span> <time${m("datetime",n.createdAt)} class="date s-vbjlyj">${b(Pt(n.createdAt))}</time></div> `,i?(e.out+='<div class="body s-vbjlyj">',r||(o?(e.out+='<div class="aside s-vbjlyj">',ye(e,{embed:o}),e.out+="</div>"):u&&(e.out+='<div class="aside s-vbjlyj">',we(e,{embed:u}),e.out+="</div>")),e.out+=` <p class="text s-vbjlyj">${b(i)}</p></div>`):e.out+='<div class="divide s-vbjlyj"></div>',e.out+=" ",(r||!i)&&(o?ye(e,{embed:o,borderless:!0}):u&&we(e,{embed:u,borderless:!0})),e.out+="</a>"}function Vs(e,t){const{embed:s,large:r=!1}=t,n=s.record,i=s.creator,a=i.did,c=q(s.uri).rkey,l=Fs(a,c);if(e.out+=`<a target="_blank"${m("href",l)} class="starterpack-embed s-whpa2l">`,r){const o=Ns(a,c);e.out+=`<img loading="lazy"${m("src",o)} alt="" class="banner s-whpa2l">`}e.out+=` <div class="meta s-whpa2l"><div class="main s-whpa2l"><svg fill="none" viewBox="0 0 24 24" class="avatar s-whpa2l"><defs><linearGradient id="a" x1="0" x2="100%" y1="0" y2="0" gradientTransform="rotate(45)"><stop offset="0" stop-color="#0A7AFF"></stop><stop offset="1" stop-color="#59B9FF"></stop></linearGradient></defs><path fill="url(#a)" fill-rule="evenodd" d="M11.26 5.227 5.02 6.899c-.734.197-1.17.95-.973 1.685l1.672 6.24c.197.734.951 1.17 1.685.973l6.24-1.672a1.376 1.376 0 0 0 .973-1.685L12.945 6.2a1.375 1.375 0 0 0-1.685-.973Zm-6.566.459a2.632 2.632 0 0 0-1.86 3.223l1.672 6.24a2.632 2.632 0 0 0 3.223 1.861l6.24-1.672a2.631 2.631 0 0 0 1.861-3.223l-1.672-6.24a2.632 2.632 0 0 0-3.223-1.861l-6.24 1.672Z" clip-rule="evenodd"></path><path fill="url(#a)" fill-rule="evenodd" d="M15.138 18.411a4.606 4.606 0 1 0 0-9.211 4.606 4.606 0 0 0 0 9.211Zm0 1.257a5.862 5.862 0 1 0 0-11.724 5.862 5.862 0 0 0 0 11.724Z" clip-rule="evenodd"></path></svg> <div class="info"><p class="name s-whpa2l">${b(n.name)}</p> <p class="creator s-whpa2l">Starter pack by @${b(i.handle)}</p></div></div> <p class="description s-whpa2l">${b(n.description)}</p></div></a>`}function Xe(e,t){e.out+=`<div class="message s-1nks9gp">${b(t)}</div>`}const Os=e=>{switch(e){case"app.bsky.feed.post":return"post";case"app.bsky.feed.generator":return"feed";case"app.bsky.graph.list":return"list";case"app.bsky.graph.starterpack":return"starter pack";case"app.bsky.labeler.service":return"labeler"}return null};function Ws(e,t){const{post:s,embed:r,large:n=!1}=t;function i(c,l){l.$type==="app.bsky.embed.external#view"?Is(c,{embed:l}):l.$type==="app.bsky.embed.images#view"?ye(c,{embed:l,standalone:!0}):l.$type==="app.bsky.embed.video#view"?we(c,{post:s,embed:l,standalone:!0}):Xe(c,"Unsupported media embed")}function a(c,l){const o=l.record;if(o.$type==="app.bsky.embed.record#viewRecord")Bs(c,{embed:o,large:n});else if(o.$type==="app.bsky.feed.defs#generatorView")Hs(c,{embed:o});else if(o.$type==="app.bsky.graph.defs#listView")Ds(c,{embed:o});else if(o.$type==="app.bsky.graph.defs#starterPackViewBasic")Vs(c,{embed:o,large:n});else{const u=q(o.uri),d=Os(u.collection),h=d&&(o.$type==="app.bsky.embed.record#viewNotFound"||o.$type==="app.bsky.embed.record#viewBlocked"||o.$type==="app.bsky.embed.record#viewDetached");Xe(c,h?`This ${d} is unavailable`:"Unsupported record embed")}}e.out+='<div class="embeds s-1nks9gp">',r.$type==="app.bsky.embed.recordWithMedia#view"?(i(e,r.media),e.out+=" ",a(e,r.record)):r.$type==="app.bsky.embed.record#view"?a(e,r):i(e,r),e.out+="</div>"}const Ys=e=>e?.find(t=>t.$type==="app.bsky.richtext.facet#link"||t.$type==="app.bsky.richtext.facet#mention"||t.$type==="app.bsky.richtext.facet#tag");function Gs(e,t){const{text:s,facets:r,large:n}=t,i=_t(s,r);e.out+=`<p${m("class",`${H("rich-text"+(n?" is-large":" is-small"))} s-10xqaeb`)}>`;for(let a=0,c=i.length;a<c;a++){let l=i[a];const o=Ys(l.features);o?o.$type==="app.bsky.richtext.facet#link"?e.out+=`<a target="_blank"${m("href",o.uri)} rel="noopener nofollow" class="link s-10xqaeb">${b(l.text)}</a>`:o.$type==="app.bsky.richtext.facet#mention"?e.out+=`<a target="_blank"${m("href",V(o.did))} class="mention s-10xqaeb">${b(l.text)}</a>`:o.$type==="app.bsky.richtext.facet#tag"&&(e.out+=`<a target="_blank"${m("href",Cs(o.tag))} class="hashtag s-10xqaeb">${b(l.text)}</a>`):e.out+=b(l.text)}e.out+="</p>"}function Js(e,t){const{item:s,prev:r=!1,next:n=!1}=t,i=s.reason,a=s.post,c=s.reply?.parent,l=a.author,o=V(l.did),u=l.displayName?.trim(),d=a.record,h=Te(l.did,q(a.uri).rkey),p=a.replyCount||0,x=a.likeCount||0,z=(a.repostCount||0)+(a.quoteCount||0);if(e.out+=`<div${m("class",`${H("feed-post"+(n?"":" is-leaf"))} s-1c3lek9`)}><div class="contexts s-1c3lek9">`,r&&(e.out+='<div class="ascendant-line-wrapper s-1c3lek9"><div class="line s-1c3lek9"></div></div>'),e.out+=" ",i)if(i.$type==="app.bsky.feed.defs#reasonRepost"){const k=i.by;e.out+=`<div class="context s-1c3lek9"><div class="aside s-1c3lek9"><svg class="icon" viewBox="0 0 24 24" fill="none"><path d="M17 3L20 6L17 9M7 21L4 18L7 15M5 18H20V13M4 11V6H19" stroke="currentColor" stroke-width="2" stroke-linecap="square"></path></svg></div> <a${m("href",V(k.did))} class="main s-1c3lek9"><span dir="auto" class="name s-1c3lek9">${b(k.displayName)}</span> <span class="affix s-1c3lek9"> reposted</span></a></div>`}else i.$type==="app.bsky.feed.defs#reasonPin"&&(e.out+='<div class="context s-1c3lek9"><div class="aside s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M12 15H5v-2.5l.377-.377A7.25 7.25 0 0 0 7.5 6.997V3h9v3.997a7.25 7.25 0 0 0 2.123 5.127L19 12.5V15h-7Zm0 0v6"></path></svg></div> <span class="flex min-w-0">Pinned</span></div>');if(e.out+=`</div> <div class="content s-1c3lek9"><div class="aside s-1c3lek9"><a target="_blank"${m("href",o)} class="avatar-wrapper s-1c3lek9">`,l.avatar&&(e.out+=`<img loading="lazy"${m("src",l.avatar)} alt="" class="avatar s-1c3lek9">`),e.out+="</a> ",n&&(e.out+='<div class="descendant-line s-1c3lek9"></div>'),e.out+=`</div> <div class="main s-1c3lek9"><div class="meta s-1c3lek9"><a${m("href",o)} target="_blank" class="name-wrapper s-1c3lek9">`,u&&(e.out+=`<bdi class="display-name-wrapper s-1c3lek9"><span class="display-name s-1c3lek9">${b(u)}</span></bdi>`),e.out+=` <span class="handle s-1c3lek9">@${b(l.handle)}</span></a> <span aria-hidden="true" class="dot s-1c3lek9">·</span> <a target="_blank"${m("href",h)}${m("title",Es(d.createdAt))} class="date s-1c3lek9"><time${m("datetime",d.createdAt)}>${b(Pt(d.createdAt))}</time></a></div> `,!r&&d.reply){if(e.out+='<p class="reply-context s-1c3lek9">',c&&c.$type==="app.bsky.feed.defs#postView"){const k=c.author;e.out+=`Replying to <a target="_blank"${m("href",V(k.did))} dir="auto" class="s-1c3lek9">${b(k.displayName?.trim()||`@${k.handle}`)}</a>`}else e.out+="Replying to an unknown post";e.out+="</p>"}e.out+=" ",Gs(e,{text:d.text,facets:d.facets}),e.out+=" ",a.embed&&Ws(e,{post:a,embed:a.embed}),e.out+=` <div class="metrics s-1c3lek9"><div${m("title",p===1?`${Z(p)} reply`:`${Z(p)} replies`)} class="stat s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M3.002 4h18v14h-9l-5 3v-3h-4V4Z"></path></svg> <span class="count s-1c3lek9">${b(pe(p))}</span></div> <div${m("title",z===1?`${Z(z)} repost`:`${Z(z)} reposts`)} class="stat s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="m17 3 3 3-3 3M7 21l-3-3 3-3m-2 3h15v-5M4 11V6h15"></path></svg> <span class="count s-1c3lek9">${b(pe(z))}</span></div> <div${m("title",x===1?`${Z(x)} like`:`${Z(x)} likes`)} class="stat s-1c3lek9"><svg class="icon" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M12 5.768c6.162-6.25 16.725 5.358 0 14.732C-4.725 11.126 5.838-.482 12 5.768Z"></path></svg> <span class="count s-1c3lek9">${b(pe(x))}</span></div></div></div></div></div>`}function Xs(e,t){const{profile:s}=t;e.out+=`<div class="profile-feed-header s-1xh30xs"><a target="_blank"${m("href",V(s.did))} class="title s-1xh30xs">Posts from @${b(s.handle)}</a> <svg class="logo s-1xh30xs" fill="none" viewBox="0 0 320 286"><path fill="#0A7AFF" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"></path></svg></div>`}function Ke(e,t){Ut(e,{children:s=>{s.out+=`<div class="message s-f12rvk">${b(t)}</div>`}})}function Ks(e,t){const{profile:s,feed:r,allowUnauthenticated:n}=t,i=!n&&s?.labels?.some(c=>c.val===Ge),a=r.filter(c=>{if(!s)return!1;const l=c.reason;if(l){if(l.$type==="app.bsky.feed.defs#reasonPin")return!0;if(l.$type==="app.bsky.feed.defs#reasonRepost"){const o=c.post.author;return o.did!==s.did?n||!o.labels?.some(u=>u.val===Ge):!0}return!1}return!c.reply});s===null?Ke(e,"The profile can't be found, it may have been deleted."):i?Ke(e,"The user has requested for their posts to not be displayed on external sites."):Ut(e,{children:c=>{if(Xs(c,{profile:s}),c.out+=" ",a.length>0){const l=a;c.out+='<div class="feed s-f12rvk">';for(let o=0,u=l.length;o<u;o++){let d=l[o];Js(c,{item:d})}c.out+=' <div class="end-marker s-f12rvk"><div class="dot s-f12rvk"></div></div></div>'}else c.out+='<div class="message s-f12rvk">This user has not made any posts.</div>'}})}const Qs=async e=>{const t=e.actor,s=e.allowUnauthenticated??!1,r=new ht({handler:pt({service:e.serviceUri??Ps})}),[{data:n},{data:i}]=await Promise.all([r.get("app.bsky.actor.getProfile",{signal:e.signal,params:{actor:t}}).catch(a=>a instanceof L&&a.kind==="InvalidRequest"&&a.description==="Profile not found"?{data:null}:Promise.reject(a)),r.get("app.bsky.feed.getAuthorFeed",{signal:e.signal,params:{actor:t,includePins:e.includePins,limit:30,filter:"posts_and_author_threads"}}).catch(a=>a instanceof L&&a.kind==="InvalidRequest"&&a.description==="Profile not found"?{data:{feed:[]}}:Promise.reject(a))]);return{profile:n,feed:i.feed,allowUnauthenticated:s}},$s=e=>zs(Ks,{props:e}).body,er=(e,t)=>`https://bsky.app/profile/${e}/post/${t}`,tr=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),sr=e=>{const t=new Date(e);return isNaN(t.getTime())?"N/A":tr.format(t)},rr=/^at:\/\/((?:did:[a-zA-Z0-9._:%-]+)|(?:[a-zA-Z0-9][a-zA-Z0-9-.]*))(?:\/([a-zA-Z0-9.-]+)(?:\/([a-zA-Z0-9_~.:-]{1,512}))?)?\/?(?:\?([^#\s]*))?(?:#([^\s]*))?$/,nr=e=>{const t=rr.exec(e);if(!t)throw new ir(`invalid at-uri: ${e}`);return{repo:t[1],collection:t[2]??"",rkey:t[3]??"",query:t[4]??"",fragment:t[5]??""}};class ir extends Error{}const P=e=>e.replace(/[<"&]/g,t=>"&#"+t.charCodeAt(0)+";"),ar=/^(?!\.{1,2}$)[a-zA-Z0-9_~.:-]{1,512}$/,or=e=>e.length>=1&&e.length<=512&&ar.test(e),cr=/^did:([a-z]+):([a-zA-Z0-9._:%-]*[a-zA-Z0-9._-])$/,lr=e=>e.length>=7&&e.length<=2048&&cr.test(e),dr=/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/,ur=e=>e.length>=3&&e.length<=253&&dr.test(e),Qe=e=>lr(e)||ur(e),fr=({data:e})=>{const t=Ne(()=>xs(e),[e]);return f("bluesky-post",{src:e.thread?.post.uri,dangerouslySetInnerHTML:{__html:t}})},pr=({data:e})=>{const t=Ne(()=>$s(e),[e]);return f("bluesky-profile-feed",{actor:e.profile?.did,dangerouslySetInnerHTML:{__html:t}})},ie=({code:e})=>f("div",{class:"code-block",children:[f("pre",{children:f("code",{children:e})}),f("div",{class:"actions",children:f("button",{title:"Copy",onClick:()=>{navigator.clipboard.writeText(e).catch(()=>alert("Failed to copy to clipboard"))},class:"copy-button",children:f("svg",{fill:"none",viewBox:"0 0 24 24",children:f("path",{stroke:"currentColor","stroke-linecap":"square","stroke-width":"2",d:"M15 5h4v16H5V5h4m0-2h6v4H9V3Z"})})})})]}),$e="https://bsky.app/profile/did:plc:ragtjsm2j2vknwkz3zp4oxrd/post/3kj2umze7zj2n",hr=()=>{const[e,t]=Fe(""),s=Ne(()=>wr(e||$e),[e]);return f("div",{class:"app",children:[f("h1",{class:"header",children:f("code",{children:"<bluesky-embed>"})}),f("label",{class:"input-wrapper",children:[f("span",{class:"label",children:"Bluesky post or profile URL"}),f("input",{type:"url",placeholder:$e,value:e,onInput:r=>t(r.currentTarget.value),class:"text-input"})]}),s?s.type==="post"?f(_r,{matched:s},e):s.type==="profile"?f(br,{matched:s},e):null:f("main",{class:"main",children:f("div",{class:"alert",children:"Invalid URL, did you type it correctly?"})}),f("footer",{class:"footer",children:[f("span",{children:["made with ❤️ by ",f("a",{href:"https://bsky.app/profile/did:plc:ia76kvnndjutgedggx2ibrem",children:"@mary.my.id"})]}),f("span",{"aria-hidden":"true",children:" · "}),f("span",{children:f("a",{href:"https://github.com/mary-ext/bluesky-embed",children:"source code"})}),f("span",{"aria-hidden":"true",children:" · "}),f("span",{children:"MIT License"})]})]})},Tt=()=>f("svg",{viewBox:"0 0 32 32",class:"circular-spinner",children:[f("circle",{cx:"16",cy:"16",fill:"none",r:"14","stroke-width":"4",class:"background"}),f("circle",{cx:"16",cy:"16",fill:"none",r:"14","stroke-width":"4","stroke-dasharray":"80px","stroke-dashoffset":"60px",class:"accented"})]}),_r=({matched:e})=>{const[t,s]=Fe();return dt(()=>{if(t)return;const r=new AbortController,n=r.signal;return ws({uri:`at://${e.author}/app.bsky.feed.post/${e.rkey}`,signal:n,contextless:!1}).then(a=>{n.aborted||s({ok:!0,data:a})},a=>{n.aborted||s({ok:!1,message:""+a})}),()=>r.abort()},[e,t]),f("main",{class:"main",children:t?t.ok?f(R,{children:[f(fr,{data:t.data}),t.data.thread?f("div",{class:"guide",children:[f("h4",{class:"guide-header",children:"How do I embed this to my website?"}),f("div",{class:"inform",children:["Doing server-side rendering? Check out examples for"," ",f("a",{href:"https://github.com/mary-ext/bluesky-embed-astro",children:"Astro"})," and"," ",f("a",{href:"https://github.com/mary-ext/bluesky-embed-sveltekit",children:"SvelteKit"}),"."]}),f("ol",{class:"guide-instructions",children:[f("li",{children:[f("p",{children:["Insert the following scripts and stylesheets to the ",f("code",{children:"<head>"})," of your website."]}),f(ie,{code:mr()})]}),f("li",{children:[f("p",{children:"Insert the following markup in wherever you want the post to be."}),f(ie,{code:vr(t.data.thread.post)})]})]})]}):null]}):f("div",{class:"alert",children:t.message}):f(Tt,{})})},mr=()=>{const e="https://cdn.jsdelivr.net/npm/bluesky-post-embed@^1.0.0";return`<!-- Core web component and styling --> 2 - <script type="module" src="${e}/+esm"><\/script> 3 - <link rel="stylesheet" href="${e}/dist/core.min.css"> 4 - 5 - <!-- Built-in themes --> 6 - <link rel="stylesheet" href="${e}/themes/light.min.css" media="(prefers-color-scheme: light)"> 7 - <link rel="stylesheet" href="${e}/themes/dim.min.css" media="(prefers-color-scheme: dark)"> 8 - 9 - <!-- Fallback/placeholder elements if JS script is taking a while to load or is failing --> 10 - <style> 11 - .bluesky-post-fallback { 12 - margin: 16px 0; 13 - border-left: 3px solid var(--divider); 14 - padding: 4px 8px; 15 - white-space: pre-wrap; 16 - overflow-wrap: break-word; 17 - } 18 - .bluesky-post-fallback p { 19 - margin: 0 0 8px 0; 20 - } 21 - </style> 22 - `},vr=e=>{const t=e.author,s=e.record;return`<bluesky-post src="${P(e.uri)}"> 23 - <blockquote class="bluesky-post-fallback"> 24 - <p dir="auto">${P(s.text)}</p> 25 - — ${t.displayName?.trim()?`${P(t.displayName)} (@${P(t.handle)})`:`@${P(t.handle)}`} 26 - <a href="${P(er(t.did,nr(e.uri).rkey))}">${sr(e.indexedAt)}</a> 27 - </blockquote> 28 - </bluesky-post> 29 - `},br=({matched:e})=>{const[t,s]=Fe();return dt(()=>{if(t)return;const r=new AbortController,n=r.signal;return Qs({actor:e.actor,signal:n,includePins:!0}).then(a=>{n.aborted||s({ok:!0,data:a})},a=>{n.aborted||s({ok:!1,message:""+a})}),()=>r.abort()},[e,t]),f("main",{class:"main",children:t?t.ok?f(R,{children:[f(pr,{data:t.data}),t.data.profile?f("div",{class:"guide",children:[f("h4",{class:"guide-header",children:"How do I embed this to my website?"}),f("div",{class:"inform",children:["Doing server-side rendering? Check out examples for"," ",f("a",{href:"https://github.com/mary-ext/bluesky-embed-astro",children:"Astro"})," and"," ",f("a",{href:"https://github.com/mary-ext/bluesky-embed-sveltekit",children:"SvelteKit"}),"."]}),f("ol",{class:"guide-instructions",children:[f("li",{children:[f("p",{children:["Insert the following scripts and stylesheets to the ",f("code",{children:"<head>"})," of your website."]}),f(ie,{code:gr()})]}),f("li",{children:[f("p",{children:"Insert the following markup in wherever you want the profile feed to be."}),f(ie,{code:kr(t.data.profile)})]})]})]}):null]}):f("div",{class:"alert",children:t.message}):f(Tt,{})})},gr=()=>{const e="https://cdn.jsdelivr.net/npm/bluesky-profile-feed-embed@^1.0.0";return`<!-- Core web component and styling --> 30 - <script type="module" src="${e}/+esm"><\/script> 31 - <link rel="stylesheet" href="${e}/dist/core.min.css"> 32 - 33 - <!-- Built-in themes --> 34 - <link rel="stylesheet" href="${e}/themes/light.min.css" media="(prefers-color-scheme: light)"> 35 - <link rel="stylesheet" href="${e}/themes/dim.min.css" media="(prefers-color-scheme: dark)"> 36 - `},kr=e=>{const t=`https://bsky.app/profile/${e.did}`;return`<bluesky-profile-feed actor="${P(e.did)}" include-pins> 37 - <a target="_blank" href="${P(t)}" class="bluesky-profile-feed-fallback"> 38 - ${e.displayName?.trim()?`Posts by ${P(e.displayName)} (@${P(e.handle)})`:`Posts by @${P(e.handle)}`} 39 - </a> 40 - </bluesky-profile-feed> 41 - `},yr=e=>{let t;if("parse"in URL)t=URL.parse(e);else try{t=new URL(e)}catch{}return t&&(t.protocol==="https:"||t.protocol==="http:")?t:null},wr=e=>{const t=yr(e);if(!t)return null;let s;if(t.host==="bsky.app"||t.host==="staging.bsky.app"||t.host==="main.bsky.dev"){if(s=/^\/profile\/([^/]+)\/post\/([^/]+)\/?$/.exec(t.pathname))return!Qe(s[1])||!or(s[2])?null:{type:"post",author:s[1],rkey:s[2]};if(s=/^\/profile\/([^/]+)\/?$/.exec(t.pathname))return Qe(s[1])?{type:"profile",actor:s[1]}:null}return null};Lt(f(hr,{}),document.body);
+2
assets/index-xYaDyaLn.js
··· 1 + const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PostDisplay-Cl4Ezdpa.js","assets/GuideInstructions-lu6IsfjL.js","assets/GuideInstructions-BnT5jEHa.css","assets/index-Cr8Vao8y.js","assets/PostDisplay-DSWrue0t.css","assets/ProfileCardDisplay-DKmfi7Ri.js","assets/ProfileCardDisplay-D4FwjqsR.css","assets/ProfileFeedDisplay-283HcGVb.js","assets/ProfileFeedDisplay-DXn37nri.css"])))=>i.map(i=>d[i]); 2 + !function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&n(e)})).observe(document,{childList:!0,subtree:!0})}function n(e){if(e.ep)return;e.ep=!0;const n=function(e){const n={};return e.integrity&&(n.integrity=e.integrity),e.referrerPolicy&&(n.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?n.credentials="include":"anonymous"===e.crossOrigin?n.credentials="omit":n.credentials="same-origin",n}(e);fetch(e.href,n)}}();var e=Array.isArray,n=Array.from,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,o=Object.prototype,a=Array.prototype,i=Object.getPrototypeOf;const u=()=>{};const s=32,f=256,c=512,v=1024,d=2048,p=4096,h=8192,y=16384,g=65536,m=1<<20,_=Symbol("$state"),b=Symbol("legacy props"),w=Symbol("");function k(e){return e===this.v}function x(e){return n=e,t=this.v,!(n!=n?t==t:n!==t||null!==n&&"object"==typeof n||"function"==typeof n);var n,t}function E(e){return{f:0,v:e,reactions:null,equals:k,version:0}}function j(e){return function(e){null!==je&&2&je.f&&(null===Oe?Oe=[e]:Oe.push(e));return e}(E(e))}function P(e,n){return null!==je&&18&je.f&&(null===Oe||!Oe.includes(e))&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),L(e,n)}function L(e,n){return e.equals(n)||(e.v=n,e.version=Me(),$(e,d),null!==Le&&Le.f&v&&!(Le.f&s)&&(null!==Ae&&Ae.includes(e)?(en(Le,d),He(Le)):null===Ne?function(e){Ne=e}([e]):Ne.push(e))),n}function $(e,n){var t=e.reactions;if(null!==t)for(var r=t.length,l=0;l<r;l++){var o=t[l],a=o.f;a&d||(en(o,n),1280&a&&(2&a?$(o,p):He(o)))}}const O=Symbol();function A(n,t=null,l){if("object"!=typeof n||null===n||_ in n)return n;const u=i(n);if(u!==o&&u!==a)return n;var s,f=new Map,c=e(n),v=E(0);return c&&f.set("length",E(n.length)),new Proxy(n,{defineProperty(e,n,t){"value"in t&&!1!==t.configurable&&!1!==t.enumerable&&!1!==t.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=f.get(n);return void 0===r?(r=E(t.value),f.set(n,r)):P(r,A(t.value,s)),!0},deleteProperty(e,n){var t=f.get(n);if(void 0===t)n in e&&f.set(n,E(O));else{if(c&&"string"==typeof n){var r=f.get("length"),l=Number(n);Number.isInteger(l)&&l<r.v&&P(r,l)}P(t,O),S(v)}return!0},get(e,t,l){if(t===_)return n;var o=f.get(t),a=t in e;if(void 0!==o||a&&!r(e,t)?.writable||(o=E(A(a?e[t]:O,s)),f.set(t,o)),void 0!==o){var i=Qe(o);return i===O?void 0:i}return Reflect.get(e,t,l)},getOwnPropertyDescriptor(e,n){var t=Reflect.getOwnPropertyDescriptor(e,n);if(t&&"value"in t){var r=f.get(n);r&&(t.value=Qe(r))}else if(void 0===t){var l=f.get(n),o=l?.v;if(void 0!==l&&o!==O)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return t},has(e,n){if(n===_)return!0;var t=f.get(n),l=void 0!==t&&t.v!==O||Reflect.has(e,n);if((void 0!==t||null!==Le&&(!l||r(e,n)?.writable))&&(void 0===t&&(t=E(l?A(e[n],s):O),f.set(n,t)),Qe(t)===O))return!1;return l},set(e,n,t,l){var o=f.get(n),a=n in e;if(c&&"length"===n)for(var i=t;i<o.v;i+=1){var u=f.get(i+"");void 0!==u?P(u,O):i in e&&(u=E(O),f.set(i+"",u))}void 0===o?a&&!r(e,n)?.writable||(P(o=E(void 0),A(t,s)),f.set(n,o)):(a=o.v!==O,P(o,A(t,s)));var d=Reflect.getOwnPropertyDescriptor(e,n);if(d?.set&&d.set.call(l,t),!a){if(c&&"string"==typeof n){var p=f.get("length"),h=Number(n);Number.isInteger(h)&&h>=p.v&&P(p,h+1)}S(v)}return!0},ownKeys(e){Qe(v);var n=Reflect.ownKeys(e).filter((e=>{var n=f.get(e);return void 0===n||n.v!==O}));for(var[t,r]of f)r.v===O||t in e||n.push(t);return n},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function S(e,n=1){P(e,e.v+n)}function N(e){return null!==e&&"object"==typeof e&&_ in e?e[_]:e}var z,q,D;function R(e=""){return document.createTextNode(e)}function M(e){return q.call(e)}function C(e){return D.call(e)}function T(e,n){return M(e)}function I(e,n){var t=M(e);return t instanceof Comment&&""===t.data?C(t):t}function Z(e,n=1,t=!1){let r=e;for(;n--;)r=C(r);return r}function B(e){var n=2050;null===Le?n|=f:Le.f|=m;var t=null!==je&&2&je.f?je:null;const r={children:null,ctx:De,deps:null,equals:k,f:n,fn:e,reactions:null,v:null,version:0,parent:t??Le};return null!==t&&(t.children??=[]).push(r),r}function U(e){var n=e.children;if(null!==n){e.children=null;for(var t=0;t<n.length;t+=1){var r=n[t];2&r.f?K(r):le(r)}}}function V(e){var n,t=Le;$e(function(e){for(var n=e.parent;null!==n;){if(!(2&n.f))return n;n=n.parent}return null}(e));try{U(e),n=Ie(e)}finally{$e(t)}return n}function W(e){var n=V(e);en(e,(qe||e.f&f)&&null!==e.deps?p:v),e.equals(n)||(e.v=n,e.version=Me())}function K(e){U(e),Be(e,0),en(e,y),e.v=e.children=e.deps=e.ctx=e.reactions=null}function F(e){null===Le&&null===je&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==je&&je.f&f&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),be&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function H(e,n,t,r=!0){var l=!!(64&e),o=Le,a={ctx:De,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|d,first:null,fn:n,last:null,next:null,parent:l?null:o,prev:null,teardown:null,transitions:null,version:0};if(t){var i=_e;try{we(!0),Ue(a),a.f|=32768}catch(s){throw le(a),s}finally{we(i)}}else null!==n&&He(a);if(!(t&&null===a.deps&&null===a.first&&null===a.nodes_start&&null===a.teardown&&!(a.f&m))&&!l&&r&&(null!==o&&function(e,n){var t=n.last;null===t?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}(a,o),null!==je&&2&je.f)){var u=je;(u.children??=[]).push(a)}return a}function G(e){if(F(),!(null!==Le&&!!(Le.f&s)&&null!==De&&!De.m))return J(e);var n=De;(n.e??=[]).push({fn:e,effect:Le,reaction:je})}function J(e){return H(4,e,!1)}function Q(e){return H(8,e,!0)}function X(e){return Y(e)}function Y(e,n=0){return H(24|n,e,!0)}function ee(e,n=!0){return H(40,e,!0,n)}function ne(e){var n=e.teardown;if(null!==n){const e=be,t=je;ke(!0),Pe(null);try{n.call(null)}finally{ke(e),Pe(t)}}}function te(e){var n=e.deriveds;if(null!==n){e.deriveds=null;for(var t=0;t<n.length;t+=1)K(n[t])}}function re(e,n=!1){var t=e.first;for(e.first=e.last=null;null!==t;){var r=t.next;le(t,n),t=r}}function le(e,n=!0){var t=!1;if((n||524288&e.f)&&null!==e.nodes_start){for(var r=e.nodes_start,l=e.nodes_end;null!==r;){var o=r===l?null:C(r);r.remove(),r=o}t=!0}re(e,n&&!t),te(e),Be(e,0),en(e,y);var a=e.transitions;if(null!==a)for(const u of a)u.stop();ne(e);var i=e.parent;null!==i&&null!==i.first&&oe(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function oe(e){var n=e.parent,t=e.prev,r=e.next;null!==t&&(t.next=r),null!==r&&(r.prev=t),null!==n&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function ae(e,n){var t=[];ie(e,t,!0),function(e,n){var t=e.length;if(t>0){var r=()=>--t||n();for(var l of e)l.out(r)}else n()}(t,(()=>{le(e),n&&n()}))}function ie(e,n,t){if(!(e.f&h)){if(e.f^=h,null!==e.transitions)for(const r of e.transitions)(r.is_global||t)&&n.push(r);for(var r=e.first;null!==r;){var l=r.next;ie(r,n,!!(!!(r.f&g)||!!(r.f&s))&&t),r=l}}}function ue(e){se(e,!0)}function se(e,n){if(e.f&h){Ce(e)&&Ue(e),e.f^=h;for(var t=e.first;null!==t;){var r=t.next;se(t,!!(!!(t.f&g)||!!(t.f&s))&&n),t=r}if(null!==e.transitions)for(const t of e.transitions)(t.is_global||n)&&t.in()}}let fe=!1,ce=[];function ve(){fe=!1;const e=ce.slice();ce=[],function(e){for(var n=0;n<e.length;n++)e[n]()}(e)}function de(e){fe||(fe=!0,queueMicrotask(ve)),ce.push(e)}const pe=0;let he=!1,ye=pe,ge=!1,me=null,_e=!1,be=!1;function we(e){_e=e}function ke(e){be=e}let xe=[],Ee=0,je=null;function Pe(e){je=e}let Le=null;function $e(e){Le=e}let Oe=null;let Ae=null,Se=0,Ne=null;let ze=0,qe=!1,De=null;function Re(e){De=e}function Me(){return++ze}function Ce(e){var n=e.f;if(n&d)return!0;if(n&p){var t=e.deps,r=!!(n&f);if(null!==t){var l;if(n&c){for(l=0;l<t.length;l++)(t[l].reactions??=[]).push(e);e.f^=c}for(l=0;l<t.length;l++){var o=t[l];if(Ce(o)&&W(o),!r||null===Le||qe||o?.reactions?.includes(e)||(o.reactions??=[]).push(e),o.version>e.version)return!0}}r||en(e,v)}return!1}function Te(e,n,t,r){if(he){if(null===t&&(he=!1),function(e){return!(e.f&y||null!==e.parent&&128&e.parent.f)}(n))throw e}else null!==t&&(he=!0),function(e,n){for(var t=n;null!==t;){if(128&t.f)try{return void t.fn(e)}catch{t.f^=128}t=t.parent}throw he=!1,e}(e,n)}function Ie(e){var n=Ae,t=Se,r=Ne,l=je,o=qe,a=Oe,i=De,u=e.f;Ae=null,Se=0,Ne=null,je=96&u?null:e,qe=!_e&&!!(u&f),Oe=null,De=e.ctx;try{var s=(0,e.fn)(),c=e.deps;if(null!==Ae){var v;if(Be(e,Se),null!==c&&Se>0)for(c.length=Se+Ae.length,v=0;v<Ae.length;v++)c[Se+v]=Ae[v];else e.deps=c=Ae;if(!qe)for(v=Se;v<c.length;v++)(c[v].reactions??=[]).push(e)}else null!==c&&Se<c.length&&(Be(e,Se),c.length=Se);return s}finally{Ae=n,Se=t,Ne=r,je=l,qe=o,Oe=a,De=i}}function Ze(e,n){let t=n.reactions;if(null!==t){var r=t.indexOf(e);if(-1!==r){var l=t.length-1;0===l?t=n.reactions=null:(t[r]=t[l],t.pop())}}null===t&&2&n.f&&(null===Ae||!Ae.includes(n))&&(en(n,p),768&n.f||(n.f^=c),Be(n,0))}function Be(e,n){var t=e.deps;if(null!==t)for(var r=n;r<t.length;r++)Ze(e,t[r])}function Ue(e){var n=e.f;if(!(n&y)){en(e,v);var t=Le,r=De;Le=e;try{16&n?function(e){for(var n=e.first;null!==n;){var t=n.next;n.f&s||le(n),n=t}}(e):re(e),te(e),ne(e);var l=Ie(e);e.teardown="function"==typeof l?l:null,e.version=ze}catch(o){Te(o,e,t,r||e.ctx)}finally{Le=t}}}function Ve(){if(Ee>1e3){Ee=0;try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){if(null===me)throw e;Te(e,me,null)}}Ee++}function We(e){var n=e.length;if(0!==n){Ve();var t=_e;_e=!0;try{for(var r=0;r<n;r++){var l=e[r];l.f&v||(l.f^=v);var o=[];Ge(l,o),Ke(o)}}finally{_e=t}}}function Ke(e){var n=e.length;if(0!==n)for(var t=0;t<n;t++){var r=e[t];if(!(24576&r.f))try{Ce(r)&&(Ue(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown?oe(r):r.fn=null))}catch(l){Te(l,r,null,r.ctx)}}}function Fe(){if(ge=!1,Ee>1001)return;const e=xe;xe=[],We(e),ge||(Ee=0,me=null)}function He(e){ye===pe&&(ge||(ge=!0,queueMicrotask(Fe))),me=e;for(var n=e;null!==n.parent;){var t=(n=n.parent).f;if(96&t){if(!(t&v))return;n.f^=v}}xe.push(n)}function Ge(e,n){var t=e.first,r=[];e:for(;null!==t;){var l=t.f,o=!!(l&s),a=o&&!!(l&v),i=t.next;if(!(a||l&h))if(8&l){if(o)t.f^=v;else try{Ce(t)&&Ue(t)}catch(d){Te(d,t,null,t.ctx)}var u=t.first;if(null!==u){t=u;continue}}else 4&l&&r.push(t);if(null===i){let n=t.parent;for(;null!==n;){if(e===n)break e;var f=n.next;if(null!==f){t=f;continue e}n=n.parent}}t=i}for(var c=0;c<r.length;c++)u=r[c],n.push(u),Ge(u,n)}function Je(e){var n=ye,t=xe;try{Ve();const n=[];ye=1,xe=n,ge=!1,We(t);var r=e?.();return fe&&ve(),(xe.length>0||n.length>0)&&Je(),Ee=0,me=null,r}finally{ye=n,xe=t}}function Qe(e){var n=e.f,t=!!(2&n);if(t&&n&y){var r=V(e);return K(e),r}if(null!==je){null!==Oe&&Oe.includes(e)&&function(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}();var l=je.deps;null===Ae&&null!==l&&l[Se]===e?Se++:null===Ae?Ae=[e]:Ae.push(e),null!==Ne&&null!==Le&&Le.f&v&&!(Le.f&s)&&Ne.includes(e)&&(en(Le,d),He(Le))}else if(t&&null===e.deps)for(var o=e,a=o.parent,i=o;null!==a;){if(!(2&a.f)){var u=a;u.deriveds?.includes(i)||(u.deriveds??=[]).push(i);break}i=a,a=a.parent}return t&&Ce(o=e)&&W(o),e.v}function Xe(e){const n=je;try{return je=null,e()}finally{je=n}}const Ye=-7169;function en(e,n){e.f=e.f&Ye|n}function nn(e,n=!1,t){De={p:De,c:null,e:null,m:!1,s:e,x:null,l:null}}function tn(e){const n=De;if(null!==n){const e=n.e;if(null!==e){var t=Le,r=je;n.e=null;try{for(var l=0;l<e.length;l++){var o=e[l];$e(o.effect),Pe(o.reaction),J(o.fn)}}finally{$e(t),Pe(r)}}De=n.p,n.m=!0}return{}}let rn=!1;function ln(e,n,t,r=t){e.addEventListener(n,(()=>function(e){var n=je,t=Le;Pe(null),$e(null);try{return e()}finally{Pe(n),$e(t)}}(t)));const l=e.__on_r;e.__on_r=l?()=>{l(),r(!0)}:()=>r(!0),rn||(rn=!0,document.addEventListener("reset",(e=>{Promise.resolve().then((()=>{if(!e.defaultPrevented)for(const n of e.target.elements)n.__on_r?.()}))}),{capture:!0}))}const on=new Set,an=new Set;function un(e){for(var n=0;n<e.length;n++)on.add(e[n]);for(var t of an)t(e)}function sn(n){var r=this,l=r.ownerDocument,o=n.type,a=n.composedPath?.()||[],i=a[0]||n.target,u=0,s=n.__root;if(s){var f=a.indexOf(s);if(-1!==f&&(r===document||r===window))return void(n.__root=r);var c=a.indexOf(r);if(-1===c)return;f<=c&&(u=f)}if((i=a[u]||n.target)!==r){t(n,"currentTarget",{configurable:!0,get:()=>i||l});var v=je,d=Le;Pe(null),$e(null);try{for(var p,h=[];null!==i;){var y=i.assignedSlot||i.parentNode||i.host||null;try{var g=i["__"+o];if(void 0!==g&&!i.disabled)if(e(g)){var[m,..._]=g;m.apply(i,[n,..._])}else g.call(i,n)}catch(b){p?h.push(b):p=b}if(n.cancelBubble||y===r||null===y)break;i=y}if(p){for(let e of h)queueMicrotask((()=>{throw e}));throw p}}finally{n.__root=r,delete n.currentTarget,Pe(v),$e(d)}}}function fn(e){var n=document.createElement("template");return n.innerHTML=e,n.content}function cn(e,n){var t=Le;null===t.nodes_start&&(t.nodes_start=e,t.nodes_end=n)}function vn(e,n){var t,r=!!(1&n),l=!!(2&n),o=!e.startsWith("<!>");return()=>{void 0===t&&(t=fn(o?e:"<!>"+e),r||(t=M(t)));var n=l?document.importNode(t,!0):t.cloneNode(!0);r?cn(M(n),n.lastChild):cn(n,n);return n}}function dn(e=""){var n=R(e+"");return cn(n,n),n}function pn(){var e=document.createDocumentFragment(),n=document.createComment(""),t=R();return e.append(n,t),cn(n,t),e}function hn(e,n){null!==e&&e.before(n)}const yn=["touchstart","touchmove"];function gn(e){return yn.includes(e)}function mn(e,n){var t=null==n?"":"object"==typeof n?n+"":n;t!==(e.__t??=e.nodeValue)&&(e.__t=t,e.nodeValue=null==t?"":t+"")}const _n=new Map;let bn=new WeakMap;function wn(e,n,t,r,l){var o,a,i,u=e,s=De,f=O,c=E(void 0),v=E(void 0),d=!1;function p(e,n){d=!0,n&&($e(h),Pe(h),Re(s));try{0===e&&t&&(o?ue(o):o=ee((()=>t(u)))),1===e&&r&&(a?ue(a):a=ee((()=>r(u,c)))),2===e&&l&&(i?ue(i):i=ee((()=>l(u,v)))),0!==e&&o&&ae(o,(()=>o=null)),1!==e&&a&&ae(a,(()=>a=null)),2!==e&&i&&ae(i,(()=>i=null))}finally{n&&(Re(null),Pe(null),$e(null),Je())}}var h=Y((()=>{if(f!==(f=n())){if(t=f,"function"==typeof t?.then){var e=f;d=!1,e.then((n=>{e===f&&(L(c,n),p(1,!0))}),(n=>{if(e===f&&(L(v,n),p(2,!0),!l))throw v.v})),de((()=>{d||p(0,!0)}))}else L(c,f),p(1,!1);var t;return()=>f=O}}))}function kn(e,n,t=!1){var r=e,l=null,o=null,a=O,i=!1;const u=(e,n=!0)=>{i=!0,s(n,e)},s=(e,n)=>{a!==(a=e)&&(a?(l?ue(l):n&&(l=ee((()=>n(r)))),o&&ae(o,(()=>{o=null}))):(o?ue(o):n&&(o=ee((()=>n(r)))),l&&ae(l,(()=>{l=null}))))};Y((()=>{i=!1,n(u),i||s(null,null)}),t?g:0)}function xn(e,n,...t){var r,l=e,o=u;Y((()=>{o!==(o=n())&&(r&&(le(r),r=null),r=ee((()=>o(l,...t))))}),g)}function En(e,n,t){var r,l,o=e;Y((()=>{r!==(r=n())&&(l&&(ae(l),l=null),r&&(l=ee((()=>t(o,r)))))}),g)}function jn(e,n,t,r){var l=e.__attributes??={};l[n]!==(l[n]=t)&&("style"===n&&"__styles"in e&&(e.__styles={}),"loading"===n&&(e[w]=t),null==t?e.removeAttribute(n):"string"!=typeof t&&$n(e).includes(n)?e[n]=t:e.setAttribute(n,t))}function Pn(e,n,t){var r=je,l=Le;Pe(null),$e(null);try{(Ln.has(e.nodeName)||customElements.get(e.tagName.toLowerCase())?$n(e).includes(n):t&&"object"==typeof t)?e[n]=t:jn(e,n,null==t?t:String(t))}finally{Pe(r),$e(l)}}var Ln=new Map;function $n(e){var n,t=Ln.get(e.nodeName);if(t)return t;Ln.set(e.nodeName,t=[]);for(var r=e,o=Element.prototype;o!==r;){for(var a in n=l(r))n[a].set&&t.push(a);r=i(r)}return t}function On(e,n,t){if(t){if(e.classList.contains(n))return;e.classList.add(n)}else{if(!e.classList.contains(n))return;e.classList.remove(n)}}const An=new Set;function Sn(e,n,t,r,l=r){var o="checkbox"===t.getAttribute("type"),a=e;if(null!==n)for(var i of n)a=a[i]??=[];a.push(t),ln(t,"change",(()=>{var e=t.__value;o&&(e=function(e,n,t){for(var r=new Set,l=0;l<e.length;l+=1)e[l].checked&&r.add(e[l].__value);t||r.delete(n);return Array.from(r)}(a,e,t.checked)),l(e)}),(()=>l(o?[]:null))),Q((()=>{var e,n,l=r();o?(l=l||[],t.checked=l.includes(t.__value)):t.checked=(e=t.__value,n=l,Object.is(N(e),N(n)))})),function(e){const n=H(8,null,!1);en(n,v),n.teardown=e}((()=>{var e=a.indexOf(t);-1!==e&&a.splice(e,1)})),An.has(a)||(An.add(a),de((()=>{a.sort(((e,n)=>4===e.compareDocumentPosition(n)?-1:1)),An.delete(a)}))),de((()=>{}))}function Nn(e){var n=e.type;return"number"===n||"range"===n}function zn(e){return""===e?null:+e}let qn=!1;function Dn(e,n,t,l){var o,a=!!(8&t),i=!1;[o,i]=function(e){var n=qn;try{return qn=!1,[e(),qn]}finally{qn=n}}((()=>e[n]));var u,s=_ in e||b in e,f=r(e,n)?.set??(s&&a&&n in e?t=>e[n]=t:void 0),c=l,v=!0,d=!1,p=()=>(d=!0,v&&(v=!1,c=l),c);if(void 0===o&&void 0!==l&&(f&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),o=p(),f&&f(o)),u=()=>{var t=e[n];return void 0===t?p():(v=!0,d=!1,t)},f){var h=e.$$legacy;return function(e,n){return arguments.length>0?((!n||h||i)&&f(n?u():e),e):u()}}var y=!1,g=function(e,n=!1){const t=E(e);return n||(t.equals=x),t}(o),m=function(e){for(var n=Le,t=Le;null!==n&&!(96&n.f);)n=n.parent;try{return $e(n),e()}finally{$e(t)}}((()=>B((()=>{var e=u(),n=Qe(g);return y?(y=!1,n):g.v=e}))));return function(e,n){if(arguments.length>0){const t=n?Qe(m):A(e);return m.equals(t)||(y=!0,P(g,t),d&&void 0!==c&&(c=t),Xe((()=>Qe(m)))),e}return Qe(m)}}const Rn={},Mn=function(e,n,t){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),t=e?.nonce||e?.getAttribute("nonce");r=Promise.allSettled(n.map((e=>{if((e=function(e){return"/"+e}(e))in Rn)return;Rn[e]=!0;const n=e.endsWith(".css"),r=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const l=document.createElement("link");return l.rel=n?"stylesheet":"modulepreload",n||(l.as="script"),l.crossOrigin="",l.href=e,t&&l.setAttribute("nonce",t),document.head.appendChild(l),n?new Promise(((n,t)=>{l.addEventListener("load",n),l.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function l(e){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=e,window.dispatchEvent(n),!n.defaultPrevented)throw e}return r.then((n=>{for(const e of n||[])"rejected"===e.status&&l(e.reason);return e().catch(l)}))};"undefined"!=typeof window&&(window.__svelte||={v:new Set}).v.add("5");const Cn=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/,Tn=/^did:([a-z]+):([a-zA-Z0-9._:%-]*[a-zA-Z0-9._-])$/,In=/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/,Zn=e=>(e=>e.length>=7&&e.length<=2048&&Tn.test(e))(e)||(e=>e.length>=3&&e.length<=253&&In.test(e))(e),Bn=e=>{const n=Un(e);if(!n)return null;let t;if("bsky.app"===n.host||"staging.bsky.app"===n.host||"main.bsky.dev"===n.host){if(t=/^\/profile\/([^/]+)\/post\/([^/]+)\/?$/.exec(n.pathname))return Zn(t[1])&&(e=>13===e.length&&Cn.test(e))(t[2])?{type:"post",author:t[1],rkey:t[2]}:null;if(t=/^\/profile\/([^/]+)\/?$/.exec(n.pathname))return Zn(t[1])?{type:"profile",actor:t[1]}:null}return null},Un=e=>{let n;if("parse"in URL)n=URL.parse(e);else try{n=new URL(e)}catch{}return!n||"https:"!==n.protocol&&"http:"!==n.protocol?null:n};var Vn=vn('<div class="banner svelte-1caksau"><!></div>');function Wn(e,n){nn(n,!0);var t=Vn();xn(T(t),(()=>n.children)),X((()=>{On(t,"type-alert","alert"===n.type),On(t,"type-inform","inform"===n.type)})),hn(e,t),tn()}var Kn=function(e,n,t="svg"){var r,l=`<${t}>${!e.startsWith("<!>")?e:"<!>"+e}</${t}>`;return()=>{if(!r){var e=M(fn(l));r=M(e)}var n=r.cloneNode(!0);return cn(n,n),n}}('<svg viewBox="0 0 32 32" class="circular-spinner svelte-v1ds86"><circle cx="16" cy="16" fill="none" r="14" stroke-width="4" class="background svelte-v1ds86"></circle><circle cx="16" cy="16" fill="none" r="14" stroke-width="4" stroke-dasharray="80px" stroke-dashoffset="60px" class="accented svelte-v1ds86"></circle></svg>');function Fn(e,n){hn(e,Kn())}var Hn=vn('<div class="field svelte-763ovh"><label class="input-wrapper svelte-763ovh"><span class="label svelte-763ovh"> </span> <!></label></div>');const Gn=new WeakMap;function Jn(e,n){nn(n,!0);const t=B((()=>(e=>{let n=Gn.get(e);return void 0===n&&Gn.set(e,n=e().then((e=>e.default))),n})(n.loader)));var r=pn();wn(I(r),(()=>Qe(t)),(e=>{var t=pn();xn(I(t),(()=>n.fallback)),hn(e,t)}),((e,t)=>{var r=pn();xn(I(r),(()=>n.children),(()=>Qe(t))),hn(e,r)}),((e,t)=>{var r=pn();xn(I(r),(()=>n.boundary),(()=>Qe(t))),hn(e,r)})),hn(e,r),tn()}var Qn=vn('<input class="text-input svelte-fpaunh">');function Xn(e,n){let t=Dn(n,"value",15);var r=Qn();X((()=>{jn(r,"type",n.type),jn(r,"placeholder",n.placeholder)})),function(e,n,t=n){ln(e,"input",(r=>{var l=r?e.defaultValue:e.value;if(l=Nn(e)?zn(l):l,t(l),l!==(l=n())){var o=e.selectionStart,a=e.selectionEnd;e.value=l??"",null!==a&&(e.selectionStart=o,e.selectionEnd=Math.min(a,e.value.length))}})),null==Xe(n)&&e.value&&t(Nn(e)?zn(e.value):e.value),Q((()=>{var t=n();Nn(e)&&t===zn(e.value)||("date"!==e.type||t||e.value)&&t!==e.value&&(e.value=t??"")}))}(r,t),hn(e,r)}const Yn=e=>{Fn(e)},et=(e,n=u)=>{Wn(e,{type:"alert",children:(e,t)=>{var r=dn();X((()=>mn(r,""+n()))),hn(e,r)},$$slots:{default:!0}})},nt=()=>Mn((()=>import("./PostDisplay-Cl4Ezdpa.js")),__vite__mapDeps([0,1,2,3,4])),tt=()=>Mn((()=>import("./ProfileCardDisplay-DKmfi7Ri.js")),__vite__mapDeps([5,1,2,6])),rt=()=>Mn((()=>import("./ProfileFeedDisplay-283HcGVb.js")),__vite__mapDeps([7,1,2,3,8]));var lt=vn('<fieldset class="choices svelte-1j9k2rk"><label class="choice svelte-1j9k2rk"><input type="radio" name="profile-type" class="svelte-1j9k2rk"> <span>Profile feed</span></label> <label class="choice svelte-1j9k2rk"><input type="radio" name="profile-type" class="svelte-1j9k2rk"> <span>Profile card</span></label></fieldset>'),ot=vn('<div class="app svelte-1j9k2rk"><h1 class="header svelte-1j9k2rk"><code>&lt;bluesky-embed&gt;</code></h1> <!> <!> <main class="main svelte-1j9k2rk"><!></main> <footer class="footer svelte-1j9k2rk"><span>made with ❤️ by <a href="https://bsky.app/profile/did:plc:ia76kvnndjutgedggx2ibrem" class="svelte-1j9k2rk">@mary.my.id</a></span> <span aria-hidden="true">·</span> <span><a href="https://github.com/mary-ext/bluesky-embed" class="svelte-1j9k2rk">source code</a></span> <span aria-hidden="true">·</span> <span>MIT License</span></footer></div>');!function(e,t){(function(e,{target:t,anchor:l,props:o={},events:a,context:i,intro:u=!0}){!function(){if(void 0===z){z=window;var e=Element.prototype,n=Node.prototype;q=r(n,"firstChild").get,D=r(n,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}();var s=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!s.has(r)){s.add(r);var l=gn(r);t.addEventListener(r,sn,{passive:l});var o=_n.get(r);void 0===o?(document.addEventListener(r,sn,{passive:l}),_n.set(r,1)):_n.set(r,o+1)}}};f(n(on)),an.add(f);var c=void 0,v=function(e){const n=H(64,e,!0);return()=>{le(n)}}((()=>{var n=l??t.appendChild(R());return ee((()=>{i&&(nn({}),De.c=i);a&&(o.$$events=a),c=e(n,o)||{},i&&tn()})),()=>{for(var e of s){t.removeEventListener(e,sn);var r=_n.get(e);0==--r?(document.removeEventListener(e,sn),_n.delete(e)):_n.set(e,r)}an.delete(f),bn.delete(c),n!==l&&n.parentNode?.removeChild(n)}}));bn.set(c,v)})(e,t)}((function(e,n){nn(n,!0);const t=[],r="https://bsky.app/profile/did:plc:ragtjsm2j2vknwkz3zp4oxrd/post/3kj2umze7zj2n";let l=j(""),o=j("feed");const a=B((()=>Bn(Qe(l)||r)));var i=ot(),s=Z(T(i),2);!function(e,n){nn(n,!0);var t=Hn(),r=T(t),l=T(r),o=T(l);xn(Z(l,2),(()=>n.children)),X((()=>mn(o,n.label))),hn(e,t),tn()}(s,{label:"Bluesky post or profile URL",children:(e,n)=>{Xn(e,{type:"url",placeholder:r,get value(){return Qe(l)},set value(e){P(l,A(e))}})},$$slots:{default:!0}});var f=Z(s,2),c=e=>{var n=lt(),r=T(n),l=T(r);l.value=null==(l.__value="feed")?"":"feed";var a=T(Z(r,2));a.value=null==(a.__value="card")?"":"card",Sn(t,[],l,(()=>Qe(o)),(e=>P(o,e))),Sn(t,[],a,(()=>Qe(o)),(e=>P(o,e))),hn(e,n)};kn(f,(e=>{Qe(a)&&"profile"===Qe(a).type&&e(c)}));var v=T(Z(f,2)),d=e=>{Wn(e,{type:"alert",children:(e,n)=>{hn(e,dn("Invalid URL, did you type it correctly?"))},$$slots:{default:!0}})},p=e=>{var n=pn(),t=I(n),r=e=>{{const n=(e,n=u)=>{var t=pn();En(I(t),n,((e,n)=>{n(e,{get matched(){return Qe(a)}})})),hn(e,t)};Jn(e,{loader:nt,fallback:Yn,boundary:et,children:n,$$slots:{default:!0}})}},l=e=>{var n=pn(),t=I(n),r=e=>{var n=B((()=>"card"===Qe(o)?tt:rt));{const t=(e,n=u)=>{var t=pn();En(I(t),n,((e,n)=>{n(e,{get matched(){return Qe(a)}})})),hn(e,t)};Jn(e,{get loader(){return Qe(n)},fallback:Yn,boundary:et,children:t,$$slots:{default:!0}})}};kn(t,(e=>{"profile"===Qe(a).type&&e(r)}),!0),hn(e,n)};kn(t,(e=>{"post"===Qe(a).type?e(r):e(l,!1)}),!0),hn(e,n)};kn(v,(e=>{Qe(a)?e(p,!1):e(d)})),hn(e,i),tn()}),{target:document.getElementById("app")});export{xn as A,Wn as B,Fn as C,hn as a,tn as b,vn as c,T as d,pn as e,I as f,wn as g,dn as h,mn as i,Qe as j,Z as k,kn as l,B as m,Y as n,ee as o,nn as p,fn as q,cn as r,Pn as s,X as t,M as u,le as v,De as w,G as x,Xe as y,un as z};
+6 -4
index.html
··· 1 1 <!doctype html> 2 2 <html lang="en"> 3 3 <head> 4 - <meta charset="utf-8" /> 4 + <meta charset="UTF-8" /> 5 + <link rel="icon" type="image/svg+xml" href="/vite.svg" /> 5 6 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 - <title>Bluesky embed</title> 7 - <script type="module" crossorigin src="./assets/index-jW3IhGIV.js"></script> 8 - <link rel="stylesheet" crossorigin href="./assets/index-C-FSbVJg.css"> 7 + <title>Vite + Svelte + TS</title> 8 + <script type="module" crossorigin src="/assets/index-xYaDyaLn.js"></script> 9 + <link rel="stylesheet" crossorigin href="/assets/index-XffDz6pj.css"> 9 10 </head> 10 11 <body> 12 + <div id="app"></div> 11 13 </body> 12 14 </html>