import{et as e}from"./vendor-quasar-Bl8FKFQs.js";import{Ga as t,Nt as n,On as r,Pt as i,Ua as a,Wt as o,wn as s}from"./ws-BfVPV0ME.js";import{i as c,r as l}from"./index-BfA-u3L9.js";a(),i(),s(),l();var u=1200;function d(e,t){let n=new Map;for(let e of t){let t=e.split(`-`)[0].toLowerCase();n.has(t)||n.set(t,e)}for(let r of e){if(!r)continue;let e=r.replace(/_/g,`-`).toLowerCase(),i=t.find(t=>t.toLowerCase()===e);if(i)return i;let a=n.get(e.split(`-`)[0]);if(a)return a}return null}var f=e(async({app:e})=>{if(e.config.errorHandler=(e,t,n)=>{c(e,`vue`,n),console.error(`[Vue error]`,e,n)},r())return;let i=t();try{if(localStorage.getItem(`oobe-welcome`)!==`true`&&n(`general.language`)===`en-US`){let e=await i.fetchLanguages(),t=d(navigator.languages&&navigator.languages.length>0?navigator.languages:[navigator.language],e);t&&t!==`en-US`&&o(`general.language`,t)}}catch{}let a=i.fetchTranslation(n(`general.language`)).catch(()=>{});await Promise.race([a,new Promise(e=>setTimeout(e,u))]),e.use({install:e=>{e.config.globalProperties.$i=(e,t)=>i.getString(e,t),e.config.globalProperties.$lz=(e,t,n)=>i.getStringDefault(e,t,n)}}),e.mixin({mounted(){this?.$el?.setAttribute&&this?.$el?.setAttribute(`sfc-name`,this.$?.type?.name||this?.$options?.__name)}})});export{f as default};