github-actions[bot] commited on
Commit
3b3bc67
·
1 Parent(s): 00e4aea

Update from GitHub Actions

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.png filter=lfs diff=lfs merge=lfs -text
37
+ *.webp filter=lfs diff=lfs merge=lfs -text
.output/nitro.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "date": "2025-03-31T05:49:12.451Z",
3
  "preset": "node-server",
4
  "framework": {
5
  "name": "nitro",
 
1
  {
2
+ "date": "2025-04-01T07:10:18.331Z",
3
  "preset": "node-server",
4
  "framework": {
5
  "name": "nitro",
.output/public/assets/@wdns-DyBUtl2Y.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/ToolBar.vue_vue_type_style_index_0_lang-DF5WdeM2.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as e,K as t,a,V as l,w as n,o as s,f as o,v as i,y as c,F as r,a0 as u,z as d,A as p,H as v,a1 as m,R as f,a9 as g,u as h,aa as x,J as y,G as w,n as b,ah as _,I as k,ad as C,B as j}from"./@vue-CfxotJ-S.js";import{m as T}from"./markdown-6PNN04BW.js";import{s as B,b as $,Y as R,I as S,Z as z,_ as M,E,c as V,j as A,m as H,K as q,e as L}from"./tdesign-vue-next-BiEwLJDx.js";import{c as O,ad as I,v as U,k as D,Z as P,a5 as Y,af as F}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{_ as K,b as N,t as W,f as Z,q as G}from"./mermaid-render-DYiT7KKL.js";import{a as J}from"./ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js";import{U as X}from"./@wdns-DyBUtl2Y.js";import{v as Q}from"./uuid-_R2nDvl_.js";import{a as ee}from"./main-BVjjoCN0.js";const te={class:"markdown-body"},ae={class:"think-summary"},le=["innerHTML"],ne=["innerHTML"],se={class:"flex justify-end mt-2 gap-5"},oe={key:0,class:"tdesign-image-viewer-wrapper flex flex-wrap gap-6"},ie={key:0,class:"tdesign-image-viewer__error tdesign-image-viewer__ui-image tdesign-image-viewer__base"},ce={class:"tdesign-image-viewer__error--content"},re={class:"tdesign-image-viewer__ui-image tdesign-image-viewer__base"},ue=["src","onError"],de=["onClick"],pe={class:"absolute left-1 top-1 max-w-[75%]"},ve=["title"],me=K(e({__name:"AssistantContent",props:{content:{type:Object},isEditing:{type:Boolean,default:!1}},emits:["save","cancel"],setup(e,{emit:_}){const k=t([!1,!1,!1,!1]),C=t([!1,!1,!1,!1]),j=e,S=a(""),z=a(""),M=a(!1),E=a(!1);let V=null,A=null;const H=async()=>{j.content.think&&(V&&clearTimeout(V),V=window.setTimeout((async()=>{try{M.value=!0,S.value=await T.render(j.content.think||"")}catch(e){}finally{M.value=!1}}),100))},q=async()=>{j.content.text&&(A&&clearTimeout(A),A=window.setTimeout((async()=>{try{E.value=!0,z.value=await T.render(j.content.text||"")}catch(e){}finally{E.value=!1}}),100))};l((()=>{V&&clearTimeout(V),A&&clearTimeout(A)})),n((()=>j.content.text),(()=>{q()})),n((()=>j.content.think),(()=>{H()})),s((()=>{j.content.text&&!z.value&&q(),j.content.think&&!S.value&&H()}));const L=o((()=>j.content.images.map((e=>e.content||e.url)))),P=_,Y=a(j.content.text),F=()=>{P("save",Y.value)},K=()=>{Y.value=j.content.text,P("cancel")},N=(e,t)=>{},W=a(null);return n((()=>j.isEditing),(e=>{e&&(Y.value=j.content.text,b((()=>{W.value.$el.querySelector("textarea").focus()})))})),(t,a)=>{const l=B,n=$,s=R;return c(),i(r,null,[u(p("div",te,[u(p("details",null,[p("summary",ae,v(e.content.text?"查看 AI 思考过程":"思考中..."),1),p("div",{class:"think-process assistant-content",innerHTML:S.value},null,8,le)],512),[[m,e.content.think]]),p("div",{innerHTML:z.value,class:"assistant-content"},null,8,ne)],512),[[m,(e.content.text||e.content.think)&&!e.isEditing]]),u(p("div",null,[f(l,{ref_key:"textareaRef",ref:W,modelValue:Y.value,"onUpdate:modelValue":a[0]||(a[0]=e=>Y.value=e),autosize:{minRows:5,maxRows:20},onBlur:N},null,8,["modelValue"]),p("div",se,[f(n,{shape:"circle",size:"medium",onClick:K},{default:g((()=>[f(h(O),{slot:"icon"})])),_:1}),f(n,{shape:"circle",size:"medium",onClick:F},{default:g((()=>[f(h(I),{slot:"icon"})])),_:1})])],512),[[m,e.content.text&&e.isEditing]]),L.value.length>0?(c(),i("div",oe,[(c(!0),i(r,null,x(j.content.images,((e,t)=>(c(),i("div",{key:t,class:"min-w-44 min-h-44"},[C[t]?(c(),i("div",ie,[p("div",ce,[f(h(U),{name:"image-error",size:"2em"}),a[1]||(a[1]=p("div",null,"图片无法显示",-1))])])):(c(),y(s,{key:1,visible:k[t],images:L.value,"default-index":t,"close-on-overlay":"",onClose:e=>(e=>{k[e]=!1})(t)},{trigger:g((()=>[p("div",re,[p("img",{alt:"test",src:e.content||e.url,class:"tdesign-image-viewer__ui-image--img",onError:e=>(e=>{C[e]=!0})(t)},null,40,ue),p("div",{class:"tdesign-image-viewer__ui-image--hover",onClick:e=>(e=>{k[e]=!0})(t)},[p("span",null,[f(h(D),{size:"1.4em"}),a[2]||(a[2]=w(" 预览 "))])],8,de),p("div",pe,[p("div",{class:"text-black bg-white bg-opacity-75 p-1 rounded-2xl text-xs truncate",title:e.model},v(e.model),9,ve)])])])),_:2},1032,["visible","images","default-index","onClose"]))])))),128))])):d("",!0)],64)}}}),[["__scopeId","data-v-19255ef7"]]),fe={key:0,class:"toggle-button-container"},ge={key:1},he={class:"flex justify-end mt-2 gap-5"},xe=K(e({__name:"UserContent",props:{content:{type:Object},isEditing:{type:Boolean,default:!1},maxHeight:{type:Number,default:300}},emits:["save","cancel"],setup(e,{emit:t}){_((e=>({"2702f56a":l.maxHeight+"px"})));const l=e,x=o((()=>[...l.content.files,...l.content.images])),y=t,C=a(l.content.text),j=a(null),T=a(!0),R=a(!1),z=a(!1),M=()=>{if(j.value){const e=j.value.scrollHeight;R.value=e>l.maxHeight}},E=()=>{T.value=!T.value};s((()=>{b((async()=>{M()})),window.addEventListener("resize",M)})),n((()=>l.content.text),(()=>{b((()=>{M()}))}));const V=()=>{y("save",C.value)},A=()=>{C.value=l.content.text,y("cancel")},H=(e,t)=>{},q=a(null);return n((()=>l.isEditing),(e=>{e&&(C.value=l.content.text,b((()=>{q.value.$el.querySelector("textarea").focus()})))})),(t,a)=>{const l=S,n=$,s=B;return c(),i(r,null,[f(J,{files:x.value,showCloseButton:!1,class:"mb-2"},null,8,["files"]),e.isEditing?d("",!0):(c(),i("div",{key:0,class:"content-container relative",onMouseenter:a[0]||(a[0]=e=>z.value=!0),onMouseleave:a[1]||(a[1]=e=>z.value=!1)},[p("div",{ref_key:"contentRef",ref:j,class:k(["user-content whitespace-pre-wrap break-words",{"content-collapsed":T.value&&R.value}])},v(e.content.text),3),R.value?u((c(),i("div",fe,[f(n,{size:"small",variant:"text",onClick:E,class:"toggle-button"},{icon:g((()=>[f(l,{name:T.value?"chevron-down":"chevron-up"},null,8,["name"])])),default:g((()=>[w(v(T.value?"展开":"收起")+" ",1)])),_:1})],512)),[[m,z.value]]):d("",!0)],32)),e.isEditing?(c(),i("div",ge,[f(s,{ref_key:"textareaRef",ref:q,modelValue:C.value,"onUpdate:modelValue":a[2]||(a[2]=e=>C.value=e),autosize:{minRows:2,maxRows:20},onBlur:H},null,8,["modelValue"]),p("div",he,[f(n,{size:"large",shape:"circle",variant:"text",onClick:A},{default:g((()=>[f(h(O),{slot:"icon"})])),_:1}),f(n,{size:"large",shape:"circle",variant:"text",onClick:V},{default:g((()=>[f(h(I),{slot:"icon"})])),_:1})])])):d("",!0)],64)}}}),[["__scopeId","data-v-b8afd07d"]]),ye=e({__name:"CodeRenderer",props:{blocks:{type:Array,required:!0}},setup(e){const t=e,l=a(),r=o((()=>t.blocks.every((e=>e.complete))));const u=o((()=>{var e,a,l,n,s,o;if(!r.value)return"";const i=(null==(e=t.blocks.find((e=>"html"===e.language)))?void 0:e.code)||"",{head:c,body:u}=function(e){const t=e.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i),a=e.match(/<body\b[^>]*>([\s\S]*?)<\/body>/i);return{head:t?t[1].trim():"",body:a?a[1].trim():""}}(i),d=(null==(a=t.blocks.find((e=>"css"===e.language)))?void 0:a.code)||"",p=(null==(l=t.blocks.find((e=>"js"===e.language||"javascript"===e.language||"typescript"===e.language)))?void 0:l.code)||"";null==(n=t.blocks.find((e=>"typescript"===e.language)))||n.code;const v=(null==(s=t.blocks.find((e=>"jsx"===e.language)))?void 0:s.code)||"",m=(null==(o=t.blocks.find((e=>"vue"===e.language)))?void 0:o.code)||"";if(v){const e=v.match(/export default (\w+);/),t=e?e[1]:null;return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="utf-8" />\n <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com; style-src 'unsafe-inline';">\n <style>${d}</style>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.24.6/babel.min.js"><\/script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/umd/react.production.min.js"><\/script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/umd/react-dom.production.min.js"><\/script>\n ${c}\n </head>\n\n <body>\n <div id="app"></div>\n ${u}\n <script type="text/babel">\n ${function(e){const t=/import\s+(?:(\w+)\s*,?\s*)?(?:{([^}]+)})?\s+from\s+['"]react['"];?/g,a=/import\s+['"]([^'"]+\.css)['"];?/g,l=/import\s+\w+\s+from\s+['"]react-dom['"];?/g,n=/ReactDOM\.render\([^)]*\);?/g;let s,o=e,i="";const c=new Set;for(;null!==(s=t.exec(e));)s[1]&&(i=s[1].trim()),s[2]&&s[2].split(",").forEach((e=>c.add(e.trim())));o=o.replace(t,""),o=o.replace(a,""),o=o.replace(l,""),o=o.replace(n,"");let r="";r+=i?`const ${i} = window.React;\n`:"const React = window.React;\n";c.size>0&&(r+=`const { ${Array.from(c).join(", ")} } = React;\n`);return(r+o).replace(/export default \w+;\s*$/,"")}(v)}\n ReactDOM.render(<${t} />, document.getElementById('app'))\n <\/script>\n </body>\n </html>\n `}if(m){const e=m.match(/<template>([\s\S]*)<\/template>/),t=m.match(/<script\s*(setup)?[^>]*>([\s\S]*)<\/script>/),a=m.match(/<style[^>]*>([\s\S]*)<\/style>/),l=e?e[1].trim():"",n=t?t[2].trim():"",s=t&&"setup"===t[1],o=a?a[1].trim():"";let i=n;if(s)i=i.replace(/import\s+.*from\s+['"].*['"]/g,""),i=`return {\n ${i}\n }`;else{const e=i.match(/export\s+default\s*{([\s\S]*)}/);e&&(i=e[1].trim())}return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="utf-8" />\n <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline' 'unsafe-eval' https://unpkg.com; style-src 'unsafe-inline';">\n <script src="https://unpkg.com/vue@3/dist/vue.global.js"><\/script>\n <style>${o}</style>\n ${c}\n </head>\n <body>\n <div id="app">\n ${l}\n </div>\n ${u}\n <script>\n const { createApp, ref, reactive, computed, onMounted } = Vue;\n \n const app = createApp({\n ${s?"setup() {":""}\n ${i}\n ${s?"}":""}\n });\n \n app.mount('#app');\n <\/script>\n </body>\n </html>\n `}return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="utf-8" />\n <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline'; style-src 'unsafe-inline';">\n <style>${d}</style>\n ${c}\n </head>\n <body>\n ${u}\n <script>\n ${p}\n <\/script>\n </body>\n </html>\n `}));return n(u,(e=>{l.value&&(l.value.srcdoc=e)})),s((()=>{l.value&&(l.value.srcdoc=u.value)})),(e,t)=>(c(),i("iframe",{ref_key:"iframeRef",ref:l,sandbox:"allow-scripts",style:{width:"100%",height:"100%",border:"none"}},null,512))}}),we={class:"h-full w-full relative"},be=e({__name:"CodeBlocks",props:{content:{type:String,required:!0},closeBtn:{type:[Function,null],default:null}},setup(e){const t=e,l=a(0),s=a([]);n((()=>t.content),(e=>{s.value=function(e){const t=/(?:^|\n)```(?:(html|css|js|javascript|typescript|jsx|vue)?.*)\n([\s\S]*?)(?:```|$)/g;return[...e.matchAll(t)].map((e=>({language:e[1]||"javascript",code:e[2].trim(),complete:e[0].endsWith("```")})))}(t.content);const a=s.value.every((e=>e.complete));l.value=a?-1:0}),{immediate:!0});const o=()=>{t.closeBtn()};return(t,a)=>{const n=M,u=z,p=$;return c(),i("div",we,[f(u,{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),class:"h-full overflow-auto flex flex-col artifact"},{default:g((()=>[f(n,{value:-1,label:"preview"},{default:g((()=>[f(ye,{blocks:s.value,class:"rounded-lg"},null,8,["blocks"])])),_:1}),(c(!0),i(r,null,x(s.value,((e,t)=>(c(),y(n,{value:t,label:e.language},{default:g((()=>[f(h(X),{highlightjs:"",code:e.code,lang:e.language,theme:!1,class:"code-block h-full"},null,8,["code","lang"])])),_:2},1032,["value","label"])))),256))])),_:1},8,["modelValue"]),e.closeBtn?(c(),y(p,{key:0,size:"small",variant:"outline",onClick:o,class:"absolute right-0 top-3 z-50"},{default:g((()=>[f(h(O),{slot:"icon"})])),_:1})):d("",!0)])}}}),_e={class:"flex flex-row items-center p-2"},ke={class:"flex flex-col gap-2 p-2"},Ce={class:"max-h-32 bg-color-page overflow-auto whitespace-pre-line scrollbar p-2"},je=["innerHTML"],Te={class:"flex flex-row justify-end gap-2"},Be={class:"flex flex-col gap-2 p-2"},$e={class:"flex flex-grow items-center gap-2 relative"},Re={class:"flex flex-col gap-2 p-2"},Se={class:"max-h-72 scrollbar overflow-y-auto overflow-x-hidden bordered p-2 shadow-sm"},ze=e({__name:"ToolBar",props:{parent:Object},setup(e,{expose:t}){const l=N(),d=ee(),_=e,k=a({top:"0px",left:"0px"}),R=a(!1),S=a(null),z=a(null),M=a(""),I=()=>{if(!S.value||!_.parent)return;const e=S.value,t=_.parent,a=t.getBoundingClientRect(),l=e.getBoundingClientRect();let n=parseFloat(k.value.left);const s=a.width-l.width;n>s&&(n=s),n<0&&(n=0);let o=parseFloat(k.value.top);const i=l.height+o,c=a.height;i>c&&(o=Math.max(0,c-l.height));const r=t.scrollTop;o<r&&(o=r),k.value={top:`${o}px`,left:`${n}px`}},U=a(!1),D=a(!1),K=a(""),J=()=>{R.value=!1,U.value=!1},X=()=>{const e=window.getSelection();navigator.clipboard.writeText(e.toString()),J(),L.success(W("components.toolBar.copySuccessMsg"))},te=()=>{navigator.clipboard.writeText(M.value),J(),L.success(W("components.toolBar.copySuccessMsg"))},ae=o((()=>l.toolBarButtons.filter((e=>e.name&&e.show)))),le=(e,t)=>{const{e:a}=t;if("Enter"===a.key){if(a.shiftKey)return;a.preventDefault(),ce()}};let ne="",se=null,oe=a("");const ie=()=>{he(),D.value=!0,se=window.getSelection(),oe.value=se.toString(),b((()=>{I()}))},ce=async()=>{const e=oe.value,t=K.value;ne=t.includes("{{text}}")?t.replace("{{text}}",e):e?e+"\r\n"+t:t,D.value=!1,await re()};async function re(){const e=_.parent,t=S.value.getBoundingClientRect().left-e.getBoundingClientRect().left;he(),U.value=!0,b((()=>{const a=e.getBoundingClientRect(),l=S.value.getBoundingClientRect();let n=t;const s=a.width-l.width;if(n>s&&(n=s),n<0&&(n=0),se&&se.rangeCount>0){const t=se.getRangeAt(0).getBoundingClientRect();let s=t.top+e.scrollTop-a.top-52;const o=e.scrollTop;s<o&&(s=o),s+l.height>a.height+e.scrollTop&&(s=t.bottom+e.scrollTop-a.top+10,s+l.height>a.height+e.scrollTop&&(s=Math.max(o,a.height+e.scrollTop-l.height))),k.value={top:`${s}px`,left:`${n}px`}}})),await ue()}const ue=async()=>{l.assistModel?(M.value=W("components.toolBar.handing"),await Z(ne,(e=>{M.value=e,b((()=>{I()}))}))):L.error(W("components.toolBar.noAssistModel"))},de=a(!1),pe=async()=>{he(),de.value=!0,oe.value=window.getSelection().toString(),b((()=>{I()}))},ve=a(""),me=d.list,fe=async()=>{de.value=!1;const e=oe.value,t={id:Q(),title:e,time:(new Date).getTime(),conversationId:"",conversationName:"",conversationAvatar:"",chats:[],notes:[oe.value]};if(d.add(t),L.success(W("pages.conversation.favorite_success")),l.assistModel){const a=W("pages.conversation.extract_core_conversation",{question:e,answer:""});await G(a,(e=>{t.title=e,t.title=t.title.replaceAll("###",""),t.title=t.title.trim(),d.update(t)}))}},ge=async()=>{if(!ve.value)return void L.warning("需要先选中笔记");de.value=!1;const e=me.find((e=>e.id==ve.value));e.notes.push(oe.value),d.update(e),L.success(W("pages.conversation.favorite_success"))},he=()=>{U.value=!1,D.value=!1,K.value="",de.value=!1,ve.value=""};return n([M,D,de],(()=>{(U.value||D.value||de.value)&&b((()=>{I()}))}),{deep:!0}),s((()=>{if(_.parent){new ResizeObserver((()=>{R.value&&I()})).observe(_.parent),_.parent.addEventListener("scroll",(()=>{R.value&&I()}))}})),t({showToolbox:()=>{const e=window.getSelection();e.toString().trim()&&(R.value=!0,he(),b((()=>{const t=e.getRangeAt(0).getBoundingClientRect(),a=_.parent,l=a.getBoundingClientRect(),n=S.value.getBoundingClientRect();let s=t.left+t.width/2-n.width/2+a.scrollLeft-l.left;const o=l.width-n.width;s>o&&(s=o),s<0&&(s=0);let i=t.top+a.scrollTop-l.top-52;const c=a.scrollTop;i<c&&(i=c),i+n.height>l.height+a.scrollTop&&(i=t.bottom+a.scrollTop-l.top+10,i+n.height>l.height+a.scrollTop&&(i=Math.max(c,l.height+a.scrollTop-n.height))),k.value={top:`${i}px`,left:`${s}px`}})))},hideToolbox:J}),(e,t)=>{const a=$,l=E,n=B,s=q,o=H,d=A,b=V;return u((c(),i("div",{ref_key:"selectToolbox",ref:S,style:j(k.value),class:"z-50 absolute bg-color-container bordered rounded-xl shadow-md flex flex-col max-w-80",onMouseup:t[2]||(t[2]=C((()=>{}),["stop"])),onMousedown:t[3]||(t[3]=C((()=>{}),["stop"]))},[p("div",_e,[(c(!0),i(r,null,x(ae.value,(e=>(c(),i(r,null,[f(a,{onClick:t=>(async e=>{se=window.getSelection(),oe.value=se.toString(),ne=e.prompt.replace("{{text}}",oe.value),await re()})(e),size:"small",variant:"text"},{default:g((()=>[w(v(e.name),1)])),_:2},1032,["onClick"]),f(l,{layout:"vertical"})],64)))),256)),f(a,{size:"small",variant:"text",onClick:ie},{default:g((()=>[w(v(e.$t("components.toolBar.dialog")),1)])),_:1}),f(l,{layout:"vertical"}),f(a,{size:"small",variant:"text",onClick:pe},{default:g((()=>[w(v(e.$t("components.toolBar.faviorite")),1)])),_:1}),f(l,{layout:"vertical"}),f(a,{size:"small",variant:"text",onClick:X},{default:g((()=>[w(v(e.$t("components.toolBar.copy")),1)])),_:1})]),u(p("div",ke,[p("pre",Ce,v(h(ne)),1),p("div",{ref_key:"toolResultContent",ref:z,class:"markdown-body max-h-64 overflow-auto scrollbar",innerHTML:h(T).renderSync(M.value)},null,8,je),p("div",Te,[f(a,{size:"small",variant:"outline",onClick:ue},{default:g((()=>[f(h(P),{slot:"icon"})])),_:1}),f(a,{size:"small",variant:"outline",onClick:te},{default:g((()=>[f(h(Y),{slot:"icon"})])),_:1}),f(a,{size:"small",variant:"outline",onClick:J},{default:g((()=>[f(h(O),{slot:"icon"})])),_:1})])],512),[[m,U.value]]),u(p("div",Be,[u(p("pre",{class:"max-h-32 bg-color-page overflow-auto whitespace-pre-line scrollbar p-2"},v(h(oe).trim()),513),[[m,h(oe).trim()]]),p("div",$e,[f(n,{modelValue:K.value,"onUpdate:modelValue":t[0]||(t[0]=e=>K.value=e),onKeypress:le},null,8,["modelValue"]),f(a,{size:"small",shape:"circle",variant:"outline",onClick:ce,class:"absolute bottom-1 right-1"},{default:g((()=>[f(h(F),{slot:"icon"})])),_:1})])],512),[[m,D.value]]),u(p("div",Re,[u(p("pre",{class:"max-h-32 bg-color-page overflow-auto whitespace-pre-line scrollbar p-2"},v(h(oe).trim()),513),[[m,h(oe).trim()]]),f(a,{onClick:fe,theme:"default",variant:"outline"},{default:g((()=>t[4]||(t[4]=[w("创建新的笔记")]))),_:1}),f(a,{onClick:ge,theme:"default",variant:"outline"},{default:g((()=>t[5]||(t[5]=[w("添加到笔记")]))),_:1}),p("div",Se,[f(b,{modelValue:ve.value,"onUpdate:modelValue":t[1]||(t[1]=e=>ve.value=e)},{default:g((()=>[f(d,{gutter:[16,16]},{default:g((()=>[(c(!0),i(r,null,x(h(me),(e=>(c(),y(o,{span:12},{default:g((()=>[f(s,{value:e.id,class:"grid grid-flow-col auto-cols-max align-middle fav-radio fav-radio-toolbar"},{default:g((()=>[w(v(e.title),1)])),_:2},1032,["value"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["modelValue"])])],512),[[m,de.value]])],36)),[[m,R.value]])}}});export{me as A,xe as U,be as _,ze as a};
.output/public/assets/assets-t-logo-CxwPZnhN.png CHANGED

Git LFS Details

  • SHA256: 32fed4cc15ec0c738e7f344da8abba13527768e094d08474c2a888571c9fe65f
  • Pointer size: 129 Bytes
  • Size of remote file: 5.23 kB
.output/public/assets/chat-DJXGKSt5.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as e,f as t,a,w as l,o,v as n,y as s,F as i,J as c,z as r,R as u,a9 as d,u as v,A as p,H as m,aa as h,G as f,ac as g,ad as _,j as x,a0 as b,I as w,a1 as y,V as j,B as k,n as C}from"./@vue-CfxotJ-S.js";import{c as z,e as M,m as A,t as I,_ as V,b as S,h as T,u as E,j as R,r as U,k as P,n as H,o as q,q as B,g as O}from"./mermaid-render-DYiT7KKL.js";import{u as N,a as $}from"./vue-router-DKqWD4MR.js";import{c as D,_ as W}from"./ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js";import{_ as L}from"./avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js";import{u as F}from"./app-_ksMLlTy.js";import{p as K,q as J,r as G,T as X,b as Y,s as Z,t as Q,u as ee,O as te,A as ae,v as le,w as oe,n as ne,D as se,x as ie,e as ce,P as re,l as ue,y as de,E as ve,G as pe,m as me,J as he,c as fe,j as ge,K as _e}from"./tdesign-vue-next-BiEwLJDx.js";import{V as xe,W as be,X as we,Y as ye,Z as je,$ as ke,a0 as Ce,a1 as ze,a2 as Me,a3 as Ae,_ as Ie,a4 as Ve,a5 as Se,a6 as Te,a7 as Ee,a8 as Re,E as Ue,n as Pe}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{v as He}from"./uuid-_R2nDvl_.js";import{u as qe,a as Be}from"./main-BVjjoCN0.js";import{U as Oe,A as Ne,_ as $e,a as De}from"./ToolBar.vue_vue_type_style_index_0_lang-DF5WdeM2.js";import{d as We}from"./vuedraggable-DAEPkKhD.js";import{g as Le}from"./lyihub-zLFv36Ly.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./mermaid-r27wrvTx.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./lodash-es-RhymR7yg.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./@vueuse-B4dz7nOv.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./mammoth-Cw8VHd7C.js";import"./xlsx-DB6BMndo.js";import"./pdfjs-dist-8WFUNQXM.js";import"./@dicebear-JcnEMRoc.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vue-BIpqWpgL.js";import"./markdown-6PNN04BW.js";import"./markdown-it-link-attributes-DRKqjf49.js";import"./markdown-it-C8SkdHr7.js";import"./mdurl-CDXpswLz.js";import"./uc.micro-CLkLCS2f.js";import"./entities-D7HTx9ov.js";import"./linkify-it-LcVOBuC5.js";import"./punycode.js-Bmr3cAX8.js";import"./@traptitech-xv_Vpjqh.js";import"./katex-Vs6-m9jZ.js";import"./markdown-it-highlightjs-6zEPG1Qy.js";import"./highlight.js-ato5kCvT.js";import"./@wdns-DyBUtl2Y.js";import"./ua-parser-js--QiuJfYt.js";const Fe={key:0,class:"flex flex-col items-center justify-center mb-[var(--td-comp-margin-xxl)] gap-3"},Ke={class:"text-lg font-bold"},Je={class:"overflow-y-auto overflow-x-hidden max-h-60 custom-scrollbar"},Ge={class:"flex"},Xe={class:"flex flex-row justify-between gap-3 w-full"},Ye=V(e({__name:"ConversationDrawer",setup(e){const x=z(),b=t({get:()=>x.showEditorDrawer,set(e){x.showEditorDrawer=e}}),w=()=>{x.showEditorDrawer=!1},y=D(),j=a(null),k=N(),C=()=>{const e=x.find(k.query.id);V.value=e.models.reduce(((e,t)=>(e[t.modelId]=t.showing,e)),{}),j.value={id:e.id,name:e.name,content:e.content,avatar:e.avatar,models:e.models.map((e=>e.modelId)),agentId:e.agentId,saveToAgent:!1,maxContextSize:e.maxContextSize,aspectRatio:e.aspectRatio}},V=a({});l((()=>{var e;return null==(e=j.value)?void 0:e.models}),(e=>{const t=Object.keys(V.value);t.forEach((t=>{e.includes(t)||delete V.value[t]})),e.forEach((e=>{t.includes(e)||(V.value[e]=!1)}))}));const S=t((()=>{if(!j.value)return!1;return Object.values(V.value).filter((e=>e)).length>=F}));l((()=>x.showEditorDrawer),(e=>{e&&C()})),M();const T=t((()=>A.availableModels.value.map((e=>({value:e.id,label:A.getModelItemTitle(e),...e}))))),E=qe(),R=t((()=>{let e=E.find(j.value.agentId);return e=e||E.defaultAgent,e})),U=e=>{j.value.avatar=e},P=()=>{const e=x.find(j.value.id);e.name=j.value.name,e.content=j.value.content,e.avatar=j.value.avatar,e.agentId=j.value.agentId,e.maxContextSize=j.value.maxContextSize,e.aspectRatio=j.value.aspectRatio;const t=[];e.models.forEach((e=>{j.value.models.includes(e.modelId)&&(e.showing=V.value[e.modelId],t.push(e))})),j.value.models.forEach((a=>{e.models.some((e=>e.modelId===a))||t.push({modelId:a,chats:[],startContext:0,apiAgentId:"",apiConversationId:"",apiNote:"",showing:V.value[a],status:{responseWating:!1,chating:!1,stop:!1}})})),e.models=t,j.value.saveToAgent&&(R.value.content=j.value.content),C(),ce.success(I("pages.conversation.save_conversation_success"))},H=a(!1),q=a(""),B=()=>{if(""===q.value.trim())return void ce.warning(I("pages.conversation.enter_agent_name"));const e=He();E.add({id:e,name:q.value,status:!0,content:j.value.content,avatar:j.value.avatar,onboarding:"",isDefault:!1});const t=x.find(j.value.id);j.value.agentId=e,t.agentId=e,H.value=!1,ce.success(I("pages.conversation.create_agent_success"))},O=()=>{j.value.content=R.value.content},$=()=>{j.value.saveToAgent=!j.value.saveToAgent};return o((()=>{x.showEditorDrawer=!1})),(e,t)=>{const a=G,l=J,o=Y,x=X,k=Z,C=Q,z=te,M=ee,E=oe,N=le,D=ae,W=ne,F=K,ce=se,re=ie;return s(),n(i,null,[j.value?(s(),c(ce,{key:0,visible:b.value,"onUpdate:visible":t[7]||(t[7]=e=>b.value=e),size:"408px",footer:!1,header:v(I)("pages.conversation.current_conversation"),"close-btn":!0,class:"",onCloseBtnClick:w},{default:d((()=>[u(F,{ref:"form",data:j.value,"label-width":100,"label-align":"top"},{default:d((()=>[v(y)?r("",!0):(s(),n("div",Fe,[u(L,{ref:"avatarRef",url:j.value.avatar,onUpdate:U},null,8,["url"]),p("h1",Ke,m(v(I)("pages.conversation.agent"))+": "+m(R.value.name),1)])),u(l,{label:v(I)("pages.conversation.conversation_name"),name:"name"},{default:d((()=>[u(a,{modelValue:j.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>j.value.name=e)},null,8,["modelValue"])])),_:1},8,["label"]),u(l,{label:v(I)("pages.conversation.conversation_description"),name:"content",class:"relative"},{default:d((()=>[u(x,{content:v(I)("pages.conversation.rollback_from_agent")},{default:d((()=>[u(o,{shape:"circle",variant:"text",class:"absolute z-50 right-0 top-[-32px]",onClick:O},{default:d((()=>[u(v(xe),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(k,{modelValue:j.value.content,"onUpdate:modelValue":t[1]||(t[1]=e=>j.value.content=e),autosize:{minRows:2,maxRows:5},name:"content"},null,8,["modelValue"])])),_:1},8,["label"]),u(l,{label:v(I)("pages.conversation.context_rounds"),name:"maxContextSize"},{default:d((()=>[u(C,{modelValue:j.value.maxContextSize,"onUpdate:modelValue":t[2]||(t[2]=e=>j.value.maxContextSize=e),inputNumberProps:"",showStep:"",min:0,max:30},null,8,["modelValue"])])),_:1},8,["label"]),u(l,{label:"图片宽高比",name:"aspectRatio"},{default:d((()=>[u(M,{modelValue:j.value.aspectRatio,"onUpdate:modelValue":t[3]||(t[3]=e=>j.value.aspectRatio=e)},{default:d((()=>[u(z,{value:"IMAGE_ASPECT_RATIO_SQUARE",label:"方形 (1:1)"}),u(z,{value:"IMAGE_ASPECT_RATIO_PORTRAIT",label:"竖屏 (9:16)"}),u(z,{value:"IMAGE_ASPECT_RATIO_LANDSCAPE",label:"横屏 (16:9)"}),u(z,{value:"IMAGE_ASPECT_RATIO_PORTRAIT_THREE_FOUR",label:"竖屏 (3:4)"}),u(z,{value:"IMAGE_ASPECT_RATIO_LANDSCAPE_FOUR_THREE",label:"横屏 (4:3)"})])),_:1},8,["modelValue"])])),_:1}),u(l,{label:v(I)("pages.conversation.model"),name:"models"},{default:d((()=>[u(M,{modelValue:j.value.models,"onUpdate:modelValue":t[5]||(t[5]=e=>j.value.models=e),multiple:"",filterable:!v(y)},{valueDisplay:d((({value:e,onClose:a})=>[p("div",Je,[(s(!0),n(i,null,h(e,((e,l)=>(s(),c(N,{key:l,closable:!0,"on-close":({e:e})=>{e.stopPropagation(),a(l)}},{default:d((()=>[u(E,{disabled:S.value&&!V.value[e.value],onClick:t[4]||(t[4]=_((()=>{}),["stop"])),class:"mr-1",size:"small",modelValue:V.value[e.value],"onUpdate:modelValue":t=>V.value[e.value]=t},null,8,["disabled","modelValue","onUpdate:modelValue"]),f(" "+m(e.label),1)])),_:2},1032,["on-close"])))),128))])])),default:d((()=>[(s(!0),n(i,null,h(T.value,(e=>(s(),c(z,{key:e.value,value:e.value,label:e.label},{default:d((()=>[p("div",Ge,[u(D,{size:"20px",class:"mr-1"},{icon:d((()=>[(s(),c(g(v(A).icons[e.type])))])),_:2},1024),f(" "+m(e.label),1)])])),_:2},1032,["value","label"])))),128))])),_:1},8,["modelValue","filterable"])])),_:1},8,["label"]),u(l,null,{default:d((()=>[p("div",Xe,[R.value.isDefault?r("",!0):(s(),c(W,{key:0,onChange:$},{default:d((()=>[f(m(v(I)("pages.conversation.save_to_agent")),1)])),_:1})),u(o,{theme:"primary",type:"submit",onClick:P,class:"flex-1"},{default:d((()=>[f(m(v(I)("pages.conversation.save_conversation")),1)])),_:1})])])),_:1}),u(l,null,{default:d((()=>[u(o,{theme:"primary",type:"submit",onClick:t[6]||(t[6]=e=>H.value=!0),class:"w-full"},{default:d((()=>[f(m(v(I)("pages.conversation.save_as_new_agent")),1)])),_:1})])),_:1})])),_:1},8,["data"])])),_:1},8,["visible","header"])):r("",!0),u(re,{visible:H.value,"onUpdate:visible":t[9]||(t[9]=e=>H.value=e),header:v(I)("pages.conversation.create_new_agent"),"on-confirm":B},{default:d((()=>[u(F,{ref:"form","label-width":100},{default:d((()=>[u(l,{label:v(I)("pages.conversation.agent_name"),name:"name"},{default:d((()=>[u(a,{modelValue:q.value,"onUpdate:modelValue":t[8]||(t[8]=e=>q.value=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},512)])),_:1},8,["visible","header"])],64)}}}),[["__scopeId","data-v-9dfbddf7"]]),Ze={class:"h-full flex flex-col chat-model-container relative"},Qe={class:"cursor-pointer handle p-2 bg-color-container rounded-t-lg shadow-2xl chat-model-header z-20"},et={class:"flex flex-wrap justify-between w-full overflow-x-hidden"},tt={class:"flex gap-1"},at={class:"max-w-[120px]"},lt={class:"model-info flex flex-col gap-2"},ot={class:"max-h-44 overflow-auto no-scrollbar"},nt={class:"flex gap-1 flex-wrap"},st={key:0,class:"flex w-full justify-end items-start flex-row-reverse gap-2 chat-item"},it=["data-index"],ct={class:"flex justify-between overflow-hidden h-[24px]"},rt={class:"flex chat-item-tools gap-2"},ut={class:"user-chat-content p-2 rounded-lg"},dt={class:"w-[24px] h-[24px]"},vt={key:1,class:"flex w-full flex-col gap-2 chat-item"},pt={class:"flex justify-start align-middle items-center gap-2 h-[24px]"},mt={class:"flex flex-row justify-between gap-5"},ht={class:"flex flex-col w-full"},ft=["data-index"],gt={key:0,class:"loader"},_t={key:2,class:"flex gap-5 overflow-x-auto scrollbar p-1"},xt=["onClick"],bt={class:"flex flex-row w-full"},wt={class:"w-12 h-2"},yt=["src"],jt={class:"w-44"},kt={class:"w-full text-ellipsis overflow-hidden text-nowrap"},Ct={class:"text-ellipsis overflow-hidden whitespace-nowrap"},zt={class:"max-h-10 overflow-hidden mt-2"},Mt={class:"h-[24px] mt-1 chat-item-tools"},At={class:"flex justify-end gap-2"},It={key:3,class:"flex justify-center w-full"},Vt={class:"fixed-scroll-buttons"},St=e({__name:"ChatColumn",props:{chatModel:{type:Object},conversation:{type:Object},fullScreenModelId:{type:String,default:""},isSingleModel:{type:Boolean,default:!1}},emits:["stop-chat","extend-model-visible","re-chat","change-size","api-setting-visible","fav-note-visible","clear-chat-context","clear-chat-history","update-scroll-flag"],setup(e,{emit:l}){const j=D(),k=S();N();const C=e,z=a(null);Be(),M();const V=t((()=>C.chatModel.chat.chats));const E=l,R=e=>{E("re-chat",e.model.id)},U=a(-1),P=e=>{U.value=e},H=e=>{V.value[U.value].content.text=e,U.value=-1},q=()=>{U.value=-1},B=t((()=>A.getModelItemTitle(C.chatModel.model))),O=e=>{navigator.clipboard.writeText(e.content.text),ce.success(I("pages.note.noteCopySuccess"))},$=t((()=>{let e="",t="";if(C.chatModel.model.apiBase.startsWith("http"))e=C.chatModel.model.apiBase,t=C.chatModel.model.apiKey;else{let l=T(C.chatModel.model.apiBase||A.dict[C.chatModel.model.type].apiBase,"openai"==C.chatModel.model.type);l=l.replace("/app/","/api/"),l.includes("?")?l+="&":l+="?",l+=`model=${C.chatModel.model.id}`,l+="&",l+=`conversation=${C.conversation.id}`;const o=l.indexOf("?");e=l.substring(0,o)+"/v1/chat/completions",t="oa_"+(a=l.substring(o+1),btoa(a).split("").map((e=>{const t=e.charCodeAt(0);return String.fromCharCode(t+1)})).join(""))}var a;return{apiBase:e,apiKey:t}})),W=t((()=>C.chatModel.model.apiBase.startsWith("http")?"ApiBase":"LocalApi")),L=t((()=>C.chatModel.model.apiBase.startsWith("http")?"ApiKey":"LocalKey")),F=a(!1),K=a("");x((()=>{if(!V.value||0===V.value.length)return;const e=V.value[V.value.length-1];"assistant"===e.role&&(K.value=e.content.text)}));const G=()=>{F.value=!1};async function Z(){await window.ipcRenderer.invoke("refresh-vercel-view")?ce.success("Refresh succeed"):ce.error("Refresh failed")}async function ee(){await window.ipcRenderer.invoke("refresh-coze-com-view")?ce.success("Refresh succeed"):ce.error("Refresh failed")}async function te(){await window.ipcRenderer.invoke("refresh-coze-cn-view")?ce.success("Refresh succeed"):ce.error("Refresh failed")}async function oe(){const e=A.dict["chatgpt.com"],t=await window.ipcRenderer.invoke("login-get-token",{url:e.tokenUrl,userAgent:"",script:"",show:!1,autoClose:!0});e.playground.apiKey=t.token,ce.success("Refresh succeed")}async function ne(){const e=A.dict.magai,t=await window.ipcRenderer.invoke("login-get-token",{url:e.tokenUrl,userAgent:"",script:"",show:!1,autoClose:!0});e.playground.apiKey=t.token,ce.success("Refresh succeed")}const se=a(!1),ie=a(!1),me=a(!1),he=a(!1),fe=()=>{if(!z.value)return;const e=z.value.querySelector(".chat-container-content"),t=e.scrollTop,a=e.scrollHeight,l=e.clientHeight;se.value=t>200,ie.value=a-t-l>200,me.value=se.value||ie.value},ge=()=>{const e=z.value.querySelector(".chat-container-content"),t=e.getAttribute("data-chat-id");t&&E("update-scroll-flag",t,!1),e.scrollTo({top:0,behavior:"smooth"}),setTimeout((()=>{e.scrollTo({top:0,behavior:"instant"})}),500)},_e=()=>{const e=z.value.querySelector(".chat-container-content"),t=e.getAttribute("data-chat-id");t&&E("update-scroll-flag",t,!0),e.scrollTo({top:e.scrollHeight,behavior:"smooth"}),setTimeout((()=>{e.scrollTo({top:e.scrollHeight,behavior:"instant"})}),500)},xe=e=>{he.value=e};return o((()=>{z.value.querySelector(".chat-container-content").addEventListener("scroll",fe)})),(t,a)=>{const l=ae,o=Q,x=J,C=Y,M=ue,S=re,T=X,N=le,D=ve,ce=pe,fe=de;return s(),n("div",Ze,[p("div",Qe,[p("div",et,[p("div",tt,[u(l,{size:"20px"},{icon:d((()=>[(s(),c(g(v(A).icons[e.chatModel.model.type])))])),_:1}),p("div",at,[u(S,{placement:"bottom","cancel-btn":null,"confirm-btn":null},{content:d((()=>[p("div",lt,[a[21]||(a[21]=p("p",null,"Model Info",-1)),p("p",null,[p("span",null,m(t.$t("pages.setting.model.model_name")),1),f(m(e.chatModel.model.name),1)]),p("p",null,[p("span",null,m(t.$t("pages.setting.model.model_interface")),1),f(m(e.chatModel.model.type),1)]),p("p",null,[p("span",null,m(t.$t("pages.setting.model.model_address")),1),f(m(e.chatModel.model.apiBase),1)]),u(x,{label:v(I)("pages.conversation.temperature"),name:"temperature",labelAlign:"left",labelWidth:"64px"},{default:d((()=>[u(o,{modelValue:e.chatModel.model.temperature,"onUpdate:modelValue":a[0]||(a[0]=t=>e.chatModel.model.temperature=t),inputNumberProps:"",showStep:"",min:0,max:1,step:.1},null,8,["modelValue"])])),_:1},8,["label"]),u(x,{label:v(I)("pages.conversation.maxTokens"),name:"maxTokens",labelAlign:"left",labelWidth:"64px"},{default:d((()=>[u(o,{modelValue:e.chatModel.model.maxTokens,"onUpdate:modelValue":a[1]||(a[1]=t=>e.chatModel.model.maxTokens=t),inputNumberProps:"",showStep:"",min:1024,max:61440,step:1024},null,8,["modelValue"])])),_:1},8,["label"]),u(x,{label:v(I)("pages.conversation.topP"),name:"topP",labelAlign:"left",labelWidth:"64px"},{default:d((()=>[u(o,{modelValue:e.chatModel.model.topP,"onUpdate:modelValue":a[2]||(a[2]=t=>e.chatModel.model.topP=t),inputNumberProps:"",showStep:"",min:0,max:1,step:.1},null,8,["modelValue"])])),_:1},8,["label"]),p("p",null,[p("span",null,m(W.value),1),f(m($.value.apiBase),1)]),p("p",ot,[p("span",null,m(L.value),1),f(m($.value.apiKey),1)]),p("p",null,[a[15]||(a[15]=p("span",null,"Model ",-1)),f(m(e.chatModel.model.apiModel),1)]),"vercel"===e.chatModel.model.type?(s(),c(C,{key:0,theme:"primary",onClick:Z},{default:d((()=>a[16]||(a[16]=[f("refresh vercel.ai ")]))),_:1})):r("",!0),"coze.com"===e.chatModel.model.type?(s(),c(C,{key:1,theme:"primary",onClick:ee},{default:d((()=>a[17]||(a[17]=[f("refresh coze.com ")]))),_:1})):r("",!0),"coze.cn"===e.chatModel.model.type?(s(),c(C,{key:2,theme:"primary",onClick:te},{default:d((()=>a[18]||(a[18]=[f("refresh coze.cn ")]))),_:1})):r("",!0),"chatgpt.com"===e.chatModel.model.type?(s(),c(C,{key:3,theme:"primary",onClick:oe},{default:d((()=>a[19]||(a[19]=[f("refresh chatgpt.com ")]))),_:1})):r("",!0),"magai"===e.chatModel.model.type?(s(),c(C,{key:4,theme:"primary",onClick:ne},{default:d((()=>a[20]||(a[20]=[f("refresh magai.co ")]))),_:1})):r("",!0)])])),default:d((()=>[u(M,{theme:"primary",title:B.value,class:"block w-full whitespace-nowrap text-ellipsis overflow-hidden"},{default:d((()=>[f(m(B.value),1)])),_:1},8,["title"])])),_:1})])]),p("div",nt,[u(T,{content:v(I)("pages.conversation.maximize_minimize")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[3]||(a[3]=_((t=>{return a=e.chatModel,void E("change-size",a.model.id);var a}),["stop"]))},{default:d((()=>[e.chatModel.chat.modelId==e.fullScreenModelId?(s(),c(v(be),{key:0,slot:"icon"})):(s(),c(v(we),{key:1,slot:"icon"}))])),_:1})])),_:1},8,["content"]),u(T,{content:v(I)("pages.conversation.stop_answering")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[4]||(a[4]=_((t=>{return a=e.chatModel,void E("stop-chat",a.model.id);var a}),["stop"]))},{default:d((()=>[u(v(ye),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(T,{content:v(I)("pages.conversation.regenerate_last_conversation")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[5]||(a[5]=_((t=>R(e.chatModel)),["stop"]))},{default:d((()=>[u(v(je),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(S,{theme:"danger",content:v(I)("pages.conversation.confirm_delete_chat_history"),placement:"top",onConfirm:a[6]||(a[6]=t=>{return a=e.chatModel,void E("clear-chat-history",a.model.id);var a})},{default:d((()=>[u(T,{content:v(I)("pages.conversation.delete_chat_history")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline"},{default:d((()=>[u(v(ke),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(S,{theme:"warning",content:v(I)("pages.conversation.confirm_clear_context"),placement:"top",onConfirm:a[7]||(a[7]=t=>{return a=e.chatModel,void E("clear-chat-context",a.model.id);var a})},{default:d((()=>[u(T,{content:v(I)("pages.conversation.clear_context")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline"},{default:d((()=>[u(v(Ce),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(T,{content:v(I)("pages.conversation.inherit_other_model_conversation")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[8]||(a[8]=_((t=>{return a=e.chatModel,void E("extend-model-visible",a.model.id);var a}),["stop"]))},{default:d((()=>[u(v(ze),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(T,{content:v(I)("pages.conversation.api_conversation_settings")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[9]||(a[9]=_((t=>{return a=e.chatModel,void E("api-setting-visible",a.model.id);var a}),["stop"]))},{default:d((()=>[u(v(Me),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(T,{content:v(I)("pages.conversation.toggle_artifacts")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[10]||(a[10]=_((e=>{F.value=!F.value}),["stop"]))},{default:d((()=>[u(v(Ae),{slot:"icon"})])),_:1})])),_:1},8,["content"])])])]),p("div",{class:"flex flex-1 overflow-hidden bg-color-container rounded-b-lg shadow-md w-full",onMouseenter:a[13]||(a[13]=e=>xe(!0)),onMouseleave:a[14]||(a[14]=e=>xe(!1))},[p("div",{class:"flex-1 relative h-full overflow-hidden",ref_key:"scrollable_chat",ref:z},[u(fe,{"data-chat-id":e.chatModel.model.id,class:w(["flex flex-col h-full overflow-y-auto chat-container-content scrollable-chat relative",{chating:e.chatModel.chat.status.chating}]),scroll:{type:"virtual",bufferSize:20}},{default:d((()=>[(s(!0),n(i,null,h(V.value,((t,o)=>(s(),c(ce,{key:`${e.chatModel.model.id}-${o}`,class:"w-full"},{default:d((()=>["user"===t.role?(s(),n("div",st,[p("div",{class:"flex flex-col gap-2 w-[calc(100%-24px-1rem)]","data-index":`${o}`},[p("div",ct,[f(m(v(k).name)+" ",1),p("div",rt,[u(S,{theme:"danger",content:v(I)("pages.conversation.dialog_confirm_delete_record"),placement:"bottom",onConfirm:e=>(e=>{const t=V.value.findIndex((t=>t===e));-1!==t&&(V.value.splice(t,1),t<V.value.length&&"assistant"===V.value[t].role&&V.value.splice(t,1))})(t)},{default:d((()=>[u(T,{content:v(I)("pages.conversation.button_tooltip_delete"),placement:"bottom"},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline"},{default:d((()=>[u(v(Ie),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"]),u(T,{content:v(I)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:e=>P(o)},{default:d((()=>[u(v(Ve),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(T,{content:v(I)("pages.conversation.button_tooltip_copy")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:e=>O(t)},{default:d((()=>[u(v(Se),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(T,{content:v(I)("pages.conversation.button_tooltip_favourite"),placement:"bottom"},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a=>{return l=e.chatModel,void E("fav-note-visible",l,t);var l}},{default:d((()=>[u(v(Te),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),o===e.chatModel.chat.chats.length-2?(s(),c(T,{key:0,content:v(I)("pages.conversation.button_tooltip_refresh")},{default:d((()=>[u(C,{size:"small",shape:"circle",variant:"outline",onClick:a[11]||(a[11]=t=>R(e.chatModel))},{default:d((()=>[u(v(je),{slot:"icon"})])),_:1})])),_:1},8,["content"])):r("",!0)])]),p("div",ut,[u(Oe,{content:t.content,isEditing:U.value===o,onSave:H,onCancel:q},null,8,["content","isEditing"])])],8,it),p("div",dt,[u(l,{size:"24px",image:v(k).avatar},null,8,["image"])])])):"assistant"===t.role?(s(),n("div",vt,[p("div",pt,[u(l,{size:"24px",image:e.conversation.avatar},null,8,["image"]),p("div",mt,m(e.conversation.name),1)]),p("div",ht,[p("div",{"data-index":`${o}`},[e.chatModel.chat.status.responseWating&&o===e.chatModel.chat.chats.length-1?(s(),n("span",gt)):(s(),c(Ne,{key:1,content:t.content,isEditing:U.value===o,onSave:H,onCancel:q},null,8,["content","isEditing"])),t.content.webs&&t.content.webs.length>0?(s(),n("div",_t,[(s(!0),n(i,null,h(t.content.webs,(e=>(s(),n("div",{class:"bg-color-page p-2 w-60 cursor-pointer",onClick:t=>{return a=e.url,void(window.ipcRenderer?window.ipcRenderer.send("open-url",a):window.open(a));var a}},[p("div",bt,[p("div",wt,[p("img",{src:e.icon,alt:""},null,8,yt)]),p("div",jt,[p("div",kt,m(e.title),1),p("div",Ct,m(e.url),1)])]),p("div",zt,m(e.excerpt),1)],8,xt)))),256))])):r("",!0)],8,ft),p("div",Mt,[p("div",At,[t.model?(s(),c(N,{key:0,class:"max-w-60 model-tag"},{default:d((()=>[f(m(t.model),1)])),_:2},1024)):r("",!0),u(T,{content:v(I)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:d((()=>[u(C,{size:"small",variant:"outline",onClick:e=>P(o)},{default:d((()=>[u(v(Ve),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(T,{content:v(I)("pages.conversation.button_tooltip_copy")},{default:d((()=>[u(C,{size:"small",variant:"outline",onClick:e=>O(t)},{default:d((()=>[u(v(Se),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(T,{content:v(I)("pages.conversation.toggle_artifacts")},{default:d((()=>[u(C,{size:"small",variant:"outline",onClick:e=>{var a;"assistant"===(a=t).role&&(K.value=a.content.text,F.value=!0)}},{default:d((()=>[u(v(Ae),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),o===e.chatModel.chat.chats.length-1?(s(),c(T,{key:1,content:v(I)("pages.conversation.button_tooltip_refresh")},{default:d((()=>[u(C,{size:"small",variant:"outline",onClick:a[12]||(a[12]=t=>R(e.chatModel))},{default:d((()=>[u(v(je),{slot:"icon"})])),_:1})])),_:1},8,["content"])):r("",!0)])])])])):"verbose"===t.role?(s(),c(D,{key:2},{default:d((()=>[f(m(t.content.text),1)])),_:2},1024)):(s(),n("div",It,m(t.role)+" - "+m(t.content.text),1))])),_:2},1024)))),128))])),_:1},8,["data-chat-id","class"]),a[22]||(a[22]=p("div",{class:"absolute z-50 bottom-0 w-full h-20 rounded-b-lg chat-model-footer pointer-events-none"},null,-1))],512),F.value?(s(),n("div",{key:0,class:w([e.chatModel.chat.modelId!==e.fullScreenModelId&&!e.isSingleModel||v(j)?"w-full":"w-1/2","pr-4"])},[u($e,{content:K.value,closeBtn:G},null,8,["content"])],2)):r("",!0),b(p("div",Vt,[b(u(C,{class:"scroll-top-btn",shape:"circle",onClick:ge},{icon:d((()=>[u(v(Ee))])),_:1},512),[[y,se.value]]),b(u(C,{class:"scroll-bottom-btn",shape:"circle",onClick:_e},{icon:d((()=>[u(v(Ee),{style:{transform:"rotateX(180deg)"}})])),_:1},512),[[y,ie.value]])],512),[[y,me.value&&he.value]])],32)])}}}),Tt={class:"w-full flex gap-2 absolute bottom-0 z-50"},Et={class:"rounded-lg px-1 bg-color-container bordered flex items-center align-middle"},Rt={class:"flex flex-col justify-center items-center w-full"},Ut={class:"flex flex-col gap-5 w-full overflow-hidden"},Pt={class:"max-h-96 scrollbar overflow-y-auto overflow-x-hidden bordered p-2 shadow-sm"},Ht=e({name:"ListConversation",setup(e){const o=S(),r=E(),V=Be(),T=z(),L=N();$();const F=a(null),Z=a(null);let Q=!1;const ee=a([]),te=M(),le=D(),oe=a(!1),ne=async e=>{if(e.content)if(Q)ce.warning("等待上个问题回答完成");else try{ee.value.forEach((t=>{if(""!==Xe.value&&Xe.value!==t.model.id)return;const a=q(e.content);e.files.forEach((e=>{e.type.startsWith("image")?a.images.push({...e,model:""}):a.files.push(e)})),t.chat.chats.push({role:"user",content:a,id:"",liked:!1,model:""}),t.chat.chats.push({role:"assistant",content:q(""),id:"",liked:!1,model:""})})),R.setPause(!0);const t=ee.value.map(((e,t)=>{if((""===Xe.value||Xe.value===e.model.id)&&!0!==e.chat.status.chating)return e.chat.status.chating=!0,e.chat.status.stop=!1,e.chat.status.responseWating=!0,e})).filter((e=>e));if(0===t.length)return;await mt(0),pt();let a="";if(Z.value.internet){const l=await P(e.content);t.map((e=>{e.chat.chats[e.chat.chats.length-1].content.webs=l.map((e=>({title:e.title,icon:e.icon,excerpt:e.excerpt,url:e.url})))})),l.length>0&&(a=JSON.stringify(l.map((e=>({content:e.content,url:e.url})))))}const l=t.map(((e,t)=>new Promise(((l,o)=>{setTimeout((()=>{const t=H(Z.value,e,a);l(t)}),100*t)}))));await Promise.all(l)}finally{Q=!1,R.setPause(!1),T.$persist()}else ce.error(I("pages.conversation.question_cannot_be_empty"))},se=async()=>{try{if(""!==Xe.value)return void ue(Xe.value);if(Q)return void ce.warning("等待上个问题回答完成");R.setPause(!0);const e=ee.value.map(((e,t)=>{if(0===e.chat.chats.length)return;if(!0===e.chat.status.chating)return;const a=e.chat.chats[e.chat.chats.length-1];if("assistant"==a.role)return U(a.content),a.model="",e.chat.status.chating=!0,e.chat.status.stop=!1,e.chat.status.responseWating=!0,e;ce.error(I("pages.conversation.please_start_question_again"))})).filter((e=>e));if(0===e.length)return;await mt(0),pt();let t="";if(Z.value.internet){const a=e.find((e=>e.chat.chats.length>0));if(a){const l=a.chat.chats,o=l[l.length-2];if(o){const a=await P(o.content.text);e.map((e=>{e.chat.chats[e.chat.chats.length-1].content.webs=a.map((e=>({title:e.title,icon:e.icon,excerpt:e.excerpt,url:e.url})))})),a.length>0&&(t=JSON.stringify(a.map((e=>({content:e.content,url:e.url})))))}}}const a=e.map(((e,a)=>new Promise(((l,o)=>{setTimeout((()=>{const a=H(Z.value,e,t);l(a)}),100*a)}))));await Promise.all(a)}finally{Q=!1,R.setPause(!1),T.$persist()}},ue=async e=>{try{const t=ee.value.find((t=>t.model.id===e));if(0===t.chat.chats.length)return;R.setPause(!0);const a=t.chat.chats[t.chat.chats.length-1];if("assistant"!=a.role)return void ce.error(I("pages.conversation.please_start_question_again"));if(!0===t.chat.status.chating)return;U(a.content),a.model="",t.chat.status.chating=!0,t.chat.status.stop=!1,t.chat.status.responseWating=!0;let l="";if(pt(),Z.value.internet){const e=await P(t.chat.chats[t.chat.chats.length-2].content.text);a.content.webs=e.map((e=>({title:e.title,icon:e.icon,excerpt:e.excerpt,url:e.url}))),e.length>0&&(l=JSON.stringify(e.map((e=>({content:e.content,url:e.url})))))}await H(Z.value,t,l)}finally{Q=!1,R.setPause(!1),T.$persist()}},de=async()=>{""===Xe.value?(ee.value.forEach((e=>{e.chat.chats.push({role:"verbose",content:q(I("pages.conversation.context_cleared")),id:"",liked:!1,model:""}),e.chat.startContext=e.chat.chats.length})),ce.success(I("pages.conversation.context_cleared_success")),await mt(0)):Me(Xe.value)},ve=()=>{T.showEditorDrawer=!0},pe=e=>{const t=ee.value.find((t=>t.chat.modelId===e));t.chat.status.stop=!0,t.chat.status.responseWating=!1,t.chat.status.chating=!1},xe=()=>{""===Xe.value?ee.value.forEach((e=>{e.chat.status.stop=!0,e.chat.status.responseWating=!1,e.chat.status.chating=!1})):pe(Xe.value)},be=()=>{Z.value.internet=!Z.value.internet},we=()=>{""===Xe.value?ee.value.forEach((e=>{e.chat.chats=[],e.chat.startContext=0})):Ae(Xe.value)},Me=e=>{const t=ee.value.find((t=>t.chat.modelId===e)).chat;t.chats.push({role:"verbose",content:q(I("pages.conversation.context_cleared")),id:"",liked:!1,model:""}),t.startContext=t.chats.length,ce.success(I("pages.conversation.context_cleared_success")),C((()=>{const t=document.querySelector(`[data-chat-id="${e}"]`);t&&t.scrollTo({top:t.scrollHeight,behavior:"smooth"})}))},Ae=e=>{const t=ee.value.find((t=>t.chat.modelId===e)).chat;t.chats=[],t.startContext=0},Ie=a(!1),Ve=a(""),Se=a(""),Te=e=>{Ie.value=!0,Se.value="",Ve.value=e},Ee=async()=>{if(!Se.value)return void(Ie.value=!1);const e=Z.value.models.find((e=>e.modelId===Se.value));if(Ve.value){const t=Z.value.models.find((e=>e.modelId===Ve.value));t.chats=JSON.parse(JSON.stringify(e.chats)),t.startContext=0}else Z.value.models.forEach((t=>{t.modelId!=Se.value&&(t.chats=JSON.parse(JSON.stringify(e.chats)),t.startContext=0)}));Ie.value=!1,await mt(0)},qe=a(!1),Oe=a(""),Ne=a(""),$e=a("");let Fe="";const Ke=e=>{qe.value=!0,Fe=e;const t=Z.value.models.find((e=>e.modelId===Fe));Ne.value=t.apiConversationId,Oe.value=t.apiAgentId,$e.value=t.apiNote},Je=()=>{var e,t,a;const l=Z.value.models.find((e=>e.modelId===Fe));l.apiConversationId=null==(e=Ne.value)?void 0:e.trim(),l.apiAgentId=null==(t=Oe.value)?void 0:t.trim(),l.apiNote=null==(a=$e.value)?void 0:a.trim(),qe.value=!1};async function Ge(){const e=ee.value.find((e=>e.chat.modelId===Fe));if("lyihub"===e.model.type){const t=await Le(e.model.apiKey);Ne.value=t.id}else Ne.value=He()}const Xe=a(""),Ze=e=>{1!==ee.value.length&&(""===Xe.value?Xe.value=e:Xe.value="")},Qe=a(!1),et=a(""),tt=V.list;let at=null,lt=null;const ot=async(e,t)=>{Qe.value=!0,et.value="",at=e,lt=t},nt=async()=>{const e=at.chat.chats,t=e.findIndex((e=>e===lt)),a=e[t].content.text;let l="";const n=t+1;n<e.length&&"assistant"===e[n].role&&(l=e[n].content.text);const s={id:He(),title:a,time:(new Date).getTime(),conversationId:Z.value.id,conversationName:Z.value.name,conversationAvatar:Z.value.avatar,chats:[{...e[t],content:{...e[t].content}},{...e[n],content:{...e[n].content}}],notes:[]};if(V.add(s),ce.success(I("pages.conversation.favorite_success")),o.assistModel){const e=I("pages.conversation.extract_core_conversation",{question:a,answer:l});await B(e,(e=>{s.title=e,s.title=s.title.replaceAll("###",""),s.title=s.title.trim(),V.update(s)}))}Qe.value=!1},st=async()=>{if(!et.value)return void ce.warning("需要先选中笔记");const e=tt.find((e=>e.id==et.value)),t=at.chat.chats,a=t.findIndex((e=>e===lt)),l=a+1;e.chats.push({...t[a],content:{...t[a].content}}),e.chats.push({...t[l],content:{...t[l].content}}),V.update(e),ce.success(I("pages.conversation.favorite_success")),Qe.value=!1},it=t((()=>E().isSidebarCompact)),ct=t((()=>""!==Xe.value||1===ee.value.length||it.value?12:2===ee.value.length?6:3===ee.value.length?4:4===ee.value.length?3:5===ee.value.length||6===ee.value.length?4:7===ee.value.length||8===ee.value.length?3:12)),rt=t((()=>""!==Xe.value||1===ee.value.length||it.value||2===ee.value.length||3===ee.value.length||4===ee.value.length?"h-[calc(100%-10px)]":5===ee.value.length||6===ee.value.length||7===ee.value.length||8===ee.value.length?"h-[calc(50%-10px)]":"h-[calc(100%-10px)]")),ut=t((()=>{let e="h-[calc(100vh-56px-2*var(--td-comp-paddingTB-m))]";return r.showLayoutHeader&&r.showFooter&&(e="h-[calc(100vh-56px-var(--td-comp-size-xxl)-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]"),r.showLayoutHeader&&!r.showFooter&&(e="h-[calc(100vh-56px-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]"),!r.showLayoutHeader&&r.showFooter&&(e="h-[calc(100vh-56px-var(--td-comp-size-xxl)-2*var(--td-comp-paddingTB-m))]"),[e,{"chat-container-collapsed":it.value&&ee.value.length>1&&!Xe.value}]})),dt=()=>{const e=ee.value.map((e=>e.chat)),t=new Set(e),a=Z.value.models.filter((e=>!t.has(e)));Z.value.models=[...e,...a]},vt=new Map,pt=async()=>{if(!F.value)return;Q=!0,await C();const e=F.value.querySelectorAll(".chating");e.forEach((e=>{const t=e.getAttribute("data-chat-id");if(t&&!vt.has(t)){vt.set(t,!0);const a=()=>{const a=e.scrollHeight-e.scrollTop-e.clientHeight;a>100?vt.set(t,!1):a<100&&vt.set(t,!0),e.setAttribute("data-last-scroll-time",Date.now().toString())};e._scrollHandler=a,e.addEventListener("scroll",a)}}));const t=()=>{Q&&(e.forEach((e=>{const t=e.getAttribute("data-chat-id");if(t&&vt.get(t))try{if(e.scrollHeight-e.scrollTop-e.clientHeight>10){const t=parseInt(e.getAttribute("data-last-scroll-time")||"0");Date.now()-t>500&&(null==e||e.scrollTo({top:e.scrollHeight,behavior:"instant"}))}}catch(a){}})),Q&&requestAnimationFrame((()=>{setTimeout(t,200)})))};t()};async function mt(e){await new Promise((t=>setTimeout(t,e))),F.value&&requestAnimationFrame((()=>{F.value.querySelectorAll(".scrollable-chat").forEach((e=>{if(e)try{e.scrollTo({top:e.scrollHeight,behavior:"instant"})}catch(t){}}))}))}j((()=>{ht()}));const ht=()=>{(()=>{if(!F.value)return;F.value.querySelectorAll("[data-chat-id]").forEach((e=>{const t=e.getAttribute("data-chat-id");if(t){const a=e.onscroll;a&&e.removeEventListener("scroll",a),vt.delete(t)}}))})(),vt.clear()};x((()=>{Z.value&&(ht(),ft())}));const ft=()=>{ee.value=Z.value.models.map((e=>{const t=te.find(e.modelId);if(t&&e.showing)return{model:t,chat:e,id:e.modelId}})).filter(Boolean)};l((()=>L.query.id),(async e=>{if("/conversation/chat"!==L.path)return Z.value=null,void ht();let t=e;Z.value,requestAnimationFrame((async()=>{Z.value=T.find(t),Xe.value="",setTimeout((()=>{var e;ft();!L.query.isNew||!(null==(e=O.data)?void 0:e.content)||0===Z.value.models.length||Z.value.models[0].chats.length>0?mt(1e3):ne(O.data)}),50)}))}),{immediate:!0});const gt=t((()=>Z.value&&Z.value.internet?{color:"green"}:{})),_t=a(null),xt=()=>{var e;null==(e=_t.value)||e.showToolbox()},bt=()=>{var e;null==(e=_t.value)||e.hideToolbox()},wt=(e,t)=>{if(vt.set(e,t),F.value){const a=F.value.querySelector(`[data-chat-id="${e}"]`);if(a&&!t){const t=a._scrollHandler;t&&(a.removeEventListener("scroll",t),a._scrollHandler=null);const l=()=>{a.removeEventListener("scroll",l),setTimeout((()=>{const t=()=>{const t=a.scrollHeight-a.scrollTop-a.clientHeight;t>100?vt.set(e,!1):t<100&&vt.set(e,!0)};a._scrollHandler=t,a.addEventListener("scroll",t)}),1e3)};a.addEventListener("scroll",l)}}};return(e,t)=>{const a=me,l=Y,o=X,r=re,x=he,j=ae,C=_e,z=ge,M=fe,V=ie,S=G,T=J,E=K;return b((s(),n("div",{class:"flex flex-col items-center h-full relative",onMousedown:bt},[p("div",{class:w(["w-full",ut.value]),ref_key:"chatContainer",ref:F,onMouseup:xt},[u(De,{ref_key:"toolbar",ref:_t,parent:F.value},null,8,["parent"]),u(v(We),{tag:"t-row",modelValue:ee.value,"onUpdate:modelValue":t[0]||(t[0]=e=>ee.value=e),handle:".handle","component-data":{align:"top",gutter:10},onEnd:dt,"item-key":"id",class:"h-full"},{item:d((({element:e})=>[(s(),c(a,{span:ct.value,key:`${Z.value.id}-${e.model.id}`,class:w([rt.value,{hidden:""!==Xe.value&&Xe.value!==e.model.id}])},{default:d((()=>[u(St,{"chat-model":e,conversation:Z.value,"data-index":`${e.model.id}`,"full-screen-model-id":Xe.value,"is-single-model":1===ee.value.length,onStopChat:pe,onExtendModelVisible:Te,onReChat:ue,onChangeSize:Ze,onApiSettingVisible:Ke,onFavNoteVisible:ot,onClearChatContext:Me,onClearChatHistory:Ae,onUpdateScrollFlag:wt},null,8,["chat-model","conversation","data-index","full-screen-model-id","is-single-model"])])),_:2},1032,["span","class"]))])),_:1},8,["modelValue"])],34),p("div",Tt,[u(W,{class:"flex-1",onInput:ne}),p("div",Et,[v(le)?(s(),c(x,{key:1,delay:0,modelValue:oe.value,"onUpdate:modelValue":t[7]||(t[7]=e=>oe.value=e),onOverlayClick:t[8]||(t[8]=e=>oe.value=!1)},{content:d((()=>[p("div",Rt,[u(l,{size:"large",shape:"circle",variant:"text",onClick:be},{default:d((()=>[u(v(Re),{slot:"icon",style:k(gt.value)},null,8,["style"])])),_:1}),u(l,{size:"large",shape:"circle",variant:"text",onClick:xe},{default:d((()=>[u(v(ye),{slot:"icon"})])),_:1}),u(l,{size:"large",shape:"circle",variant:"text",onClick:se},{default:d((()=>[u(v(je),{slot:"icon"})])),_:1}),u(l,{size:"large",shape:"circle",variant:"text",onClick:t[2]||(t[2]=e=>Te(""))},{default:d((()=>[u(v(ze),{slot:"icon"})])),_:1}),u(r,{theme:"danger",content:v(I)("pages.conversation.confirm_delete_all_chat_records"),placement:"left",onConfirm:t[4]||(t[4]=()=>{we(),oe.value=!1})},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:t[3]||(t[3]=_((()=>{}),["stop"]))},{default:d((()=>[u(v(ke),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(r,{theme:"warning",content:v(I)("pages.conversation.confirm_clear_all_context"),placement:"left",onConfirm:t[6]||(t[6]=()=>{de(),oe.value=!1})},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:t[5]||(t[5]=_((()=>{}),["stop"]))},{default:d((()=>[u(v(Ce),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(l,{size:"large",shape:"circle",variant:"text",onClick:ve},{default:d((()=>[u(v(Ue),{slot:"icon"})])),_:1})])])),default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text"},{default:d((()=>[u(v(Pe),{slot:"icon"})])),_:1})])),_:1},8,["modelValue"])):(s(),n(i,{key:0},[u(o,{content:v(I)("pages.conversation.internet_search")},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:_(be,["stop"])},{default:d((()=>[u(v(Re),{slot:"icon",style:k(gt.value)},null,8,["style"])])),_:1})])),_:1},8,["content"]),u(o,{content:v(I)("pages.conversation.stop_answering")},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:_(xe,["stop"])},{default:d((()=>[u(v(ye),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(o,{content:v(I)("pages.conversation.regenerate_last_conversation")},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:_(se,["stop"])},{default:d((()=>[u(v(je),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(o,{content:v(I)("pages.conversation.inherit_other_model_conversation"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:t[1]||(t[1]=_((e=>Te("")),["stop"]))},{default:d((()=>[u(v(ze),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(r,{theme:"danger",content:v(I)("pages.conversation.confirm_delete_all_chat_records"),placement:"top",onConfirm:we},{default:d((()=>[u(o,{content:v(I)("pages.conversation.delete_all_chat_records"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text"},{default:d((()=>[u(v(ke),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(r,{theme:"warning",content:v(I)("pages.conversation.confirm_clear_all_context"),placement:"top",onConfirm:de},{default:d((()=>[u(o,{content:v(I)("pages.conversation.clear_all_context"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text"},{default:d((()=>[u(v(Ce),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(o,{content:v(I)("pages.conversation.edit_current_conversation"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:ve},{default:d((()=>[u(v(Ue),{slot:"icon"})])),_:1})])),_:1},8,["content"])],64))])]),u(Ye),u(V,{header:v(I)("pages.conversation.inherit_model_dialog"),visible:Ie.value,"onUpdate:visible":t[10]||(t[10]=e=>Ie.value=e),"on-confirm":Ee,class:"extend-model"},{default:d((()=>[u(M,{class:"w-full",modelValue:Se.value,"onUpdate:modelValue":t[9]||(t[9]=e=>Se.value=e)},{default:d((()=>[u(z,{gutter:[16,16],class:"w-full"},{default:d((()=>[(s(!0),n(i,null,h(ee.value,(e=>(s(),c(a,{span:12},{default:d((()=>[u(C,{value:e.model.id,disabled:Ve.value===e.model.id},{default:d((()=>[u(j,{size:"20px",class:"mr-1"},{icon:d((()=>[(s(),c(g(v(A).icons[e.model.type])))])),_:2},1024),f(" "+m(v(A).getModelItemTitle(e.model)),1)])),_:2},1032,["value","disabled"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["header","visible"]),u(V,{header:v(I)("pages.conversation.api_conversation_settings"),visible:qe.value,"onUpdate:visible":t[14]||(t[14]=e=>qe.value=e),"on-confirm":Je},{default:d((()=>[u(E,{"label-align":"top"},{default:d((()=>[u(T,{label:v(I)("pages.conversation.api_agent"),name:"apiSettingAgent"},{default:d((()=>[u(S,{modelValue:Oe.value,"onUpdate:modelValue":t[11]||(t[11]=e=>Oe.value=e)},null,8,["modelValue"])])),_:1},8,["label"]),u(T,{label:v(I)("pages.conversation.api_conversation_id"),name:"apiSettingConversation"},{default:d((()=>[u(S,{modelValue:Ne.value,"onUpdate:modelValue":t[12]||(t[12]=e=>Ne.value=e)},null,8,["modelValue"]),u(l,{class:"ml-2",onClick:Ge},{default:d((()=>[f(m(v(I)("pages.conversation.api_conversation_id_random")),1)])),_:1})])),_:1},8,["label"]),u(T,{label:v(I)("pages.conversation.remarks"),name:"apiSettingNode"},{default:d((()=>[u(S,{modelValue:$e.value,"onUpdate:modelValue":t[13]||(t[13]=e=>$e.value=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1})])),_:1},8,["header","visible"]),u(V,{header:v(I)("pages.conversation.button_tooltip_favourite"),visible:Qe.value,"onUpdate:visible":t[16]||(t[16]=e=>Qe.value=e),confirmBtn:null},{default:d((()=>[p("div",Ut,[u(l,{onClick:nt,theme:"default",variant:"outline"},{default:d((()=>t[17]||(t[17]=[f("创建新的笔记")]))),_:1}),u(l,{onClick:st,theme:"default",variant:"outline"},{default:d((()=>t[18]||(t[18]=[f("添加到笔记")]))),_:1}),p("div",Pt,[u(M,{modelValue:et.value,"onUpdate:modelValue":t[15]||(t[15]=e=>et.value=e)},{default:d((()=>[u(z,{gutter:[16,16]},{default:d((()=>[(s(!0),n(i,null,h(v(tt),(e=>(s(),c(a,{span:12},{default:d((()=>[u(C,{value:e.id,class:"grid grid-flow-col auto-cols-max fav-radio fav-radio-dialog"},{default:d((()=>[f(m(e.title),1)])),_:2},1032,["value"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["modelValue"])])])])),_:1},8,["header","visible"])],544)),[[y,Z.value]])}}});export{Ht as default};
.output/public/assets/content-CekGICAg.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{U as e,A as t,_ as o,a}from"./ToolBar.vue_vue_type_style_index_0_lang-DF5WdeM2.js";import{_ as l}from"./ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js";import{b as s,u as n,e as i,t as r,m as c,C as u}from"./mermaid-render-DYiT7KKL.js";import{a as m,u as p}from"./vue-router-DKqWD4MR.js";import{m as d}from"./markdown-6PNN04BW.js";import{s as v,b as f,P as j,T as g,A as h,r as x,f as y,e as _}from"./tdesign-vue-next-BiEwLJDx.js";import{c as w,ad as b,_ as k,a4 as C,a5 as T,a3 as z,ae as E}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{l as B,a as $,V as H,w as I,o as S,v as V,y as M,z as R,A,R as O,a9 as q,u as D,F,n as L,f as P,J as N,aa as J,I as U,H as W}from"./@vue-CfxotJ-S.js";import{a as K}from"./main-BVjjoCN0.js";import"./@wdns-DyBUtl2Y.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./lodash-es-RhymR7yg.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ua-parser-js--QiuJfYt.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./uuid-_R2nDvl_.js";import"./mammoth-Cw8VHd7C.js";import"./xlsx-DB6BMndo.js";import"./pdfjs-dist-8WFUNQXM.js";import"./mermaid-r27wrvTx.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./@vueuse-B4dz7nOv.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./markdown-it-link-attributes-DRKqjf49.js";import"./markdown-it-C8SkdHr7.js";import"./mdurl-CDXpswLz.js";import"./uc.micro-CLkLCS2f.js";import"./entities-D7HTx9ov.js";import"./linkify-it-LcVOBuC5.js";import"./punycode.js-Bmr3cAX8.js";import"./@traptitech-xv_Vpjqh.js";import"./katex-Vs6-m9jZ.js";import"./markdown-it-highlightjs-6zEPG1Qy.js";import"./highlight.js-ato5kCvT.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vuedraggable-DAEPkKhD.js";import"./vue-BIpqWpgL.js";const X={key:0,class:"markdown-body"},Y=["innerHTML"],Q={key:1},Z={class:"flex justify-end mt-2 gap-5"},G=B({__name:"NoteContent",props:{content:{},isEditing:{type:Boolean,default:!1}},emits:["save","cancel"],setup(e,{emit:t}){const o=e,a=$(""),l=$(!1),s=$(!1);let n=null;const i=async()=>{o.content&&(n&&clearTimeout(n),n=window.setTimeout((async()=>{try{l.value=!0,a.value=await d.render(o.content)}catch(e){s.value=!0}finally{l.value=!1}}),100))};H((()=>{n&&clearTimeout(n)})),I((()=>o.content),(()=>{i()}),{immediate:!0}),S((()=>{o.content&&!a.value&&i()}));const r=t,c=$(o.content),u=()=>{r("save",c.value)},m=()=>{c.value=o.content,r("cancel")},p=(e,t)=>{t.e.relatedTarget||m()},j=$(null);return I((()=>o.isEditing),(e=>{e&&(c.value=o.content,L((()=>{j.value.$el.querySelector("textarea").focus()})))})),(e,t)=>{const o=v,l=f;return M(),V(F,null,[e.isEditing?R("",!0):(M(),V("div",X,[A("div",{innerHTML:a.value},null,8,Y)])),e.isEditing?(M(),V("div",Q,[O(o,{ref_key:"textareaRef",ref:j,modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=e=>c.value=e),autosize:{minRows:2,maxRows:20},onBlur:p},null,8,["modelValue"]),A("div",Z,[O(l,{size:"large",shape:"circle",variant:"text",onClick:m},{default:q((()=>[O(D(w),{slot:"icon"})])),_:1}),O(l,{size:"large",shape:"circle",variant:"text",onClick:u},{default:q((()=>[O(D(b),{slot:"icon"})])),_:1})])])):R("",!0)],64)}}}),ee={class:"flex justify-between w-full"},te={class:"flex-1"},oe={key:0,class:"text-xl font-bold"},ae={class:"flex align-middle items-center gap-2"},le={class:"flex flex-1 overflow-hidden"},se={class:"flex-1 relative h-full overflow-y-auto no-scrollbar flex flex-col gap-5"},ne={key:0,class:"flex w-full justify-end items-start gap-2 note-item"},ie={class:"flex justify-end overflow-hidden h-[24px]"},re={class:"bg-color-page p-4 rounded-lg"},ce={class:"flex justify-end gap-2 note-item-tools"},ue={class:"w-[24px] h-[24px]"},me={key:1,class:"flex w-full justify-end items-start flex-row-reverse gap-2 note-item"},pe={class:"flex flex-col gap-2 w-[calc(100%-24px-1rem)]"},de={class:"flex justify-between overflow-hidden h-[24px]"},ve={class:"bg-color-page p-4 rounded-lg"},fe={class:"flex justify-end gap-2 note-item-tools"},je={class:"w-[24px] h-[24px]"},ge={class:"flex w-full justify-end note-item items-start gap-2"},he={class:"flex justify-end overflow-hidden h-[24px]"},xe={class:"bg-color-page p-4 rounded-lg"},ye={key:0,class:"loader"},_e={class:"flex justify-end gap-2 note-item-tools"},we={class:"w-[24px] h-[24px]"},be={key:0,class:"w-1/2"},ke=B({__name:"content",setup(d){var v;const w=$(null),B=$(null),H=s(),S=K();m();const X=p(),Y=$(),Q=n(),Z=$(!1),ke=i();I((()=>X.query.id),(e=>{if("/note/content"!==X.path)return void(Y.value=null);let t=e;Y.value=S.find(t)}),{immediate:!0});const Ce=P((()=>Q.showLayoutHeader&&Q.showFooter?"h-[calc(100vh-var(--td-comp-size-xxl)-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]":Q.showLayoutHeader&&!Q.showFooter?"h-[calc(100vh-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]":!Q.showLayoutHeader&&Q.showFooter?"h-[calc(100vh-var(--td-comp-size-xxl)-2*var(--td-comp-paddingTB-m))]":"h-[calc(100vh-2*var(--td-comp-paddingTB-m))]"));let Te=null;const ze=$(!1),Ee=async e=>{var t;if(e.content)if(e.content.startsWith("@")){const{name:t,content:o}=function(e){const t=e.indexOf("@");if(-1===t)return null;let o=e.indexOf(" ",t);const a=e.indexOf("(",t),l=e.indexOf(")",t);return-1!==a&&-1!==l&&l>a?o=e.indexOf(" ",l):-1===o&&(o=e.length),{name:e.substring(t+1,o).trim(),content:e.substring(o).trim()}}(e.content),a="ai"===t?ke.find(H.assistModel):ke.enableModels.find((e=>c.getModelItemTitle(e)===t));let l=o;Y.value.notes.push(`# ${l}`);try{let e="";for(let t=0;t<Y.value.chats.length;t++){const o=Y.value.chats[t];"user"===o.role&&(e+=`<|im_start|>user\n${o.content}<|im_end|>\n`),"assistant"===o.role&&(e+=`<|im_start|>assistant\n${o.content}<|im_end|>\n`)}for(let t=0;t<Y.value.notes.length;t++){e+=`<|im_start|>user\n${Y.value.notes[t]}<|im_end|>`}e+=`<|im_start|>user\n${o}<|im_end|>`,Te=setInterval(Be,0),ze.value=!0,await u(a,e,(e=>{ze.value&&(ze.value=!1),Y.value.notes[Y.value.notes.length-1]=`# ${l}\n`+e}))}finally{null!==Te&&(clearInterval(Te),Te=null)}}else Y.value.notes.push(e.content),t=0,L((()=>{setTimeout((()=>{var e;null==(e=w.value)||e.scrollTo({top:w.value.scrollHeight,behavior:"smooth"})}),t)}));else _.error(r("pages.note.noteEmptyError"))},Be=async()=>{for(var e;null!==Te;)await new Promise((e=>setTimeout(e,300))),null==(e=w.value)||e.scrollTo({top:w.value.scrollHeight,behavior:"instant"})},$e=$(!1);let He=$("");const Ie=()=>{$e.value=!1},Se=$(null),Ve=$(null==(v=Y.value)?void 0:v.title),Me=(e,t)=>{t.e.relatedTarget||(Z.value=!1)},Re=()=>{Y.value.title=Ve.value,Z.value=!1},Ae=()=>{var e;Ve.value=null==(e=Y.value)?void 0:e.title,Z.value=!0,L((()=>{Se.value.$el.querySelector("input").focus()}))},Oe=$(-1),qe=e=>{Oe.value=e},De=e=>{Y.value.chats[Oe.value].content.text=e,Oe.value=-1},Fe=()=>{Oe.value=-1},Le=$(-1),Pe=e=>{Y.value.notes[Le.value]=e,Le.value=-1},Ne=()=>{Le.value=-1},Je=()=>{navigator.clipboard.writeText(JSON.stringify(Y.value)),_.success(r("pages.note.noteCopySuccess"))};return(s,n)=>{const i=x,c=f,u=g,m=j,p=h;return Y.value?(M(),N(D(y),{key:0,class:U(["note-page overflow-hidden flex flex-col",[Ce.value]]),"header-bordered":"",title:Y.value.title,bordered:!1},{header:q((()=>[A("div",ee,[A("div",te,[Z.value?(M(),N(i,{key:1,ref_key:"inputTitleRef",ref:Se,type:"text",modelValue:Ve.value,"onUpdate:modelValue":n[0]||(n[0]=e=>Ve.value=e),onEnter:Re,onBlur:Me},null,8,["modelValue"])):(M(),V("h1",oe,W(Y.value.title),1))]),A("div",ae,[O(u,{content:D(r)("pages.note.noteRenameTooltip"),placement:"top"},{default:q((()=>[Z.value?(M(),N(c,{key:1,size:"small",shape:"circle",variant:"text",onClick:Re},{default:q((()=>[O(D(b),{slot:"icon"})])),_:1})):(M(),N(c,{key:0,size:"small",shape:"circle",variant:"text",onClick:Ae},{default:q((()=>[O(D(E),{slot:"icon"})])),_:1}))])),_:1},8,["content"]),O(c,{size:"small",shape:"circle",variant:"text",onClick:Je},{default:q((()=>[O(D(T),{slot:"icon"})])),_:1})])])])),content:q((()=>[A("div",{ref_key:"scrollable_chat",ref:w,class:"h-full note-content flex flex-col gap-1 relative",onMouseupPassive:n[1]||(n[1]=//@ts-ignore
2
+ (...e)=>{var t,o;return(null==(t=B.value)?void 0:t.showToolbox)&&(null==(o=B.value)?void 0:o.showToolbox(...e))}),onMousedownPassive:n[2]||(n[2]=//@ts-ignore
3
+ (...e)=>{var t,o;return(null==(t=B.value)?void 0:t.hideToolbox)&&(null==(o=B.value)?void 0:o.hideToolbox(...e))})},[A("div",le,[A("div",se,[(M(!0),V(F,null,J(Y.value.chats,((o,a)=>(M(),V(F,null,["user"===o.role?(M(),V("div",ne,[A("div",{class:U(["flex flex-col gap-2",Oe.value===a?"w-full":""])},[A("div",ie,W(D(H).name),1),A("div",re,[O(e,{content:o.content,isEditing:Oe.value===a,onSave:De,onCancel:Fe},null,8,["content","isEditing"])]),A("div",ce,[O(m,{theme:"danger",content:D(r)("pages.note.noteDeleteConfirm"),placement:"bottom",onConfirm:e=>(e=>{const t=Y.value.chats.findIndex((t=>t===e));-1!==t&&Y.value.chats.splice(t,2)})(o)},{default:q((()=>[O(u,{content:D(r)("pages.note.noteDeleteTooltip")},{default:q((()=>[O(c,{size:"small",variant:"outline"},{default:q((()=>[O(D(k),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"]),O(u,{content:D(r)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:q((()=>[O(c,{size:"small",variant:"outline",onClick:e=>qe(a)},{default:q((()=>[O(D(C),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"])])],2),A("div",ue,[O(p,{size:"24px",image:D(H).avatar},null,8,["image"])])])):"assistant"===o.role?(M(),V("div",me,[A("div",pe,[A("div",de,[A("div",null,W(Y.value.conversationName),1)]),A("div",ve,[O(t,{content:o.content,isEditing:Oe.value===a,onSave:De,onCancel:Fe},null,8,["content","isEditing"])]),A("div",fe,[O(u,{content:D(r)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:q((()=>[O(c,{size:"small",variant:"outline",onClick:e=>qe(a)},{default:q((()=>[O(D(C),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),O(u,{content:D(r)("pages.note.noteCopyTooltip")},{default:q((()=>[O(c,{size:"small",variant:"outline",onClick:e=>{return t=o,navigator.clipboard.writeText(t.content.text),void _.success(r("pages.note.noteCopySuccess"));var t}},{default:q((()=>[O(D(T),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),O(u,{content:D(r)("pages.conversation.toggle_artifacts")},{default:q((()=>[O(c,{size:"small",variant:"outline",onClick:e=>{var t;"assistant"===(t=o).role&&($e.value=!$e.value,$e.value&&(He.value=t.content.text))}},{default:q((()=>[O(D(z),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"])])]),A("div",je,[O(p,{size:"24px",image:Y.value.conversationAvatar},null,8,["image"])])])):R("",!0)],64)))),256)),(M(!0),V(F,null,J(Y.value.notes,((e,t)=>(M(),V("div",ge,[A("div",{class:U(["flex flex-col gap-2 min-w-[300px]",Le.value===t?"w-full":""])},[A("div",he,W(D(H).name),1),A("div",xe,[ze.value&&t===Y.value.notes.length-1?(M(),V("span",ye)):(M(),N(G,{key:1,content:e,isEditing:Le.value===t,onSave:Pe,onCancel:Ne},null,8,["content","isEditing"]))]),A("div",_e,[O(m,{theme:"danger",content:D(r)("pages.note.noteDeleteConfirm"),placement:"bottom",onConfirm:e=>(e=>{Y.value.notes.splice(e,1)})(t)},{default:q((()=>[O(u,{content:D(r)("pages.note.noteDeleteTooltip")},{default:q((()=>[O(c,{size:"small",variant:"outline"},{default:q((()=>[O(D(k),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"]),O(u,{content:D(r)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:q((()=>[O(c,{size:"small",variant:"outline",onClick:e=>(e=>{Le.value=e})(t)},{default:q((()=>[O(D(C),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"])])],2),A("div",we,[O(p,{size:"24px",image:D(H).avatar},null,8,["image"])])])))),256))]),$e.value?(M(),V("div",be,[O(o,{content:D(He),closeBtn:Ie},null,8,["content"])])):R("",!0)]),O(a,{ref_key:"toolbar",ref:B,parent:w.value},null,8,["parent"])],544)])),footer:q((()=>[O(l,{"show-upload":!1,"auto-complete-enabled":!0,placeholder:s.$t("pages.note.notePlaceholder"),onInput:Ee},null,8,["placeholder"])])),_:1},8,["class","title"])):R("",!0)}}});export{ke as default};
.output/public/assets/highlight.js-ato5kCvT.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/index-0Y7UjkS7.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{v as e,y as t,ag as l,l as a,f as i,A as r,C as s,J as o,ac as p,H as d,a as n,w as f,a0 as h,a1 as c,R as u,a9 as m,G as v,u as g,F as j,aa as z,I as x}from"./@vue-CfxotJ-S.js";import{u as _,a as k}from"./vue-router-DKqWD4MR.js";import{_ as w,e as B,m as y,c as M,u as E,t as H,g as A}from"./mermaid-render-DYiT7KKL.js";import{_ as F}from"./ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js";import{u as S}from"./app-_ksMLlTy.js";import{A as U,l as b,j as G,m as I,f as L,n as V,o as C,b as O,e as R}from"./tdesign-vue-next-BiEwLJDx.js";import{v as q}from"./uuid-_R2nDvl_.js";import{u as T}from"./main-BVjjoCN0.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./mermaid-r27wrvTx.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./lodash-es-RhymR7yg.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./@vueuse-B4dz7nOv.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./tdesign-icons-vue-next-Bre5yOVt.js";import"./mammoth-Cw8VHd7C.js";import"./xlsx-DB6BMndo.js";import"./pdfjs-dist-8WFUNQXM.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vuedraggable-DAEPkKhD.js";import"./vue-BIpqWpgL.js";const D={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"140",fill:"none"};const $={render:function(a,i){return t(),e("svg",D,i[0]||(i[0]=[l('<g mask="url(#mask0_17_619)"><path fill="#97A3B7" d="M30 62h88v60H30z"></path><g filter="url(#filter0_f_17_619)"><path fill="#E3E6EB" d="M12 84h80v60H12z"></path></g><g filter="url(#filter1_f_17_619)"><path fill="#E3E6EB" d="M80 54h80v60H80z"></path></g><path fill="#fff" d="M46 105h32v2H46zM46 98h32v2H46zM46 88h16v2H46z"></path></g><path fill="currentcolor" d="M63 20h88v10H63z" opacity=".9"></path><mask id="a" width="88" height="50" x="63" y="30" maskUnits="userSpaceOnUse" style="mask-type:alpha;"><path fill="currentcolor" d="M63 30h88v50H63z"></path></mask><g mask="url(#a)"><path fill="currentcolor" d="M63 30h88v50H63z"></path><g filter="url(#filter2_f_17_619)" opacity=".3"><path fill="#97A3B7" d="M30 62h88v60H30z"></path></g></g><path fill="#fff" fill-rule="evenodd" d="m95.686 40.858 10.278 10.277A4 4 0 0 1 107 51c2.213 0 4 1.786 4 4q-.002.538-.134 1.033l10.276 10.28-2.828 2.829-4.598-4.597A17.1 17.1 0 0 1 107 65.909c-7.273 0-13.484-4.524-16-10.91a17.3 17.3 0 0 1 5.696-7.472l-3.838-3.84zM99 55a8.003 8.003 0 0 0 12.063 6.892l-3.029-3.026q-.496.132-1.034.134c-2.213 0-4-1.787-4-4q.002-.538.134-1.034l-3.027-3.027A7.96 7.96 0 0 0 99 54.999m8-10.91c7.273 0 13.484 4.524 16 10.91a17.3 17.3 0 0 1-4.166 6.177l-4.105-4.105a8.003 8.003 0 0 0-9.801-9.8l-2.55-2.551c1.47-.41 3.02-.63 4.622-.63" clip-rule="evenodd"></path><path fill="#fff" d="M68 24h2v2h-2zM74 24h2v2h-2zM80 24h66v2H80z"></path><path fill="#fff" stroke="#000" d="m157 54 24.249 42h-48.498z"></path><path stroke="#000" d="M157 89V71"></path>',8)]))}},N={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"140",fill:"none"};const W={render:function(a,i){return t(),e("svg",N,i[0]||(i[0]=[l('<g mask="url(#mask0_16559_24301)"><path fill="#97A3B7" d="M30 62h88v60H30z"></path><g filter="url(#filter0_f_16559_24301)"><path fill="#E3E6EB" d="M12 84h80v60H12z"></path></g><g filter="url(#filter1_f_16559_24301)"><path fill="#E3E6EB" d="M80 54h80v60H80z"></path></g><path stroke="#fff" stroke-width="2" d="m49 93-7 7 7 7M69 107l7-7-7-7M62.365 87.443l-6.73 25.114"></path></g><path fill="currentcolor" d="M63 20h88v10H63z" opacity=".9"></path><mask id="a" width="88" height="50" x="63" y="30" maskUnits="userSpaceOnUse" style="mask-type:alpha;"><path fill="currentcolor" d="M63 30h88v50H63z"></path></mask><g mask="url(#a)"><path fill="currentcolor" d="M63 30h88v50H63z"></path><g filter="url(#filter2_f_16559_24301)" opacity=".3"><path fill="#97A3B7" d="M30 62h88v60H30z"></path></g></g><path fill="#fff" fill-rule="evenodd" d="M105.25 41c6.765 0 12.25 5.484 12.25 12.25 0 2.433-.709 4.7-1.932 6.606L121 65.288 117.288 69l-5.432-5.432a12.2 12.2 0 0 1-6.606 1.932C98.484 65.5 93 60.016 93 53.25S98.484 41 105.25 41m0 3.5a8.75 8.75 0 1 0 0 17.5 8.75 8.75 0 0 0 0-17.5" clip-rule="evenodd"></path><path fill="#fff" d="M68 24h2v2h-2zM74 24h2v2h-2zM80 24h66v2H80z"></path><path fill="#fff" fill-rule="evenodd" d="M153 56c-12.15 0-22 9.85-22 22 0 4.604 1.414 8.878 3.832 12.41L127 98.5l12.495-3.132A21.9 21.9 0 0 0 153 100c12.15 0 22-9.85 22-22s-9.85-22-22-22" clip-rule="evenodd"></path><path fill="#000" d="M131 78h.5zm3.832 12.41.359.348.284-.293-.23-.337zM127 98.5l-.359-.348-1.219 1.259 1.7-.426zm12.495-3.132.307-.394-.192-.15-.237.06zM153 100v.5zm22-22h-.5zm-43.5 0c0-11.874 9.626-21.5 21.5-21.5v-1c-12.426 0-22.5 10.074-22.5 22.5zm3.745 12.128A21.4 21.4 0 0 1 131.5 78h-1c0 4.708 1.446 9.08 3.919 12.693zm-.772-.066-7.832 8.09.718.696 7.832-8.09zm-7.351 8.923 12.494-3.132-.243-.97-12.495 3.132zM153 99.5c-4.976 0-9.555-1.69-13.198-4.526l-.615.789A22.4 22.4 0 0 0 153 100.5zM174.5 78c0 11.874-9.626 21.5-21.5 21.5v1c12.426 0 22.5-10.074 22.5-22.5zM153 56.5c11.874 0 21.5 9.626 21.5 21.5h1c0-12.426-10.074-22.5-22.5-22.5z"></path>',8)]))}},J={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"140",fill:"none"};const K={render:function(a,i){return t(),e("svg",J,i[0]||(i[0]=[l('<g mask="url(#mask0_16559_24251)"><path fill="#97A3B7" d="m68 48 38.105 22v44L68 136l-38.105-22V70z"></path><g filter="url(#a)"><path fill="#E3E6EB" d="M46.391 92h80v60h-80z"></path></g><g filter="url(#b)"><path fill="#E3E6EB" d="M0 23h80v60H0z"></path></g></g><mask id="c" width="78" height="88" x="80" y="9" maskUnits="userSpaceOnUse" style="mask-type:alpha;"><path fill="currentcolor" d="m119 9 38.105 22v44L119 97 80.895 75V31z"></path></mask><g mask="url(#c)"><path fill="currentcolor" fill-rule="evenodd" d="M80.895 31v44L119 97l38.105-22V31L119 53z" clip-rule="evenodd"></path><path fill="currentcolor" d="m119-35 38.105 22v44.5L119 53.5l-38.105-22V-13z" opacity=".9"></path><g filter="url(#d)" opacity=".3"><path fill="#97A3B7" d="m68 48 38.105 22v44L68 136l-38.105-22V70z"></path></g></g><path fill="#fff" stroke="#000" d="m143 68.822 4.867 17.053.133.466.469-.118 17.202-4.312-12.335 12.741-.337.348.337.348 12.335 12.741-17.202-4.312-.469-.118-.133.466L143 121.178l-4.867-17.053-.133-.466-.469.118-17.202 4.312 12.335-12.741.337-.348-.337-.348-12.335-12.741 17.202 4.312.469.118.133-.466z"></path><path fill="#fff" fill-rule="evenodd" d="m123.243 35.082 2.828-1.633-2.828-1.633-2.829 1.633zM119 32.632 121.828 31l-7.071-4.082-2.828 1.633zm8.485 3.267c-4.679 2.701-12.291 2.701-16.97 0-4.68-2.702-4.68-7.096 0-9.798s12.291-2.701 16.97 0c4.68 2.702 4.68 7.096 0 9.798m-19.799-11.43c-6.248 3.607-6.248 9.455 0 13.062s16.38 3.607 22.628 0 6.248-9.455 0-13.062-16.38-3.607-22.628 0M41.899 86.286l2.828 1.633v6.532L41.9 92.818zm12.02 6.94 2.829 1.634v6.532l-2.828-1.633zm-9.19 14.289-2.83-1.633.001 3.266 2.828 1.633zl9.192 5.307v3.266l2.828 1.633v-3.266l-2.828-1.633v-3.266l-9.192-5.307z" clip-rule="evenodd"></path><defs><filter id="a" width="180" height="160" x="-3.609" y="42" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_16559_24251" stdDeviation="25"></feGaussianBlur></filter><filter id="b" width="180" height="160" x="-50" y="-27" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_16559_24251" stdDeviation="25"></feGaussianBlur></filter><filter id="d" width="88.21" height="100" x="23.895" y="42" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_16559_24251" stdDeviation="3"></feGaussianBlur></filter></defs>',6)]))}},Q={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"140",fill:"none"};const Y={render:function(a,i){return t(),e("svg",Q,i[0]||(i[0]=[l('<g mask="url(#mask0_22_990)"><path fill="#97A3B7" fill-rule="evenodd" d="m144.569 105.61-48 27.712-48-27.712V83.712L96.57 56l48 27.713z" clip-rule="evenodd"></path><g filter="url(#filter0_f_22_990)"><path fill="#E3E6EB" d="M-3 33.999h80v60H-3z"></path></g><g filter="url(#filter1_f_22_990)"><path fill="#E3E6EB" d="M97 97.999h80v60H97z"></path></g></g><mask id="a" width="86" height="69" x="53" y="16" maskUnits="userSpaceOnUse" style="mask-type:alpha;"><path fill="currentcolor" fill-rule="evenodd" d="m113.357 42.715 16.472-9.51a36 36 0 0 0-3.186-2.043c-5.375-3.104-11.92-5.147-18.885-6.139-4.209-5.562-10.18-8.898-17.324-8.828-6.755.087-15.486 5.746-21.507 14.365q-1.247.622-2.432 1.306c-14.378 8.3-16.94 20.75-7.473 30.065-1.035-5.805-.31-10.865 3.101-16.215-.058.632-.21 4.427-.232 5.067-.67 18.914 15.02 34.058 26.139 33.928 8.45-.1 15.565-5.013 20.319-12.631 6.214-1.231 12.089-3.294 17.094-6.183 13.476-7.78 16.567-19.182 9.104-28.268l-16.599 9.582c1.762 3.654.049 7.823-5.078 10.783-5.126 2.96-12.347 3.948-18.677 2.931-2.843-.469-5.522-1.342-7.74-2.622l-.049-.028zM78.655 53.773c-6.127-3.977-5.683-10.226 1.195-14.197s17.703-4.226 24.591-.69zM93.556 18.17c4.61-.04 8.728 2.405 11.94 6.57-8.447-.918-17.384-.326-25.523 1.765 3.699-5.124 8.471-8.275 13.583-8.335m-2.232 63.447c-5.853.068-10.971-3.926-14.377-10.332 8.845 2.342 18.925 2.775 28.427 1.317-3.756 5.52-8.714 8.951-14.05 9.015" clip-rule="evenodd"></path></mask><g mask="url(#a)"><path fill="currentcolor" fill-rule="evenodd" d="m113.357 42.715 16.472-9.51a36 36 0 0 0-3.186-2.043c-5.375-3.104-11.92-5.147-18.885-6.139-4.209-5.562-10.18-8.898-17.324-8.828-6.755.087-15.486 5.746-21.507 14.365q-1.247.622-2.432 1.306c-14.378 8.3-16.94 20.75-7.473 30.065-1.035-5.805-.31-10.865 3.101-16.215-.058.632-.21 4.427-.232 5.067-.67 18.914 15.02 34.058 26.139 33.928 8.45-.1 15.565-5.013 20.319-12.631 6.214-1.231 12.089-3.294 17.094-6.183 13.476-7.78 16.567-19.182 9.104-28.268l-16.599 9.582c1.762 3.654.049 7.823-5.078 10.783-5.126 2.96-12.347 3.948-18.677 2.931-2.843-.469-5.522-1.342-7.74-2.622l-.049-.028zM78.655 53.773c-6.127-3.977-5.683-10.226 1.195-14.197s17.703-4.226 24.591-.69zM93.556 18.17c4.61-.04 8.728 2.405 11.94 6.57-8.447-.918-17.384-.326-25.523 1.765 3.699-5.124 8.471-8.275 13.583-8.335m-2.232 63.447c-5.853.068-10.971-3.926-14.377-10.332 8.845 2.342 18.925 2.775 28.427 1.317-3.756 5.52-8.714 8.951-14.05 9.015" clip-rule="evenodd"></path><g filter="url(#filter2_f_22_990)" opacity=".3"><path fill="#97A3B7" d="m96.569 56 48 27.712v55.426l-48 27.712-48-27.712V83.712z"></path></g></g><circle cx="155" cy="78" r="22" fill="#fff" stroke="#000" transform="rotate(180 155 78)"></circle><path stroke="#000" d="M155 83V65"></path><path fill="#C4C4C4" stroke="#000" stroke-linejoin="round" stroke-width="2" d="M155 87h.004v.004H155z"></path><path stroke="#fff" stroke-width="2" d="M96.57 112V88M86.57 98l10-10 9.999 10"></path>',7)]))}},Z={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"140",fill:"none"};const P={render:function(a,i){return t(),e("svg",Z,i[0]||(i[0]=[l('<mask id="a" width="78" height="88" x="80" y="9" maskUnits="userSpaceOnUse" style="mask-type:alpha;"><path fill="currentColor" d="m119 9 38.105 22v44L119 97 80.895 75V31z"></path></mask><g mask="url(#a)"><path fill="currentColor" d="m119 9 38.105 22v44L119 97 80.895 75V31z"></path><g filter="url(#b)" opacity=".3"><path fill="#97A3B7" d="m68 48 38.105 22v44L68 136l-38.105-22V70z"></path></g></g><mask id="c" width="78" height="88" x="29" y="48" maskUnits="userSpaceOnUse" style="mask-type:alpha;"><path fill="#97A3B7" d="m68 48 38.105 22v44L68 136l-38.105-22V70z"></path></mask><g mask="url(#c)"><path fill="#97A3B7" d="m68 48 38.105 22v44L68 136l-38.105-22V70z"></path><g filter="url(#d)"><path fill="#E3E6EB" d="M46.391 92h80v60h-80z"></path></g><g filter="url(#e)"><path fill="#E3E6EB" d="M0 23h80v60H0z"></path></g></g><path fill="#fff" d="m41.898 86.287 2.829 1.633v6.531l-2.828-1.632zM53.919 93.227l2.828 1.633v6.532l-2.828-1.633zM44.728 107.515l-2.829-1.633v3.266l2.829 1.633zl9.191 5.308v3.265l2.829 1.633v-3.266l-2.828-1.632v-3.266l-9.193-5.308z"></path><path fill="#fff" fill-rule="evenodd" d="M108.348 23.48c-2.16 2.51-1.813 5.903 1.047 8.08 3.265 2.486 8.568 2.447 11.845-.087 3.276-2.534 3.286-6.603.021-9.089-2.86-2.177-7.284-2.417-10.54-.74l5.202 3.96-2.373 1.836z" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="m120.865 33.009 8.965 6.826 2.373-1.836-8.965-6.826q-.481.523-1.089.993-.608.468-1.284.843m-1.203-.916a8.5 8.5 0 0 0 1.305-.828 7.248 7.248 0 0 1 0 0 8.5 8.5 0 0 1-1.305.828" clip-rule="evenodd"></path><path fill="#fff" stroke="#181818" d="m144 70 24.249 42h-48.498z"></path><path stroke="#181818" d="M144 100V82"></path><path stroke="#181818" stroke-linejoin="round" stroke-width="2" d="M144 105h.004v.004H144z"></path><defs><filter id="b" width="88.21" height="100" x="23.895" y="42" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_216_313" stdDeviation="3"></feGaussianBlur></filter><filter id="d" width="180" height="160" x="-3.609" y="42" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_216_313" stdDeviation="25"></feGaussianBlur></filter><filter id="e" width="180" height="160" x="-50" y="-27" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_216_313" stdDeviation="25"></feGaussianBlur></filter></defs>',11)]))}},X={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"140",fill:"none"};const ee={render:function(a,i){return t(),e("svg",X,i[0]||(i[0]=[l('<g mask="url(#mask0_21_716)"><path fill="#97A3B7" fill-rule="evenodd" d="M33 46.843 96.321 119l63.322-72.157C142.742 32 120.583 23 96.321 23 72.061 23 49.901 32 33 46.843" clip-rule="evenodd"></path><g filter="url(#filter0_f_21_716)"><path fill="#E3E6EB" d="M95 21h80v60H95z"></path></g><g filter="url(#filter1_f_21_716)"><path fill="#E3E6EB" d="M-7 43h80v60H-7z"></path></g></g><path fill="currentcolor" d="m72.812 63.688-3.157 3.157 6.246 6.247a50.3 50.3 0 0 0-12.713 8.151L96.321 119l11.913-13.575 6.413 6.412 3.157-3.157L80.45 71.326zM129.455 81.243l-15.318 17.455-28.74-28.74a50.4 50.4 0 0 1 10.924-1.19c12.695 0 24.29 4.709 33.134 12.475"></path><path fill="#fff" stroke="#000" d="m152 21.822 4.867 17.053.133.465.469-.117 17.202-4.312-12.335 12.741-.337.348.337.348 12.335 12.741-17.202-4.312-.469-.117-.133.465L152 74.178l-4.867-17.053-.133-.465-.469.117-17.202 4.312 12.335-12.741.337-.348-.337-.348-12.335-12.741 17.202 4.312.469.117.133-.465z"></path><path stroke="#fff" stroke-width="2" d="M101 31 90 42l11 11-8 8"></path>',4)]))}},te={class:"result-container"},le={class:"result-bg-img"},ae={class:"result-title"},ie={class:"result-tip"},re=w(a({__name:"index",props:{bgUrl:String,title:String,tip:String,type:String},setup(l){const a=l,n=i((()=>{switch(a.type){case"403":default:return $;case"404":return W;case"500":return K;case"ie":return Y;case"wifi":return ee;case"maintenance":return P}}));return(a,i)=>(t(),e("div",te,[r("div",le,[(t(),o(p(n.value)))]),r("div",ae,d(l.title),1),r("div",ie,d(l.tip),1),s(a.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-50bd89bc"]]),se={class:"flex-1 w-full overflow-hidden flex flex-col"},oe={class:"flex flex-col justify-center items-center gap-3 w-full"},pe={class:"text-center"},de={class:"text-2xl font-bold"},ne=["title"],fe={class:"text-center p-2"},he={key:0,class:"flex flex-col items-center align-middle gap-5 w-full p-2 overflow-y-auto no-scrollbar"},ce=["title"],ue={class:"flex gap-1"},me={class:"w-[200px] whitespace-nowrap text-ellipsis overflow-hidden"},ve={class:"w-full relative"},ge=a({name:"NewConversation",setup(l){const a=T(),s=_(),w=k(),D=n(null);f((()=>s.query.id),(e=>{if("/conversation/index"!==s.path)return void(D.value=null);const t=e;D.value=t?a.find(t):a.defaultAgent}),{immediate:!0}),B();const $=i((()=>y.availableModels.value.map((e=>({...e,title:y.getModelItemTitle(e)}))))),N=n([]),W=e=>{},J=M(),K=e=>{if(0===N.value.length)return void R.error(H("pages.conversation.noSelectModelMsg"));const t={id:q(),name:D.value.name,avatar:D.value.avatar,agentId:D.value.id,content:D.value.content,models:[],time:(new Date).getTime(),pinned:!1,maxContextSize:10,aspectRatio:"IMAGE_ASPECT_RATIO_SQUARE",internet:!1};t.models=N.value.map((e=>({modelId:e,chats:[],startContext:0,apiAgentId:"",apiConversationId:"",apiNote:"",showing:!0,status:{responseWating:!1,chating:!1,stop:!1}}))),J.add(t),N.value=[],A.setData(e),w.push({path:"/conversation/chat",query:{id:t.id,isNew:1}})},Q=E(),Y=i((()=>{let e="h-[calc(100vh-2*var(--td-comp-paddingTB-m))]";return Q.showLayoutHeader&&Q.showFooter&&(e="h-[calc(100vh-var(--td-comp-size-xxl)-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]"),Q.showLayoutHeader&&!Q.showFooter&&(e="h-[calc(100vh-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]"),!Q.showLayoutHeader&&Q.showFooter&&(e="h-[calc(100vh-var(--td-comp-size-xxl)-2*var(--td-comp-paddingTB-m))]"),e})),Z=e=>{w.push(e)};return(l,a)=>{const i=U,s=b,n=V,f=L,_=I,k=G,w=C,B=O;return h((t(),e("div",{class:x(["flex flex-col items-center w-full gap-5",Y.value])},[r("div",se,[r("div",oe,[u(i,{size:"80px",image:D.value.avatar},null,8,["image"]),r("div",pe,[r("h1",de,d(D.value.name),1),u(s,{underline:"",theme:"primary",onClick:a[0]||(a[0]=e=>Z("/setting/agent"))},{default:m((()=>[v(d(l.$t("pages.conversation.switchAgent")),1)])),_:1})]),r("div",{class:"text-center text-sm text-gray-500 w-full overflow-hidden whitespace-nowrap text-ellipsis",title:D.value.content},d(D.value.content),9,ne)]),r("div",fe,[r("span",null,d(l.$t("pages.conversation.modelTips",{max_model_num:g(S)})),1)]),$.value.length>0?(t(),e("div",he,[u(w,{modelValue:N.value,"onUpdate:modelValue":a[1]||(a[1]=e=>N.value=e),onChange:W,max:g(S),class:"w-full"},{default:m((()=>[u(k,{gutter:[{xs:0,sm:16,md:16,lg:16,xl:16,xxl:16},16],class:"w-full"},{default:m((()=>[(t(!0),e(j,null,z($.value,(e=>(t(),o(_,{key:e.id,xs:12,lg:4,xl:3},{default:m((()=>[u(f,{class:"shadow-md",bordered:!1},{default:m((()=>[r("div",{class:"flex justify-between overflow-hidden",title:e.title},[r("div",ue,[u(i,{size:"20px",class:"mr-1"},{icon:m((()=>[(t(),o(p(g(y).icons[e.type])))])),_:2},1024),r("div",me,d(e.title),1)]),(t(),o(n,{key:e.id,value:e.id},null,8,["value"]))],8,ce)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["modelValue","max"])])):(t(),o(re,{key:1,type:"404",title:l.$t("pages.conversation.emptyModelTips")},{default:m((()=>[u(B,{size:"large",theme:"primary",variant:"base",onClick:a[2]||(a[2]=e=>Z("/setting/model"))},{default:m((()=>[v(d(l.$t("pages.conversation.createModel")),1)])),_:1})])),_:1},8,["title"]))]),r("div",ve,[u(F,{onInput:K})])],2)),[[c,D.value]])}}});export{ge as default};
.output/public/assets/index-BlW40Hj7.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{r as e,q as a,c as t,R as l,J as o,N as s,w as n,p as r,b as u,e as i,j as d,m,u as c,O as p,A as v,n as g,U as f,P as h,x as y,f as _}from"./tdesign-vue-next-BiEwLJDx.js";import{l as b,f as j,v as V,y as w,R as x,a9 as $,F as U,A as k,B as F,a as T,o as z,j as C,z as M,H as B,aa as A,J as S,ac as H,u as O,G as R}from"./@vue-CfxotJ-S.js";import{D,_ as E,b as I,u as N,t as L,S as P,e as K,c as q,m as J,v as G,w as W}from"./mermaid-render-DYiT7KKL.js";import{u as X,a as Q,b as Y}from"./main-BVjjoCN0.js";import{_ as Z}from"./avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js";import{b as ee}from"./@vueuse-B4dz7nOv.js";import{d as ae}from"./vuedraggable-DAEPkKhD.js";import{a9 as te,aa as le,c as oe}from"./tdesign-icons-vue-next-Bre5yOVt.js";import"./lodash-es-RhymR7yg.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./mermaid-r27wrvTx.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./vue-router-DKqWD4MR.js";import"./vue-BIpqWpgL.js";import"./@dicebear-JcnEMRoc.js";import"./uuid-_R2nDvl_.js";const se=b({__name:"CloudflareKVHTTPDriverForm",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:l}){const o=t,s=l,n=j({get:()=>o.modelValue,set:e=>s("update:modelValue",e)}),r=e=>{s("update:modelValue",{...n.value})};return(t,l)=>{const o=e,s=a;return w(),V(U,null,[x(s,{label:"API Base",name:"apiBase","initial-data":""},{default:$((()=>[x(o,{placeholder:"",modelValue:n.value.apiURL,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value.apiURL=e),onChange:r},null,8,["modelValue"])])),_:1}),x(s,{label:"Account",name:"accountId","initial-data":""},{default:$((()=>[x(o,{placeholder:"",modelValue:n.value.accountId,"onUpdate:modelValue":l[1]||(l[1]=e=>n.value.accountId=e),onChange:r},null,8,["modelValue"])])),_:1}),x(s,{label:"Namespace",name:"namespaceId","initial-data":""},{default:$((()=>[x(o,{placeholder:"",modelValue:n.value.namespaceId,"onUpdate:modelValue":l[2]||(l[2]=e=>n.value.namespaceId=e),onChange:r},null,8,["modelValue"])])),_:1}),x(s,{label:"API Token",name:"apiToken","initial-data":""},{default:$((()=>[x(o,{type:"password",placeholder:"",modelValue:n.value.apiToken,"onUpdate:modelValue":l[3]||(l[3]=e=>n.value.apiToken=e),onChange:r},null,8,["modelValue"])])),_:1})],64)}}}),ne=Object.defineProperty({__proto__:null,default:se,driverConfig:{name:"cloudflareKVHTTP",component:"CloudflareKVHTTPDriverForm"}},Symbol.toStringTag,{value:"Module"}),re={xmlns:"http://www.w3.org/2000/svg",width:"88",height:"48",fill:"none"};const ue={render:function(e,a){return w(),V("svg",re,a[0]||(a[0]=[k("path",{fill:"var(--td-component-border)",d:"M0 0h88v48H0z"},null,-1),k("path",{fill:"var(--td-text-color-primary)",d:"M42.863 14.052v2.708h1.625v-2.708z"},null,-1),k("path",{fill:"var(--td-text-color-primary)","fill-rule":"evenodd",d:"M38.349 23.982a5.326 5.326 0 1 1 10.653 0 5.326 5.326 0 0 1-10.653 0m5.326-3.701a3.701 3.701 0 1 0 0 7.403 3.701 3.701 0 0 0 0-7.403M52.208 26.781h-2.621l-2.06 6.699 1.552.478.511-1.661h2.614l.511 1.66 1.554-.477zm-.503 3.89-.697-2.265h-.221l-.697 2.266z","clip-rule":"evenodd"},null,-1),k("path",{fill:"var(--td-text-color-primary)",d:"m48.208 18.3 1.915-1.914 1.149 1.15-1.915 1.914zM53.606 23.17h-2.709v1.625h2.709zM44.488 31.205v2.708h-1.625v-2.708zM37.228 31.579l1.915-1.915-1.15-1.15-1.914 1.916zM36.453 24.795h-2.708V23.17h2.708zM36.079 17.535l1.915 1.915 1.149-1.15-1.915-1.914z"},null,-1)]))}},ie={xmlns:"http://www.w3.org/2000/svg",width:"88",height:"48",fill:"none"};const de={render:function(e,a){return w(),V("svg",ie,a[0]||(a[0]=[k("path",{fill:"#13161B",d:"M0 0h88v48H0z"},null,-1),k("path",{fill:"#949EAA","fill-rule":"evenodd",d:"M52.533 26.87q-.748.129-1.533.13a9 9 0 0 1-8.533-11.87A9 9 0 0 0 44 33a9 9 0 0 0 8.533-6.13","clip-rule":"evenodd"},null,-1)]))}},me={xmlns:"http://www.w3.org/2000/svg",width:"88",height:"48",fill:"none"};const ce={render:function(e,a){return w(),V("svg",me,a[0]||(a[0]=[k("path",{fill:"var(--td-component-border)",d:"M0 0h88v48H0z"},null,-1),k("path",{fill:"var(--td-text-color-primary)","fill-rule":"evenodd",d:"M44 20.583a3.417 3.417 0 1 0 0 6.833 3.417 3.417 0 0 0 0-6.833M39.083 24a4.917 4.917 0 1 1 9.834 0 4.917 4.917 0 0 1-9.834 0M43.25 17.333v-2.5h1.5v2.5zM48.184 18.755l1.767-1.767 1.06 1.06-1.767 1.768zM50.667 23.25h2.5v1.5h-2.5zM49.244 28.184l1.768 1.767-1.06 1.06-1.768-1.767zM44.75 30.666v2.5h-1.5v-2.5zM39.816 29.244l-1.767 1.768-1.061-1.061 1.767-1.768zM37.333 24.75h-2.5v-1.5h2.5zM38.756 19.816l-1.768-1.768 1.06-1.06 1.768 1.767z","clip-rule":"evenodd"},null,-1)]))}},pe=E(b({__name:"index",props:{value:{type:String}},setup(e){const a=e,t=j((()=>{const{value:e}=a;return{background:D.indexOf(e)>-1?e:"conic-gradient(from 90deg at 50% 50%, #FF0000 -19.41deg, #FF0000 18.76deg, #FF8A00 59.32deg, #FFE600 99.87deg, #14FF00 141.65deg, #00A3FF 177.72deg, #0500FF 220.23deg, #AD00FF 260.13deg, #FF00C7 300.69deg, #FF0000 340.59deg, #FF0000 378.76deg)"}}));return(e,a)=>(w(),V("div",{style:F(t.value),class:"color-container"},null,4))}}),[["__scopeId","data-v-f0f6ec52"]]),ve={class:"setting-container"},ge={class:"setting-group-title"},fe={style:{textAlign:"center",marginTop:"8px"}},he={class:"setting-group-title"},ye={class:"setting-layout-drawer"},_e={key:0,class:"setting-info mt-10"},be=b({__name:"appearance",setup(e){I();const d=N(),m=[
2
+ //@ts-ignore
3
+ {type:"light",text:L("pages.setting.theme.options.light")},{type:"dark",text:L("pages.setting.theme.options.dark")},{type:"auto",text:L("pages.setting.theme.options.auto")}],c=j((()=>-1===D.indexOf(p.value.brandTheme)?p.value.brandTheme:"")),p=T({...(()=>{const e=P;for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]=d[a]);return e})()}),v=T(!1),g=e=>{p.value.brandTheme=e};z((()=>{var e;null==(e=document.querySelector(".dynamic-color-btn"))||e.addEventListener("click",(()=>{v.value=!0}))}));const f=(e,a)=>{e||"document"!==a.trigger||(v.value=e)},h=()=>{const e=JSON.stringify(p.value,null,4),{copy:a}=ee({source:e});a().then((()=>{i.closeAll(),i.success(L("pages.setting.copy.success"))})).catch((()=>{i.closeAll(),i.error(L("pages.setting.copy.fail"))}))};return C((()=>{p.value.brandTheme&&d.updateConfig(p.value)})),(e,i)=>{const d=l,y=t,_=s,b=o,j=n,F=a,T=r,z=u;return w(),V("div",ve,[x(T,{ref:"form",data:p.value,"label-align":"left"},{default:$((()=>[k("div",ge,B(e.$t("pages.setting.theme.mode")),1),x(y,{modelValue:p.value.mode,"onUpdate:modelValue":i[0]||(i[0]=e=>p.value.mode=e)},{default:$((()=>[(w(),V(U,null,A(m,((e,a)=>k("div",{key:a,class:"setting-layout-drawer"},[k("div",null,[(w(),S(d,{key:a,value:e.type},{default:$((()=>{return[(w(),S(H((a=e.type,"light"===a?ce:"dark"===a?de:ue))))];var a})),_:2},1032,["value"])),k("p",fe,B(e.text),1)])]))),64))])),_:1},8,["modelValue"]),k("div",he,B(e.$t("pages.setting.theme.color")),1),x(y,{modelValue:p.value.brandTheme,"onUpdate:modelValue":i[1]||(i[1]=e=>p.value.brandTheme=e)},{default:$((()=>[(w(!0),V(U,null,A(O(D),((e,a)=>(w(),V("div",{key:a,class:"setting-layout-drawer"},[(w(),S(d,{key:a,value:e,class:"setting-layout-color-group"},{default:$((()=>[x(pe,{value:e},null,8,["value"])])),_:2},1032,["value"]))])))),128)),k("div",ye,[x(b,{"destroy-on-close":"","expand-animation":"",placement:"bottom-right",trigger:"click",visible:v.value,"overlay-style":{padding:0},onVisibleChange:f},{content:$((()=>[x(_,{"on-change":g,"color-modes":["monochrome"],format:"HEX","swatch-colors":[]})])),default:$((()=>[x(d,{value:c.value,class:"setting-layout-color-group dynamic-color-btn"},{default:$((()=>[x(pe,{value:c.value},null,8,["value"])])),_:1},8,["value"])])),_:1},8,["visible"])])])),_:1},8,["modelValue"]),k("div",null,[x(F,{label:e.$t("pages.setting.element.showHeader"),name:"showHeader"},{default:$((()=>[x(j,{modelValue:p.value.showHeader,"onUpdate:modelValue":i[2]||(i[2]=e=>p.value.showHeader=e)},null,8,["modelValue"])])),_:1},8,["label"]),x(F,{label:e.$t("pages.setting.element.showNav"),name:"showNav"},{default:$((()=>[x(j,{modelValue:p.value.showNav,"onUpdate:modelValue":i[3]||(i[3]=e=>p.value.showNav=e)},null,8,["modelValue"])])),_:1},8,["label"]),x(F,{label:e.$t("pages.setting.element.showBreadcrumb"),name:"showBreadcrumb"},{default:$((()=>[x(j,{modelValue:p.value.showBreadcrumb,"onUpdate:modelValue":i[4]||(i[4]=e=>p.value.showBreadcrumb=e)},null,8,["modelValue"])])),_:1},8,["label"]),x(F,{label:e.$t("pages.setting.element.showFooter"),name:"showFooter"},{default:$((()=>[x(j,{modelValue:p.value.showFooter,"onUpdate:modelValue":i[5]||(i[5]=e=>p.value.showFooter=e)},null,8,["modelValue"])])),_:1},8,["label"])])])),_:1},8,["data"]),O(false)?(w(),V("div",_e,[k("p",null,B(e.$t("pages.setting.tips")),1),x(z,{theme:"primary",variant:"text",onClick:h},{default:$((()=>[R(B(e.$t("pages.setting.copy.title")),1)])),_:1})])):M("",!0),i[6]||(i[6]=k("div",{class:"text-center text-gray-400"},"4/1/2025, 7:08:32 AM",-1))])}}}),je={class:"flex justify-center"},Ve={class:"font-bold text-xl mb-5"},we={class:"flex"},xe={class:"font-bold text-xl mb-5"},$e={class:"flex flex-col gap-5"},Ue={class:"flex justify-between"},ke={class:"font-bold text-xl"},Fe={class:"flex flex-col gap-5 w-full overflow-hidden"},Te={class:"font-bold text-xl mb-5"},ze=E(b({name:"User",setup(t){const l=K(),o=I(),s=X(),b=N(),F=q(),z=Q(),C=async e=>{try{const a=await async function(e){return new Promise(((a,t)=>{const l=new FileReader;l.onload=function(e){a(e.target.result)},l.onerror=function(e){t(e)},l.readAsText(e)}))}(e.raw);return D(JSON.parse(a)),i.success({content:L("pages.setting.user.import_success")}),{status:"success",error:"",response:{url:" "}}}catch{return i.error({content:L("pages.setting.user.import_failed")}),{status:"fail",error:"",response:{}}}};const D=e=>{var a;if(e.user&&o.$patch(e.user),e.model&&l.$patch(e.model),e.agent&&s.$patch(e.agent),e.setting&&b.$patch(e.setting),e.conversation){const a=function(e,a=640){return e.map((e=>({...e,models:e.models.map((e=>{try{const t=JSON.stringify(e.chats);return(new TextEncoder).encode(t).length/1024>a?{...e,chats:[]}:e}catch{return{...e,chats:[]}}}))})))}(e.conversation.list);F.$patch({...e.conversation,list:a})}e.note&&z.$patch(e.note),(null==(a=e.user)?void 0:a.lang)&&ee(e.user.lang)};function E(){const e=JSON.stringify({user:o.$state,model:l.$state,agent:s.$state,setting:b.$state,conversation:F.$state,note:z.$state},null,2),a=new Blob([e],{type:"application/json"}),t=document.createElement("a");t.href=URL.createObjectURL(a),t.download="config.json",document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(t.href)}const P=window.isElectron,{changeLocale:ee,locale:se}=Y(),re=j({get:()=>se.value,set(e){ee(e)}}),ue=e=>{o.avatar=e};function ie(e,a){const t=a.e,l=t.key,s=[t.ctrlKey?"Ctrl":"",t.metaKey?"Cmd":"",t.altKey?"Alt":"",t.shiftKey?"Shift":""].filter(Boolean).join("+");o.shortcut=`${s}+${l.toUpperCase()}`,t.preventDefault()}const de=j((()=>J.availableModels.value.map((e=>({value:e.id,label:J.getModelItemTitle(e),...e}))))),me=()=>{o.toolBarButtons.push({name:"",icon:null,prompt:"",show:!0})},ce=Object.assign({"./drivers/CloudflareKVHTTPDriverForm.vue":ne}),pe=Object.values(ce).map((e=>e.driverConfig)),ve=j((()=>b.drivers.currentDriver)),ge=j((()=>b.drivers)),fe=j((()=>b.version)),he=j((()=>{const e=pe.find((e=>e.name===ve.value));return e?ce[`./drivers/${e.component}.vue`].default:null})),ye=async e=>{b.updateDriverSettings(e,ge.value[e])};async function _e(e){b.updateDriverSettings(ve.value,e)}const ze=T(!1),Ce=T(!1),Me=T(!1),Be=T(null),Ae=j((()=>{var e;return null==(e=Be.value)?void 0:e.setting.version}));async function Se(){try{if(ze.value=!0,Be.value=await De(),Be.value){new Date(Ae.value)>=new Date(fe.value)||!fe.value?Me.value=!0:(await Ee(),i.success("备份成功"))}else await Ee(),i.success("备份成功")}catch(e){i.error("备份失败: "+e.message)}finally{ze.value=!1}}async function He(){try{Ce.value=!0;const e=await De();if(!e)throw new Error("未找到远程数据");D(e),i.success("恢复成功")}catch(e){i.error("恢复失败: "+e.message)}finally{Ce.value=!1}}async function Oe(){try{ze.value=!0,await Ee(),i.success("备份成功")}catch(e){i.error("备份失败: "+e.message)}finally{Me.value=!1,ze.value=!1}}async function Re(){if(Be.value)try{Ce.value=!0,D(Be.value),i.success("数据已成功恢复")}catch(e){i.error("恢复失败: "+e.message)}finally{Me.value=!1,Ce.value=!1}}const De=async()=>{try{const e=new URLSearchParams({driver:ve.value,config:JSON.stringify(ge.value[ve.value])}),a=await fetch(`${W()}/config?${e.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!a.ok)throw new Error(await a.text());return(await a.json()).data}catch(e){throw e}};async function Ee(){try{b.version=(new Date).toISOString();const e={user:o.$state,model:l.$state,agent:s.$state,setting:b.$state,conversation:F.$state,note:z.$state},a=await fetch(W()+"/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,driver:ve.value,config:ge.value[ve.value]})});if(!a.ok)throw new Error(await a.text())}catch(e){throw e}}return(t,l)=>{const s=e,i=a,b=m,j=p,F=c,T=v,z=g,D=d,I=u,N=f,L=r,K=n,q=h,W=y,X=_;return w(),S(X,{shadow:"",class:"overflow-hidden",bordered:!1},{default:$((()=>[x(L,{ref:"form",class:"flex flex-col gap-8","label-align":"top"},{default:$((()=>[k("div",je,[x(Z,{ref:"avatarRef",url:O(o).avatar,onUpdate:ue},null,8,["url"])]),k("div",null,[k("h1",Ve,B(t.$t("pages.setting.user.basic_settings")),1),x(D,{class:"row-gap",gutter:[32,24]},{default:$((()=>[x(b,{xs:12,lg:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.username"),name:"name"},{default:$((()=>[x(s,{modelValue:O(o).name,"onUpdate:modelValue":l[0]||(l[0]=e=>O(o).name=e),placeholder:t.$t("pages.setting.user.enter_username")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),x(b,{xs:12,lg:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.language"),name:"lang"},{default:$((()=>[x(F,{modelValue:re.value,"onUpdate:modelValue":l[1]||(l[1]=e=>re.value=e),class:"demo-select-base",clearable:""},{default:$((()=>[(w(!0),V(U,null,A(O(G),((e,a)=>(w(),S(j,{key:a,value:`${e.value}`,label:`${e.content}`},{default:$((()=>[R(B(e.content),1)])),_:2},1032,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1},8,["label"])])),_:1}),O(P)?(w(),S(b,{key:0,xs:12,lg:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.shortcut"),name:"shortcut"},{default:$((()=>[x(s,{onKeydown:ie,modelValue:O(o).shortcut,"onUpdate:modelValue":l[2]||(l[2]=e=>O(o).shortcut=e),placeholder:t.$t("pages.setting.user.enter_shortcut")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1})):M("",!0),x(b,{xs:12,lg:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.assist_model"),name:"assistModel"},{default:$((()=>[x(F,{modelValue:O(o).assistModel,"onUpdate:modelValue":l[3]||(l[3]=e=>O(o).assistModel=e),tips:t.$t("pages.setting.user.assist_model_tips"),filterable:""},{default:$((()=>[(w(!0),V(U,null,A(de.value,(e=>(w(),S(j,{key:e.value,value:e.value,label:e.label},{default:$((()=>[k("div",we,[x(T,{size:"20px",class:"mr-1"},{icon:$((()=>[(w(),S(H(O(J).icons[e.type])))])),_:2},1024),R(" "+B(e.label),1)])])),_:2},1032,["value","label"])))),128))])),_:1},8,["modelValue","tips"])])),_:1},8,["label"])])),_:1}),x(b,{xs:12,lg:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.remoteHost"),name:"remoteHost"},{default:$((()=>[x(s,{modelValue:O(o).remoteHost,"onUpdate:modelValue":l[4]||(l[4]=e=>O(o).remoteHost=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1}),O(P)?(w(),S(b,{key:1,span:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.open_at_login"),name:"openAtLogin"},{default:$((()=>[x(z,{modelValue:O(o).openAtLogin,"onUpdate:modelValue":l[5]||(l[5]=e=>O(o).openAtLogin=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1})):M("",!0),O(P)?(w(),S(b,{key:2,span:6},{default:$((()=>[x(i,{label:t.$t("pages.setting.user.minimize_to_bottom_right"),name:"minimizeToBottomRight"},{default:$((()=>[x(z,{modelValue:O(o).minimizeToBottomRight,"onUpdate:modelValue":l[6]||(l[6]=e=>O(o).minimizeToBottomRight=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1})):M("",!0)])),_:1})]),k("div",null,[k("h1",xe,B(t.$t("pages.setting.user.import_config")),1),x(L,null,{default:$((()=>[x(i,{label:"存储类型",name:"driverType","initial-data":""},{default:$((()=>[x(F,{modelValue:ve.value,"onUpdate:modelValue":l[7]||(l[7]=e=>ve.value=e),onChange:ye,placeholder:"Select Driver"},{default:$((()=>[(w(!0),V(U,null,A(O(pe),(e=>(w(),S(j,{key:e.name,value:e.name,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1}),(w(),S(H(he.value),{modelValue:ge.value[ve.value],"onUpdate:modelValue":[l[8]||(l[8]=e=>ge.value[ve.value]=e),_e]},null,8,["modelValue"])),x(D,{class:"row-gap",gutter:[24,24]},{default:$((()=>[x(b,{xs:6,lg:3,class:"flex justify-center"},{default:$((()=>[x(I,{onClick:Se,loading:ze.value},{default:$((()=>l[11]||(l[11]=[R("备份到服务器")]))),_:1},8,["loading"])])),_:1}),x(b,{xs:6,lg:3,class:"flex justify-center"},{default:$((()=>[x(I,{onClick:He,loading:Ce.value},{default:$((()=>l[12]||(l[12]=[R("从服务器恢复")]))),_:1},8,["loading"])])),_:1}),x(b,{xs:6,lg:3,class:"flex justify-center"},{default:$((()=>[x(N,{theme:"custom","request-method":C,multiple:!1},{default:$((()=>[x(I,{theme:"primary"},{default:$((()=>[R(B(t.$t("pages.setting.user.import_local_config")),1)])),_:1})])),_:1})])),_:1}),x(b,{xs:6,lg:3,class:"flex justify-center"},{default:$((()=>[x(I,{theme:"primary",onClick:E},{default:$((()=>[R(B(t.$t("pages.setting.user.export_local_config")),1)])),_:1})])),_:1})])),_:1})])),_:1})]),k("div",$e,[k("div",Ue,[k("h1",ke,B(t.$t("pages.setting.user.toolbar_settings")),1),x(I,{shape:"square",variant:"text",onClick:me},{default:$((()=>[x(O(te),{slot:"icon"})])),_:1})]),k("div",Fe,[x(O(ae),{modelValue:O(o).toolBarButtons,"onUpdate:modelValue":l[9]||(l[9]=e=>O(o).toolBarButtons=e),"item-key":"id",animation:150,class:"flex flex-col gap-5",handle:".drag-handle"},{item:$((({element:e})=>[x(D,{gutter:{xs:8,sm:16,md:24,lg:32,xl:32,xxl:40},class:"items-center"},{default:$((()=>[x(b,{xs:2,sm:1},{default:$((()=>[x(I,{shape:"square",variant:"text",class:"drag-handle cursor-move"},{default:$((()=>[x(O(le))])),_:1})])),_:1}),x(b,{xs:2,sm:2},{default:$((()=>[x(s,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),x(b,{xs:3,sm:5},{default:$((()=>[x(s,{modelValue:e.prompt,"onUpdate:modelValue":a=>e.prompt=a,placeholder:"提示词"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),x(b,{xs:2,sm:2},{default:$((()=>[x(s,{modelValue:e.icon,"onUpdate:modelValue":a=>e.icon=a,placeholder:"图标"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),x(b,{xs:2,sm:1,class:"flex justify-end"},{default:$((()=>[x(K,{modelValue:e.show,"onUpdate:modelValue":a=>e.show=a},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),x(b,{xs:1,sm:1,class:"flex justify-end"},{default:$((()=>[x(q,{content:t.$t("pages.setting.user.confirm_delete"),onConfirm:a=>(e=>{o.toolBarButtons=o.toolBarButtons.filter((a=>a!==e))})(e)},{default:$((()=>[x(I,{shape:"square",variant:"text"},{default:$((()=>[x(O(oe),{slot:"icon"})])),_:1})])),_:2},1032,["content","onConfirm"])])),_:2},1024)])),_:2},1024)])),_:1},8,["modelValue"])])]),k("div",null,[k("h1",Te,B(t.$t("pages.setting.user.theme_settings")),1),x(be)])])),_:1},512),x(W,{visible:Me.value,"onUpdate:visible":l[10]||(l[10]=e=>Me.value=e),attach:"body",header:"发现新的备份"},{body:$((()=>[l[13]||(l[13]=k("p",null,"检测到服务器上存在较新的备份数据。您希望如何处理?",-1)),k("p",null,"本地版本:"+B(fe.value),1),k("p",null,"服务器版本:"+B(Ae.value),1)])),footer:$((()=>[x(I,{onClick:Oe,loading:ze.value},{default:$((()=>l[14]||(l[14]=[R("覆盖服务器数据")]))),_:1},8,["loading"]),x(I,{theme:"primary",onClick:Re,loading:Ce.value},{default:$((()=>l[15]||(l[15]=[R("从服务器恢复")]))),_:1},8,["loading"])])),_:1},8,["visible"])])),_:1})}}}),[["__scopeId","data-v-20b252b9"]]);export{ze as default};
.output/public/assets/index-BuO6QTUD.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{t}from"./mermaid-render-DYiT7KKL.js";import{a as e}from"./vue-router-DKqWD4MR.js";import{W as s,X as o,l as i,x as r,f as a,e as p}from"./tdesign-vue-next-BiEwLJDx.js";import{l as m,f as j,a as l,J as n,y as d,a9 as u,R as c,G as v,H as f}from"./@vue-CfxotJ-S.js";import{a as g}from"./main-BVjjoCN0.js";import"./mermaid-r27wrvTx.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./lodash-es-RhymR7yg.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./@vueuse-B4dz7nOv.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./tdesign-icons-vue-next-Bre5yOVt.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vuedraggable-DAEPkKhD.js";import"./vue-BIpqWpgL.js";const h=m({name:"About Page",setup(m){const h=g(),y=j((()=>h.data)),b=e(),k=[{title:t("pages.note.tableTitleName"),align:"left",width:320,colKey:"title",fixed:"left"},{title:t("pages.note.tableOperation"),align:"left",fixed:"right",width:160,colKey:"op"}],x=l({defaultPageSize:20,total:y.value.length,defaultCurrent:1}),C=l(""),w=l(!1),_=()=>{h.remove(C.value),w.value=!1,p.success(t("pages.note.deleteMsgSuccess")),z()},z=()=>{C.value=""},$=()=>{z()};return(t,e)=>{const p=i,m=o,j=s,l=r,g=a;return d(),n(g,null,{default:u((()=>[c(j,{data:y.value,columns:k,"row-key":"id","vertical-align":"top",hover:!0,pagination:x.value},{op:u((e=>[c(m,null,{default:u((()=>[c(p,{theme:"primary",onClick:t=>{return s=e,void b.push(`/note/content?id=${s.row.id}`);var s}},{default:u((()=>[v(f(t.$t("pages.note.detail")),1)])),_:2},1032,["onClick"]),c(p,{theme:"danger",onClick:t=>{return s=e,C.value=s.row.id,void(w.value=!0);var s}},{default:u((()=>[v(f(t.$t("pages.note.delete")),1)])),_:2},1032,["onClick"])])),_:2},1024)])),_:1},8,["data","pagination"]),c(l,{visible:w.value,"onUpdate:visible":e[0]||(e[0]=t=>w.value=t),header:t.$t("layout.sideNav.confirmDelete"),"on-cancel":$,onConfirm:_},null,8,["visible","header"])])),_:1})}}});export{h as default};
.output/public/assets/index-Dh-fABEs.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{a as e}from"./vue-router-DKqWD4MR.js";import{l as t,f as a,J as s,y as i,a9 as r,R as o,z as l,ad as n,u,a as p,w as d,A as m,G as c,H as v,v as g,F as j,aa as f}from"./@vue-CfxotJ-S.js";import{b,A as _,f as h,p as y,q as x,r as z,s as k,x as C,e as w,m as S,j as V,Q as D}from"./tdesign-vue-next-BiEwLJDx.js";import{ac as U,ab as A,d as q}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{t as R}from"./mermaid-render-DYiT7KKL.js";import{_ as B}from"./avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js";import{v as E}from"./uuid-_R2nDvl_.js";import{u as F}from"./main-BVjjoCN0.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./lodash-es-RhymR7yg.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./mermaid-r27wrvTx.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./@vueuse-B4dz7nOv.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./@dicebear-JcnEMRoc.js";import"./vuedraggable-DAEPkKhD.js";import"./vue-BIpqWpgL.js";const H=t({__name:"AgentCard",props:{product:{type:Object}},emits:["start-chat","delete-item"],setup(e,{emit:t}){const p=e,d=a((()=>p.product.content.substring(0,20)+"...")),m=t;return(t,a)=>{const p=_,c=b,v=h;return i(),s(v,{title:e.product.name,description:d.value,"hover-shadow":"",bordered:!1},{avatar:r((()=>[o(p,{size:"56px",image:e.product.avatar},null,8,["image"])])),actions:r((()=>[o(c,{shape:"circle",onClick:a[0]||(a[0]=n((t=>{return a=e.product,void m("start-chat",a);var a}),["stop"])),variant:"text"},{default:r((()=>[o(u(U),{slot:"icon"})])),_:1}),e.product.isDefault?l("",!0):(i(),s(c,{key:0,shape:"circle",onClick:a[1]||(a[1]=n((t=>{return a=e.product,void m("delete-item",a);var a}),["stop"])),variant:"text"},{default:r((()=>[o(u(A),{slot:"icon"})])),_:1}))])),_:1},8,["title","description"])}}}),$={class:"flex flex-col items-center justify-center mb-[var(--td-comp-margin-xxl)]"},I={class:"w-full flex flex-row justify-end gap-3"},J={id:"",name:"",status:"1",content:"",avatar:"",onboarding:"",isDefault:!1},N=t({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:Object},emits:["update:visible"],setup(e,{emit:t}){const a=F(),l=e,n=p(null),g=p(!1),j=p({...J}),f=e=>{j.value.avatar=e},_=({validateResult:e,firstError:t})=>{if(t)return void w.warning(t);const s=!j.value.id||""===j.value.id;s&&(j.value.id=E());const i={id:j.value.id,name:j.value.name,status:"1"===j.value.status,content:j.value.content,avatar:j.value.avatar,onboarding:j.value.onboarding,isDefault:j.value.isDefault};s?(a.add(i),w.success(R("pages.setting.agent.submit_success"))):(a.update(i),w.success(R("pages.setting.agent.update_success"))),g.value=!1},h=()=>{g.value=!1},S=t;d((()=>g.value),(e=>{S("update:visible",e)})),d((()=>l.visible),(e=>{g.value=e})),d((()=>l.data),(e=>{j.value=e}),{immediate:!0});const V={name:[{required:!0,message:R("pages.setting.agent.enter_agent_name"),type:"error"}],content:[{required:!0,message:R("pages.setting.agent.enter_agent_description"),type:"error"}]};return(e,t)=>{const a=z,l=x,p=k,d=b,w=y,S=C;return i(),s(S,{visible:g.value,"onUpdate:visible":t[2]||(t[2]=e=>g.value=e),header:j.value.id?u(R)("pages.setting.agent.editor_agent"):u(R)("pages.setting.agent.add_agent"),placement:"top",width:680,footer:!1},{body:r((()=>[o(w,{ref:"form",data:j.value,rules:V,"label-width":100,"label-align":"top",onSubmit:_},{default:r((()=>[m("div",$,[o(B,{ref_key:"avatarRef",ref:n,url:j.value.avatar,onUpdate:f},null,8,["url"])]),o(l,{label:u(R)("pages.setting.agent.agent_name"),name:"name"},{default:r((()=>[o(a,{modelValue:j.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>j.value.name=e)},null,8,["modelValue"])])),_:1},8,["label"]),o(l,{label:u(R)("pages.setting.agent.agent_description"),name:"content"},{default:r((()=>[o(p,{modelValue:j.value.content,"onUpdate:modelValue":t[1]||(t[1]=e=>j.value.content=e),autosize:{minRows:5,maxRows:12},name:"content"},null,8,["modelValue"])])),_:1},8,["label"]),o(l,null,{default:r((()=>[m("div",I,[o(d,{variant:"outline",onClick:h},{default:r((()=>[c(v(u(R)("pages.setting.agent.cancel")),1)])),_:1}),o(d,{theme:"primary",type:"submit"},{default:r((()=>[c(v(u(R)("pages.setting.agent.confirm")),1)])),_:1})])])),_:1})])),_:1},8,["data"])])),_:1},8,["visible","header"])}}}),O={class:"list-card-items"},Q={class:"list-card-pagination"},W=t({name:"ListAgent",setup(t){const l=e(),n=p(void 0),d=F(),c=p({current:1,pageSize:35,total:0}),v=a((()=>{const e=[d.defaultAgent,...d.agents];return c.value.total=e.length,e})),b=a((()=>n.value?R("pages.setting.agent.confirm_delete_agent",{agentName:n.value.name}):"")),y=p(!1),x=p(!1),z=p({...J}),k=e=>{c.value.pageSize=e,c.value.current=1},U=e=>{c.value.current=e},A=e=>{x.value=!0,n.value=e},B=()=>{d.remove(n.value.id),x.value=!1,w.success(R("pages.setting.agent.delete_success"))},E=()=>{n.value=void 0},$=e=>{l.push({path:"/conversation/index",query:{id:e.id}})},I=()=>{z.value={...J},y.value=!0};return(e,t)=>{const a=_,l=h,n=S,p=V,d=D,w=C;return i(),g("div",null,[m("div",O,[o(p,{gutter:[16,16]},{default:r((()=>[o(n,{xs:12,lg:4,xl:3},{default:r((()=>[o(l,{theme:"normal","hover-shadow":"",class:"list-card-item h-[108px] border-dashed",style:{"border-color":"var(--td-brand-color-active)"},title:e.$t("pages.setting.agent.add_agent"),onClick:I},{avatar:r((()=>[o(a,{size:"56px"},{icon:r((()=>[o(u(q))])),_:1})])),_:1},8,["title"])])),_:1}),(i(!0),g(j,null,f(v.value.slice(c.value.pageSize*(c.value.current-1),c.value.pageSize*c.value.current),(e=>(i(),s(n,{key:e.id,xs:12,lg:4,xl:3},{default:r((()=>[o(H,{class:"list-card-item h-[108px]",product:e,onDeleteItem:A,onStartChat:$,onClick:t=>(e=>{z.value={id:e.id,name:e.name,status:e.status?"1":"0",content:e.content,avatar:e.avatar,onboarding:e.onboarding,isDefault:e.isDefault},y.value=!0})(e)},null,8,["product","onClick"])])),_:2},1024)))),128))])),_:1})]),m("div",Q,[o(d,{modelValue:c.value.current,"onUpdate:modelValue":t[0]||(t[0]=e=>c.value.current=e),"page-size":c.value.pageSize,"onUpdate:pageSize":t[1]||(t[1]=e=>c.value.pageSize=e),total:c.value.total,"page-size-options":[35],onPageSizeChange:k,onCurrentChange:U},null,8,["modelValue","page-size","total","page-size-options"])]),o(N,{visible:y.value,"onUpdate:visible":t[2]||(t[2]=e=>y.value=e),data:z.value},null,8,["visible","data"]),o(w,{visible:x.value,"onUpdate:visible":t[3]||(t[3]=e=>x.value=e),header:e.$t("pages.setting.agent.confirm_delete_selected_agent"),body:b.value,"on-cancel":E,onConfirm:B},null,8,["visible","header","body"])])}}});export{W as default};
.output/public/assets/main-BVjjoCN0.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-0Y7UjkS7.js","./@vue-CfxotJ-S.js","./@babel-ynFNPEB3.js","./core-js-pure-Dnpx5JGu.js","./vue-router-DKqWD4MR.js","./mermaid-render-DYiT7KKL.js","./mermaid-r27wrvTx.js","./@mermaid-js-C9iCgeAb.js","./langium-BVNt58jJ.js","./vscode-jsonrpc-B7fdjHWu.js","./chevrotain-Cp5uJ8YW.js","./@chevrotain-DFy4Htpj.js","./lodash-es-RhymR7yg.js","./chevrotain-allstar-WPou0XcH.js","./vscode-languageserver-types-BtnkyLj9.js","./vscode-languageserver-textdocument-ygi3JyHC.js","./vscode-uri-DEKkV-x5.js","./ts-dedent-CttZBlkd.js","./d3-transition-0ltv4da8.js","./d3-timer-keMr1twq.js","./d3-dispatch-Chq_f_hl.js","./d3-interpolate-Ct9kki6l.js","./d3-color-D5ULnJIe.js","./d3-selection-Oxnq6l6A.js","./d3-ease-Cx6bG2vu.js","./d3-zoom-Dz8HuW59.js","./dompurify-z_KyBU9t.js","./stylis-Cl7w7uv3.js","./dagre-d3-es-D8JeTxsO.js","./@braintree-BB7t-Iuh.js","./khroma-C2oHPU0S.js","./dayjs-Cbdj87rt.js","./d3-scale-CdkN4P7M.js","./internmap-B8oPgqVZ.js","./d3-array-BhN1wQGI.js","./d3-format-C0lSXcPg.js","./d3-time-format-DB2uBv1t.js","./d3-time-B1kAM736.js","./d3-axis-pCwzqJ1S.js","./d3-shape-C6CU9yox.js","./d3-path-QSrLXsQ3.js","./roughjs-Bkc4UHOn.js","./cytoscape-DQzyuV5c.js","./cytoscape-cose-bilkent-CcQu5e-H.js","./cose-base-kQthUiMK.js","./layout-base-DqRk0Tgc.js","./d3-sankey-B6tQBass.js","./d3-scale-chromatic-FDBKL9jm.js","./@iconify-BUO7KvjM.js","./marked-CrLTNeyQ.js","./cytoscape-fcose-B58q80h4.js","./pinia-gf2247cH.js","./pinia-plugin-persistedstate-DyrI1rJI.js","./destr-ClW9AvhW.js","./deep-pick-omit-DP_A4OSP.js","./eventsource-parser-D0ssca5s.js","./lodash-VDnThKtA.js","./tdesign-vue-next-BiEwLJDx.js","./tdesign-icons-vue-next-Bre5yOVt.js","./tdesign-icons-vue-next-BGgy7GQY.css","./sortablejs-DGtSoqI-.js","./@popperjs-B4tvfKWZ.js","./tdesign-vue-next-BiLJzazs.css","./@vueuse-B4dz7nOv.js","./vue-i18n-BLIfPQxk.js","./@intlify-eboPrqDD.js","./@mozilla-BD532_dh.js","./tvision-color-BdwcCUqE.js","./chroma-js-CJzpYopr.js","./@material-C_XhzpVg.js","./bezier-easing-BncZ6jfA.js","./ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js","./mammoth-Cw8VHd7C.js","./xlsx-DB6BMndo.js","./pdfjs-dist-8WFUNQXM.js","./ChatInput-BMuO6hgs.css","./app-_ksMLlTy.js","./uuid-_R2nDvl_.js","./vuedraggable-DAEPkKhD.js","./vue-BIpqWpgL.js","./index-DWphMrS1.css","./chat-DJXGKSt5.js","./avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js","./@dicebear-JcnEMRoc.js","./ToolBar.vue_vue_type_style_index_0_lang-DF5WdeM2.js","./markdown-6PNN04BW.js","./markdown-it-link-attributes-DRKqjf49.js","./markdown-it-C8SkdHr7.js","./mdurl-CDXpswLz.js","./uc.micro-CLkLCS2f.js","./entities-D7HTx9ov.js","./linkify-it-LcVOBuC5.js","./punycode.js-Bmr3cAX8.js","./@traptitech-xv_Vpjqh.js","./katex-Vs6-m9jZ.js","./markdown-it-highlightjs-6zEPG1Qy.js","./highlight.js-ato5kCvT.js","./@wdns-DyBUtl2Y.js","./ua-parser-js--QiuJfYt.js","./ToolBar-D6vK1x-j.css","./lyihub-zLFv36Ly.js","./chat-DFdPOgte.css","./index-BlW40Hj7.js","./index-Bg5EKroP.css","./index-CEnBk6VQ.js","./index-Dh-fABEs.js","./index-C6KOsl_W.js","./FrameContent-ChW-dtxF.js","./FrameContent-CUoI637t.css","./about-0-DUd88i.js","./help-C4-g_Zuv.js","./changelog-DFPFb8dr.js","./index-BuO6QTUD.js","./content-CekGICAg.js","./content-CXerDfC_.css"])))=>i.map(i=>d[i]);
2
+ var e;import{i as t,l as a,a as s,_ as n,p as i,u as r,b as o,c as l,t as d,s as c,d as u,m as p}from"./mermaid-render-DYiT7KKL.js";import{f as m,l as v,J as h,y as f,a9 as g,v as y,aa as A,G as D,H as C,F as E,ab as j,ac as b,I as w,u as k,R as F,z as x,A as _,o as S,a as I,w as M,ad as L,V as R,U as O}from"./@vue-CfxotJ-S.js";import{_ as z}from"./@mermaid-js-C9iCgeAb.js";import{u as P,a as V,c as U,b as N}from"./vue-router-DKqWD4MR.js";import{u as T}from"./@vueuse-B4dz7nOv.js";import{u as W}from"./vue-i18n-BLIfPQxk.js";import{B as X,a as Q,H as G,M as H,L as B,C as Z,F as J,S as q,b as Y,R as K,c as $,d as ee,P as te,T as ae,A as se,e as ne,f as ie,g as re,h as oe,i as le,j as de}from"./tdesign-vue-next-BiEwLJDx.js";import{d as ce}from"./pinia-gf2247cH.js";import{Q as ue,R as pe,d as me,B as ve,S as he,T as fe,K as ge,U as ye}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{d as Ae}from"./vuedraggable-DAEPkKhD.js";import"./lodash-VDnThKtA.js";import"./mermaid-r27wrvTx.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./lodash-es-RhymR7yg.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./@intlify-eboPrqDD.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vue-BIpqWpgL.js";const De=ce("agent",{state:()=>({agents:[],defaultAgent:{id:"1",name:"小助手",content:"你是一个有用的人工智能助手。你可以通过回答我的问题来帮助我。",status:!0,avatar:"data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20180%20180%22%20fill%3D%22none%22%20shape-rendering%3D%22auto%22%3E%3Cmetadata%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Adcterms%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%22%3E%3Crdf%3ARDF%3E%3Crdf%3ADescription%3E%3Cdc%3Atitle%3EBottts%3C%2Fdc%3Atitle%3E%3Cdc%3Acreator%3EPablo%20Stanley%3C%2Fdc%3Acreator%3E%3Cdc%3Asource%20xsi%3Atype%3D%22dcterms%3AURI%22%3Ehttps%3A%2F%2Fbottts.com%2F%3C%2Fdc%3Asource%3E%3Cdcterms%3Alicense%20xsi%3Atype%3D%22dcterms%3AURI%22%3Ehttps%3A%2F%2Fbottts.com%2F%3C%2Fdcterms%3Alicense%3E%3Cdc%3Arights%3ERemix%20of%20%E2%80%9EBottts%E2%80%9D%20(https%3A%2F%2Fbottts.com%2F)%20by%20%E2%80%9EPablo%20Stanley%E2%80%9D%2C%20licensed%20under%20%E2%80%9EFree%20for%20personal%20and%20commercial%20use%E2%80%9D%20(https%3A%2F%2Fbottts.com%2F)%3C%2Fdc%3Arights%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cmask%20id%3D%22viewboxMask%22%3E%3Crect%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%220%22%20ry%3D%220%22%20x%3D%220%22%20y%3D%220%22%20fill%3D%22%23fff%22%20%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23viewboxMask)%22%3E%3Cg%20transform%3D%22translate(0%2066)%22%3E%3Cmask%20id%3D%22sidesAntenna01-a%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%226%22%20y%3D%2211%22%20width%3D%22156%22%20height%3D%2251%22%3E%3Cg%20fill%3D%22%23fff%22%3E%3Crect%20x%3D%226%22%20y%3D%2231%22%20width%3D%2236%22%20height%3D%2214%22%20rx%3D%224%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2214%22%20width%3D%2236%22%20height%3D%2248%22%20rx%3D%224%22%2F%3E%3Crect%20x%3D%22126%22%20y%3D%2228%22%20width%3D%2236%22%20height%3D%2224%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22M11%2011h2v20h-2z%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23sidesAntenna01-a)%22%3E%3Cpath%20d%3D%22M0%200h180v76H0V0Z%22%20fill%3D%22%2300acc1%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20fill-opacity%3D%22.3%22%20d%3D%22M0%200h180v76H0z%22%2F%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.1%22%20d%3D%22M0%2038h180v38H0z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23fff%22%20fill-opacity%3D%22.4%22%20d%3D%22M11%2011h2v20h-2z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%20fill%3D%22%23FFEA8F%22%2F%3E%3Ccircle%20cx%3D%2213%22%20cy%3D%227%22%20r%3D%222%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(41)%22%3E%3Cmask%20id%3D%22topPyramid-a%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2218%22%20y%3D%228%22%20width%3D%2264%22%20height%3D%2244%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22m50%208%2032%2044H18L50%208Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23topPyramid-a)%22%3E%3Cpath%20d%3D%22M0%200h100v52H0V0Z%22%20fill%3D%22%2300acc1%22%2F%3E%3Cpath%20d%3D%22M0%200h100v52H0V0Z%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.3%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20fill-opacity%3D%22.8%22%20d%3D%22M50%204h30v48H50z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(25%2044)%22%3E%3Cmask%20id%3D%22faceRound01-a%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22130%22%20height%3D%22120%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M66%200c58.35%200%2064%2040.69%2064%2078%200%2033.31-25.47%2042-64%2042-37.46%200-66-8.69-66-42C0%2040.69%207.65%200%2066%200Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23faceRound01-a)%22%3E%3Cpath%20d%3D%22M-4-2h138v124H-4V-2Z%22%20fill%3D%22%2300acc1%22%2F%3E%3Cg%20transform%3D%22translate(-1%20-1)%22%3E%3Cg%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23000%22%3E%3Cpath%20d%3D%22M-9.12%20122.1c4.36-30.7%2013.06-4.57%2033.99-9.98%209.24-2.39%201.77-12.82%208.67-17.35%205.82-3.82%2013.76-.74%2020.43-3.21%209.63-3.57%209.5-10.82%2018.48-11.9%208.48-1.03%2017.37%202.34%2025.93%201.08%2016.15-2.4%209.53-34.03%2021.64-39.61%2012.1-5.6%2032.05%204.06%2034.66%2019.87%202.54%2015.42-14.46%2072.78-14.46%2072.78H-9.12%22%20fill-opacity%3D%22.2%22%2F%3E%3Cpath%20d%3D%22M35.93%20122c37.67%200%2041.6-14.75%2060.14-21.5%2018.53-6.76%2034.78%2010.71%2041-6.27%206.24-16.98%206.2%2035.95%206.2%2035.95H35.94V122Z%22%20fill-opacity%3D%22.1%22%2F%3E%3Cpath%20d%3D%22M-2%204.87C9.73%203.75%205.96%2016.8%2010.6%2016.8c1.85%200%204.03-8.46%207.38-8.46%202.46%200%202%205.5%207.32%204.91%205-.54%204.08-4%206.6-4%205.45%200%203.39%2020.2%207.74%2020.2%204.36%200%205.73-14.8%207.65-20.64%202.43-7.4%2016.97-11.56%206.6-14.5H-2.29%22%20fill-opacity%3D%22.4%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(52%20124)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%2010.22C18%2021.78%2024.47%2028%2038%2028c13.52%200%2020-6.34%2020-17.78C58%209.5%2057.17%208%2055%208H21c-2.05%200-3%201.38-3%202.22Z%22%20fill%3D%22%23000%22%20fill-opacity%3D%22.8%22%2F%3E%3Cmask%20id%3D%22mouthSmile02-a%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2218%22%20y%3D%228%22%20width%3D%2240%22%20height%3D%2220%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%2010.22C18%2021.78%2024.47%2028%2038%2028c13.52%200%2020-6.34%2020-17.78C58%209.5%2057.17%208%2055%208H21c-2.05%200-3%201.38-3%202.22Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23mouthSmile02-a)%22%3E%3Crect%20x%3D%2230%22%20y%3D%222%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(38%2076)%22%3E%3Cg%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M53%200c34.75%200%2049%2017.47%2049%2031%200%2013.53-19.59%2017-49%2017-29.05%200-51-3.47-51-17S17.11%200%2053%200Z%22%20fill%3D%22%23000%22%20fill-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M28.82%2034.65c-6.53-1.35-11.24-6.34-10.52-11.14.72-4.79%206.6-7.58%2013.12-6.23%206.53%201.36%2011.24%206.35%2010.52%2011.15-.72%204.8-6.6%207.59-13.12%206.23ZM75.42%2034.65c-6.52%201.36-12.4-1.43-13.12-6.23-.72-4.8%204-9.8%2010.52-11.15%206.52-1.35%2012.4%201.44%2013.12%206.24.72%204.81-4%209.8-10.52%2011.15Z%22%20fill%3D%22%2325A6F5%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",onboarding:"你好,我是小助手",isDefault:!0}}),getters:{},actions:{add(e){e.id!==this.defaultAgent.id&&this.agents.push(e)},remove(e){this.defaultAgent.id!==e&&(this.agents=this.agents.filter((t=>t.id!==e)))},update(e){if(this.defaultAgent.id===e.id)return void(this.defaultAgent=e);const t=this.agents.findIndex((t=>t.id===e.id));-1!==t&&(this.agents[t]=e)},find(e){return this.defaultAgent.id===e?this.defaultAgent:this.agents.find((t=>t.id===e))}}});const Ce={getItem:e=>window.ipcRenderer.sendSync("GetConfig","note.json",e)||null,setItem:(e,t)=>{window.ipcRenderer.send("SaveConfig","note.json",e,t)}},Ee=ce("note",{state:()=>({list:[]}),getters:{data(){return this.list}},actions:{add(e){this.list.push(e)},remove(e){this.list=this.list.filter((t=>t.id!==e))},update(e){const t=this.list.findIndex((t=>t.id===e.id));-1!==t&&(this.list[t]=e)},find(e){return this.list.find((t=>t.id===e))}},persist:{
3
+ // 在这里进行自定义配置
4
+ storage:window.ipcRenderer?Ce:localStorage}});function je(){const{locale:e}=W({useScope:"global"});return{changeLocale:function(t){s.includes(t)||(t="zh_CN"),e.value=t,T(a,"zh_CN").value=t},getComponentsLocale:m((()=>t.global.getLocaleMessage(e.value).componentsLocale)),locale:e}}const be=n(v({__name:"Breadcrumb",setup(e){const{locale:t}=je(),a=P(),s=m((()=>{const e=a.path.split("/");e.shift();return e.reduce(((e,s,n)=>{var i;const r=null==(i=a.matched[n])?void 0:i.meta;if((null==r?void 0:r.hiddenBreadcrumb)||Object.values(a.params).includes(s))return e;let o=s;return(null==r?void 0:r.title)&&(o="string"==typeof r.title?r.title:r.title[t.value]),e.push({path:s,to:e[n-1]?`/${e[n-1].path}/${s}`:`/${s}`,title:o}),e}),[])}));return(e,t)=>{const a=Q,n=X;return f(),h(n,{"max-item-width":"150",class:"tdesign-breadcrumb"},{default:g((()=>[(f(!0),y(E,null,A(s.value,(e=>(f(),h(a,{key:e.to,to:e.to},{default:g((()=>[D(C(e.title),1)])),_:2},1032,["to"])))),128))])),_:1})}}}),[["__scopeId","data-v-7ec7ffe3"]]),we=n(v({__name:"Content",setup:e=>(e,t)=>{const a=j("router-view");return f(),h(a,null,{default:g((({Component:e})=>[(f(),h(b(e)))])),_:1})}}),[["__scopeId","data-v-d7ed7a08"]]),ke=n(v({__name:"Footer",setup:e=>(e,t)=>(f(),y("div",{class:w([k(i)+"-footer","flex justify-center items-center"])},"Copyright © 2021-"+C((new Date).getFullYear())+" openseedsoft. All Rights Reserved",3))}),[["__scopeId","data-v-f64c9180"]]),Fe=v({__name:"SettingMenu",props:{theme:{type:String,default:"light"},menu:{type:Array,default:()=>[]}},setup(e){const t=e;V(),r(),De();const{locale:a}=je(),s=m((()=>nt())),n=m((()=>t.theme));return(t,i)=>{const r=H,o=G;return f(),h(o,{theme:n.value,value:s.value,class:"shadow-md"},{default:g((()=>[(f(!0),y(E,null,A(e.menu,(e=>(f(),h(r,{key:e.path,value:`/setting/${e.path}`,to:{path:e.path}},{default:g((()=>{return[D(C((t=e.meta.title,"string"==typeof t?t:t[a.value])),1)];var t})),_:2},1032,["value","to"])))),128))])),_:1},8,["theme","value"])}}}),xe=v({__name:"LayoutContent",setup(e){const t=r(),a=o(),s=P();let n=tt;const l=m((()=>{var e;if(0==s.path.startsWith("/setting"))return null;return(null==(e=n.find((e=>"/setting"===e.path)))?void 0:e.children).filter((e=>{var t,s;return!(null==(t=e.meta)?void 0:t.isPro)||(null==(s=e.meta)?void 0:s.isPro)&&a.isPro})).filter((e=>(e.path.includes("api"),!0)))}));return(e,a)=>{const s=Z,n=J,r=B;return f(),h(r,{class:w([`${k(i)}-layout`,"flex flex-col h-full"])},{default:g((()=>[F(s,{class:w([`${k(i)}-content-layout`,"flex-1"])},{default:g((()=>[k(t).showBreadcrumb?(f(),h(be,{key:0})):x("",!0),l.value?(f(),h(Fe,{key:1,theme:k(t).displayMode,menu:l.value,class:"mb-4 w-full overflow-x-auto"},null,8,["theme","menu"])):x("",!0),F(we)])),_:1},8,["class"]),k(t).showFooter?(f(),h(n,{key:0,class:w(`${k(i)}-footer-layout`)},{default:g((()=>[F(ke)])),_:1},8,["class"])):x("",!0)])),_:1},8,["class"])}}}),_e=v({__name:"MenuContent",props:{navData:{type:Array,default:()=>[]}},setup(e){const t=e,a=m((()=>nt())),{locale:s}=je(),n=m((()=>{const{navData:e}=t;return o(e)})),i=e=>{if("string"==typeof e.icon)return React.createElement("t-icon",{name:e.icon});return e.icon},r=e=>"string"==typeof e?e:e[s.value],o=(e,t)=>e&&0!==e.length?(e.sort(((e,t)=>{var a,s;return((null==(a=e.meta)?void 0:a.orderNo)||0)-((null==(s=t.meta)?void 0:s.orderNo)||0)})),e.map((e=>{var a,s;const n=t&&!e.path.includes(t)?`${t}/${e.path}`:e.path;return{path:n,title:null==(a=e.meta)?void 0:a.title,icon:null==(s=e.meta)?void 0:s.icon,children:o(e.children,n),meta:e.meta,redirect:e.redirect}})).filter((e=>e.meta&&!0!==e.meta.hidden))):[],l=e=>{const{frameSrc:t,frameBlank:a}=e.meta;return t&&a?t.match(/(http|https):\/\/([\w.]+\/?)\S*/):null},d=e=>{var t;return a.value.split("/").length>e.path.split("/").length&&a.value.startsWith(e.path)||a.value===e.path?a.value:(null==(t=e.meta)?void 0:t.single)?e.redirect:e.path};return(e,t)=>{const a=H,s=j("menu-content",!0),o=q;return f(),y("div",null,[(f(!0),y(E,null,A(n.value,(e=>{var t;return f(),y(E,{key:e.path},[e.children&&e.children.length&&!(null==(t=e.meta)?void 0:t.single)?(f(),h(o,{key:1,name:e.path,value:e.path,title:r(e.title)},{icon:g((()=>[(f(),h(b(i(e)),{class:"t-icon"}))])),default:g((()=>[e.children?(f(),h(s,{key:0,"nav-data":e.children},null,8,["nav-data"])):x("",!0)])),_:2},1032,["name","value","title"])):(f(),y(E,{key:0},[l(e)?(f(),h(a,{key:0,name:e.path,value:d(e),onClick:t=>{return a=l(e)[0],void window.open(a);var a}},{icon:g((()=>[(f(),h(b(i(e)),{class:"t-icon"}))])),default:g((()=>[D(" "+C(r(e.title)),1)])),_:2},1032,["name","value","onClick"])):(f(),h(a,{key:1,name:e.path,value:d(e),to:{path:e.path}},{icon:g((()=>[(f(),h(b(i(e)),{class:"t-icon"}))])),default:g((()=>[D(" "+C(r(e.title)),1)])),_:2},1032,["name","value","to"]))],64))],64)})),128))])}}}),Se={class:"header-operate-left"},Ie={key:1,class:"text-center font-bold w-full pr-16 overflow-hidden text-ellipsis whitespace-nowrap"},Me=n(v({__name:"Header",props:{theme:{type:String,default:"light"},menu:{type:Array,default:()=>[]},isCompact:{type:Boolean,default:!1},maxLevel:{type:Number,default:3}},setup(e){const t=e;V();const{locale:a}=je(),s=P(),n=r(),o=l(),d=m((()=>nt())),c=m((()=>[`${i}-header-layout`])),u=m((()=>t.theme)),p=()=>{n.updateConfig({isSidebarCompact:!n.isSidebarCompact})};function v(e,t,a=""){for(const s of e){const e=a+s.path;if(e===t)return s;if(s.children){const a=v(s.children,t,e+"/");if(a)return a}}return null}const A=m((()=>{var e,t;if(s.path.startsWith("/setting")){return(null==(e=v(tt,"/setting"))?void 0:e.meta).title[a.value]}if("/conversation/chat"===s.path){return o.find(s.query.id).name}const n=null==(t=v(tt,s.path))?void 0:t.meta;return n?n.title[a.value]:s.path}));return(t,a)=>{const s=Y,i=G;return f(),y("div",{class:w([c.value,"h-full"])},[F(i,{theme:u.value,"expand-type":"popup",value:d.value},{logo:g((()=>[_("div",Se,[F(s,{theme:"default",shape:"square",variant:"text",onClick:p},{default:g((()=>[F(k(ue),{name:"view-list"})])),_:1})])])),default:g((()=>[!0===k(n).showNav?(f(),h(_e,{key:0,class:"header-menu","nav-data":e.menu},null,8,["nav-data"])):(f(),y("div",Ie,C(A.value),1))])),operations:g((()=>a[0]||(a[0]=[_("div",{class:"operations-container"},null,-1)]))),_:1},8,["theme","value"])],2)}}}),[["__scopeId","data-v-066d80f0"]]),Le=v({__name:"LayoutHeader",setup(e){const t=r();let a=tt;return(e,s)=>(f(),h(Me,{theme:k(t).displayMode,menu:k(a),"is-compact":k(t).isSidebarCompact},null,8,["theme","menu","is-compact"]))}}),Re=""+new URL("assets-t-logo-CxwPZnhN.png",import.meta.url).href,Oe={name:"seedchat",private:!0,description:"seedchat",author:{name:"zhepama",email:"[email protected]"},version:"1.0.6",type:"module",scripts:{debug:'concurrently "npm run server:dev" "npm run render:debug"',dev:'concurrently "npm run server:dev" "npm run render:dev"',build:"npm run clean && npm run server:build && npm run render:build && npm run electron:build ","build:local":"npm run build && npm run build:post","build:tencent":"node scripts/tencent.js && cross-env PWA=true vite build","electron:preview":"npm run server:build && vite --mode production","electron:build":"cross-env DEBUG=electron-builder* electron-builder --publish never --dir","render:dev":"vite --mode development --host","render:debug":"cross-env VSCODE_DEBUG=true vite --mode development","render:build":" vite build ","render:preview":"cross-env PWA=true vite build && vite preview","server:pages":"cross-env PWA=true npm run render:build && shx cp -r ./dist/* ./server/public/ && shx rm -rf ./dist && nitro build ","server:build":"nitro build && shx mkdir -p ./dist-server && shx cp -r ./.output/* ./dist-server/","server:cloudflare":" npm run server:cloudflare:script && npm run server:pages ","server:cloudflare:script":"node scripts/cloudflare.js ","server:cloudflare:local":"cross-env NITRO_PRESET=cloudflare_pages nitro build && wrangler pages dev dist/","server:dev":"cross-env CONFIG_PATH=.\\ nitro dev --host","server:prepare":"npm run proto:generate && nitro prepare","server:preview":"node dist-server/server/index.mjs",test:"vitest","build:post":"shx mkdir -p D:\\Applications\\seedchat && shx cp -r ./release/win-unpacked/* D:\\Applications\\seedchat",clean:"shx rm -rf ./dist/* && shx rm -rf ./dist-electron/* && shx rm -rf ./dist-server/* && shx rm -rf ./dist-docs/*","docs:dev":"vuepress dev docs","docs:build":"vuepress build docs","proto:generate":"pbjs -t static-module --es6 -w es6 -o server/proto/messages.js server/proto/messages.proto && pbts -o server/proto/messages.d.ts server/proto/messages.js"},dependencies:{"@dicebear/collection":"^8.0.1","@dicebear/core":"^8.0.1","@grpc/grpc-js":"^1.12.6","@mozilla/readability":"^0.5.0","@traptitech/markdown-it-katex":"^3.6.0","@types/form-data":"^2.5.2","@types/ws":"^8.5.14","@vueuse/core":"^12.7.0","@wdns/vue-code-block":"^2.3.5","electron-context-menu":"^4.0.5","electron-findbar":"^0.6.4","eventsource-parser":"^3.0.0","form-data":"^4.0.2","highlight.js":"^11.11.1",jose:"^6.0.8",mammoth:"^1.9.0","markdown-it":"^14.1.0","markdown-it-highlightjs":"^4.2.0","markdown-it-link-attributes":"^4.0.1",mermaid:"^11.6.0","pdfjs-dist":"^4.10.38",pinia:"^2.3.1","pinia-plugin-persistedstate":"^4.2.0",protobufjs:"^7.4.0","tdesign-icons-vue-next":"^0.3.4","tdesign-vue-next":"latest",turndown:"^7.2.0","tvision-color":"^1.6.0",undici:"^7.4.0",uuid:"^11.1.0",vue:"^3.5.13","vue-i18n":"^11.1.1","vue-router":"^4.5.0",vuedraggable:"^4.1.0",ws:"^8.18.1",xlsx:"^0.18.5"},devDependencies:{"@types/highlight.js":"^10.1.0","@types/markdown-it":"^14.1.2","@types/markdown-it-link-attributes":"^3.0.5","@types/turndown":"^5.0.5","@types/uuid":"^10.0.0","@vitejs/plugin-vue":"^5.2.1","@vuepress/bundler-vite":"^2.0.0-rc.14","@vuepress/theme-default":"^2.0.0-rc.37",autoprefixer:"^10.4.20",concurrently:"^9.1.2","cross-env":"^7.0.3",electron:"^34.0.1","electron-builder":"^25.1.8",less:"^4.2.2",nitropack:"latest",postcss:"^8.5.1","postcss-less":"^6.0.0","protobufjs-cli":"^1.1.3","sass-embedded":"^1.85.1",shx:"^0.3.4","swagger-ui-dist":"^5.20.0",tailwindcss:"^3.4.4",terser:"^5.39.0",typescript:"^5.8.2","unplugin-auto-import":"^19.1.1","unplugin-vue-components":"^28.4.1",vite:"^6.2.0","vite-plugin-electron":"^0.29.0","vite-plugin-electron-renderer":"^0.14.6","vite-plugin-javascript-obfuscator":"^3.1.0","vite-svg-loader":"^5.1.0",vitest:"^3.0.7","vue-tsc":"^2.2.6",vuepress:"^2.0.0-rc.14",wrangler:"^3.106.0"},main:"dist-electron/main.js",overrides:{canvas:"npm:dry-uninstall"}},ze={class:"flex justify-center w-full p-3"},Pe=["src"],Ve={class:"flex align-middle justify-center items-center"},Ue={class:"sidenav-menus overflow-y-auto flex-1"},Ne={class:"p-2"},Te={class:"flex w-full flex-col mb-2 gap-2 items-center align-middle justify-between"},We={class:"text-center"},Xe={class:"version-container"},Qe=n(v({__name:"SideNav",props:{theme:{type:String,default:"light"}},setup(e){o();const t=e,a=m((()=>r().isSidebarCompact)),s=P(),n=m((()=>nt()+`?id=${s.query.id}`)),c=m((()=>a.value?"":"Seed Chat PRO")),u=m((()=>[`${i}-sidebar-layout`,{hidden:a.value}])),p=m((()=>[`${i}-side-nav-logo-${a.value?"t":"tdesign"}-logo`])),v=V(),A=r(),E=()=>{const e=window.innerWidth<=991;A.updateConfig({isSidebarCompact:e,isCompact:e})};S((()=>{E(),window.onresize=()=>{E()}}));const j=()=>{v.push("/")},b=I("conversation"),R=l(),O=Ee(),z=I([]),U=I([]);M((()=>R.list.length),(()=>{z.value=R.data.map((e=>e))}),{immediate:!0}),M((()=>O.list.length),(()=>{U.value=O.data.map((e=>e))}),{immediate:!0});const N=()=>{R.list=[...z.value]},T=()=>{O.list=[...U.value]};M((()=>s.path),(e=>{e.startsWith("/note")?b.value="favorite":b.value="conversation"}),{immediate:!0});const W=e=>{v.push(e)};return(e,s)=>{const i=K,r=$,o=se,l=Y,m=ae,A=te,E=H,S=ee;return f(),y("div",{class:w([u.value,"flex flex-col"])},[_("div",ze,[_("img",{src:a.value?Re:"light"==t.theme?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALMAAAAcCAYAAAAqXo7IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJ6klEQVR4nO1cXYwbVxX+zszY3h/vrtNtEiUEYtTwpz6si0pSUFBMC0Xw0N3CS/MA3YAopUiw5SVqX+q8VFUkYIsqARISzkOL+uaIh0YRECdKf9JIiSO1UqUI4UUNpSTN2rvZ9c947uFhrndnx/eOx2MnefEnjXZ8f849d+a755577p2lS5eWIQTQaAgAgBCAEAzLIhgGwTAAwyAIAarVnB/ZtngkmbSOx+NUajQEiAixGMG2GfW6A9M0kEgYIGIIwThw4B4MMcSdgBGUSQQQERoN8fVq1T69tub8qdnkw8vL9lvVauslIbCb6E6pOsQQwdCSmQhotfjTKyutV6rV1lnb5m+65AYAjNZq4ujqautSrSaeYoY5JPUQdxsdZCYCmDFeq4nnVlZalxsN8XMikJ+sstzO9XXnj8vL9rlGQ3wLIAxJPcTdwgaZ2yRsNsXhWk2cr9fFiwCmu5GTCLBt/tqtW87pRkO85jj8ZY8FH2KIOwarTbxWC1+p152jts3f75WM7bKOw4fX1505IXB8bMx4mYiWw8ugOQBzANKK7CKAEjMXPOWzALLhtdyCPDOXpZxcRBllZs5H1KUMoMDMlV4aJKI03GeUgfo5laRei546OY24jWegaGNeUX6jv1101LWnbTNEvVCgixeXP7W62nq+XhdPMbvk7hfMgGnS1ZER4zeHDk3/IVABogyAPICZLmKXmDntqZcD8EJEFb/BzEUphyPKOMvM2T51OQkgx8yloEJysOQAHAojlJk33qKuf94yirbOKLI2+hug5zyAPwcUedY70Hx1o76HDRirq63fr6+LZwA9kYkA0yRY1uZlGHrWEwFC8OfW1pyXgxqXVqCI7kQGgL0hyoRFaYCy+sEsgKIc0EoQ0SJccoUisqyjlXebkeuSP38b275iAUgFWeNEwkC9LlBdacFuurFowwDGxkxMTFhwHIbjqAcVEW51USAHYCqK5v2g1+ldg0HIANz+F4ko7deLiPIAnowgM9W/Wh0oBWVKq9zN4MzIfpYHpJMXFQuAo8ohAmIxA+ffrODMmWVcv9H0kJaQTJr40hfHMPvYDkxNmrBbkWaJjCZ9Ca7rUYH7YubQ+SBSmron4Pqkvbapal+HFMJZ92Oe+zRcv1r1wqcALMBj2aTrEkTkJQAFbB1UWYTvX6+odMnPhZQzB2BRkX5W0V4K6hmp/Y5T2OxvydK1GI8b+MeZZbz62kewLAP79o1idMQAMwACPvywjr/9/SY++aSFnz29B7EYQYieCa1zLzI+K5UjopS/jKZuvu0P94EyM+f6lAG/DNmHItT9XoAkhHS/gnzwY33qV+6jbgeIaAGdg7QKd7D5B+QCFGRW+eNyQKvIrHzHSjKbJuHmTRtvnLqBZNLCT368G/ffn2y3CjII1WoLr/7lv3j7nSouXKji4Ye3oV7vmcxnNcrOw9fhHlyDctjGFQPktoKZK3KBVULny58ioqx8SXMBYo6EiSr0gUwvheUzzCmy8vLyk3kvEWW6LXq7oKJKVJLZsgjlch0ff9zEo49O44EHJrC25rhWGQDA2LbNwne/cy8uX17Fv5ZqYN4WRak81GT+LRGlIlqfPBEVPb9T2HxBeR8RMlAjI/3Vsq9sClBbkbCQhC4A+KUiOyX/zmmqHxsQkQ9FiB6UNOkLUK97Fpm5TERL6By487JeN6RUibqBoCQzAWjIxd7YqIFWiz1EdmHbjETcPWTUbIqO/DBg5ry0VCrf8AW5Kp/vccF2CPqVfzGkjCmNTjpkFWlXAspXNOkZuFOzTv98SH0AbLgrg0JFIT8FNSlPeNY2BXQO3HlNPT8yoTST0J7N6IWcUYi8WZfn4Tr0KrRDV+noLWxBZUBybldbgXUiRAHSEXToBTloolFElJM+b0qRPSU3yQYK7QLQNF2SOo7rQ/thGG6+EIClyO8FzDxPRGWoFz0zAArSn6x40tMRmipFqHM7kNGkl4IqSderMmhlokAaGJWrBISb1ebhWu2BQUlmx2Hs3pXAxISJ9967hevX78H27bGNaAURgZnx7sUVrK052LEjDiPwMGl3MHNOElq1gzQDd4qd86SpQlzdQmrlkOoEhfcqIWUoIafmbETZWQyGACegf06LCLeJletTh9mIg1PrvinJbLcYe/aM4KsPpXDq9A387pV/Y2ZmApbpktgwCNeuNfDOu1Xs2hXHQwem0IoWZ94C6UOXod5OnQ0RcO81pJbVpA8ivKfDAtRT85JnYRMU5SkMQIeyrn9EVOlWWVrlKJs5fsyhx3UAAga81s1wHMb3Ht8OIRhvvV3F1av/A8hdHDIzLMvA3s+M4IkndmLnzvjGlyphIX2mkp+czFwkoitQW4c0BhwjHRAy3Qp4Fku6+HHBd68i86yMsiyEtGjZEGXCouS5X9SU0c1oKahdkgUEkzn0Fj7gktlUZTgOI5Ew8MMf7MLBgyn851rD3QGU7vHkpIUvfH4MY2Nmz0SWmIf7ck7CfVAluJ3OQjPNeQ4HpTUy0wGnr1JwSecPzyl1k1EWZRvyWvBYUpWlbevSLp/RlAPcDYac53ce+sXVkwCyktTt9jPY7F+GmVOadiKjPXjkc5lVFKkiYJBJ4+V3DQe6vW0BqDGrj3y2z118Nj2CffeNbsljdsNzzaaeyMxIBrRdgvtQ2lc3eLc705oye9H99FrRc5/RlOk6hYYI+ofRpY0t4UcZi16A/gRakGz/tvCgkdOkL3aZLQrQW+eFfhRqwxgdNZ5JJCjPrA+xuR+rii1XoyG029dSzkfj4+bRQSgJOeoHJMuLVL8C+txFrMLd0Sv4M+TscUSW6QVFz31aU6YcUF87tUurrMqvQu96tJHXpM9p2sp0kdcBwzTpn8mkdSSZNA+aJp3rL2YMAHBGRoxfJ5PWg2NjxmJ0aRtYApD1WcJMH/LK/SijQCZivZNw+5XXFZB5GfRmbSue+7SmTLkHeV7kdendfHj5/lQHnPZqYs6pHvQCAFht8sZi9GYsZj3SaIif1uvOs0LgvrAH9dsy4nHjjfFx40XTpPO23blr6MMi3AefhpoQZbhfYxQUeSVsPZHWC4q++6KyVHiUEV6XCuT6IGxISvqTWc9XJlnoX3QRWxeSeaj7Vw5oUtkX2X5eU0eX7kcO6gFWUaSVNbqUdcLpwoWbG/8rg6j9fzJw79qa+FWt5vyCGeNBpJZflXwwPm7mxsfN15kZtu1e8Thh//5IZzaGGKJndGx1CMEwTboxOWk9Pz0dPxCPGwWVPy1/ryaT5nPT07H9IyP0uvxie4gh7gqU+3YueRnxOL0/OWk9nkyaj5kmXfCQWiQSRn56OvZgMmm+RITVIYmHuNvQbpoAm1Y2kTD+Go8bp2o15+lmk7+dSBjHR0eNc+6B/Duh5hBDdMf/AeWEF6kp7RGPAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALMAAAAcCAYAAAAqXo7IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJiklEQVR4nO2cX4wkRR3HP9XdM7N/5vbmWOByiN4Y8F94uMEghwZzIyhGH7hFX+BBWTQiYqKLLwReGF4IIVEXQ6ImJg4PYHhb4gOEqDd34d9BAkOCiQkxzhoQkeN25vb25m93+VA9O70zVT3dvXN3PMw36WxP/X71q19Vfet/9Yo33tjA86Dd9gDwPPA8ieMILEtgWWBZAs9DNJvuD7pd7+Zs1nksnRbVdttDCEEqJeh2Ja2Wi21bZDIWQkg8T3L48CVMMcWFgBUmFAKEELTb3lcbje4LW1vuHzodecfGRvflRqP3qOdxhRAXytUppgiHkcxCQK8nP3nmTO+JRqN3vNuVX1fkBmC22fTu39zsvdFsendLiT0l9RQXGyNkFgKkZL7Z9B44c6b3Zrvt/VQIxDBZfb395865v9/Y6J5ot71vgGBK6ikuFrbJ3Cdhp+Pd0Wx6L7Za3iPA4jhyCgHdrvzK2bPuC+2297Tryi8GevApprhgcPrE6/X4Uqvl3t/tyu/GJWNf13XlHefOuUuex2Nzc9bjQoiNGL4s+U9eI6sAVWAtEFb0nyQoAzX/vZTQRs23k8SXGiov9Zhp5lFlVEBfTlXf9mogrGSwVWZQBsNpLGvCawzyGwZTemFpjosXCeL11zc+sbnZe7DV8u6WUpF7t5ASbFu8MzNj/erIkcXfjVEvoDJ5aIzeOjsrsAQ8lNDFr6EaCIBMaOM4AwIn9eVZP251jF7R1zsS0W6wFk35M9V0ETimCQ/m14Rl4I8h8vvY2dCCSFoP27A2N3u/PXfOuxfMRBYCbFvgOIPHssysFwI8T35ma8t9fEz6eRSpxhEZ4GAEnaioTtDWbnAUlf9CiM4qilxRicwYe+cTpTHy5fOY9lsOkAvrjTMZi1bLo3GmR7ej9qItC+bmbPbscXBdievqG5UQnB3jQAnYm8TzXaL+MbEBKv8VVMMetlkG7kxgM7cLf0yojpEvM77DOYTKZ23X3oyi7gCuTiIEpFIWL75U59ixDT481QmQVpDN2nzh83McvfVy9i7YdHuJRomCIXwdVZF1VMUsMVoQOUPcJwkvLFOauvRNyBGtd3848J5HDdO6Ct8LrLCzZysRTuR1RufdRaLnLy7qY+SliHaW0E81jmvSy6Efkfp1nGOQ36pjSjGdtvjbsQ2eevp9HMfi6qtnmZ2xkBIQ8O67Lf7y19N89FGPn9xzJamUwPNiE9o0vSiws/BKjJK3gB5lBvPhpKgxgQWJxkYO87RqJaCfJ3wO/rDGdhzUdhFXhxVGG2kD1diGG+QKejIXNWEl9GQuo6ljLZltW3D6dJfnnj9FNuvwox9ewTXXZJVQSoQlaDR6PPWn//LKqw1Onmxw0037aLVik/m4wdllRjNcj2izFiP9XAzdSaCOqrQqo5W/15dVUL2XCXcRbVchKQox9XPoG1YZ/TTpoJ9GNWY6QdR1gVoyO46gVmvxwQcdbrllkWuv3cPWlqt6ZQAk+/Y5fPtbl/Lmm5v8a72JlPuSOFVGT+ZfYy6kKDYrgd85BhVUZicRCuhRYHQbqcCA/MUEfvVRR/VYP9fI+vaXDHEfZjJEPkL83YOqIXwF/bpnFVV+64w23GU/3jjk4viiJbMA2v5ib27WoteTASIrdLuSTFpdMup0vBF5RJRRxNDNDR9CEWiZeIutI5hX/pWINvYafDKhqAl7K0S/bggvoIhu8r8c0Z8+8jH1w1DXhOXQkzK4blljtOEuG+INoxBBZxvGuxlxyJmQyH0sozKvQ3/rKr+rFAaoT8jO+UprXJxaTHv5BD7EQQnzblQJ/VoHP87SpJ0xLgBtW5HUddUcehiWpeSeB45GHhPLqIrSLXoOoVp3kZ2VnU+QTjVBnPOBgiG8OiZejgvbIMOQRz9Vgmij2jI7T3R3DS2ZXVdyxYEMe/bYvP32WT788BIuuyy1vVshhEBKyWuvn2Fry+Xyy9NYoZdJI6GEIrTuBOkQaohdCoTptrjGbanVIvoStr1Xj2jDhBzmOfc420UmQ4AnMZfTKtEOsUq79OEoyRqncfqmJXO3J7nyyhm+fEOO5184xW+e+DeHDu3BsRWJLUvw3nttXn2twYEDaW44vJdesn3mYZRRJNIdpx5l/IZ7jXiFXAzxoxLDThysoB+a1xn0zGG7PGsT8KGGOX/1CPHzJDvMGcYS8dcBdZPAOM1wXcl3brsMz5O8/EqDd975Hwi1OJRS4jgWBz81w+2372f//vT2lyoxsMTgYkwQFVTr0/UOeY3+xwGFCDo5FJFN+8drQ+86Mh9FVf4K0UhXjKATFdXA+6pBxzSi5dBPSVYIJ3OcI3wcwNYJXFeSyVh8/3sHuPHGHP95r61OAP3p8cKCw+c+O8fcnJ2EyKB6maOoyzZV/8mhKsA0zFX8v3mDPI+5Z84x2HIrR/CtGJJGHlURVT9M19P2fenrFwx6oA4YSoHfZcyLqzt938qB9AsM8td/nzTq/t8iqt6G0SC8kS0xOjWc6PG2AzSl1F/57N+7+HR+hquvmt0hk1Jtz3U6ZiJLSTYk7SqqUPrPOASPO/MGnYOMv71WCbwXDDpRhtDqGHkUX/pYZicJ6ihimG6ghdkePhaeNEqG8FXCR4s1zL3zSnJ3BrBmZ617MxlRltK8xaY+VvV2PO22Zzy+9u28Pz9v3z8JJxm0+kkjd5FtNFAnemsaWdmXNWLarATe8wadWkj8sKG9aJA3ME89+igbwpcM4YUx9kZg2bb4Zzbr3JXN2jfatjixmz1jP647M2P9Mpt1rpubs1aTW9vGOoMj4D4Ku7BX20VcHQoJ4z3LYLpgQtm3H6e3rQfe8wadWgx7QZRDwusGWR9V9BecDqIndC6SRwE4ffKmUuKlVMq5ud32ftxqufd5HldFvajft5FOW8/Nz1uP2LZ4sdsdPTUcwiqqAPLoCVFD9VhrGlmVnTfS4qAy9F7RakVHjei+1BmsD+ox7BcZfGVSxFzRFXaWVxl9/moh6ZnykieczFFQQt/A6pqwmsGXmsm4OHny9Pb/yhCi/38yuHRry/tFs+n+TErmw0jtf1Xyj/l5uzQ/bz8jpaTbVU86Lbj++kR3NqaYIjZGjjo8T2Lb4tTCgvPg4mL6cDptrenm0/7vzWzWfmBxMXX9zIx4xv9ie4opLgq053aKvJJ0Wvx9YcG5LZu1b7VtcTJAai+TscqLi6nrsln7USHYnJJ4iosN46EJDHrZTMb6czptPd9suvd0OvKbmYz12OysdUJdyL8Qbk4xxXj8H0eEKo5UwxgtAAAAAElFTkSuQmCC",class:w(["cursor-pointer",p.value]),onClick:j},null,10,Pe)]),_("div",Ve,[F(r,{modelValue:b.value,"onUpdate:modelValue":s[0]||(s[0]=e=>b.value=e),variant:"primary-filled"},{default:g((()=>[F(i,{value:"conversation"},{default:g((()=>[D(C(e.$t("layout.sideNav.tabConversation")),1)])),_:1}),F(i,{value:"favorite"},{default:g((()=>[D(C(e.$t("layout.sideNav.tabFavorite")),1)])),_:1})])),_:1},8,["modelValue"])]),_("div",Ue,["conversation"===b.value?(f(),h(S,{key:0,class:"flex-1 bg-transparent",value:n.value,collapsed:a.value},{default:g((()=>[F(k(Ae),{onEnd:N,modelValue:z.value,"onUpdate:modelValue":s[2]||(s[2]=e=>z.value=e),"item-key":"id"},{item:g((({element:t})=>[(f(),h(E,{name:t.id,value:`/conversation/chat?id=${t.id}`,"data-index":t.id,key:t.id,to:{path:"/conversation/chat",query:{id:t.id}},class:"gap-2 relative menu-item"},{icon:g((()=>[F(o,{size:"24px",image:t.avatar},null,8,["image"])])),content:g((()=>[D(C(t.name)+" ",1),F(A,{theme:"danger",content:e.$t("layout.sideNav.confirmDelete"),placement:"right",onConfirm:e=>{return a=t,R.remove(a.id),R.data.length>0?v.push(`/conversation/chat?id=${R.data[0].id}`):v.push("/"),void ne.success(d("layout.sideNav.deleteSuccessMsg"));var a},class:"absolute right-0 top-1.5 delete-button"},{default:g((()=>[F(m,{content:e.$t("layout.sideNav.deleteAction"),placement:"right"},{default:g((()=>[F(l,{size:"small",shape:"circle",variant:"text",onClick:s[1]||(s[1]=L((()=>{}),["stop"]))},{default:g((()=>[F(k(pe),{slot:"icon",style:{width:"16px",height:"16px"}})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"])])),_:2},1032,["name","value","data-index","to"]))])),_:1},8,["modelValue"])])),_:1},8,["value","collapsed"])):x("",!0),"favorite"===b.value?(f(),h(S,{key:1,class:"flex-1 bg-transparent",value:n.value,collapsed:a.value},{default:g((()=>[F(k(Ae),{onEnd:T,modelValue:U.value,"onUpdate:modelValue":s[4]||(s[4]=e=>U.value=e),"item-key":"id"},{item:g((({element:t})=>[(f(),h(E,{name:t.id,value:`/note/content?id=${t.id}`,"data-index":t.id,key:t.id,to:{path:"/note/content",query:{id:t.id}},class:"gap-2 relative menu-item"},{default:g((()=>[D(C(t.title)+" ",1),F(A,{theme:"danger",content:e.$t("layout.sideNav.confirmDelete"),placement:"right",onConfirm:e=>{return a=t,O.remove(a.id),O.data.length>0?v.push(`/note/content?id=${O.data[0].id}`):v.push("/"),void ne.success(d("layout.sideNav.deleteSuccessMsg"));var a},class:"absolute right-0 top-1.5 delete-button"},{default:g((()=>[F(m,{content:e.$t("layout.sideNav.deleteAction"),placement:"right"},{default:g((()=>[F(l,{size:"small",shape:"circle",variant:"text",onClick:s[3]||(s[3]=L((()=>{}),["stop"]))},{default:g((()=>[F(k(pe),{slot:"icon",style:{width:"16px",height:"16px"}})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"])])),_:2},1032,["name","value","data-index","to"]))])),_:1},8,["modelValue"])])),_:1},8,["value","collapsed"])):x("",!0)]),_("div",Ne,[_("div",Te,[F(l,{class:"w-full",theme:"primary",shape:"square",variant:"base",onClick:s[5]||(s[5]=e=>W("/conversation/index"))},{icon:g((()=>[F(k(me))])),default:g((()=>[D(" "+C(e.$t("layout.header.start")),1)])),_:1}),F(l,{class:"w-full",theme:"primary",shape:"square",variant:"base",onClick:s[6]||(s[6]=e=>W("/setting"))},{icon:g((()=>[F(k(ve))])),default:g((()=>[D(" "+C(e.$t("layout.header.setting")),1)])),_:1})]),_("div",We,[_("span",Xe,C(c.value)+" "+C(k(Oe).version),1)])])],2)}}}),[["__scopeId","data-v-8cd98e64"]]),Ge=v({__name:"LayoutSideNav",setup(e){const t=r();return(e,a)=>(f(),h(Qe,{theme:k(t).displayMode},null,8,["theme"]))}}),He={class:"flex gap-5 items-center align-middle justify-center"},Be=n(v({__name:"ReloadPrompt",setup(e){const t=I(null),a=I(null),s=I(!1),n=()=>{s.value&&localStorage.setItem("pwaInstallDismissed","true"),s.value=!1},i=async()=>{if(a.value){a.value.prompt();const{outcome:e}=await a.value.userChoice;a.value=null,s.value=!1,localStorage.setItem("pwaInstallLastPrompt",(new Date).toISOString())}},r=e=>{e.preventDefault(),a.value=e;const t="true"===localStorage.getItem("pwaInstallDismissed"),n=localStorage.getItem("pwaInstallLastPrompt"),i=new Date;i.setDate(i.getDate()-30);!t&&(!n||new Date(n)<i)&&(s.value=!0)},o=()=>{s.value=!1,localStorage.removeItem("pwaInstallDismissed"),localStorage.removeItem("pwaInstallLastPrompt")},l=async()=>{if("visible"===document.visibilityState&&t.value)try{await t.value.update()}catch(e){}};return S((async()=>{await(async()=>{if("serviceWorker"in navigator)try{const e=await navigator.serviceWorker.register("/sw.js",{scope:"/"});t.value=e,e.addEventListener("updatefound",(()=>{const t=e.installing;t&&t.addEventListener("statechange",(()=>{"installed"===t.state&&navigator.serviceWorker.controller&&t.postMessage({type:"SKIP_WAITING"})}))})),navigator.serviceWorker.addEventListener("controllerchange",(()=>{window.location.reload()}))}catch(e){}})(),window.matchMedia("(display-mode: standalone)").matches||(window.addEventListener("beforeinstallprompt",r),window.addEventListener("appinstalled",o)),document.addEventListener("visibilitychange",l)})),R((()=>{window.removeEventListener("beforeinstallprompt",r),window.removeEventListener("appinstalled",o),document.removeEventListener("visibilitychange",l)})),(e,t)=>{const a=Y,r=ie;return s.value?(f(),h(r,{key:0,class:"pwa-toast",role:"alert"},{default:g((()=>[t[2]||(t[2]=_("div",{class:"message"}," 将此应用添加到主屏幕,随时随地快速访问 ",-1)),_("div",He,[s.value?(f(),h(a,{key:0,onClick:i},{default:g((()=>t[0]||(t[0]=[D(" 安装 ")]))),_:1})):x("",!0),F(a,{onClick:n},{default:g((()=>t[1]||(t[1]=[D(" 稍后再说 ")]))),_:1})])])),_:1})):x("",!0)}}}),[["__scopeId","data-v-b1672b5d"]]),Ze=v({__name:"index",setup(e){const t=P(),a=r();return M((()=>t.path),(()=>{var e;null==(e=document.querySelector(`.${i}-layout`))||e.scrollTo({top:0,behavior:"smooth"})})),(e,t)=>{const s=re,n=oe,i=Z,r=B;return f(),h(r,null,{default:g((()=>[F(s,{class:"h-screen"},{default:g((()=>[F(Ge)])),_:1}),F(r,{class:"h-screen overflow-hidden"},{default:g((()=>[k(a).showLayoutHeader?(f(),h(n,{key:0},{default:g((()=>[F(Le)])),_:1})):x("",!0),F(i,{class:"flex-1 overflow-y-auto main-layout-content"},{default:g((()=>[F(xe)])),_:1}),(f(),h(Be,{key:1}))])),_:1})])),_:1})}}}),Je=[{path:"/conversation",component:Ze,redirect:"/conversation/index",name:"conversation",meta:{title:{zh_CN:"会话",en_US:"Conversation"},icon:he,orderNo:0},children:[{path:"index",name:"NewConversation",component:()=>z((()=>import("./index-0Y7UjkS7.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]),import.meta.url),meta:{title:{zh_CN:"新建会话",en_US:"New Conversation"}}},{path:"chat",name:"chat",component:()=>z((()=>import("./chat-DJXGKSt5.js")),__vite__mapDeps([81,1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,4,71,72,73,74,75,82,83,77,76,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,78,79,100,101]),import.meta.url),meta:{title:{zh_CN:"会话聊天",en_US:"Chat"},hidden:!0}}]},{path:"/setting",
5
+ // component: () => import('@/pages/setting/layout.vue'),
6
+ component:Ze,redirect:"/setting/user",name:"setting",meta:{title:{zh_CN:"设置",en_US:"Setting"},icon:fe,orderNo:0},children:[{path:"user",name:"User setting",component:()=>z((()=>import("./index-BlW40Hj7.js")),__vite__mapDeps([102,57,58,1,2,3,59,12,60,61,62,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,63,64,65,66,67,68,69,70,82,83,77,78,79,4,103]),import.meta.url),meta:{title:{zh_CN:"常规",en_US:"User"}}},{path:"model",name:"ModelSetting",component:()=>z((()=>import("./index-CEnBk6VQ.js")),__vite__mapDeps([104,1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,100,77]),import.meta.url),meta:{title:{zh_CN:"模型",en_US:"Model"}}},{path:"agent",name:"AgentCenter",component:()=>z((()=>import("./index-Dh-fABEs.js")),__vite__mapDeps([105,4,1,2,3,57,58,59,12,60,61,62,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,63,64,65,66,67,68,69,70,82,83,77,78,79]),import.meta.url),meta:{title:{zh_CN:"智能体",en_US:"Agent"}}},{path:"api",name:"api setting",component:()=>z((()=>import("./index-C6KOsl_W.js")),__vite__mapDeps([106,107,63,1,2,3,56,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,108]),import.meta.url),meta:{title:{zh_CN:"OpenAPI",en_US:"OpenAPI"},isPro:!0}}]},{path:"/page",component:Ze,redirect:"/page/about",name:"page",meta:{title:{zh_CN:"页面",en_US:"Page"},icon:ge,orderNo:0},children:[{path:"about",name:"AboutUs",component:()=>z((()=>import("./about-0-DUd88i.js")),__vite__mapDeps([109,107,63,1,2,3,56,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,108]),import.meta.url),meta:{title:{zh_CN:"关于我们",en_US:"About Us"}}},{path:"help",name:"help",component:()=>z((()=>import("./help-C4-g_Zuv.js")),__vite__mapDeps([110,107,63,1,2,3,56,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,108]),import.meta.url),meta:{title:{zh_CN:"使用帮助",en_US:"Help"}}},{path:"changelog",name:"change log",component:()=>z((()=>import("./changelog-DFPFb8dr.js")),__vite__mapDeps([111,107,63,1,2,3,56,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,108]),import.meta.url),meta:{title:{zh_CN:"更新日志",en_US:"Change Log"}}}]},{path:"/note",component:Ze,redirect:"/note/index",name:"note",meta:{title:{zh_CN:"笔记",en_US:"Notes"},icon:ye,orderNo:0},children:[{path:"index",name:"noteList",component:()=>z((()=>import("./index-BuO6QTUD.js")),__vite__mapDeps([112,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,2,3,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,1,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,4,78,79]),import.meta.url),meta:{title:{zh_CN:"笔记列表",en_US:"Note List"}}},{path:"content",name:"content",component:()=>z((()=>import("./content-CekGICAg.js")),__vite__mapDeps([113,84,1,2,3,85,86,87,88,89,90,91,92,93,94,95,96,57,58,59,12,60,61,62,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,63,64,65,66,67,68,69,70,71,72,73,74,75,97,98,77,99,4,78,79,114]),import.meta.url),meta:{title:{zh_CN:"笔记内容",en_US:"Note Content"},hidden:!0}}]}],qe=Object.defineProperty({__proto__:null,default:Je},Symbol.toStringTag,{value:"Module"}),Ye=Object.assign({"./modules/homepage.ts":qe}),Ke=Object.assign({}),$e=st(Ye),et=st(Ke),tt=[...$e,...et].filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})),at=[...$e,...et,{path:"/",redirect:"/conversation/index"}];function st(e){const t=[];return Object.keys(e).forEach((a=>{const s=e[a].default||{},n=Array.isArray(s)?[...s]:[s];t.push(...n)})),t}const nt=(e=3)=>{const t=it.currentRoute.value;return t.path?t.path.split("/").filter(((t,a)=>a<=e&&a>0)).map((e=>`/${e}`)).join(""):""},it=U({history:N(),routes:at,scrollBehavior:()=>({el:"#app",top:0,behavior:"smooth"})}),rt=O(n(v({__name:"App",setup(e){const t=r(),a=m((()=>t.displayMode)),{getComponentsLocale:s,locale:n}=je();return(e,t)=>{const i=j("router-view"),r=le;return f(),h(r,{"global-config":k(s)},{default:g((()=>[(f(),h(i,{key:k(n),class:w([a.value])},null,8,["class"]))])),_:1},8,["global-config"])}}}),[["__scopeId","data-v-a54c09a9"]]));rt.use(de),rt.use(it),rt.use(c),rt.use(t),u(),p.initialize(),rt.mount("#app").$nextTick((()=>{postMessage({payload:"removeLoading"},"*"),window.document.addEventListener("keydown",(e=>{e.ctrlKey&&"f"===e.key&&window.ipcRenderer&&(e.preventDefault(),window.ipcRenderer.send("electron-findbar/open"))}))})),null==(e=window.ipcRenderer)||e.on("main-process-message",((e,t)=>{}));export{Ee as a,je as b,De as u};
.output/public/assets/markdown-6PNN04BW.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var e=Object.defineProperty,n=(n,t,o)=>((n,t,o)=>t in n?e(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o)(n,"symbol"!=typeof t?t+"":t,o);import{m as t}from"./markdown-it-link-attributes-DRKqjf49.js";import{M as o}from"./markdown-it-C8SkdHr7.js";import{m as r}from"./@traptitech-xv_Vpjqh.js";import{m as s}from"./markdown-it-highlightjs-6zEPG1Qy.js";import{H as i}from"./highlight.js-ato5kCvT.js";import{e as l}from"./tdesign-vue-next-BiEwLJDx.js";import{E as d}from"./mermaid-render-DYiT7KKL.js";const a={svg:"",buttonStyle:"",collapseButtonClass:"",collapseButtonStyle:"",headerClass:"",headerStyle:""},c=(e,n)=>(n={...a,...n},(...t)=>{const[o,r]=t,s=o[r];if(s.info&&s.info.includes(":")){const[e,n]=s.info.split(":",2);s.info=e}const i=o[r].content.replaceAll('"',"&quot;").replaceAll("'","&apos;");let l;try{l=e(...t)}catch(c){const n=o[r].info;o[r].info="text",l=e(...t),o[r].info=n}if(0===i.length)return l;const d=o[r].info||"",a=`code-header-${Math.random().toString(36).substring(2,9)}`;return`\n<div class="markdown-it-code-title">\n <div id="${a}" class="code-header ${n.headerClass}" style="${n.headerStyle}">\n <div class="code-header-left" onclick="toggleCodeCollapse(this)">\n <span class="code-language">${d}</span>\n <button class="code-collapse-button ${n.collapseButtonClass}" style="${n.collapseButtonStyle}" title="Toggle code" >\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="6 9 12 15 18 9"></polyline>\n </svg>\n </button>\n </div>\n <button data-clipboard-text="${i}" class="code-copy-button ${n.buttonClass}" style="${n.buttonStyle}" title="Copy code" onclick="copyCodeToClipboard(this)">\n ${n.svg}\n </button>\n </div>\n <div class="code-content">\n ${l}\n <button class="code-scroll-top-button${i.length>500?"":" hidden"}" title="Scroll to code header" onclick="scrollToElement('${a}')">\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="18 15 12 9 6 15"></polyline>\n </svg>\n </button>\n </div>\n</div>\n`});i.registerLanguage("codebase-retrieval",(()=>({name:"codebase-retrieval",contains:[],case_insensitive:!0,keywords:{}}))),i.registerLanguage("vue",(e=>({name:"vue",subLanguage:"xml",contains:[e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:/^(\s*)(<script>)/gm,end:/^(\s*)(<\/script>)/gm,subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0},{begin:/^(\s*)(<script lang=["']ts["']>)/gm,end:/^(\s*)(<\/script>)/gm,subLanguage:"typescript",excludeBegin:!0,excludeEnd:!0},{begin:/^(\s*)(<style(\sscoped)?>)/gm,end:/^(\s*)(<\/style>)/gm,subLanguage:"css",excludeBegin:!0,excludeEnd:!0},{begin:/^(\s*)(<style lang=["'](scss|sass)["'](\sscoped)?>)/gm,end:/^(\s*)(<\/style>)/gm,subLanguage:"scss",excludeBegin:!0,excludeEnd:!0},{begin:/^(\s*)(<style lang=["']stylus["'](\sscoped)?>)/gm,end:/^(\s*)(<\/style>)/gm,subLanguage:"stylus",excludeBegin:!0,excludeEnd:!0}]})));const u=new class{constructor(){n(this,"worker"),n(this,"pendingRequests"),n(this,"isWorkerReady",!1),this.pendingRequests=new Map,this.worker=new Worker(new URL(
2
+ /* @vite-ignore */
3
+ ""+new URL("markdown.worker-C2udnMhU.js",import.meta.url).href,import.meta.url),{type:"module"}),this.worker.onmessage=this.handleWorkerMessage.bind(this),this.worker.onerror=this.handleWorkerError.bind(this),this.isWorkerReady=!0}
4
+ /**
5
+ * Render markdown text to HTML using the worker
6
+ * @param text Markdown text to render
7
+ * @returns Promise that resolves to the rendered HTML
8
+ */render(e){return this.isWorkerReady?new Promise(((n,t)=>{const o=Date.now().toString()+Math.random().toString(36).substr(2,9);this.pendingRequests.set(o,{resolve:n,reject:t}),this.worker.postMessage({id:o,text:e})})):Promise.resolve(`<p>${e}</p>`)}
9
+ /**
10
+ * Handle messages from the worker
11
+ */handleWorkerMessage(e){const{id:n,html:t,error:o}=e.data,r=this.pendingRequests.get(n);r&&(o?r.reject(new Error(o)):r.resolve(t),this.pendingRequests.delete(n))}
12
+ /**
13
+ * Handle worker errors
14
+ */handleWorkerError(e){for(const[n,t]of this.pendingRequests.entries())t.reject(new Error("Worker error: "+e.message)),this.pendingRequests.delete(n);this.isWorkerReady=!1,this.restartWorker()}
15
+ /**
16
+ * Restart the worker if it crashes
17
+ */restartWorker(){try{this.worker&&this.worker.terminate(),this.worker=new Worker(new URL(
18
+ /* @vite-ignore */
19
+ ""+new URL("markdown.worker-C2udnMhU.js",import.meta.url).href,import.meta.url),{type:"module"}),this.worker.onmessage=this.handleWorkerMessage.bind(this),this.worker.onerror=this.handleWorkerError.bind(this),this.isWorkerReady=!0}catch(e){l.error("Markdown rendering engine failed to restart")}}},p=new o({linkify:!0,breaks:!0});p.use(((e,n)=>{if(e.renderer.rules.code_block=c(e.renderer.rules.code_block,n),e.renderer.rules.fence=c(e.renderer.rules.fence,n),"undefined"!=typeof window){window.copyCodeToClipboard||(window.copyCodeToClipboard=e=>{const t=e.dataset.clipboardText;navigator.clipboard.writeText(t).then((function(){n.onCopySuccess&&n.onCopySuccess(t,e)})).catch((function(t){n.onCopyError&&n.onCopyError(t,e)}))}),window.toggleCodeCollapse||(window.toggleCodeCollapse=e=>{const n=e.closest(".markdown-it-code-title"),t=n.querySelector(".code-content"),o=e.querySelector(".code-collapse-button")||e,r=n.querySelector(".code-scroll-top-button");t.classList.toggle("collapsed"),o.classList.toggle("collapsed"),r&&(t.classList.contains("collapsed")?r.classList.add("hidden"):r.classList.remove("hidden"))}),window.scrollToElement||(window.scrollToElement=e=>{const n=document.getElementById(e);if(n){const e=n=>{if(!n)return document.documentElement;const t=window.getComputedStyle(n).overflowY;return"visible"!==t&&"hidden"!==t&&n.scrollHeight>n.clientHeight?n:e(n.parentElement)||document.documentElement},t=e(n),o=n.getBoundingClientRect(),r=t.getBoundingClientRect(),s=o.top-r.top+t.scrollTop-120;t.scrollTo({top:s,behavior:"smooth"})}});const e="\n.markdown-it-code-title {\n position: relative;\n border-radius: 6px;\n overflow: hidden;\n}\n.markdown-it-code-title .code-header {\n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n font-size: 0.9em;\n background-color: #2d2d2d;\n z-index:1;\n}\n\n\n.markdown-it-code-title .code-header-left {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n}\n.markdown-it-code-title .code-language {\n text-transform: uppercase;\n font-size: 0.8em;\n font-weight: bold;\n color: #999;\n}\n.markdown-it-code-title .code-collapse-button {\n background: none;\n border: none;\n color: #999;\n cursor: pointer;\n padding: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.2s;\n}\n.markdown-it-code-title .code-collapse-button.collapsed {\n transform: rotate(-90deg);\n}\n\n.markdown-it-code-title .code-copy-button {\n background: none;\n border: none;\n color: #999;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0.6;\n transition: opacity 0.2s;\n}\n.markdown-it-code-title .code-copy-button:hover {\n opacity: 1;\n}\n\n\n\n\n\n.markdown-it-code-title .code-content {\n position: relative;\n transition: max-height 0.3s ease-out, opacity 0.2s ease;\n max-height: 100%;\n overflow: visible;\n z-index:0;\n}\n.markdown-it-code-title .code-content.collapsed {\n max-height: 0;\n overflow: hidden;\n opacity: 0.8;\n}\n\n.markdown-it-code-title .code-scroll-top-button {\n position: absolute;\n bottom: 10px;\n right: 10px;\n color: #555;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0.6;\n transition: all 0.2s ease;\n border-radius: 50%;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);\n z-index: 10;\n background-color: rgba(200, 200, 200, 0.8);\n}\n\n.markdown-it-code-title .code-scroll-top-button:hover {\n opacity: 1;\n}\n.markdown-it-code-title .code-scroll-top-button.hidden {\n opacity: 0;\n visibility: hidden;\n}\n",t=document.createElement("style");t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}}),{headerClass:"code-header-bg",svg:'<svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-copy" slot="icon"><path fill="currentColor" d="M2 2h13v5.5h-2V4H4v9h3.5v2H2V2zm7 7h13v13H9V9zm2 2v9h9v-9h-9z"></path></svg>',onCopySuccess:(e,n)=>{l.success("复制成功!")}}),p.use(s,{hljs:i}),p.use(t,{attrs:{target:"_blank",rel:"noopener"}}),p.use(r,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),p.use((function(e){const n=e.renderer.rules.fence||((e,n,t,o,r)=>r.renderToken(e,n,t));e.renderer.rules.fence=(e,t,o,r,s)=>{const i=e[t],l=i.content.trim();if("mermaid"===i.info.trim()){return`<div class="mermaid-diagram-wrapper">\n <div class="mermaid-controls">\n <button type="button" class="mermaid-zoom-in" title="放大">\n <svg viewBox="0 0 24 24" width="16" height="16"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"/></svg>\n </button>\n <button type="button" class="mermaid-zoom-out" title="缩小">\n <svg viewBox="0 0 24 24" width="16" height="16"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"/></svg>\n </button>\n <button type="button" class="mermaid-reset" title="重置">\n <svg viewBox="0 0 24 24" width="16" height="16"><path fill="currentColor" d="M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>\n </button>\n <button type="button" class="mermaid-download" title="下载SVG">\n <svg viewBox="0 0 24 24" width="16" height="16"><path fill="currentColor" d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>\n </button>\n <button type="button" class="mermaid-copy" title="复制图表代码">\n <svg viewBox="0 0 24 24" width="16" height="16"><path fill="currentColor" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>\n </button>\n </div>\n <div class="mermaid-diagram-container" data-scale="1">\n <div class="mermaid-diagram" id="${`mermaid-${Date.now()}-${Math.floor(1e3*Math.random())}`}" data-mermaid="${encodeURIComponent(l)}" data-original-code="${encodeURIComponent(l)}">\n <div class="mermaid-loading">图表加载中...</div></div>\n </div>\n </div>`}return n(e,t,o,r,s)}}));const h={
20
+ // 异步渲染方法,使用Web Worker
21
+ render:async e=>{try{let n=await u.render(e||"");return n=await d(n),n}catch(n){let t=p.render(e||"");return t=await d(t),t}},
22
+ // 同步渲染方法(不处理mermaid图表)
23
+ renderSync:e=>p.render(e||"")};export{h as m};
.output/public/assets/markdown-it-highlightjs-6zEPG1Qy.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{g as e}from"./@babel-ynFNPEB3.js";import{r as t}from"./highlight.js-ato5kCvT.js";var r,n,l,o,i,u;function a(){if(n)return r;n=1;var e,t=Object.defineProperty,l=Object.defineProperties,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,f=(e,r,n)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,g=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&f(e,r,t[r]);if(a)for(var r of a(t))s.call(t,r)&&f(e,r,t[r]);return e},h={};function p(e,t,r,n,l){try{return t.highlight(n,{language:""!==l?l:"plaintext",ignoreIllegals:r}).value}catch(o){return e.utils.escapeHtml(n)}}function d(e,t,r,n,l){if(""!==l)return p(e,t,r,n,l);try{return t.highlightAuto(n).value}catch(o){return e.utils.escapeHtml(n)}}function b(e){return function(...t){return e(...t).replace(/<code class="/g,'<code class="hljs ').replace(/<code>/g,'<code class="hljs">')}}function j(e){var t,r,n;for(const o of e.tokens)if("inline"===o.type&&null!=o.children)for(const[u,a]of o.children.entries()){if("code_inline"!==a.type)continue;const c=o.children[u+1];if(null==c)continue;const s=/^{:?\.([^}]+)}/.exec(c.content);if(null==s)continue;const f=s[1];c.content=c.content.slice(s[0].length);let h=null!=(t=a.attrGet("class"))?t:"";h+=`${null!=(r=e.md.options.langPrefix)?r:"language-"}${f}`,a.attrSet("class",h),a.meta=(n=g({},a.meta),l(n,i({highlightLanguage:f})))}}function y(e,t,r,n,l){var o,i;const u=e[t];if(null==r.highlight)throw new Error("`options.highlight` was null, this is not supposed to happen");const a=r.highlight(u.content,null!=(i=null==(o=u.meta)?void 0:o.highlightLanguage)?i:"","");return`<code${l.renderAttrs(u)}>${a}</code>`}function O(e,t){const r=g(g({},O.defaults),t);if(null==r.hljs)throw new Error("Please pass a highlight.js instance for the required `hljs` option.");null!=r.register&&function(e,t){for(const[r,n]of Object.entries(t))e.registerLanguage(r,n)}(r.hljs,r.register),e.options.highlight=(r.auto?d:p).bind(null,e,r.hljs,r.ignoreIllegals),null!=e.renderer.rules.fence&&(e.renderer.rules.fence=b(e.renderer.rules.fence)),r.code&&null!=e.renderer.rules.code_block&&(e.renderer.rules.code_block=b(e.renderer.rules.code_block)),r.inline&&(e.core.ruler.before("linkify","inline_code_language",j),e.renderer.rules.code_inline=b(y))}return((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(h,{default:()=>O}),e=h,r=((e,r,n,l)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let i of u(r))c.call(e,i)||i===n||t(e,i,{get:()=>r[i],enumerable:!(l=o(r,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e),O.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1},r}const c=e(u?i:(u=1,i=function(){if(o)return l;o=1;var e,r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,h=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))f.call(t,r)&&h(e,r,t[r]);if(c)for(var r of c(t))g.call(t,r)&&h(e,r,t[r]);return e},d=(e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of u(t))f.call(e,o)||o===r||n(e,o,{get:()=>t[o],enumerable:!(l=i(t,o))||l.enumerable});return e},b=(e,t,l)=>(l=null!=e?r(s(e)):{},d(e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e)),j={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(j,{default:()=>m}),e=j,l=d(n({},"__esModule",{value:!0}),e);var y=b(t()),O=b(a());function m(e,t){return null==(t=p(p({},m.defaults),t)).hljs&&(t.hljs=y.default),(0,O.default)(e,t)}return m.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0},l}().default));export{c as m};
.output/public/assets/popup-DR3WY9dZ.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{u as e,b as t,f as r,_ as o,s,i as a,d as n,m as i}from"./mermaid-render-DYiT7KKL.js";import{l,a as u,f as p,o as m,n as c,V as d,v,y as j,A as h,J as f,a0 as w,ae as y,af as g,F as E,aa as k,I as $,z as R,H as b,u as C,ad as _,U as D}from"./@vue-CfxotJ-S.js";import{m as A}from"./markdown-6PNN04BW.js";import{I as M}from"./tdesign-vue-next-BiEwLJDx.js";import"./mermaid-r27wrvTx.js";import"./@mermaid-js-C9iCgeAb.js";import"./langium-BVNt58jJ.js";import"./vscode-jsonrpc-B7fdjHWu.js";import"./chevrotain-Cp5uJ8YW.js";import"./@chevrotain-DFy4Htpj.js";import"./lodash-es-RhymR7yg.js";import"./chevrotain-allstar-WPou0XcH.js";import"./vscode-languageserver-types-BtnkyLj9.js";import"./vscode-languageserver-textdocument-ygi3JyHC.js";import"./vscode-uri-DEKkV-x5.js";import"./ts-dedent-CttZBlkd.js";import"./d3-transition-0ltv4da8.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-Oxnq6l6A.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-Dz8HuW59.js";import"./dompurify-z_KyBU9t.js";import"./stylis-Cl7w7uv3.js";import"./dagre-d3-es-D8JeTxsO.js";import"./@braintree-BB7t-Iuh.js";import"./khroma-C2oHPU0S.js";import"./dayjs-Cbdj87rt.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./d3-scale-CdkN4P7M.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-BhN1wQGI.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-DB2uBv1t.js";import"./d3-time-B1kAM736.js";import"./d3-axis-pCwzqJ1S.js";import"./d3-shape-C6CU9yox.js";import"./d3-path-QSrLXsQ3.js";import"./roughjs-Bkc4UHOn.js";import"./cytoscape-DQzyuV5c.js";import"./cytoscape-cose-bilkent-CcQu5e-H.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./d3-sankey-B6tQBass.js";import"./d3-scale-chromatic-FDBKL9jm.js";import"./@iconify-BUO7KvjM.js";import"./marked-CrLTNeyQ.js";import"./cytoscape-fcose-B58q80h4.js";import"./pinia-gf2247cH.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./eventsource-parser-D0ssca5s.js";import"./lodash-VDnThKtA.js";import"./@vueuse-B4dz7nOv.js";import"./vue-i18n-BLIfPQxk.js";import"./@intlify-eboPrqDD.js";import"./@mozilla-BD532_dh.js";import"./tvision-color-BdwcCUqE.js";import"./chroma-js-CJzpYopr.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-BncZ6jfA.js";import"./markdown-it-link-attributes-DRKqjf49.js";import"./markdown-it-C8SkdHr7.js";import"./mdurl-CDXpswLz.js";import"./uc.micro-CLkLCS2f.js";import"./entities-D7HTx9ov.js";import"./linkify-it-LcVOBuC5.js";import"./punycode.js-Bmr3cAX8.js";import"./@traptitech-xv_Vpjqh.js";import"./katex-Vs6-m9jZ.js";import"./markdown-it-highlightjs-6zEPG1Qy.js";import"./highlight.js-ato5kCvT.js";import"./tdesign-icons-vue-next-Bre5yOVt.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";const U={class:"popup-container rounded-lg shadow-lg w-full flex flex-col pb-0 p-4",style:{"max-height":"500px"}},x={class:"relative flex items-center"},L={key:0,class:"space-y-2"},O=["onClick"],T={key:1},N=["innerHTML"],I={class:"footer-text py-1 border-t mt-4 text-sm text-center"},B=D(o(l({__name:"PopupWindow",setup(o){e();const s=t(),a=u(""),n=u(null),i=u(0),l=u(!1),D=u(""),B=u(!1),H=u(null),S=u(!0),z=e(),F=p((()=>z.displayMode)),W=[{name:"问问",icon:"chat",prompt:"{{text}}",show:!0}],P=p((()=>{const e=s.toolBarButtons.filter((e=>e.name&&e.show&&void 0!==e.prompt));return[...W,...e]})),Q=async()=>{!l.value&&a.value.trim()&&await G()},V=()=>{if(!(null==window?void 0:window.ipcRenderer)||!H.value)return;const e=H.value.scrollHeight+118,t=Math.min(500,e);window.ipcRenderer.send("adjust-popup-height",t)},Y=((e,t)=>{let r=null;return(...o)=>{r&&clearTimeout(r),r=setTimeout((()=>e(...o)),t)}})(V,50),q=()=>{if(!H.value)return;const{scrollTop:e,scrollHeight:t,clientHeight:r}=H.value;S.value=!(t-e-r>50)},K={
2
+ // 数学公式模式
3
+ MATH_FORMULA:/^[\d\+\-\*\/\.\(\)\s]+$/,
4
+ // 时间日期查询模式
5
+ TIME_QUERY:/^(时间|日期|现在|今天|今天日期|当前时间|现在几点|现在时间|时间是|日期是)$/,
6
+ // 随机数生成模式
7
+ RANDOM_NUMBER:/^随机数(\s*(\d+)(\s*[,-]\s*(\d+))?)?$/,
8
+ // 随机密码生成模式
9
+ RANDOM_PASSWORD:/^随机密码(\s*(\d+))?$/,
10
+ // 字符计数模式
11
+ CHAR_COUNT:/^字符计数[\s:]*(.+)$/,
12
+ // Base64编码模式
13
+ BASE64_ENCODE:/^base64编码[\s:]*(.+)$/i,
14
+ // Base64解码模式
15
+ BASE64_DECODE:/^base64解码[\s:]*(.+)$/i,
16
+ // URL编码模式
17
+ URL_ENCODE:/^url编码[\s:]*(.+)$/i,
18
+ // URL解码模式
19
+ URL_DECODE:/^url解码[\s:]*(.+)$/i},X=(e=1,t=100)=>`随机数 (${e=Math.ceil(e)}-${t=Math.floor(t)}): ${Math.floor(Math.random()*(t-e+1))+e}`,J=(e=12)=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+";let r="";for(let o=0;o<e;o++){r+=t[Math.floor(74*Math.random())]}return`随机密码 (${e}位): ${r}`},Z=e=>{if(K.MATH_FORMULA.test(e))return(e=>{try{return`${e} = ${new Function("return "+e)()}`}catch(t){return"计算公式错误"}})(e);if(K.TIME_QUERY.test(e))return(()=>{const e=new Date,t=e.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric",weekday:"long"});return`当前时间:${e.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}\n当前日期:${t}`})();const t=e.match(K.RANDOM_NUMBER);if(t){if(t[2]&&t[4]){const e=parseInt(t[2]),r=parseInt(t[4]);return X(e,r)}return t[2]?X(1,parseInt(t[2])):X()}const r=e.match(K.RANDOM_PASSWORD);if(r){if(r[2]){const e=parseInt(r[2]);return J(e)}return J()}const o=e.match(K.CHAR_COUNT);if(o&&o[1])return(e=>{const t=e.length,r=e.replace(/\s/g,"").length;return`原文本: ${e}\n总字符数: ${t}\n不含空格字符数: ${r}`})(o[1]);const s=e.match(K.BASE64_ENCODE);if(s&&s[1])return(e=>{try{return`原文本: ${e}\nBase64编码: ${btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16)))))}`}catch(t){return`Base64编码错误: ${t.message}`}})(s[1]);const a=e.match(K.BASE64_DECODE);if(a&&a[1])return(e=>{try{return`编码文本: ${e}\n解码结果: ${decodeURIComponent(Array.prototype.map.call(atob(e),(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""))}`}catch(t){return`Base64解码错误: ${t.message}`}})(a[1]);const n=e.match(K.URL_ENCODE);if(n&&n[1])return(e=>{try{return`原文本: ${e}\nURL编码: ${encodeURIComponent(e)}`}catch(t){return`URL编码错误: ${t.message}`}})(n[1]);const i=e.match(K.URL_DECODE);return i&&i[1]?(e=>{try{return`编码文本: ${e}\n解码结果: ${decodeURIComponent(e)}`}catch(t){return`URL解码错误: ${t.message}`}})(i[1]):null},G=async()=>{l.value=!0,B.value=!0,c((()=>{V()}));try{const e=a.value.trim();if(!e)return;const t=P.value[i.value];if("问问"===t.name){const t=Z(e);if(t)return void(D.value=t)}const o=(t.prompt||"").replace(/{{text}}/g,e);D.value="",await r(o,(e=>{D.value=e,c((()=>{H.value&&S.value&&(H.value.scrollTop=H.value.scrollHeight),Y()}))}))}finally{l.value=!1}},ee=()=>{B.value=!1,D.value="",c((()=>{var e,t;null==(e=n.value)||e.select(),null==(t=n.value)||t.focus(),V()}))},te=()=>{B.value=!1,D.value="",a.value="",c((()=>{var e;null==(e=n.value)||e.focus(),V()}))},re=e=>{"Escape"!==e.key?B.value||("Tab"===e.key&&(e.preventDefault(),i.value=(i.value+1)%P.value.length),"ArrowUp"===e.key?(e.preventDefault(),i.value=i.value>0?i.value-1:P.value.length-1):"ArrowDown"===e.key&&(e.preventDefault(),i.value=(i.value+1)%P.value.length)):B.value?ee():oe()},oe=()=>{(null==window?void 0:window.ipcRenderer)&&window.ipcRenderer.send("hide-popup")};return m((()=>{var e,t;document.addEventListener("click",oe),document.addEventListener("keydown",re),null==(e=H.value)||e.addEventListener("scroll",q),null==(t=n.value)||t.focus(),c((()=>{V()})),(null==window?void 0:window.ipcRenderer)&&window.ipcRenderer.on("show-window",te)})),d((()=>{var e;document.removeEventListener("click",oe),document.removeEventListener("keydown",re),null==(e=H.value)||e.removeEventListener("scroll",q),(null==window?void 0:window.ipcRenderer)&&window.ipcRenderer.removeListener("show-window",te)})),(e,t)=>{const r=M;return j(),v("div",{class:$(["popup-window fixed inset-0 flex items-start justify-center",F.value]),onClick:t[1]||(t[1]=_((()=>{}),["stop"]))},[h("div",U,[h("div",x,[B.value?(j(),f(r,{key:1,name:"arrow-left",class:"absolute left-3 icon-color cursor-pointer",onClick:ee})):(j(),f(r,{key:0,name:"search",class:"absolute left-3 icon-color"})),w(h("input",{ref_key:"inputRef",ref:n,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),type:"text",class:"input-field w-full pl-10 pr-4 py-2 rounded-lg border focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"请输入内容...",onKeydown:g(Q,["enter"])},null,544),[[y,a.value]])]),h("div",{ref_key:"contentContainer",ref:H,class:"mt-4 overflow-auto no-scrollbar min-h-32"},[B.value?(j(),v("div",T,[h("div",{class:"markdown-body",innerHTML:C(A).renderSync(D.value)},null,8,N)])):(j(),v("div",L,[(j(!0),v(E,null,k(P.value,((e,t)=>(j(),v("div",{key:e.name,class:$(["tool-button flex items-center p-2 rounded-lg cursor-pointer",i.value===t?"tool-button-selected":""]),onClick:e=>(async e=>{l.value||(i.value=e,await G())})(t)},[e.icon?(j(),f(r,{key:0,name:e.icon,class:"mr-2"},null,8,["name"])):R("",!0),h("span",null,b(e.name),1)],10,O)))),128))]))],512),h("div",I,b(B.value?`${P.value[i.value].name} - 使用 Esc 返回`:"使用 ↑↓ 或 Tab 切换,Enter 发送,Esc 关闭"),1)])],2)}}}),[["__scopeId","data-v-37d01730"]]));B.use(s),B.use(a),n(),i.initialize(),B.mount("#app").$nextTick((()=>{postMessage({payload:"removeLoading"},"*")}));
.output/public/assets/sambanova-35TLgnML.webp CHANGED

Git LFS Details

  • SHA256: 2564d5b3e9bb4d5af0ebc1fb19c4fbb20e6ce47e6c5d56263d1766f136c2e7b1
  • Pointer size: 130 Bytes
  • Size of remote file: 16.7 kB
.output/public/index.html CHANGED
@@ -10,7 +10,7 @@
10
  <link rel="mask-icon" href="/assets/logo.svg" color="#FFFFFF">
11
  <meta name="theme-color" content="#ffffff">
12
  <link rel="manifest" href="./manifest.webmanifest" />
13
- <script type="module" crossorigin src="./assets/main-CtIofym4.js"></script>
14
  <link rel="modulepreload" crossorigin href="./assets/vscode-jsonrpc-B7fdjHWu.js">
15
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-RhymR7yg.js">
16
  <link rel="modulepreload" crossorigin href="./assets/@chevrotain-DFy4Htpj.js">
 
10
  <link rel="mask-icon" href="/assets/logo.svg" color="#FFFFFF">
11
  <meta name="theme-color" content="#ffffff">
12
  <link rel="manifest" href="./manifest.webmanifest" />
13
+ <script type="module" crossorigin src="./assets/main-BVjjoCN0.js"></script>
14
  <link rel="modulepreload" crossorigin href="./assets/vscode-jsonrpc-B7fdjHWu.js">
15
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-RhymR7yg.js">
16
  <link rel="modulepreload" crossorigin href="./assets/@chevrotain-DFy4Htpj.js">
.output/public/logo.png CHANGED

Git LFS Details

  • SHA256: 32fed4cc15ec0c738e7f344da8abba13527768e094d08474c2a888571c9fe65f
  • Pointer size: 129 Bytes
  • Size of remote file: 5.23 kB
.output/public/popup.html CHANGED
@@ -3,7 +3,7 @@
3
  <head>
4
  <meta charset="UTF-8" />
5
  <title>Popup</title>
6
- <script type="module" crossorigin src="./assets/popup-BwMcPd7w.js"></script>
7
  <link rel="modulepreload" crossorigin href="./assets/vscode-jsonrpc-B7fdjHWu.js">
8
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-RhymR7yg.js">
9
  <link rel="modulepreload" crossorigin href="./assets/@chevrotain-DFy4Htpj.js">
@@ -80,9 +80,9 @@
80
  <link rel="modulepreload" crossorigin href="./assets/markdown-it-C8SkdHr7.js">
81
  <link rel="modulepreload" crossorigin href="./assets/katex-Vs6-m9jZ.js">
82
  <link rel="modulepreload" crossorigin href="./assets/@traptitech-xv_Vpjqh.js">
83
- <link rel="modulepreload" crossorigin href="./assets/highlight.js-BdwRhiJ6.js">
84
- <link rel="modulepreload" crossorigin href="./assets/markdown-it-highlightjs-BA9B6Zno.js">
85
- <link rel="modulepreload" crossorigin href="./assets/markdown-BnwBbO-S.js">
86
  <link rel="stylesheet" crossorigin href="./assets/tdesign-icons-vue-next-BGgy7GQY.css">
87
  <link rel="stylesheet" crossorigin href="./assets/tdesign-vue-next-BiLJzazs.css">
88
  <link rel="stylesheet" crossorigin href="./assets/popup-BMjsrYtk.css">
 
3
  <head>
4
  <meta charset="UTF-8" />
5
  <title>Popup</title>
6
+ <script type="module" crossorigin src="./assets/popup-DR3WY9dZ.js"></script>
7
  <link rel="modulepreload" crossorigin href="./assets/vscode-jsonrpc-B7fdjHWu.js">
8
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-RhymR7yg.js">
9
  <link rel="modulepreload" crossorigin href="./assets/@chevrotain-DFy4Htpj.js">
 
80
  <link rel="modulepreload" crossorigin href="./assets/markdown-it-C8SkdHr7.js">
81
  <link rel="modulepreload" crossorigin href="./assets/katex-Vs6-m9jZ.js">
82
  <link rel="modulepreload" crossorigin href="./assets/@traptitech-xv_Vpjqh.js">
83
+ <link rel="modulepreload" crossorigin href="./assets/highlight.js-ato5kCvT.js">
84
+ <link rel="modulepreload" crossorigin href="./assets/markdown-it-highlightjs-6zEPG1Qy.js">
85
+ <link rel="modulepreload" crossorigin href="./assets/markdown-6PNN04BW.js">
86
  <link rel="stylesheet" crossorigin href="./assets/tdesign-icons-vue-next-BGgy7GQY.css">
87
  <link rel="stylesheet" crossorigin href="./assets/tdesign-vue-next-BiLJzazs.css">
88
  <link rel="stylesheet" crossorigin href="./assets/popup-BMjsrYtk.css">
.output/public/pwa-196x196.png CHANGED

Git LFS Details

  • SHA256: dc7903bd426f4f305aadb31ef49da35a2780e12b03645e85f6f142b152198bfe
  • Pointer size: 129 Bytes
  • Size of remote file: 7.86 kB
.output/public/pwa-256x256.png CHANGED

Git LFS Details

  • SHA256: 36fff2dd78b3987b4fff49dda1f33f457a0e5393d4253bfd2653c1287487576c
  • Pointer size: 130 Bytes
  • Size of remote file: 10 kB
.output/public/pwa-512x512.png CHANGED

Git LFS Details

  • SHA256: e82b8154532caf0a8ba00a841daa0c879d04b93bcc48abf13c794b393d72fbd7
  • Pointer size: 130 Bytes
  • Size of remote file: 27.6 kB
.output/public/sw.js CHANGED
@@ -1,5 +1,5 @@
1
  // 缓存名称 - 更改版本号可以强制更新缓存
2
- const CACHE_NAME = 'app-cache-v1743400142659';
3
  const ASSETS_PATTERN = /\/assets\//;
4
  // 需要缓存的资源列表
5
  const urlsToCache = [
 
1
  // 缓存名称 - 更改版本号可以强制更新缓存
2
+ const CACHE_NAME = 'app-cache-v1743491408449';
3
  const ASSETS_PATTERN = /\/assets\//;
4
  // 需要缓存的资源列表
5
  const urlsToCache = [
.output/public/swagger/favicon-16x16.png CHANGED

Git LFS Details

  • SHA256: af24ad604dd7b3bcda8f975ab973075f4a2f70a4087944a12f8ef8b63a3e07c2
  • Pointer size: 128 Bytes
  • Size of remote file: 665 Bytes
.output/public/swagger/favicon-32x32.png CHANGED

Git LFS Details

  • SHA256: 3ed612f41e050ca5e7000cad6f1cbe7e7da39f65fca99c02e99e6591056e5837
  • Pointer size: 128 Bytes
  • Size of remote file: 628 Bytes
.output/server/chunks/nitro/nitro.mjs CHANGED
The diff for this file is too large to render. See raw diff
 
package-lock.json CHANGED
@@ -2495,43 +2495,6 @@
2495
  "node": ">=18"
2496
  }
2497
  },
2498
- "node_modules/@mapbox/node-pre-gyp/node_modules/glob": {
2499
- "version": "10.4.5",
2500
- "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",
2501
- "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",
2502
- "dev": true,
2503
- "license": "ISC",
2504
- "dependencies": {
2505
- "foreground-child": "^3.1.0",
2506
- "jackspeak": "^3.1.2",
2507
- "minimatch": "^9.0.4",
2508
- "minipass": "^7.1.2",
2509
- "package-json-from-dist": "^1.0.0",
2510
- "path-scurry": "^1.11.1"
2511
- },
2512
- "bin": {
2513
- "glob": "dist/esm/bin.mjs"
2514
- },
2515
- "funding": {
2516
- "url": "https://github.com/sponsors/isaacs"
2517
- }
2518
- },
2519
- "node_modules/@mapbox/node-pre-gyp/node_modules/minimatch": {
2520
- "version": "9.0.5",
2521
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
2522
- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
2523
- "dev": true,
2524
- "license": "ISC",
2525
- "dependencies": {
2526
- "brace-expansion": "^2.0.1"
2527
- },
2528
- "engines": {
2529
- "node": ">=16 || 14 >=14.17"
2530
- },
2531
- "funding": {
2532
- "url": "https://github.com/sponsors/isaacs"
2533
- }
2534
- },
2535
  "node_modules/@mapbox/node-pre-gyp/node_modules/minipass": {
2536
  "version": "7.1.2",
2537
  "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
@@ -2543,14 +2506,13 @@
2543
  }
2544
  },
2545
  "node_modules/@mapbox/node-pre-gyp/node_modules/minizlib": {
2546
- "version": "3.0.1",
2547
- "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz",
2548
- "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==",
2549
  "dev": true,
2550
  "license": "MIT",
2551
  "dependencies": {
2552
- "minipass": "^7.0.4",
2553
- "rimraf": "^5.0.5"
2554
  },
2555
  "engines": {
2556
  "node": ">= 18"
@@ -2572,22 +2534,6 @@
2572
  "url": "https://github.com/sponsors/isaacs"
2573
  }
2574
  },
2575
- "node_modules/@mapbox/node-pre-gyp/node_modules/rimraf": {
2576
- "version": "5.0.10",
2577
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz",
2578
- "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==",
2579
- "dev": true,
2580
- "license": "ISC",
2581
- "dependencies": {
2582
- "glob": "^10.3.7"
2583
- },
2584
- "bin": {
2585
- "rimraf": "dist/esm/bin.mjs"
2586
- },
2587
- "funding": {
2588
- "url": "https://github.com/sponsors/isaacs"
2589
- }
2590
- },
2591
  "node_modules/@mapbox/node-pre-gyp/node_modules/semver": {
2592
  "version": "7.7.1",
2593
  "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
@@ -4690,9 +4636,9 @@
4690
  "license": "MIT"
4691
  },
4692
  "node_modules/@types/node": {
4693
- "version": "22.13.14",
4694
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz",
4695
- "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==",
4696
  "license": "MIT",
4697
  "dependencies": {
4698
  "undici-types": "~6.20.0"
@@ -4791,9 +4737,9 @@
4791
  "license": "MIT"
4792
  },
4793
  "node_modules/@types/ws": {
4794
- "version": "8.18.0",
4795
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.0.tgz",
4796
- "integrity": "sha512-8svvI3hMyvN0kKCJMvTJP/x6Y/EoQbepff882wL+Sn5QsXb3etnamgrJq4isrBxSJj5L2AuXcI0+bgkoAXGUJw==",
4797
  "license": "MIT",
4798
  "dependencies": {
4799
  "@types/node": "*"
@@ -4912,14 +4858,14 @@
4912
  }
4913
  },
4914
  "node_modules/@vitest/expect": {
4915
- "version": "3.0.9",
4916
- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.0.9.tgz",
4917
- "integrity": "sha512-5eCqRItYgIML7NNVgJj6TVCmdzE7ZVgJhruW0ziSQV4V7PvLkDL1bBkBdcTs/VuIz0IxPb5da1IDSqc1TR9eig==",
4918
  "dev": true,
4919
  "license": "MIT",
4920
  "dependencies": {
4921
- "@vitest/spy": "3.0.9",
4922
- "@vitest/utils": "3.0.9",
4923
  "chai": "^5.2.0",
4924
  "tinyrainbow": "^2.0.0"
4925
  },
@@ -4928,13 +4874,13 @@
4928
  }
4929
  },
4930
  "node_modules/@vitest/mocker": {
4931
- "version": "3.0.9",
4932
- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.0.9.tgz",
4933
- "integrity": "sha512-ryERPIBOnvevAkTq+L1lD+DTFBRcjueL9lOUfXsLfwP92h4e+Heb+PjiqS3/OURWPtywfafK0kj++yDFjWUmrA==",
4934
  "dev": true,
4935
  "license": "MIT",
4936
  "dependencies": {
4937
- "@vitest/spy": "3.0.9",
4938
  "estree-walker": "^3.0.3",
4939
  "magic-string": "^0.30.17"
4940
  },
@@ -4965,9 +4911,9 @@
4965
  }
4966
  },
4967
  "node_modules/@vitest/pretty-format": {
4968
- "version": "3.0.9",
4969
- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.0.9.tgz",
4970
- "integrity": "sha512-OW9F8t2J3AwFEwENg3yMyKWweF7oRJlMyHOMIhO5F3n0+cgQAJZBjNgrF8dLwFTEXl5jUqBLXd9QyyKv8zEcmA==",
4971
  "dev": true,
4972
  "license": "MIT",
4973
  "dependencies": {
@@ -4978,13 +4924,13 @@
4978
  }
4979
  },
4980
  "node_modules/@vitest/runner": {
4981
- "version": "3.0.9",
4982
- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.0.9.tgz",
4983
- "integrity": "sha512-NX9oUXgF9HPfJSwl8tUZCMP1oGx2+Sf+ru6d05QjzQz4OwWg0psEzwY6VexP2tTHWdOkhKHUIZH+fS6nA7jfOw==",
4984
  "dev": true,
4985
  "license": "MIT",
4986
  "dependencies": {
4987
- "@vitest/utils": "3.0.9",
4988
  "pathe": "^2.0.3"
4989
  },
4990
  "funding": {
@@ -4992,13 +4938,13 @@
4992
  }
4993
  },
4994
  "node_modules/@vitest/snapshot": {
4995
- "version": "3.0.9",
4996
- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.0.9.tgz",
4997
- "integrity": "sha512-AiLUiuZ0FuA+/8i19mTYd+re5jqjEc2jZbgJ2up0VY0Ddyyxg/uUtBDpIFAy4uzKaQxOW8gMgBdAJJ2ydhu39A==",
4998
  "dev": true,
4999
  "license": "MIT",
5000
  "dependencies": {
5001
- "@vitest/pretty-format": "3.0.9",
5002
  "magic-string": "^0.30.17",
5003
  "pathe": "^2.0.3"
5004
  },
@@ -5007,9 +4953,9 @@
5007
  }
5008
  },
5009
  "node_modules/@vitest/spy": {
5010
- "version": "3.0.9",
5011
- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.0.9.tgz",
5012
- "integrity": "sha512-/CcK2UDl0aQ2wtkp3YVWldrpLRNCfVcIOFGlVGKO4R5eajsH393Z1yiXLVQ7vWsj26JOEjeZI0x5sm5P4OGUNQ==",
5013
  "dev": true,
5014
  "license": "MIT",
5015
  "dependencies": {
@@ -5020,13 +4966,13 @@
5020
  }
5021
  },
5022
  "node_modules/@vitest/utils": {
5023
- "version": "3.0.9",
5024
- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.0.9.tgz",
5025
- "integrity": "sha512-ilHM5fHhZ89MCp5aAaM9uhfl1c2JdxVxl3McqsdVyVNN6JffnEen8UMCdRTzOhGXNQGo5GNL9QugHrz727Wnng==",
5026
  "dev": true,
5027
  "license": "MIT",
5028
  "dependencies": {
5029
- "@vitest/pretty-format": "3.0.9",
5030
  "loupe": "^3.1.3",
5031
  "tinyrainbow": "^2.0.0"
5032
  },
@@ -5741,9 +5687,9 @@
5741
  }
5742
  },
5743
  "node_modules/@vuepress/bundler-vite/node_modules/vite": {
5744
- "version": "6.1.2",
5745
- "resolved": "https://registry.npmjs.org/vite/-/vite-6.1.2.tgz",
5746
- "integrity": "sha512-EiXfDyO/uNKhYOSlZ6+9qBz4H46A8Lr07pyjmb88KTbJ+xkXvnqtxvgtg2VxPU6Kfj8Ep0un9JLqdrCWLqIanw==",
5747
  "dev": true,
5748
  "license": "MIT",
5749
  "dependencies": {
@@ -6341,9 +6287,9 @@
6341
  }
6342
  },
6343
  "node_modules/@vuepress/helper": {
6344
- "version": "2.0.0-rc.90",
6345
- "resolved": "https://registry.npmjs.org/@vuepress/helper/-/helper-2.0.0-rc.90.tgz",
6346
- "integrity": "sha512-Muka4gW9LP+Sy1okW51bjxzFqAu0V7fzxQIhPQYMWmG9odbyR1yalxVUETeQNt6j0j7xWf+V8cbIb8QHmaXokQ==",
6347
  "dev": true,
6348
  "license": "MIT",
6349
  "dependencies": {
@@ -6480,13 +6426,13 @@
6480
  }
6481
  },
6482
  "node_modules/@vuepress/plugin-back-to-top": {
6483
- "version": "2.0.0-rc.90",
6484
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-back-to-top/-/plugin-back-to-top-2.0.0-rc.90.tgz",
6485
- "integrity": "sha512-5sr30hoIuxV0DQmaj+iYRrPXdII0iABqZmhKeSi/fw/xubo9HqdD5A6soe5WikMytu+lCkXJG2blUGTS0qERBA==",
6486
  "dev": true,
6487
  "license": "MIT",
6488
  "dependencies": {
6489
- "@vuepress/helper": "2.0.0-rc.90",
6490
  "@vueuse/core": "^13.0.0",
6491
  "vue": "^3.5.13"
6492
  },
@@ -6536,13 +6482,13 @@
6536
  }
6537
  },
6538
  "node_modules/@vuepress/plugin-copy-code": {
6539
- "version": "2.0.0-rc.90",
6540
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-copy-code/-/plugin-copy-code-2.0.0-rc.90.tgz",
6541
- "integrity": "sha512-8eaGzXWOKVcyiqgf2/IB/xDftXTm1tilNKMswA9FFBVDhsgDnC4ZxiDmK81dM5W9yVGbBtn2C1lvp9N13y2gLQ==",
6542
  "dev": true,
6543
  "license": "MIT",
6544
  "dependencies": {
6545
- "@vuepress/helper": "2.0.0-rc.90",
6546
  "@vueuse/core": "^13.0.0",
6547
  "vue": "^3.5.13"
6548
  },
@@ -6592,13 +6538,13 @@
6592
  }
6593
  },
6594
  "node_modules/@vuepress/plugin-git": {
6595
- "version": "2.0.0-rc.90",
6596
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-git/-/plugin-git-2.0.0-rc.90.tgz",
6597
- "integrity": "sha512-Fqeb+yOuWE/O6KxUoCU9p5SWsCThkB8lDBUttlxipAY2B58k9bts3RJia+KLpWkG2pMIZpy7qBwu1ftB9zja7Q==",
6598
  "dev": true,
6599
  "license": "MIT",
6600
  "dependencies": {
6601
- "@vuepress/helper": "2.0.0-rc.90",
6602
  "@vueuse/core": "^13.0.0",
6603
  "execa": "^9.5.2",
6604
  "vue": "^3.5.13"
@@ -6649,29 +6595,29 @@
6649
  }
6650
  },
6651
  "node_modules/@vuepress/plugin-links-check": {
6652
- "version": "2.0.0-rc.90",
6653
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-links-check/-/plugin-links-check-2.0.0-rc.90.tgz",
6654
- "integrity": "sha512-GiHTY2dhvNK4e1CwgDflLXxRx5GtgIUmbOPQ2V6rpgYs0pksgX1FU4lSXlM8WFDrtVIQms7F7orNIN0g6I/zjg==",
6655
  "dev": true,
6656
  "license": "MIT",
6657
  "dependencies": {
6658
- "@vuepress/helper": "2.0.0-rc.90"
6659
  },
6660
  "peerDependencies": {
6661
  "vuepress": "2.0.0-rc.20"
6662
  }
6663
  },
6664
  "node_modules/@vuepress/plugin-markdown-hint": {
6665
- "version": "2.0.0-rc.90",
6666
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-markdown-hint/-/plugin-markdown-hint-2.0.0-rc.90.tgz",
6667
- "integrity": "sha512-dS2q1yZ9Y0RJFDLQypWp8iZmnJzYJOBwKvhVbvO0+JJ1mc+1G8/uEEiMdn2SA9VDU9kniohMgeEndkZzSfrL4g==",
6668
  "dev": true,
6669
  "license": "MIT",
6670
  "dependencies": {
6671
  "@mdit/plugin-alert": "^0.16.0",
6672
  "@mdit/plugin-container": "^0.16.0",
6673
  "@types/markdown-it": "^14.1.2",
6674
- "@vuepress/helper": "2.0.0-rc.90",
6675
  "@vueuse/core": "^13.0.0"
6676
  },
6677
  "peerDependencies": {
@@ -6720,15 +6666,15 @@
6720
  }
6721
  },
6722
  "node_modules/@vuepress/plugin-markdown-tab": {
6723
- "version": "2.0.0-rc.90",
6724
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-markdown-tab/-/plugin-markdown-tab-2.0.0-rc.90.tgz",
6725
- "integrity": "sha512-lcypLvr4CI1gnjJKepvWGpfZvw53oOfoMUWwDu/1mO7IQvTslHQw19q6u5J/hi59kwgjsffSetr+CWZYcF8diQ==",
6726
  "dev": true,
6727
  "license": "MIT",
6728
  "dependencies": {
6729
  "@mdit/plugin-tab": "^0.16.0",
6730
  "@types/markdown-it": "^14.1.2",
6731
- "@vuepress/helper": "2.0.0-rc.90",
6732
  "@vueuse/core": "^13.0.0",
6733
  "vue": "^3.5.13"
6734
  },
@@ -6778,13 +6724,13 @@
6778
  }
6779
  },
6780
  "node_modules/@vuepress/plugin-medium-zoom": {
6781
- "version": "2.0.0-rc.90",
6782
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-medium-zoom/-/plugin-medium-zoom-2.0.0-rc.90.tgz",
6783
- "integrity": "sha512-YAorPqntaE2pbBKR6i8XvspPAfS6KyOB5kKKJ2Jqw8ml7/oPnGFufnYM8F8tkCantNxSAQ53P9JNO4GFBTwlhA==",
6784
  "dev": true,
6785
  "license": "MIT",
6786
  "dependencies": {
6787
- "@vuepress/helper": "2.0.0-rc.90",
6788
  "medium-zoom": "^1.1.0",
6789
  "vue": "^3.5.13"
6790
  },
@@ -6793,13 +6739,13 @@
6793
  }
6794
  },
6795
  "node_modules/@vuepress/plugin-nprogress": {
6796
- "version": "2.0.0-rc.90",
6797
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-nprogress/-/plugin-nprogress-2.0.0-rc.90.tgz",
6798
- "integrity": "sha512-I79O9bX2ogb5orrZbH0b1byu+PfaohKBlop1Rfvk0LCFw1DSmuoA9DtiLA5lG90Nb0RvJqJq7AyqCspwmDim6Q==",
6799
  "dev": true,
6800
  "license": "MIT",
6801
  "dependencies": {
6802
- "@vuepress/helper": "2.0.0-rc.90",
6803
  "vue": "^3.5.13"
6804
  },
6805
  "peerDependencies": {
@@ -6807,13 +6753,13 @@
6807
  }
6808
  },
6809
  "node_modules/@vuepress/plugin-palette": {
6810
- "version": "2.0.0-rc.90",
6811
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-palette/-/plugin-palette-2.0.0-rc.90.tgz",
6812
- "integrity": "sha512-F0PrWNXWPuzOWLmTO0V6BI+S72cpQxMvmF6jU1O/1LQFiKcgc/7fTXwcFMhd/fpntC/7vtTXsWxNLU0xrHRHFQ==",
6813
  "dev": true,
6814
  "license": "MIT",
6815
  "dependencies": {
6816
- "@vuepress/helper": "2.0.0-rc.90",
6817
  "chokidar": "^3.6.0"
6818
  },
6819
  "peerDependencies": {
@@ -6821,13 +6767,13 @@
6821
  }
6822
  },
6823
  "node_modules/@vuepress/plugin-prismjs": {
6824
- "version": "2.0.0-rc.90",
6825
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-prismjs/-/plugin-prismjs-2.0.0-rc.90.tgz",
6826
- "integrity": "sha512-wZO9MbUQJw30B1Wipota3ijW2KzEbY09QxR7HZFwqnGhpn1i739hlYVHr+WAG26bb1NWNHyY8U/CCiBHkCHlew==",
6827
  "dev": true,
6828
  "license": "MIT",
6829
  "dependencies": {
6830
- "@vuepress/helper": "2.0.0-rc.90",
6831
  "@vuepress/highlighter-helper": "2.0.0-rc.90",
6832
  "prismjs": "^1.30.0"
6833
  },
@@ -6899,26 +6845,26 @@
6899
  }
6900
  },
6901
  "node_modules/@vuepress/plugin-seo": {
6902
- "version": "2.0.0-rc.90",
6903
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-seo/-/plugin-seo-2.0.0-rc.90.tgz",
6904
- "integrity": "sha512-fy16wmfb1APQtEfPLJkGPS0+oZ/FYRm08cdiZzEpjvVP04G5NWT6PnorhPIkzxaZh2riFR4jFlf8EzIGbF4/Nw==",
6905
  "dev": true,
6906
  "license": "MIT",
6907
  "dependencies": {
6908
- "@vuepress/helper": "2.0.0-rc.90"
6909
  },
6910
  "peerDependencies": {
6911
  "vuepress": "2.0.0-rc.20"
6912
  }
6913
  },
6914
  "node_modules/@vuepress/plugin-sitemap": {
6915
- "version": "2.0.0-rc.90",
6916
- "resolved": "https://registry.npmjs.org/@vuepress/plugin-sitemap/-/plugin-sitemap-2.0.0-rc.90.tgz",
6917
- "integrity": "sha512-prlcmnyWSsNEfkstZnOnTuV+byUwYOxzDojF/EpFNS1NUpyROTSZ3DhcFPQBMnFkQ24R4uYhebxUNQXpykYLpQ==",
6918
  "dev": true,
6919
  "license": "MIT",
6920
  "dependencies": {
6921
- "@vuepress/helper": "2.0.0-rc.90",
6922
  "sitemap": "^8.0.0"
6923
  },
6924
  "peerDependencies": {
@@ -6950,26 +6896,26 @@
6950
  }
6951
  },
6952
  "node_modules/@vuepress/theme-default": {
6953
- "version": "2.0.0-rc.90",
6954
- "resolved": "https://registry.npmjs.org/@vuepress/theme-default/-/theme-default-2.0.0-rc.90.tgz",
6955
- "integrity": "sha512-DgyY6thc6j0bLqrFUPf6P18YrgHHH7P79Qx8tC7mu4veshVS8UY0U6QKpQo3MVFWsMfeX9E3BTxNhh54QGQw9g==",
6956
  "dev": true,
6957
  "license": "MIT",
6958
  "dependencies": {
6959
- "@vuepress/helper": "2.0.0-rc.90",
6960
  "@vuepress/plugin-active-header-links": "2.0.0-rc.86",
6961
- "@vuepress/plugin-back-to-top": "2.0.0-rc.90",
6962
- "@vuepress/plugin-copy-code": "2.0.0-rc.90",
6963
- "@vuepress/plugin-git": "2.0.0-rc.90",
6964
- "@vuepress/plugin-links-check": "2.0.0-rc.90",
6965
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.90",
6966
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.90",
6967
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.90",
6968
- "@vuepress/plugin-nprogress": "2.0.0-rc.90",
6969
- "@vuepress/plugin-palette": "2.0.0-rc.90",
6970
- "@vuepress/plugin-prismjs": "2.0.0-rc.90",
6971
- "@vuepress/plugin-seo": "2.0.0-rc.90",
6972
- "@vuepress/plugin-sitemap": "2.0.0-rc.90",
6973
  "@vuepress/plugin-theme-data": "2.0.0-rc.86",
6974
  "@vueuse/core": "^13.0.0",
6975
  "vue": "^3.5.13"
@@ -10621,16 +10567,16 @@
10621
  }
10622
  },
10623
  "node_modules/electron-to-chromium": {
10624
- "version": "1.5.128",
10625
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.128.tgz",
10626
- "integrity": "sha512-bo1A4HH/NS522Ws0QNFIzyPcyUUNV/yyy70Ho1xqfGYzPUme2F/xr4tlEOuM6/A538U1vDA7a4XfCd1CKRegKQ==",
10627
  "dev": true,
10628
  "license": "ISC"
10629
  },
10630
  "node_modules/electron/node_modules/@types/node": {
10631
- "version": "20.17.28",
10632
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.28.tgz",
10633
- "integrity": "sha512-DHlH/fNL6Mho38jTy7/JT7sn2wnXI+wULR6PV4gy4VHLVvnrV/d3pHAMQHhc4gjdLmK2ZiPoMxzp6B3yRajLSQ==",
10634
  "dev": true,
10635
  "license": "MIT",
10636
  "dependencies": {
@@ -11127,9 +11073,9 @@
11127
  }
11128
  },
11129
  "node_modules/expect-type": {
11130
- "version": "1.2.0",
11131
- "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.0.tgz",
11132
- "integrity": "sha512-80F22aiJ3GLyVnS/B3HzgR6RelZVumzj9jkL0Rhz4h0xYbNW9PjlQz5h3J/SShErbXBc295vseR4/MIbVmUbeA==",
11133
  "dev": true,
11134
  "license": "Apache-2.0",
11135
  "engines": {
@@ -17009,9 +16955,9 @@
17009
  }
17010
  },
17011
  "node_modules/sass-embedded": {
17012
- "version": "1.86.0",
17013
- "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.86.0.tgz",
17014
- "integrity": "sha512-Ibq5DzxjSf9f/IJmKeHVeXlVqiZWdRJF+RXy6v6UupvMYVMU5Ei+teSFBvvpPD5bB2QhhnU/OJlSM0EBCtfr9g==",
17015
  "dev": true,
17016
  "license": "MIT",
17017
  "dependencies": {
@@ -17031,32 +16977,32 @@
17031
  "node": ">=16.0.0"
17032
  },
17033
  "optionalDependencies": {
17034
- "sass-embedded-android-arm": "1.86.0",
17035
- "sass-embedded-android-arm64": "1.86.0",
17036
- "sass-embedded-android-ia32": "1.86.0",
17037
- "sass-embedded-android-riscv64": "1.86.0",
17038
- "sass-embedded-android-x64": "1.86.0",
17039
- "sass-embedded-darwin-arm64": "1.86.0",
17040
- "sass-embedded-darwin-x64": "1.86.0",
17041
- "sass-embedded-linux-arm": "1.86.0",
17042
- "sass-embedded-linux-arm64": "1.86.0",
17043
- "sass-embedded-linux-ia32": "1.86.0",
17044
- "sass-embedded-linux-musl-arm": "1.86.0",
17045
- "sass-embedded-linux-musl-arm64": "1.86.0",
17046
- "sass-embedded-linux-musl-ia32": "1.86.0",
17047
- "sass-embedded-linux-musl-riscv64": "1.86.0",
17048
- "sass-embedded-linux-musl-x64": "1.86.0",
17049
- "sass-embedded-linux-riscv64": "1.86.0",
17050
- "sass-embedded-linux-x64": "1.86.0",
17051
- "sass-embedded-win32-arm64": "1.86.0",
17052
- "sass-embedded-win32-ia32": "1.86.0",
17053
- "sass-embedded-win32-x64": "1.86.0"
17054
  }
17055
  },
17056
  "node_modules/sass-embedded-android-arm": {
17057
- "version": "1.86.0",
17058
- "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.86.0.tgz",
17059
- "integrity": "sha512-NS8v6BCbzskXUMBtzfuB+j2yQMgiwg5edKHTYfQU7gAWai2hkRhS06YNEMff3aRxV0IFInxPRHOobd8xWPHqeA==",
17060
  "cpu": [
17061
  "arm"
17062
  ],
@@ -17071,9 +17017,9 @@
17071
  }
17072
  },
17073
  "node_modules/sass-embedded-android-arm64": {
17074
- "version": "1.86.0",
17075
- "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.86.0.tgz",
17076
- "integrity": "sha512-r7MZtlAI2VFUnKE8B5UOrpoE6OGpdf1dIB6ndoxb3oiURgMyfTVU7yvJcL12GGvtVwQ2boCj6dq//Lqq9CXPlQ==",
17077
  "cpu": [
17078
  "arm64"
17079
  ],
@@ -17088,9 +17034,9 @@
17088
  }
17089
  },
17090
  "node_modules/sass-embedded-android-ia32": {
17091
- "version": "1.86.0",
17092
- "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.86.0.tgz",
17093
- "integrity": "sha512-UjfElrGaOTNOnxLZLxf6MFndFIe7zyK+81f83BioZ7/jcoAd6iCHZT8yQMvu8wINyVodPcaXZl8KxlKcl62VAA==",
17094
  "cpu": [
17095
  "ia32"
17096
  ],
@@ -17105,9 +17051,9 @@
17105
  }
17106
  },
17107
  "node_modules/sass-embedded-android-riscv64": {
17108
- "version": "1.86.0",
17109
- "resolved": "https://registry.npmjs.org/sass-embedded-android-riscv64/-/sass-embedded-android-riscv64-1.86.0.tgz",
17110
- "integrity": "sha512-TsqCLxHWLFS2mbpUkL/nge3jSkaPK2VmLkkoi5iO/EQT4SFvm1lNUgPwlLXu9DplZ+aqGVzRS9Y6Psjv+qW7kw==",
17111
  "cpu": [
17112
  "riscv64"
17113
  ],
@@ -17122,9 +17068,9 @@
17122
  }
17123
  },
17124
  "node_modules/sass-embedded-android-x64": {
17125
- "version": "1.86.0",
17126
- "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.86.0.tgz",
17127
- "integrity": "sha512-8Q263GgwGjz7Jkf7Eghp7NrwqskDL95WO9sKrNm9iOd2re/M48W7RN/lpdcZwrUnEOhueks0RRyYyZYBNRz8Tg==",
17128
  "cpu": [
17129
  "x64"
17130
  ],
@@ -17139,9 +17085,9 @@
17139
  }
17140
  },
17141
  "node_modules/sass-embedded-darwin-arm64": {
17142
- "version": "1.86.0",
17143
- "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.86.0.tgz",
17144
- "integrity": "sha512-d8oMEaIweq1tjrb/BT43igDviOMS1TeDpc51QF7vAHkt9drSjPmqEmbqStdFYPAGZj1j0RA4WCRoVl6jVixi/w==",
17145
  "cpu": [
17146
  "arm64"
17147
  ],
@@ -17156,9 +17102,9 @@
17156
  }
17157
  },
17158
  "node_modules/sass-embedded-darwin-x64": {
17159
- "version": "1.86.0",
17160
- "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.86.0.tgz",
17161
- "integrity": "sha512-5NLRtn0ZUDBkfpKOsgLGl9B34po4Qui8Nff/lXTO+YkxBQFX4GoMkYNk9EJqHwoLLzICsxIhNDMMDiPGz7Fdrw==",
17162
  "cpu": [
17163
  "x64"
17164
  ],
@@ -17173,9 +17119,9 @@
17173
  }
17174
  },
17175
  "node_modules/sass-embedded-linux-arm": {
17176
- "version": "1.86.0",
17177
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.86.0.tgz",
17178
- "integrity": "sha512-b6wm0+Il+blJDleRXAqA6JISGMjRb0/thTEg4NWgmiJwUoZjDycj5FTbfYPnLXjCEIMGaYmW3patrJ3JMJcT3Q==",
17179
  "cpu": [
17180
  "arm"
17181
  ],
@@ -17190,9 +17136,9 @@
17190
  }
17191
  },
17192
  "node_modules/sass-embedded-linux-arm64": {
17193
- "version": "1.86.0",
17194
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.86.0.tgz",
17195
- "integrity": "sha512-50A+0rhahRDRkKkv+qS7GDAAkW1VPm2RCX4zY4JWydhV4NwMXr6HbkLnsJ2MGixCyibPh59iflMpNBhe7SEMNg==",
17196
  "cpu": [
17197
  "arm64"
17198
  ],
@@ -17207,9 +17153,9 @@
17207
  }
17208
  },
17209
  "node_modules/sass-embedded-linux-ia32": {
17210
- "version": "1.86.0",
17211
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.86.0.tgz",
17212
- "integrity": "sha512-h0mr9w71TV3BRPk9JHr0flnRCznhkraY14gaj5T+t78vUFByOUMxp4hTr+JpZAR5mv0mIeoMwrQYwWJoqKI0mw==",
17213
  "cpu": [
17214
  "ia32"
17215
  ],
@@ -17224,9 +17170,9 @@
17224
  }
17225
  },
17226
  "node_modules/sass-embedded-linux-musl-arm": {
17227
- "version": "1.86.0",
17228
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.86.0.tgz",
17229
- "integrity": "sha512-KZU70jBMVykC9HzS+o2FhrJaprFLDk3LWXVPtBFxgLlkcQ/apCkUCh2WVNViLhI2U4NrMSnTvd4kDnC/0m8qIw==",
17230
  "cpu": [
17231
  "arm"
17232
  ],
@@ -17241,9 +17187,9 @@
17241
  }
17242
  },
17243
  "node_modules/sass-embedded-linux-musl-arm64": {
17244
- "version": "1.86.0",
17245
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.86.0.tgz",
17246
- "integrity": "sha512-5OZjiJIUyhvKJIGNDEjyRUWDe+W91hq4Bji27sy8gdEuDzPWLx4NzwpKwsBUALUfyW/J5dxgi0ZAQnI3HieyQg==",
17247
  "cpu": [
17248
  "arm64"
17249
  ],
@@ -17258,9 +17204,9 @@
17258
  }
17259
  },
17260
  "node_modules/sass-embedded-linux-musl-ia32": {
17261
- "version": "1.86.0",
17262
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.86.0.tgz",
17263
- "integrity": "sha512-vq9wJ7kaELrsNU6Ld6kvrIHxoIUWaD+5T6TQVj4SJP/iw1NjonyCDMQGGs6UgsIEzvaIwtlSlDbRewAq+4PchA==",
17264
  "cpu": [
17265
  "ia32"
17266
  ],
@@ -17275,9 +17221,9 @@
17275
  }
17276
  },
17277
  "node_modules/sass-embedded-linux-musl-riscv64": {
17278
- "version": "1.86.0",
17279
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-riscv64/-/sass-embedded-linux-musl-riscv64-1.86.0.tgz",
17280
- "integrity": "sha512-UZJPu4zKe3phEzoSVRh5jcSicBBPe+jEbVNALHSSz881iOAYnDQXHITGeQ4mM1/7e/LTyryHk6EPBoaLOv6JrA==",
17281
  "cpu": [
17282
  "riscv64"
17283
  ],
@@ -17292,9 +17238,9 @@
17292
  }
17293
  },
17294
  "node_modules/sass-embedded-linux-musl-x64": {
17295
- "version": "1.86.0",
17296
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.86.0.tgz",
17297
- "integrity": "sha512-8taAgbWMk4QHneJcouWmWZJlmKa2O03g4I/CFo4bfMPL87bibY90pAsSDd+C+t81g0+2aK0/lY/BoB0r3qXLiA==",
17298
  "cpu": [
17299
  "x64"
17300
  ],
@@ -17309,9 +17255,9 @@
17309
  }
17310
  },
17311
  "node_modules/sass-embedded-linux-riscv64": {
17312
- "version": "1.86.0",
17313
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-riscv64/-/sass-embedded-linux-riscv64-1.86.0.tgz",
17314
- "integrity": "sha512-yREY6o2sLwiiA03MWHVpnUliLscz0flEmFW/wzxYZJDqg9eZteB3hUWgZD63eLm2PTZsYxDQpjAHpa48nnIEmA==",
17315
  "cpu": [
17316
  "riscv64"
17317
  ],
@@ -17326,9 +17272,9 @@
17326
  }
17327
  },
17328
  "node_modules/sass-embedded-linux-x64": {
17329
- "version": "1.86.0",
17330
- "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.86.0.tgz",
17331
- "integrity": "sha512-sH0F8np9PTgTbFcJWxfr1NzPkL5ID2NcpMtZyKPTdnn9NkE/L2UwXSo6xOvY0Duc4Hg+58wSrDnj6KbvdeHCPg==",
17332
  "cpu": [
17333
  "x64"
17334
  ],
@@ -17343,9 +17289,9 @@
17343
  }
17344
  },
17345
  "node_modules/sass-embedded-win32-arm64": {
17346
- "version": "1.86.0",
17347
- "resolved": "https://registry.npmjs.org/sass-embedded-win32-arm64/-/sass-embedded-win32-arm64-1.86.0.tgz",
17348
- "integrity": "sha512-4O1XVUxLTIjMOvrziYwEZgvFqC5sF6t0hTAPJ+h2uiAUZg9Joo0PvuEedXurjISgDBsb5W5DTL9hH9q1BbP4cQ==",
17349
  "cpu": [
17350
  "arm64"
17351
  ],
@@ -17360,9 +17306,9 @@
17360
  }
17361
  },
17362
  "node_modules/sass-embedded-win32-ia32": {
17363
- "version": "1.86.0",
17364
- "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.86.0.tgz",
17365
- "integrity": "sha512-zuSP2axkGm4VaJWt38P464H+4424Swr9bzFNfbbznxe3Ue4RuqSBqwiLiYdg9Q1cecTQ2WGH7G7WO56KK7WLwg==",
17366
  "cpu": [
17367
  "ia32"
17368
  ],
@@ -17377,9 +17323,9 @@
17377
  }
17378
  },
17379
  "node_modules/sass-embedded-win32-x64": {
17380
- "version": "1.86.0",
17381
- "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.86.0.tgz",
17382
- "integrity": "sha512-GVX0CHtukr3kjqfqretSlPiJzV7V4JxUjpRZV+yC9gUMTiDErilJh2Chw1r0+MYiYvumCDUSDlticmvJs7v0tA==",
17383
  "cpu": [
17384
  "x64"
17385
  ],
@@ -19806,9 +19752,9 @@
19806
  }
19807
  },
19808
  "node_modules/vite": {
19809
- "version": "6.2.3",
19810
- "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.3.tgz",
19811
- "integrity": "sha512-IzwM54g4y9JA/xAeBPNaDXiBF8Jsgl3VBQ2YQ/wOY6fyW3xMdSoltIV3Bo59DErdqdE6RxUfv8W69DvUorE4Eg==",
19812
  "dev": true,
19813
  "license": "MIT",
19814
  "dependencies": {
@@ -19878,9 +19824,9 @@
19878
  }
19879
  },
19880
  "node_modules/vite-node": {
19881
- "version": "3.0.9",
19882
- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.0.9.tgz",
19883
- "integrity": "sha512-w3Gdx7jDcuT9cNn9jExXgOyKmf5UOTb6WMHz8LGAm54eS1Elf5OuBhCxl6zJxGhEeIkgsE1WbHuoL0mj/UXqXg==",
19884
  "dev": true,
19885
  "license": "MIT",
19886
  "dependencies": {
@@ -19947,31 +19893,31 @@
19947
  }
19948
  },
19949
  "node_modules/vitest": {
19950
- "version": "3.0.9",
19951
- "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.0.9.tgz",
19952
- "integrity": "sha512-BbcFDqNyBlfSpATmTtXOAOj71RNKDDvjBM/uPfnxxVGrG+FSH2RQIwgeEngTaTkuU/h0ScFvf+tRcKfYXzBybQ==",
19953
  "dev": true,
19954
  "license": "MIT",
19955
  "dependencies": {
19956
- "@vitest/expect": "3.0.9",
19957
- "@vitest/mocker": "3.0.9",
19958
- "@vitest/pretty-format": "^3.0.9",
19959
- "@vitest/runner": "3.0.9",
19960
- "@vitest/snapshot": "3.0.9",
19961
- "@vitest/spy": "3.0.9",
19962
- "@vitest/utils": "3.0.9",
19963
  "chai": "^5.2.0",
19964
  "debug": "^4.4.0",
19965
- "expect-type": "^1.1.0",
19966
  "magic-string": "^0.30.17",
19967
  "pathe": "^2.0.3",
19968
- "std-env": "^3.8.0",
19969
  "tinybench": "^2.9.0",
19970
  "tinyexec": "^0.3.2",
19971
  "tinypool": "^1.0.2",
19972
  "tinyrainbow": "^2.0.0",
19973
  "vite": "^5.0.0 || ^6.0.0",
19974
- "vite-node": "3.0.9",
19975
  "why-is-node-running": "^2.3.0"
19976
  },
19977
  "bin": {
@@ -19987,8 +19933,8 @@
19987
  "@edge-runtime/vm": "*",
19988
  "@types/debug": "^4.1.12",
19989
  "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
19990
- "@vitest/browser": "3.0.9",
19991
- "@vitest/ui": "3.0.9",
19992
  "happy-dom": "*",
19993
  "jsdom": "*"
19994
  },
 
2495
  "node": ">=18"
2496
  }
2497
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2498
  "node_modules/@mapbox/node-pre-gyp/node_modules/minipass": {
2499
  "version": "7.1.2",
2500
  "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
 
2506
  }
2507
  },
2508
  "node_modules/@mapbox/node-pre-gyp/node_modules/minizlib": {
2509
+ "version": "3.0.2",
2510
+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz",
2511
+ "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==",
2512
  "dev": true,
2513
  "license": "MIT",
2514
  "dependencies": {
2515
+ "minipass": "^7.1.2"
 
2516
  },
2517
  "engines": {
2518
  "node": ">= 18"
 
2534
  "url": "https://github.com/sponsors/isaacs"
2535
  }
2536
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2537
  "node_modules/@mapbox/node-pre-gyp/node_modules/semver": {
2538
  "version": "7.7.1",
2539
  "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
 
4636
  "license": "MIT"
4637
  },
4638
  "node_modules/@types/node": {
4639
+ "version": "22.13.15",
4640
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.15.tgz",
4641
+ "integrity": "sha512-imAbQEEbVni6i6h6Bd5xkCRwLqFc8hihCsi2GbtDoAtUcAFQ6Zs4pFXTZUUbroTkXdImczWM9AI8eZUuybXE3w==",
4642
  "license": "MIT",
4643
  "dependencies": {
4644
  "undici-types": "~6.20.0"
 
4737
  "license": "MIT"
4738
  },
4739
  "node_modules/@types/ws": {
4740
+ "version": "8.18.1",
4741
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
4742
+ "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
4743
  "license": "MIT",
4744
  "dependencies": {
4745
  "@types/node": "*"
 
4858
  }
4859
  },
4860
  "node_modules/@vitest/expect": {
4861
+ "version": "3.1.1",
4862
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.1.1.tgz",
4863
+ "integrity": "sha512-q/zjrW9lgynctNbwvFtQkGK9+vvHA5UzVi2V8APrp1C6fG6/MuYYkmlx4FubuqLycCeSdHD5aadWfua/Vr0EUA==",
4864
  "dev": true,
4865
  "license": "MIT",
4866
  "dependencies": {
4867
+ "@vitest/spy": "3.1.1",
4868
+ "@vitest/utils": "3.1.1",
4869
  "chai": "^5.2.0",
4870
  "tinyrainbow": "^2.0.0"
4871
  },
 
4874
  }
4875
  },
4876
  "node_modules/@vitest/mocker": {
4877
+ "version": "3.1.1",
4878
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.1.1.tgz",
4879
+ "integrity": "sha512-bmpJJm7Y7i9BBELlLuuM1J1Q6EQ6K5Ye4wcyOpOMXMcePYKSIYlpcrCm4l/O6ja4VJA5G2aMJiuZkZdnxlC3SA==",
4880
  "dev": true,
4881
  "license": "MIT",
4882
  "dependencies": {
4883
+ "@vitest/spy": "3.1.1",
4884
  "estree-walker": "^3.0.3",
4885
  "magic-string": "^0.30.17"
4886
  },
 
4911
  }
4912
  },
4913
  "node_modules/@vitest/pretty-format": {
4914
+ "version": "3.1.1",
4915
+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.1.1.tgz",
4916
+ "integrity": "sha512-dg0CIzNx+hMMYfNmSqJlLSXEmnNhMswcn3sXO7Tpldr0LiGmg3eXdLLhwkv2ZqgHb/d5xg5F7ezNFRA1fA13yA==",
4917
  "dev": true,
4918
  "license": "MIT",
4919
  "dependencies": {
 
4924
  }
4925
  },
4926
  "node_modules/@vitest/runner": {
4927
+ "version": "3.1.1",
4928
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.1.1.tgz",
4929
+ "integrity": "sha512-X/d46qzJuEDO8ueyjtKfxffiXraPRfmYasoC4i5+mlLEJ10UvPb0XH5M9C3gWuxd7BAQhpK42cJgJtq53YnWVA==",
4930
  "dev": true,
4931
  "license": "MIT",
4932
  "dependencies": {
4933
+ "@vitest/utils": "3.1.1",
4934
  "pathe": "^2.0.3"
4935
  },
4936
  "funding": {
 
4938
  }
4939
  },
4940
  "node_modules/@vitest/snapshot": {
4941
+ "version": "3.1.1",
4942
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.1.1.tgz",
4943
+ "integrity": "sha512-bByMwaVWe/+1WDf9exFxWWgAixelSdiwo2p33tpqIlM14vW7PRV5ppayVXtfycqze4Qhtwag5sVhX400MLBOOw==",
4944
  "dev": true,
4945
  "license": "MIT",
4946
  "dependencies": {
4947
+ "@vitest/pretty-format": "3.1.1",
4948
  "magic-string": "^0.30.17",
4949
  "pathe": "^2.0.3"
4950
  },
 
4953
  }
4954
  },
4955
  "node_modules/@vitest/spy": {
4956
+ "version": "3.1.1",
4957
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.1.1.tgz",
4958
+ "integrity": "sha512-+EmrUOOXbKzLkTDwlsc/xrwOlPDXyVk3Z6P6K4oiCndxz7YLpp/0R0UsWVOKT0IXWjjBJuSMk6D27qipaupcvQ==",
4959
  "dev": true,
4960
  "license": "MIT",
4961
  "dependencies": {
 
4966
  }
4967
  },
4968
  "node_modules/@vitest/utils": {
4969
+ "version": "3.1.1",
4970
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.1.1.tgz",
4971
+ "integrity": "sha512-1XIjflyaU2k3HMArJ50bwSh3wKWPD6Q47wz/NUSmRV0zNywPc4w79ARjg/i/aNINHwA+mIALhUVqD9/aUvZNgg==",
4972
  "dev": true,
4973
  "license": "MIT",
4974
  "dependencies": {
4975
+ "@vitest/pretty-format": "3.1.1",
4976
  "loupe": "^3.1.3",
4977
  "tinyrainbow": "^2.0.0"
4978
  },
 
5687
  }
5688
  },
5689
  "node_modules/@vuepress/bundler-vite/node_modules/vite": {
5690
+ "version": "6.1.3",
5691
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.1.3.tgz",
5692
+ "integrity": "sha512-JMnf752ldN0UhZoPYXuWiRPsC2Z5hPy9JeUwfNSPBY8TyFZbSHRE1f6/WA8umOEJp0EN3zTddgNNSLT6Fc10UQ==",
5693
  "dev": true,
5694
  "license": "MIT",
5695
  "dependencies": {
 
6287
  }
6288
  },
6289
  "node_modules/@vuepress/helper": {
6290
+ "version": "2.0.0-rc.91",
6291
+ "resolved": "https://registry.npmjs.org/@vuepress/helper/-/helper-2.0.0-rc.91.tgz",
6292
+ "integrity": "sha512-i8XsZpqA7VGyvnKWsffk3z9nUE4r1fYJ+XADO2pi1M1bXVWk6Wgli5aD07Rlz+3TsiCAq8L0sMrVwCmmVITI2A==",
6293
  "dev": true,
6294
  "license": "MIT",
6295
  "dependencies": {
 
6426
  }
6427
  },
6428
  "node_modules/@vuepress/plugin-back-to-top": {
6429
+ "version": "2.0.0-rc.91",
6430
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-back-to-top/-/plugin-back-to-top-2.0.0-rc.91.tgz",
6431
+ "integrity": "sha512-+qo4mG6FiDq1xMl6aIRKsKuIUZsCkDxPSKLTrZtqF1xXxTSGoJHGHzOLrj9V1GTFDwcp0GpXfp9Ar2LP0I3pMw==",
6432
  "dev": true,
6433
  "license": "MIT",
6434
  "dependencies": {
6435
+ "@vuepress/helper": "2.0.0-rc.91",
6436
  "@vueuse/core": "^13.0.0",
6437
  "vue": "^3.5.13"
6438
  },
 
6482
  }
6483
  },
6484
  "node_modules/@vuepress/plugin-copy-code": {
6485
+ "version": "2.0.0-rc.91",
6486
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-copy-code/-/plugin-copy-code-2.0.0-rc.91.tgz",
6487
+ "integrity": "sha512-PK/davA936QgmfB/UGI8nSk14f34AvhnJ5vP27G8HGmY1sZ++zOYThtYFfRfCZR1jE09q9/SViSXEM9tSAGKlg==",
6488
  "dev": true,
6489
  "license": "MIT",
6490
  "dependencies": {
6491
+ "@vuepress/helper": "2.0.0-rc.91",
6492
  "@vueuse/core": "^13.0.0",
6493
  "vue": "^3.5.13"
6494
  },
 
6538
  }
6539
  },
6540
  "node_modules/@vuepress/plugin-git": {
6541
+ "version": "2.0.0-rc.91",
6542
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-git/-/plugin-git-2.0.0-rc.91.tgz",
6543
+ "integrity": "sha512-MWF871+OfYLN3U/sblSXyKQIxIhTqzSnMhKu3fHaD1/aufJZfGJxo3pzRPCm5Gd6A6se0tzrBNAEkP7wc8lu3A==",
6544
  "dev": true,
6545
  "license": "MIT",
6546
  "dependencies": {
6547
+ "@vuepress/helper": "2.0.0-rc.91",
6548
  "@vueuse/core": "^13.0.0",
6549
  "execa": "^9.5.2",
6550
  "vue": "^3.5.13"
 
6595
  }
6596
  },
6597
  "node_modules/@vuepress/plugin-links-check": {
6598
+ "version": "2.0.0-rc.91",
6599
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-links-check/-/plugin-links-check-2.0.0-rc.91.tgz",
6600
+ "integrity": "sha512-PBiXKKha1PrAA0o2UbdgvRBzeXN1ZrlKQSNI2K43gwD557hm9Wq5iNMgvTXpix39NEgx89vHmJmVoYO46zIwlg==",
6601
  "dev": true,
6602
  "license": "MIT",
6603
  "dependencies": {
6604
+ "@vuepress/helper": "2.0.0-rc.91"
6605
  },
6606
  "peerDependencies": {
6607
  "vuepress": "2.0.0-rc.20"
6608
  }
6609
  },
6610
  "node_modules/@vuepress/plugin-markdown-hint": {
6611
+ "version": "2.0.0-rc.91",
6612
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-markdown-hint/-/plugin-markdown-hint-2.0.0-rc.91.tgz",
6613
+ "integrity": "sha512-7NLNhN0dIlU71wEvBaGAxHHYkXJTL5ZqGSM0bO+UUNTCTHzKOVBGaJT7Pq8OOoTkiOv3zO7o8Qojlbe+EWrfrQ==",
6614
  "dev": true,
6615
  "license": "MIT",
6616
  "dependencies": {
6617
  "@mdit/plugin-alert": "^0.16.0",
6618
  "@mdit/plugin-container": "^0.16.0",
6619
  "@types/markdown-it": "^14.1.2",
6620
+ "@vuepress/helper": "2.0.0-rc.91",
6621
  "@vueuse/core": "^13.0.0"
6622
  },
6623
  "peerDependencies": {
 
6666
  }
6667
  },
6668
  "node_modules/@vuepress/plugin-markdown-tab": {
6669
+ "version": "2.0.0-rc.91",
6670
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-markdown-tab/-/plugin-markdown-tab-2.0.0-rc.91.tgz",
6671
+ "integrity": "sha512-jips0vmGiLtSPKCyZGk8ZjXsFFzxj6zfvVxNqRpdLcsuAzwZ7oCN9zpQFBXRdL+hzkD6Ib6MJGg61tVinsWvxQ==",
6672
  "dev": true,
6673
  "license": "MIT",
6674
  "dependencies": {
6675
  "@mdit/plugin-tab": "^0.16.0",
6676
  "@types/markdown-it": "^14.1.2",
6677
+ "@vuepress/helper": "2.0.0-rc.91",
6678
  "@vueuse/core": "^13.0.0",
6679
  "vue": "^3.5.13"
6680
  },
 
6724
  }
6725
  },
6726
  "node_modules/@vuepress/plugin-medium-zoom": {
6727
+ "version": "2.0.0-rc.91",
6728
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-medium-zoom/-/plugin-medium-zoom-2.0.0-rc.91.tgz",
6729
+ "integrity": "sha512-ydrDN9+e3kCg4ViWTLmYQEIFVqTE67SKLF5s80P9HiSDOqkIxM8BmZN3PBLTNNVQfUVQi89yvXQ3ORPrw1joSQ==",
6730
  "dev": true,
6731
  "license": "MIT",
6732
  "dependencies": {
6733
+ "@vuepress/helper": "2.0.0-rc.91",
6734
  "medium-zoom": "^1.1.0",
6735
  "vue": "^3.5.13"
6736
  },
 
6739
  }
6740
  },
6741
  "node_modules/@vuepress/plugin-nprogress": {
6742
+ "version": "2.0.0-rc.91",
6743
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-nprogress/-/plugin-nprogress-2.0.0-rc.91.tgz",
6744
+ "integrity": "sha512-ZXEELLUjrAA0anrSOOHQ/BMidloNw4KZtaY9+MVkVNpzYI64hr6vMlPgCu1J+14gQVJ2HD75RRPtcgnBLkhasQ==",
6745
  "dev": true,
6746
  "license": "MIT",
6747
  "dependencies": {
6748
+ "@vuepress/helper": "2.0.0-rc.91",
6749
  "vue": "^3.5.13"
6750
  },
6751
  "peerDependencies": {
 
6753
  }
6754
  },
6755
  "node_modules/@vuepress/plugin-palette": {
6756
+ "version": "2.0.0-rc.91",
6757
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-palette/-/plugin-palette-2.0.0-rc.91.tgz",
6758
+ "integrity": "sha512-OGRO/lm6tunKjZHspybn6Coh/THEHydyYhb4vKk5dMMjAaOh7XBFQiRW7Lb3ZLTGU8NaouuKn5VsNabYf90Hzg==",
6759
  "dev": true,
6760
  "license": "MIT",
6761
  "dependencies": {
6762
+ "@vuepress/helper": "2.0.0-rc.91",
6763
  "chokidar": "^3.6.0"
6764
  },
6765
  "peerDependencies": {
 
6767
  }
6768
  },
6769
  "node_modules/@vuepress/plugin-prismjs": {
6770
+ "version": "2.0.0-rc.91",
6771
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-prismjs/-/plugin-prismjs-2.0.0-rc.91.tgz",
6772
+ "integrity": "sha512-zQuEzkx0PSKoUk5OZLYSuZD8PBkHiDDz9JUazeJLiX5nquhrUzz3DU44JYxizsjY4zsFy0heBjvTnrPXxNhdDg==",
6773
  "dev": true,
6774
  "license": "MIT",
6775
  "dependencies": {
6776
+ "@vuepress/helper": "2.0.0-rc.91",
6777
  "@vuepress/highlighter-helper": "2.0.0-rc.90",
6778
  "prismjs": "^1.30.0"
6779
  },
 
6845
  }
6846
  },
6847
  "node_modules/@vuepress/plugin-seo": {
6848
+ "version": "2.0.0-rc.91",
6849
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-seo/-/plugin-seo-2.0.0-rc.91.tgz",
6850
+ "integrity": "sha512-pFfomQuI9m/D00NKOKZHWeb0dOEXQIWdWm8WR4UqdCL4TEV9SrYZWWKI/ueJJCAxtlY+chAwejoK2lVhGeLquQ==",
6851
  "dev": true,
6852
  "license": "MIT",
6853
  "dependencies": {
6854
+ "@vuepress/helper": "2.0.0-rc.91"
6855
  },
6856
  "peerDependencies": {
6857
  "vuepress": "2.0.0-rc.20"
6858
  }
6859
  },
6860
  "node_modules/@vuepress/plugin-sitemap": {
6861
+ "version": "2.0.0-rc.91",
6862
+ "resolved": "https://registry.npmjs.org/@vuepress/plugin-sitemap/-/plugin-sitemap-2.0.0-rc.91.tgz",
6863
+ "integrity": "sha512-bVs0gPMaJYoC8T/+k5SJVZPpbBkITg6YUggSrDjtXOGz7LYEDbcd0xViJvcReVVigZovRynAtcGcBZlPbXmU4A==",
6864
  "dev": true,
6865
  "license": "MIT",
6866
  "dependencies": {
6867
+ "@vuepress/helper": "2.0.0-rc.91",
6868
  "sitemap": "^8.0.0"
6869
  },
6870
  "peerDependencies": {
 
6896
  }
6897
  },
6898
  "node_modules/@vuepress/theme-default": {
6899
+ "version": "2.0.0-rc.91",
6900
+ "resolved": "https://registry.npmjs.org/@vuepress/theme-default/-/theme-default-2.0.0-rc.91.tgz",
6901
+ "integrity": "sha512-2Ejeu5YAD+KN//+lU9UcbVJdC60G40Vmy8rsTJjoZ53UW/kr6OaijbrP374zTB4cvtpVQ0Mej5HIPWRNtasWRQ==",
6902
  "dev": true,
6903
  "license": "MIT",
6904
  "dependencies": {
6905
+ "@vuepress/helper": "2.0.0-rc.91",
6906
  "@vuepress/plugin-active-header-links": "2.0.0-rc.86",
6907
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.91",
6908
+ "@vuepress/plugin-copy-code": "2.0.0-rc.91",
6909
+ "@vuepress/plugin-git": "2.0.0-rc.91",
6910
+ "@vuepress/plugin-links-check": "2.0.0-rc.91",
6911
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.91",
6912
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.91",
6913
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.91",
6914
+ "@vuepress/plugin-nprogress": "2.0.0-rc.91",
6915
+ "@vuepress/plugin-palette": "2.0.0-rc.91",
6916
+ "@vuepress/plugin-prismjs": "2.0.0-rc.91",
6917
+ "@vuepress/plugin-seo": "2.0.0-rc.91",
6918
+ "@vuepress/plugin-sitemap": "2.0.0-rc.91",
6919
  "@vuepress/plugin-theme-data": "2.0.0-rc.86",
6920
  "@vueuse/core": "^13.0.0",
6921
  "vue": "^3.5.13"
 
10567
  }
10568
  },
10569
  "node_modules/electron-to-chromium": {
10570
+ "version": "1.5.129",
10571
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.129.tgz",
10572
+ "integrity": "sha512-JlXUemX4s0+9f8mLqib/bHH8gOHf5elKS6KeWG3sk3xozb/JTq/RLXIv8OKUWiK4Ah00Wm88EFj5PYkFr4RUPA==",
10573
  "dev": true,
10574
  "license": "ISC"
10575
  },
10576
  "node_modules/electron/node_modules/@types/node": {
10577
+ "version": "20.17.29",
10578
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.29.tgz",
10579
+ "integrity": "sha512-6rbekrnsa5WWCo5UnPYEKfNuoF2yqAmigUKXM8wBzfEbZc+E/CITqjCrHqiq+6QBifsw0ZDaA5VdTFONOtG7+A==",
10580
  "dev": true,
10581
  "license": "MIT",
10582
  "dependencies": {
 
11073
  }
11074
  },
11075
  "node_modules/expect-type": {
11076
+ "version": "1.2.1",
11077
+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.1.tgz",
11078
+ "integrity": "sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==",
11079
  "dev": true,
11080
  "license": "Apache-2.0",
11081
  "engines": {
 
16955
  }
16956
  },
16957
  "node_modules/sass-embedded": {
16958
+ "version": "1.86.1",
16959
+ "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.86.1.tgz",
16960
+ "integrity": "sha512-LMJvytHh7lIUtmjGCqpM4cRdIDvPllLJKznNIK4L7EZJ77BLeUFoOSRXEOHq4G4gqy5CVhHUKlHslzCANkDOhQ==",
16961
  "dev": true,
16962
  "license": "MIT",
16963
  "dependencies": {
 
16977
  "node": ">=16.0.0"
16978
  },
16979
  "optionalDependencies": {
16980
+ "sass-embedded-android-arm": "1.86.1",
16981
+ "sass-embedded-android-arm64": "1.86.1",
16982
+ "sass-embedded-android-ia32": "1.86.1",
16983
+ "sass-embedded-android-riscv64": "1.86.1",
16984
+ "sass-embedded-android-x64": "1.86.1",
16985
+ "sass-embedded-darwin-arm64": "1.86.1",
16986
+ "sass-embedded-darwin-x64": "1.86.1",
16987
+ "sass-embedded-linux-arm": "1.86.1",
16988
+ "sass-embedded-linux-arm64": "1.86.1",
16989
+ "sass-embedded-linux-ia32": "1.86.1",
16990
+ "sass-embedded-linux-musl-arm": "1.86.1",
16991
+ "sass-embedded-linux-musl-arm64": "1.86.1",
16992
+ "sass-embedded-linux-musl-ia32": "1.86.1",
16993
+ "sass-embedded-linux-musl-riscv64": "1.86.1",
16994
+ "sass-embedded-linux-musl-x64": "1.86.1",
16995
+ "sass-embedded-linux-riscv64": "1.86.1",
16996
+ "sass-embedded-linux-x64": "1.86.1",
16997
+ "sass-embedded-win32-arm64": "1.86.1",
16998
+ "sass-embedded-win32-ia32": "1.86.1",
16999
+ "sass-embedded-win32-x64": "1.86.1"
17000
  }
17001
  },
17002
  "node_modules/sass-embedded-android-arm": {
17003
+ "version": "1.86.1",
17004
+ "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.86.1.tgz",
17005
+ "integrity": "sha512-bcmKB67uCb9znune+QsE6cWIiKAHE9P+24/9vDPHwwN3BmmH1B/4mznNKKakdYMuxpgbeLrPcEScHEpQbdrIpA==",
17006
  "cpu": [
17007
  "arm"
17008
  ],
 
17017
  }
17018
  },
17019
  "node_modules/sass-embedded-android-arm64": {
17020
+ "version": "1.86.1",
17021
+ "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.86.1.tgz",
17022
+ "integrity": "sha512-SMY79YhNfq/gdz8MHqwEsnf/IjSnQFAmSEGDDv0vjL0yy9VZC/zhsxpsho8vbFEvTSEGFFlkGgPdzDuoozRrOg==",
17023
  "cpu": [
17024
  "arm64"
17025
  ],
 
17034
  }
17035
  },
17036
  "node_modules/sass-embedded-android-ia32": {
17037
+ "version": "1.86.1",
17038
+ "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.86.1.tgz",
17039
+ "integrity": "sha512-AX6I5qS8GbgcbBJ1o3uKVI5/7tq6evg/BO/wa0XaNqnzP4i/PojBaGh7EcZrg/spl//SfpS55eA18a0/AOi71w==",
17040
  "cpu": [
17041
  "ia32"
17042
  ],
 
17051
  }
17052
  },
17053
  "node_modules/sass-embedded-android-riscv64": {
17054
+ "version": "1.86.1",
17055
+ "resolved": "https://registry.npmjs.org/sass-embedded-android-riscv64/-/sass-embedded-android-riscv64-1.86.1.tgz",
17056
+ "integrity": "sha512-Af6ZzRTRfIfx6KICJZ19je6OjOXhxo+v6z/lf/SXm5/1EaHGpGC5xIw4ivtj4nNINNoqkykfIDCjpzm1qWEPPQ==",
17057
  "cpu": [
17058
  "riscv64"
17059
  ],
 
17068
  }
17069
  },
17070
  "node_modules/sass-embedded-android-x64": {
17071
+ "version": "1.86.1",
17072
+ "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.86.1.tgz",
17073
+ "integrity": "sha512-GW47z1AH8gXB7IG6EUbC5aDBDtiITeP5nUfEenE6vaaN0H17mBjIwSnEcKPPA1IdxzDpj+4bE/SGfiF0W/At4g==",
17074
  "cpu": [
17075
  "x64"
17076
  ],
 
17085
  }
17086
  },
17087
  "node_modules/sass-embedded-darwin-arm64": {
17088
+ "version": "1.86.1",
17089
+ "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.86.1.tgz",
17090
+ "integrity": "sha512-grBnDW5Rg+mEmZM7I9hJySS4MMXDwLMd+RyegQnr+SIJ3WA807Cw830+raALxgDY+UKKKhVEoq3FgbTo40Awgw==",
17091
  "cpu": [
17092
  "arm64"
17093
  ],
 
17102
  }
17103
  },
17104
  "node_modules/sass-embedded-darwin-x64": {
17105
+ "version": "1.86.1",
17106
+ "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.86.1.tgz",
17107
+ "integrity": "sha512-XxSCMcmeADNouiJAr8G1oRnEhkivHKVLV5DRpfFnUK5FqtFCuSk3K18I+xIfpQDeZnjRL3t2VjsmEJuFiBYV8w==",
17108
  "cpu": [
17109
  "x64"
17110
  ],
 
17119
  }
17120
  },
17121
  "node_modules/sass-embedded-linux-arm": {
17122
+ "version": "1.86.1",
17123
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.86.1.tgz",
17124
+ "integrity": "sha512-Z57ZUcWPuoOHpnl3TiUf/x9wWF2dFtkjdv7hZQpFXYwK5eudHFeBErK6KNCos6jkif1KyeFELXT/HWOznitU/w==",
17125
  "cpu": [
17126
  "arm"
17127
  ],
 
17136
  }
17137
  },
17138
  "node_modules/sass-embedded-linux-arm64": {
17139
+ "version": "1.86.1",
17140
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.86.1.tgz",
17141
+ "integrity": "sha512-zchms0BtaOrkvfvjRnl1PDWK931DxAeYEY2yKQceO/0OFtcBz1r480Kh/RjIffTNreJqIr9Mx4wFdP+icKwLpg==",
17142
  "cpu": [
17143
  "arm64"
17144
  ],
 
17153
  }
17154
  },
17155
  "node_modules/sass-embedded-linux-ia32": {
17156
+ "version": "1.86.1",
17157
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.86.1.tgz",
17158
+ "integrity": "sha512-WHntVnCgpiJPCmTeQrn5rtl1zJdd693TwpNGAFPzKD4FILPcVBKtWutl7COL6bKe/mKTf9OW0t6GBJ6mav2hAA==",
17159
  "cpu": [
17160
  "ia32"
17161
  ],
 
17170
  }
17171
  },
17172
  "node_modules/sass-embedded-linux-musl-arm": {
17173
+ "version": "1.86.1",
17174
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.86.1.tgz",
17175
+ "integrity": "sha512-DlPpyp3bIL8YMtxR22hkWBtuZY6ch3KAmQvqIONippPv96WTHi1iq5jclbE1YXpDtI8Wcus0x6apoDSKq8o95g==",
17176
  "cpu": [
17177
  "arm"
17178
  ],
 
17187
  }
17188
  },
17189
  "node_modules/sass-embedded-linux-musl-arm64": {
17190
+ "version": "1.86.1",
17191
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.86.1.tgz",
17192
+ "integrity": "sha512-CwuHMRWSJFByHpgqcVtCSt29dMWhr0lpUTjaBCh9xOl0Oyz89dIqOxA0aMq+XU+thaDtOziJtMIfW6l35ZeykQ==",
17193
  "cpu": [
17194
  "arm64"
17195
  ],
 
17204
  }
17205
  },
17206
  "node_modules/sass-embedded-linux-musl-ia32": {
17207
+ "version": "1.86.1",
17208
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.86.1.tgz",
17209
+ "integrity": "sha512-yjvVpAW1YS0VQNnIUtZTf0IrRDMa0wRjFWUtsLthVIxuXyjLy44+YULlfduxqcZe3rvI4+EqT7GorvviWo9NfQ==",
17210
  "cpu": [
17211
  "ia32"
17212
  ],
 
17221
  }
17222
  },
17223
  "node_modules/sass-embedded-linux-musl-riscv64": {
17224
+ "version": "1.86.1",
17225
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-riscv64/-/sass-embedded-linux-musl-riscv64-1.86.1.tgz",
17226
+ "integrity": "sha512-0zCUOMwX/hwPV1zimxM46dq/MdATSqbw6G646DwQ3/2V2Db1t9lfXBZqSavx8p/cqRp1JYTUPbJQV1gT4J7NYw==",
17227
  "cpu": [
17228
  "riscv64"
17229
  ],
 
17238
  }
17239
  },
17240
  "node_modules/sass-embedded-linux-musl-x64": {
17241
+ "version": "1.86.1",
17242
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.86.1.tgz",
17243
+ "integrity": "sha512-8KJ6kEj1N16V9E0g5PDSd4aVe1LwcVKROJcVqnzTKPMa/4j2VuNWep7D81OYchdQMm9Egn1RqV0jCwm0b2aSHQ==",
17244
  "cpu": [
17245
  "x64"
17246
  ],
 
17255
  }
17256
  },
17257
  "node_modules/sass-embedded-linux-riscv64": {
17258
+ "version": "1.86.1",
17259
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-riscv64/-/sass-embedded-linux-riscv64-1.86.1.tgz",
17260
+ "integrity": "sha512-rNJ1EfIkQpvBfMS1fBdyb+Gsji4yK0AwsV1T7NEcy21yDxDt7mdCgkAJiaN9qf7UEXuCuueQoed7WZoDaSpjww==",
17261
  "cpu": [
17262
  "riscv64"
17263
  ],
 
17272
  }
17273
  },
17274
  "node_modules/sass-embedded-linux-x64": {
17275
+ "version": "1.86.1",
17276
+ "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.86.1.tgz",
17277
+ "integrity": "sha512-DGCdUoYRRUKzRZz/q7plbB5Nean2+Uk4CqKF4RWAU0v1tHnDKKWmYfETryhWdB2WJM8QSn7O8qRebe6FCobB5g==",
17278
  "cpu": [
17279
  "x64"
17280
  ],
 
17289
  }
17290
  },
17291
  "node_modules/sass-embedded-win32-arm64": {
17292
+ "version": "1.86.1",
17293
+ "resolved": "https://registry.npmjs.org/sass-embedded-win32-arm64/-/sass-embedded-win32-arm64-1.86.1.tgz",
17294
+ "integrity": "sha512-qRLZR3yLuk/3y64YhcltkwGclhPoK6EdiLP1e5SVw5+kughcs+mNUZ3rdvSAmCSA4vDv+XOiOjRpjxmpeon95Q==",
17295
  "cpu": [
17296
  "arm64"
17297
  ],
 
17306
  }
17307
  },
17308
  "node_modules/sass-embedded-win32-ia32": {
17309
+ "version": "1.86.1",
17310
+ "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.86.1.tgz",
17311
+ "integrity": "sha512-o860a7/YGHZnGeY3l/e6yt3+ZMeDdDHmthTaKnw2wpJNEq0nmytYLTJQmjWPxEMz7O8AQ0LtcbDDrhivSog+KQ==",
17312
  "cpu": [
17313
  "ia32"
17314
  ],
 
17323
  }
17324
  },
17325
  "node_modules/sass-embedded-win32-x64": {
17326
+ "version": "1.86.1",
17327
+ "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.86.1.tgz",
17328
+ "integrity": "sha512-7Z3wsVKfseJodmv689dDEV/JrXJH5TAclWNvHrEYW5BtoViOTU2pIDxRgLYzdKU9teIw5g6R0nJZb9M105oIKA==",
17329
  "cpu": [
17330
  "x64"
17331
  ],
 
19752
  }
19753
  },
19754
  "node_modules/vite": {
19755
+ "version": "6.2.4",
19756
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.4.tgz",
19757
+ "integrity": "sha512-veHMSew8CcRzhL5o8ONjy8gkfmFJAd5Ac16oxBUjlwgX3Gq2Wqr+qNC3TjPIpy7TPV/KporLga5GT9HqdrCizw==",
19758
  "dev": true,
19759
  "license": "MIT",
19760
  "dependencies": {
 
19824
  }
19825
  },
19826
  "node_modules/vite-node": {
19827
+ "version": "3.1.1",
19828
+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.1.1.tgz",
19829
+ "integrity": "sha512-V+IxPAE2FvXpTCHXyNem0M+gWm6J7eRyWPR6vYoG/Gl+IscNOjXzztUhimQgTxaAoUoj40Qqimaa0NLIOOAH4w==",
19830
  "dev": true,
19831
  "license": "MIT",
19832
  "dependencies": {
 
19893
  }
19894
  },
19895
  "node_modules/vitest": {
19896
+ "version": "3.1.1",
19897
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.1.1.tgz",
19898
+ "integrity": "sha512-kiZc/IYmKICeBAZr9DQ5rT7/6bD9G7uqQEki4fxazi1jdVl2mWGzedtBs5s6llz59yQhVb7FFY2MbHzHCnT79Q==",
19899
  "dev": true,
19900
  "license": "MIT",
19901
  "dependencies": {
19902
+ "@vitest/expect": "3.1.1",
19903
+ "@vitest/mocker": "3.1.1",
19904
+ "@vitest/pretty-format": "^3.1.1",
19905
+ "@vitest/runner": "3.1.1",
19906
+ "@vitest/snapshot": "3.1.1",
19907
+ "@vitest/spy": "3.1.1",
19908
+ "@vitest/utils": "3.1.1",
19909
  "chai": "^5.2.0",
19910
  "debug": "^4.4.0",
19911
+ "expect-type": "^1.2.0",
19912
  "magic-string": "^0.30.17",
19913
  "pathe": "^2.0.3",
19914
+ "std-env": "^3.8.1",
19915
  "tinybench": "^2.9.0",
19916
  "tinyexec": "^0.3.2",
19917
  "tinypool": "^1.0.2",
19918
  "tinyrainbow": "^2.0.0",
19919
  "vite": "^5.0.0 || ^6.0.0",
19920
+ "vite-node": "3.1.1",
19921
  "why-is-node-running": "^2.3.0"
19922
  },
19923
  "bin": {
 
19933
  "@edge-runtime/vm": "*",
19934
  "@types/debug": "^4.1.12",
19935
  "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
19936
+ "@vitest/browser": "3.1.1",
19937
+ "@vitest/ui": "3.1.1",
19938
  "happy-dom": "*",
19939
  "jsdom": "*"
19940
  },