diff --git a/dist/css/938.ea8ed904.css b/dist/css/253.6e1ac5b9.css
similarity index 57%
rename from dist/css/938.ea8ed904.css
rename to dist/css/253.6e1ac5b9.css
index 56415df..6e9ae63 100644
--- a/dist/css/938.ea8ed904.css
+++ b/dist/css/253.6e1ac5b9.css
@@ -1 +1 @@
-.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar{width:6px}.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar-track{background:transparent}.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar-thumb{background-color:rgba(156,163,175,.5);border-radius:3px}.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar-thumb:hover{background-color:rgba(156,163,175,.8)}.check-view[data-v-6ef8afc2]{min-height:calc(100vh - 64px)}.no-scrollbar[data-v-6ef8afc2]::-webkit-scrollbar{display:none}.no-scrollbar[data-v-6ef8afc2]{-ms-overflow-style:none;scrollbar-width:none}
\ No newline at end of file
+.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar{width:6px}.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar-track{background:transparent}.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar-thumb{background-color:rgba(156,163,175,.5);border-radius:3px}.overflow-y-auto[data-v-23e38959]::-webkit-scrollbar-thumb:hover{background-color:rgba(156,163,175,.8)}.check-view[data-v-65eca83c]{min-height:calc(100vh - 64px)}.no-scrollbar[data-v-65eca83c]::-webkit-scrollbar{display:none}.no-scrollbar[data-v-65eca83c]{-ms-overflow-style:none;scrollbar-width:none}
\ No newline at end of file
diff --git a/dist/index.html b/dist/index.html
index b1814ed..3ff3f4f 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -1 +1 @@
-
Word Helper 很抱歉,wordhelper 不支持无 JavaScript 环境。请启用 JavaScript 以继续。
\ No newline at end of file
+Word Helper 很抱歉,wordhelper 不支持无 JavaScript 环境。请启用 JavaScript 以继续。
\ No newline at end of file
diff --git a/dist/js/253.5ce82593.js b/dist/js/253.5ce82593.js
new file mode 100644
index 0000000..02b458b
--- /dev/null
+++ b/dist/js/253.5ce82593.js
@@ -0,0 +1,34 @@
+"use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[253],{15520:function(e,a,l){l.d(a,{A:function(){return s}});var t=l(45525);
+/**
+ * @license lucide-vue-next v0.562.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const s=(0,t.A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},18495:function(e,a,l){l.d(a,{A:function(){return s}});var t=l(45525);
+/**
+ * @license lucide-vue-next v0.562.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const s=(0,t.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},19085:function(e,a,l){l.r(a),l.d(a,{default:function(){return Me}});l(44114),l(18111),l(22489),l(61701);var t=l(56768),s=l(90144),r=l(45130),d=l(24232),o=l(98728),n=l(97387),u=l(92720),i=l(24556),c=l(10496),v=l(42517),y=l(58911),k=l(52384),x=l(46522),m=l(25972),b=l(15631);var p=(0,t.pM)({name:"RadioButton",props:b.Fe,setup:b.mj,render(){const{mergedClsPrefix:e}=this;return(0,t.h)("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},(0,t.h)("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),(0,t.h)("div",{class:`${e}-radio-button__state-border`}),(0,m.iQ)(this.$slots.default,a=>a||this.label?(0,t.h)("div",{ref:"labelRef",class:`${e}-radio__label`},a||this.label):null))}}),f=l(47209),h=l(43585),g=l(19605),w=l(54880),_=l(78205),R=l(93913),A=l(64498),F=l(9845),L=l(29554),C=l(82089),W=l(45525);
+/**
+ * @license lucide-vue-next v0.562.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */
+const E=(0,W.A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var K=l(73969),X=l(65163),z=l(15520);
+/**
+ * @license lucide-vue-next v0.562.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */
+const j=(0,W.A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var q=l(18495),I=l(35720),$=l(15227);const Q={class:"check-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},U={class:"flex flex-col gap-4 mb-8"},M={class:"flex items-center gap-2"},B={class:"bg-blue-50 dark:bg-blue-900/20 p-4 rounded-lg flex items-start gap-3"},D={key:0,class:"max-w-2xl mx-auto"},V={class:"w-full"},S={key:1,class:"text-gray-400 text-sm py-0.5 px-1"},N={class:"flex justify-end mt-6"},G={key:1,class:"max-w-3xl mx-auto"},H={class:"mb-6 flex items-center justify-between"},J={class:"text-sm text-gray-500"},O={class:"text-4xl font-bold text-gray-900 dark:text-white mb-8"},P={key:0,class:"w-full max-w-md mx-auto space-y-4"},T={class:"flex justify-between items-center"},Y={class:"flex justify-center mt-4"},Z={key:0,class:"mt-4 text-left bg-gray-50 dark:bg-gray-800 p-4 rounded-lg"},ee={class:"list-disc list-inside space-y-1"},ae={key:1,class:"w-full max-w-md mx-auto space-y-6"},le={class:"flex flex-col items-center"},te={class:"bg-gray-50 dark:bg-gray-800 p-4 rounded-lg text-left"},se={class:"text-gray-700 dark:text-gray-200"},re={class:"flex justify-center gap-4"},de={key:2,class:"max-w-4xl mx-auto"},oe={class:"flex justify-center items-center gap-12"},ne={class:"text-center"},ue={class:"text-5xl font-bold text-primary mb-2"},ie={class:"text-center"},ce={class:"text-3xl font-bold text-green-500 mb-2"},ve={class:"mt-8 flex justify-center gap-4"},ye={key:0},ke={class:"text-xl font-bold mb-4 flex items-center"},xe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},me={class:"flex justify-between items-start"},be={class:"text-lg font-bold text-gray-900 dark:text-white"},pe={class:"mt-2 space-y-1"},fe={class:"text-gray-400 mr-1"},he={class:"text-gray-600 dark:text-gray-300"},ge={class:"max-w-4xl mx-auto"},we={class:"grid grid-cols-2 gap-4 mb-6"},_e={class:"text-center"},Re={class:"text-2xl font-bold text-primary"},Ae={class:"text-center"},Fe={class:"text-2xl font-bold text-green-500"},Le={key:0,class:"space-y-3"},Ce={class:"font-bold text-lg mb-4 flex items-center"},We={class:"flex justify-between items-start"},Ee={class:"flex-1"},Ke={class:"flex items-center gap-2 mb-2"},Xe={class:"text-lg font-bold text-gray-900 dark:text-white"},ze={class:"text-sm text-gray-600 dark:text-gray-300"},je={class:"bg-gray-100 dark:bg-gray-700 px-1.5 py-0.5 rounded text-xs mr-2"},qe={class:"flex justify-center mt-6 pb-8"},Ie={key:1,class:"text-gray-400 text-sm py-4"};var $e={__name:"CheckView",setup(e){const a=(0,o.rd)(),l=(0,n.J)(),{isDark:m}=(0,t.WQ)("themeContext"),b=(0,s.KR)("config"),W=(0,s.KR)(!1),$e=(0,s.KR)(!1),Qe=(0,s.KR)(!1),Ue=(0,s.KR)(!1),Me=(0,s.KR)(!1),Be=(0,s.KR)("start"),De=(0,s.KR)([]),Ve=(0,s.KR)(1),Se=(0,s.KR)(0),Ne=(0,s.KR)({total_answers:0,accuracy:0}),Ge=(0,s.KR)(!1),He=(0,t.EW)(()=>De.value.lengthYe.value[Ze.value]||null),da=(0,t.EW)(()=>Ze.value===Ye.value.length-1),oa=(0,t.EW)(()=>sa.value.filter(e=>e.correct).length),na=(0,t.EW)(()=>Math.round(oa.value/Ye.value.length*100)),ua=(0,t.EW)(()=>sa.value.filter(e=>!e.correct)),ia=async()=>{Ue.value=!0;try{const e=await I.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/dict/list");0===e.data.code&&(Oe.value=e.data.data.map(e=>({label:e.name,value:e.id})))}catch(e){console.error("Fetch dicts error:",e)}finally{Ue.value=!1}},ca=e=>{const a=Je.value.list_ids.indexOf(e);a>-1&&Je.value.list_ids.splice(a,1);const l=Te.value.findIndex(a=>a.id===e);l>-1&&Te.value.splice(l,1)},va=async()=>{if(1===Je.value.mode&&Je.value.dict_ids.length,3===Je.value.mode){if(0===Je.value.list_ids.length)return void l.warning("请至少选择一个词单");if(Je.value.list_ids.length>10)return void l.warning("最多只能选择10个词单")}W.value=!0;try{const e={word_count:Je.value.word_count,mode:Je.value.mode,reinforce:Je.value.reinforce,dict_id:3===Je.value.mode?Je.value.list_ids:Je.value.dict_ids},a=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/getlist",e),t=a.data;t&&t.words&&t.words.length>0?(Ye.value=t.words,Ze.value=0,sa.value=[],ya(),b.value="quiz"):l.warning(a.data.msg||"未获取到单词,请尝试调整条件")}catch(e){if(console.error("Start check error:",e),e.response&&e.response.data&&e.response.data.error){const a=e.response.data.error;a.includes("不足")?l.error("记录不足,无法抽查"):l.error(a)}else l.error("启动失败,请稍后重试")}finally{W.value=!1}},ya=()=>{ea.value="",aa.value=!1,la.value=[],ta.value={correct:!1,translations:[]}},ka=async()=>{if(ea.value.trim()){$e.value=!0;try{const e=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/reply",{word_id:ra.value.id,reply:ea.value,mode:Je.value.mode});if(e.data){const a=e.data;ta.value={correct:a.correct,translations:a.translations||[]},sa.value.push({word:ra.value,correct:a.correct,translations:a.translations||[]}),aa.value=!0}}catch(e){console.error("Submit answer error:",e),l.error("提交失败")}finally{$e.value=!1}}},xa=async()=>{sa.value.push({word:ra.value,correct:!0,translations:[]}),da.value?b.value="summary":(Ze.value++,ya())},ma=async()=>{Qe.value=!0;try{const e=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/sign",{word_id:ra.value.id});e.data&&e.data.examples&&(la.value=e.data.examples,0===la.value.length&&l.info("该单词暂无例句提示"))}catch(e){console.error("Get hint error:",e),l.error("获取提示失败")}finally{Qe.value=!1}},ba=()=>{da.value?b.value="summary":(Ze.value++,ya())},pa=e=>{const l=a.resolve({path:"/word",query:{word_id:e}});window.open(l.href,"_blank")},fa=()=>{b.value="config",Ye.value=[],sa.value=[],Ze.value=0,ya()},ha=async(e=!1)=>{if(!Ge.value){Ge.value=!0;try{const a=await I.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/history",{params:{page:e?Ve.value+1:1}}),l=a.data;if(l){const{list:a,total:t,stats:s,page:r}=l;De.value=e?[...De.value,...a]:a,Se.value=t,Ve.value=parseInt(r),s&&(Ne.value=s)}}catch(a){console.error("Fetch history error:",a),l.error("获取历史记录失败")}finally{Ge.value=!1}}},ga=()=>{ha(!0)};(0,t.wB)(Be,e=>{"history"===e&&0===De.value.length&&ha()}),(0,t.wB)(()=>Je.value.mode,e=>{1===e&&0===Oe.value.length&&ia()}),(0,t.sV)(()=>{ia(),document.title="智能抽查 - Word Helper",wa(),window.addEventListener("resize",wa)}),(0,t.hi)(()=>{window.removeEventListener("resize",wa)});const wa=()=>{Me.value=window.innerWidth<640};return(e,a)=>{const l=(0,t.gN)("motion-slide-visible-once-left"),o=(0,t.gN)("motion-fade");return(0,t.uX)(),(0,t.CE)("div",Q,[(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",U,[(0,t.Lk)("div",M,[(0,t.bF)((0,s.R1)(L.A),{class:"w-8 h-8 text-primary"}),a[12]||(a[12]=(0,t.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"智能抽查",-1)),(0,t.bF)((0,s.R1)(u.Ay),{type:"info",size:"small",round:""},{default:(0,t.k6)(()=>[...a[11]||(a[11]=[(0,t.eW)("限时免费",-1)])]),_:1})]),(0,t.Lk)("div",B,[(0,t.bF)((0,s.R1)(C.A),{class:"w-5 h-5 text-blue-500 mt-0.5 flex-shrink-0"}),a[13]||(a[13]=(0,t.Lk)("p",{class:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed"}," 欢迎体验智能抽查功能!我们基于超过 50,000 条真实用户答题数据训练的智能模型,为您提供高效、可靠的单词抽查与判题,帮助您快速发现薄弱词汇,针对性巩固学习效果。 ",-1))])])),[[l]]),(0,t.bF)((0,s.R1)(i.A),{type:"segment",animated:"",value:Be.value,"onUpdate:value":a[10]||(a[10]=e=>Be.value=e)},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(c.A),{name:"start",tab:"开始抽查"},{default:(0,t.k6)(()=>["config"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",D,[(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-sm",title:"抽查配置"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(y.A),{ref:"formRef",model:Je.value,"label-placement":Me.value?"top":"left","label-width":Me.value?"auto":100,"require-mark-placement":"right-hanging"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(k.Ay),{label:"单词数量"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(x.A),{value:Je.value.word_count,"onUpdate:value":a[0]||(a[0]=e=>Je.value.word_count=e),name:"word_count",class:"overflow-x-auto overflow-y-hidden max-w-full no-scrollbar"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(p),{value:10,label:"10"}),(0,t.bF)((0,s.R1)(p),{value:20,label:"20"}),(0,t.bF)((0,s.R1)(p),{value:30,label:"30"}),(0,t.bF)((0,s.R1)(p),{value:40,label:"40"})]),_:1},8,["value"])]),_:1}),(0,t.bF)((0,s.R1)(k.Ay),{label:"单词来源"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(x.A),{value:Je.value.mode,"onUpdate:value":a[1]||(a[1]=e=>Je.value.mode=e),name:"mode"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(f.A),{value:0,label:"学习记录"}),(0,t.bF)((0,s.R1)(f.A),{value:1,label:"词书挑战"}),(0,t.bF)((0,s.R1)(f.A),{value:2,label:"生词本"}),(0,t.bF)((0,s.R1)(f.A),{value:3,label:"词单抽词"})]),_:1},8,["value"])]),_:1}),(0,t.bF)((0,s.R1)(k.Ay),{label:"易错巩固"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(h.A),{value:Je.value.reinforce,"onUpdate:value":a[2]||(a[2]=e=>Je.value.reinforce=e)},{checked:(0,t.k6)(()=>[...a[14]||(a[14]=[(0,t.eW)("开启",-1)])]),unchecked:(0,t.k6)(()=>[...a[15]||(a[15]=[(0,t.eW)("关闭",-1)])]),_:1},8,["value"]),a[16]||(a[16]=(0,t.Lk)("span",{class:"ml-2 text-xs text-gray-500"},"优先抽取历史错题",-1))]),_:1}),1===Je.value.mode?((0,t.uX)(),(0,t.Wv)((0,s.R1)(k.Ay),{key:0,label:"选择词书"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(g.A),{value:Je.value.dict_ids,"onUpdate:value":a[3]||(a[3]=e=>Je.value.dict_ids=e),multiple:"",filterable:"",placeholder:"请选择词书(不选代表全部)",options:Oe.value,loading:Ue.value,clearable:""},null,8,["value","options","loading"])]),_:1})):(0,t.Q3)("",!0),3===Je.value.mode?((0,t.uX)(),(0,t.Wv)((0,s.R1)(k.Ay),{key:1,label:"选择词单"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",V,[(0,t.Lk)("div",{class:"border border-gray-300 dark:border-gray-600 rounded-md p-2 min-h-[34px] cursor-pointer hover:border-indigo-500 transition-colors bg-white dark:bg-black/10 flex flex-wrap gap-2",onClick:a[4]||(a[4]=e=>Pe.value=!0)},[Te.value.length>0?((0,t.uX)(!0),(0,t.CE)(t.FK,{key:0},(0,t.pI)(Te.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(u.Ay),{key:e.id,closable:"",onClose:(0,r.D$)(a=>ca(e.id),["stop"]),size:"small"},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(e.name),1)]),_:2},1032,["onClose"]))),128)):((0,t.uX)(),(0,t.CE)("div",S," 点击选择词单... "))])])]),_:1})):(0,t.Q3)("",!0),(0,t.bF)($.A,{show:Pe.value,"onUpdate:show":a[5]||(a[5]=e=>Pe.value=e),modelValue:Je.value.list_ids,"onUpdate:modelValue":a[6]||(a[6]=e=>Je.value.list_ids=e),selectedList:Te.value,"onUpdate:selectedList":a[7]||(a[7]=e=>Te.value=e),"max-count":10},null,8,["show","modelValue","selectedList"]),(0,t.Lk)("div",N,[(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",size:"large",onClick:va,loading:W.value},{default:(0,t.k6)(()=>[...a[17]||(a[17]=[(0,t.eW)(" 开始挑战 ",-1)])]),_:1},8,["loading"])])]),_:1},8,["model","label-placement","label-width"])]),_:1})])),[[o]]):"quiz"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",G,[(0,t.Lk)("div",H,[(0,t.Lk)("span",J,"进度: "+(0,d.v_)(Ze.value+1)+" / "+(0,d.v_)(Ye.value.length),1),(0,t.bF)((0,s.R1)(_.A),{type:"line",percentage:(Ze.value+1)/Ye.value.length*100,"show-indicator":!1,class:"w-48",status:"success"},null,8,["percentage"])]),(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-lg min-h-[400px] flex flex-col justify-center items-center text-center p-8"},{default:(0,t.k6)(()=>[ra.value?((0,t.uX)(),(0,t.CE)(t.FK,{key:0},[(0,t.Lk)("h2",O,(0,d.v_)(ra.value.word),1),aa.value?((0,t.uX)(),(0,t.CE)("div",ae,[(0,t.Lk)("div",le,[((0,t.uX)(),(0,t.Wv)((0,t.$y)(ta.value.correct?(0,s.R1)(X.A):(0,s.R1)(z.A)),{class:(0,d.C4)(["w-16 h-16 mb-2",ta.value.correct?"text-green-500":"text-red-500"])},null,8,["class"])),(0,t.Lk)("span",{class:(0,d.C4)(["text-xl font-bold",ta.value.correct?"text-green-600":"text-red-600"])},(0,d.v_)(ta.value.correct?"回答正确":"回答错误"),3)]),(0,t.Lk)("div",te,[a[22]||(a[22]=(0,t.Lk)("div",{class:"text-xs text-gray-400 mb-2"},"正确释义:",-1)),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(ta.value.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"mb-1"},[(0,t.bF)((0,s.R1)(u.Ay),{size:"small",bordered:!1,type:"info",class:"mr-2"},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(e.pos),1)]),_:2},1024),(0,t.Lk)("span",se,(0,d.v_)(e.meaning),1)]))),128))]),(0,t.Lk)("div",re,[(0,t.bF)((0,s.R1)(w.Ay),{secondary:"",type:"info",onClick:a[9]||(a[9]=e=>pa(ra.value.id))},{default:(0,t.k6)(()=>[...a[23]||(a[23]=[(0,t.eW)(" 查看详细释义 ",-1)])]),_:1}),(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:ba},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(da.value?"查看成绩":"下一题"),1)]),_:1})])])):((0,t.uX)(),(0,t.CE)("div",P,[(0,t.bF)((0,s.R1)(R.A),{value:ea.value,"onUpdate:value":a[8]||(a[8]=e=>ea.value=e),type:"textarea",placeholder:"请输入中文释义...",autosize:{minRows:3,maxRows:5},maxlength:20,"show-count":"",onKeydown:(0,r.jR)((0,r.D$)(ka,["prevent"]),["enter"])},null,8,["value","onKeydown"]),(0,t.Lk)("div",T,[(0,t.bF)((0,s.R1)(w.Ay),{quaternary:"",type:"info",size:"small",onClick:ma,loading:Qe.value},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(E),{class:"w-4 h-4 mr-1"}),a[18]||(a[18]=(0,t.eW)(" 查看例句提示 ",-1))]),_:1},8,["loading"]),(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:ka,disabled:!ea.value.trim(),loading:$e.value},{default:(0,t.k6)(()=>[...a[19]||(a[19]=[(0,t.eW)(" 提交答案 ",-1)])]),_:1},8,["disabled","loading"])]),(0,t.Lk)("div",Y,[(0,t.bF)((0,s.R1)(w.Ay),{text:"",type:"success",onClick:xa},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(K.A),{class:"w-4 h-4 mr-1"}),a[20]||(a[20]=(0,t.eW)(" 我已掌握 (跳过) ",-1))]),_:1})]),la.value.length>0?((0,t.uX)(),(0,t.CE)("div",Z,[a[21]||(a[21]=(0,t.Lk)("div",{class:"text-xs text-gray-400 mb-2"},"例句提示:",-1)),(0,t.Lk)("ul",ee,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(la.value,(e,a)=>((0,t.uX)(),(0,t.CE)("li",{key:a,class:"text-sm text-gray-600 dark:text-gray-300"},(0,d.v_)(e),1))),128))])])):(0,t.Q3)("",!0)]))],64)):(0,t.Q3)("",!0)]),_:1})])),[[o]]):"summary"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",de,[(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-lg text-center p-8 mb-8"},{default:(0,t.k6)(()=>[a[27]||(a[27]=(0,t.Lk)("h2",{class:"text-2xl font-bold mb-6"},"本次挑战完成!",-1)),(0,t.Lk)("div",oe,[(0,t.Lk)("div",ne,[(0,t.Lk)("div",ue,(0,d.v_)(na.value),1),a[24]||(a[24]=(0,t.Lk)("div",{class:"text-gray-500"},"总分",-1))]),(0,t.Lk)("div",ie,[(0,t.Lk)("div",ce,(0,d.v_)(oa.value)+" / "+(0,d.v_)(Ye.value.length),1),a[25]||(a[25]=(0,t.Lk)("div",{class:"text-gray-500"},"正确率",-1))])]),(0,t.Lk)("div",ve,[(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:fa},{default:(0,t.k6)(()=>[...a[26]||(a[26]=[(0,t.eW)("再来一轮",-1)])]),_:1})])]),_:1}),ua.value.length>0?((0,t.uX)(),(0,t.CE)("div",ye,[(0,t.Lk)("h3",ke,[(0,t.bF)((0,s.R1)(j),{class:"w-5 h-5 mr-2 text-red-500"}),a[28]||(a[28]=(0,t.eW)(" 错题回顾 ",-1))]),(0,t.Lk)("div",xe,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(ua.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(v.Ay),{key:e.word.id,class:"rounded-lg shadow-sm hover:shadow-md transition-shadow",size:"small"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",me,[(0,t.Lk)("div",null,[(0,t.Lk)("h4",be,(0,d.v_)(e.word.word),1),(0,t.Lk)("div",pe,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"text-sm"},[(0,t.Lk)("span",fe,(0,d.v_)(e.pos),1),(0,t.Lk)("span",he,(0,d.v_)(e.meaning),1)]))),128))])]),(0,t.bF)((0,s.R1)(w.Ay),{size:"tiny",secondary:"",circle:"",onClick:a=>pa(e.word.id)},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(q.A),{class:"w-4 h-4"})]),_:1},8,["onClick"])])]),_:2},1024))),128))])])):(0,t.Q3)("",!0)])),[[o]]):(0,t.Q3)("",!0)]),_:1}),(0,t.bF)((0,s.R1)(c.A),{name:"history",tab:"历史记录"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(A.A),{type:"warning",class:"mb-4",bordered:!1,"show-icon":""},{default:(0,t.k6)(()=>[...a[29]||(a[29]=[(0,t.eW)(" 跳过回答的单词不会被此处统计 ",-1)])]),_:1}),(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",ge,[(0,t.Lk)("div",we,[(0,t.bF)((0,s.R1)(v.Ay),{class:"bg-blue-50 dark:bg-blue-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",_e,[a[30]||(a[30]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"累计答题",-1)),(0,t.Lk)("div",Re,(0,d.v_)(Ne.value.total_answers),1)])]),_:1}),(0,t.bF)((0,s.R1)(v.Ay),{class:"bg-green-50 dark:bg-green-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",Ae,[a[31]||(a[31]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"正确率",-1)),(0,t.Lk)("div",Fe,(0,d.v_)(Ne.value.accuracy)+"%",1)])]),_:1})]),De.value.length>0?((0,t.uX)(),(0,t.CE)("div",Le,[(0,t.Lk)("h3",Ce,[(0,t.bF)((0,s.R1)(j),{class:"w-5 h-5 mr-2 text-red-500"}),a[32]||(a[32]=(0,t.eW)(" 错题本 ",-1))]),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(De.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(v.Ay),{key:e.id,size:"small",class:"hover:shadow-md transition-shadow cursor-pointer rounded-lg",onClick:a=>pa(e.id)},{default:(0,t.k6)(()=>[(0,t.Lk)("div",We,[(0,t.Lk)("div",Ee,[(0,t.Lk)("div",Ke,[(0,t.Lk)("h4",Xe,(0,d.v_)(e.word),1),(0,t.bF)((0,s.R1)(u.Ay),{type:"error",size:"small",round:"",bordered:!1},{default:(0,t.k6)(()=>[(0,t.eW)(" 错误 "+(0,d.v_)(e.error_count)+" 次 ",1)]),_:2},1024)]),(0,t.Lk)("div",ze,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"line-clamp-1 mb-1"},[(0,t.Lk)("span",je,(0,d.v_)(e.pos),1),(0,t.Lk)("span",null,(0,d.v_)(e.meaning),1)]))),128))])]),(0,t.bF)((0,s.R1)(q.A),{class:"w-4 h-4 text-gray-400 mt-1 flex-shrink-0"})])]),_:2},1032,["onClick"]))),128)),(0,t.Lk)("div",qe,[He.value?((0,t.uX)(),(0,t.Wv)((0,s.R1)(w.Ay),{key:0,loading:Ge.value,onClick:ga,secondary:"",round:""},{default:(0,t.k6)(()=>[...a[33]||(a[33]=[(0,t.eW)(" 查看更多 ",-1)])]),_:1},8,["loading"])):((0,t.uX)(),(0,t.CE)("div",Ie,"没有更多了"))])])):Ge.value?(0,t.Q3)("",!0):((0,t.uX)(),(0,t.Wv)((0,s.R1)(F.A),{key:1,description:"暂无错题记录",class:"mt-20"}))])),[[o]])]),_:1})]),_:1},8,["value"])])}}},Qe=l(71241);const Ue=(0,Qe.A)($e,[["__scopeId","data-v-65eca83c"]]);var Me=Ue},65163:function(e,a,l){l.d(a,{A:function(){return s}});var t=l(45525);
+/**
+ * @license lucide-vue-next v0.562.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const s=(0,t.A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])}}]);
+//# sourceMappingURL=253.5ce82593.js.map
\ No newline at end of file
diff --git a/dist/js/938.77996131.js b/dist/js/938.77996131.js
deleted file mode 100644
index 6e19555..0000000
--- a/dist/js/938.77996131.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[938],{15520:function(e,a,l){l.d(a,{A:function(){return s}});var t=l(45525);
-/**
- * @license lucide-vue-next v0.562.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const s=(0,t.A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},18495:function(e,a,l){l.d(a,{A:function(){return s}});var t=l(45525);
-/**
- * @license lucide-vue-next v0.562.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const s=(0,t.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},65163:function(e,a,l){l.d(a,{A:function(){return s}});var t=l(45525);
-/**
- * @license lucide-vue-next v0.562.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const s=(0,t.A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},67686:function(e,a,l){l.r(a),l.d(a,{default:function(){return Me}});l(44114),l(18111),l(22489),l(61701);var t=l(56768),s=l(90144),r=l(45130),d=l(24232),o=l(98728),n=l(97387),u=l(92720),i=l(24556),c=l(10496),v=l(42517),y=l(58911),k=l(52384),x=l(46522),m=l(25972),b=l(15631);var p=(0,t.pM)({name:"RadioButton",props:b.Fe,setup:b.mj,render(){const{mergedClsPrefix:e}=this;return(0,t.h)("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},(0,t.h)("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),(0,t.h)("div",{class:`${e}-radio-button__state-border`}),(0,m.iQ)(this.$slots.default,a=>a||this.label?(0,t.h)("div",{ref:"labelRef",class:`${e}-radio__label`},a||this.label):null))}}),f=l(47209),h=l(43585),g=l(19605),w=l(54880),_=l(78205),R=l(93913),A=l(64498),F=l(9845),L=l(29554),C=l(82089),W=l(45525);
-/**
- * @license lucide-vue-next v0.562.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */
-const E=(0,W.A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var K=l(73969),X=l(65163),z=l(15520);
-/**
- * @license lucide-vue-next v0.562.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */
-const j=(0,W.A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var q=l(18495),I=l(35720),$=l(15227);const Q={class:"check-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},U={class:"flex flex-col gap-4 mb-8"},M={class:"flex items-center gap-2"},B={class:"bg-blue-50 dark:bg-blue-900/20 p-4 rounded-lg flex items-start gap-3"},D={key:0,class:"max-w-2xl mx-auto"},V={class:"w-full"},S={key:1,class:"text-gray-400 text-sm py-0.5 px-1"},N={class:"flex justify-end mt-6"},G={key:1,class:"max-w-3xl mx-auto"},H={class:"mb-6 flex items-center justify-between"},J={class:"text-sm text-gray-500"},O={class:"text-4xl font-bold text-gray-900 dark:text-white mb-8"},P={key:0,class:"w-full max-w-md mx-auto space-y-4"},T={class:"flex justify-between items-center"},Y={class:"flex justify-center mt-4"},Z={key:0,class:"mt-4 text-left bg-gray-50 dark:bg-gray-800 p-4 rounded-lg"},ee={class:"list-disc list-inside space-y-1"},ae={key:1,class:"w-full max-w-md mx-auto space-y-6"},le={class:"flex flex-col items-center"},te={class:"bg-gray-50 dark:bg-gray-800 p-4 rounded-lg text-left"},se={class:"text-gray-700 dark:text-gray-200"},re={class:"flex justify-center gap-4"},de={key:2,class:"max-w-4xl mx-auto"},oe={class:"flex justify-center items-center gap-12"},ne={class:"text-center"},ue={class:"text-5xl font-bold text-primary mb-2"},ie={class:"text-center"},ce={class:"text-3xl font-bold text-green-500 mb-2"},ve={class:"mt-8 flex justify-center gap-4"},ye={key:0},ke={class:"text-xl font-bold mb-4 flex items-center"},xe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},me={class:"flex justify-between items-start"},be={class:"text-lg font-bold text-gray-900 dark:text-white"},pe={class:"mt-2 space-y-1"},fe={class:"text-gray-400 mr-1"},he={class:"text-gray-600 dark:text-gray-300"},ge={class:"max-w-4xl mx-auto"},we={class:"grid grid-cols-2 gap-4 mb-6"},_e={class:"text-center"},Re={class:"text-2xl font-bold text-primary"},Ae={class:"text-center"},Fe={class:"text-2xl font-bold text-green-500"},Le={key:0,class:"space-y-3"},Ce={class:"font-bold text-lg mb-4 flex items-center"},We={class:"flex justify-between items-start"},Ee={class:"flex-1"},Ke={class:"flex items-center gap-2 mb-2"},Xe={class:"text-lg font-bold text-gray-900 dark:text-white"},ze={class:"text-sm text-gray-600 dark:text-gray-300"},je={class:"bg-gray-100 dark:bg-gray-700 px-1.5 py-0.5 rounded text-xs mr-2"},qe={class:"flex justify-center mt-6 pb-8"},Ie={key:1,class:"text-gray-400 text-sm py-4"};var $e={__name:"CheckView",setup(e){const a=(0,o.rd)(),l=(0,n.J)(),{isDark:m}=(0,t.WQ)("themeContext"),b=(0,s.KR)("config"),W=(0,s.KR)(!1),$e=(0,s.KR)(!1),Qe=(0,s.KR)(!1),Ue=(0,s.KR)(!1),Me=(0,s.KR)(!1),Be=(0,s.KR)("start"),De=(0,s.KR)([]),Ve=(0,s.KR)(1),Se=(0,s.KR)(0),Ne=(0,s.KR)({total_answers:0,accuracy:0}),Ge=(0,s.KR)(!1),He=(0,t.EW)(()=>De.value.lengthYe.value[Ze.value]||null),da=(0,t.EW)(()=>Ze.value===Ye.value.length-1),oa=(0,t.EW)(()=>sa.value.filter(e=>e.correct).length),na=(0,t.EW)(()=>Math.round(oa.value/Ye.value.length*100)),ua=(0,t.EW)(()=>sa.value.filter(e=>!e.correct)),ia=async()=>{Ue.value=!0;try{const e=await I.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/dict/list");0===e.data.code&&(Oe.value=e.data.data.map(e=>({label:e.name,value:e.id})))}catch(e){console.error("Fetch dicts error:",e)}finally{Ue.value=!1}},ca=e=>{const a=Je.value.list_ids.indexOf(e);a>-1&&Je.value.list_ids.splice(a,1);const l=Te.value.findIndex(a=>a.id===e);l>-1&&Te.value.splice(l,1)},va=async()=>{if(1===Je.value.mode&&Je.value.dict_ids.length,3===Je.value.mode){if(0===Je.value.list_ids.length)return void l.warning("请至少选择一个词单");if(Je.value.list_ids.length>10)return void l.warning("最多只能选择10个词单")}W.value=!0;try{const e={word_count:Je.value.word_count,mode:Je.value.mode,reinforce:Je.value.reinforce,dict_id:3===Je.value.mode?Je.value.list_ids:Je.value.dict_ids},a=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/getlist",e),t=a.data;t&&t.words&&t.words.length>0?(Ye.value=t.words,Ze.value=0,sa.value=[],ya(),b.value="quiz"):l.warning(a.data.msg||"未获取到单词,请尝试调整条件")}catch(e){if(console.error("Start check error:",e),e.response&&e.response.data&&e.response.data.error){const a=e.response.data.error;a.includes("不足")?l.error("记录不足,无法抽查"):l.error(a)}else l.error("启动失败,请稍后重试")}finally{W.value=!1}},ya=()=>{ea.value="",aa.value=!1,la.value=[],ta.value={correct:!1,translations:[]}},ka=async()=>{if(ea.value.trim()){$e.value=!0;try{const e=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/reply",{word_id:ra.value.id,reply:ea.value});if(e.data){const a=e.data;ta.value={correct:a.correct,translations:a.translations||[]},sa.value.push({word:ra.value,correct:a.correct,translations:a.translations||[]}),aa.value=!0}}catch(e){console.error("Submit answer error:",e),l.error("提交失败")}finally{$e.value=!1}}},xa=async()=>{sa.value.push({word:ra.value,correct:!0,translations:[]}),da.value?b.value="summary":(Ze.value++,ya())},ma=async()=>{Qe.value=!0;try{const e=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/sign",{word_id:ra.value.id});e.data&&e.data.examples&&(la.value=e.data.examples,0===la.value.length&&l.info("该单词暂无例句提示"))}catch(e){console.error("Get hint error:",e),l.error("获取提示失败")}finally{Qe.value=!1}},ba=()=>{da.value?b.value="summary":(Ze.value++,ya())},pa=e=>{const l=a.resolve({path:"/word",query:{word_id:e}});window.open(l.href,"_blank")},fa=()=>{b.value="config",Ye.value=[],sa.value=[],Ze.value=0,ya()},ha=async(e=!1)=>{if(!Ge.value){Ge.value=!0;try{const a=await I.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/history",{params:{page:e?Ve.value+1:1}}),l=a.data;if(l){const{list:a,total:t,stats:s,page:r}=l;De.value=e?[...De.value,...a]:a,Se.value=t,Ve.value=parseInt(r),s&&(Ne.value=s)}}catch(a){console.error("Fetch history error:",a),l.error("获取历史记录失败")}finally{Ge.value=!1}}},ga=()=>{ha(!0)};(0,t.wB)(Be,e=>{"history"===e&&0===De.value.length&&ha()}),(0,t.wB)(()=>Je.value.mode,e=>{1===e&&0===Oe.value.length&&ia()}),(0,t.sV)(()=>{ia(),document.title="智能抽查 - Word Helper",wa(),window.addEventListener("resize",wa)}),(0,t.hi)(()=>{window.removeEventListener("resize",wa)});const wa=()=>{Me.value=window.innerWidth<640};return(e,a)=>{const l=(0,t.gN)("motion-slide-visible-once-left"),o=(0,t.gN)("motion-fade");return(0,t.uX)(),(0,t.CE)("div",Q,[(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",U,[(0,t.Lk)("div",M,[(0,t.bF)((0,s.R1)(L.A),{class:"w-8 h-8 text-primary"}),a[12]||(a[12]=(0,t.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"智能抽查",-1)),(0,t.bF)((0,s.R1)(u.Ay),{type:"info",size:"small",round:""},{default:(0,t.k6)(()=>[...a[11]||(a[11]=[(0,t.eW)("限时免费",-1)])]),_:1})]),(0,t.Lk)("div",B,[(0,t.bF)((0,s.R1)(C.A),{class:"w-5 h-5 text-blue-500 mt-0.5 flex-shrink-0"}),a[13]||(a[13]=(0,t.Lk)("p",{class:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed"}," 欢迎体验智能抽查功能!我们基于超过 50,000 条真实用户答题数据训练的智能模型,为您提供高效、可靠的单词抽查与判题,帮助您快速发现薄弱词汇,针对性巩固学习效果。 ",-1))])])),[[l]]),(0,t.bF)((0,s.R1)(i.A),{type:"segment",animated:"",value:Be.value,"onUpdate:value":a[10]||(a[10]=e=>Be.value=e)},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(c.A),{name:"start",tab:"开始抽查"},{default:(0,t.k6)(()=>["config"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",D,[(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-sm",title:"抽查配置"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(y.A),{ref:"formRef",model:Je.value,"label-placement":Me.value?"top":"left","label-width":Me.value?"auto":100,"require-mark-placement":"right-hanging"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(k.Ay),{label:"单词数量"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(x.A),{value:Je.value.word_count,"onUpdate:value":a[0]||(a[0]=e=>Je.value.word_count=e),name:"word_count",class:"overflow-x-auto overflow-y-hidden max-w-full no-scrollbar"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(p),{value:10,label:"10"}),(0,t.bF)((0,s.R1)(p),{value:20,label:"20"}),(0,t.bF)((0,s.R1)(p),{value:30,label:"30"}),(0,t.bF)((0,s.R1)(p),{value:40,label:"40"})]),_:1},8,["value"])]),_:1}),(0,t.bF)((0,s.R1)(k.Ay),{label:"单词来源"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(x.A),{value:Je.value.mode,"onUpdate:value":a[1]||(a[1]=e=>Je.value.mode=e),name:"mode"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(f.A),{value:0,label:"学习记录"}),(0,t.bF)((0,s.R1)(f.A),{value:1,label:"词书挑战"}),(0,t.bF)((0,s.R1)(f.A),{value:2,label:"生词本"}),(0,t.bF)((0,s.R1)(f.A),{value:3,label:"词单抽词"})]),_:1},8,["value"])]),_:1}),(0,t.bF)((0,s.R1)(k.Ay),{label:"易错巩固"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(h.A),{value:Je.value.reinforce,"onUpdate:value":a[2]||(a[2]=e=>Je.value.reinforce=e)},{checked:(0,t.k6)(()=>[...a[14]||(a[14]=[(0,t.eW)("开启",-1)])]),unchecked:(0,t.k6)(()=>[...a[15]||(a[15]=[(0,t.eW)("关闭",-1)])]),_:1},8,["value"]),a[16]||(a[16]=(0,t.Lk)("span",{class:"ml-2 text-xs text-gray-500"},"优先抽取历史错题",-1))]),_:1}),1===Je.value.mode?((0,t.uX)(),(0,t.Wv)((0,s.R1)(k.Ay),{key:0,label:"选择词书"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(g.A),{value:Je.value.dict_ids,"onUpdate:value":a[3]||(a[3]=e=>Je.value.dict_ids=e),multiple:"",filterable:"",placeholder:"请选择词书(不选代表全部)",options:Oe.value,loading:Ue.value,clearable:""},null,8,["value","options","loading"])]),_:1})):(0,t.Q3)("",!0),3===Je.value.mode?((0,t.uX)(),(0,t.Wv)((0,s.R1)(k.Ay),{key:1,label:"选择词单"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",V,[(0,t.Lk)("div",{class:"border border-gray-300 dark:border-gray-600 rounded-md p-2 min-h-[34px] cursor-pointer hover:border-indigo-500 transition-colors bg-white dark:bg-black/10 flex flex-wrap gap-2",onClick:a[4]||(a[4]=e=>Pe.value=!0)},[Te.value.length>0?((0,t.uX)(!0),(0,t.CE)(t.FK,{key:0},(0,t.pI)(Te.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(u.Ay),{key:e.id,closable:"",onClose:(0,r.D$)(a=>ca(e.id),["stop"]),size:"small"},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(e.name),1)]),_:2},1032,["onClose"]))),128)):((0,t.uX)(),(0,t.CE)("div",S," 点击选择词单... "))])])]),_:1})):(0,t.Q3)("",!0),(0,t.bF)($.A,{show:Pe.value,"onUpdate:show":a[5]||(a[5]=e=>Pe.value=e),modelValue:Je.value.list_ids,"onUpdate:modelValue":a[6]||(a[6]=e=>Je.value.list_ids=e),selectedList:Te.value,"onUpdate:selectedList":a[7]||(a[7]=e=>Te.value=e),"max-count":10},null,8,["show","modelValue","selectedList"]),(0,t.Lk)("div",N,[(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",size:"large",onClick:va,loading:W.value},{default:(0,t.k6)(()=>[...a[17]||(a[17]=[(0,t.eW)(" 开始挑战 ",-1)])]),_:1},8,["loading"])])]),_:1},8,["model","label-placement","label-width"])]),_:1})])),[[o]]):"quiz"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",G,[(0,t.Lk)("div",H,[(0,t.Lk)("span",J,"进度: "+(0,d.v_)(Ze.value+1)+" / "+(0,d.v_)(Ye.value.length),1),(0,t.bF)((0,s.R1)(_.A),{type:"line",percentage:(Ze.value+1)/Ye.value.length*100,"show-indicator":!1,class:"w-48",status:"success"},null,8,["percentage"])]),(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-lg min-h-[400px] flex flex-col justify-center items-center text-center p-8"},{default:(0,t.k6)(()=>[ra.value?((0,t.uX)(),(0,t.CE)(t.FK,{key:0},[(0,t.Lk)("h2",O,(0,d.v_)(ra.value.word),1),aa.value?((0,t.uX)(),(0,t.CE)("div",ae,[(0,t.Lk)("div",le,[((0,t.uX)(),(0,t.Wv)((0,t.$y)(ta.value.correct?(0,s.R1)(X.A):(0,s.R1)(z.A)),{class:(0,d.C4)(["w-16 h-16 mb-2",ta.value.correct?"text-green-500":"text-red-500"])},null,8,["class"])),(0,t.Lk)("span",{class:(0,d.C4)(["text-xl font-bold",ta.value.correct?"text-green-600":"text-red-600"])},(0,d.v_)(ta.value.correct?"回答正确":"回答错误"),3)]),(0,t.Lk)("div",te,[a[22]||(a[22]=(0,t.Lk)("div",{class:"text-xs text-gray-400 mb-2"},"正确释义:",-1)),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(ta.value.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"mb-1"},[(0,t.bF)((0,s.R1)(u.Ay),{size:"small",bordered:!1,type:"info",class:"mr-2"},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(e.pos),1)]),_:2},1024),(0,t.Lk)("span",se,(0,d.v_)(e.meaning),1)]))),128))]),(0,t.Lk)("div",re,[(0,t.bF)((0,s.R1)(w.Ay),{secondary:"",type:"info",onClick:a[9]||(a[9]=e=>pa(ra.value.id))},{default:(0,t.k6)(()=>[...a[23]||(a[23]=[(0,t.eW)(" 查看详细释义 ",-1)])]),_:1}),(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:ba},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(da.value?"查看成绩":"下一题"),1)]),_:1})])])):((0,t.uX)(),(0,t.CE)("div",P,[(0,t.bF)((0,s.R1)(R.A),{value:ea.value,"onUpdate:value":a[8]||(a[8]=e=>ea.value=e),type:"textarea",placeholder:"请输入中文释义...",autosize:{minRows:3,maxRows:5},maxlength:20,"show-count":"",onKeydown:(0,r.jR)((0,r.D$)(ka,["prevent"]),["enter"])},null,8,["value","onKeydown"]),(0,t.Lk)("div",T,[(0,t.bF)((0,s.R1)(w.Ay),{quaternary:"",type:"info",size:"small",onClick:ma,loading:Qe.value},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(E),{class:"w-4 h-4 mr-1"}),a[18]||(a[18]=(0,t.eW)(" 查看例句提示 ",-1))]),_:1},8,["loading"]),(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:ka,disabled:!ea.value.trim(),loading:$e.value},{default:(0,t.k6)(()=>[...a[19]||(a[19]=[(0,t.eW)(" 提交答案 ",-1)])]),_:1},8,["disabled","loading"])]),(0,t.Lk)("div",Y,[(0,t.bF)((0,s.R1)(w.Ay),{text:"",type:"success",onClick:xa},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(K.A),{class:"w-4 h-4 mr-1"}),a[20]||(a[20]=(0,t.eW)(" 我已掌握 (跳过) ",-1))]),_:1})]),la.value.length>0?((0,t.uX)(),(0,t.CE)("div",Z,[a[21]||(a[21]=(0,t.Lk)("div",{class:"text-xs text-gray-400 mb-2"},"例句提示:",-1)),(0,t.Lk)("ul",ee,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(la.value,(e,a)=>((0,t.uX)(),(0,t.CE)("li",{key:a,class:"text-sm text-gray-600 dark:text-gray-300"},(0,d.v_)(e),1))),128))])])):(0,t.Q3)("",!0)]))],64)):(0,t.Q3)("",!0)]),_:1})])),[[o]]):"summary"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",de,[(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-lg text-center p-8 mb-8"},{default:(0,t.k6)(()=>[a[27]||(a[27]=(0,t.Lk)("h2",{class:"text-2xl font-bold mb-6"},"本次挑战完成!",-1)),(0,t.Lk)("div",oe,[(0,t.Lk)("div",ne,[(0,t.Lk)("div",ue,(0,d.v_)(na.value),1),a[24]||(a[24]=(0,t.Lk)("div",{class:"text-gray-500"},"总分",-1))]),(0,t.Lk)("div",ie,[(0,t.Lk)("div",ce,(0,d.v_)(oa.value)+" / "+(0,d.v_)(Ye.value.length),1),a[25]||(a[25]=(0,t.Lk)("div",{class:"text-gray-500"},"正确率",-1))])]),(0,t.Lk)("div",ve,[(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:fa},{default:(0,t.k6)(()=>[...a[26]||(a[26]=[(0,t.eW)("再来一轮",-1)])]),_:1})])]),_:1}),ua.value.length>0?((0,t.uX)(),(0,t.CE)("div",ye,[(0,t.Lk)("h3",ke,[(0,t.bF)((0,s.R1)(j),{class:"w-5 h-5 mr-2 text-red-500"}),a[28]||(a[28]=(0,t.eW)(" 错题回顾 ",-1))]),(0,t.Lk)("div",xe,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(ua.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(v.Ay),{key:e.word.id,class:"rounded-lg shadow-sm hover:shadow-md transition-shadow",size:"small"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",me,[(0,t.Lk)("div",null,[(0,t.Lk)("h4",be,(0,d.v_)(e.word.word),1),(0,t.Lk)("div",pe,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"text-sm"},[(0,t.Lk)("span",fe,(0,d.v_)(e.pos),1),(0,t.Lk)("span",he,(0,d.v_)(e.meaning),1)]))),128))])]),(0,t.bF)((0,s.R1)(w.Ay),{size:"tiny",secondary:"",circle:"",onClick:a=>pa(e.word.id)},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(q.A),{class:"w-4 h-4"})]),_:1},8,["onClick"])])]),_:2},1024))),128))])])):(0,t.Q3)("",!0)])),[[o]]):(0,t.Q3)("",!0)]),_:1}),(0,t.bF)((0,s.R1)(c.A),{name:"history",tab:"历史记录"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(A.A),{type:"warning",class:"mb-4",bordered:!1,"show-icon":""},{default:(0,t.k6)(()=>[...a[29]||(a[29]=[(0,t.eW)(" 跳过回答的单词不会被此处统计 ",-1)])]),_:1}),(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",ge,[(0,t.Lk)("div",we,[(0,t.bF)((0,s.R1)(v.Ay),{class:"bg-blue-50 dark:bg-blue-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",_e,[a[30]||(a[30]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"累计答题",-1)),(0,t.Lk)("div",Re,(0,d.v_)(Ne.value.total_answers),1)])]),_:1}),(0,t.bF)((0,s.R1)(v.Ay),{class:"bg-green-50 dark:bg-green-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",Ae,[a[31]||(a[31]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"正确率",-1)),(0,t.Lk)("div",Fe,(0,d.v_)(Ne.value.accuracy)+"%",1)])]),_:1})]),De.value.length>0?((0,t.uX)(),(0,t.CE)("div",Le,[(0,t.Lk)("h3",Ce,[(0,t.bF)((0,s.R1)(j),{class:"w-5 h-5 mr-2 text-red-500"}),a[32]||(a[32]=(0,t.eW)(" 错题本 ",-1))]),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(De.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(v.Ay),{key:e.id,size:"small",class:"hover:shadow-md transition-shadow cursor-pointer rounded-lg",onClick:a=>pa(e.id)},{default:(0,t.k6)(()=>[(0,t.Lk)("div",We,[(0,t.Lk)("div",Ee,[(0,t.Lk)("div",Ke,[(0,t.Lk)("h4",Xe,(0,d.v_)(e.word),1),(0,t.bF)((0,s.R1)(u.Ay),{type:"error",size:"small",round:"",bordered:!1},{default:(0,t.k6)(()=>[(0,t.eW)(" 错误 "+(0,d.v_)(e.error_count)+" 次 ",1)]),_:2},1024)]),(0,t.Lk)("div",ze,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"line-clamp-1 mb-1"},[(0,t.Lk)("span",je,(0,d.v_)(e.pos),1),(0,t.Lk)("span",null,(0,d.v_)(e.meaning),1)]))),128))])]),(0,t.bF)((0,s.R1)(q.A),{class:"w-4 h-4 text-gray-400 mt-1 flex-shrink-0"})])]),_:2},1032,["onClick"]))),128)),(0,t.Lk)("div",qe,[He.value?((0,t.uX)(),(0,t.Wv)((0,s.R1)(w.Ay),{key:0,loading:Ge.value,onClick:ga,secondary:"",round:""},{default:(0,t.k6)(()=>[...a[33]||(a[33]=[(0,t.eW)(" 查看更多 ",-1)])]),_:1},8,["loading"])):((0,t.uX)(),(0,t.CE)("div",Ie,"没有更多了"))])])):Ge.value?(0,t.Q3)("",!0):((0,t.uX)(),(0,t.Wv)((0,s.R1)(F.A),{key:1,description:"暂无错题记录",class:"mt-20"}))])),[[o]])]),_:1})]),_:1},8,["value"])])}}},Qe=l(71241);const Ue=(0,Qe.A)($e,[["__scopeId","data-v-6ef8afc2"]]);var Me=Ue}}]);
-//# sourceMappingURL=938.77996131.js.map
\ No newline at end of file
diff --git a/dist/js/app.ceac3d0c.js b/dist/js/app.84eb4970.js
similarity index 97%
rename from dist/js/app.ceac3d0c.js
rename to dist/js/app.84eb4970.js
index 0bb2226..c2989cc 100644
--- a/dist/js/app.ceac3d0c.js
+++ b/dist/js/app.84eb4970.js
@@ -1,2 +1,2 @@
-(function(){"use strict";var e={35720:function(e,t,a){var n=a(94373),r=a(55129);const o=n.A.create({timeout:5e3});o.interceptors.request.use(e=>{const t=r.A.getters.token;return t&&(e.headers["Authorization"]=t),e.url&&e.url.includes("/ai_passage/generate")&&(e.timeout=24e4),e},e=>(console.log(e),Promise.reject(e))),t.A=o},55129:function(e,t,a){var n=a(60782),r=a(35720);t.A=(0,n.y$)({state:{token:"",userInfo:null},getters:{token:e=>e.token,userInfo:e=>e.userInfo},mutations:{setToken(e,t){e.token=t},setUserInfo(e,t){e.userInfo=t}},actions:{fetchUserInfo({commit:e}){return new Promise((t,a)=>{r.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/userinfo/info").then(n=>{const r=n.data;r?(e("setUserInfo",r),t(r)):a(new Error("No user info"))}).catch(e=>{a(e)})})}},modules:{}})},66441:function(e,t,a){var n=a(45130),r=a(56768),o=a(90144),l=a(58075),s=a(22646),i=a(28686),d=a(78597),c=a(3575),u={__name:"App",setup(e){const t=(0,o.KR)(null),a=(0,o.KR)(!1),n={Menu:{borderRadius:"50px",itemHeight:"42px",itemMargin:"4px 8px"}},u=e=>{a.value=e,t.value=e?l.a:null,e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",e?"dark":"light")},m=()=>{u(!a.value)};return(0,r.sV)(()=>{const e=localStorage.getItem("theme");if(e)u("dark"===e);else{const e=window.matchMedia("(prefers-color-scheme: dark)").matches;u(e)}}),(0,r.Gt)("themeContext",{isDark:a,toggleTheme:m}),(e,a)=>{const l=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.Wv)((0,o.R1)(s.A),{theme:t.value,"theme-overrides":n},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(i.A)),(0,r.bF)((0,o.R1)(d.A),null,{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(c.K),null,{default:(0,r.k6)(()=>[(0,r.bF)(l)]),_:1})]),_:1})]),_:1},8,["theme"])}}};const m=u;var f=m,b=(a(44114),a(98728)),g=a(95404),h=a(24232),p=a(60782),v=a(36909),k=a(59856),y=a(33889),x=a(13230),w=a(99310),_=a(4814),A=a(86727),L=a(30284),R=a(36921),E=a(28451),C=a(54880),F=a(6609),j=a(58096),I=a(56714),z=a(93812),P=a(35161),W=a(18169),q=a(95802),S=a(57273),T=a(26961),X=a(29554),O=a(41829),K=a(22695),N=a(82089),U=a(94578),V=a(51415),B=a(55704),H=a(36022),M=a(78704);const D={class:"h-16 flex items-center justify-center border-b border-gray-200 dark:border-gray-800"},G={key:0,class:"flex items-center gap-3 px-4 truncate"},Q={key:1,class:"flex justify-center w-full"},Y={class:"flex items-center gap-4"},$={class:"flex items-center gap-4"},J={class:"flex items-center gap-3 pl-4 border-l border-gray-200 dark:border-gray-700"},Z={class:"text-right hidden sm:block"},ee={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},te={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},ae={key:1,class:"inline-flex items-center px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"},ne={class:"p-4 min-w-[200px] bg-white dark:bg-gray-900 rounded-lg"},re={class:"flex flex-col items-center border-b border-gray-100 dark:border-gray-800 pb-4 mb-2"},oe={class:"text-base font-medium text-gray-900 dark:text-gray-100 mb-2"},le={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},se={key:1,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"},ie={class:"flex flex-col"};var de={__name:"MainLayout",setup(e){const t=(0,p.Pj)(),a=(0,b.rd)(),l=(0,b.lq)(),s=(0,v.s)(),{isDark:i,toggleTheme:d}=(0,r.WQ)("themeContext"),c=(0,o.KR)(!1),u=(0,o.KR)(!1),m=(0,o.KR)(!1),f=()=>{m.value=window.innerWidth<768};(0,r.sV)(()=>{f(),window.addEventListener("resize",f)}),(0,r.hi)(()=>{window.removeEventListener("resize",f)});const g=(0,r.EW)(()=>t.getters.userInfo);function de(e){return()=>(0,r.h)(k._,null,{default:()=>(0,r.h)(e)})}const ce=[{label:"我的数据",key:"home",icon:de(I.A)},{label:"词书",key:"dict",icon:de(z.A)},{label:"生词本",key:"favorite",icon:de(P.A)},{label:"单词搜索",key:"search",icon:de(W.A)},{label:"我的笔记",key:"note",icon:de(q.A)},{label:"我的词单",key:"lists",icon:de(S.A)},{label:"学习记录",key:"learn",icon:de(T.A)},{label:"智能抽查",key:"check",icon:de(X.A)},{label:"猜单词",key:"guess",icon:de(O.A)},{label:"AI 助记短文",key:"passage",icon:de(K.A)},{label:"关于",key:"about",icon:de(N.A)}],ue=(0,r.EW)(()=>l.name),me=e=>{a.push({name:e}),u.value=!1},fe=()=>{s.warning({title:"退出登录",content:"确定要退出登录吗?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{M.A.remove("auth_token",{domain:"localhost"===window.location.hostname?"localhost":"wh.ember.ac.cn"}),M.A.remove("cb_token",{domain:"localhost"===window.location.hostname?"localhost":"wh.ember.ac.cn"}),t.commit("setToken",""),t.commit("setUserInfo",null),a.push({name:"login-required"})}})};return(e,t)=>{const a=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.Wv)((0,o.R1)(y.Ay),{class:"h-screen","has-sider":""},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(x.A),{show:u.value,"onUpdate:show":t[0]||(t[0]=e=>u.value=e),placement:"left",width:240,class:"md:hidden"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(w.A),{"body-content-style":"padding: 0;"},{header:(0,r.k6)(()=>[...t[5]||(t[5]=[(0,r.Lk)("div",{class:"flex items-center gap-2"},[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,r.Lk)("span",{class:"text-lg font-bold text-gray-900 dark:text-white"},"Word Helper")],-1)])]),default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(_.A),{options:ce,value:ue.value,"onUpdate:value":me,class:"custom-menu"},null,8,["value"])]),_:1})]),_:1},8,["show"]),m.value?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.Wv)((0,o.R1)(A.A),{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:240,collapsed:c.value,"show-trigger":"",onCollapse:t[1]||(t[1]=e=>c.value=!0),onExpand:t[2]||(t[2]=e=>c.value=!1),class:"hidden md:block bg-white dark:bg-gray-900 h-screen shadow-sm z-10"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",D,[c.value?((0,r.uX)(),(0,r.CE)("div",Q,[...t[7]||(t[7]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1)])])):((0,r.uX)(),(0,r.CE)("div",G,[...t[6]||(t[6]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1),(0,r.Lk)("h1",{class:"text-xl font-bold text-primary"},"Word Helper",-1)])]))]),(0,r.bF)((0,o.R1)(_.A),{class:"mt-2",collapsed:c.value,"collapsed-width":64,"collapsed-icon-size":22,options:ce,value:ue.value,"onUpdate:value":me},null,8,["collapsed","value"])]),_:1},8,["collapsed"])),(0,r.bF)((0,o.R1)(y.Ay),{class:"h-screen bg-gray-50 dark:bg-gray-950","native-scrollbar":!1},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(L.A),{bordered:"",class:"h-16 px-4 flex items-center justify-between bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-800 shadow-sm z-10 sticky top-0"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Y,[(0,r.Lk)("button",{onClick:t[3]||(t[3]=e=>u.value=!0),class:"md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,r.bF)((0,o.R1)(U.A),{class:"w-6 h-6 text-gray-600 dark:text-gray-300"})]),t[8]||(t[8]=(0,r.Lk)("div",{class:"flex items-center gap-2 md:hidden"},[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,r.Lk)("span",{class:"text-lg font-bold text-gray-800 dark:text-white"},"Word Helper")],-1))]),(0,r.Lk)("div",$,[(0,r.Lk)("button",{onClick:t[4]||(t[4]=(...e)=>(0,o.R1)(d)&&(0,o.R1)(d)(...e)),class:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,o.R1)(i)?((0,r.uX)(),(0,r.Wv)((0,o.R1)(V.A),{key:0,class:"w-5 h-5 text-yellow-500"})):((0,r.uX)(),(0,r.Wv)((0,o.R1)(B.A),{key:1,class:"w-5 h-5 text-gray-600"}))]),(0,r.Lk)("div",J,[(0,r.Lk)("div",Z,[(0,r.Lk)("div",ee,(0,h.v_)(g.value?.detail?.nickname||"Guest"),1),g.value?.detail?.is_vip?((0,r.uX)(),(0,r.CE)("div",te,[...t[9]||(t[9]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,r.Lk)("span",null,"VIP用户",-1)])])):((0,r.uX)(),(0,r.CE)("div",ae," 普通用户 "))]),m.value?((0,r.uX)(),(0,r.Wv)((0,o.R1)(R.Ay),{key:0,trigger:"click",placement:"bottom-end",style:{padding:"0"}},{trigger:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(E.A),{round:"",size:"medium",src:g.value?.detail?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png",class:"cursor-pointer"},null,8,["src"])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",ne,[(0,r.Lk)("div",re,[(0,r.Lk)("div",oe,(0,h.v_)(g.value?.detail?.nickname||"Guest"),1),g.value?.detail?.is_vip?((0,r.uX)(),(0,r.CE)("div",le,[...t[10]||(t[10]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,r.Lk)("span",null,"VIP用户",-1)])])):((0,r.uX)(),(0,r.CE)("div",se," 普通用户 "))]),(0,r.Lk)("div",ie,[(0,r.bF)((0,o.R1)(C.Ay),{quaternary:"",type:"error",onClick:fe,class:"w-full justify-start"},{icon:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(k._),null,{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(H.A))]),_:1})]),default:(0,r.k6)(()=>[t[11]||(t[11]=(0,r.eW)(" 退出登录 ",-1))]),_:1})])])]),_:1})):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.bF)((0,o.R1)(E.A),{round:"",size:"medium",src:g.value?.detail?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png"},null,8,["src"]),(0,r.bF)((0,o.R1)(F.A),{trigger:"hover"},{trigger:(0,r.k6)(()=>[(0,r.Lk)("button",{onClick:fe,class:"ml-2 p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 hover:text-red-500 transition-colors"},[(0,r.bF)((0,o.R1)(H.A),{class:"w-5 h-5"})])]),default:(0,r.k6)(()=>[t[12]||(t[12]=(0,r.eW)(" 退出登录 ",-1))]),_:1})],64))])])]),_:1}),(0,r.bF)((0,o.R1)(j.A),{class:"p-4 md:p-6 bg-gray-50 dark:bg-gray-950","content-style":"min-height: calc(100vh - 64px)"},{default:(0,r.k6)(()=>[(0,r.bF)(a,null,{default:(0,r.k6)(({Component:e})=>[(0,r.bF)(n.eB,{"enter-active-class":"animate__animated animate__fadeIn animate__faster","leave-active-class":"animate__animated animate__fadeOut animate__faster",mode:"out-in"},{default:(0,r.k6)(()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})}}},ce=a(71241);const ue=(0,ce.A)(de,[["__scopeId","data-v-2b338d36"]]);var me=ue,fe=(a(18111),a(61701),a(97387)),be=a(91332),ge=a(2231),he=a(49912),pe=a(42517),ve=a(37006),ke=a(35720),ye=a(60501),xe=a(2043),we=a(75095),_e=a(32685),Ae=a(53708),Le=a(89536),Re=a(5143),Ee=a(40623),Ce=a(92080),Fe=a(56677);const je={class:"home-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},Ie={initial:{opacity:0,y:20},enter:{opacity:1,y:0},class:"mb-8"},ze={class:"text-3xl font-bold text-gray-900 dark:text-white mb-2"},Pe={class:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"},We={class:"flex items-center justify-between"},qe={class:"text-3xl font-bold text-primary mt-1"},Se={class:"p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg"},Te={class:"flex items-center justify-between"},Xe={class:"text-3xl font-bold text-green-600 dark:text-green-400 mt-1"},Oe={class:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg"},Ke={class:"flex items-center justify-between"},Ne={class:"text-3xl font-bold text-purple-600 dark:text-purple-400 mt-1"},Ue={class:"p-3 bg-purple-50 dark:bg-purple-900/20 rounded-lg"},Ve={class:"h-[400px] w-full relative",ref:"chartContainer"};var Be={__name:"HomeView",setup(e){(0,xe.Y)([we.a,_e.a,Ae.a,Le.a,Re.a,Ee.a,Ce.i]);const t=(0,p.Pj)(),a=(0,fe.J)(),{isDark:n}=(0,r.WQ)("themeContext"),l=(0,r.EW)(()=>t.getters.userInfo||t.state.userInfo),s=(0,o.KR)(!1),i=(0,o.KR)(null),d=(0,o.KR)({today_count:0,week_count:0,month_count:0,last_7_days:[]}),c=()=>{const e=i.value?.getEChartsInstance?.();e&&e.resize()},u=async()=>{await(0,r.dY)(),requestAnimationFrame(()=>{c(),requestAnimationFrame(c)})},m=(0,r.EW)(()=>{const e=n.value,t=e?"#e5e7eb":"#374151",a=e?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.05)",r=e?"rgba(31, 41, 55, 0.9)":"rgba(255, 255, 255, 0.9)",o=e?"#374151":"#e5e7eb";return{backgroundColor:"transparent",grid:{left:48,right:20,bottom:28,top:40},tooltip:{trigger:"axis",backgroundColor:r,borderColor:o,textStyle:{color:t},axisPointer:{type:"line",lineStyle:{color:"#6366f1",type:"dashed"}}},xAxis:{type:"category",boundaryGap:!1,data:d.value.last_7_days.map(e=>e.date.slice(5)),axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t,margin:15},splitLine:{show:!0,lineStyle:{color:a}}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t},splitLine:{show:!0,lineStyle:{color:a,type:"dashed"}}},series:[{name:"学习次数",type:"line",smooth:!0,showSymbol:!1,symbolSize:8,itemStyle:{color:"#6366f1",borderWidth:2,borderColor:"#fff"},lineStyle:{width:3,color:new Fe.A(0,0,1,0,[{offset:0,color:"#6366f1"},{offset:1,color:"#818cf8"}])},areaStyle:{color:new Fe.A(0,0,0,1,[{offset:0,color:"rgba(99, 102, 241, 0.2)"},{offset:1,color:"rgba(99, 102, 241, 0)"}])},data:d.value.last_7_days.map(e=>e.count)}]}}),f=async()=>{s.value=!0;try{const e=await ke.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/home/stats");e.data&&(d.value=e.data,await u())}catch(e){console.error("Failed to fetch stats:",e),a.error("获取学习数据失败,请稍后重试")}finally{s.value=!1}},b=()=>{u()},g=()=>{u()},v=()=>{u()};return(0,r.sV)(async()=>{window.addEventListener("pageshow",b),window.addEventListener("orientationchange",g),window.visualViewport?.addEventListener("resize",v),await u(),await f(),document.title="我的数据 - Word Helper"}),(0,r.hi)(()=>{window.removeEventListener("pageshow",b),window.removeEventListener("orientationchange",g),window.visualViewport?.removeEventListener("resize",v)}),(0,r.wB)(()=>d.value.last_7_days.length,()=>{u()}),(0,r.wB)(n,()=>{u()}),(e,t)=>{const a=(0,r.gN)("motion");return(0,r.uX)(),(0,r.CE)("div",je,[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Ie,[(0,r.Lk)("h1",ze," 欢迎回来,"+(0,h.v_)(l.value?.detail?.nickname||"学习者")+" 👋 ",1),t[0]||(t[0]=(0,r.Lk)("p",{class:"text-gray-600 dark:text-gray-400"}," 保持学习节奏,今天也要加油哦! ",-1))])),[[a]]),(0,r.Lk)("div",Pe,[(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:100}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",We,[(0,r.Lk)("div",null,[t[1]||(t[1]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"今日学习次数",-1)),(0,r.Lk)("h3",qe,[(0,r.bF)((0,o.R1)(ve.A),{from:0,to:d.value.today_count},null,8,["to"])])]),(0,r.Lk)("div",Se,[(0,r.bF)((0,o.R1)(k._),{size:"24",class:"text-blue-600 dark:text-blue-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(be.A))]),_:1})])])]),_:1})),[[a]]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:200}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Te,[(0,r.Lk)("div",null,[t[2]||(t[2]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本周学习次数",-1)),(0,r.Lk)("h3",Xe,[(0,r.bF)((0,o.R1)(ve.A),{from:0,to:d.value.week_count},null,8,["to"])])]),(0,r.Lk)("div",Oe,[(0,r.bF)((0,o.R1)(k._),{size:"24",class:"text-green-600 dark:text-green-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(ge.A))]),_:1})])])]),_:1})),[[a]]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:300}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Ke,[(0,r.Lk)("div",null,[t[3]||(t[3]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本月学习次数",-1)),(0,r.Lk)("h3",Ne,[(0,r.bF)((0,o.R1)(ve.A),{from:0,to:d.value.month_count},null,8,["to"])])]),(0,r.Lk)("div",Ue,[(0,r.bF)((0,o.R1)(k._),{size:"24",class:"text-purple-600 dark:text-purple-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(he.A))]),_:1})])])]),_:1})),[[a]])]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:400}},title:"近7天学习趋势",class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1},{"header-extra":(0,r.k6)(()=>[...t[4]||(t[4]=[(0,r.Lk)("div",{class:"flex items-center gap-2"},[(0,r.Lk)("span",{class:"w-3 h-3 rounded-full bg-primary"}),(0,r.Lk)("span",{class:"text-xs text-gray-500"},"本数据实时更新")],-1)])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",Ve,[(0,r.bF)((0,o.R1)(ye.Ay),{ref_key:"chartRef",ref:i,class:"chart",option:m.value,autoresize:"",loading:s.value},null,8,["option","loading"])],512)]),_:1})),[[a]])])}}};const He=(0,ce.A)(Be,[["__scopeId","data-v-5304782a"]]);var Me=He,De=a(55129);const Ge=[{path:"/login-required",name:"login-required",component:()=>Promise.all([a.e(913),a.e(62),a.e(117)]).then(a.bind(a,95117))},{path:"/",component:me,children:[{path:"",name:"home",component:Me},{path:"about",name:"about",component:()=>a.e(594).then(a.bind(a,51144))},{path:"/word",name:"word-detail",component:()=>Promise.all([a.e(913),a.e(259),a.e(410),a.e(868)]).then(a.bind(a,73868))},{path:"/dict",name:"dict",component:()=>Promise.all([a.e(205),a.e(387)]).then(a.bind(a,71387))},{path:"/favorite",name:"favorite",component:()=>a.e(143).then(a.bind(a,95524))},{path:"/search",name:"search",component:()=>Promise.all([a.e(913),a.e(67)]).then(a.bind(a,46067))},{path:"/check",name:"check",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(410),a.e(205),a.e(938)]).then(a.bind(a,67686))},{path:"/guess",name:"guess",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(765)]).then(a.bind(a,75765))},{path:"/note",name:"note",component:()=>Promise.all([a.e(913),a.e(150),a.e(553)]).then(a.bind(a,23553))},{path:"/learn",name:"learn",component:()=>a.e(933).then(a.bind(a,61933))},{path:"/list_detail",name:"list_detail",component:()=>Promise.all([a.e(259),a.e(223)]).then(a.bind(a,53223))},{path:"/lists",name:"lists",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(410),a.e(78)]).then(a.bind(a,27078))},{path:"/passage",name:"passage",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(259),a.e(493),a.e(828)]).then(a.bind(a,8508))}]}],Qe=(0,b.aE)({history:(0,b.LA)("/"),routes:Ge}),Ye=e=>{const{dialog:t}=(0,g.e)(["dialog"]);t.error({title:"您的账号已被封禁!",content:()=>(0,r.h)("div",[(0,r.h)("div",{style:"margin-bottom: 8px"},"3秒后自动退出登录..."),(0,r.h)("div",{style:"font-size: 12px; color: gray;"},"如有疑问,请及时联系网站管理员")]),closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:null}),setTimeout(()=>{t.destroyAll();const a="localhost"===window.location.hostname?"localhost":"wh.ember.ac.cn";M.A.remove("auth_token",{domain:a}),M.A.remove("cb_token",{domain:a}),De.A.commit("setToken",""),De.A.commit("setUserInfo",null),e.push({name:"login-required"})},3e3)};Qe.beforeEach(async(e,t,a)=>{if("login-required"===e.name)return void a();const n=M.A.get("auth_token");if(n)if(De.A.getters.token||De.A.commit("setToken",n),De.A.getters.userInfo)De.A.getters.userInfo?.detail?.banned&&Ye(Qe),a();else try{await De.A.dispatch("fetchUserInfo"),De.A.getters.userInfo?.detail?.banned&&Ye(Qe),a()}catch(r){M.A.remove("auth_token"),a({name:"login-required"})}else a({name:"login-required"})});var $e=Qe,Je=a(12424);(0,n.Ef)(f).use(De.A).use($e).use(Je.uy).mount("#app")}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,a),o.exports}a.m=e,function(){var e=[];a.O=function(t,n,r,o){if(!n){var l=1/0;for(c=0;c=o)&&Object.keys(a.O).every(function(e){return a.O[e](n[i])})?n.splice(i--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,n){return a.f[n](e,t),t},[]))}}(),function(){a.u=function(e){return"js/"+(594===e?"about":e)+"."+{62:"97b91111",67:"c5181ab8",78:"f13937b1",117:"1e169a6a",143:"81f28fac",150:"49b65dd0",205:"5e1a6eef",223:"2a258d5f",259:"4d766dbd",387:"2c1359c2",410:"5d08c1a8",493:"2428ffad",553:"3921e97f",594:"e8da17fa",765:"fbd42649",828:"f2eb34f0",868:"9ae31e3b",913:"57fbc7fd",933:"be643a77",938:"77996131"}[e]+".js"}}(),function(){a.miniCssF=function(e){return"css/"+(594===e?"about":e)+"."+{67:"91d1e5b7",78:"e7bcbc26",143:"8861eb94",223:"9de559c7",387:"c1c3debd",553:"d3b36629",594:"29136f20",765:"3e3d4a68",828:"99b47517",868:"3e4eb23a",933:"55ccfbb8",938:"ea8ed904"}[e]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="wordhelper:";a.l=function(n,r,o,l){if(e[n])e[n].push(r);else{var s,i;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c{const t=r.A.getters.token;return t&&(e.headers["Authorization"]=t),e.url&&e.url.includes("/ai_passage/generate")&&(e.timeout=24e4),e},e=>(console.log(e),Promise.reject(e))),t.A=o},55129:function(e,t,a){var n=a(60782),r=a(35720);t.A=(0,n.y$)({state:{token:"",userInfo:null},getters:{token:e=>e.token,userInfo:e=>e.userInfo},mutations:{setToken(e,t){e.token=t},setUserInfo(e,t){e.userInfo=t}},actions:{fetchUserInfo({commit:e}){return new Promise((t,a)=>{r.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/userinfo/info").then(n=>{const r=n.data;r?(e("setUserInfo",r),t(r)):a(new Error("No user info"))}).catch(e=>{a(e)})})}},modules:{}})},66441:function(e,t,a){var n=a(45130),r=a(56768),o=a(90144),l=a(58075),s=a(22646),i=a(28686),d=a(78597),c=a(3575),u={__name:"App",setup(e){const t=(0,o.KR)(null),a=(0,o.KR)(!1),n={Menu:{borderRadius:"50px",itemHeight:"42px",itemMargin:"4px 8px"}},u=e=>{a.value=e,t.value=e?l.a:null,e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",e?"dark":"light")},m=()=>{u(!a.value)};return(0,r.sV)(()=>{const e=localStorage.getItem("theme");if(e)u("dark"===e);else{const e=window.matchMedia("(prefers-color-scheme: dark)").matches;u(e)}}),(0,r.Gt)("themeContext",{isDark:a,toggleTheme:m}),(e,a)=>{const l=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.Wv)((0,o.R1)(s.A),{theme:t.value,"theme-overrides":n},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(i.A)),(0,r.bF)((0,o.R1)(d.A),null,{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(c.K),null,{default:(0,r.k6)(()=>[(0,r.bF)(l)]),_:1})]),_:1})]),_:1},8,["theme"])}}};const m=u;var f=m,b=(a(44114),a(98728)),g=a(95404),h=a(24232),p=a(60782),v=a(36909),k=a(59856),y=a(33889),x=a(13230),w=a(99310),_=a(4814),A=a(86727),L=a(30284),R=a(36921),E=a(28451),C=a(54880),F=a(6609),j=a(58096),I=a(56714),z=a(93812),P=a(35161),W=a(18169),q=a(95802),S=a(57273),T=a(26961),X=a(29554),O=a(41829),K=a(22695),N=a(82089),U=a(94578),V=a(51415),B=a(55704),H=a(36022),M=a(78704);const D={class:"h-16 flex items-center justify-center border-b border-gray-200 dark:border-gray-800"},G={key:0,class:"flex items-center gap-3 px-4 truncate"},Q={key:1,class:"flex justify-center w-full"},Y={class:"flex items-center gap-4"},$={class:"flex items-center gap-4"},J={class:"flex items-center gap-3 pl-4 border-l border-gray-200 dark:border-gray-700"},Z={class:"text-right hidden sm:block"},ee={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},te={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},ae={key:1,class:"inline-flex items-center px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"},ne={class:"p-4 min-w-[200px] bg-white dark:bg-gray-900 rounded-lg"},re={class:"flex flex-col items-center border-b border-gray-100 dark:border-gray-800 pb-4 mb-2"},oe={class:"text-base font-medium text-gray-900 dark:text-gray-100 mb-2"},le={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},se={key:1,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"},ie={class:"flex flex-col"};var de={__name:"MainLayout",setup(e){const t=(0,p.Pj)(),a=(0,b.rd)(),l=(0,b.lq)(),s=(0,v.s)(),{isDark:i,toggleTheme:d}=(0,r.WQ)("themeContext"),c=(0,o.KR)(!1),u=(0,o.KR)(!1),m=(0,o.KR)(!1),f=()=>{m.value=window.innerWidth<768};(0,r.sV)(()=>{f(),window.addEventListener("resize",f)}),(0,r.hi)(()=>{window.removeEventListener("resize",f)});const g=(0,r.EW)(()=>t.getters.userInfo);function de(e){return()=>(0,r.h)(k._,null,{default:()=>(0,r.h)(e)})}const ce=[{label:"我的数据",key:"home",icon:de(I.A)},{label:"词书",key:"dict",icon:de(z.A)},{label:"生词本",key:"favorite",icon:de(P.A)},{label:"单词搜索",key:"search",icon:de(W.A)},{label:"我的笔记",key:"note",icon:de(q.A)},{label:"我的词单",key:"lists",icon:de(S.A)},{label:"学习记录",key:"learn",icon:de(T.A)},{label:"智能抽查",key:"check",icon:de(X.A)},{label:"猜单词",key:"guess",icon:de(O.A)},{label:"AI 助记短文",key:"passage",icon:de(K.A)},{label:"关于",key:"about",icon:de(N.A)}],ue=(0,r.EW)(()=>l.name),me=e=>{a.push({name:e}),u.value=!1},fe=()=>{s.warning({title:"退出登录",content:"确定要退出登录吗?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{M.A.remove("auth_token",{domain:"localhost"===window.location.hostname?"localhost":"wh.ember.ac.cn"}),M.A.remove("cb_token",{domain:"localhost"===window.location.hostname?"localhost":"wh.ember.ac.cn"}),t.commit("setToken",""),t.commit("setUserInfo",null),a.push({name:"login-required"})}})};return(e,t)=>{const a=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.Wv)((0,o.R1)(y.Ay),{class:"h-screen","has-sider":""},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(x.A),{show:u.value,"onUpdate:show":t[0]||(t[0]=e=>u.value=e),placement:"left",width:240,class:"md:hidden"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(w.A),{"body-content-style":"padding: 0;"},{header:(0,r.k6)(()=>[...t[5]||(t[5]=[(0,r.Lk)("div",{class:"flex items-center gap-2"},[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,r.Lk)("span",{class:"text-lg font-bold text-gray-900 dark:text-white"},"Word Helper")],-1)])]),default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(_.A),{options:ce,value:ue.value,"onUpdate:value":me,class:"custom-menu"},null,8,["value"])]),_:1})]),_:1},8,["show"]),m.value?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.Wv)((0,o.R1)(A.A),{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:240,collapsed:c.value,"show-trigger":"",onCollapse:t[1]||(t[1]=e=>c.value=!0),onExpand:t[2]||(t[2]=e=>c.value=!1),class:"hidden md:block bg-white dark:bg-gray-900 h-screen shadow-sm z-10"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",D,[c.value?((0,r.uX)(),(0,r.CE)("div",Q,[...t[7]||(t[7]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1)])])):((0,r.uX)(),(0,r.CE)("div",G,[...t[6]||(t[6]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1),(0,r.Lk)("h1",{class:"text-xl font-bold text-primary"},"Word Helper",-1)])]))]),(0,r.bF)((0,o.R1)(_.A),{class:"mt-2",collapsed:c.value,"collapsed-width":64,"collapsed-icon-size":22,options:ce,value:ue.value,"onUpdate:value":me},null,8,["collapsed","value"])]),_:1},8,["collapsed"])),(0,r.bF)((0,o.R1)(y.Ay),{class:"h-screen bg-gray-50 dark:bg-gray-950","native-scrollbar":!1},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(L.A),{bordered:"",class:"h-16 px-4 flex items-center justify-between bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-800 shadow-sm z-10 sticky top-0"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Y,[(0,r.Lk)("button",{onClick:t[3]||(t[3]=e=>u.value=!0),class:"md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,r.bF)((0,o.R1)(U.A),{class:"w-6 h-6 text-gray-600 dark:text-gray-300"})]),t[8]||(t[8]=(0,r.Lk)("div",{class:"flex items-center gap-2 md:hidden"},[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,r.Lk)("span",{class:"text-lg font-bold text-gray-800 dark:text-white"},"Word Helper")],-1))]),(0,r.Lk)("div",$,[(0,r.Lk)("button",{onClick:t[4]||(t[4]=(...e)=>(0,o.R1)(d)&&(0,o.R1)(d)(...e)),class:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,o.R1)(i)?((0,r.uX)(),(0,r.Wv)((0,o.R1)(V.A),{key:0,class:"w-5 h-5 text-yellow-500"})):((0,r.uX)(),(0,r.Wv)((0,o.R1)(B.A),{key:1,class:"w-5 h-5 text-gray-600"}))]),(0,r.Lk)("div",J,[(0,r.Lk)("div",Z,[(0,r.Lk)("div",ee,(0,h.v_)(g.value?.detail?.nickname||"Guest"),1),g.value?.detail?.is_vip?((0,r.uX)(),(0,r.CE)("div",te,[...t[9]||(t[9]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,r.Lk)("span",null,"VIP用户",-1)])])):((0,r.uX)(),(0,r.CE)("div",ae," 普通用户 "))]),m.value?((0,r.uX)(),(0,r.Wv)((0,o.R1)(R.Ay),{key:0,trigger:"click",placement:"bottom-end",style:{padding:"0"}},{trigger:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(E.A),{round:"",size:"medium",src:g.value?.detail?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png",class:"cursor-pointer"},null,8,["src"])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",ne,[(0,r.Lk)("div",re,[(0,r.Lk)("div",oe,(0,h.v_)(g.value?.detail?.nickname||"Guest"),1),g.value?.detail?.is_vip?((0,r.uX)(),(0,r.CE)("div",le,[...t[10]||(t[10]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,r.Lk)("span",null,"VIP用户",-1)])])):((0,r.uX)(),(0,r.CE)("div",se," 普通用户 "))]),(0,r.Lk)("div",ie,[(0,r.bF)((0,o.R1)(C.Ay),{quaternary:"",type:"error",onClick:fe,class:"w-full justify-start"},{icon:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(k._),null,{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(H.A))]),_:1})]),default:(0,r.k6)(()=>[t[11]||(t[11]=(0,r.eW)(" 退出登录 ",-1))]),_:1})])])]),_:1})):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.bF)((0,o.R1)(E.A),{round:"",size:"medium",src:g.value?.detail?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png"},null,8,["src"]),(0,r.bF)((0,o.R1)(F.A),{trigger:"hover"},{trigger:(0,r.k6)(()=>[(0,r.Lk)("button",{onClick:fe,class:"ml-2 p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 hover:text-red-500 transition-colors"},[(0,r.bF)((0,o.R1)(H.A),{class:"w-5 h-5"})])]),default:(0,r.k6)(()=>[t[12]||(t[12]=(0,r.eW)(" 退出登录 ",-1))]),_:1})],64))])])]),_:1}),(0,r.bF)((0,o.R1)(j.A),{class:"p-4 md:p-6 bg-gray-50 dark:bg-gray-950","content-style":"min-height: calc(100vh - 64px)"},{default:(0,r.k6)(()=>[(0,r.bF)(a,null,{default:(0,r.k6)(({Component:e})=>[(0,r.bF)(n.eB,{"enter-active-class":"animate__animated animate__fadeIn animate__faster","leave-active-class":"animate__animated animate__fadeOut animate__faster",mode:"out-in"},{default:(0,r.k6)(()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})}}},ce=a(71241);const ue=(0,ce.A)(de,[["__scopeId","data-v-2b338d36"]]);var me=ue,fe=(a(18111),a(61701),a(97387)),be=a(91332),ge=a(2231),he=a(49912),pe=a(42517),ve=a(37006),ke=a(35720),ye=a(60501),xe=a(2043),we=a(75095),_e=a(32685),Ae=a(53708),Le=a(89536),Re=a(5143),Ee=a(40623),Ce=a(92080),Fe=a(56677);const je={class:"home-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},Ie={initial:{opacity:0,y:20},enter:{opacity:1,y:0},class:"mb-8"},ze={class:"text-3xl font-bold text-gray-900 dark:text-white mb-2"},Pe={class:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"},We={class:"flex items-center justify-between"},qe={class:"text-3xl font-bold text-primary mt-1"},Se={class:"p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg"},Te={class:"flex items-center justify-between"},Xe={class:"text-3xl font-bold text-green-600 dark:text-green-400 mt-1"},Oe={class:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg"},Ke={class:"flex items-center justify-between"},Ne={class:"text-3xl font-bold text-purple-600 dark:text-purple-400 mt-1"},Ue={class:"p-3 bg-purple-50 dark:bg-purple-900/20 rounded-lg"},Ve={class:"h-[400px] w-full relative",ref:"chartContainer"};var Be={__name:"HomeView",setup(e){(0,xe.Y)([we.a,_e.a,Ae.a,Le.a,Re.a,Ee.a,Ce.i]);const t=(0,p.Pj)(),a=(0,fe.J)(),{isDark:n}=(0,r.WQ)("themeContext"),l=(0,r.EW)(()=>t.getters.userInfo||t.state.userInfo),s=(0,o.KR)(!1),i=(0,o.KR)(null),d=(0,o.KR)({today_count:0,week_count:0,month_count:0,last_7_days:[]}),c=()=>{const e=i.value?.getEChartsInstance?.();e&&e.resize()},u=async()=>{await(0,r.dY)(),requestAnimationFrame(()=>{c(),requestAnimationFrame(c)})},m=(0,r.EW)(()=>{const e=n.value,t=e?"#e5e7eb":"#374151",a=e?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.05)",r=e?"rgba(31, 41, 55, 0.9)":"rgba(255, 255, 255, 0.9)",o=e?"#374151":"#e5e7eb";return{backgroundColor:"transparent",grid:{left:48,right:20,bottom:28,top:40},tooltip:{trigger:"axis",backgroundColor:r,borderColor:o,textStyle:{color:t},axisPointer:{type:"line",lineStyle:{color:"#6366f1",type:"dashed"}}},xAxis:{type:"category",boundaryGap:!1,data:d.value.last_7_days.map(e=>e.date.slice(5)),axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t,margin:15},splitLine:{show:!0,lineStyle:{color:a}}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t},splitLine:{show:!0,lineStyle:{color:a,type:"dashed"}}},series:[{name:"学习次数",type:"line",smooth:!0,showSymbol:!1,symbolSize:8,itemStyle:{color:"#6366f1",borderWidth:2,borderColor:"#fff"},lineStyle:{width:3,color:new Fe.A(0,0,1,0,[{offset:0,color:"#6366f1"},{offset:1,color:"#818cf8"}])},areaStyle:{color:new Fe.A(0,0,0,1,[{offset:0,color:"rgba(99, 102, 241, 0.2)"},{offset:1,color:"rgba(99, 102, 241, 0)"}])},data:d.value.last_7_days.map(e=>e.count)}]}}),f=async()=>{s.value=!0;try{const e=await ke.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/home/stats");e.data&&(d.value=e.data,await u())}catch(e){console.error("Failed to fetch stats:",e),a.error("获取学习数据失败,请稍后重试")}finally{s.value=!1}},b=()=>{u()},g=()=>{u()},v=()=>{u()};return(0,r.sV)(async()=>{window.addEventListener("pageshow",b),window.addEventListener("orientationchange",g),window.visualViewport?.addEventListener("resize",v),await u(),await f(),document.title="我的数据 - Word Helper"}),(0,r.hi)(()=>{window.removeEventListener("pageshow",b),window.removeEventListener("orientationchange",g),window.visualViewport?.removeEventListener("resize",v)}),(0,r.wB)(()=>d.value.last_7_days.length,()=>{u()}),(0,r.wB)(n,()=>{u()}),(e,t)=>{const a=(0,r.gN)("motion");return(0,r.uX)(),(0,r.CE)("div",je,[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Ie,[(0,r.Lk)("h1",ze," 欢迎回来,"+(0,h.v_)(l.value?.detail?.nickname||"学习者")+" 👋 ",1),t[0]||(t[0]=(0,r.Lk)("p",{class:"text-gray-600 dark:text-gray-400"}," 保持学习节奏,今天也要加油哦! ",-1))])),[[a]]),(0,r.Lk)("div",Pe,[(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:100}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",We,[(0,r.Lk)("div",null,[t[1]||(t[1]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"今日学习次数",-1)),(0,r.Lk)("h3",qe,[(0,r.bF)((0,o.R1)(ve.A),{from:0,to:d.value.today_count},null,8,["to"])])]),(0,r.Lk)("div",Se,[(0,r.bF)((0,o.R1)(k._),{size:"24",class:"text-blue-600 dark:text-blue-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(be.A))]),_:1})])])]),_:1})),[[a]]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:200}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Te,[(0,r.Lk)("div",null,[t[2]||(t[2]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本周学习次数",-1)),(0,r.Lk)("h3",Xe,[(0,r.bF)((0,o.R1)(ve.A),{from:0,to:d.value.week_count},null,8,["to"])])]),(0,r.Lk)("div",Oe,[(0,r.bF)((0,o.R1)(k._),{size:"24",class:"text-green-600 dark:text-green-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(ge.A))]),_:1})])])]),_:1})),[[a]]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:300}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Ke,[(0,r.Lk)("div",null,[t[3]||(t[3]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本月学习次数",-1)),(0,r.Lk)("h3",Ne,[(0,r.bF)((0,o.R1)(ve.A),{from:0,to:d.value.month_count},null,8,["to"])])]),(0,r.Lk)("div",Ue,[(0,r.bF)((0,o.R1)(k._),{size:"24",class:"text-purple-600 dark:text-purple-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(he.A))]),_:1})])])]),_:1})),[[a]])]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(pe.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:400}},title:"近7天学习趋势",class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1},{"header-extra":(0,r.k6)(()=>[...t[4]||(t[4]=[(0,r.Lk)("div",{class:"flex items-center gap-2"},[(0,r.Lk)("span",{class:"w-3 h-3 rounded-full bg-primary"}),(0,r.Lk)("span",{class:"text-xs text-gray-500"},"本数据实时更新")],-1)])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",Ve,[(0,r.bF)((0,o.R1)(ye.Ay),{ref_key:"chartRef",ref:i,class:"chart",option:m.value,autoresize:"",loading:s.value},null,8,["option","loading"])],512)]),_:1})),[[a]])])}}};const He=(0,ce.A)(Be,[["__scopeId","data-v-5304782a"]]);var Me=He,De=a(55129);const Ge=[{path:"/login-required",name:"login-required",component:()=>Promise.all([a.e(913),a.e(62),a.e(117)]).then(a.bind(a,95117))},{path:"/",component:me,children:[{path:"",name:"home",component:Me},{path:"about",name:"about",component:()=>a.e(594).then(a.bind(a,51144))},{path:"/word",name:"word-detail",component:()=>Promise.all([a.e(913),a.e(259),a.e(410),a.e(868)]).then(a.bind(a,73868))},{path:"/dict",name:"dict",component:()=>Promise.all([a.e(205),a.e(387)]).then(a.bind(a,71387))},{path:"/favorite",name:"favorite",component:()=>a.e(143).then(a.bind(a,95524))},{path:"/search",name:"search",component:()=>Promise.all([a.e(913),a.e(67)]).then(a.bind(a,46067))},{path:"/check",name:"check",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(410),a.e(205),a.e(253)]).then(a.bind(a,19085))},{path:"/guess",name:"guess",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(765)]).then(a.bind(a,75765))},{path:"/note",name:"note",component:()=>Promise.all([a.e(913),a.e(150),a.e(553)]).then(a.bind(a,23553))},{path:"/learn",name:"learn",component:()=>a.e(933).then(a.bind(a,61933))},{path:"/list_detail",name:"list_detail",component:()=>Promise.all([a.e(259),a.e(223)]).then(a.bind(a,53223))},{path:"/lists",name:"lists",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(410),a.e(78)]).then(a.bind(a,27078))},{path:"/passage",name:"passage",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(259),a.e(493),a.e(828)]).then(a.bind(a,8508))}]}],Qe=(0,b.aE)({history:(0,b.LA)("/"),routes:Ge}),Ye=e=>{const{dialog:t}=(0,g.e)(["dialog"]);t.error({title:"您的账号已被封禁!",content:()=>(0,r.h)("div",[(0,r.h)("div",{style:"margin-bottom: 8px"},"3秒后自动退出登录..."),(0,r.h)("div",{style:"font-size: 12px; color: gray;"},"如有疑问,请及时联系网站管理员")]),closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:null}),setTimeout(()=>{t.destroyAll();const a="localhost"===window.location.hostname?"localhost":"wh.ember.ac.cn";M.A.remove("auth_token",{domain:a}),M.A.remove("cb_token",{domain:a}),De.A.commit("setToken",""),De.A.commit("setUserInfo",null),e.push({name:"login-required"})},3e3)};Qe.beforeEach(async(e,t,a)=>{if("login-required"===e.name)return void a();const n=M.A.get("auth_token");if(n)if(De.A.getters.token||De.A.commit("setToken",n),De.A.getters.userInfo)De.A.getters.userInfo?.detail?.banned&&Ye(Qe),a();else try{await De.A.dispatch("fetchUserInfo"),De.A.getters.userInfo?.detail?.banned&&Ye(Qe),a()}catch(r){M.A.remove("auth_token"),a({name:"login-required"})}else a({name:"login-required"})});var $e=Qe,Je=a(12424);(0,n.Ef)(f).use(De.A).use($e).use(Je.uy).mount("#app")}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,a),o.exports}a.m=e,function(){var e=[];a.O=function(t,n,r,o){if(!n){var l=1/0;for(c=0;c=o)&&Object.keys(a.O).every(function(e){return a.O[e](n[i])})?n.splice(i--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,n){return a.f[n](e,t),t},[]))}}(),function(){a.u=function(e){return"js/"+(594===e?"about":e)+"."+{62:"97b91111",67:"c5181ab8",78:"f13937b1",117:"1e169a6a",143:"81f28fac",150:"49b65dd0",205:"5e1a6eef",223:"2a258d5f",253:"5ce82593",259:"4d766dbd",387:"2c1359c2",410:"5d08c1a8",493:"2428ffad",553:"3921e97f",594:"e8da17fa",765:"fbd42649",828:"f2eb34f0",868:"9ae31e3b",913:"57fbc7fd",933:"be643a77"}[e]+".js"}}(),function(){a.miniCssF=function(e){return"css/"+(594===e?"about":e)+"."+{67:"91d1e5b7",78:"e7bcbc26",143:"8861eb94",223:"9de559c7",253:"6e1ac5b9",387:"c1c3debd",553:"d3b36629",594:"29136f20",765:"3e3d4a68",828:"99b47517",868:"3e4eb23a",933:"55ccfbb8"}[e]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="wordhelper:";a.l=function(n,r,o,l){if(e[n])e[n].push(r);else{var s,i;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c {
try {
const res = await request.post('https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/reply', {
word_id: currentWord.value.id,
- reply: userReply.value
+ reply: userReply.value,
+ mode: config.value.mode
})
if (res.data) { // 注意:axios 直接返回 response,后端结构可能是 { correct, translations } 或者包裹在 code=0 中