import{y as s}from"./vendor-utils-_C9URqjS.js";import{b6 as a,b7 as e}from"./index-CgSpL7jz.js";import{af as t}from"./vendor-ux-PO0jFgJf.js";const c=o=>{const{response:r}=o;return r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:o.message},g=o=>o.scope==="kyc"?a({...o,issuerAvatarUrl:s(window.location.origin,t,"/blocklet/logo"),type:o.role}):e({...o,issuerAvatarUrl:s(window.location.origin,t,"/blocklet/logo")});export{g,c as l};
