1import{c as M}from"./supabase-DxfZiqN5.js";import"./react-vendor-BURXZ51T.js";function P(){var m,u;if(typeof window>"u")return;const o=location.hostname,E=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(e=>o===e||o.endsWith("."+e)),c="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=E?((m=o.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+c+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:m[1])??((u=o.match(new RegExp("^("+c+")(?=[.-])","i")))==null?void 0:u[1]):void 0,S=window.parent&&window.parent!==window;if(!l||!S)return localStorage;const p=o.endsWith(".lovableproject-dev.com")||o.endsWith(".gpt-eng.com"),R=p?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,a=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),d=a&&R.test(a)?[a]:p?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],O="lovable-preview-auth:result",T=2e3,j=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),r=(e,t,s)=>new Promise(U=>{const g=j();let I=!1,w;const f=n=>{I||(I=!0,clearTimeout(w),window.removeEventListener("message",h),U(n))},h=n=>{if(d.indexOf(n.origin)<0)return;const i=n.data;i&&i.type===O&&i.requestId===g&&f(i)};window.addEventListener("message",h);const b={type:e,requestId:g,projectId:l,key:t};s!==void 0&&(b.value=s);for(const n of d)window.parent.postMessage(b,n);w=setTimeout(()=>f(null),T)});let v=!0;const L=250;return{getItem:async e=>{let t=await r("lovable-preview-auth:get",e);return!t&&v&&(await new Promise(s=>setTimeout(s,L)),t=await r("lovable-preview-auth:get",e)),v=!1,t&&t.ok&&typeof t.value=="string"?t.value===""?(localStorage.removeItem(e),null):t.value:localStorage.getItem(e)},setItem:(e,t)=>(localStorage.setItem(e,t),r("lovable-preview-auth:set",e,t).then(()=>{})),removeItem:e=>(localStorage.removeItem(e),r("lovable-preview-auth:remove",e).then(()=>{}))}}const J="https://vbbjtsrypdfstwygrcud.supabase.co",W="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZiYmp0c3J5cGRmc3R3eWdyY3VkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjI0MjM5NTYsImV4cCI6MjA3Nzk5OTk1Nn0.IOdDcFQbvOW4ILuqQBIqd-jouGkRnfHcTXk465W7lMo",Z=M(J,W,{auth:{storage:P(),persistSession:!0,autoRefreshToken:!0}});export{Z as supabase};
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.