import"./modulepreload-polyfill-B5Qt9EMX.js";import{d as F,r as g,o as Q,c as p,a as d,b as z,e,f as I,u as Y,g as A,w as Z,h as D,v as U,n as J,i as ae,F as H,j as W,t as V,k as te,l as oe,m as le,p as se,q as ne,s as X,x as q,y as re,z as ie,A as ce,P as ue,B as de}from"./vendor-nt8ldNfT.js";import{c as ee,l as pe,_ as me}from"./ThemeSwitcher.vue_vue_type_script_setup_true_lang-hbZuyjE_.js";import{_ as j}from"./tailwind-Bkcu6GYy.js";const fe=""+new URL("img/logo-Bsk81EVp.png",import.meta.url).href;function ve(){var u,v,r,t,i;const h=[];window.Promise||h.push("Promise"),window.fetch||h.push("fetch"),window.URLSearchParams||h.push("URLSearchParams"),window.TextEncoder||h.push("TextEncoder"),(u=window.crypto)!=null&&u.getRandomValues||h.push("crypto.getRandomValues"),window.ResizeObserver||h.push("ResizeObserver"),window.IntersectionObserver||h.push("IntersectionObserver");try{(r=(v=window.CSS)==null?void 0:v.supports)!=null&&r.call(v,"position","sticky")||h.push("CSS sticky"),(i=(t=window.CSS)==null?void 0:t.supports)!=null&&i.call(t,"display","grid")||h.push("CSS grid")}catch{h.push("CSS.supports")}return{ok:h.length===0,reasons:h}}const ge=["data-notice-ready"],we={key:0,class:"text-center opacity-80"},ye={key:1,class:"text-error text-center"},he={key:2,class:"w-full"},be=["innerHTML"],xe=F({__name:"NoticeBar",setup(h){const u=g(!0),v=g(!1),r=g(null);let t=null;const i=g("");function $(l){let n=l||"";const o="<script",a="<\/script>",w=new RegExp(`${o}\\b[\\s\\S]*?${a}`,"gi");return n=n.replace(w,""),n=n.replace(/\son\w+\s*=\s*"[^"]*"/gi,""),n=n.replace(/\son\w+\s*=\s*'[^']*'/gi,""),n=n.replace(/\son\w+\s*=\s*[^\s>]+/gi,""),n}function T(l){let n=(l||"").replace(/^\uFEFF/,"").trim();return n?(n=n.replace(/<style-+/gi,"<style>").replace(/<\/style-+/gi,"</style>"),n=n.replace(/-(\s*(<|&|\n|\r))/g,">$1"),n=n.replace(/<([a-zA-Z][\w:-]*)([^>]*?)-(\s*(?=<|&|\n|\r))/g,"<$1$2>$3"),n):""}function S(l){var f;const o=new DOMParser().parseFromString(l,"text/html"),a=[];o.querySelectorAll("style").forEach(P=>{const M=(P.textContent||"").trim();M&&a.push(M),P.remove()});const w=(((f=o.body)==null?void 0:f.innerHTML)||"").trim();return((a.length?`<style>
${a.join(`

`)}
</style>
`:"")+w).trim()}function y(l){return`
<style>
  .notice-root{width:100%;max-width:100%;}
  .notice-root img,.notice-root video,.notice-root iframe{max-width:100%;height:auto;}
  .notice-root table{max-width:100%;overflow:auto;display:block;}
</style><div class="notice-root">${l}</div>`}function L(l){let n=l||"";n=T(n),n=$(n);try{const o=S(n);o&&(n=o)}catch{}return n=$(n).trim(),n?y(n):""}function R(l){if(!t)return!1;const n=`
<style>
  :host{display:block;width:100%;max-width:100%;}
  *{box-sizing:border-box;}
</style>`;return t.innerHTML=n+l,!0}async function _(){u.value=!0,v.value=!1,i.value="";try{const l=`/login.html?query=2&_t=${Date.now()}`,n=await fetch(l,{cache:"no-store",headers:{"Cache-Control":"no-cache"}});if(!n.ok)throw new Error(`HTTP ${n.status}`);const o=(n.headers.get("content-type")||"").toLowerCase();let a="";if(o.includes("application/json")){const f=await n.json();a=String((f==null?void 0:f.msg)??(f==null?void 0:f.html)??(f==null?void 0:f.data)??(f==null?void 0:f.content)??"")}else a=await n.text();const w=L(a);if(!w)throw new Error("Empty/invalid announcement html");R(w)||(i.value=w)}catch(l){console.error("[NoticeBar] load failed:",l),v.value=!0}finally{u.value=!1}}function m(){_()}return Q(()=>{try{r.value&&(t=r.value.attachShadow({mode:"open"}))}catch{t=null}_()}),(l,n)=>(d(),p("div",{class:"bg-base-200 bg-opacity-80 rounded-box p-4 mb-4 max-h-48 overflow-y-auto text-sm w-full","data-notice-ready":u.value?"0":"1"},[u.value?(d(),p("div",we,"📡 正在加载公告...")):v.value?(d(),p("div",ye,[n[0]||(n[0]=z(" ❌ 公告加载失败 ")),e("button",{class:"btn btn-xs btn-outline ml-2",onClick:m},"重试")])):(d(),p("div",he,[e("div",{ref_key:"shadowHost",ref:r,class:"w-full"},null,512),i.value?(d(),p("div",{key:0,class:"notice-fallback w-full",innerHTML:i.value},null,8,be)):I("",!0)]))],8,ge))}}),_e=j(xe,[["__scopeId","data-v-2c262173"]]),ke=""+new URL("../images/steam.ico",import.meta.url).href,$e=""+new URL("../images/qq.ico",import.meta.url).href,Se=""+new URL("../images/wechat.ico",import.meta.url).href,Ce={key:0,class:"p-4 text-center bg-yellow-100 text-yellow-800 rounded border border-yellow-300"},Te=["disabled"],Le={key:0,class:"loading loading-spinner loading-xs mr-2"},Re={key:0,class:"text-sm text-success mt-4 text-center"},Ie=!0,Me=300,Pe=1200,Ee=3,De=F({__name:"LoginForm",setup(h){const u=g(""),v=g(""),r=g(!1),t=g(!1),i=g(!1),$=g(!1),T=g(!1),S=Y(),y=g(!1),L=g(!0),R=g(null),_=()=>{const c=navigator.userAgent;return/QQ\/[\d.]+/i.test(c)&&/Android/i.test(c)&&!/QQBrowser/i.test(c)},m=()=>{const c=navigator.userAgent||"",s=/Android/i.test(c),b=/iPhone|iPad|iPod/i.test(c),x=/Macintosh/i.test(c)&&navigator.maxTouchPoints>1;return s||b||x};function l(c,s){return new Promise((b,x)=>{const k=new Image,N=performance.now();let O=!1;const G=window.setTimeout(()=>{O||(O=!0,k.src="",x(new Error("timeout")))},s);k.onload=()=>{O||(O=!0,clearTimeout(G),b(Math.round(performance.now()-N)))},k.onerror=()=>{O||(O=!0,clearTimeout(G),x(new Error("error")))},k.referrerPolicy="no-referrer",k.src=`${c}${c.includes("?")?"&":"?"}_t=${Date.now()}_${Math.random().toString(16).slice(2)}`})}function n(c){const s=[...c].sort((b,x)=>b-x);return s[Math.floor(s.length/2)]}async function o(){L.value=!0,y.value=!1,R.value=null;const c="https://steamcommunity.com/favicon.ico";try{const s=Array.from({length:Ee},()=>l(c,Pe)),x=(await Promise.allSettled(s)).filter(k=>k.status==="fulfilled").map(k=>k.value);if(x.length>=2){const k=n(x);R.value=k,y.value=k<Me}else y.value=!1}finally{L.value=!1}}const a=async()=>{try{const c=`/?Queryauthorizationlogin=yes&_ts=${Date.now()}`,b=await(await fetch(c,{method:"GET",credentials:"include",cache:"no-store",headers:{Accept:"application/json,text/plain,*/*"}})).text();let x=null;try{const N=b.replace(/^\uFEFF/,"").trim();x=JSON.parse(N)}catch{x=null}const k=Number(x==null?void 0:x.status);i.value=k===200}catch{i.value=!1}},w=A(()=>($.value,i.value)),C=A(()=>{const c=y.value,s=w.value;return c&&s?"grid grid-cols-1 sm:grid-cols-3 gap-3":c&&!s?"grid grid-cols-1 gap-3":!c&&s?"grid grid-cols-1 sm:grid-cols-2 gap-3":"grid grid-cols-1 gap-3"}),f=async()=>{if(!u.value||!v.value){S.warning("请填写账号和密码");return}if(!T.value){T.value=!0;try{const s=await(await fetch("/login.html",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:u.value,password:v.value})})).json();s.status===200?(S.success("登录成功，正在跳转..."),window.location.href="/gonggao.html"):S.warning(s.msg||"登录失败")}catch(c){console.error(c),S.error("请求异常，请稍后再试")}finally{T.value=!1}}},P=async()=>{try{(await(await fetch("/login.html?query=1",{credentials:"include"})).json()).status===200&&(r.value=!0)}catch(c){console.error(c)}},M=()=>{const c=`${location.protocol}//${location.host}${location.pathname}?steamlogin=yes`;window.location.href=c},B=c=>{const s=encodeURIComponent(`from=web&ts=${Date.now()}`);window.location.href=`/api/oauth?login=yes&type=${encodeURIComponent(c)}&state=${s}`},E=()=>{window.location.href="/gonggao.html"};return Q(()=>{t.value=_(),$.value=m(),Promise.allSettled([P(),o()]),(!$.value||Ie)&&a()}),(c,s)=>(d(),p("div",null,[t.value?(d(),p("div",Ce,s[4]||(s[4]=[e("p",{class:"text-lg font-semibold mb-2"},"⚠️ 当前浏览器限制登录",-1),e("p",{class:"text-sm"},"请点右上角「…」→「使用浏览器打开」",-1)]))):(d(),p("form",{key:1,onSubmit:Z(f,["prevent"]),class:"flex flex-col gap-4 bg-base-100 p-4 rounded-lg shadow"},[D(e("input",{"onUpdate:modelValue":s[0]||(s[0]=b=>u.value=b),type:"text",placeholder:"商城账号",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"off",autocapitalize:"off",spellcheck:"false"},null,512),[[U,u.value]]),D(e("input",{"onUpdate:modelValue":s[1]||(s[1]=b=>v.value=b),type:"password",placeholder:"密码",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"new-password"},null,512),[[U,v.value]]),e("button",{class:"btn btn-primary w-full mt-2",disabled:T.value},[T.value?(d(),p("span",Le)):I("",!0),s[5]||(s[5]=e("i",{class:"iconfont icon-denglu mr-2"},null,-1)),s[6]||(s[6]=z(" 登录 "))],8,Te),s[11]||(s[11]=e("div",{class:"divider"},null,-1)),e("div",{class:J(C.value)},[y.value?(d(),p("button",{key:0,type:"button",class:"btn btn-outline w-full justify-start",onClick:M},s[7]||(s[7]=[e("img",{src:ke,class:"w-5 h-5",alt:"Steam"},null,-1),e("span",{class:"ml-2"},"Steam",-1)]))):I("",!0),w.value?(d(),p("button",{key:1,type:"button",class:"btn btn-outline w-full justify-start",onClick:s[2]||(s[2]=b=>B("qq"))},s[8]||(s[8]=[e("img",{src:$e,class:"w-5 h-5",alt:"QQ"},null,-1),e("span",{class:"ml-2"},"QQ",-1)]))):I("",!0),w.value?(d(),p("button",{key:2,type:"button",class:"btn btn-outline w-full justify-start",onClick:s[3]||(s[3]=b=>B("wechat"))},s[9]||(s[9]=[e("img",{src:Se,class:"w-5 h-5",alt:"微信"},null,-1),e("span",{class:"ml-2"},"微信",-1)]))):I("",!0)],2),r.value?(d(),p("div",Re,[s[10]||(s[10]=z(" ✅ 您已登录！ ")),e("button",{type:"button",onClick:E,class:"btn btn-link text-primary text-sm"},"进入商城")])):I("",!0)],32))]))}}),Ae=j(De,[["__scopeId","data-v-6a74eb1c"]]),Oe=["type"],Ue={key:0,class:"mt-6 p-4 rounded-lg bg-base-200"},ze={class:"space-y-2 max-h-60 overflow-y-auto"},Be=["onClick"],Ve=F({__name:"RegisterForm",emits:["switchTab"],setup(h,{emit:u}){const v=u,r=Y(),t=g({username:"",password:"",confirm:"",email:"",phone:"",steamid:""}),i=g(!1);let $=null;const T=()=>{i.value=!0,$&&clearTimeout($),$=setTimeout(()=>{i.value=!1},3e3)},S=async()=>{if(!t.value.username||!t.value.password||!t.value.email){r.warning("请填写完整信息");return}if(t.value.password!==t.value.confirm){r.warning("两次密码不一致");return}try{const m=await(await fetch("/register.html",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.value)})).json();m.status===200?(r.success("注册成功！"),v("switchTab","login")):r.warning(m.msg||"注册失败")}catch(_){console.error(_),r.error("请求失败，请稍后再试")}},y=g([]),L=_=>{t.value.steamid=_},R=async()=>{try{const m=await(await fetch("/register.html?query=1")).json();m.status===200&&m.msg!=="0"&&(y.value=m.data||[])}catch(_){console.error("获取未注册玩家失败:",_)}};return Q(()=>{R()}),(_,m)=>(d(),p("div",null,[e("form",{onSubmit:Z(S,["prevent"]),class:"flex flex-col gap-4 bg-base-100 p-4 rounded-lg shadow"},[D(e("input",{"onUpdate:modelValue":m[0]||(m[0]=l=>t.value.username=l),placeholder:"账号（6位字母+数字组合）",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"off",autocapitalize:"off",spellcheck:"false"},null,512),[[U,t.value.username]]),D(e("input",{type:i.value?"text":"password","onUpdate:modelValue":m[1]||(m[1]=l=>t.value.password=l),onInput:T,placeholder:"密码",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"new-password"},null,40,Oe),[[ae,t.value.password]]),D(e("input",{type:"password","onUpdate:modelValue":m[2]||(m[2]=l=>t.value.confirm=l),placeholder:"确认密码",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"new-password"},null,512),[[U,t.value.confirm]]),D(e("input",{"onUpdate:modelValue":m[3]||(m[3]=l=>t.value.email=l),type:"email",placeholder:"邮箱",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base"},null,512),[[U,t.value.email]]),D(e("input",{"onUpdate:modelValue":m[4]||(m[4]=l=>t.value.steamid=l),placeholder:"SteamID (17位数字)",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"off"},null,512),[[U,t.value.steamid]]),D(e("input",{"onUpdate:modelValue":m[5]||(m[5]=l=>t.value.phone=l),placeholder:"手机号（11位大陆手机号）",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"off"},null,512),[[U,t.value.phone]]),m[6]||(m[6]=e("button",{class:"btn btn-success w-full mt-2"},[e("i",{class:"iconfont icon-zhuce mr-2"}),z(" 注册 ")],-1))],32),y.value.length?(d(),p("div",Ue,[m[7]||(m[7]=e("h3",{class:"font-bold text-lg mb-3 text-success"},"未注册玩家",-1)),e("ul",ze,[(d(!0),p(H,null,W(y.value,l=>(d(),p("li",{key:l.steamid,class:"flex justify-between items-center bg-base-100 p-3 rounded-lg shadow"},[e("span",null,V(l.nicheng)+" - "+V(l.steamid),1),e("button",{class:"btn btn-sm btn-outline btn-primary",onClick:n=>L(l.steamid)}," 我是这位玩家 ",8,Be)]))),128))])])):I("",!0)]))}}),Fe=j(Ve,[["__scopeId","data-v-12f65c8b"]]),je=F({__name:"ForgotPasswordForm",setup(h){const u=g(""),v=Y(),r=async()=>{if(!u.value.trim()){v.warning("请输入 SteamID");return}try{const i=await(await fetch("/yanzhengma",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({steamid:u.value})})).json();i.status===200?v.success(i.msg||"邮件已发送，请前往绑定邮箱查收"):v.warning(i.msg||"发送失败，请稍后再试")}catch(t){console.error("找回密码请求失败:",t),v.error("网络请求异常，请稍后再试")}};return(t,i)=>(d(),p("form",{onSubmit:Z(r,["prevent"]),class:"flex flex-col gap-4 bg-base-100 p-4 rounded-lg shadow"},[D(e("input",{"onUpdate:modelValue":i[0]||(i[0]=$=>u.value=$),type:"text",placeholder:"请输入您的 SteamID",class:"input input-bordered w-full placeholder:text-gray-500 placeholder:opacity-100 text-base",autocomplete:"off",autocapitalize:"off",spellcheck:"false"},null,512),[[U,u.value]]),i[1]||(i[1]=e("button",{class:"btn btn-accent w-full"},[e("i",{class:"iconfont icon-zhaohuimima_mima mr-2"}),z(" 发送找回密码邮件 ")],-1))],32))}}),Ne=j(je,[["__scopeId","data-v-8b6aceab"]]),He={class:"tabs tabs-bordered justify-center mb-4"},qe=F({__name:"AuthTabs",setup(h){const u=g("login"),v=A(()=>{switch(u.value){case"register":return Fe;case"forgot":return Ne;default:return Ae}});return(r,t)=>(d(),p("div",null,[e("div",He,[e("a",{class:J(["tab text-base-content font-bold",{"tab-active":u.value==="login"}]),onClick:t[0]||(t[0]=i=>u.value="login")}," 商城登录 ",2),e("a",{class:J(["tab text-base-content font-bold",{"tab-active":u.value==="register"}]),onClick:t[1]||(t[1]=i=>u.value="register")}," 商城注册 ",2),e("a",{class:J(["tab text-base-content font-bold",{"tab-active":u.value==="forgot"}]),onClick:t[2]||(t[2]=i=>u.value="forgot")}," 找回密码 ",2)]),(d(),te(oe(v.value),{onSwitchTab:t[3]||(t[3]=i=>u.value=i)},null,32))]))}}),Qe={key:0,class:"cny-top","aria-hidden":"true"},Ge={class:"lantern-row"},Je={class:"lantern"},We={class:"body"},Ye={class:"char"},Ze={key:0,class:"hengpi"},Ke={class:"hengpi-card"},Xe={class:"hengpi-main"},et={key:1,class:"cny-sides","aria-hidden":"true"},tt={class:"couplet left"},st={class:"text"},nt={class:"couplet right"},at={class:"text"},ot={key:2,class:"cny-particles","aria-hidden":"true"},lt=F({__name:"GlobalChristmas",setup(h){const u=g(!1),v=g(!1),r=g(!1),t=g(null);Q(()=>{var a,w;const o=new Date().getMonth()+1;u.value=o===1||o===2,v.value=((w=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-reduced-motion: reduce)"))==null?void 0:w.matches)??!1,r.value=window.innerWidth<768,document.addEventListener("visibilitychange",$,{passive:!0}),window.addEventListener("focus",T,{passive:!0})}),le(()=>{document.removeEventListener("visibilitychange",$),window.removeEventListener("focus",T)});function i(o){t.value=o}function $(){document.hidden||S()}function T(){S()}function S(){var o,a,w,C,f,P,M,B,E,c,s,b;if(t.value){try{(a=(o=t.value)==null?void 0:o.refresh)==null||a.call(o);return}catch{}try{(C=(w=t.value)==null?void 0:w.stop)==null||C.call(w),(P=(f=t.value)==null?void 0:f.start)==null||P.call(f);return}catch{}try{const x=(M=t.value)==null?void 0:M.options,k=((B=t.value)==null?void 0:B.id)||"cnyParticles";(c=(E=t.value)==null?void 0:E.destroy)==null||c.call(E),(b=(s=t.value)==null?void 0:s.load)==null||b.call(s,k,x)}catch{}}}const y=A(()=>r.value?8:16);function L(o){return o%5===0?"马":o%2===0?"福":"春"}const R=A(()=>"人渣迎春"),_=A(()=>"马到荒野财运来".split("")),m=A(()=>"人渣开局爆装多".split(""));function l(o){const a=y.value,w=a<=1?.5:(o-1)/(a-1),C=r.value?6:5,f=`${C+w*(100-C*2)}%`,P=10+Math.round(Math.sin(w*Math.PI)*(r.value?10:14)),M=["#d81e06","#c9151e","#e02424","#b9131a","#a80f16"],B=M[o%M.length],E=["#ffd36a","#ffb703","#f6c453","#ffe29a"],c=E[o%E.length],s=2+o%7*.18,b=o%9*.08,x=3.6+o%6*.25,k=o%10*.12,N=r.value?2.2+o%3*.6:2.8+o%4*.7,O=r.value?22+o%2:22+o%3,G=r.value?32+o%2:34+o%3;return{left:f,top:`${P}px`,width:`${O}px`,height:`${G}px`,"--lantern":B,"--gold":c,"--glowDur":`${s}s`,"--glowDelay":`${b}s`,"--swayDur":`${x}s`,"--swayDelay":`${k}s`,"--swayDeg":`${N}deg`}}const n=A(()=>{const o=r.value?110:260,a=r.value?1:1.3;return{background:{color:{value:"transparent"}},detectRetina:!0,fpsLimit:r.value?45:60,fullScreen:{enable:!0,zIndex:45},interactivity:{events:{onHover:{enable:!1},onClick:{enable:!1},resize:!0}},particles:{number:{value:o,density:{enable:!0,area:r.value?900:1100}},color:{value:["#ffd36a","#ffb703","#ffe8a3","#ff4d4f","#fff2c6"]},shape:{type:["circle","square","polygon"],options:{polygon:{sides:5}}},opacity:{value:{min:.25,max:.95},animation:{enable:!0,speed:.22,minimumValue:.15,sync:!1}},size:{value:{min:1,max:r.value?4.2:5.6}},zIndex:{value:{min:0,max:100},opacityRate:.65,sizeRate:1.1,velocityRate:1.02},move:{enable:!0,direction:"bottom",speed:{min:a*.35,max:a*1.25},random:!0,straight:!1,outModes:{default:"out"},drift:{min:-.9,max:.9},wobble:{enable:!0,distance:r.value?7:13,speed:{min:6,max:12}}},rotate:{value:{min:0,max:360},animation:{enable:!0,speed:14,sync:!1}}}}});return(o,a)=>{const w=se("vue-particles");return d(),p(H,null,[u.value?(d(),p("div",Qe,[a[7]||(a[7]=e("div",{class:"rope"},null,-1)),e("div",Ge,[(d(!0),p(H,null,W(y.value,C=>(d(),p("span",{key:C,class:"lantern-wrap",style:ne(l(C))},[e("span",Je,[a[3]||(a[3]=X('<span class="hanger" data-v-83cd1d18><span class="metal" data-v-83cd1d18></span><span class="knot-top" data-v-83cd1d18></span><span class="line" data-v-83cd1d18></span></span><span class="cap cap-top" data-v-83cd1d18></span>',2)),e("span",We,[a[0]||(a[0]=e("span",{class:"ribs"},null,-1)),a[1]||(a[1]=e("span",{class:"inner-glow"},null,-1)),a[2]||(a[2]=e("span",{class:"shine"},null,-1)),e("span",Ye,V(L(C)),1)]),a[4]||(a[4]=X('<span class="ring" data-v-83cd1d18></span><span class="cap cap-bottom" data-v-83cd1d18></span><span class="knot" data-v-83cd1d18><span class="knot-core" data-v-83cd1d18></span><span class="knot-loop l" data-v-83cd1d18></span><span class="knot-loop r" data-v-83cd1d18></span><span class="knot-tail" data-v-83cd1d18></span></span><span class="tassel" data-v-83cd1d18><span class="threads" data-v-83cd1d18></span><span class="tail-bead" data-v-83cd1d18></span></span>',4))])],4))),128))]),r.value?I("",!0):(d(),p("div",Ze,[a[5]||(a[5]=e("span",{class:"cloud cloud-l"},null,-1)),e("div",Ke,[e("div",Xe,V(R.value),1)]),a[6]||(a[6]=e("span",{class:"cloud cloud-r"},null,-1))]))])):I("",!0),u.value&&!r.value?(d(),p("div",et,[e("div",tt,[a[8]||(a[8]=e("div",{class:"cap"},null,-1)),e("div",st,[(d(!0),p(H,null,W(_.value,(C,f)=>(d(),p("span",{key:"L"+f},V(C),1))),128))]),a[9]||(a[9]=e("div",{class:"seal"},"福",-1))]),e("div",nt,[a[10]||(a[10]=e("div",{class:"cap"},null,-1)),e("div",at,[(d(!0),p(H,null,W(m.value,(C,f)=>(d(),p("span",{key:"R"+f},V(C),1))),128))]),a[11]||(a[11]=e("div",{class:"seal"},"春",-1))])])):I("",!0),u.value&&!v.value?(d(),p("div",ot,[q(w,{id:"cnyParticles",options:n.value,onParticlesLoaded:i},null,8,["options"])])):I("",!0)],64)}}}),rt=j(lt,[["__scopeId","data-v-83cd1d18"]]),it={key:0,class:"compat-mask"},ct={class:"compat-card"},ut={key:0,class:"compat-reasons"},dt={class:"fixed bottom-4 right-4 z-50"},pt=F({__name:"App",setup(h){const u=A(()=>ee.value?`url(${ee.value})`:""),v=g(null),r=g(null),t=g(!1),i=g([]);function $(){location.reload()}function T(){const S=Date.now(),y=4500,L=window.setInterval(()=>{const R=r.value;if(!R)return;const _=R.getBoundingClientRect(),m=_.width>260&&_.height>260,l=R.querySelector('[data-notice-ready="1"]')!=null,n=R.querySelector("form, input, button")!=null;if(m&&(l||n)){window.clearInterval(L);return}Date.now()-S>y&&(t.value=!0,window.clearInterval(L))},250)}return Q(async()=>{const S=ve();if(!S.ok){t.value=!0,i.value=S.reasons;return}await pe(),T()}),(S,y)=>{const L=se("n-message-provider");return d(),te(L,null,{default:re(()=>[q(rt),t.value?(d(),p("div",it,[e("div",ct,[y[0]||(y[0]=e("div",{class:"compat-title"},"浏览器不支持或加载异常",-1)),y[1]||(y[1]=e("div",{class:"compat-text"},[z(" 当前浏览器可能无法完整显示本站内容。建议使用最新版本 "),e("b",null,"Chrome"),z(" 或 "),e("b",null,"Microsoft Edge"),z("。 ")],-1)),i.value.length?(d(),p("div",ut," 检测到缺失能力："+V(i.value.join("、")),1)):I("",!0),e("div",{class:"compat-actions"},[e("button",{class:"btn btn-primary",onClick:$},"刷新重试")])])])):I("",!0),e("div",{ref_key:"pageRoot",ref:v,class:"min-h-screen bg-cover bg-center bg-no-repeat px-4 flex items-center justify-center",style:ne({backgroundImage:u.value})},[e("div",dt,[q(me)]),e("div",{ref_key:"loginCard",ref:r,class:"w-full max-w-md bg-base-100 shadow-xl rounded-xl p-6 relative z-10 flex flex-col items-center md:absolute md:top-1/2 md:left-[75vw] md:-translate-x-1/2 md:-translate-y-1/2"},[y[2]||(y[2]=e("img",{src:fe,alt:"Logo",class:"w-36 h-auto object-contain mb-4"},null,-1)),q(_e,{class:"w-full mb-4 min-h-[96px]"}),q(qe,{class:"w-full"})],512)],4)]),_:1})}}}),mt=j(pt,[["__scopeId","data-v-b59d25f6"]]),K=ie(mt);K.use(ce);K.use(ue,{init:async h=>{await de(h)}});K.mount("#app");
