import{O as f}from"./index.a95f3dfe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a1b3b6e2-7102-49b9-9ba9-26aede3b0a8b",e._sentryDebugIdIdentifier="sentry-dbid-a1b3b6e2-7102-49b9-9ba9-26aede3b0a8b")}catch{}})();function g(e){return f.string().email().safeParse(e).success}function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}function p(e,r,a=!1,n=!0,s=!1){const c=(n?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),o=s?c.replace(/[^a-zA-Z0-9/]/g,"_"):c.replace(/[^a-zA-Z0-9]/g,"_"),l=a?o:o.replace(/_+/g,"_");return r?l:l.replace(/_$/,"")}function w(e){var t;const a=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),n=/[a-z0-9]+/g,s=a.match(n);return(t=s==null?void 0:s.join("-"))!=null?t:""}function h(e,r){if(e.length===0||r.length===0)return!1;const a=e.toLowerCase(),n=r.toLowerCase();return a.split("").reduce((t,c)=>{var l;if(t===!1)return!1;const o=(l=t[t.length-1])!=null?l:null;if(o===null){const i=n.indexOf(c);return i===-1?!1:[i]}else{const u=n.slice(o+1).indexOf(c);return u===-1?!1:[...t,o+1+u]}},[])}export{w as a,b as c,h as f,g as i,p as n};
//# sourceMappingURL=string.9fd91434.js.map
