1import{aw as c}from"./VbZ-GkDV.js";const o={en:"English",zh:"ç®ä½ä¸æ",ja:"æ¥æ¬èª",es:"Español","zh-hant":"ç¹é«ä¸æ",ko:"íêµì´",de:"Deutsch",fr:"Français",pt:"Português"},r={zh:"zh","zh-CN":"zh","zh-Hans":"zh","zh-TW":"zh-hant","zh-HK":"zh-hant","zh-Hant":"zh-hant",en:"en","en-US":"en","en-GB":"en",ja:"ja","ja-JP":"ja",es:"es","es-ES":"es","es-MX":"es",ko:"ko","ko-KR":"ko",de:"de","de-DE":"de",fr:"fr","fr-FR":"fr",pt:"pt","pt-BR":"pt","pt-PT":"pt"},i=e=>{if(!e)return"en";const a=e.split(",").map(t=>{const[n,s]=t.trim().split(";"),u=s?parseFloat(s.split("=")[1]):1;return{code:n.trim(),quality:u}}).sort((t,n)=>n.quality-t.quality);for(const{code:t}of a){if(r[t])return r[t];const n=t.split("-")[0];if(r[n])return r[n]}return"en"},l=()=>{const e=c();if(!e||!e.query)return"en";const a=e.query.lang;return a&&Object.values(r).includes(a)?a:"en"},p=e=>o[e]||o.en;export{l as detectLanguage,p as getLocaleName,r as languageMap,o as localeNames,i as parseAcceptLanguage};
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.