import{y as s}from"./vendor-utils-_C9URqjS.js";import{r as l}from"./base32-DhtOODub.js";import{bt as i,_ as w,bu as o}from"./index-DGZk149v.js";var c=l();function a(e,r,n,p=!1){if(e&&e.startsWith(i)){const t=window.env.apiPrefix||"/";if(n){if(p&&window.blocklet?.serverDid){const d=`https://${c.encode(window.blocklet?.serverDid)}.${w}`;return`${s(d,o,r,e.replace(i,""))}?imageFilter=resize&w=64&h=64`}return`${s(t,o,e.replace(i,""))}?imageFilter=resize&w=64&h=64`}return`${s(t,o,r,e.replace(i,""))}?imageFilter=resize&w=64&h=64`}return e}const m=(e,r)=>e.nodeOwner&&e.nodeOwner.did===r,R=(e,r)=>e&&e.did===r;export{R as a,m as i,a as p};
