1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22609,e=>{e.v({caretIcon:"VideoList-module__ei__vG__caretIcon",contentWrapper:"VideoList-module__ei__vG__contentWrapper",dragHandle:"VideoList-module__ei__vG__dragHandle",expanded:"VideoList-module__ei__vG__expanded",feedSelector:"VideoList-module__ei__vG__feedSelector",feedSelectorWrapper:"VideoList-module__ei__vG__feedSelectorWrapper",loadMoreButton:"VideoList-module__ei__vG__loadMoreButton",loadMoreContainer:"VideoList-module__ei__vG__loadMoreContainer",loader:"VideoList-module__ei__vG__loader",mobileHeader:"VideoList-module__ei__vG__mobileHeader",mobileToggle:"VideoList-module__ei__vG__mobileToggle",noVideosText:"VideoList-module__ei__vG__noVideosText",panel:"VideoList-module__ei__vG__panel",playing:"VideoList-module__ei__vG__playing",repostIcon:"VideoList-module__ei__vG__repostIcon",settingsButton:"VideoList-module__ei__vG__settingsButton",thumbnail:"VideoList-module__ei__vG__thumbnail",videoAuthor:"VideoList-module__ei__vG__videoAuthor",videoInfo:"VideoList-module__ei__vG__videoInfo",videoItem:"VideoList-module__ei__vG__videoItem",videoList:"VideoList-module__ei__vG__videoList",videoRow:"VideoList-module__ei__vG__videoRow",videoStats:"VideoList-module__ei__vG__videoStats",videoText:"VideoList-module__ei__vG__videoText"})},21950,e=>{e.v({author:"AuthorHeader-module__8KGRla__author",authorAvatar:"AuthorHeader-module__8KGRla__authorAvatar",authorDisplayName:"AuthorHeader-module__8KGRla__authorDisplayName",authorHandle:"AuthorHeader-module__8KGRla__authorHandle",authorInfo:"AuthorHeader-module__8KGRla__authorInfo",authorNameRow:"AuthorHeader-module__8KGRla__authorNameRow",avatarLink:"AuthorHeader-module__8KGRla__avatarLink",displayNameLink:"AuthorHeader-module__8KGRla__displayNameLink"})},46360,e=>{e.v({container:"PostDetails-module__kW3OuW__container",placeholder:"PostDetails-module__kW3OuW__placeholder"})},58732,e=>{e.v({closeButton:"FeedManagerModal-module__iZQM3q__closeButton",content:"FeedManagerModal-module__iZQM3q__content",emptyMessage:"FeedManagerModal-module__iZQM3q__emptyMessage",feedItem:"FeedManagerModal-module__iZQM3q__feedItem",feedList:"FeedManagerModal-module__iZQM3q__feedList",header:"FeedManagerModal-module__iZQM3q__header",modal:"FeedManagerModal-module__iZQM3q__modal",overlay:"FeedManagerModal-module__iZQM3q__overlay",removeButton:"FeedManagerModal-module__iZQM3q__removeButton"})},43358,e=>{e.v({detailsContainer:"Home-module__baJ6tW__detailsContainer",leftPanel:"Home-module__baJ6tW__leftPanel",main:"Home-module__baJ6tW__main",noVideo:"Home-module__baJ6tW__noVideo",playerContainer:"Home-module__baJ6tW__playerContainer",rightPanel:"Home-module__baJ6tW__rightPanel"})},81694,e=>{"use strict";var a=e.i(43476),t=e.i(71645),l=e.i(80249);let i="https://public.api.bsky.app/xrpc";async function s(e){if(e.startsWith("did:"))return e;try{let a=await fetch(`${i}/com.atproto.identity.resolveHandle?handle=${e}`);if(!a.ok)throw Error(`HTTP error! status: ${a.status}`);return(await a.json()).did}catch(e){return console.error("Failed to resolve handle:",e),null}}async function o(e,t){let l=function(e){try{let a=new URL(e);if("bsky.app"!==a.hostname)return null;let t=a.pathname.split("/").filter(Boolean);if("profile"!==t[0])return null;let l=t[1],i=t[2],s=t[3];if("feed"===i)return{type:"feed",handle:l,rkey:s};if("lists"===i)return{type:"list",handle:l,rkey:s};if(!i)return{type:"profile",handle:l};return null}catch(e){return console.error("Invalid URL:",e),null}}(e);if(!l)return t((0,a.jsxs)(a.Fragment,{children:["Invalid Bluesky URL. Supported formats:",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Profile: https://bsky.app/profile/bsky.app",(0,a.jsx)("br",{}),"Feed: https://bsky.app/profile/bsky.app/feed/whats-hot",(0,a.jsx)("br",{}),"List: https://bsky.app/profile/bsky.app/lists/3lvpca43j5z26"]})),null;let o=await s(l.handle);if(!o)return t(`Could not find user: ${l.handle}`),null;let r="",d="";try{switch(l.type){case"profile":{r=o;let e=await fetch(`${i}/app.bsky.actor.getProfile?actor=${o}`),a=await e.json();if(a?.labels?.some(e=>"!no-unauthenticated"===e.val))return t(`This profile (@${a.handle}) has disabled access for logged-out users and cannot be viewed.`),null;d=`Profile: ${a.displayName||l.handle}`;break}case"feed":{r=`at://${o}/app.bsky.feed.generator/${l.rkey}`;let e=await fetch(`${i}/app.bsky.feed.getFeedGenerator?feed=${r}`),a=await e.json();d=`Feed: ${a.view.displayName}`;break}case"list":{r=`at://${o}/app.bsky.graph.list/${l.rkey}`;let e=await fetch(`${i}/app.bsky.graph.getList?list=${r}`),a=await e.json();d=`List: ${a.list.name}`;break}default:return null}return{name:d,uri:r}}catch(e){return console.error("Failed to fetch feed details:",e),t("Could not fetch details for this URL. It might be a private feed or list."),null}}var r=e.i(45844),d=e.i(8471);let n="bsky_video_custom_feeds",c="bsky_video_watch_history";var u=e.i(25748),m=e.i(40946),h=e.i(15330),_=e.i(17603),f=e.i(69464);let p=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31
1a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),t.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,
16,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),v=t.forwardRef((e,a)=>t.createElement(f.default,{ref:a,...e,weights:p}));v.displayName="GearSixIcon";var g=e.i(31991),x=e.i(22609),y=e.i(30912),L=e.i(12992),b=e.i(48787),j=e.i(65658);function V({progress:e,totalVideos:t}){return(0,a.jsxs)("div",{className:x.default.loader,children:[(0,a.jsxs)("p",{children:["Scanning posts... ",e.scanned]}),(0,a.jsxs)("p",{children:["Found ",t," videos"]})]})}function M({feeds:e,selectedFeedUri:l,onFeedChange:i,videos:s,onVideoSelect:o,currentVideo:r,isLoading:d,onLoadMore:n,isLoadingMore:c,hasMore:u,loadingProgress:m,totalVideosFound:f,onOpenFeedManager:p,isMobileExpanded:A,onToggleMobileList:w}){let H=e.find(e=>e.uri===l),[{y:S}
1,Z]=(0,j.useSpring)(()=>({y:0})),k=(0,L.useDrag)(({down:e,movement:[,a],velocity:[,t],direction:[,l]})=>{e&&a>0?Z.start({y:a,immediate:!0}):e||((a>window.innerHeight/4||t>.5&&l>0)&&w(),Z.start({y:0,immediate:!1}))},{from:()=>[0,S.get()],bounds:{top:0},rubberband:!0});return(0,t.useEffect)(()=>{A||Z.start({y:0})},[A,Z]),(0,a.jsxs)(b.animated.div,{...k(),style:{y:S},className:`${x.default.panel} ${A?x.default.expanded:""}`,children:[(0,a.jsxs)("div",{className:x.default.mobileHeader,onClick:w,children:[(0,a.jsx)("div",{className:x.default.dragHandle}),(0,a.jsxs)("span",{children:["Up Next: ",H?.name||"Loading..."]}),(0,a.jsx)("button",{className:x.default.mobileToggle,children:A?(0,a.jsx)(h.CaretDown,{size:20}):(0,a.jsx)(g.CaretUp,{size:20})})]}),(0,a.jsxs)("div",{className:x.default.contentWrapper,children:[(0,a.jsxs)("div",{className:x.default.feedSelectorWrapper,children:[(0,a.jsx)("select",{className:x.default.feedSelector,value:l,onChange:e=>i(e.target.value),disabled:d,children:e.map(e=>(0,a.jsx)("option",{value:e.uri,children:e.name},e.uri))}),(0,a.jsx)(h.CaretDown,{size:16,className:x.default.caretIcon}),(0,a.jsx)("button",{onClick:p,className:x.default.settingsButton,title:"Manage Feeds",children:(0,a.jsx)(v,{size:28,weight:"duotone"})})]}),(0,a.jsxs)("div",{className:x.default.videoList,children:[d&&(0,a.jsx)(V,{progress:m,totalVideos:f}),!d&&s.map(e=>{let{post:t}=e,l=!!e.reason,i=t.uri===r?.uri,s=N(t);if(!s)return null;let d=l?e.reason.indexedAt:t.uri;return(0,a.jsxs)("div",{className:`${x.default.videoItem} ${i?x.default.playing:""}`,onClick:()=>o({...t,_isRepost:l,_repostedBy:e.reason?.by}),children:[l&&(0,a.jsx)("div",{className:x.default.repostIcon,children:(0,a.jsx)(_.Repeat,{size:12,weight:"bold"})}),(0,a.jsxs)("div",{className:x.default.videoRow,children:[(0,a.jsx)("img",{src:s.thumbnail||"/fallback-thumbnail.png",alt:t.record.text?.substring(0,50)||"Video thumbnail",className:x.default.thumbnail,onError:e=>{e.target.onerror=null,e.target.src="/fallback-thumbnail.png"}}),(0,a.jsxs)("div",{className:x.default.videoInfo,children:[(0,a.jsx)("p",{className:x.default.videoText,children:t.record.text}),(0,a.jsxs)("p",{className:x.default.videoAuthor,children:["@",t.author.handle]})]})]}),(0,a.jsx)(y.default,{post:t,className:x.default.videoStats,showTimestamp:!0})]},d)}),(0,a.jsxs)("div",{className:x.default.loadMoreContainer,children:[u&&(0,a.jsx)("button",{className:x.default.loadMoreButton,onClick:n,disabled:c,children:c?"Scanning...":"Load More Videos"}),!d&&0===s.length&&(0,a.jsx)("p",{className:x.default.noVideosText,children:"No videos found in this feed."})]})]})]})]})}let N=e=>{if(!e||!e.embed)return null;let a=e.embed.media||e.embed;return a?.$type?.includes("video")?{thumbnail:a.thumbnail,videoUrl:a.playlist,aspectRatio:a.aspectRatio}:null};var A=e.i(40816),w=e.i(3312);function H({external:e}){return(0,a.jsxs)("a",{href:e.uri,target:"_blank",rel:"noopener noreferrer",className:w.default.externalLinkCard,children:[(0,a.jsx)("div",{className:w.default.externalTitle,children:e.title}),(0,a.jsx)("div",{className:w.default.externalDescription,children:e.description}),(0,a.jsx)("div",{className:w.default.externalUri,children:e.uri})]})}var S=e.i(33962),Z=e.i(21950);function k({author:e,onProfileSelect:t}){if(!e)return null;let l=a=>{a.preventDefault(),t(`https://bsky.app/profile/${e.handle}`)};return(0,a.jsxs)("div",{className:Z.default.author,children:[(0,a.jsx)("a",{href:`/profile/${e.handle}`,onClick:l,className:Z.default.avatarLink,children:(0,a.jsx)("img",{src:e.avatar||"/profile.svg",alt:e.displayName,className:Z.default.authorAvatar,onError:e=>{e.target.onerror=null,e.target.src="/profile.svg"}})}),(0,a.jsxs)("div",{className:Z.default.authorInfo,children:[(0,a.jsxs)("div",{className:Z.default.authorNameRow,children:[(0,a.jsx)("a",{href:`/profile/${e.handle}`,onClick:l,className:Z.default.displayNameLink,children:(0,a.jsx)("span",{className:Z.default.authorDisplayName,children:e.displayName})}),(0,a.jsx)(S.default,{actor:e})]}),(0,a.jsxs)("div",{className:Z.default.authorHandle,children:["@",e.handle]})]})]})}function C({post:e,onProfileSelect:t}){let l=e.embed?.$type==="app.bsky.embed.external#view",i=e._isRepost,s=e._repostedBy;return(0,a.jsxs)("div",{className:w.default.postInfo,children:[i&&s&&(0,a.jsxs)("div",{className:w.default.repostHeader,children:[(0,a.jsx)(_.Repeat,{size:16,weight:"bold"}),(0,a.jsxs)("span",{children:["Reposted by ",s.displayName||`@${s.handle}`]})]}),(0,a.jsxs)("div",{className:w.default.authorTopInfo,children:[(0,a.jsx)(k,{author:e.author,onProfileSelect:t}),(0,a.jsx)(y.default,{post:e,showLikes:!1,showReposts:!1,showBookmarks:!1,showTimestamp:!0,showMenu:!0})]}),(0,a.jsx)("div",{className:w.default.postText,children:e.record.text&&(0,a.jsx)(A.default,{text:e.record.text,facets:e.record.facets,onProfileSelect:t})}),l&&(0,a.jsx)(H,{external:e.embed.external}),(0,a.jsx)(y.default,{post:e,showMenu:!1,showTimestamp:!1,showCopyLink:!0})]})}var E=e.i(43742),F=e.i(46360);function R({post:e,discussions:t,isLoading:l,activeTab:i,onTabChange:s,onProfileSelect:o}){return e?(0,a.jsxs)("div",{className:F.default.container,children:[(0,a.jsx)(C,{post:e,onProfileSelect:o}),(0,a.jsx)(E.default,{activeTab:i,setActiveTab:s,discussions:t,isLoading:l,post:e,onProfileSelect:o})]}):(0,a.jsx)("div",{className:F.default.container,children:(0,a.jsx)("p",{className:F.default.placeholder,children:"Select a video to see details."})})}var I=e.i(77854);let G=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),t.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),$=t.forwardRef((e,a)=>t.createElement(f.default,{ref:a,...e,weights:G}));$.displayName="TrashIcon";var T=e.i(58732);function P({isOpen:e,onClose:t,customFeeds:l,onRemoveFeed:i}){return e?(0,a.jsx)("div",{className:T.default.overlay,onClick:t,children:(0,a.jsxs)("div",{className:T.default.modal,onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:T.default.header,children:[(0,a.jsx)("h2",{children:"My Saved Feeds"}),(0,a.jsx)("button",{onClick:t,className:T.default.closeButton,children:(0,a.jsx)(I.X,{size:20})})]}),(0,a.jsx)("div",{className:T.default.content,children:(0,a.jsx)("section",{className:T.default.section,children:(0,a.jsx)("div",{className:T.default.feedList,children:l.length>0?l.map(e=>(0,a.jsxs)("div",{className:T.default.feedItem,children:[(0,a.jsx)("span",{children:e.name}),(0,a.jsxs)("button",{onClick:()=>
1i(e.uri),className:T.default.removeButton,children:[(0,a.jsx)($,{size:16})," Remove"]})]},e.uri)):(0,a.jsx)("p",{className:T.default.emptyMessage,children:"You haven't added any custom feeds yet."})})})})]})}):null}var B=e.i(13245),W=e.i(43358);e.s(["default",0,function(){let{allFeeds:e,customFeeds:i,selectedFeedUri:s,videos:h,cursor:_,currentVideo:f,isLoadingFeed:p,isLoadingMore:v,isAddingFeed:g,discussions:x,isLoadingDiscussions:y,activeTab:L,loadingProgress:b,isFeedManagerOpen:j,isSidebarOpen:V,watchHistory:N,curatedProfiles:A,isLoadingProfiles:w,setSelectedFeedUri:H,handleAddFeed:S,handleLoadMore:Z,setActiveTab:k,handleProfileSelect:C,openFeedManager:E,closeFeedManager:F,handleRemoveFeed:I,toggleSidebar:G,closeSidebar:$,handleVideoSelect:T,handleHistoryItemClick:O,handleRemoveHistoryItem:D,handleClearHistory:J,isMobileListExpanded:U,toggleMobileList:q}=function(){let e=(0,t.useRef)(!0),{showAlert:a}=(0,d.useAlert)(),[i,s]=(0,t.useState)([]),[u,m]=(0,t.useState)([]),[h,_]=(0,t.useState)([]),[f,p]=(0,t.useState)(""),[v,g]=(0,t.useState)([]),[x,y]=(0,t.useState)(null),[L,b]=(0,t.useState)(null),[j,V]=(0,t.useState)(!0),[M,N]=(0,t.useState)(!1),[A,w]=(0,t.useState)(!1),[H,S]=(0,t.useState)([]),[Z,k]=(0,t.useState)([]),[C,E]=(0,t.useState)(!0),[F,R]=(0,t.useState)(!1),[I,G]=(0,t.useState)([]),[$,T]=(0,t.useState)(!1),[P,B]=(0,t.useState)("replies"),[W,O]=(0,t.useState)({scanned:0}),[D,J]=(0,t.useState)(!1),[U,q]=(0,t.useState)(!1);(0,t.useEffect)(()=>{let e="no-scroll";return A||U?document.body.classList.add(e):document.body.classList.remove(e),()=>{document.body.classList.remove(e)}},[A,U]),(0,t.useEffect)(()=>{(async()=>{let e=localStorage.getItem(c);S(e?JSON.parse(e):[]);let a=[];try{let e=await fetch("/feeds.json");a=await e.json(),m(a)}catch(e){console.error("Failed to load default feeds",e)}let t=localStorage.getItem(n),l=t?JSON.parse(t):[],i=new Map;l.forEach(e=>i.set(e.uri,e)),_(Array.from(i.values()))})(),(async()=>{E(!0);try{let e=await fetch("/profiles.json"),a=(await e.json()).map(e=>e.did),t=await (0,l.getProfiles)(a);k(t)}catch(e){console.error("Failed to load curated profiles",e)}finally{E(!1)}})()},[]),(0,t.useEffect)(()=>{let e=[...u,...h],a=new Map;e.forEach(e=>a.set(e.uri,e)),s(Array.from(a.values()))},[u,h]),(0,t.useEffect)(()=>{e.current&&0!==i.length&&(async()=>{let t=window.location.hash.slice(1),s=!1,d=new URLSearchParams(window.location.search).get("search");if(d){let e=await o(d,a);if(e){let a=h;i.some(a=>a.uri===e.uri)||(_(a=[...h,e]),localStorage.setItem(n,JSON.stringify(a))),p(e.uri),s=!0,window.history.replaceState(null,"",window.location.pathname+window.location.hash)}}if(!s&&t&&t.includes("/")){let[e,a]=t.split("/"),i=`at://${e}/app.bsky.feed.post/${a}`,o=await (0,l.getSinglePost)(i);o&&(0,r.extractVideoData)(o)&&(g([{post:o}]),b(o),K(o),p(o.author.did),s=!0)}s||p(i[0].uri),e.current=!1})()},[i]),(0,t.useEffect)(()=>{if(!f)return;if(1===v.length&&v[0].post.author.did===f)return void V(!1);let e=!1;return(async()=>{V(!0),g([]),b(null),y(null),O({scanned:0});let{cursor:a}=await (0,l.fetchPaginatedVideos)(f,null,({scanned:a,newVideos:t})=>{!e&&(O({scanned:a}),t.length>0&&g(e=>(0,r.deduplicateVideos)([...e,...t])))});e||(y(a),V(!1))})(),()=>{e=!0}},[f]),(0,t.useEffect)(()=>{if(L){let e=L.uri.split("/").pop(),a=`#${L.author.did}/${e}`;window.location.hash!==a&&history.replaceState(null,"",a)}},[L]),(0,t.useEffect)(()=>{!L&&v.length>0&&b(v[0].post)},[v,L]),(0,t.useEffect)(()=>{L?(async()=>{T(!0),G(await (0,l.fetchDiscussions)(L.uri,P)),T(!1)})():G([])},[L,P]);let K=e=>{e&&S(a=>{let t=[e,...a.filter(a=>a.uri!==e.uri)].slice(0,50);return localStorage.setItem(c,JSON.stringify(t)),t})},z=(0,t.useCallback)(async e=>{N(!0);let t=await o(e,a);if(N(!1),t){if(!i.some(e=>e.uri===t.uri)){let e=[...h,t];_(e),localStorage.setItem(n,JSON.stringify(e))}p(t.uri)}},[i,h,a]),Q=(0,t.useCallback)(e=>{let a=h.filter(a=>a.uri!==e);if(_(a),localStorage.setItem(n,JSON.stringify(a)),f===e){let e=u[0]||a[0];p(e?.uri||"")}},[h,u,f]),X=(0,t.useCallback)(e=>{S(a=>{let t=a.filter(a=>a.uri!==e);return localStorage.setItem(c,JSON.stringify(t)),t})},[]),Y=(0,t.useCallback)(()=>{window.confirm("Are you sure you want to clear your entire watch history?")&&(S([]),localStorage.removeItem(c))},[]),ee=(0,t.useCallback)(async()=>
1{if(!x||F)return;R(!0),O({scanned:0});let{cursor:e}=await (0,l.fetchPaginatedVideos)(f,x,({scanned:e,newVideos:a})=>{O(a=>({scanned:a.scanned+e})),a.length>0&&g(e=>(0,r.deduplicateVideos)([...e,...a]))});y(e),R(!1)},[x,F,f]),ea=(0,t.useCallback)(e=>z(e),[z]);return{allFeeds:i,customFeeds:h,selectedFeedUri:f,videos:v,cursor:x,currentVideo:L,isLoadingFeed:j,isLoadingMore:F,isAddingFeed:M,discussions:I,isLoadingDiscussions:$,activeTab:P,loadingProgress:W,isFeedManagerOpen:D,isSidebarOpen:A,watchHistory:H,curatedProfiles:Z,isLoadingProfiles:C,isMobileListExpanded:U,toggleMobileList:()=>q(e=>!e),setSelectedFeedUri:p,handleAddFeed:z,handleLoadMore:ee,setActiveTab:B,handleProfileSelect:ea,openFeedManager:()=>J(!0),closeFeedManager:()=>J(!1),handleRemoveFeed:Q,toggleSidebar:()=>w(e=>!e),closeSidebar:()=>w(!1),handleVideoSelect:e=>{b(e),K(e),q(!1)},handleHistoryItemClick:e=>{e.author.did!==f&&(g([{post:e}]),p(e.author.did)),b(e),w(!1)},handleRemoveHistoryItem:X,handleClearHistory:Y}}(),K=f?(0,r.extractVideoData)(f):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.default,{onAddFeed:S,isAdding:g,onToggleSidebar:G}),(0,a.jsx)(B.default,{isOpen:V,onClose:$,history:N,profiles:A,isLoadingProfiles:w,onHistoryItemClick:O,onProfileClick:C,onRemoveHistoryItem:D,onClearHistory:J}),(0,a.jsxs)("main",{className:W.default.main,children:[(0,a.jsxs)("div",{className:W.default.leftPanel,children:[(0,a.jsx)("div",{className:W.default.playerContainer,children:K?(0,a.jsx)(m.default,{url:K.videoUrl,thumbnail:K.thumbnail,aspectRatio:K.aspectRatio},f.uri):(0,a.jsx)("div",{className:W.default.noVideo,children:p?"Scanning posts...":"No videos found."})}),(0,a.jsx)("div",{className:W.default.detailsContainer,children:(0,a.jsx)(R,{post:f,discussions:x,isLoading:y,activeTab:L,onTabChange:k,onProfileSelect:C})})]}),(0,a.jsx)("div",{className:W.default.rightPanel,children:(0,a.jsx)(M,{feeds:e,selectedFeedUri:s,onFeedChange:H,videos:h,onVideoSelect:T,currentVideo:f,isLoading:p,onLoadMore:Z,isLoadingMore:v,hasMore:!!_,loadingProgress:b,totalVideosFound:h.length,onOpenFeedManager:E,isMobileExpanded:U,onToggleMobileList:q})})]}),(0,a.jsx)(P,{isOpen:j,onClose:F,customFeeds:i,onRemoveFeed:I})]})}],81694)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.