1var e=`assets`,t=class extends Error{code=`storage/object-not-found`;constructor(e){super(`Object not found: ${e}`),this.name=`StorageObjectNotFoundError`}},n=new Map([{id:`staging-eu`,region:`eu`,publicHost:`supabase-eu.demo.participate.app`},{id:`staging-us`,region:`us`,publicHost:`supabase-us.demo.participate.app`},{id:`prod-eu`,region:`eu`,publicHost:`supabase-eu.participate.app`},{id:`prod-us`,region:`us`,publicHost:`supabase-us.participate.app`}].map(e=>[e.publicHost,e]));function r(e){return n.get(e)}function i(e){return e.split(`/`).map(e=>decodeURIComponent(e)).join(`/`)}function a(e){try{let t=new URL(e).pathname.match(/^\/storage\/v1\/object\/(?:public|authenticated|sign)\/([^/]+)\/(.+)$/);if(!t?.[1]||!t[2])return null;let n=t[1],r=i(t[2]);return!n||!r?null:{bucket:n,path:r}}catch{return null}}function o(e){try{let t=new URL(e),n=r(t.hostname);if(!n)return null;let a=t.pathname.match(/^\/storage\/v1\/object\/public\/([^/]+)\/(.+)$/);if(!a?.[1]||!a[2])return null;let o=a[1],s=i(a[2]);return!o||!s?null:{...n,bucket:o,path:s}}catch{return null}}function s(e,t,n){return`${e.replace(/\/$/,``)}/storage/v1/object/public/${t}/${n.replace(/^\/+/,``).split(`/`).map(e=>encodeURIComponent(e).replace(/%2B/g,`+`)).join(`/`)}`}function c(e){let t=e?.trim();if(t)try{let e=o(t);if(e?.bucket===`assets`){let n=r(new URL(t).hostname);if(n)return s(`https://${n.publicHost}`,e.bucket,e.path)}return t}catch{return t}}export{t as a,e as i,o as n,a as r,c 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.