1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0cc00a05-c032-4977-9846-e7fb129854d8`,e._sentryDebugIdIdentifier=`sentry-dbid-0cc00a05-c032-4977-9846-e7fb129854d8`)}catch{}})();import{s as e}from"./rolldown-runtime-DeIdhg0z.js";import{l as t}from"./fingerprint-DoNmKyyW.js";import{t as n}from"./logger-05ys4-K8.js";import{i as r}from"./react-BM3fXacw.js";import{j as i,q as a}from"./api-C1BZLgph.js";import{i as o}from"./messages-BhuT8nas.js";import{b as s}from"./posts-BzSswaRQ.js";var c=e(t(),1),l=async(e,t,r)=>{n.debug({postId:e,username:t},`[api] Fetching post details`);let a=await i({action:`post.byId`,data:{postId:e,targetLang:r,username:t}});return n.debug(a,`[api] Post details fetched`),a},u=(e,t)=>t?.tasks.find(t=>t.mediaAssetId===e)?.state===`pending`,d=()=>{let e=r(s),t=r(o);return(0,c.useCallback)(r=>{let{entityId:i,entityType:o}=r;if(o===`post`){let t=i;n.debug({entityId:t},`[firestore] Job succeeded, refetching to get manifest URLs`),l(t).then(t=>{e(t),n.debug({entityId:t._key},`[firestore] Updated entity with manifest URLs`)}).catch(e=>{n.error({error:e,entityId:t},`[firestore] Failed to fetch entity after job completion`)})}else if(o===`message`){let e=i;n.debug({entityId:e},`[firestore] Job succeeded, refetching to get manifest URLs`),a(e).then(e=>{t(e),n.debug({entityId:e._key},`[firestore] Updated entity with manifest URLs`)}).catch(t=>{n.error({error:t,entityId:e},`[firestore] Failed to fetch entity after job completion`)})}},[e,t])},f=e=>[`message-purchase`,`message-tip`,`post-purchase`,`post-tip`,`tip`,`pool-pledge-funded`,`pool-coinflip-entry`,`pool-raffle-entry`,`pool-prediction-entry`,`pool-payout-creator`,`pool-payout-winner`].includes(e.type),p=e=>e.type===`message-purchase`,m=e=>e.type===`post-purchase`,h=e=>e.type===`post-tip`,g=e=>e.type===`pool-pledge-funded`||e.type===`pool-raffle-entry`||e.type===`pool-prediction-entry`,_=e=>e.type===`pool-coinflip-entry`,v=e=>e.type===`pool-payout-creator`||e.type===`pool-payout-winner`,y=e=>e.type===`pool-cancelled`||e.type===`pool-expired`,b=async(e,t,r,a)=>{n.debug({cursor:t,sort:r},`[api] Fetching posts by creator "%s"`,e);let o=await i({action:`posts.byCreator`,data:{cursor:t,sort:r,targetLang:a,username:e}});return n.debug(o,`[api] Post by creator (%s) timeline fetched`,e),o};export{g as a,m as c,d,l as f,_ as i,h as l,f as n,y as o,p as r,v as s,b as t,u};
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.