1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`35c1d2cc429c24a7c5bb6e8e28dadfbf9a819c1b`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`86a7fabc-42b3-47ea-861a-8b0a00efb08f`,e._sentryDebugIdIdentifier=`sentry-dbid-86a7fabc-42b3-47ea-861a-8b0a00efb08f`)}catch{}})();var e=`Something went wrong. Please try again.`,t={advocates_bar_council_number_key:`This Bar Council Registration Number is already registered to another lawyer. Please double-check the number, or contact support if you believe this is an error.`},n={bar_council_number:`Bar Council Registration Number`,email:`email address`,phone:`phone number`,phone_number:`phone number`,mobile:`mobile number`,slug:`profile URL`,provider_order_id:`payment reference`,cnr_number:`CNR number`,upi_id:`UPI ID`,ifsc_code:`IFSC code`,account_number:`bank account number`,gstin:`GSTIN`,pan_card:`PAN`,aadhar_card:`Aadhaar number`},r=new Set([`40001`,`40P01`,`55P03`,`57014`,`53300`,`53400`,`08000`,`08003`,`08006`,`57P01`,`57P03`]);function i(e){return n[e]?n[e]:e.replace(/_id$/,``).replace(/_/g,` `).trim()||`value`}function a(e){if(!e)return null;let t=e.match(/Key \(([^)=]+)\)/);if(t)return t[1].trim();let n=e.match(/column "([^"]+)"/);return n?n[1].trim():null}function o(e){if(!e)return null;let t=e.match(/=\(([^)]*)\) already exists/);return t?t[1].trim():null}function s(e){if(!e)return null;let t=e.match(/constraint "([^"]+)"/);return t?t[1]:null}function c(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.code==`string`&&typeof t.message==`string`}function l(e){let t=e.toLowerCase();return t.includes(`failed to fetch`)||t.includes(`network request failed`)||t.includes(`networkerror`)||t.includes(`load failed`)||t.includes(`err_internet_disconnected`)||t.includes(`timeout`)||t.includes(`timed out`)}function u(e){let t=e.toLowerCase();return l(t)?p():t.includes(`row-level security`)||t.includes(`row level security`)?`You don't have permission to do this. If you think you should, please contact support.`:t.includes(`exceeded the maximum allowed size`)||t.includes(`payload too large`)||t.includes(`entity too large`)||t.includes(`max file size`)||t.includes(`file size limit`)?`That file is too large. Please choose a smaller file and try again.`:t.includes(`mime type`)&&t.includes(`not supported`)?`That file type isn't supported. Please choose a different file.`:t.includes(`bucket not found`)?`We couldn't find where to store this file. Please try again, or contact support if it keeps happening.`:t.includes(`resource already exists`)||t.includes(`object already exists`)?`A file with that name already exists. Please rename it and try again.`:null}function d(n){let{code:c,message:l,details:u}=n;switch(c){case`23505`:{let e=s(l);if(e&&t[e])return t[e];let n=a(u)??a(l),r=n?i(n):`value`,c=o(u);return c?`That ${r} ("${c}") is already in use. Please use a different one.`:`That ${r} is already in use. Please use a different one.`}case`23503`:return`This references a record that no longer exists. Please refresh the page and try again.`;case`23502`:{let e=a(l),t=e?i(e):`A required field`;return`${t.charAt(0).toUpperCase()+t.slice(1)} is required. Please fill it in and try again.`}case`23514`:return`Some of the information entered isn't allowed. Please review the highlighted fields and try again.`;case`23P01`:return`This conflicts with an existing entry â the time or slot may already be taken. Please pick another.`;case`22001`:return`One of the values is too long. Please shorten it and try again.`;case`22003`:case`22023`:case`22007`:case`22008`:case`22P02`:return`One of the values has an invalid format or is out of range. Please check your entries and try again.`;case`42501`:return`You don't have permission to do this. If you think you should, please contact support.`;case`P0001`:return l&&!l.startsWith(`null value`)?l:e;case`PGRST116`:return`We couldn't find that record. It may have been removed.`;case`PGRST301`:case`PGRST302`:return`Your session has expired. Please sign in again.`;case`P0002`:return`We couldn't find that record. It may have been removed.`;case`2BP01`:return`This can't be removed while other records still depend on it.`;default:return r.has(c)?`The server is busy right now. Please try again in a moment.`:null}}function f(t,n=e){if(t==null)return n;if(typeof t==`string`)return t.trim()||n;if(c(t)){let e=d(t);if(e)return e;let r=t.message?.trim();return(r?u(r):null)||(r&&!r.startsWith(`duplicate key value`)&&!r.startsWith(`null value in column`)&&!r.includes(`violates `)&&!r.includes(`schema cache`)&&!/could not find/i.test(r)&&!/does not exist/i.test(r)?r:n)}if(t instanceof Error){let e=t.message?.trim();return e?u(e)||(e.includes(`Edge Function returned a non-2xx status code`)?n:e):n}if(typeof t==`object`&&`message`in t){let e=t.message;if(typeof e==`string`&&e.trim())return u(e.trim())??e.trim()}return n}function p(){return`Network error â please check your connection and try again.`}export{f as n,e 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.