import{Wd as a}from"./chunk-ZVAMPSQU.js";var r=o=>o.split("-")[0].toLowerCase(),u=o=>{let c=new Set;for(let e of Object.values(a))c.add(r(e));let t;try{t=new Intl.DisplayNames([o],{type:"language",fallback:"code"})}catch(e){t=void 0}let s=[];for(let e of c){let n=e;try{n=(t==null?void 0:t.of(e))||e}catch(l){n=e}s.push({code:e,label:n})}return s.sort((e,n)=>e.label.localeCompare(n.label))},p=o=>{let c=r(a.EN_US),t=r(o||a.EN_US);return Array.from(new Set([c,t]))},f=o=>r(o||a.EN_US);export{u as a,p as b,f as c};
