const m=["mail.google.com","googlemail.com","outlook.live.com","outlook.office.com","outlook.office365.com","outlook.com","hotmail.com","live.com","office.com","mail.yahoo.com","mail.inbox.lv","mail.one.lv","mail.proton.me","proton.me","mail.protonmail.com","protonmail.com","app.tuta.com","tutanota.com","mail.tutanota.com","mail.aol.com","aol.com","mail.zoho.com","mail.zoho.eu","zoho.com","e.mail.ru","mail.ru","mail.yandex.com","mail.yandex.ru","yandex.ru","gmx.com","gmx.net","gmx.de","web.de","mail.com","fastmail.com","app.fastmail.com","hushmail.com","mailfence.com","posteo.de","mailbox.org","runbox.com","mail.163.com","mail.qq.com","126.com","139.com","naver.com","mail.naver.com","daum.net","mail.daum.net","rediffmail.com","mail.rediff.com","seznam.cz","email.cz","centrum.cz","atlas.cz","mail.ee","mail.kz","ukr.net","i.ua","meta.ua","rambler.ru","laposte.net","orange.fr","sfr.fr","free.fr","libero.it","virgilio.it","tin.it","alice.it","wp.pl","o2.pl","interia.pl","onet.pl","gazeta.pl","abv.bg","mail.bg"],r=new Set(["inbox.lv","one.lv","apollo.lv","mail.inbox.lv","mail.one.lv"]),l=[{host:"icloud.com",path:/\/mail/i},{host:"inbox.lv",path:/\/(mail|webmail|correspondence|message)/i},{host:"one.lv",path:/\/(mail|webmail|message)/i},{host:"yahoo.com",path:/\/(d|b|n|m|mc)\//i},{host:"office.com",path:/\/mail/i}];function s(e){return e.toLowerCase().replace(/\.$/,"")}function n(e,t="/"){const i=s(e);if(r.has(i))return!0;for(const a of m)if(i===a||i.endsWith(`.${a}`))return!0;for(const a of l)if((typeof a.host=="string"?i===a.host||i.endsWith(`.${a.host}`):a.host.test(i))&&a.path.test(t))return!0;return!!(i.startsWith("webmail.")||i.startsWith("email.")||i.startsWith("mail.")&&!i.endsWith("nexguard.live"))}const o="https://nexguard.live",c=["nexguard.live","localhost","127.0.0.1"];function p(e){const t=e.toLowerCase().replace(/\.$/,"");return c.some(i=>t===i||t.endsWith(`.${i}`))}function h(e,t="/"){return n(e,t)}const f={privacy:`${o}/privacy`,terms:`${o}/terms`,securityDisclosure:`${o}/security-disclosure`,responsibleDisclosure:`${o}/responsible-disclosure`},d={health:`${o}/api/browser/health`,pageRisk:`${o}/api/browser/page-risk`,fullAudit:`${o}/api/browser/visit`,domainReputation:e=>`${o}/api/browser/domain-reputation?domain=${encodeURIComponent(e)}`,verifiedBusiness:e=>`${o}/api/browser/verified/${encodeURIComponent(e)}`,emailScan:`${o}/api/browser/email`,scamReport:`${o}/api/reports/scam`,extensionVersion:`${o}/api/browser/extension-version`,downloadPage:`${o}/download`,browserReport:e=>e?`${o}/browser?url=${encodeURIComponent(e)}`:`${o}/browser`};export{d as E,f as L,o as N,p as a,h as i};
