Files
Snap.Hutao.Docs/assets/index.html-8b0bd72f.js

2 lines
767 B
JavaScript

import{_ as d,o as u,Y as _,Z as m,$ as p}from"./framework-8be3ab77.js";const $=p("p",null,"Redirecting to the correct locale...",-1),g=[$],z={__name:"index.html",setup(x){return u(()=>{const{languages:l}=window.navigator,{hash:c,origin:o}=window.location,e=c.substring(1),r={0:["/en/",["en-US","en-UK","en"]],1:["/zh/",["zh-CN","zh-TW","zh"]],"/zh/":["zh-CN"],"/en/":["en-US"]},t=["/en/","/zh/"],a=t.pop();let n=null;e:for(const h of l)for(const[i,f]of Object.entries(r))if(f.includes(h)){if(!t.includes(i))continue;n=i;break e}const s=a?`${o}${a}${e?`#${e}`:""}`:null;n&&t.includes(n)?location.href=`${o}${n}${e?`#${e}`:""}`:s?location.href=s:location.href=`${o}/404.html`}),(l,c)=>(_(),m("div",null,g))}},k=d(z,[["__file","index.html.vue"]]);export{k as default};