1// Language belongs to the visitor's browser, not the page address. 2export function preferredLanguage(cookie) { 3 const saved = cookie.match(/(?:^|;\s*)inkas_language=(en|ko)(?:;|$)/)?.[1]; 4 return saved || 'ko'; 5} 6 7export function languageCookie(language, secure = false) { 8 if (!['en', 'ko'].includes(language)) throw new Error('Unsupported language'); 9 return `inkas_language=${language}; Path=/; Max-Age=31536000; SameSite=Lax${secure ? '; Secure' : ''}`; 10} 11 12export const isPagePath = path => /^\/(?:$|(?:about|news|gallery|post|programs|information|involved|transparency|contact|donate|account|login|signup|privacy|staff)(?:\/|$))/.test(path);
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.