1import{n as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./client-9oEV3LiO.js";var n=e({getAuth:()=>d,getCloudAccessToken:()=>f,setAuth:()=>o}),r=`urn:lovable:service:cloud-proxy`,i=null,a=null;function o(e){i=e}function s(e){return{async getUser(){let{data:t,error:n}=await e.getSession();return{data:{user:t?.user??null},error:n??null}},async getSession(){let{data:t,error:n}=await e.getSession();if(n||!t)return{data:{session:null},error:n??null};let r=a?await a.get():null;return r?{data:{session:{access_token:r,user:t.user}},error:null}:{data:{session:null},error:Error(`Lovable Auth: could not mint a Lovable Cloud access token for the signed-in user`)}}}}var c=Object.assign({})[`/src/integrations/lovable-client.ts`],l=c?c().then(e=>{let t=e.lovable?.auth;t&&(a=t.accessTokenProvider({audience:r}),i||=s(t))}).catch(()=>void 0):Promise.resolve(),u={async getUser(){return{data:{user:null},error:null}},async getSession(){return{data:{session:null},error:null}}};async function d(){return await l,i||(c?u:t.auth)}async function f(){return await l,a?a.get():null}export{d as n,n as t};
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.