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

Update from GitHub Actions

Browse files
Files changed (39) hide show
  1. .output/nitro.json +1 -1
  2. .output/public/assets/@vue-CfxotJ-S.js +0 -0
  3. .output/public/assets/@vueuse-B4dz7nOv.js +3 -0
  4. .output/public/assets/@wdns-xq6XApaP.js +0 -0
  5. .output/public/assets/ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js +1 -0
  6. .output/public/assets/FrameContent-ChW-dtxF.js +1 -0
  7. .output/public/assets/ToolBar.vue_vue_type_style_index_0_lang-rb8l4k-M.js +1 -0
  8. .output/public/assets/about-0-DUd88i.js +1 -0
  9. .output/public/assets/avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js +1 -0
  10. .output/public/assets/changelog-DFPFb8dr.js +1 -0
  11. .output/public/assets/chat-CxnaJx6o.js +1 -0
  12. .output/public/assets/content-5lBKlZzT.js +3 -0
  13. .output/public/assets/help-C4-g_Zuv.js +1 -0
  14. .output/public/assets/highlight.js-BdwRhiJ6.js +0 -0
  15. .output/public/assets/index-3SWAOWjS.js +3 -0
  16. .output/public/assets/index-C6KOsl_W.js +1 -0
  17. .output/public/assets/index-CEnBk6VQ.js +9 -0
  18. .output/public/assets/index-D7OtVVB-.js +1 -0
  19. .output/public/assets/index-DHLNART_.js +1 -0
  20. .output/public/assets/index-DTffGxJW.js +1 -0
  21. .output/public/assets/main-Br62opI0.css +1 -0
  22. .output/public/assets/main-CtIofym4.js +6 -0
  23. .output/public/assets/markdown-BnwBbO-S.js +23 -0
  24. .output/public/assets/markdown-it-highlightjs-BA9B6Zno.js +1 -0
  25. .output/public/assets/mermaid-render-DYiT7KKL.js +0 -0
  26. .output/public/assets/pinia-gf2247cH.js +19 -0
  27. .output/public/assets/popup-BMjsrYtk.css +1 -0
  28. .output/public/assets/popup-BwMcPd7w.js +19 -0
  29. .output/public/assets/tdesign-icons-vue-next-Bre5yOVt.js +0 -0
  30. .output/public/assets/tdesign-vue-next-BiEwLJDx.js +0 -0
  31. .output/public/assets/vue-BIpqWpgL.js +1 -0
  32. .output/public/assets/vue-i18n-BLIfPQxk.js +128 -0
  33. .output/public/assets/vue-router-DKqWD4MR.js +123 -0
  34. .output/public/assets/vuedraggable-DAEPkKhD.js +0 -0
  35. .output/public/index.html +62 -27
  36. .output/public/popup.html +37 -37
  37. .output/public/sw.js +1 -1
  38. .output/server/chunks/nitro/nitro.mjs +0 -0
  39. package-lock.json +106 -106
.output/nitro.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "date": "2025-03-30T16:21:52.169Z",
3
  "preset": "node-server",
4
  "framework": {
5
  "name": "nitro",
 
1
  {
2
+ "date": "2025-03-31T05:49:12.451Z",
3
  "preset": "node-server",
4
  "framework": {
5
  "name": "nitro",
.output/public/assets/@vue-CfxotJ-S.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/@vueuse-B4dz7nOv.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{w as e,n as t,r as n,t as a,a as i,c as r,g as o,h as u,i as l,o as s,b as c,d as v,s as d,e as f,f as p,u as m,j as g,k as h}from"./@vue-CfxotJ-S.js";function w(e){return!!c()&&(v(e),!0)}const y=new WeakMap,b="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const S=Object.prototype.toString,N=()=>{};const I=e=>e();function E(e=I,t={}){const{initialState:o="active"}=t,u=function(...e){if(1!==e.length)return a(...e);const t=e[0];return"function"==typeof t?n(r((()=>({get:t,set:N})))):i(t)}("active"===o);return{isActive:n(u),pause:function(){u.value=!1},resume:function(){u.value=!0},eventFilter:(...t)=>{u.value&&e(...t)}}}function O(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function A(e){return Array.isArray(e)?e:[e]}function F(t,n,a={}){const{eventFilter:i=I,...r}=a;return e(t,(o=i,u=n,function(...e){return new Promise(((t,n)=>{Promise.resolve(o((()=>u.apply(this,e)),{fn:u,thisArg:this,args:e})).then(t).catch(n)}))}),r);var o,u}function T(e,n=!0,a){o()?s(e,a):n?e():t(e)}const M=b?window:void 0,j=b?window.navigator:void 0;function V(...t){const n=[],a=()=>{n.forEach((e=>e())),n.length=0},i=p((()=>{const e=A(f(t[0])).filter((e=>null!=e));return e.every((e=>"string"!=typeof e))?e:void 0})),r=(o=([e,t,i,r])=>{if(a(),!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==i?void 0:i.length))return;const o=(u=r,"[object Object]"===S.call(u)?{...r}:r);var u;n.push(...e.flatMap((e=>t.flatMap((t=>i.map((n=>((e,t,n,a)=>(e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)))(e,t,n,o))))))))},u={flush:"post"},e((()=>{var e,n;return[null!=(n=null==(e=i.value)?void 0:e.map((e=>function(e){var t;const n=f(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e))))?n:[M].filter((e=>null!=e)),A(f(i.value?t[1]:t[0])),A(m(i.value?t[2]:t[1])),
2
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
3
+ f(i.value?t[3]:t[2])]}),o,{...u,immediate:!0}));var o,u;return w(a),()=>{r(),a()}}function W(e){const t=function(){const e=d(!1),t=o();return t&&s((()=>{e.value=!0}),t),e}();return p((()=>(t.value,Boolean(e()))))}const k=Symbol("vueuse-ssr-width");function x(){const e=u()?((...e)=>{var t;const n=e[0],a=null==(t=o())?void 0:t.proxy;if(null==a&&!u())throw new Error("injectLocal must be called in setup");return a&&y.has(a)&&n in y.get(a)?y.get(a)[n]:l(...e)})(k,null):null;return"number"==typeof e?e:void 0}function _(e,t={}){const{controls:n=!1,navigator:a=j}=t,i=W((()=>a&&"permissions"in a)),r=d(),o="string"==typeof e?{name:e}:e,u=d(),l=()=>{var e,t;u.value=null!=(t=null==(e=r.value)?void 0:e.state)?t:"prompt"};V(r,"change",l,{passive:!0});const s=function(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}((async()=>{if(i.value){if(!r.value)try{r.value=await a.permissions.query(o)}catch(e){r.value=void 0}finally{l()}return n?h(r.value):void 0}}));return s(),n?{state:u,isSupported:i,query:s}:u}function D(e={}){const{navigator:t=j,read:a=!1,source:i,copiedDuring:r=1500,legacy:o=!1}=e,u=W((()=>t&&"clipboard"in t)),l=_("clipboard-read"),s=_("clipboard-write"),c=p((()=>u.value||o)),v=d(""),m=d(!1),g=function(e,t,a={}){const{immediate:i=!0,immediateCallback:r=!1}=a,o=d(!1);let u=null;function l(){u&&(clearTimeout(u),u=null)}function s(){o.value=!1,l()}function c(...n){r&&e(),l(),o.value=!0,u=setTimeout((()=>{o.value=!1,u=null,e(...n)}),f(t))}return i&&(o.value=!0,b&&c()),w(s),{isPending:n(o),start:c,stop:s}}((()=>m.value=!1),r,{immediate:!1});function h(e){return"granted"===e||"prompt"===e}return c.value&&a&&V(["copy","cut"],(async function(){let e=!(u.value&&h(l.value));if(!e)try{v.value=await t.clipboard.readText()}catch(r){e=!0}var n,a,i;e&&(v.value=null!=(i=null==(a=null==(n=null==document?void 0:document.getSelection)?void 0:n.call(document))?void 0:a.toString())?i:"")}),{passive:!0}),{isSupported:c,text:v,copied:m,copy:async function(e=f(i)){if(c.value&&null!=e){let a=!(u.value&&h(s.value));if(!a)try{await t.clipboard.writeText(e)}catch(n){a=!0}a&&function(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(e),v.value=e,m.value=!0,g.start()}}}}const J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},z="__vueuse_ssr_handlers__",C=P();function P(){return z in J||(J[z]=J[z]||{}),J[z]}const H={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},L="vueuse-storage";function q(n,a,r,o={}){var u;const{flush:l="pre",deep:s=!0,listenToStorageChanges:c=!0,writeDefaults:v=!0,mergeDefaults:m=!1,shallow:g,window:h=M,eventFilter:w,onError:y=e=>{},initOnMounted:b}=o,S=(g?d:i)(a),N=p((()=>f(n)));if(!r)try{r=function(e,t){return C[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=M)?void 0:e.localStorage}))()}catch(D){y(D)}if(!r)return S;const I=f(a),O=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(I),A=null!=(u=o.serializer)?u:H[O],{pause:j,resume:W}=function(e,t,n={}){const{eventFilter:a,initialState:i="active",...r}=n,{eventFilter:o,pause:u,resume:l,isActive:s}=E(a,{initialState:i});return{stop:F(e,t,{...r,eventFilter:o}),pause:u,resume:l,isActive:s}}(S,(()=>function(e){try{const t=r.getItem(N.value);if(null==e)k(t,null),r.removeItem(N.value);else{const n=A.write(e);t!==n&&(r.setItem(N.value,n),k(t,n))}}catch(D){y(D)}}(S.value)),{flush:l,deep:s,eventFilter:w});function k(e,t){if(h){const n={key:N.value,oldValue:e,newValue:t,storageArea:r};h.dispatchEvent(r instanceof Storage?new StorageEvent("storage",n):new CustomEvent(L,{detail:n}))}}function x(e){if(!e||e.storageArea===r)if(e&&null==e.key)S.value=I;else if(!e||e.key===N.value){j();try{(null==e?void 0:e.newValue)!==A.write(S.value)&&(S.value=function(e){const t=e?e.newValue:r.getItem(N.value);if(null==t)return v&&null!=I&&r.setItem(N.value,A.write(I)),I;if(!e&&m){const e=A.read(t);return"function"==typeof m?m(e,I):"object"!==O||Array.isArray(e)?e:{...I,...e}}return"string"!=typeof t?t:A.read(t)}(e))}catch(D){y(D)}finally{e?t(W):W()}}}function _(e){x(e.detail)}return e(N,(()=>x()),{flush:l}),h&&c&&T((()=>{r instanceof Storage?V(h,"storage",x,{passive:!0}):V(h,L,_),b&&x()})),b||x(),S}function B(e,t,n={}){const{window:a=M}=n;return q(e,t,null==a?void 0:a.localStorage,n)}function G(e={}){const{window:t=M}=e;if(!t)return i(["en"]);const n=t.navigator,a=i(n.languages);return V(t,"languagechange",(()=>{a.value=n.languages}),{passive:!0}),a}function Y(t={}){const{window:n=M,initialWidth:a=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:o=!0,type:u="inner"}=t,l=d(a),s=d(i),c=()=>{if(n)if("outer"===u)l.value=n.outerWidth,s.value=n.outerHeight;else if("visual"===u&&n.visualViewport){const{width:e,height:t,scale:a}=n.visualViewport;l.value=Math.round(e*a),s.value=Math.round(t*a)}else o?(l.value=n.innerWidth,s.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,s.value=n.document.documentElement.clientHeight)};c(),T(c);const v={passive:!0};if(V("resize",c,v),n&&"visual"===u&&n.visualViewport&&V(n.visualViewport,"resize",c,v),r){const t=function(e,t={}){const{window:n=M,ssrWidth:a=x()}=t,i=W((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia)),r=d("number"==typeof a),o=d(),u=d(!1);return g((()=>{if(r.value){r.value=!i.value;const t=f(e).split(",");u.value=t.some((e=>{const t=e.includes("not all"),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let r=Boolean(n||i);return n&&r&&(r=a>=O(n[1])),i&&r&&(r=a<=O(i[1])),t?!r:r}))}else i.value&&(o.value=n.matchMedia(f(e)),u.value=o.value.matches)})),V(o,"change",(e=>{u.value=e.matches}),{passive:!0}),p((()=>u.value))}("(orientation: portrait)");e(t,(()=>c()))}return{width:l,height:s}}export{G as a,D as b,Y as c,B as u};
.output/public/assets/@wdns-xq6XApaP.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/ChatInput.vue_vue_type_style_index_0_lang-DB-vruaA.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as e,K as a,w as t,a as l,v as s,z as n,y as o,R as r,F as i,aa as u,J as c,a9 as p,A as v,H as f,ad as d,u as m,f as g,o as w,B as h,I as y,n as x}from"./@vue-CfxotJ-S.js";import{t as k,u as A,e as b,m as C}from"./mermaid-render-DYiT7KKL.js";import{$ as P,b as z,Y as M,x as V,U as L,s as B}from"./tdesign-vue-next-BiEwLJDx.js";import{c as R,P as U,af as j}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{m as D}from"./mammoth-Cw8VHd7C.js";import{r as N,u as T}from"./xlsx-DB6BMndo.js";import{_ as F,a as S}from"./pdfjs-dist-8WFUNQXM.js";function H(){const e=window.innerWidth<768,a=navigator.userAgent.toLowerCase(),t=["android","webos","iphone","ipad","ipod","blackberry","windows phone"].some((e=>a.includes(e))),l="ontouchstart"in window||navigator.maxTouchPoints>0,s=void 0!==window.screen.orientation;return e&&(t||l||s)}const G={key:0,class:"flex gap-2 flex-wrap"},E=["onClick"],I={class:"max-w-[160px] overflow-hidden text-ellipsis text-nowrap"},_={class:"flex gap-2"},K={class:"max-w-[120px] overflow-hidden text-ellipsis text-nowrap"},Q=["onClick"],J={class:"max-w-[160px] overflow-hidden text-ellipsis text-nowrap"},O={class:"flex gap-2"},Y={class:"max-w-[120px] overflow-hidden text-ellipsis text-nowrap"},Z={class:"whitespace-pre-wrap break-words"},W=e({__name:"FileList",props:{files:{type:Array},showCloseButton:{type:Boolean,default:!0}},setup(e){const g=e,w=a([]);t((()=>g.files.length),(()=>{w.length=g.files.length,w.fill(!1)}),{immediate:!0});const h=e=>{g.files.splice(e,1)},y=l(!1),x=l("");function k(e){if(0===e)return"0 B";const a=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,a)).toFixed(2))+" "+["B","KB","MB","GB"][a]}return(a,t)=>{const l=P,g=z,A=M,b=V;return e.files.length>0?(o(),s("div",G,[(o(!0),s(i,null,u(e.files,((a,t)=>(o(),s(i,null,[a.type.startsWith("image")?(o(),c(A,{key:a.id,visible:w[t],images:[a.content||a.url],"close-on-overlay":"",onClose:e=>(e=>{w[e]=!1})(t)},{trigger:p((()=>[v("div",{class:"bg-color-page flex p-2 gap-2 rounded-lg cursor-pointer",onClick:e=>(e=>{w[e]=!0})(t)},[r(l,{src:a.content||a.url,style:{width:"40px",height:"40px"}},null,8,["src"]),v("div",null,[v("div",I,f(a.name),1),v("div",_,[v("span",K,f(a.type),1),v("span",null,f(k(a.size)),1)])]),e.showCloseButton?(o(),c(g,{key:0,theme:"primary",shape:"circle",onClick:d((e=>h(t)),["stop"]),size:"small",variant:"text"},{default:p((()=>[r(m(R),{slot:"icon"})])),_:2},1032,["onClick"])):n("",!0)],8,E)])),_:2},1032,["visible","images","onClose"])):(o(),s("div",{key:1,class:"bg-color-page flex p-2 gap-2 rounded-lg cursor-pointer",onClick:e=>(e=>{y.value=!0,x.value=e.content})(a)},[r(l,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAMAAAC4uKf/AAAA1VBMVEVHcEwgUP8kVP8lVf8oUP8IMKckVP8lU/8NL6kkVP8gUP8QMJ8NL6klVf8jU/8NL6oLMKokVP8OMKglUv8NMKkkVP8kU/8OLqskVP8OL6klU/8kVP8OLqkNL6oNMKkNL6olU/8NMKckVf8MMKckVP////8NL6nI1P8QNLR2lP8/af8yX/8xX/+6yf9Aaf/W3/9bf/+tv/+7yv+Env/x9f/k6v+ftP9oif8YQtQeS+lNdP9piv+En/8XQM/j6v8VPckhT/QSNrqgtP8eS+oTOL+Sqf+Rqf9kuMQUAAAAJHRSTlMAEHBgICDv39/PIBDv35C/ML9wYF9A0H+wz5+Pj59Q76Bgr0CdNRTaAAACCElEQVRo3u3a11ICQRAF0GVFFpAgIIggxt5ZcpJgzvr/n+STVZZMT+zZp7k/cGrSZavoIOClGHaiHKjnvHq5H5hlrwaaYYzlz0yoZgRggDF2pE1lugCGWOlQ08q2wBhjeb1zy0ZggbH8gc4eGlq/GKtqYF2wxNip+pUHa4zVVbGIAGPXrhf2FyupXckCCab2ALJAg7EThQcQUmGsJ8faZBg7dnlk/zF5J+cIMSbrZKDEZFeSFJN1Mi0m6WRiTNzJ1Jiwk8kxdpYmJuhkekzwABxgeCfbYH1M6znAXjAM62Qb7A7FkE4GJ/uIdDI4Whq3Ja0wuMW1Ojkm0Kr0GLxi51ZygAF8PH2+9TlxgmHxmMc8JsYGk2Q3AyfYaBZzs546wBYxkoQem8Zo5uTYA47dkGODNLFhmtsICWZNUrz6s6GbR73cfdPLx7HvRo95zGMe85glNvrmfTcimQyssPtVrJVkbPEpt441szHH3mPtjI2xRB/bGmNLfWxujH3pY0NjbLTStRY2V/85vasPMNyov+lksfXd6DGPecxjHiP+u1+YHOlQjSQFDnbhCmsTD58IExKP1QhT5P01WEvvyKxGoURpUA95CVLGxihTXFgQVOitCj5yWCDfxAz9MCVqFV2MbvLTKkqGNwnPrZKRTx4SLa7cVBt0JLgntYb61G14VTD+fctFnZB/WD8ijwbYDm7GXAAAAABJRU5ErkJggg==",style:{width:"40px",height:"40px"}}),v("div",null,[v("div",J,f(a.name),1),v("div",O,[v("span",Y,f(a.type),1),v("span",null,f(k(a.size)),1)])]),e.showCloseButton?(o(),c(g,{key:0,theme:"primary",shape:"circle",onClick:d((e=>h(t)),["stop"]),size:"small",variant:"text"},{default:p((()=>[r(m(R),{slot:"icon"})])),_:2},1032,["onClick"])):n("",!0)],8,Q))],64)))),256)),r(b,{visible:y.value,"onUpdate:visible":t[0]||(t[0]=e=>y.value=e),attach:"body","on-confirm":()=>y.value=!1},{body:p((()=>[v("div",Z,f(x.value),1)])),_:1},8,["visible","on-confirm"])])):n("",!0)}}}),q={class:"relative"},X=["onClick"],$={class:"flex align-middle justify-center items-center gap-2"},ee=e({__name:"ChatInput",props:{disabled:{type:Boolean,default:!1},minRows:{type:Number,default:2},maxRows:{type:Number,default:8},showUpload:{type:Boolean,default:!0},placeholder:{type:String,default:k("components.chatInput.placeholder")},autoCompleteEnabled:{type:Boolean,default:!1},tips:{type:String,default:""}},emits:["input"],setup(e,{emit:a}){F.workerSrc=new URL(""+new URL("pdf.worker.min-yatZIOMy.mjs",import.meta.url).href,import.meta.url).toString();const k=l(null),P=A();t((()=>P.isSidebarCompact),(e=>{e&&x((()=>{if(k.value){const e=k.value.$el.querySelector("textarea");e&&(e.focus(),e.blur())}}))}));const M=e,V=l(""),R=l([]),G=l(-1);l("");const E=a,I=()=>{const e=V.value.trim();e&&(R.value.push(e),R.value.length>50&&R.value.shift(),localStorage.setItem("chatHistory",JSON.stringify(R.value)),E("input",{content:e,files:_.value.map((e=>({content:e.content,url:e.url,id:e.raw.path,name:e.name,type:e.type,size:e.size})))}),V.value="",_.value=[],G.value=-1)},_=l([]),K=async e=>{try{for(const a of e){const e=await J(a.raw);a.content=e,_.value.push(a)}return{status:"success",error:"",response:{url:" "}}}catch{return{status:"fail",error:"",response:{}}}};async function Q(e){return new Promise(((a,t)=>{const l=new FileReader;l.onload=e=>a(e.target.result),l.onerror=e=>t(e),l.readAsArrayBuffer(e)}))}async function J(e){var a;switch(null==(a=e.name.split(".").pop())?void 0:a.toLowerCase()){case"docx":return await async function(e){const a=await Q(e);return(await D.extractRawText({arrayBuffer:a})).value}(e);case"pdf":return await async function(e){const a=await Q(e),t=await S(a).promise;let l="";for(let s=1;s<=t.numPages;s++){const e=await t.getPage(s);l+=(await e.getTextContent()).items.map((e=>e.str)).join(" ")+"\n"}return l}(e);case"xlsx":case"xls":return await async function(e){const a=await Q(e),t=N(new Uint8Array(a),{type:"array"});let l="";return t.SheetNames.forEach((e=>{const a=t.Sheets[e],s=T.sheet_to_json(a,{header:1});l+=`Sheet: ${e}\n`,s.forEach((e=>{l+=e.join(", ")+"\n"})),l+="\n"})),l}(e);case"png":case"jpg":case"jpeg":case"gif":case"bmp":case"webp":return await async function(e){return new Promise(((a,t)=>{const l=new FileReader;l.readAsDataURL(e),l.onload=()=>a(l.result),l.onerror=e=>t(e)}))}(e);default:return 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)}}const O=b(),Y=l(!1),Z=l(0),ee=l(0),ae=l(""),te=l(null),le=l(null),se=l(null),ne=l("-150px"),oe=g((()=>["@ai",...O.enableModels.map((e=>`@${C.getModelItemTitle(e)}`))])),re=l(!1),ie=(e,a)=>{const{e:t}=a;if(Y.value)switch(t.key){case"ArrowDown":t.preventDefault(),Z.value=(Z.value+1)%ue.value.length;break;case"ArrowUp":t.preventDefault(),Z.value=(Z.value-1+ue.value.length)%ue.value.length;break;case"Enter":t.preventDefault(),ue.value.length>0&&pe(ue.value[Z.value]);break;case"Escape":Y.value=!1}else if("Enter"===t.key){if(t.shiftKey||re.value)return;const e=V.value.trim();if(M.autoCompleteEnabled&&e.startsWith("@")&&(oe.value.includes(e)||"@"===e))return void t.preventDefault();t.preventDefault(),I()}else if("ArrowUp"===t.key||"ArrowDown"===t.key){if(-1===G.value&&V.value)return;if(t.preventDefault(),"ArrowUp"===t.key){if(0===R.value.length)return;G.value<R.value.length-1&&G.value++}else G.value>-1&&G.value--;-1===G.value?V.value="":V.value=R.value[R.value.length-1-G.value]}},ue=g((()=>{if(!ae.value)return oe.value;const e=ae.value.toLowerCase();return oe.value.filter((a=>a.toLowerCase().includes(e)))}));t((()=>ue),(async()=>{if(Y.value&&le.value){await x();const e=te.value.offsetHeight;ne.value=`-${e}px`}}));const ce=(e,a)=>{const{e:t}=a,l=e;if(G.value=-1,!M.autoCompleteEnabled)return;const s=t.target.selectionStart;if(ee.value=l.lastIndexOf("@",s-1),-1!==ee.value&&ee.value<s){const e=l.indexOf(" ",ee.value);ee.value===l.length-1||-1===e||e>=s?(ae.value=l.slice(ee.value+1,s),Y.value=!0,Z.value=0):Y.value=!1}else Y.value=!1},pe=e=>{const a=V.value.slice(0,ee.value),t=V.value.slice(V.value.indexOf(" ",ee.value)+1||V.value.length);V.value=a+e+" "+t,Y.value=!1,ae.value=""},ve=()=>{if(se.value&&te.value){const e=te.value,a=se.value,t=e.scrollTop,l=t+e.clientHeight,s=a.offsetTop,n=s+a.offsetHeight;s<t?e.scrollTop=s:n>l&&(e.scrollTop=n-e.clientHeight)}};t(Z,(()=>{x(ve)})),w((()=>{re.value=H();const e=localStorage.getItem("chatHistory");e&&(R.value=JSON.parse(e))}));const fe=async e=>{var a;const t=null==(a=e.clipboardData)?void 0:a.items;if(t)for(let l=0;l<t.length;l++){const a=t[l];if(a.type.startsWith("image/")){e.preventDefault();const t=a.getAsFile();if(t){const e={raw:t,name:`pasted_image_${Date.now()}.${t.type.split("/")[1]}`,type:t.type,size:t.size};await K([e])}}else if("file"===a.kind){e.preventDefault();const t=a.getAsFile();if(t){const e={raw:t,name:t.name||`pasted_file_${Date.now()}`,type:t.type,size:t.size};await K([e])}}}},de=async e=>{var a;const t=null==(a=e.dataTransfer)?void 0:a.files;if(t)for(let l=0;l<t.length;l++){const e=t[l];if(e){const a={raw:e,name:e.name,type:e.type,size:e.size};await K([a])}}};return(a,t)=>{const l=z,g=L,w=B;return o(),s("div",q,[Y.value?(o(),s("div",{key:0,class:"autocomplete left-0 absolute z-50 w-full bg-color-container bordered p-2",ref_key:"autocompleteContainer",ref:te,style:h({top:ne.value})},[v("ul",{ref_key:"suggestionList",ref:le},[(o(!0),s(i,null,u(ue.value,((e,a)=>(o(),s("li",{key:e,onClick:a=>pe(e),class:y({selected:a===Z.value}),ref_for:!0,ref:e=>{a===Z.value&&(se.value=e)}},f(e),11,X)))),128))],512)],4)):n("",!0),v("div",{class:"flex flex-col chat-input bg-color-container bordered rounded-lg px-1",onDragover:t[1]||(t[1]=d((()=>{}),["prevent"])),onDrop:d(de,["prevent"])},[r(W,{files:_.value,class:y(["py-2"])},null,8,["files"]),v("div",$,[e.showUpload?(o(),c(g,{key:0,theme:"custom","request-method":K,multiple:!0,allowUploadDuplicateFile:!0},{default:p((()=>[r(l,{theme:"primary",shape:"circle",size:"large",variant:"base"},{default:p((()=>[r(m(U),{slot:"icon"})])),_:1})])),_:1})):n("",!0),r(w,{ref_key:"textareaRef",ref:k,class:"flex-1",onKeydown:ie,onChange:ce,onPaste:fe,disabled:e.disabled,modelValue:V.value,"onUpdate:modelValue":t[0]||(t[0]=e=>V.value=e),placeholder:e.placeholder,name:"description",tips:e.tips,autosize:{minRows:e.minRows,maxRows:e.maxRows}},null,8,["disabled","modelValue","placeholder","tips","autosize"]),r(l,{theme:"primary",shape:"circle",onClick:I,size:"large",variant:"base"},{default:p((()=>[r(m(j),{slot:"icon"})])),_:1})])],32)])}}});export{ee as _,W as a,H as c};
.output/public/assets/FrameContent-ChW-dtxF.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{c as e}from"./@vueuse-B4dz7nOv.js";import{d as t}from"./lodash-VDnThKtA.js";import{p as a,u as r,_ as o}from"./mermaid-render-DYiT7KKL.js";import{V as s}from"./tdesign-vue-next-BiEwLJDx.js";import{l as n,a as i,f as m,w as u,v as l,y as d,R as p,a9 as c,A as f,I as g,B as h,u as v}from"./@vue-CfxotJ-S.js";const y=["src"],w=o(n({__name:"FrameContent",props:{frameSrc:String,offset:{type:Number,default:0}},setup(o){const n=o,{width:w,height:x}=e(),_=i(!0),b=i(window.innerHeight),F=i(),j=m((()=>[`${a}-iframe-page`])),B=r(),I=m((()=>({height:`${b.value}px`}))),S=getComputedStyle(document.documentElement),H=S.getPropertyValue("--td-comp-size-xxxl"),C=S.getPropertyValue("--td-comp-size-xxl"),V=S.getPropertyValue("--td-comp-paddingTB-m");function $(){const e=v(F);if(!e)return;let t=0;const{showLayoutHeader:a,showFooter:r,showBreadcrumb:o}=B,s=a?parseFloat(H):0,i=document.querySelector(".t-breadcrumb"),m=s+(o?function(e){let t=e.clientHeight;const a=window.getComputedStyle(e);return t+=parseInt(a.marginTop,10),t+=parseInt(a.marginBottom,10),t+=parseInt(a.borderTopWidth,10),t+=parseInt(a.borderBottomWidth,10),t}(i):0)+2*parseFloat(V)+(r?parseFloat(C):0)+2+n.offset;b.value=window.innerHeight-m,t=document.documentElement.clientHeight-m,e.style.height=`${t}px`}function z(){_.value=!1,$()}return u([w,x],t($,250)),u([()=>B.showFooter,()=>B.showBreadcrumb],t($,250)),(e,t)=>{const a=s;return d(),l("div",{class:g(j.value),style:h(I.value)},[p(a,{loading:_.value,size:"large",style:h(I.value)},{default:c((()=>[f("iframe",{ref_key:"frameRef",ref:F,src:o.frameSrc,class:g(`${j.value}__main`),onLoad:z},null,42,y)])),_:1},8,["loading","style"])],6)}}}),[["__scopeId","data-v-200260e8"]]);export{w as F};
.output/public/assets/ToolBar.vue_vue_type_style_index_0_lang-rb8l4k-M.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-BnwBbO-S.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-xq6XApaP.js";import{v as Q}from"./uuid-_R2nDvl_.js";import{a as ee}from"./main-CtIofym4.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/about-0-DUd88i.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{F as s}from"./FrameContent-ChW-dtxF.js";import{l as t,J as o,y as r}from"./@vue-CfxotJ-S.js";import"./@vueuse-B4dz7nOv.js";import"./lodash-VDnThKtA.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./mermaid-render-DYiT7KKL.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"./tdesign-vue-next-BiEwLJDx.js";import"./tdesign-icons-vue-next-Bre5yOVt.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.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";const i=t({__name:"about",setup:t=>(t,i)=>(r(),o(s,{frameSrc:"http://www.openseed.top/about"}))});export{i as default};
.output/public/assets/avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{c as a,i as s,a as e,b as t,d as r,e as i,f as o,g as l,h as n,j as u,k as m,l as c}from"./@dicebear-JcnEMRoc.js";import{A as p,b as v}from"./tdesign-vue-next-BiEwLJDx.js";import{Z as d}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{v as g}from"./uuid-_R2nDvl_.js";import{l as b,a as f,w as h,v as j,y as x,R as _,a9 as k,u as w}from"./@vue-CfxotJ-S.js";const y={class:"h-[80px] w-[80px] relative"},E=b({__name:"avatar",props:{url:String},emits:["update"],setup(b,{emit:E}){const z={adventurer:c,avataaars:m,bigEars:u,bigSmile:n,bottts:l,funEmoji:o,icons:i,lorelei:r,micah:t,miniavs:e,personas:s},C=b,M=f(C.url),S=E,A=async()=>{const s=Object.keys(z),e=s[Math.floor(Math.random()*s.length)],t=a(z[e],{seed:g()});M.value=await t.toDataUri(),S("update",M.value)};return C.url||A(),h((()=>C.url),(a=>{C.url?M.value=a:A()})),(a,s)=>{const e=p,t=v;return x(),j("div",y,[_(e,{image:M.value,size:"80px"},null,8,["image"]),_(t,{shape:"circle",variant:"dashed",onClick:A,class:"absolute bottom-0 right-[-15px] z-50"},{default:k((()=>[_(w(d),{slot:"icon"})])),_:1})])}}});export{E as _};
.output/public/assets/changelog-DFPFb8dr.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{F as s}from"./FrameContent-ChW-dtxF.js";import{l as t,J as o,y as r}from"./@vue-CfxotJ-S.js";import"./@vueuse-B4dz7nOv.js";import"./lodash-VDnThKtA.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./mermaid-render-DYiT7KKL.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"./tdesign-vue-next-BiEwLJDx.js";import"./tdesign-icons-vue-next-Bre5yOVt.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.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";const i=t({__name:"changelog",setup:t=>(t,i)=>(r(),o(s,{frameSrc:"http://www.openseed.top/changelog"}))});export{i as default};
.output/public/assets/chat-CxnaJx6o.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-CtIofym4.js";import{U as Oe,A as Ne,_ as $e,a as De}from"./ToolBar.vue_vue_type_style_index_0_lang-rb8l4k-M.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-BnwBbO-S.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-BA9B6Zno.js";import"./highlight.js-BdwRhiJ6.js";import"./@wdns-xq6XApaP.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-5lBKlZzT.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-rb8l4k-M.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-BnwBbO-S.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-CtIofym4.js";import"./@wdns-xq6XApaP.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-BA9B6Zno.js";import"./highlight.js-BdwRhiJ6.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/help-C4-g_Zuv.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{F as s}from"./FrameContent-ChW-dtxF.js";import{w as t}from"./mermaid-render-DYiT7KKL.js";import{l as r,a as o,J as i,y as m}from"./@vue-CfxotJ-S.js";import"./@vueuse-B4dz7nOv.js";import"./lodash-VDnThKtA.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./tdesign-vue-next-BiEwLJDx.js";import"./tdesign-icons-vue-next-Bre5yOVt.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"./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";const e=r({__name:"help",setup(r){const e=o(`${t()}/docs/index.html?t=${(new Date).getTime()}`);return(t,r)=>(m(),i(s,{frameSrc:e.value},null,8,["frameSrc"]))}});export{e as default};
.output/public/assets/highlight.js-BdwRhiJ6.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/index-3SWAOWjS.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-CtIofym4.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"},"3/31/2025, 5:47:28 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-C6KOsl_W.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{F as t}from"./FrameContent-ChW-dtxF.js";import{w as s}from"./mermaid-render-DYiT7KKL.js";import{l as r,J as o,y as i}from"./@vue-CfxotJ-S.js";import"./@vueuse-B4dz7nOv.js";import"./lodash-VDnThKtA.js";import"./@babel-ynFNPEB3.js";import"./core-js-pure-Dnpx5JGu.js";import"./tdesign-vue-next-BiEwLJDx.js";import"./tdesign-icons-vue-next-Bre5yOVt.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"./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";const e=r({__name:"index",setup(r){const e=`${s()}/swagger/index.html?t=${(new Date).getTime()}`,m=getComputedStyle(document.documentElement).getPropertyValue("--td-comp-size-xxxl"),p=parseFloat(m)+20;return(s,r)=>(i(),o(t,{frameSrc:e,offset:p}))}});export{e as default};
.output/public/assets/index-CEnBk6VQ.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import{l as e,f as a,J as t,y as l,a9 as o,R as i,ad as s,u as n,ac as u,G as r,H as d,s as p,a as m,w as c,A as v,z as g,v as _,F as y,aa as f}from"./@vue-CfxotJ-S.js";import{m as h,t as k,e as b,x as j,y as w,z as V,A as x,w as $,B as T}from"./mermaid-render-DYiT7KKL.js";import{b as D,A as S,f as C,T as U,l as B,p as z,q as P,r as M,u as K,O as A,n as O,P as N,t as R,s as J,x as W,e as E,m as q,j as H,Q as I}from"./tdesign-vue-next-BiEwLJDx.js";import{a5 as F,ab as L,a9 as Q,c as G,d as X}from"./tdesign-icons-vue-next-Bre5yOVt.js";import{p as Y}from"./lyihub-zLFv36Ly.js";import{v as Z}from"./uuid-_R2nDvl_.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"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";const ee=e({__name:"ModelCard",props:{product:{type:Object}},emits:["delete-item","copy-item"],setup(e,{emit:r}){const d=e,p=a((()=>{const e=h.getModelItemTitle(d.product);return e.length>40?e.slice(0,40)+"...":e})),m=r;return(a,r)=>{const d=S,c=D,v=C;return l(),t(v,{theme:"normal",title:p.value,"hover-shadow":"",bordered:!1},{avatar:o((()=>[i(d,{size:"56px"},{icon:o((()=>[(l(),t(u(n(h).icons[e.product.type])))])),_:1})])),actions:o((()=>[i(c,{shape:"circle",onClick:r[0]||(r[0]=s((a=>{return t=e.product,void m("copy-item",t);var t}),["stop"])),variant:"text"},{default:o((()=>[i(n(F),{slot:"icon"})])),_:1}),i(c,{shape:"circle",onClick:r[1]||(r[1]=s((a=>{return t=e.product,void m("delete-item",t);var t}),["stop"])),variant:"text"},{default:o((()=>[i(n(L),{slot:"icon"})])),_:1})])),_:1},8,["title"])}}}),ae=e({__name:"WebToken",props:{url:{type:String},userAgent:{type:String},script:{type:String},text:{type:String,default:k("pages.setting.model.login_to_get_token")}},emits:["onResult"],setup(e,{emit:a}){const s=e,n=a,u=async()=>{const e=await window.ipcRenderer.invoke("login-get-token",{url:s.url,userAgent:s.userAgent,script:s.script,show:!0});n("onResult",e)};return(e,a)=>{const n=B,p=U;return l(),t(p,{content:e.$t("pages.setting.model.login_and_close"),placement:"bottom"},{default:o((()=>[i(n,{theme:"primary",onClick:u},{default:o((()=>[r(d(s.text),1)])),_:1})])),_:1},8,["content"])}}}),te={class:"flex gap-2"},le={class:"flex flex-col items-center justify-center mb-[var(--td-comp-margin-xxl)] gap-2"},oe={class:"w-12 h-12"},ie={key:7,class:"mb-5 pl-24 flex flex-col gap-2"},se={class:"flex gap-2 items-center"},ne={class:"w-full flex flex-row justify-end gap-3"},ue={id:"",name:"",status:"1",description:"",type:"openai",apiModel:"",apiBase:"",apiKey:"",keys:[],prompt:"",likes:0,additionalData:{},temperature:V,
2
+ //生成随机性
3
+ topP:w,maxTokens:j,stream:!0},re=e({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:Object},emits:["update:visible"],setup(e,{emit:a}){const s=b(),C=e,q=p(h.providers[0]),H=m(!1),I=m({...ue}),F=m(!1),L=m(""),X=m(""),ee=m(!1),re=m(""),de=m(!1),pe=m(""),me=m(""),ce=m(!1),ve=window.isElectron,ge=({validateResult:e,firstError:a})=>{var t,l,o;if(a)return void E.warning(a);const i=!I.value.id||""===I.value.id;i&&(I.value.id=Z());const n={id:I.value.id,name:I.value.name,status:"1"===I.value.status,description:I.value.description,type:I.value.type,apiBase:null==(t=I.value.apiBase)?void 0:t.trim(),apiKey:null==(l=I.value.apiKey)?void 0:l.trim(),apiModel:null==(o=I.value.apiModel)?void 0:o.trim(),keys:I.value.keys,likes:I.value.likes,prompt:I.value.prompt,temperature:I.value.temperature,
4
+ //生成随机性
5
+ topP:I.value.topP,maxTokens:I.value.maxTokens,additionalData:I.value.additionalData,stream:I.value.stream};i?(s.add(n),E.success(k("pages.setting.model.submit_success"))):(s.update(n),E.success(k("pages.setting.model.update_success"))),H.value=!1},_e=()=>{H.value=!1},ye=()=>{},fe=m([]),he=e=>{fe.value.find((a=>a.value===e))||fe.value.push({label:e,value:e})},ke=e=>{(null==e?void 0:e.token)?I.value.apiKey=null==e?void 0:e.token:E.error(k("pages.setting.model.get_token_failed"))},be=a;c((()=>H.value),(e=>{be("update:visible",e)})),c((()=>C.visible),(e=>{H.value=e})),c((()=>C.data),(e=>{I.value={...e}}),{immediate:!0}),c((()=>I.value.id),(()=>{we()})),c((()=>[I.value.type]),(()=>{fe.value=[],q.value=h.providers.find((e=>e.name===I.value.type)),q.value||(q.value={name:I.value.type,title:"Model Provider Non existent!",icon:"",apiBase:"",tokenUrl:"",isApi:!1,show:{apiBase:!0,apiKey:!0,apiModel:!0},tips:{apiBase:"",apiKey:"",apiModel:""}}),C.data.type===q.value.name?(I.value.apiBase=C.data.apiBase,I.value.apiKey=C.data.apiKey,I.value.apiModel=C.data.apiModel,I.value.prompt=C.data.prompt,I.value.keys=C.data.keys,I.value.temperature=C.data.temperature,I.value.topP=C.data.topP,I.value.maxTokens=C.data.maxTokens,I.value.additionalData=C.data.additionalData,I.value.stream=C.data.stream):(I.value.apiBase=q.value.apiBase,I.value.apiKey="",I.value.apiModel="",I.value.prompt="",I.value.keys=[],I.value.temperature=V,I.value.topP=w,I.value.maxTokens=j,I.value.additionalData={},I.value.stream=!0),we()}));const je={name:[{required:!0,message:k("pages.setting.model.enter_model_name"),type:"error"}]},we=()=>{fe.value=[];let e=q.value.models;I.value.additionalData.models&&(e=I.value.additionalData.models),e&&(Array.isArray(e)?fe.value=e.map((e=>({label:e,value:e}))):"object"==typeof e&&(fe.value=Object.entries(e).map((([e,a])=>({label:e,value:a}))))),I.value.apiModel&&!fe.value.find((e=>e.value===I.value.apiModel))&&fe.value.push({label:I.value.apiModel,value:I.value.apiModel})},Ve=m(!1);async function xe(){try{if(Ve.value=!0,I.value.type.startsWith("openai")){let a=I.value.apiBase;if(!a)return void E.error(k("pages.setting.model.api_base_required"));const t=x(a);if(/\/v\d+\/(?!chat\/completions$)/.test(t)){const e=t.match(/(\/v\d+\/)/);if(e&&e[1]){a=`${t.split(e[1])[0]}${e[1]}models`}}else a=t.replace("/chat/completions","/models");try{const e=await fetch(a,{headers:{Authorization:`Bearer ${I.value.apiKey}`}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(t&&t.data&&Array.isArray(t.data)){const e=t.data.map((e=>e.id));I.value.additionalData||(I.value.additionalData={}),I.value.additionalData.models=e,E.success(k("pages.setting.model.get_models_success"))}else E.error(k("pages.setting.model.invalid_response"))}catch(e){E.error(k("pages.setting.model.get_models_failed")+": "+e.message)}}else{if(!I.value.type.startsWith("lyihub"))return void(I.value.additionalData.models=null);I.value.additionalData.models=await Y(50,I.value.apiKey)}we()}finally{Ve.value=!1}}async function $e(){I.value.additionalData&&(I.value.additionalData.models=null),we(),E.success(k("pages.setting.model.clean_models_success"))}async function Te(){if(!F.value)try{F.value=!0;const e=await fetch($()+"/github/code"),a=await e.json();if(!a)return void E.error(k("pages.setting.model.get_auth_code_failed"));L.value=a.user_code,X.value=a.verification_uri,await navigator.clipboard.writeText(L.value);const t=await fetch($()+`/github/token?device_code=${a.device_code}&interval=${a.interval}`),l=await t.json();if(!1===H.value)return;ke(l),L.value="",X.value=""}finally{F.value=!1}}async function De(){if(!ee.value)try{ee.value=!0;const e=await fetch($()+"/cursor/code"),a=await e.json(),{url:t,uuid:l,verifier:o}=a;re.value=t;const i=await fetch($()+`/cursor/token?uuid=${l}&verifier=${o}&interval=1`),s=await i.json();if(!1===H.value)return;ke(s)}finally{ee.value=!1,re.value=""}}async function Se(){if(de.value)return;const e=e=>btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");try{de.value=!0;const t=e(crypto.getRandomValues(new Uint8Array(32)).buffer),l=e(await(async e=>{const a=(new TextEncoder).encode(e);return await crypto.subtle.digest("SHA-256",a)})(t)),o=crypto.getRandomValues(new Uint8Array(8)),i={codeVerifier:t,codeChallenge:l,state:e(o.buffer),creationTime:Date.now()},s="v",n=new URLSearchParams({response_type:"code",code_challenge:i.codeChallenge,client_id:s,state:i.state,prompt:"login"});me.value="";const u=`https://auth.augmentcode.com/authorize?${n.toString()}`;pe.value=u;const r=3e5,d=Date.now();for(;Date.now()-d<r;){const e=me.value;if(e)try{JSON.parse(e);break}catch(a){}await new Promise((e=>setTimeout(e,1e3)))}const p=JSON.parse(me.value),m=await fetch(`${p.tenant_url}token`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grant_type:"authorization_code",client_id:s,code_verifier:i.codeVerifier,redirect_uri:"",code:p.code})});if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);const c=(await m.json()).access_token;if(!1===H.value)return;ke({token:c})}finally{de.value=!1,me.value="",pe.value=""}}async function Ce(){if(!ce.value){ce.value=!0;try{(await fetch($()+"/cache/clear?key=google_code")).ok||E.error("clear google code fail");const e=$()+"/google/code";Ue(`https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/cloud-platform&response_type=code&redirect_uri=${e}&client_id=${I.value.additionalData.google_oauth_client_id}&access_type=offline&prompt=consent`);let a="",t=0;const l=1e3;for(;;){if(!1===H.value)return;await new Promise((e=>setTimeout(e,l)));const e=await fetch($()+"/google/access_token"),o=await e.json();if("ok"===o.status){a=o.code;break}if(t+=1,t*l>45e3)break}if(!a)return void E.success(k("pages.setting.model.get_auth_code_failed"));const o=await fetch("https://www.googleapis.com/oauth2/v4/token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:I.value.additionalData.google_oauth_client_id,client_secret:I.value.additionalData.google_oauth_client_secret,code:a,redirect_uri:e,grant_type:"authorization_code"})}),i=await o.json();I.value.apiKey=`${I.value.additionalData.google_oauth_client_id}${T}${I.value.additionalData.google_oauth_client_secret}${T}${i.refresh_token}`,E.success(k("pages.setting.model.get_auth_code_success"))}finally{ce.value=!1}}}function Ue(e){window.ipcRenderer?window.ipcRenderer.send("open-url",e):window.open(e)}function Be(){I.value.keys.push({key:I.value.apiKey,name:(I.value.keys.length+1).toString(),enabled:!0})}return(e,a)=>{const s=M,p=P,m=S,c=A,b=K,j=B,w=U,V=D,x=O,$=N,T=R,C=J,E=z,Y=W;return l(),t(Y,{visible:H.value,"onUpdate:visible":a[21]||(a[21]=e=>H.value=e),onClose:ye,header:I.value.id?e.$t("pages.setting.model.editor_model"):e.$t("pages.setting.model.add_model"),width:680,footer:!1},{body:o((()=>[i(E,{ref:"form",data:I.value,rules:je,"label-width":96,onSubmit:ge},{default:o((()=>[i(p,{label:e.$t("pages.setting.model.model_name"),name:"name"},{default:o((()=>[i(s,{modelValue:I.value.name,"onUpdate:modelValue":a[0]||(a[0]=e=>I.value.name=e)},null,8,["modelValue"])])),_:1},8,["label"]),i(p,{label:e.$t("pages.setting.model.model_description"),name:"description"},{default:o((()=>[i(s,{modelValue:I.value.description,"onUpdate:modelValue":a[1]||(a[1]=e=>I.value.description=e)},null,8,["modelValue"])])),_:1},8,["label"]),i(p,{label:e.$t("pages.setting.model.model_interface"),name:"type"},{default:o((()=>[i(b,{modelValue:I.value.type,"onUpdate:modelValue":a[2]||(a[2]=e=>I.value.type=e),clearable:"",filterable:""},{default:o((()=>[(l(!0),_(y,null,f(n(h).options,((e,a)=>(l(),t(c,{key:a,value:e.value,label:e.label},{default:o((()=>[v("div",te,[i(m,{size:"20px"},{icon:o((()=>[(l(),t(u(e.icon)))])),_:2},1024),r(" "+d(e.label),1)])])),_:2},1032,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1},8,["label"]),v("div",le,[v("div",oe,[(l(),t(u(q.value.icon)))]),n(ve)&&!q.value.isApi&&q.value.tokenUrl?(l(),t(ae,{key:0,url:q.value.tokenUrl,onOnResult:ke},null,8,["url"])):g("",!0),!q.value.tokenUrl||n(ve)&&!q.value.isApi?g("",!0):(l(),t(j,{key:1,theme:"primary",onClick:a[3]||(a[3]=e=>Ue(q.value.tokenUrl))},{default:o((()=>[r(d(q.value.tokenUrl),1)])),_:1})),i(w,{content:e.$t("pages.setting.model.login_and_wait"),placement:"bottom"},{default:o((()=>[X.value&&"github-copilot"===q.value.name?(l(),t(j,{key:0,theme:"primary",onClick:a[4]||(a[4]=e=>Ue(X.value))},{default:o((()=>[r(d(e.$t("pages.setting.model.click_to_enter_auth_code")),1)])),_:1})):g("",!0),re.value&&"cursor"===q.value.name?(l(),t(j,{key:1,theme:"primary",onClick:a[5]||(a[5]=e=>Ue(re.value))},{default:o((()=>[r(d(e.$t("pages.setting.model.click_to_enter_auth_code")),1)])),_:1})):g("",!0),pe.value&&"augment"===q.value.name?(l(),t(j,{key:2,theme:"primary",onClick:a[6]||(a[6]=e=>Ue(pe.value))},{default:o((()=>[r(d(e.$t("pages.setting.model.click_to_enter_auth_code")),1)])),_:1})):g("",!0)])),_:1},8,["content"]),"cursor"===q.value.name?(l(),t(V,{key:2,loading:ee.value,onClick:De},{default:o((()=>[r(d(e.$t("pages.setting.model.getTokenButtonText")),1)])),_:1},8,["loading"])):g("",!0),"augment"===q.value.name?(l(),t(V,{key:3,loading:de.value,onClick:Se},{default:o((()=>[r(d(e.$t("pages.setting.model.getTokenButtonText")),1)])),_:1},8,["loading"])):g("",!0)]),"augment"===q.value.name?(l(),t(p,{key:0,label:e.$t("pages.setting.model.get_auth_code"),name:"augment_user_code"},{default:o((()=>[i(s,{modelValue:me.value,"onUpdate:modelValue":a[7]||(a[7]=e=>me.value=e)},null,8,["modelValue"])])),_:1},8,["label"])):g("",!0),"github-copilot"===q.value.name?(l(),t(p,{key:1,label:e.$t("pages.setting.model.get_auth_code"),name:"github_user_code"},{default:o((()=>[i(s,{readonly:"",modelValue:L.value,"onUpdate:modelValue":a[8]||(a[8]=e=>L.value=e)},null,8,["modelValue"]),a[22]||(a[22]=r()),i(V,{class:"ml-2",loading:F.value,onClick:Te},{default:o((()=>[r(d(e.$t("pages.setting.model.getTokenButtonText")),1)])),_:1},8,["loading"])])),_:1},8,["label"])):g("",!0),q.value.name.endsWith("vertex")?(l(),t(p,{key:2,label:"Client ID"},{default:o((()=>[i(s,{modelValue:I.value.additionalData.google_oauth_client_id,"onUpdate:modelValue":a[9]||(a[9]=e=>I.value.additionalData.google_oauth_client_id=e)},null,8,["modelValue"])])),_:1})):g("",!0),q.value.name.endsWith("vertex")?(l(),t(p,{key:3,label:"Client Secret"},{default:o((()=>[i(s,{modelValue:I.value.additionalData.google_oauth_client_secret,"onUpdate:modelValue":a[10]||(a[10]=e=>I.value.additionalData.google_oauth_client_secret=e)},null,8,["modelValue"]),a[23]||(a[23]=r()),i(V,{class:"ml-2",onClick:Ce,loading:ce.value},{default:o((()=>[r(d(e.$t("pages.setting.model.getTokenButtonText")),1)])),_:1},8,["loading"])])),_:1})):g("",!0),q.value.show.apiBase?(l(),t(p,{key:4,label:e.$t("pages.setting.model.model_address"),name:"apiBase",tips:q.value.tips.apiBase},{default:o((()=>[i(s,{modelValue:I.value.apiBase,"onUpdate:modelValue":a[11]||(a[11]=e=>I.value.apiBase=e),placeholder:q.value.apiBase},null,8,["modelValue","placeholder"])])),_:1},8,["label","tips"])):g("",!0),q.value.show.apiModel?(l(),t(p,{key:5,label:e.$t("pages.setting.model.model"),name:"apiModel",tips:q.value.tips.apiModel},{default:o((()=>[i(b,{modelValue:I.value.apiModel,"onUpdate:modelValue":a[12]||(a[12]=e=>I.value.apiModel=e),creatable:"",filterable:"",options:fe.value,onCreate:he,onEnter:a[13]||(a[13]=e=>{e.e.preventDefault()})},null,8,["modelValue","options"]),q.value.name.startsWith("lyihub")||q.value.name.startsWith("openai")?(l(),t(V,{key:0,class:"ml-2",onClick:xe,loading:Ve.value},{default:o((()=>[r(d(e.$t("pages.setting.model.getTokenButtonText")),1)])),_:1},8,["loading"])):g("",!0),q.value.name.startsWith("lyihub")||q.value.name.startsWith("openai")?(l(),t(V,{key:1,class:"ml-2",onClick:$e},{default:o((()=>[r(d(e.$t("pages.setting.model.cleanTokenButtonText")),1)])),_:1})):g("",!0)])),_:1},8,["label","tips"])):g("",!0),q.value.show.apiKey?(l(),t(p,{key:6,label:e.$t("pages.setting.model.model_key"),name:"apiKey",tips:q.value.tips.apiKey},{default:o((()=>[i(s,{type:"password",modelValue:I.value.apiKey,"onUpdate:modelValue":a[14]||(a[14]=e=>I.value.apiKey=e)},null,8,["modelValue"]),i(V,{shape:"square",variant:"text",class:"ml-2",onClick:Be},{default:o((()=>[i(n(Q),{slot:"icon"})])),_:1})])),_:1},8,["label","tips"])):g("",!0),I.value.keys&&I.value.keys.length>0?(l(),_("div",ie,[(l(!0),_(y,null,f(I.value.keys,((a,t)=>(l(),_("div",se,[i(s,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e,class:"w-32"},null,8,["modelValue","onUpdate:modelValue"]),i(s,{modelValue:a.key,"onUpdate:modelValue":e=>a.key=e,type:"password"},null,8,["modelValue","onUpdate:modelValue"]),i(x,{modelValue:a.enabled,"onUpdate:modelValue":e=>a.enabled=e},null,8,["modelValue","onUpdate:modelValue"]),i($,{content:e.$t("pages.setting.user.confirm_delete"),onConfirm:e=>function(e){I.value.keys.splice(e,1)}(t)},{default:o((()=>[i(V,{shape:"square",variant:"text"},{default:o((()=>[i(n(G),{slot:"icon"})])),_:1})])),_:2},1032,["content","onConfirm"])])))),256))])):g("",!0),i(p,{label:n(k)("pages.conversation.stream"),name:"stream"},{default:o((()=>[i(x,{modelValue:I.value.stream,"onUpdate:modelValue":a[15]||(a[15]=e=>I.value.stream=e)},null,8,["modelValue"])])),_:1},8,["label"]),i(p,{label:n(k)("pages.conversation.temperature"),name:"temperature"},{default:o((()=>[i(T,{modelValue:I.value.temperature,"onUpdate:modelValue":a[16]||(a[16]=e=>I.value.temperature=e),inputNumberProps:"",showStep:"",min:0,max:1,step:.1},null,8,["modelValue"])])),_:1},8,["label"]),i(p,{label:n(k)("pages.conversation.maxTokens"),name:"maxTokens"},{default:o((()=>[i(T,{modelValue:I.value.maxTokens,"onUpdate:modelValue":a[17]||(a[17]=e=>I.value.maxTokens=e),inputNumberProps:"",showStep:"",min:1024,max:61440,step:1024},null,8,["modelValue"])])),_:1},8,["label"]),i(p,{label:n(k)("pages.conversation.topP"),name:"topP"},{default:o((()=>[i(T,{modelValue:I.value.topP,"onUpdate:modelValue":a[18]||(a[18]=e=>I.value.topP=e),inputNumberProps:"",showStep:"",min:0,max:1,step:.1},null,8,["modelValue"])])),_:1},8,["label"]),q.value.name.startsWith("cozec")?(l(),t(p,{key:8,label:"",tips:"会将话中的角色设定附加到每次发送的用户消息上"},{default:o((()=>[i(x,{modelValue:I.value.additionalData.useConversationSetting,"onUpdate:modelValue":a[19]||(a[19]=e=>I.value.additionalData.useConversationSetting=e)},{default:o((()=>a[24]||(a[24]=[r("使用会话的角色设定")]))),_:1},8,["modelValue"])])),_:1})):g("",!0),i(p,{label:e.$t("pages.setting.model.model_prompt"),name:"prompt",tips:e.$t("pages.setting.model.prompt_tips")},{default:o((()=>[i(C,{modelValue:I.value.prompt,"onUpdate:modelValue":a[20]||(a[20]=e=>I.value.prompt=e),autosize:{minRows:2,maxRows:5},name:"prompt"},null,8,["modelValue"])])),_:1},8,["label","tips"]),i(p,null,{default:o((()=>[v("div",ne,[i(V,{variant:"outline",onClick:_e},{default:o((()=>[r(d(e.$t("pages.setting.model.cancel")),1)])),_:1}),i(V,{theme:"primary",type:"submit"},{default:o((()=>[r(d(e.$t("pages.setting.model.confirm")),1)])),_:1})])])),_:1})])),_:1},8,["data"])])),_:1},8,["visible","header"])}}}),de={class:"search-box",style:{"margin-bottom":"16px"}},pe={class:"list-card-items"},me={class:"list-card-pagination"},ce=e({name:"ListModel",setup(e){const s=m(""),u=b(),r=m({current:1,pageSize:31,total:0}),d=a((()=>{const e=u.models.filter((e=>e.name.includes(s.value)||e.apiModel.includes(s.value)));return r.value.total=e.length,e})),p=m(void 0),c=a((()=>p.value?k("pages.setting.model.confirm_delete_model",{modelName:p.value.name}):"")),g=()=>{u.remove(p.value.id),$.value=!1,E.success(k("pages.setting.model.delete_success"))},x=m(!1),$=m(!1),T=m({...ue}),D=e=>{r.value.pageSize=e,r.value.current=1},U=e=>{r.value.current=e},B=e=>{$.value=!0,p.value=e},z=()=>{p.value=void 0},P=()=>{T.value={...ue,keys:[]},x.value=!0},K=e=>{if(!h.dict[e.type])return void E.error(k("pages.setting.model.model_provider_not_exist"));const a={...e,
6
+ // 清空ID,作为新模型
7
+ name:`${e.name} (副本)`};T.value={id:"",name:a.name,status:a.status?"1":"0",description:a.description,type:a.type.toString(),apiBase:a.apiBase,apiKey:a.apiKey,apiModel:a.apiModel,keys:a.keys?JSON.parse(JSON.stringify(a.keys)):[],likes:a.likes,prompt:a.prompt,temperature:a.temperature||V,topP:a.topP||w,maxTokens:a.maxTokens||j,stream:a.stream,additionalData:a.additionalData?JSON.parse(JSON.stringify(a.additionalData)):{}},x.value=!0};return(e,a)=>{const u=M,p=S,m=C,b=q,A=H,O=I,N=W;return l(),_("div",null,[v("div",de,[i(u,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e),placeholder:"搜索模型"},null,8,["modelValue"])]),v("div",pe,[i(A,{gutter:[16,16]},{default:o((()=>[i(b,{xs:12,lg:4,xl:3},{default:o((()=>[i(m,{theme:"normal","hover-shadow":"",class:"list-card-item border-dashed",style:{"border-color":"var(--td-brand-color-active)"},title:e.$t("pages.setting.model.add_model"),onClick:P},{avatar:o((()=>[i(p,{size:"56px"},{icon:o((()=>[i(n(X))])),_:1})])),_:1},8,["title"])])),_:1}),(l(!0),_(y,null,f(d.value.slice(r.value.pageSize*(r.value.current-1),r.value.pageSize*r.value.current),(e=>(l(),t(b,{key:e.id,xs:12,lg:4,xl:3},{default:o((()=>[i(ee,{class:"list-card-item",product:e,onDeleteItem:B,onCopyItem:K,onClick:a=>(e=>{h.dict[e.type]?(T.value={id:e.id,name:e.name,status:e.status?"1":"0",description:e.description,type:e.type.toString(),apiBase:e.apiBase,apiKey:e.apiKey,apiModel:e.apiModel,keys:e.keys?JSON.parse(JSON.stringify(e.keys)):[],likes:e.likes,prompt:e.prompt,temperature:e.temperature||V,
8
+ //生成随机性
9
+ topP:e.topP||w,maxTokens:e.maxTokens||j,stream:e.stream,additionalData:e.additionalData?JSON.parse(JSON.stringify(e.additionalData)):{}},x.value=!0):E.error(k("pages.setting.model.model_provider_not_exist"))})(e)},null,8,["product","onClick"])])),_:2},1024)))),128))])),_:1})]),v("div",me,[i(O,{modelValue:r.value.current,"onUpdate:modelValue":a[1]||(a[1]=e=>r.value.current=e),"page-size":r.value.pageSize,"onUpdate:pageSize":a[2]||(a[2]=e=>r.value.pageSize=e),total:r.value.total,"page-size-options":[31],onPageSizeChange:D,onCurrentChange:U},null,8,["modelValue","page-size","total","page-size-options"])]),i(re,{visible:x.value,"onUpdate:visible":a[3]||(a[3]=e=>x.value=e),data:T.value},null,8,["visible","data"]),i(N,{visible:$.value,"onUpdate:visible":a[4]||(a[4]=e=>$.value=e),header:e.$t("pages.setting.model.confirm_delete_selected_model"),body:c.value,"on-cancel":z,onConfirm:g},null,8,["visible","header","body"])])}}});export{ce as default};
.output/public/assets/index-D7OtVVB-.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-CtIofym4.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-DHLNART_.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-CtIofym4.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/index-DTffGxJW.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-CtIofym4.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/main-Br62opI0.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .tdesign-breadcrumb[data-v-7ec7ffe3]{margin-bottom:24px}.fade-leave-active[data-v-d7ed7a08],.fade-enter-active[data-v-d7ed7a08]{transition:opacity .28s cubic-bezier(.38,0,.24,1)}.fade-enter-from[data-v-d7ed7a08],.fade-leave-to[data-v-d7ed7a08]{opacity:0}.tdesign-starter-footer[data-v-f64c9180]{color:var(--td-text-color-placeholder);line-height:20px;text-align:center;height:var(--td-comp-size-xxl)}.operations-dropdown-container-item .t-dropdown__item-text{display:flex;align-items:center}.tdesign-starter-header-menu-fixed[data-v-066d80f0]{position:fixed;top:0;z-index:1001}.tdesign-starter-header-menu-fixed[data-v-066d80f0] .t-head-menu__inner{padding-right:var(--td-comp-margin-xl)}.tdesign-starter-header-menu-fixed-side[data-v-066d80f0]{left:232px;right:0;z-index:10;width:auto;transition:all .3s}.tdesign-starter-header-menu-fixed-side-compact[data-v-066d80f0]{left:0}.tdesign-starter-header-logo-container[data-v-066d80f0]{cursor:pointer;display:inline-flex}.header-menu[data-v-066d80f0]{flex:1 1 1;display:inline-flex}.header-menu[data-v-066d80f0] .t-menu__item{min-width:unset}.operations-container[data-v-066d80f0]{display:flex;align-items:center}.operations-container .t-popup__reference[data-v-066d80f0]{display:flex;align-items:center;justify-content:center}.operations-container .t-button[data-v-066d80f0]{margin-left:var(--td-comp-margin-l)}.header-operate-left[data-v-066d80f0]{display:flex;align-items:normal;line-height:0}.header-logo-container[data-v-066d80f0]{width:184px;height:26px;display:flex;margin-left:24px;color:var(--td-text-color-primary)}.header-logo-container .t-logo[data-v-066d80f0]{width:100%;height:100%}.header-logo-container .t-logo[data-v-066d80f0]:hover,.header-logo-container[data-v-066d80f0]:hover{cursor:pointer}.header-user-account[data-v-066d80f0]{display:inline-flex;align-items:center;color:var(--td-text-color-primary)}[data-v-066d80f0] .t-head-menu__inner{border-bottom:1px solid var(--td-component-stroke)}.t-menu--light .header-user-account[data-v-066d80f0]{color:var(--td-text-color-primary)}.t-menu--dark .t-head-menu__inner[data-v-066d80f0]{border-bottom:1px solid var(--td-gray-color-10)}.t-menu--dark .header-user-account[data-v-066d80f0]{color:#ffffff8c}.operations-dropdown-container-item[data-v-066d80f0]{width:100%;display:flex;align-items:center}.operations-dropdown-container-item[data-v-066d80f0] .t-dropdown__item-text{display:flex;align-items:center}.operations-dropdown-container-item .t-icon[data-v-066d80f0]{font-size:var(--td-comp-size-xxxs);margin-right:var(--td-comp-margin-s)}.operations-dropdown-container-item[data-v-066d80f0] .t-dropdown__item{width:100%;margin-bottom:0}.operations-dropdown-container-item[data-v-066d80f0]:last-child .t-dropdown__item{margin-bottom:8px}.version-container[data-v-8cd98e64]{opacity:.4}.menu-item[data-v-8cd98e64]{position:relative}.delete-button[data-v-8cd98e64]{opacity:0;transition:opacity .2s ease-in-out}.menu-item:hover .delete-button[data-v-8cd98e64]{opacity:1}.pwa-toast[data-v-b1672b5d]{position:fixed;right:10px;top:10px;z-index:100;max-width:16rem;--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pwa-toast .message[data-v-b1672b5d]{margin-bottom:8px}#nprogress .bar[data-v-a54c09a9]{background:var(--td-brand-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-3{left:.75rem}.right-0{right:0}.right-1{right:.25rem}.right-\[-15px\]{right:-15px}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-\[-32px\]{top:-32px}.z-20{z-index:20}.z-50{z-index:50}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-\[var\(--td-comp-margin-xxl\)\]{margin-bottom:var(--td-comp-margin-xxl)}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-\[108px\]{height:108px}.h-\[24px\]{height:24px}.h-\[80px\]{height:80px}.h-\[calc\(100\%-10px\)\]{height:calc(100% - 10px)}.h-\[calc\(100vh-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-var\(--td-comp-size-xxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - var(--td-comp-size-xxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-var\(--td-comp-size-xxl\)-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - var(--td-comp-size-xxl) - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-var\(--td-comp-size-xxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - var(--td-comp-size-xxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-var\(--td-comp-size-xxl\)-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - var(--td-comp-size-xxl) - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(50\%-10px\)\]{height:calc(50% - 10px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-32{max-height:8rem}.max-h-44{max-height:11rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-72{max-height:18rem}.max-h-96{max-height:24rem}.min-h-32{min-height:8rem}.min-h-44{min-height:11rem}.w-1\/2{width:50%}.w-12{width:3rem}.w-32{width:8rem}.w-44{width:11rem}.w-60{width:15rem}.w-\[200px\]{width:200px}.w-\[24px\]{width:24px}.w-\[80px\]{width:80px}.w-\[calc\(100\%-24px-1rem\)\]{width:calc(100% - 24px - 1rem)}.w-full{width:100%}.min-w-44{min-width:11rem}.min-w-\[300px\]{min-width:300px}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[120px\]{max-width:120px}.max-w-\[160px\]{max-width:160px}.max-w-\[75\%\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.auto-cols-max{grid-auto-columns:max-content}.grid-flow-col{grid-auto-flow:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[10px\]{padding:10px}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-0{padding-bottom:0}.pl-10{padding-left:2.5rem}.pl-24{padding-left:6rem}.pr-16{padding-right:4rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-thumb{background:#9b9b9b80;border-radius:10px;-webkit-transition:background .2s ease;transition:background .2s ease}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#9b9b9bcc}.dark .markdown-body,[data-theme=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #e6edf3;--color-fg-muted: #848d97;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110,118,129,.4);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-subtle: rgba(187,128,9,.15);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-done-fg: #a371f7;--color-done-emphasis: #8957e5}.light .markdown-body,[data-theme=light]{color-scheme:light;--color-prettylights-syntax-comment: #57606a;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-neutral-muted: rgba(175,184,193,.2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-done-fg: #8250df;--color-done-emphasis: #8250df}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;-moz-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .mr-2{margin-right:var(--base-size-8, 8px)!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:var(--color-fg-default);background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:16px;color:inherit;border-left:.25em solid var(--color-border-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--color-accent-emphasis)}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-accent-fg)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--color-done-emphasis)}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-done-fg)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--color-attention-emphasis)}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-attention-fg)}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--color-success-emphasis)}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-success-fg)}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--color-danger-emphasis)}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-danger-fg)}@font-face{font-family:KaTeX_AMS;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(./KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.21"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;display:inline-block;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathsfit,.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:inline-flex;flex-direction:column;align-items:baseline}.katex .hbox{display:inline-flex;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline,.katex .hdashline,.katex .rule{min-height:1px}.katex .mspace{display:inline-block}.katex .llap,.katex .rlap,.katex .clap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner,.katex .clap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix,.katex .clap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner,.katex .clap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:solid 0;position:relative}.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .sizing.reset-size1.size1,.katex .fontsize-ensurer.reset-size1.size1{font-size:1em}.katex .sizing.reset-size1.size2,.katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em}.katex .sizing.reset-size1.size3,.katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em}.katex .sizing.reset-size1.size4,.katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em}.katex .sizing.reset-size1.size5,.katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em}.katex .sizing.reset-size1.size6,.katex .fontsize-ensurer.reset-size1.size6{font-size:2em}.katex .sizing.reset-size1.size7,.katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em}.katex .sizing.reset-size1.size8,.katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em}.katex .sizing.reset-size1.size9,.katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em}.katex .sizing.reset-size1.size10,.katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em}.katex .sizing.reset-size1.size11,.katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em}.katex .sizing.reset-size2.size1,.katex .fontsize-ensurer.reset-size2.size1{font-size:.8333333333em}.katex .sizing.reset-size2.size2,.katex .fontsize-ensurer.reset-size2.size2{font-size:1em}.katex .sizing.reset-size2.size3,.katex .fontsize-ensurer.reset-size2.size3{font-size:1.1666666667em}.katex .sizing.reset-size2.size4,.katex .fontsize-ensurer.reset-size2.size4{font-size:1.3333333333em}.katex .sizing.reset-size2.size5,.katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em}.katex .sizing.reset-size2.size6,.katex .fontsize-ensurer.reset-size2.size6{font-size:1.6666666667em}.katex .sizing.reset-size2.size7,.katex .fontsize-ensurer.reset-size2.size7{font-size:2em}.katex .sizing.reset-size2.size8,.katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em}.katex .sizing.reset-size2.size9,.katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em}.katex .sizing.reset-size2.size10,.katex .fontsize-ensurer.reset-size2.size10{font-size:3.4566666667em}.katex .sizing.reset-size2.size11,.katex .fontsize-ensurer.reset-size2.size11{font-size:4.1466666667em}.katex .sizing.reset-size3.size1,.katex .fontsize-ensurer.reset-size3.size1{font-size:.7142857143em}.katex .sizing.reset-size3.size2,.katex .fontsize-ensurer.reset-size3.size2{font-size:.8571428571em}.katex .sizing.reset-size3.size3,.katex .fontsize-ensurer.reset-size3.size3{font-size:1em}.katex .sizing.reset-size3.size4,.katex .fontsize-ensurer.reset-size3.size4{font-size:1.1428571429em}.katex .sizing.reset-size3.size5,.katex .fontsize-ensurer.reset-size3.size5{font-size:1.2857142857em}.katex .sizing.reset-size3.size6,.katex .fontsize-ensurer.reset-size3.size6{font-size:1.4285714286em}.katex .sizing.reset-size3.size7,.katex .fontsize-ensurer.reset-size3.size7{font-size:1.7142857143em}.katex .sizing.reset-size3.size8,.katex .fontsize-ensurer.reset-size3.size8{font-size:2.0571428571em}.katex .sizing.reset-size3.size9,.katex .fontsize-ensurer.reset-size3.size9{font-size:2.4685714286em}.katex .sizing.reset-size3.size10,.katex .fontsize-ensurer.reset-size3.size10{font-size:2.9628571429em}.katex .sizing.reset-size3.size11,.katex .fontsize-ensurer.reset-size3.size11{font-size:3.5542857143em}.katex .sizing.reset-size4.size1,.katex .fontsize-ensurer.reset-size4.size1{font-size:.625em}.katex .sizing.reset-size4.size2,.katex .fontsize-ensurer.reset-size4.size2{font-size:.75em}.katex .sizing.reset-size4.size3,.katex .fontsize-ensurer.reset-size4.size3{font-size:.875em}.katex .sizing.reset-size4.size4,.katex .fontsize-ensurer.reset-size4.size4{font-size:1em}.katex .sizing.reset-size4.size5,.katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em}.katex .sizing.reset-size4.size6,.katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em}.katex .sizing.reset-size4.size7,.katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em}.katex .sizing.reset-size4.size8,.katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em}.katex .sizing.reset-size4.size9,.katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em}.katex .sizing.reset-size4.size10,.katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em}.katex .sizing.reset-size4.size11,.katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em}.katex .sizing.reset-size5.size1,.katex .fontsize-ensurer.reset-size5.size1{font-size:.5555555556em}.katex .sizing.reset-size5.size2,.katex .fontsize-ensurer.reset-size5.size2{font-size:.6666666667em}.katex .sizing.reset-size5.size3,.katex .fontsize-ensurer.reset-size5.size3{font-size:.7777777778em}.katex .sizing.reset-size5.size4,.katex .fontsize-ensurer.reset-size5.size4{font-size:.8888888889em}.katex .sizing.reset-size5.size5,.katex .fontsize-ensurer.reset-size5.size5{font-size:1em}.katex .sizing.reset-size5.size6,.katex .fontsize-ensurer.reset-size5.size6{font-size:1.1111111111em}.katex .sizing.reset-size5.size7,.katex .fontsize-ensurer.reset-size5.size7{font-size:1.3333333333em}.katex .sizing.reset-size5.size8,.katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em}.katex .sizing.reset-size5.size9,.katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em}.katex .sizing.reset-size5.size10,.katex .fontsize-ensurer.reset-size5.size10{font-size:2.3044444444em}.katex .sizing.reset-size5.size11,.katex .fontsize-ensurer.reset-size5.size11{font-size:2.7644444444em}.katex .sizing.reset-size6.size1,.katex .fontsize-ensurer.reset-size6.size1{font-size:.5em}.katex .sizing.reset-size6.size2,.katex .fontsize-ensurer.reset-size6.size2{font-size:.6em}.katex .sizing.reset-size6.size3,.katex .fontsize-ensurer.reset-size6.size3{font-size:.7em}.katex .sizing.reset-size6.size4,.katex .fontsize-ensurer.reset-size6.size4{font-size:.8em}.katex .sizing.reset-size6.size5,.katex .fontsize-ensurer.reset-size6.size5{font-size:.9em}.katex .sizing.reset-size6.size6,.katex .fontsize-ensurer.reset-size6.size6{font-size:1em}.katex .sizing.reset-size6.size7,.katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em}.katex .sizing.reset-size6.size8,.katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em}.katex .sizing.reset-size6.size9,.katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em}.katex .sizing.reset-size6.size10,.katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em}.katex .sizing.reset-size6.size11,.katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em}.katex .sizing.reset-size7.size1,.katex .fontsize-ensurer.reset-size7.size1{font-size:.4166666667em}.katex .sizing.reset-size7.size2,.katex .fontsize-ensurer.reset-size7.size2{font-size:.5em}.katex .sizing.reset-size7.size3,.katex .fontsize-ensurer.reset-size7.size3{font-size:.5833333333em}.katex .sizing.reset-size7.size4,.katex .fontsize-ensurer.reset-size7.size4{font-size:.6666666667em}.katex .sizing.reset-size7.size5,.katex .fontsize-ensurer.reset-size7.size5{font-size:.75em}.katex .sizing.reset-size7.size6,.katex .fontsize-ensurer.reset-size7.size6{font-size:.8333333333em}.katex .sizing.reset-size7.size7,.katex .fontsize-ensurer.reset-size7.size7{font-size:1em}.katex .sizing.reset-size7.size8,.katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em}.katex .sizing.reset-size7.size9,.katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em}.katex .sizing.reset-size7.size10,.katex .fontsize-ensurer.reset-size7.size10{font-size:1.7283333333em}.katex .sizing.reset-size7.size11,.katex .fontsize-ensurer.reset-size7.size11{font-size:2.0733333333em}.katex .sizing.reset-size8.size1,.katex .fontsize-ensurer.reset-size8.size1{font-size:.3472222222em}.katex .sizing.reset-size8.size2,.katex .fontsize-ensurer.reset-size8.size2{font-size:.4166666667em}.katex .sizing.reset-size8.size3,.katex .fontsize-ensurer.reset-size8.size3{font-size:.4861111111em}.katex .sizing.reset-size8.size4,.katex .fontsize-ensurer.reset-size8.size4{font-size:.5555555556em}.katex .sizing.reset-size8.size5,.katex .fontsize-ensurer.reset-size8.size5{font-size:.625em}.katex .sizing.reset-size8.size6,.katex .fontsize-ensurer.reset-size8.size6{font-size:.6944444444em}.katex .sizing.reset-size8.size7,.katex .fontsize-ensurer.reset-size8.size7{font-size:.8333333333em}.katex .sizing.reset-size8.size8,.katex .fontsize-ensurer.reset-size8.size8{font-size:1em}.katex .sizing.reset-size8.size9,.katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em}.katex .sizing.reset-size8.size10,.katex .fontsize-ensurer.reset-size8.size10{font-size:1.4402777778em}.katex .sizing.reset-size8.size11,.katex .fontsize-ensurer.reset-size8.size11{font-size:1.7277777778em}.katex .sizing.reset-size9.size1,.katex .fontsize-ensurer.reset-size9.size1{font-size:.2893518519em}.katex .sizing.reset-size9.size2,.katex .fontsize-ensurer.reset-size9.size2{font-size:.3472222222em}.katex .sizing.reset-size9.size3,.katex .fontsize-ensurer.reset-size9.size3{font-size:.4050925926em}.katex .sizing.reset-size9.size4,.katex .fontsize-ensurer.reset-size9.size4{font-size:.462962963em}.katex .sizing.reset-size9.size5,.katex .fontsize-ensurer.reset-size9.size5{font-size:.5208333333em}.katex .sizing.reset-size9.size6,.katex .fontsize-ensurer.reset-size9.size6{font-size:.5787037037em}.katex .sizing.reset-size9.size7,.katex .fontsize-ensurer.reset-size9.size7{font-size:.6944444444em}.katex .sizing.reset-size9.size8,.katex .fontsize-ensurer.reset-size9.size8{font-size:.8333333333em}.katex .sizing.reset-size9.size9,.katex .fontsize-ensurer.reset-size9.size9{font-size:1em}.katex .sizing.reset-size9.size10,.katex .fontsize-ensurer.reset-size9.size10{font-size:1.2002314815em}.katex .sizing.reset-size9.size11,.katex .fontsize-ensurer.reset-size9.size11{font-size:1.4398148148em}.katex .sizing.reset-size10.size1,.katex .fontsize-ensurer.reset-size10.size1{font-size:.2410800386em}.katex .sizing.reset-size10.size2,.katex .fontsize-ensurer.reset-size10.size2{font-size:.2892960463em}.katex .sizing.reset-size10.size3,.katex .fontsize-ensurer.reset-size10.size3{font-size:.337512054em}.katex .sizing.reset-size10.size4,.katex .fontsize-ensurer.reset-size10.size4{font-size:.3857280617em}.katex .sizing.reset-size10.size5,.katex .fontsize-ensurer.reset-size10.size5{font-size:.4339440694em}.katex .sizing.reset-size10.size6,.katex .fontsize-ensurer.reset-size10.size6{font-size:.4821600771em}.katex .sizing.reset-size10.size7,.katex .fontsize-ensurer.reset-size10.size7{font-size:.5785920926em}.katex .sizing.reset-size10.size8,.katex .fontsize-ensurer.reset-size10.size8{font-size:.6943105111em}.katex .sizing.reset-size10.size9,.katex .fontsize-ensurer.reset-size10.size9{font-size:.8331726133em}.katex .sizing.reset-size10.size10,.katex .fontsize-ensurer.reset-size10.size10{font-size:1em}.katex .sizing.reset-size10.size11,.katex .fontsize-ensurer.reset-size10.size11{font-size:1.1996142719em}.katex .sizing.reset-size11.size1,.katex .fontsize-ensurer.reset-size11.size1{font-size:.2009646302em}.katex .sizing.reset-size11.size2,.katex .fontsize-ensurer.reset-size11.size2{font-size:.2411575563em}.katex .sizing.reset-size11.size3,.katex .fontsize-ensurer.reset-size11.size3{font-size:.2813504823em}.katex .sizing.reset-size11.size4,.katex .fontsize-ensurer.reset-size11.size4{font-size:.3215434084em}.katex .sizing.reset-size11.size5,.katex .fontsize-ensurer.reset-size11.size5{font-size:.3617363344em}.katex .sizing.reset-size11.size6,.katex .fontsize-ensurer.reset-size11.size6{font-size:.4019292605em}.katex .sizing.reset-size11.size7,.katex .fontsize-ensurer.reset-size11.size7{font-size:.4823151125em}.katex .sizing.reset-size11.size8,.katex .fontsize-ensurer.reset-size11.size8{font-size:.578778135em}.katex .sizing.reset-size11.size9,.katex .fontsize-ensurer.reset-size11.size9{font-size:.6945337621em}.katex .sizing.reset-size11.size10,.katex .fontsize-ensurer.reset-size11.size10{font-size:.8336012862em}.katex .sizing.reset-size11.size11,.katex .fontsize-ensurer.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:before,.katex .stretchy:after{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .x-arrow,.katex .mover,.katex .munder{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}:root[theme-mode=dark]{--td-component-border: #30363d;--td-bg-color-container: #010409;--td-bg-color-page: #202731}body{color:var(--td-text-color-secondary);font:var(--td-font-body-medium);font-family:-apple-system,BlinkMacSystemFont,var(--td-font-family);-webkit-font-smoothing:antialiased;padding:0;margin:0}.bg-color-page{background:var(--td-bg-color-page)}.bg-color-container{background-color:var(--td-bg-color-container)}.brand-color{background-color:var(--td-brand-color)}.brand-color-light{background-color:var(--td-brand-color-light)}.bg-color-container-active{background-color:var(--td-bg-color-container-active)}.bg-color-specialcomponent{background-color:var(--td-bg-color-specialcomponent)}.bordered{border:1px solid var(--td-component-border)}.bordered-bottom{border-bottom:1px solid var(--td-component-border)}.text-color-primary{color:var(--td-text-color-primary)}.text-color-secondary{color:var(--td-text-color-secondary)}.text-color-anti{color:var(--td-text-color-anti)}.t-layout__sider{width:-moz-fit-content;width:fit-content}.tdesign-starter-sidebar-layout{height:100%}.tdesign-starter-content-layout{padding:var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-m)}.tdesign-starter-footer-layout{padding:0;margin-bottom:var(--td-comp-margin-xxl)}.light .tdesign-starter-content-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #e0e7ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 231 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark .tdesign-starter-content-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1e293b var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #334155 var(--tw-gradient-to-position)}.light .tdesign-starter-sidebar-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #c7d2fe var(--tw-gradient-from-position);--tw-gradient-to: rgb(199 210 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #eef2ff var(--tw-gradient-to-position)}.dark .tdesign-starter-sidebar-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.light .chat-model-header{--tw-shadow-color: #e2e8f0;--tw-shadow: var(--tw-shadow-colored)}.dark .chat-model-header{--tw-shadow-color: #334155;--tw-shadow: var(--tw-shadow-colored)}.light .user-chat-content{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: rgb(224 231 255 / .8) var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 231 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #eef2ff var(--tw-gradient-to-position)}.dark .user-chat-content{background-color:var(--td-bg-color-page)}.light .markdown-it-code-title .code-header-bg{background-color:#f5f5f5}.dark .markdown-it-code-title .code-header-bg{background-color:#2d2d2d}.light .markdown-it-code-title .code-scroll-top-button{background-color:#fffc}.dark .markdown-it-code-title .code-scroll-top-button{background-color:#2d2d2dcc}.markdown-it-code-title .code-content{margin-top:-3px}.markdown-body ol,.markdown-body ul{list-style:revert}.markdown-body pre>::-webkit-scrollbar,.scrollbar::-webkit-scrollbar{width:5px;height:5px}.markdown-body pre>::-webkit-scrollbar-thumb,.scrollbar::-webkit-scrollbar-thumb{border-radius:5px;background-clip:padding-box;background-color:#a3a3a34d}.light .markdown-body pre code.hljs{display:block;overflow-x:auto;padding:1em}.light .markdown-body code.hljs{padding:3px 5px}.light .markdown-body .hljs{color:#24292e}.light .markdown-body .hljs-doctag,.light .markdown-body .hljs-keyword,.light .markdown-body .hljs-meta .hljs-keyword,.light .markdown-body .hljs-template-tag,.light .markdown-body .hljs-template-variable,.light .markdown-body .hljs-type,.light .markdown-body .hljs-variable.language_{color:#d73a49}.light .markdown-body .hljs-title,.light .markdown-body .hljs-title.class_,.light .markdown-body .hljs-title.class_.inherited__,.light .markdown-body .hljs-title.function_{color:#6f42c1}.light .markdown-body .hljs-attr,.light .markdown-body .hljs-attribute,.light .markdown-body .hljs-literal,.light .markdown-body .hljs-meta,.light .markdown-body .hljs-number,.light .markdown-body .hljs-operator,.light .markdown-body .hljs-variable,.light .markdown-body .hljs-selector-attr,.light .markdown-body .hljs-selector-class,.light .markdown-body .hljs-selector-id{color:#005cc5}.light .markdown-body .hljs-regexp,.light .markdown-body .hljs-string,.light .markdown-body .hljs-meta .hljs-string{color:#032f62}.light .markdown-body .hljs-built_in,.light .markdown-body .hljs-symbol{color:#e36209}.light .markdown-body .hljs-comment,.light .markdown-body .hljs-code,.light .markdown-body .hljs-formula{color:#6a737d}.light .markdown-body .hljs-name,.light .markdown-body .hljs-quote,.light .markdown-body .hljs-selector-tag,.light .markdown-body .hljs-selector-pseudo{color:#22863a}.light .markdown-body .hljs-subst{color:#24292e}.light .markdown-body .hljs-section{color:#005cc5;font-weight:700}.light .markdown-body .hljs-bullet{color:#735c0f}.light .markdown-body .hljs-emphasis{color:#24292e;font-style:italic}.light .markdown-body .hljs-strong{color:#24292e;font-weight:700}.light .markdown-body .hljs-addition{color:#22863a;background-color:#f0fff4}.light .markdown-body .hljs-deletion{color:#b31d28;background-color:#ffeef0}.dark .markdown-body pre code.hljs{display:block;overflow-x:auto;padding:1em}.dark .markdown-body code.hljs{padding:3px 5px}.dark .markdown-body .hljs{color:#c9d1d9}.dark .markdown-body .hljs-doctag,.dark .markdown-body .hljs-keyword,.dark .markdown-body .hljs-meta .hljs-keyword,.dark .markdown-body .hljs-template-tag,.dark .markdown-body .hljs-template-variable,.dark .markdown-body .hljs-type,.dark .markdown-body .hljs-variable.language_{color:#ff7b72}.dark .markdown-body .hljs-title,.dark .markdown-body .hljs-title.class_,.dark .markdown-body .hljs-title.class_.inherited__,.dark .markdown-body .hljs-title.function_{color:#d2a8ff}.dark .markdown-body .hljs-attr,.dark .markdown-body .hljs-attribute,.dark .markdown-body .hljs-literal,.dark .markdown-body .hljs-meta,.dark .markdown-body .hljs-number,.dark .markdown-body .hljs-operator,.dark .markdown-body .hljs-variable,.dark .markdown-body .hljs-selector-attr,.dark .markdown-body .hljs-selector-class,.dark .markdown-body .hljs-selector-id{color:#79c0ff}.dark .markdown-body .hljs-regexp,.dark .markdown-body .hljs-string,.dark .markdown-body .hljs-meta .hljs-string{color:#a5d6ff}.dark .markdown-body .hljs-built_in,.dark .markdown-body .hljs-symbol{color:#ffa657}.dark .markdown-body .hljs-comment,.dark .markdown-body .hljs-code,.dark .markdown-body .hljs-formula{color:#8b949e}.dark .markdown-body .hljs-name,.dark .markdown-body .hljs-quote,.dark .markdown-body .hljs-selector-tag,.dark .markdown-body .hljs-selector-pseudo{color:#7ee787}.dark .markdown-body .hljs-subst{color:#c9d1d9}.dark .markdown-body .hljs-section{color:#1f6feb;font-weight:700}.dark .markdown-body .hljs-bullet{color:#f2cc60}.dark .markdown-body .hljs-emphasis{color:#c9d1d9;font-style:italic}.dark .markdown-body .hljs-strong{color:#c9d1d9;font-weight:700}.dark .markdown-body .hljs-addition{color:#aff5b4;background-color:#033a16}.dark .markdown-body .hljs-deletion{color:#ffdcd7;background-color:#67060c}.list-card{height:100%}.list-card-operation{display:flex;justify-content:space-between;margin-bottom:var(--td-comp-margin-xxl)}.list-card-operation .search-input{width:360px}.list-card-item :deep(.t-card__header){padding:0}.list-card-item :deep(.t-card__body){padding:0;margin-top:var(--td-comp-margin-xxl);margin-bottom:var(--td-comp-margin-xxl)}.list-card-item :deep(.t-card__footer){padding:0}.list-card-pagination{padding:var(--td-comp-paddingTB-xl) var(--td-comp-paddingTB-xl)}.list-card-loading{height:100%;width:100%;display:flex;align-items:center;justify-content:center}.list-card-item{display:flex;flex-direction:column;cursor:pointer}.list-card-item_detail{min-height:140px}.list-card-item_detail--name{margin-bottom:var(--td-comp-margin-s);font:var(--td-font-title-medium);color:var(--td-text-color-primary)}.list-card-item_detail--desc{color:var(--td-text-color-secondary);font:var(--td-font-body-small);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.loader{width:100%;height:4.8px;display:inline-block;position:relative;background:var(--td-bg-color-page);overflow:hidden}.loader:after{content:"";width:96px;height:4.8px;background:var(--td-brand-color);position:absolute;top:0;left:0;box-sizing:border-box;animation:hitZak 1s linear infinite alternate}@keyframes hitZak{0%{left:0;transform:translate(-1%)}to{left:100%;transform:translate(-99%)}}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}
.output/public/assets/main-CtIofym4.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DTffGxJW.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-CxnaJx6o.js","./avatar.vue_vue_type_script_setup_true_lang-IaazOHzd.js","./@dicebear-JcnEMRoc.js","./ToolBar.vue_vue_type_style_index_0_lang-rb8l4k-M.js","./markdown-BnwBbO-S.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-BA9B6Zno.js","./highlight.js-BdwRhiJ6.js","./@wdns-xq6XApaP.js","./ua-parser-js--QiuJfYt.js","./ToolBar-D6vK1x-j.css","./lyihub-zLFv36Ly.js","./chat-DFdPOgte.css","./index-3SWAOWjS.js","./index-Bg5EKroP.css","./index-CEnBk6VQ.js","./index-DHLNART_.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-D7OtVVB-.js","./content-5lBKlZzT.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-DTffGxJW.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-CxnaJx6o.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-3SWAOWjS.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-DHLNART_.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-D7OtVVB-.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-5lBKlZzT.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-BnwBbO-S.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-BA9B6Zno.js";import{H as i}from"./highlight.js-BdwRhiJ6.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-BA9B6Zno.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{g as e}from"./@babel-ynFNPEB3.js";import{r as t}from"./highlight.js-BdwRhiJ6.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/mermaid-render-DYiT7KKL.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/pinia-gf2247cH.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{a as t,K as e,L as n,M as s,N as o,k as c,b as a,d as r,w as i,n as u,q as f,O as p,f as l,i as h,h as d}from"./@vue-CfxotJ-S.js";
2
+ /*!
3
+ * pinia v2.3.1
4
+ * (c) 2025 Eduardo San Martin Morote
5
+ * @license MIT
6
+ */let y;const b=t=>y=t,v=
7
+ /* istanbul ignore next */Symbol();function _(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var O,j;function $(){const e=n(!0),s=e.run((()=>t({})));let o=[],c=[];const a=p({install(t){b(a),a._a=t,t.provide(v,a),t.config.globalProperties.$pinia=a,c.forEach((t=>o.push(t))),c=[]},use(t){return this._a?o.push(t):c.push(t),this},_p:o,
8
+ // it's actually undefined here
9
+ // @ts-expect-error
10
+ _a:null,_e:e,_s:new Map,state:s});return a}(j=O||(O={})).direct="direct",j.patchObject="patch object",j.patchFunction="patch function";const m=()=>{};function g(t,e,n,s=m){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&a()&&r(o),o}function S(t,...e){t.slice().forEach((t=>{t(...e)}))}const P=t=>t(),w=Symbol(),E=Symbol();function M(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const c=e[n],a=t[n];_(a)&&_(c)&&t.hasOwnProperty(n)&&!s(c)&&!o(c)?t[n]=M(a,c):t[n]=c}return t}const x=
11
+ /* istanbul ignore next */Symbol();const{assign:I}=Object;function k(a,r,f={},p,l,h){let d;const y=I({actions:{}},f),v={deep:!0};let j,$,k,A=[],F=[];const N=p.state.value[a];let q;function C(t){let e;j=$=!1,"function"==typeof t?(t(p.state.value[a]),e={type:O.patchFunction,storeId:a,events:k}):(M(p.state.value[a],t),e={type:O.patchObject,payload:t,storeId:a,events:k});const n=q=Symbol();u().then((()=>{q===n&&(j=!0)})),$=!0,S(A,e,p.state.value[a])}h||N||(p.state.value[a]={}),t({});const J=h?function(){const{state:t}=f,e=t?t():{};this.$patch((t=>{I(t,e)}))}:
12
+ /* istanbul ignore next */m;const K=(t,e="")=>{if(w in t)return t[E]=e,t;const n=function(){b(p);const e=Array.from(arguments),s=[],o=[];let c;S(F,{args:e,name:n[E],store:W,after:function(t){s.push(t)},onError:function(t){o.push(t)}});try{c=t.apply(this&&this.$id===a?this:W,e)}catch(r){throw S(o,r),r}return c instanceof Promise?c.then((t=>(S(s,t),t))).catch((t=>(S(o,t),Promise.reject(t)))):(S(s,c),c)};return n[w]=!0,n[E]=e,n},L={_p:p,
13
+ // _s: scope,
14
+ $id:a,$onAction:g.bind(null,F),$patch:C,$reset:J,$subscribe(t,e={}){const n=g(A,t,e.detached,(()=>s())),s=d.run((()=>i((()=>p.state.value[a]),(n=>{("sync"===e.flush?$:j)&&t({storeId:a,type:O.direct,events:k},n)}),I({},v,e))));return n},$dispose:function(){d.stop(),A=[],F=[],p._s.delete(a)}},W=e(L);p._s.set(a,W);const z=(p._a&&p._a.runWithContext||P)((()=>p._e.run((()=>(d=n()).run((()=>r({action:K})))))));for(const t in z){const e=z[t];if(s(e)&&(!s(D=e)||!D.effect)||o(e))h||(!N||_(B=e)&&B.hasOwnProperty(x)||(s(e)?e.value=N[t]:M(e,N[t])),p.state.value[a][t]=e);else if("function"==typeof e){const n=K(e,t);z[t]=n,y.actions[t]=e}}var B,D;return I(W,z),I(c(W),z),Object.defineProperty(W,"$state",{get:()=>p.state.value[a],set:t=>{C((e=>{I(e,t)}))}}),p._p.forEach((t=>{I(W,d.run((()=>t({store:W,app:p._a,pinia:p,options:y}))))})),N&&h&&f.hydrate&&f.hydrate(W.$state,N),j=!0,$=!0,W}
15
+ /*! #__NO_SIDE_EFFECTS__ */
16
+ // @__NO_SIDE_EFFECTS__
17
+ function A(t,e,n){let s,o;const c="function"==typeof e;function a(t,n){const a=d();(t=// in test mode, ignore the argument provided as we can always retrieve a
18
+ // pinia instance with getActivePinia()
19
+ t||(a?h(v,null):null))&&b(t),(t=y)._s.has(s)||(c?k(s,e,o,t):function(t,e,n){const{state:s,actions:o,getters:c}=e,a=n.state.value[t];let r;r=k(t,(function(){a||(n.state.value[t]=s?s():{});const e=f(n.state.value[t]);return I(e,o,Object.keys(c||{}).reduce(((e,s)=>(e[s]=p(l((()=>{b(n);const e=n._s.get(t);return c[s].call(e,e)}))),e)),{}))}),e,n,0,!0)}(s,o,t));return t._s.get(s)}return"string"==typeof t?(s=t,o=c?n:e):(o=t,s=t.id),a.$id=s,a}export{$ as c,A as d};
.output/public/assets/popup-BMjsrYtk.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .popup-window[data-v-37d01730],.popup-container[data-v-37d01730],.light .popup-window[data-v-37d01730],.light .popup-container[data-v-37d01730]{background-color:#fff}.dark .popup-window[data-v-37d01730],.dark .popup-container[data-v-37d01730]{background-color:#0d1117}.input-field[data-v-37d01730]{border-color:#e5e7eb;background-color:#fff;color:#111827}.dark .input-field[data-v-37d01730]{border-color:#30363d;background-color:#161b22;color:#e5e7eb}.icon-color[data-v-37d01730]{color:#9ca3af}.tool-button[data-v-37d01730]{color:#111827}.dark .tool-button[data-v-37d01730]{color:#e5e7eb}.tool-button[data-v-37d01730]:hover{background-color:#f3f4f6}.dark .tool-button[data-v-37d01730]:hover{background-color:#161b22}.tool-button-selected[data-v-37d01730]{background-color:#f3f4f6}.dark .tool-button-selected[data-v-37d01730]{background-color:#161b22}.footer-text[data-v-37d01730]{border-color:#e5e7eb;color:#6b7280}.dark .footer-text[data-v-37d01730]{border-color:#30363d;color:#9ca3af}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-3{left:.75rem}.right-0{right:0}.right-1{right:.25rem}.right-\[-15px\]{right:-15px}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-\[-32px\]{top:-32px}.z-20{z-index:20}.z-50{z-index:50}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-\[var\(--td-comp-margin-xxl\)\]{margin-bottom:var(--td-comp-margin-xxl)}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-\[108px\]{height:108px}.h-\[24px\]{height:24px}.h-\[80px\]{height:80px}.h-\[calc\(100\%-10px\)\]{height:calc(100% - 10px)}.h-\[calc\(100vh-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-var\(--td-comp-size-xxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - var(--td-comp-size-xxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-var\(--td-comp-size-xxl\)-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - var(--td-comp-size-xxl) - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-56px-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - 56px - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-var\(--td-comp-size-xxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - var(--td-comp-size-xxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-var\(--td-comp-size-xxl\)-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - var(--td-comp-size-xxl) - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(100vh-var\(--td-comp-size-xxxl\)-2\*var\(--td-comp-paddingTB-m\)\)\]{height:calc(100vh - var(--td-comp-size-xxxl) - 2 * var(--td-comp-paddingTB-m))}.h-\[calc\(50\%-10px\)\]{height:calc(50% - 10px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-32{max-height:8rem}.max-h-44{max-height:11rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-72{max-height:18rem}.max-h-96{max-height:24rem}.min-h-32{min-height:8rem}.min-h-44{min-height:11rem}.w-1\/2{width:50%}.w-12{width:3rem}.w-32{width:8rem}.w-44{width:11rem}.w-60{width:15rem}.w-\[200px\]{width:200px}.w-\[24px\]{width:24px}.w-\[80px\]{width:80px}.w-\[calc\(100\%-24px-1rem\)\]{width:calc(100% - 24px - 1rem)}.w-full{width:100%}.min-w-44{min-width:11rem}.min-w-\[300px\]{min-width:300px}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[120px\]{max-width:120px}.max-w-\[160px\]{max-width:160px}.max-w-\[75\%\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.auto-cols-max{grid-auto-columns:max-content}.grid-flow-col{grid-auto-flow:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[10px\]{padding:10px}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-0{padding-bottom:0}.pl-10{padding-left:2.5rem}.pl-24{padding-left:6rem}.pr-16{padding-right:4rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-thumb{background:#9b9b9b80;border-radius:10px;-webkit-transition:background .2s ease;transition:background .2s ease}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#9b9b9bcc}.dark .markdown-body,[data-theme=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #e6edf3;--color-fg-muted: #848d97;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110,118,129,.4);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-subtle: rgba(187,128,9,.15);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-done-fg: #a371f7;--color-done-emphasis: #8957e5}.light .markdown-body,[data-theme=light]{color-scheme:light;--color-prettylights-syntax-comment: #57606a;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-neutral-muted: rgba(175,184,193,.2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-done-fg: #8250df;--color-done-emphasis: #8250df}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;-moz-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .mr-2{margin-right:var(--base-size-8, 8px)!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:var(--color-fg-default);background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:16px;color:inherit;border-left:.25em solid var(--color-border-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--color-accent-emphasis)}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-accent-fg)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--color-done-emphasis)}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-done-fg)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--color-attention-emphasis)}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-attention-fg)}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--color-success-emphasis)}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-success-fg)}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--color-danger-emphasis)}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-danger-fg)}@font-face{font-family:KaTeX_AMS;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(./KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.21"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;display:inline-block;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathsfit,.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:inline-flex;flex-direction:column;align-items:baseline}.katex .hbox{display:inline-flex;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline,.katex .hdashline,.katex .rule{min-height:1px}.katex .mspace{display:inline-block}.katex .llap,.katex .rlap,.katex .clap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner,.katex .clap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix,.katex .clap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner,.katex .clap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:solid 0;position:relative}.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .sizing.reset-size1.size1,.katex .fontsize-ensurer.reset-size1.size1{font-size:1em}.katex .sizing.reset-size1.size2,.katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em}.katex .sizing.reset-size1.size3,.katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em}.katex .sizing.reset-size1.size4,.katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em}.katex .sizing.reset-size1.size5,.katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em}.katex .sizing.reset-size1.size6,.katex .fontsize-ensurer.reset-size1.size6{font-size:2em}.katex .sizing.reset-size1.size7,.katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em}.katex .sizing.reset-size1.size8,.katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em}.katex .sizing.reset-size1.size9,.katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em}.katex .sizing.reset-size1.size10,.katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em}.katex .sizing.reset-size1.size11,.katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em}.katex .sizing.reset-size2.size1,.katex .fontsize-ensurer.reset-size2.size1{font-size:.8333333333em}.katex .sizing.reset-size2.size2,.katex .fontsize-ensurer.reset-size2.size2{font-size:1em}.katex .sizing.reset-size2.size3,.katex .fontsize-ensurer.reset-size2.size3{font-size:1.1666666667em}.katex .sizing.reset-size2.size4,.katex .fontsize-ensurer.reset-size2.size4{font-size:1.3333333333em}.katex .sizing.reset-size2.size5,.katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em}.katex .sizing.reset-size2.size6,.katex .fontsize-ensurer.reset-size2.size6{font-size:1.6666666667em}.katex .sizing.reset-size2.size7,.katex .fontsize-ensurer.reset-size2.size7{font-size:2em}.katex .sizing.reset-size2.size8,.katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em}.katex .sizing.reset-size2.size9,.katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em}.katex .sizing.reset-size2.size10,.katex .fontsize-ensurer.reset-size2.size10{font-size:3.4566666667em}.katex .sizing.reset-size2.size11,.katex .fontsize-ensurer.reset-size2.size11{font-size:4.1466666667em}.katex .sizing.reset-size3.size1,.katex .fontsize-ensurer.reset-size3.size1{font-size:.7142857143em}.katex .sizing.reset-size3.size2,.katex .fontsize-ensurer.reset-size3.size2{font-size:.8571428571em}.katex .sizing.reset-size3.size3,.katex .fontsize-ensurer.reset-size3.size3{font-size:1em}.katex .sizing.reset-size3.size4,.katex .fontsize-ensurer.reset-size3.size4{font-size:1.1428571429em}.katex .sizing.reset-size3.size5,.katex .fontsize-ensurer.reset-size3.size5{font-size:1.2857142857em}.katex .sizing.reset-size3.size6,.katex .fontsize-ensurer.reset-size3.size6{font-size:1.4285714286em}.katex .sizing.reset-size3.size7,.katex .fontsize-ensurer.reset-size3.size7{font-size:1.7142857143em}.katex .sizing.reset-size3.size8,.katex .fontsize-ensurer.reset-size3.size8{font-size:2.0571428571em}.katex .sizing.reset-size3.size9,.katex .fontsize-ensurer.reset-size3.size9{font-size:2.4685714286em}.katex .sizing.reset-size3.size10,.katex .fontsize-ensurer.reset-size3.size10{font-size:2.9628571429em}.katex .sizing.reset-size3.size11,.katex .fontsize-ensurer.reset-size3.size11{font-size:3.5542857143em}.katex .sizing.reset-size4.size1,.katex .fontsize-ensurer.reset-size4.size1{font-size:.625em}.katex .sizing.reset-size4.size2,.katex .fontsize-ensurer.reset-size4.size2{font-size:.75em}.katex .sizing.reset-size4.size3,.katex .fontsize-ensurer.reset-size4.size3{font-size:.875em}.katex .sizing.reset-size4.size4,.katex .fontsize-ensurer.reset-size4.size4{font-size:1em}.katex .sizing.reset-size4.size5,.katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em}.katex .sizing.reset-size4.size6,.katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em}.katex .sizing.reset-size4.size7,.katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em}.katex .sizing.reset-size4.size8,.katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em}.katex .sizing.reset-size4.size9,.katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em}.katex .sizing.reset-size4.size10,.katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em}.katex .sizing.reset-size4.size11,.katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em}.katex .sizing.reset-size5.size1,.katex .fontsize-ensurer.reset-size5.size1{font-size:.5555555556em}.katex .sizing.reset-size5.size2,.katex .fontsize-ensurer.reset-size5.size2{font-size:.6666666667em}.katex .sizing.reset-size5.size3,.katex .fontsize-ensurer.reset-size5.size3{font-size:.7777777778em}.katex .sizing.reset-size5.size4,.katex .fontsize-ensurer.reset-size5.size4{font-size:.8888888889em}.katex .sizing.reset-size5.size5,.katex .fontsize-ensurer.reset-size5.size5{font-size:1em}.katex .sizing.reset-size5.size6,.katex .fontsize-ensurer.reset-size5.size6{font-size:1.1111111111em}.katex .sizing.reset-size5.size7,.katex .fontsize-ensurer.reset-size5.size7{font-size:1.3333333333em}.katex .sizing.reset-size5.size8,.katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em}.katex .sizing.reset-size5.size9,.katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em}.katex .sizing.reset-size5.size10,.katex .fontsize-ensurer.reset-size5.size10{font-size:2.3044444444em}.katex .sizing.reset-size5.size11,.katex .fontsize-ensurer.reset-size5.size11{font-size:2.7644444444em}.katex .sizing.reset-size6.size1,.katex .fontsize-ensurer.reset-size6.size1{font-size:.5em}.katex .sizing.reset-size6.size2,.katex .fontsize-ensurer.reset-size6.size2{font-size:.6em}.katex .sizing.reset-size6.size3,.katex .fontsize-ensurer.reset-size6.size3{font-size:.7em}.katex .sizing.reset-size6.size4,.katex .fontsize-ensurer.reset-size6.size4{font-size:.8em}.katex .sizing.reset-size6.size5,.katex .fontsize-ensurer.reset-size6.size5{font-size:.9em}.katex .sizing.reset-size6.size6,.katex .fontsize-ensurer.reset-size6.size6{font-size:1em}.katex .sizing.reset-size6.size7,.katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em}.katex .sizing.reset-size6.size8,.katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em}.katex .sizing.reset-size6.size9,.katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em}.katex .sizing.reset-size6.size10,.katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em}.katex .sizing.reset-size6.size11,.katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em}.katex .sizing.reset-size7.size1,.katex .fontsize-ensurer.reset-size7.size1{font-size:.4166666667em}.katex .sizing.reset-size7.size2,.katex .fontsize-ensurer.reset-size7.size2{font-size:.5em}.katex .sizing.reset-size7.size3,.katex .fontsize-ensurer.reset-size7.size3{font-size:.5833333333em}.katex .sizing.reset-size7.size4,.katex .fontsize-ensurer.reset-size7.size4{font-size:.6666666667em}.katex .sizing.reset-size7.size5,.katex .fontsize-ensurer.reset-size7.size5{font-size:.75em}.katex .sizing.reset-size7.size6,.katex .fontsize-ensurer.reset-size7.size6{font-size:.8333333333em}.katex .sizing.reset-size7.size7,.katex .fontsize-ensurer.reset-size7.size7{font-size:1em}.katex .sizing.reset-size7.size8,.katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em}.katex .sizing.reset-size7.size9,.katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em}.katex .sizing.reset-size7.size10,.katex .fontsize-ensurer.reset-size7.size10{font-size:1.7283333333em}.katex .sizing.reset-size7.size11,.katex .fontsize-ensurer.reset-size7.size11{font-size:2.0733333333em}.katex .sizing.reset-size8.size1,.katex .fontsize-ensurer.reset-size8.size1{font-size:.3472222222em}.katex .sizing.reset-size8.size2,.katex .fontsize-ensurer.reset-size8.size2{font-size:.4166666667em}.katex .sizing.reset-size8.size3,.katex .fontsize-ensurer.reset-size8.size3{font-size:.4861111111em}.katex .sizing.reset-size8.size4,.katex .fontsize-ensurer.reset-size8.size4{font-size:.5555555556em}.katex .sizing.reset-size8.size5,.katex .fontsize-ensurer.reset-size8.size5{font-size:.625em}.katex .sizing.reset-size8.size6,.katex .fontsize-ensurer.reset-size8.size6{font-size:.6944444444em}.katex .sizing.reset-size8.size7,.katex .fontsize-ensurer.reset-size8.size7{font-size:.8333333333em}.katex .sizing.reset-size8.size8,.katex .fontsize-ensurer.reset-size8.size8{font-size:1em}.katex .sizing.reset-size8.size9,.katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em}.katex .sizing.reset-size8.size10,.katex .fontsize-ensurer.reset-size8.size10{font-size:1.4402777778em}.katex .sizing.reset-size8.size11,.katex .fontsize-ensurer.reset-size8.size11{font-size:1.7277777778em}.katex .sizing.reset-size9.size1,.katex .fontsize-ensurer.reset-size9.size1{font-size:.2893518519em}.katex .sizing.reset-size9.size2,.katex .fontsize-ensurer.reset-size9.size2{font-size:.3472222222em}.katex .sizing.reset-size9.size3,.katex .fontsize-ensurer.reset-size9.size3{font-size:.4050925926em}.katex .sizing.reset-size9.size4,.katex .fontsize-ensurer.reset-size9.size4{font-size:.462962963em}.katex .sizing.reset-size9.size5,.katex .fontsize-ensurer.reset-size9.size5{font-size:.5208333333em}.katex .sizing.reset-size9.size6,.katex .fontsize-ensurer.reset-size9.size6{font-size:.5787037037em}.katex .sizing.reset-size9.size7,.katex .fontsize-ensurer.reset-size9.size7{font-size:.6944444444em}.katex .sizing.reset-size9.size8,.katex .fontsize-ensurer.reset-size9.size8{font-size:.8333333333em}.katex .sizing.reset-size9.size9,.katex .fontsize-ensurer.reset-size9.size9{font-size:1em}.katex .sizing.reset-size9.size10,.katex .fontsize-ensurer.reset-size9.size10{font-size:1.2002314815em}.katex .sizing.reset-size9.size11,.katex .fontsize-ensurer.reset-size9.size11{font-size:1.4398148148em}.katex .sizing.reset-size10.size1,.katex .fontsize-ensurer.reset-size10.size1{font-size:.2410800386em}.katex .sizing.reset-size10.size2,.katex .fontsize-ensurer.reset-size10.size2{font-size:.2892960463em}.katex .sizing.reset-size10.size3,.katex .fontsize-ensurer.reset-size10.size3{font-size:.337512054em}.katex .sizing.reset-size10.size4,.katex .fontsize-ensurer.reset-size10.size4{font-size:.3857280617em}.katex .sizing.reset-size10.size5,.katex .fontsize-ensurer.reset-size10.size5{font-size:.4339440694em}.katex .sizing.reset-size10.size6,.katex .fontsize-ensurer.reset-size10.size6{font-size:.4821600771em}.katex .sizing.reset-size10.size7,.katex .fontsize-ensurer.reset-size10.size7{font-size:.5785920926em}.katex .sizing.reset-size10.size8,.katex .fontsize-ensurer.reset-size10.size8{font-size:.6943105111em}.katex .sizing.reset-size10.size9,.katex .fontsize-ensurer.reset-size10.size9{font-size:.8331726133em}.katex .sizing.reset-size10.size10,.katex .fontsize-ensurer.reset-size10.size10{font-size:1em}.katex .sizing.reset-size10.size11,.katex .fontsize-ensurer.reset-size10.size11{font-size:1.1996142719em}.katex .sizing.reset-size11.size1,.katex .fontsize-ensurer.reset-size11.size1{font-size:.2009646302em}.katex .sizing.reset-size11.size2,.katex .fontsize-ensurer.reset-size11.size2{font-size:.2411575563em}.katex .sizing.reset-size11.size3,.katex .fontsize-ensurer.reset-size11.size3{font-size:.2813504823em}.katex .sizing.reset-size11.size4,.katex .fontsize-ensurer.reset-size11.size4{font-size:.3215434084em}.katex .sizing.reset-size11.size5,.katex .fontsize-ensurer.reset-size11.size5{font-size:.3617363344em}.katex .sizing.reset-size11.size6,.katex .fontsize-ensurer.reset-size11.size6{font-size:.4019292605em}.katex .sizing.reset-size11.size7,.katex .fontsize-ensurer.reset-size11.size7{font-size:.4823151125em}.katex .sizing.reset-size11.size8,.katex .fontsize-ensurer.reset-size11.size8{font-size:.578778135em}.katex .sizing.reset-size11.size9,.katex .fontsize-ensurer.reset-size11.size9{font-size:.6945337621em}.katex .sizing.reset-size11.size10,.katex .fontsize-ensurer.reset-size11.size10{font-size:.8336012862em}.katex .sizing.reset-size11.size11,.katex .fontsize-ensurer.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:before,.katex .stretchy:after{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .x-arrow,.katex .mover,.katex .munder{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}:root[theme-mode=dark]{--td-component-border: #30363d;--td-bg-color-container: #010409;--td-bg-color-page: #202731}body{color:var(--td-text-color-secondary);font:var(--td-font-body-medium);font-family:-apple-system,BlinkMacSystemFont,var(--td-font-family);-webkit-font-smoothing:antialiased;padding:0;margin:0}.bg-color-page{background:var(--td-bg-color-page)}.bg-color-container{background-color:var(--td-bg-color-container)}.brand-color{background-color:var(--td-brand-color)}.brand-color-light{background-color:var(--td-brand-color-light)}.bg-color-container-active{background-color:var(--td-bg-color-container-active)}.bg-color-specialcomponent{background-color:var(--td-bg-color-specialcomponent)}.bordered{border:1px solid var(--td-component-border)}.bordered-bottom{border-bottom:1px solid var(--td-component-border)}.text-color-primary{color:var(--td-text-color-primary)}.text-color-secondary{color:var(--td-text-color-secondary)}.text-color-anti{color:var(--td-text-color-anti)}.t-layout__sider{width:-moz-fit-content;width:fit-content}.tdesign-starter-sidebar-layout{height:100%}.tdesign-starter-content-layout{padding:var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-m)}.tdesign-starter-footer-layout{padding:0;margin-bottom:var(--td-comp-margin-xxl)}.light .tdesign-starter-content-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #e0e7ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 231 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark .tdesign-starter-content-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1e293b var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #334155 var(--tw-gradient-to-position)}.light .tdesign-starter-sidebar-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #c7d2fe var(--tw-gradient-from-position);--tw-gradient-to: rgb(199 210 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #eef2ff var(--tw-gradient-to-position)}.dark .tdesign-starter-sidebar-layout{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.light .chat-model-header{--tw-shadow-color: #e2e8f0;--tw-shadow: var(--tw-shadow-colored)}.dark .chat-model-header{--tw-shadow-color: #334155;--tw-shadow: var(--tw-shadow-colored)}.light .user-chat-content{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: rgb(224 231 255 / .8) var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 231 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #eef2ff var(--tw-gradient-to-position)}.dark .user-chat-content{background-color:var(--td-bg-color-page)}.light .markdown-it-code-title .code-header-bg{background-color:#f5f5f5}.dark .markdown-it-code-title .code-header-bg{background-color:#2d2d2d}.light .markdown-it-code-title .code-scroll-top-button{background-color:#fffc}.dark .markdown-it-code-title .code-scroll-top-button{background-color:#2d2d2dcc}.markdown-it-code-title .code-content{margin-top:-3px}.markdown-body ol,.markdown-body ul{list-style:revert}.markdown-body pre>::-webkit-scrollbar,.scrollbar::-webkit-scrollbar{width:5px;height:5px}.markdown-body pre>::-webkit-scrollbar-thumb,.scrollbar::-webkit-scrollbar-thumb{border-radius:5px;background-clip:padding-box;background-color:#a3a3a34d}.light .markdown-body pre code.hljs{display:block;overflow-x:auto;padding:1em}.light .markdown-body code.hljs{padding:3px 5px}.light .markdown-body .hljs{color:#24292e}.light .markdown-body .hljs-doctag,.light .markdown-body .hljs-keyword,.light .markdown-body .hljs-meta .hljs-keyword,.light .markdown-body .hljs-template-tag,.light .markdown-body .hljs-template-variable,.light .markdown-body .hljs-type,.light .markdown-body .hljs-variable.language_{color:#d73a49}.light .markdown-body .hljs-title,.light .markdown-body .hljs-title.class_,.light .markdown-body .hljs-title.class_.inherited__,.light .markdown-body .hljs-title.function_{color:#6f42c1}.light .markdown-body .hljs-attr,.light .markdown-body .hljs-attribute,.light .markdown-body .hljs-literal,.light .markdown-body .hljs-meta,.light .markdown-body .hljs-number,.light .markdown-body .hljs-operator,.light .markdown-body .hljs-variable,.light .markdown-body .hljs-selector-attr,.light .markdown-body .hljs-selector-class,.light .markdown-body .hljs-selector-id{color:#005cc5}.light .markdown-body .hljs-regexp,.light .markdown-body .hljs-string,.light .markdown-body .hljs-meta .hljs-string{color:#032f62}.light .markdown-body .hljs-built_in,.light .markdown-body .hljs-symbol{color:#e36209}.light .markdown-body .hljs-comment,.light .markdown-body .hljs-code,.light .markdown-body .hljs-formula{color:#6a737d}.light .markdown-body .hljs-name,.light .markdown-body .hljs-quote,.light .markdown-body .hljs-selector-tag,.light .markdown-body .hljs-selector-pseudo{color:#22863a}.light .markdown-body .hljs-subst{color:#24292e}.light .markdown-body .hljs-section{color:#005cc5;font-weight:700}.light .markdown-body .hljs-bullet{color:#735c0f}.light .markdown-body .hljs-emphasis{color:#24292e;font-style:italic}.light .markdown-body .hljs-strong{color:#24292e;font-weight:700}.light .markdown-body .hljs-addition{color:#22863a;background-color:#f0fff4}.light .markdown-body .hljs-deletion{color:#b31d28;background-color:#ffeef0}.dark .markdown-body pre code.hljs{display:block;overflow-x:auto;padding:1em}.dark .markdown-body code.hljs{padding:3px 5px}.dark .markdown-body .hljs{color:#c9d1d9}.dark .markdown-body .hljs-doctag,.dark .markdown-body .hljs-keyword,.dark .markdown-body .hljs-meta .hljs-keyword,.dark .markdown-body .hljs-template-tag,.dark .markdown-body .hljs-template-variable,.dark .markdown-body .hljs-type,.dark .markdown-body .hljs-variable.language_{color:#ff7b72}.dark .markdown-body .hljs-title,.dark .markdown-body .hljs-title.class_,.dark .markdown-body .hljs-title.class_.inherited__,.dark .markdown-body .hljs-title.function_{color:#d2a8ff}.dark .markdown-body .hljs-attr,.dark .markdown-body .hljs-attribute,.dark .markdown-body .hljs-literal,.dark .markdown-body .hljs-meta,.dark .markdown-body .hljs-number,.dark .markdown-body .hljs-operator,.dark .markdown-body .hljs-variable,.dark .markdown-body .hljs-selector-attr,.dark .markdown-body .hljs-selector-class,.dark .markdown-body .hljs-selector-id{color:#79c0ff}.dark .markdown-body .hljs-regexp,.dark .markdown-body .hljs-string,.dark .markdown-body .hljs-meta .hljs-string{color:#a5d6ff}.dark .markdown-body .hljs-built_in,.dark .markdown-body .hljs-symbol{color:#ffa657}.dark .markdown-body .hljs-comment,.dark .markdown-body .hljs-code,.dark .markdown-body .hljs-formula{color:#8b949e}.dark .markdown-body .hljs-name,.dark .markdown-body .hljs-quote,.dark .markdown-body .hljs-selector-tag,.dark .markdown-body .hljs-selector-pseudo{color:#7ee787}.dark .markdown-body .hljs-subst{color:#c9d1d9}.dark .markdown-body .hljs-section{color:#1f6feb;font-weight:700}.dark .markdown-body .hljs-bullet{color:#f2cc60}.dark .markdown-body .hljs-emphasis{color:#c9d1d9;font-style:italic}.dark .markdown-body .hljs-strong{color:#c9d1d9;font-weight:700}.dark .markdown-body .hljs-addition{color:#aff5b4;background-color:#033a16}.dark .markdown-body .hljs-deletion{color:#ffdcd7;background-color:#67060c}.list-card{height:100%}.list-card-operation{display:flex;justify-content:space-between;margin-bottom:var(--td-comp-margin-xxl)}.list-card-operation .search-input{width:360px}.list-card-item :deep(.t-card__header){padding:0}.list-card-item :deep(.t-card__body){padding:0;margin-top:var(--td-comp-margin-xxl);margin-bottom:var(--td-comp-margin-xxl)}.list-card-item :deep(.t-card__footer){padding:0}.list-card-pagination{padding:var(--td-comp-paddingTB-xl) var(--td-comp-paddingTB-xl)}.list-card-loading{height:100%;width:100%;display:flex;align-items:center;justify-content:center}.list-card-item{display:flex;flex-direction:column;cursor:pointer}.list-card-item_detail{min-height:140px}.list-card-item_detail--name{margin-bottom:var(--td-comp-margin-s);font:var(--td-font-title-medium);color:var(--td-text-color-primary)}.list-card-item_detail--desc{color:var(--td-text-color-secondary);font:var(--td-font-body-small);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.loader{width:100%;height:4.8px;display:inline-block;position:relative;background:var(--td-bg-color-page);overflow:hidden}.loader:after{content:"";width:96px;height:4.8px;background:var(--td-brand-color);position:absolute;top:0;left:0;box-sizing:border-box;animation:hitZak 1s linear infinite alternate}@keyframes hitZak{0%{left:0;transform:translate(-1%)}to{left:100%;transform:translate(-99%)}}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}
.output/public/assets/popup-BwMcPd7w.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-BnwBbO-S.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-BA9B6Zno.js";import"./highlight.js-BdwRhiJ6.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/tdesign-icons-vue-next-Bre5yOVt.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/tdesign-vue-next-BiEwLJDx.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/vue-BIpqWpgL.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{a5 as e,a6 as t,a7 as n}from"./@vue-CfxotJ-S.js";var r,o,c={exports:{}},i={};function s(){return o||(o=1,c.exports=(r||(r=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var o=n,c=e,i=t;function s(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var u=s(c);const a=Object.create(null);function f(e,t){if(!i.isString(e)){if(!e.nodeType)return i.NOOP;e=e.innerHTML}const n=i.genCacheKey(e,t),r=a[n];if(r)return r;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},t);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:s}=o.compile(e,c),f=new Function("Vue",s)(u);return f._rc=!0,a[n]=f}c.registerRuntimeCompiler(f),r.compile=f,Object.keys(c).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(r,e)||(r[e]=c[e])}))}(i)),i)),c.exports}export{s as r};
.output/public/assets/vue-i18n-BLIfPQxk.js ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{i as e,m as t,a,b as n,D as l,c as s,d as r,e as o,u as i,f as c,g as _,h as u,j as m,k as f,l as g,n as p,o as b,p as d,q as v,r as E,s as L,t as k,N as I,v as h,w as F,C as R,x as T,y,M as N,z as O,A as P,B as M,E as W,F as D,G as $,H as U,I as S,J as C,K as A,L as w,O as H,P as x,Q as V,R as j,S as Y}from"./@intlify-eboPrqDD.js";import{L as G,a as X,s as B,f as z,w as J,M as q,l as Q,P as K,F as Z,g as ee,i as te,o as ae,V as ne,R as le,$ as se}from"./@vue-CfxotJ-S.js";
2
+ /*!
3
+ * vue-i18n v11.1.2
4
+ * (c) 2025 kazuya kawaguchi
5
+ * Released under the MIT License.
6
+ */const re={
7
+ // composer module errors
8
+ UNEXPECTED_RETURN_TYPE:R,
9
+ // 24
10
+ // legacy module errors
11
+ INVALID_ARGUMENT:25,
12
+ // i18n module errors
13
+ MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,
14
+ // directive module errors
15
+ REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,
16
+ // unexpected error
17
+ UNEXPECTED_ERROR:32};function oe(e,...t){return _(e,null,void 0)}const ie=t("__translateVNode"),ce=t("__datetimeParts"),_e=t("__numberParts"),ue=t("__setPluralRules"),me=t("__injectWithOption"),fe=t("__dispose");function ge(e){if(!b(e))return e;for(const t in e)if(g(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e,s=!1;for(let e=0;e<n;e++){if("__proto__"===a[e])throw new Error(`unsafe key: ${a[e]}`);if(a[e]in l||(l[a[e]]=m()),!b(l[a[e]])){s=!0;break}l=l[a[e]]}s||(l[a[n]]=e[t],delete e[t]),b(l[a[n]])&&ge(l[a[n]])}else b(e[t])&&ge(e[t]);return e}function pe(e,t){const{messages:l,__i18n:r,messageResolver:o,flatJson:i}=t,c=a(l)?l:s(r)?m():{[e]:m()};if(s(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(c[t]=c[t]||m(),f(a,c[t])):f(a,c)}else n(e)&&f(JSON.parse(e),c)})),null==o&&i)for(const a in c)g(c,a)&&ge(c[a]);return c}function be(e){return e.type}function de(e,t,a){let n=b(t.messages)?t.messages:m();"__i18nGlobal"in a&&(n=pe(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),b(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(b(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function ve(e){return le(se,null,e,0)}const Ee="__INTLIFY_META__",Le=()=>[],ke=()=>!1;let Ie=0;function he(e){return(t,a,n,l)=>e(a,n,ee()||void 0,l)}const Fe=/* @__NO_SIDE_EFFECTS__ */()=>{const e=ee();let t=null;return e&&(t=be(e)[Ee])?{[Ee]:t}:null};function Re(t={}){const{__root:_,__injectWithOption:m}=t,R=void 0===_,U=t.flatJson,S=c?X:B;let C=!e(t.inheritLocale)||t.inheritLocale;const A=S(
18
+ // prettier-ignore
19
+ _&&C?_.locale.value:n(t.locale)?t.locale:l),w=S(
20
+ // prettier-ignore
21
+ _&&C?_.fallbackLocale.value:n(t.fallbackLocale)||s(t.fallbackLocale)||a(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:A.value),H=S(pe(A.value,t)),x=S(a(t.datetimeFormats)?t.datetimeFormats:{[A.value]:{}}),V=S(a(t.numberFormats)?t.numberFormats:{[A.value]:{}});let j=_?_.missingWarn:!e(t.missingWarn)&&!r(t.missingWarn)||t.missingWarn,Y=_?_.fallbackWarn:!e(t.fallbackWarn)&&!r(t.fallbackWarn)||t.fallbackWarn,G=_?_.fallbackRoot:!e(t.fallbackRoot)||t.fallbackRoot,q=!!t.fallbackFormat,Q=o(t.missing)?t.missing:null,K=o(t.missing)?he(t.missing):null,Z=o(t.postTranslation)?t.postTranslation:null,ee=_?_.warnHtmlMessage:!e(t.warnHtmlMessage)||t.warnHtmlMessage,te=!!t.escapeParameter;const ae=_?_.modifiers:a(t.modifiers)?t.modifiers:{};let ne,le=t.pluralRules||_&&_.pluralRules;ne=(()=>{R&&F(null);const e={version:"11.1.2",locale:A.value,fallbackLocale:w.value,messages:H.value,modifiers:ae,pluralRules:le,missing:null===K?void 0:K,missingWarn:j,fallbackWarn:Y,fallbackFormat:q,unresolving:!0,postTranslation:null===Z?void 0:Z,warnHtmlMessage:ee,escapeParameter:te,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};e.datetimeFormats=x.value,e.numberFormats=V.value,e.__datetimeFormatters=a(ne)?ne.__datetimeFormatters:void 0,e.__numberFormatters=a(ne)?ne.__numberFormatters:void 0;const n=p(e);return R&&F(n),n})(),i(ne,A.value,w.value);const se=z({get:()=>A.value,set:e=>{ne.locale=e,A.value=e}}),fe=z({get:()=>w.value,set:e=>{ne.fallbackLocale=e,w.value=e,i(ne,A.value,e)}}),be=z((()=>H.value)),de=z((()=>x.value)),Ee=z((()=>V.value));const Re=(e,t,a,n,l,s)=>{let r;A.value,w.value,H.value,x.value,V.value;try{__INTLIFY_PROD_DEVTOOLS__&&L(Fe()),R||(ne.fallbackContext=_?k():void 0),r=e(ne)}finally{__INTLIFY_PROD_DEVTOOLS__,R||(ne.fallbackContext=void 0)}if("translate exists"!==a&&// for not `te` (e.g `t`)
22
+ E(r)&&r===I||"translate exists"===a&&!r){const[e,a]=t();return _&&G?n(_):l(e)}if(s(r))return r;throw oe(re.UNEXPECTED_RETURN_TYPE)};function Te(...e){return Re((t=>Reflect.apply(y,null,[t,...e])),(()=>T(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>n(e)))}const ye={normalize:function(t){return t.map((t=>n(t)||E(t)||e(t)?ve(String(t)):t))},interpolate:e=>e,type:"vnode"};function Ne(e){return H.value[e]||{}}Ie++,_&&c&&(J(_.locale,(e=>{C&&(A.value=e,ne.locale=e,i(ne,A.value,w.value))})),J(_.fallbackLocale,(e=>{C&&(w.value=e,ne.fallbackLocale=e,i(ne,A.value,w.value))})));const Oe={id:Ie,locale:se,fallbackLocale:fe,get inheritLocale(){return C},set inheritLocale(e){C=e,e&&_&&(A.value=_.locale.value,w.value=_.fallbackLocale.value,i(ne,A.value,w.value))},get availableLocales(){return Object.keys(H.value).sort()},messages:be,get modifiers(){return ae},get pluralRules(){return le||{}},get isGlobal(){return R},get missingWarn(){return j},set missingWarn(e){j=e,ne.missingWarn=j},get fallbackWarn(){return Y},set fallbackWarn(e){Y=e,ne.fallbackWarn=Y},get fallbackRoot(){return G},set fallbackRoot(e){G=e},get fallbackFormat(){return q},set fallbackFormat(e){q=e,ne.fallbackFormat=q},get warnHtmlMessage(){return ee},set warnHtmlMessage(e){ee=e,ne.warnHtmlMessage=e},get escapeParameter(){return te},set escapeParameter(e){te=e,ne.escapeParameter=e},t:Te,getLocaleMessage:Ne,setLocaleMessage:function(e,t){if(U){const a={[e]:t};for(const e in a)g(a,e)&&ge(a[e]);t=a[e]}H.value[e]=t,ne.messages=H.value},mergeLocaleMessage:function(e,t){H.value[e]=H.value[e]||{};const a={[e]:t};if(U)for(const n in a)g(a,n)&&ge(a[n]);f(t=a[e],H.value[e]),ne.messages=H.value},getPostTranslationHandler:function(){return o(Z)?Z:null},setPostTranslationHandler:function(e){Z=e,ne.postTranslation=e},getMissingHandler:function(){return Q},setMissingHandler:function(e){null!==e&&(K=he(e)),Q=e,ne.missing=K},[ue]:function(e){le=e,ne.pluralRules=le}};return Oe.datetimeFormats=de,Oe.numberFormats=Ee,Oe.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw oe(re.INVALID_ARGUMENT);return Te(t,a,u({resolvedMessage:!0},n||{}))},Oe.te=function(t,a){return Re((()=>{if(!t)return!1;const e=Ne(n(a)?a:A.value),l=ne.messageResolver(e,t);return D(l)||$(l)||n(l)}),(()=>[t]),"translate exists",(e=>Reflect.apply(e.te,e,[t,a])),ke,(t=>e(t)))},Oe.tm=function(e){const t=function(e){let t=null;const a=h(ne,w.value,A.value);for(let n=0;n<a.length;n++){const l=H.value[a[n]]||{},s=ne.messageResolver(l,e);if(null!=s){t=s;break}}return t}(e);return null!=t?t:_&&_.tm(e)||{}},Oe.d=function(...e){return Re((t=>Reflect.apply(P,null,[t,...e])),(()=>O(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>N),(e=>n(e)))},Oe.n=function(...e){return Re((t=>Reflect.apply(W,null,[t,...e])),(()=>M(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>N),(e=>n(e)))},Oe.getDateTimeFormat=function(e){return x.value[e]||{}},Oe.setDateTimeFormat=function(e,t){x.value[e]=t,ne.datetimeFormats=x.value,d(ne,e,t)},Oe.mergeDateTimeFormat=function(e,t){x.value[e]=u(x.value[e]||{},t),ne.datetimeFormats=x.value,d(ne,e,t)},Oe.getNumberFormat=function(e){return V.value[e]||{}},Oe.setNumberFormat=function(e,t){V.value[e]=t,ne.numberFormats=V.value,v(ne,e,t)},Oe.mergeNumberFormat=function(e,t){V.value[e]=u(V.value[e]||{},t),ne.numberFormats=V.value,v(ne,e,t)},Oe[me]=m,Oe[ie]=function(...e){return Re((t=>{let a;const n=t;try{n.processor=ye,a=Reflect.apply(y,null,[n,...e])}finally{n.processor=null}return a}),(()=>T(...e)),"translate",(t=>t[ie](...e)),(e=>[ve(e)]),(e=>s(e)))},Oe[ce]=function(...e){return Re((t=>Reflect.apply(P,null,[t,...e])),(()=>O(...e)),"datetime format",(t=>t[ce](...e)),Le,(e=>n(e)||s(e)))},Oe[_e]=function(...e){return Re((t=>Reflect.apply(W,null,[t,...e])),(()=>M(...e)),"number format",(t=>t[_e](...e)),Le,(e=>n(e)||s(e)))},Oe}function Te(t={}){const i=Re(function(t){const i=n(t.locale)?t.locale:l,c=n(t.fallbackLocale)||s(t.fallbackLocale)||a(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i,_=o(t.missing)?t.missing:void 0,m=!e(t.silentTranslationWarn)&&!r(t.silentTranslationWarn)||!t.silentTranslationWarn,f=!e(t.silentFallbackWarn)&&!r(t.silentFallbackWarn)||!t.silentFallbackWarn,g=!e(t.fallbackRoot)||t.fallbackRoot,p=!!t.formatFallbackMessages,b=a(t.modifiers)?t.modifiers:{},d=t.pluralizationRules,v=o(t.postTranslation)?t.postTranslation:void 0,E=!n(t.warnHtmlInMessage)||"off"!==t.warnHtmlInMessage,L=!!t.escapeParameterHtml,k=!e(t.sync)||t.sync;let I=t.messages;if(a(t.sharedMessages)){const e=t.sharedMessages;I=Object.keys(e).reduce(((t,a)=>{const n=t[a]||(t[a]={});return u(n,e[a]),t}),I||{})}const{__i18n:h,__root:F,__injectWithOption:R}=t,T=t.datetimeFormats,y=t.numberFormats;return{locale:i,fallbackLocale:c,messages:I,flatJson:t.flatJson,datetimeFormats:T,numberFormats:y,missing:_,missingWarn:m,fallbackWarn:f,fallbackRoot:g,fallbackFormat:p,modifiers:b,pluralRules:d,postTranslation:v,warnHtmlMessage:E,escapeParameter:L,messageResolver:t.messageResolver,inheritLocale:k,__i18n:h,__root:F,__injectWithOption:R}}(t)),{__extender:c}=t,_={
23
+ // id
24
+ id:i.id,
25
+ // locale
26
+ get locale(){return i.locale.value},set locale(e){i.locale.value=e},
27
+ // fallbackLocale
28
+ get fallbackLocale(){return i.fallbackLocale.value},set fallbackLocale(e){i.fallbackLocale.value=e},
29
+ // messages
30
+ get messages(){return i.messages.value},
31
+ // datetimeFormats
32
+ get datetimeFormats(){return i.datetimeFormats.value},
33
+ // numberFormats
34
+ get numberFormats(){return i.numberFormats.value},
35
+ // availableLocales
36
+ get availableLocales(){return i.availableLocales},
37
+ // missing
38
+ get missing(){return i.getMissingHandler()},set missing(e){i.setMissingHandler(e)},
39
+ // silentTranslationWarn
40
+ get silentTranslationWarn(){return e(i.missingWarn)?!i.missingWarn:i.missingWarn},set silentTranslationWarn(t){i.missingWarn=e(t)?!t:t},
41
+ // silentFallbackWarn
42
+ get silentFallbackWarn(){return e(i.fallbackWarn)?!i.fallbackWarn:i.fallbackWarn},set silentFallbackWarn(t){i.fallbackWarn=e(t)?!t:t},
43
+ // modifiers
44
+ get modifiers(){return i.modifiers},
45
+ // formatFallbackMessages
46
+ get formatFallbackMessages(){return i.fallbackFormat},set formatFallbackMessages(e){i.fallbackFormat=e},
47
+ // postTranslation
48
+ get postTranslation(){return i.getPostTranslationHandler()},set postTranslation(e){i.setPostTranslationHandler(e)},
49
+ // sync
50
+ get sync(){return i.inheritLocale},set sync(e){i.inheritLocale=e},
51
+ // warnInHtmlMessage
52
+ get warnHtmlInMessage(){return i.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){i.warnHtmlMessage="off"!==e},
53
+ // escapeParameterHtml
54
+ get escapeParameterHtml(){return i.escapeParameter},set escapeParameterHtml(e){i.escapeParameter=e},
55
+ // pluralizationRules
56
+ get pluralizationRules(){return i.pluralRules||{}},
57
+ // for internal
58
+ __composer:i,
59
+ // t
60
+ t:(...e)=>Reflect.apply(i.t,i,[...e]),
61
+ // rt
62
+ rt:(...e)=>Reflect.apply(i.rt,i,[...e]),
63
+ // te
64
+ te:(e,t)=>i.te(e,t),
65
+ // tm
66
+ tm:e=>i.tm(e),
67
+ // getLocaleMessage
68
+ getLocaleMessage:e=>i.getLocaleMessage(e),
69
+ // setLocaleMessage
70
+ setLocaleMessage(e,t){i.setLocaleMessage(e,t)},
71
+ // mergeLocaleMessage
72
+ mergeLocaleMessage(e,t){i.mergeLocaleMessage(e,t)},
73
+ // d
74
+ d:(...e)=>Reflect.apply(i.d,i,[...e]),
75
+ // getDateTimeFormat
76
+ getDateTimeFormat:e=>i.getDateTimeFormat(e),
77
+ // setDateTimeFormat
78
+ setDateTimeFormat(e,t){i.setDateTimeFormat(e,t)},
79
+ // mergeDateTimeFormat
80
+ mergeDateTimeFormat(e,t){i.mergeDateTimeFormat(e,t)},
81
+ // n
82
+ n:(...e)=>Reflect.apply(i.n,i,[...e]),
83
+ // getNumberFormat
84
+ getNumberFormat:e=>i.getNumberFormat(e),
85
+ // setNumberFormat
86
+ setNumberFormat(e,t){i.setNumberFormat(e,t)},
87
+ // mergeNumberFormat
88
+ mergeNumberFormat(e,t){i.mergeNumberFormat(e,t)}};return _.__extender=c,_}function ye(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ue](t.pluralizationRules||e.pluralizationRules);const a=pe(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const Ne={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,
89
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
90
+ validator:e=>"parent"===e||"global"===e,default:"parent"
91
+ /* ComponentI18nScope */},i18n:{type:Object}};function Oe(){return Z}const Pe=Q({
92
+ /* eslint-disable */
93
+ name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>E(e)||!isNaN(e)}},Ne),
94
+ /* eslint-enable */
95
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
+ setup(e,t){const{slots:a,attrs:l}=t,s=e.i18n||Ae({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(a).filter((e=>"_"!==e)),o=m();e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=n(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,
97
+ // prettier-ignore
98
+ ...t.type===Z?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),m())}(t,r),c=s[ie](e.keypath,i,o),_=u(m(),l),f=n(e.tag)||b(e.tag)?e.tag:Oe();return K(f,_,c)}}});function Me(e,t,a,l){const{slots:r,attrs:o}=t;return()=>{const t={part:!0};let i=m();e.locale&&(t.locale=e.locale),n(e.format)?t.key=e.format:b(e.format)&&(n(e.format.key)&&(t.key=e.format.key),i=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?u(m(),t,{[n]:e.format[n]}):t),m()));const c=l(e.value,t,i);let _=[t.key];s(c)?_=c.map(((e,t)=>{const a=r[e.type],l=a?a({[e.type]:e.value,index:t,parts:c}):[e.value];var o;return s(o=l)&&!n(o[0])&&(l[0].key=`${e.type}-${t}`),l})):n(c)&&(_=[c]);const f=u(m(),o),g=n(e.tag)||b(e.tag)?e.tag:Oe();return K(g,f,_)}}const We=Q({
99
+ /* eslint-disable */
100
+ name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Ne),
101
+ /* eslint-enable */
102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
+ setup(e,t){const a=e.i18n||Ae({useScope:e.scope,__useComponent:!0});return Me(e,t,U,((...e)=>
104
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
105
+ a[_e](...e)))}});function De(e){if(n(e))return{path:e};if(a(e)){if(!("path"in e))throw oe(re.REQUIRED_VALUE);return e}throw oe(re.INVALID_VALUE)}function $e(e){const{path:t,locale:a,args:l,choice:s,plural:r}=e,o={},i=l||{};return n(a)&&(o.locale=a),E(s)&&(o.plural=s),E(r)&&(o.plural=r),[t,i,o]}function Ue(t,n,...l){const s=a(l[0])?l[0]:{};(!e(s.globalInstall)||s.globalInstall)&&([Pe.name,"I18nT"].forEach((e=>t.component(e,Pe))),[We.name,"I18nN"].forEach((e=>t.component(e,We))),[xe.name,"I18nD"].forEach((e=>t.component(e,xe)))),t.directive("t",function(e){const t=t=>{const{instance:a,value:n}=t;if(!a||!a.$)throw oe(re.UNEXPECTED_ERROR);const l=function(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,a.$),s=De(n);return[Reflect.apply(l.t,l,[...$e(s)]),l]};return{created:(a,n)=>{const[l,s]=t(n);c&&e.global===s&&(a.__i18nWatcher=J(s.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=s,a.textContent=l},unmounted:e=>{c&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const a=e.__composer,n=De(t);e.textContent=Reflect.apply(a.t,a,[...$e(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}(n))}const Se=t("global-vue-i18n");function Ce(n={}){const l=__VUE_I18N_LEGACY_API__&&e(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,s=!e(n.globalInjection)||n.globalInjection,r=new Map,[o,i]=function(e,t){const a=G(),n=__VUE_I18N_LEGACY_API__&&t?a.run((()=>Te(e))):a.run((()=>Re(e)));if(null==n)throw oe(re.UNEXPECTED_ERROR);return[a,n]}(n,l),c=t("");const _={
106
+ // mode
107
+ get mode(){return __VUE_I18N_LEGACY_API__&&l?"legacy":"composition"},
108
+ // install plugin
109
+ async install(e,...t){if(e.__VUE_I18N_SYMBOL__=c,e.provide(e.__VUE_I18N_SYMBOL__,_),a(t[0])){const e=t[0];_.__composerExtend=e.__composerExtend,_.__vueI18nExtend=e.__vueI18nExtend}let n=null;!l&&s&&(n=function(e,t){const a=Object.create(null);we.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw oe(re.UNEXPECTED_ERROR);const l=q(n.value)?{get:()=>n.value.value,
110
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
111
+ set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,l)})),e.config.globalProperties.$i18n=a,He.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw oe(re.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}));const n=()=>{delete e.config.globalProperties.$i18n,He.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return n}(e,_.global)),__VUE_I18N_FULL_INSTALL__&&Ue(e,_,...t),__VUE_I18N_LEGACY_API__&&l&&e.mixin(function(e,t,a){return{beforeCreate(){const n=ee();if(!n)throw oe(re.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const n=l.i18n;if(l.__i18n&&(n.__i18n=l.__i18n),n.__root=t,this===this.$root)this.$i18n=ye(e,n);else{n.__injectWithOption=!0,n.__extender=a.__vueI18nExtend,this.$i18n=Te(n);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=ye(e,l);else{this.$i18n=Te({__i18n:l.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&de(t,l,l),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),a.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const e=ee();if(!e)throw oe(re.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),a.__deleteInstance(e),delete this.$i18n}}}(i,i.__composer,_));const r=e.unmount;e.unmount=()=>{n&&n(),_.dispose(),r()}},
112
+ // global accessor
113
+ get global(){return i},dispose(){o.stop()},
114
+ // @internal
115
+ __instances:r,
116
+ // @internal
117
+ __getInstance:function(e){return r.get(e)||null},
118
+ // @internal
119
+ __setInstance:function(e,t){r.set(e,t)},
120
+ // @internal
121
+ __deleteInstance:function(e){r.delete(e)}};return _}function Ae(e={}){const t=ee();if(null==t)throw oe(re.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw oe(re.NOT_INSTALLED);const a=function(e){const t=te(e.isCE?Se:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw oe(e.isCE?re.NOT_INSTALLED_WITH_PROVIDE:re.UNEXPECTED_ERROR);return t}(t),n=function(e){return"composition"===e.mode?e.global:e.global.__composer}(a),l=be(t),s=function(e,t){return S(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===s)return de(n,e,l),n;if("parent"===s){let l=function(e,t,a=!1){let n=null;const l=t.root;let s=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,a);for(;null!=s;){const t=e;if("composition"===e.mode)n=t.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(s);null!=e&&(n=e.__composer,a&&n&&!n[me]&&(n=null))}if(null!=n)break;if(l===s)break;s=s.parent}return n}(a,t,e.__useComponent);return null==l&&(l=n),l}const r=a;let o=r.__getInstance(t);if(null==o){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),n&&(a.__root=n),o=Re(a),r.__composerExtend&&(o[fe]=r.__composerExtend(o)),function(e,t,a){ae((()=>{}),t),ne((()=>{const n=a;e.__deleteInstance(t);const l=n[fe];l&&(l(),delete n[fe])}),t)}(r,t,o),r.__setInstance(t,o)}return o}const we=["locale","fallbackLocale","availableLocales"],He=["t","rt","d","n","tm","te"];const xe=Q({
122
+ /* eslint-disable */
123
+ name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ne),
124
+ /* eslint-enable */
125
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
126
+ setup(e,t){const a=e.i18n||Ae({useScope:e.scope,__useComponent:!0});return Me(e,t,C,((...e)=>
127
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
128
+ a[ce](...e)))}});if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(x().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(x().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(x().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(x().__INTLIFY_PROD_DEVTOOLS__=!1),A(j),w(Y),H(h),__INTLIFY_PROD_DEVTOOLS__){const e=x();e.__INTLIFY__=!0,V(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Ce as c,Ae as u};
.output/public/assets/vue-router-DKqWD4MR.js ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{s as e,l as t,u as n,a8 as r,i as o,K as a,f as s,P as c,Q as l,a as i,w as u,n as f}from"./@vue-CfxotJ-S.js";
2
+ /*!
3
+ * vue-router v4.5.0
4
+ * (c) 2024 Eduardo San Martin Morote
5
+ * @license MIT
6
+ */const p="undefined"!=typeof document;function h(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const d=Object.assign;function m(e,t){const n={};for(const r in t){const o=t[r];n[r]=v(o)?o.map(e):e(o)}return n}const g=()=>{},v=Array.isArray,y=/#/g,b=/&/g,w=/\//g,E=/=/g,R=/\?/g,k=/\+/g,O=/%5B/g,P=/%5D/g,x=/%5E/g,C=/%60/g,j=/%7B/g,$=/%7C/g,S=/%7D/g,A=/%20/g;function q(e){return encodeURI(""+e).replace($,"|").replace(O,"[").replace(P,"]")}function L(e){return q(e).replace(k,"%2B").replace(A,"+").replace(y,"%23").replace(b,"%26").replace(C,"`").replace(j,"{").replace(S,"}").replace(x,"^")}function M(e){return null==e?"":function(e){return q(e).replace(y,"%23").replace(R,"%3F")}(e).replace(w,"%2F")}function B(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const G=/\/$/;function _(e,t,n="/"){let r,o={},a="",s="";const c=t.indexOf("#");let l=t.indexOf("?");return c<l&&c>=0&&(l=-1),l>-1&&(r=t.slice(0,l),a=t.slice(l+1,c>-1?c:t.length),o=e(a)),c>-1&&(r=r||t.slice(0,c),s=t.slice(c,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let a,s,c=n.length-1;for(a=0;a<r.length;a++)if(s=r[a],"."!==s){if(".."!==s)break;c>1&&c--}return n.slice(0,c).join("/")+"/"+r.slice(a).join("/")}(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:B(s)}}function I(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function T(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function W(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!D(e[n],t[n]))return!1;return!0}function D(e,t){return v(e)?U(e,t):v(t)?U(t,e):e===t}function U(e,t){return v(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const V={path:"/",
7
+ // TODO: could we use a symbol in the future?
8
+ name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var F,K,z,H;function Q(e){if(!e)if(p){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(G,"")}(K=F||(F={})).pop="pop",K.push="push",(H=z||(z={})).back="back",H.forward="forward",H.unknown="";const X=/^[^#]+#/;function Y(e,t){return e.replace(X,"#")+t}const N=()=>({left:window.scrollX,top:window.scrollY});function Z(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function J(e,t){return(history.state?history.state.position-t:-1)+e}const ee=new Map;function te(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),I(n,"")}return I(n,e)+r+o}function ne(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?N():null}}function re(e){const{history:t,location:n}=window,r={value:te(e,n)},o={value:t.state};function a(r,a,s){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+r:location.protocol+"//"+location.host+e+r;try{t[s?"replaceState":"pushState"](a,"",l),o.value=a}catch(i){n[s?"replace":"assign"](l)}}return o.value||a(r.value,{back:null,current:r.value,forward:null,
9
+ // the length is off by one, we need to decrease it
10
+ position:t.length-1,replaced:!0,
11
+ // don't add a scroll as the user may have an anchor, and we want
12
+ // scrollBehavior to be triggered without a saved position
13
+ scroll:null},!0),{location:r,state:o,push:function(e,n){const s=d({},
14
+ // use current history state to gracefully handle a wrong call to
15
+ // history.replaceState
16
+ // https://github.com/vuejs/router/issues/366
17
+ o.value,t.state,{forward:e,scroll:N()});a(s.current,s,!0),a(e,d({},ne(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){a(e,d({},t.state,ne(o.value.back,
18
+ // keep back and forward entries but override current position
19
+ e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function oe(e){const t=re(e=Q(e)),n=function(e,t,n,r){let o=[],a=[],s=null;const c=({state:a})=>{const c=te(e,location),l=n.value,i=t.value;let u=0;if(a){if(n.value=c,t.value=a,s&&s===l)return void(s=null);u=i?a.position-i.position:0}else r(c);o.forEach((e=>{e(n.value,l,{delta:u,type:F.pop,direction:u?u>0?z.forward:z.back:z.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(d({},e.state,{scroll:N()}),"")}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const r=d({
20
+ // it's overridden right after
21
+ location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Y.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function ae(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),oe(e)}function se(e){return"string"==typeof e||"symbol"==typeof e}const ce=Symbol("");var le,ie;function ue(e,t){return d(new Error,{type:e,[ce]:!0},t)}function fe(e,t){return e instanceof Error&&ce in e&&(null==t||!!(e.type&t))}(ie=le||(le={}))[ie.aborted=4]="aborted",ie[ie.cancelled=8]="cancelled",ie[ie.duplicated=16]="duplicated";const pe="[^/]+?",he={sensitive:!1,strict:!1,start:!0,end:!0},de=/[.+*?^${}()[\]/\\]/g;function me(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ge(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=me(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(ve(r))return 1;if(ve(o))return-1}return o.length-r.length}function ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ye={type:0,value:""},be=/[a-zA-Z0-9_]/;function we(e,t,n){const r=function(e,t){const n=d({},he,t),r=[];let o=n.start?"^":"";const a=[];for(const l of e){const e=l.length?[]:[90
22
+ /* PathScore.Root */];n.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const r=l[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(de,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:i,regexp:u}=r;a.push({name:e,repeatable:n,optional:i});const f=u||pe;if(f!==pe){s+=10;try{new RegExp(`(${f})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${e}" (${f}): `+c.message)}}let p=n?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;t||(p=// avoid an optional / if there are more segments e.g. /:p?-static
23
+ // or /:p?-:p2
24
+ i&&l.length<2?`(?:/${p})`:"/"+p),i&&(p+="?"),o+=p,s+=20,i&&(s+=-8),n&&(s+=-20),".*"===f&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");return{re:s,score:r,keys:a,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=a[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:a,repeatable:s,optional:c}=e,l=a in t?t[a]:"";if(v(l)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const i=v(l)?l.join("/"):l;if(!i){if(!c)throw new Error(`Missing required param "${a}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=i}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[ye]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${i}": ${e}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let c,l=0,i="",u="";function f(){i&&(0===n?a.push({type:0,value:i}):1===n||2===n||3===n?(a.length>1&&("*"===c||"+"===c)&&t(`A repeatable param (${i}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:i,regexp:u,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),i="")}function p(){i+=c}for(;l<e.length;)if(c=e[l++],"\\"!==c||2===n)switch(n){case 0:"/"===c?(i&&f(),s()):":"===c?(f(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===c?n=2:be.test(c)?p():(f(),n=0,"*"!==c&&"?"!==c&&"+"!==c&&l--);break;case 2:")"===c?"\\"==u[u.length-1]?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,"*"!==c&&"?"!==c&&"+"!==c&&l--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${i}"`),f(),s(),o}(e.path),n),o=d(r,{record:e,parent:t,
25
+ // these needs to be populated by the parent
26
+ children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ee(e,t){const n=[],r=new Map;function o(e,n,r){const c=!r,l=ke(e);l.aliasOf=r&&r.record;const i=Ce(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(
27
+ // we need to normalize again to ensure the `mods` property
28
+ // being non enumerable
29
+ ke(d({},l,{
30
+ // this allows us to hold a copy of the `components` option
31
+ // so that async components cache is hold on the original record
32
+ components:r?r.record.components:l.components,path:e,
33
+ // we might be the child of an alias
34
+ aliasOf:r?r.record:l})))}let f,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(f=we(t,n,i),r?r.alias.push(f):(p=p||f,p!==f&&p.alias.push(f),c&&e.name&&!Pe(f)&&a(e.name)),je(f)&&s(f),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],f,r&&r.children[t])}r=r||f}return p?()=>{a(p)}:g}function a(e){if(se(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(e){const t=function(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;ge(e,t[o])<0?r=o:n=o+1}const o=function(e){let t=e;for(;t=t.parent;)if(je(t)&&0===ge(e,t))return t;return}(e);o&&(r=t.lastIndexOf(o,r-1));return r}(e,n);n.splice(t,0,e),e.record.name&&!Pe(e)&&r.set(e.record.name,e)}return t=Ce({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,a,s,c={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw ue(1,{location:e});s=o.record.name,c=d(
35
+ // paramsFromLocation is a new object
36
+ Re(t.params,
37
+ // only keep params that exist in the resolved location
38
+ // only keep optional params coming from a parent record
39
+ o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),
40
+ // discard any existing params in the current location that do not exist here
41
+ // #1497 this ensures better active/exact matching
42
+ e.params&&Re(e.params,o.keys.map((e=>e.name)))),a=o.stringify(c)}else if(null!=e.path)a=e.path,o=n.find((e=>e.re.test(a))),o&&(c=o.parse(a),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw ue(1,{location:e,currentLocation:t});s=o.record.name,c=d({},t.params,e.params),a=o.stringify(c)}const l=[];let i=o;for(;i;)l.unshift(i.record),i=i.parent;return{name:s,path:a,params:c,matched:l,meta:xe(l)}},removeRoute:a,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Re(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ke(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Oe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},
43
+ // must be declared afterwards
44
+ // mods: {},
45
+ components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Oe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function Pe(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xe(e){return e.reduce(((e,t)=>d(e,t.meta)),{})}function Ce(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function je({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function $e(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(k," "),o=e.indexOf("="),a=B(o<0?e:e.slice(0,o)),s=o<0?null:B(e.slice(o+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function Se(e){let t="";for(let n in e){const r=e[n];if(n=L(n).replace(E,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(v(r)?r.map((e=>e&&L(e))):[r&&L(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ae(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=v(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const qe=Symbol(""),Le=Symbol(""),Me=Symbol(""),Be=Symbol(""),Ge=Symbol("");function _e(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ie(e,t,n,r,o,a=e=>e()){const s=r&&(// name is defined if record is because of the function overload
46
+ r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((c,l)=>{const i=e=>{var a;!1===e?l(ue(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(a=e)||a&&"object"==typeof a?l(ue(2,{from:t,to:e})):(s&&// since enterCallbackArray is truthy, both record and name also are
47
+ r.enterCallbacks[o]===s&&"function"==typeof e&&s.push(e),c())},u=a((()=>e.call(r&&r.instances[o],t,n,i)));let f=Promise.resolve(u);e.length<3&&(f=f.then(i)),f.catch((e=>l(e)))}))}function Te(e,t,n,r,o=e=>e()){const a=[];for(const s of e)for(const e in s.components){let c=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(h(c)){const l=(c.__vccOpts||c)[t];l&&a.push(Ie(l,n,r,s,e,o))}else{let l=c();a.push((()=>l.then((a=>{if(!a)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const c=(l=a).__esModule||"Module"===l[Symbol.toStringTag]||// support CF with dynamic imports that do not
48
+ // add the Module string tag
49
+ l.default&&h(l.default)?a.default:a;var l;s.mods[e]=a,s.components[e]=c;const i=(c.__vccOpts||c)[t];return i&&Ie(i,n,r,s,e,o)()}))))}}return a}function We(e){const t=o(Me),r=o(Be),a=s((()=>{const r=n(e.to);return t.resolve(r)})),c=s((()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],o=r.matched;if(!n||!o.length)return-1;const s=o.findIndex(T.bind(null,n));if(s>-1)return s;const c=Ue(e[t-2]);
50
+ // we are dealing with nested routes
51
+ return t>1&&// if the parent and matched route have the same path, this link is
52
+ // referring to the empty child. Or we currently are on a different
53
+ // child of the same parent
54
+ Ue(n)===c&&// avoid comparing the child with its parent
55
+ o[o.length-1].path!==c?o.findIndex(T.bind(null,e[t-2])):s})),l=s((()=>c.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!v(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(r.params,a.value.params))),i=s((()=>c.value>-1&&c.value===r.matched.length-1&&W(r.params,a.value.params)));return{route:a,href:s((()=>a.value.href)),isActive:l,isExactActive:i,navigate:function(r={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(r)){const r=t[n(e.replace)?"replace":"push"](n(e.to)).catch(g);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>r)),r}return Promise.resolve()}}}const De=t({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,
56
+ // inactiveClass: String,
57
+ exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:We,setup(e,{slots:t}){const n=a(We(e)),{options:r}=o(Me),l=s((()=>({[Ve(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,
58
+ // [getLinkClass(
59
+ // props.inactiveClass,
60
+ // options.linkInactiveClass,
61
+ // 'router-link-inactive'
62
+ // )]: !link.isExactActive,
63
+ [Ve(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&(1===(o=t.default(n)).length?o[0]:o);var o;return e.custom?r:c("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,
64
+ // this would override user added attrs but Vue will still add
65
+ // the listener, so we end up triggering both
66
+ onClick:n.navigate,class:l.value},r)}}});function Ue(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ve=(e,t,n)=>null!=e?e:null!=t?t:n;function Fe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ke=t({name:"RouterView",
67
+ // #674 we manually inherit them
68
+ inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},
69
+ // Better compat for @vue/compat users
70
+ // https://github.com/vuejs/router/issues/1315
71
+ compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const a=o(Ge),f=s((()=>e.route||a.value)),p=o(Le,0),h=s((()=>{let e=n(p);const{matched:t}=f.value;let r;for(;(r=t[e])&&!r.components;)e++;return e})),m=s((()=>f.value.matched[h.value]));l(Le,s((()=>h.value+1))),l(qe,m),l(Ge,f);const g=i();return u((()=>[g.value,m.value,e.name]),(([e,t,n],[r,o,a])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||// if there is no instance but to and from are the same this might be
72
+ // the first visit
73
+ o&&T(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const n=f.value,o=e.name,a=m.value,s=a&&a.components[o];if(!s)return Fe(r.default,{Component:s,route:n});const l=a.props[o],i=l?!0===l?n.params:"function"==typeof l?l(n):l:null,u=c(s,d({},i,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[o]=null)},ref:g}));
74
+ // pass the vnode to the slot as a prop.
75
+ // h and <component :is="..."> both accept vnodes
76
+ return Fe(r.default,{Component:u,route:n})||u}}});function ze(t){const o=Ee(t.routes,t),a=t.parseQuery||$e,s=t.stringifyQuery||Se,c=t.history,l=_e(),i=_e(),u=_e(),h=e(V);let y=V;p&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=m.bind(null,(e=>""+e)),w=m.bind(null,M),E=
77
+ // @ts-expect-error: intentionally avoid the type check
78
+ m.bind(null,B);function R(e,t){if(t=d({},t||h.value),"string"==typeof e){const n=_(a,e,t.path),r=o.resolve({path:n.path},t),s=c.createHref(n.fullPath);return d(n,r,{params:E(r.params),hash:B(n.hash),redirectedFrom:void 0,href:s})}let n;if(null!=e.path)n=d({},e,{path:_(a,e.path,t.path).path});else{const r=d({},e.params);for(const e in r)null==r[e]&&delete r[e];n=d({},e,{params:w(r)}),t.params=w(t.params)}const r=o.resolve(n,t),l=e.hash||"";r.params=b(E(r.params));const i=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(s,d({},e,{hash:(u=l,q(u).replace(j,"{").replace(S,"}").replace(x,"^")),path:r.path}));var u;const f=c.createHref(i);return d({fullPath:i,
79
+ // keep the hash encoded so fullPath is effectively path + encodedQuery +
80
+ // hash
81
+ hash:l,query:
82
+ // if the user is using a custom query lib like qs, we might have
83
+ // nested objects, so we keep the query as is, meaning it can contain
84
+ // numbers at `$route.query`, but at the point, the user will have to
85
+ // use their own type anyway.
86
+ // https://github.com/vuejs/router/issues/328#issuecomment-649481567
87
+ s===Se?Ae(e.query):e.query||{}},r,{redirectedFrom:void 0,href:f})}function k(e){return"string"==typeof e?_(a,e,h.value.path):d({},e)}function O(e,t){if(y!==e)return ue(8,{from:t,to:e})}function P(e){return $(e)}function C(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=k(r):
88
+ // force empty params
89
+ {path:r},r.params={}),d({query:e.query,hash:e.hash,
90
+ // avoid transferring params if the redirect has a path
91
+ params:null!=r.path?{}:e.params},r)}}function $(e,t){const n=y=R(e),r=h.value,o=e.state,a=e.force,c=!0===e.replace,l=C(n);if(l)return $(d(k(l),{state:"object"==typeof l?d({},o,l.state):o,force:a,replace:c}),
92
+ // keep original redirectedFrom if it exists
93
+ t||n);const i=n;let u;return i.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&T(t.matched[r],n.matched[o])&&W(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(s,r,n)&&(u=ue(16,{to:i,from:r}),te(r,r,
94
+ // this is a push, the only way for it to be triggered from a
95
+ // history.listen is with a redirect, which makes it become a push
96
+ !0,
97
+ // This cannot be the first navigation because the initial location
98
+ // cannot be manually navigated to
99
+ !1)),(u?Promise.resolve(u):G(i,r)).catch((e=>fe(e)?
100
+ // navigation redirects still mark the router as ready
101
+ fe(e,2
102
+ /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)?e:Y(e):
103
+ // reject any unknown error
104
+ X(e,i,r))).then((e=>{if(e){if(fe(e,2
105
+ /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */))return $(
106
+ // keep options
107
+ d({
108
+ // preserve an existing replacement but allow the redirect to override it
109
+ replace:c},k(e.to),{state:"object"==typeof e.to?d({},o,e.to.state):o,force:a}),
110
+ // preserve the original redirectedFrom if any
111
+ t||i)}else e=D(i,r,!0,c,o);return I(i,r,e),e}))}function A(e,t){const n=O(e,t);return n?Promise.reject(n):Promise.resolve()}function L(e){const t=oe.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function G(e,t){let n;const[r,o,a]=function(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const a=t.matched[s];a&&(e.matched.find((e=>T(e,a)))?r.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find((e=>T(e,c)))||o.push(c))}return[n,r,o]}(e,t);n=Te(r.reverse(),"beforeRouteLeave",e,t);for(const c of r)c.leaveGuards.forEach((r=>{n.push(Ie(r,e,t))}));const s=A.bind(null,e,t);return n.push(s),ce(n).then((()=>{n=[];for(const r of l.list())n.push(Ie(r,e,t));return n.push(s),ce(n)})).then((()=>{n=Te(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ie(r,e,t))}));return n.push(s),ce(n)})).then((()=>{n=[];for(const r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ie(o,e,t));else n.push(Ie(r.beforeEnter,e,t));return n.push(s),ce(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Te(a,"beforeRouteEnter",e,t,L),n.push(s),ce(n)))).then((()=>{n=[];for(const r of i.list())n.push(Ie(r,e,t));return n.push(s),ce(n)})).catch((e=>fe(e,8
112
+ /* ErrorTypes.NAVIGATION_CANCELLED */)?e:Promise.reject(e)))}function I(e,t,n){u.list().forEach((r=>L((()=>r(e,t,n)))))}function D(e,t,n,r,o){const a=O(e,t);if(a)return a;const s=t===V,l=p?history.state:{};n&&(r||s?c.replace(e.fullPath,d({scroll:s&&l&&l.scroll},o)):c.push(e.fullPath,o)),h.value=e,te(e,t,n,s),Y()}let U;function K(){U||(U=c.listen(((e,t,n)=>{if(!ae.listening)return;const r=R(e),o=C(r);if(o)return void $(d(o,{replace:!0,force:!0}),r).catch(g);y=r;const a=h.value;var s,l;p&&(s=J(a.fullPath,n.delta),l=N(),ee.set(s,l)),G(r,a).catch((e=>fe(e,12
113
+ /* ErrorTypes.NAVIGATION_CANCELLED */)?e:fe(e,2
114
+ /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)?($(d(k(e.to),{force:!0}),r).then((e=>{fe(e,20
115
+ /* ErrorTypes.NAVIGATION_DUPLICATED */)&&!n.delta&&n.type===F.pop&&c.go(-1,!1)})).catch(g),Promise.reject()):(n.delta&&c.go(-n.delta,!1),X(e,r,a)))).then((e=>{(e=e||D(
116
+ // after navigation, all matched components are resolved
117
+ r,a,!1))&&(n.delta&&// a new navigation has been triggered, so we do not want to revert, that will change the current history
118
+ // entry while a different route is displayed
119
+ !fe(e,8
120
+ /* ErrorTypes.NAVIGATION_CANCELLED */)?c.go(-n.delta,!1):n.type===F.pop&&fe(e,20
121
+ /* ErrorTypes.NAVIGATION_DUPLICATED */)&&c.go(-1,!1)),I(r,a,e)})).catch(g)})))}let z,H=_e(),Q=_e();function X(e,t,n){Y(e);const r=Q.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function Y(e){return z||(z=!e,K(),H.list().forEach((([t,n])=>e?n(e):t())),H.reset()),e}function te(e,n,r,o){const{scrollBehavior:a}=t;if(!p||!a)return Promise.resolve();const s=!r&&function(e){const t=ee.get(e);return ee.delete(e),t}(J(e.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return f().then((()=>a(e,n,s))).then((e=>e&&Z(e))).catch((t=>X(t,e,n)))}const ne=e=>c.go(e);let re;const oe=new Set,ae={currentRoute:h,listening:!0,addRoute:function(e,t){let n,r;return se(e)?(n=o.getRecordMatcher(e),r=t):r=e,o.addRoute(r,n)},removeRoute:function(e){const t=o.getRecordMatcher(e);t&&o.removeRoute(t)},clearRoutes:o.clearRoutes,hasRoute:function(e){return!!o.getRecordMatcher(e)},getRoutes:function(){return o.getRoutes().map((e=>e.record))},resolve:R,options:t,push:P,replace:function(e){return P(d(k(e),{replace:!0}))},go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:l.add,beforeResolve:i.add,afterEach:u.add,onError:Q.add,isReady:function(){return z&&h.value!==V?Promise.resolve():new Promise(((e,t)=>{H.add([e,t])}))},install(e){e.component("RouterLink",De),e.component("RouterView",Ke),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>n(h)}),p&&// used for the initial navigation client side to avoid pushing
122
+ // multiple times when the router is used in multiple apps
123
+ !re&&h.value===V&&(re=!0,P(c.location).catch((e=>{})));const t={};for(const n in V)Object.defineProperty(t,n,{get:()=>h.value[n],enumerable:!0});e.provide(Me,this),e.provide(Be,r(t)),e.provide(Ge,h);const o=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(y=V,U&&U(),U=null,h.value=V,re=!1,z=!1),o()}}};function ce(e){return e.reduce(((e,t)=>e.then((()=>L(t)))),Promise.resolve())}return ae}function He(){return o(Me)}function Qe(e){return o(Be)}export{He as a,ae as b,ze as c,Qe as u};
.output/public/assets/vuedraggable-DAEPkKhD.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/index.html CHANGED
@@ -10,45 +10,80 @@
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-pvBxj7eH.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  <link rel="modulepreload" crossorigin href="./assets/core-js-pure-Dnpx5JGu.js">
15
  <link rel="modulepreload" crossorigin href="./assets/@babel-ynFNPEB3.js">
16
- <link rel="modulepreload" crossorigin href="./assets/@vue-COP35Tvs.js">
17
- <link rel="modulepreload" crossorigin href="./assets/pinia-DYvg5Pdn.js">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  <link rel="modulepreload" crossorigin href="./assets/destr-ClW9AvhW.js">
19
  <link rel="modulepreload" crossorigin href="./assets/deep-pick-omit-DP_A4OSP.js">
20
  <link rel="modulepreload" crossorigin href="./assets/pinia-plugin-persistedstate-DyrI1rJI.js">
21
- <link rel="modulepreload" crossorigin href="./assets/chroma-js-CJzpYopr.js">
22
- <link rel="modulepreload" crossorigin href="./assets/@material-C_XhzpVg.js">
23
- <link rel="modulepreload" crossorigin href="./assets/bezier-easing-BncZ6jfA.js">
24
- <link rel="modulepreload" crossorigin href="./assets/tvision-color-BdwcCUqE.js">
25
- <link rel="modulepreload" crossorigin href="./assets/lodash-VDnThKtA.js">
26
  <link rel="modulepreload" crossorigin href="./assets/eventsource-parser-D0ssca5s.js">
27
- <link rel="modulepreload" crossorigin href="./assets/tdesign-icons-vue-next-CCrD-Br3.js">
28
- <link rel="modulepreload" crossorigin href="./assets/lodash-es-RhymR7yg.js">
29
  <link rel="modulepreload" crossorigin href="./assets/sortablejs-DGtSoqI-.js">
30
  <link rel="modulepreload" crossorigin href="./assets/@popperjs-B4tvfKWZ.js">
31
- <link rel="modulepreload" crossorigin href="./assets/tdesign-vue-next-CHJ-1YYh.js">
32
- <link rel="modulepreload" crossorigin href="./assets/@vueuse-BsV7VRb2.js">
33
  <link rel="modulepreload" crossorigin href="./assets/@intlify-eboPrqDD.js">
34
- <link rel="modulepreload" crossorigin href="./assets/vue-i18n-DTZjQIEs.js">
35
  <link rel="modulepreload" crossorigin href="./assets/@mozilla-BD532_dh.js">
36
- <link rel="modulepreload" crossorigin href="./assets/_plugin-vue_export-helper-0drS65lc.js">
37
- <link rel="modulepreload" crossorigin href="./assets/vscode-jsonrpc-B7fdjHWu.js">
38
- <link rel="modulepreload" crossorigin href="./assets/@chevrotain-DFy4Htpj.js">
39
- <link rel="modulepreload" crossorigin href="./assets/chevrotain-Cp5uJ8YW.js">
40
- <link rel="modulepreload" crossorigin href="./assets/chevrotain-allstar-WPou0XcH.js">
41
- <link rel="modulepreload" crossorigin href="./assets/vscode-languageserver-types-BtnkyLj9.js">
42
- <link rel="modulepreload" crossorigin href="./assets/vscode-languageserver-textdocument-ygi3JyHC.js">
43
- <link rel="modulepreload" crossorigin href="./assets/vscode-uri-DEKkV-x5.js">
44
- <link rel="modulepreload" crossorigin href="./assets/langium-BVNt58jJ.js">
45
- <link rel="modulepreload" crossorigin href="./assets/@mermaid-js-C9iCgeAb.js">
46
- <link rel="modulepreload" crossorigin href="./assets/vue-router-DbZJX5bT.js">
47
- <link rel="modulepreload" crossorigin href="./assets/vue-DJZ4t1rv.js">
48
- <link rel="modulepreload" crossorigin href="./assets/vuedraggable-B95MGA-k.js">
49
  <link rel="stylesheet" crossorigin href="./assets/tdesign-icons-vue-next-BGgy7GQY.css">
50
  <link rel="stylesheet" crossorigin href="./assets/tdesign-vue-next-BiLJzazs.css">
51
- <link rel="stylesheet" crossorigin href="./assets/main-CQqkySJh.css">
52
  </head>
53
  <body>
54
  <div id="app"></div>
 
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">
17
+ <link rel="modulepreload" crossorigin href="./assets/chevrotain-Cp5uJ8YW.js">
18
+ <link rel="modulepreload" crossorigin href="./assets/chevrotain-allstar-WPou0XcH.js">
19
+ <link rel="modulepreload" crossorigin href="./assets/vscode-languageserver-types-BtnkyLj9.js">
20
+ <link rel="modulepreload" crossorigin href="./assets/vscode-languageserver-textdocument-ygi3JyHC.js">
21
+ <link rel="modulepreload" crossorigin href="./assets/vscode-uri-DEKkV-x5.js">
22
+ <link rel="modulepreload" crossorigin href="./assets/langium-BVNt58jJ.js">
23
+ <link rel="modulepreload" crossorigin href="./assets/@mermaid-js-C9iCgeAb.js">
24
+ <link rel="modulepreload" crossorigin href="./assets/ts-dedent-CttZBlkd.js">
25
+ <link rel="modulepreload" crossorigin href="./assets/d3-timer-keMr1twq.js">
26
+ <link rel="modulepreload" crossorigin href="./assets/d3-dispatch-Chq_f_hl.js">
27
+ <link rel="modulepreload" crossorigin href="./assets/d3-color-D5ULnJIe.js">
28
+ <link rel="modulepreload" crossorigin href="./assets/d3-interpolate-Ct9kki6l.js">
29
+ <link rel="modulepreload" crossorigin href="./assets/d3-selection-Oxnq6l6A.js">
30
+ <link rel="modulepreload" crossorigin href="./assets/d3-ease-Cx6bG2vu.js">
31
+ <link rel="modulepreload" crossorigin href="./assets/d3-transition-0ltv4da8.js">
32
+ <link rel="modulepreload" crossorigin href="./assets/d3-zoom-Dz8HuW59.js">
33
+ <link rel="modulepreload" crossorigin href="./assets/dompurify-z_KyBU9t.js">
34
+ <link rel="modulepreload" crossorigin href="./assets/stylis-Cl7w7uv3.js">
35
+ <link rel="modulepreload" crossorigin href="./assets/dagre-d3-es-D8JeTxsO.js">
36
+ <link rel="modulepreload" crossorigin href="./assets/@braintree-BB7t-Iuh.js">
37
+ <link rel="modulepreload" crossorigin href="./assets/khroma-C2oHPU0S.js">
38
  <link rel="modulepreload" crossorigin href="./assets/core-js-pure-Dnpx5JGu.js">
39
  <link rel="modulepreload" crossorigin href="./assets/@babel-ynFNPEB3.js">
40
+ <link rel="modulepreload" crossorigin href="./assets/dayjs-Cbdj87rt.js">
41
+ <link rel="modulepreload" crossorigin href="./assets/internmap-B8oPgqVZ.js">
42
+ <link rel="modulepreload" crossorigin href="./assets/d3-array-BhN1wQGI.js">
43
+ <link rel="modulepreload" crossorigin href="./assets/d3-format-C0lSXcPg.js">
44
+ <link rel="modulepreload" crossorigin href="./assets/d3-time-B1kAM736.js">
45
+ <link rel="modulepreload" crossorigin href="./assets/d3-time-format-DB2uBv1t.js">
46
+ <link rel="modulepreload" crossorigin href="./assets/d3-scale-CdkN4P7M.js">
47
+ <link rel="modulepreload" crossorigin href="./assets/d3-axis-pCwzqJ1S.js">
48
+ <link rel="modulepreload" crossorigin href="./assets/d3-path-QSrLXsQ3.js">
49
+ <link rel="modulepreload" crossorigin href="./assets/d3-shape-C6CU9yox.js">
50
+ <link rel="modulepreload" crossorigin href="./assets/roughjs-Bkc4UHOn.js">
51
+ <link rel="modulepreload" crossorigin href="./assets/cytoscape-DQzyuV5c.js">
52
+ <link rel="modulepreload" crossorigin href="./assets/layout-base-DqRk0Tgc.js">
53
+ <link rel="modulepreload" crossorigin href="./assets/cose-base-kQthUiMK.js">
54
+ <link rel="modulepreload" crossorigin href="./assets/cytoscape-cose-bilkent-CcQu5e-H.js">
55
+ <link rel="modulepreload" crossorigin href="./assets/d3-sankey-B6tQBass.js">
56
+ <link rel="modulepreload" crossorigin href="./assets/d3-scale-chromatic-FDBKL9jm.js">
57
+ <link rel="modulepreload" crossorigin href="./assets/@iconify-BUO7KvjM.js">
58
+ <link rel="modulepreload" crossorigin href="./assets/marked-CrLTNeyQ.js">
59
+ <link rel="modulepreload" crossorigin href="./assets/cytoscape-fcose-B58q80h4.js">
60
+ <link rel="modulepreload" crossorigin href="./assets/mermaid-r27wrvTx.js">
61
+ <link rel="modulepreload" crossorigin href="./assets/@vue-CfxotJ-S.js">
62
+ <link rel="modulepreload" crossorigin href="./assets/pinia-gf2247cH.js">
63
  <link rel="modulepreload" crossorigin href="./assets/destr-ClW9AvhW.js">
64
  <link rel="modulepreload" crossorigin href="./assets/deep-pick-omit-DP_A4OSP.js">
65
  <link rel="modulepreload" crossorigin href="./assets/pinia-plugin-persistedstate-DyrI1rJI.js">
 
 
 
 
 
66
  <link rel="modulepreload" crossorigin href="./assets/eventsource-parser-D0ssca5s.js">
67
+ <link rel="modulepreload" crossorigin href="./assets/lodash-VDnThKtA.js">
68
+ <link rel="modulepreload" crossorigin href="./assets/tdesign-icons-vue-next-Bre5yOVt.js">
69
  <link rel="modulepreload" crossorigin href="./assets/sortablejs-DGtSoqI-.js">
70
  <link rel="modulepreload" crossorigin href="./assets/@popperjs-B4tvfKWZ.js">
71
+ <link rel="modulepreload" crossorigin href="./assets/tdesign-vue-next-BiEwLJDx.js">
72
+ <link rel="modulepreload" crossorigin href="./assets/@vueuse-B4dz7nOv.js">
73
  <link rel="modulepreload" crossorigin href="./assets/@intlify-eboPrqDD.js">
74
+ <link rel="modulepreload" crossorigin href="./assets/vue-i18n-BLIfPQxk.js">
75
  <link rel="modulepreload" crossorigin href="./assets/@mozilla-BD532_dh.js">
76
+ <link rel="modulepreload" crossorigin href="./assets/chroma-js-CJzpYopr.js">
77
+ <link rel="modulepreload" crossorigin href="./assets/@material-C_XhzpVg.js">
78
+ <link rel="modulepreload" crossorigin href="./assets/bezier-easing-BncZ6jfA.js">
79
+ <link rel="modulepreload" crossorigin href="./assets/tvision-color-BdwcCUqE.js">
80
+ <link rel="modulepreload" crossorigin href="./assets/mermaid-render-DYiT7KKL.js">
81
+ <link rel="modulepreload" crossorigin href="./assets/vue-router-DKqWD4MR.js">
82
+ <link rel="modulepreload" crossorigin href="./assets/vue-BIpqWpgL.js">
83
+ <link rel="modulepreload" crossorigin href="./assets/vuedraggable-DAEPkKhD.js">
 
 
 
 
 
84
  <link rel="stylesheet" crossorigin href="./assets/tdesign-icons-vue-next-BGgy7GQY.css">
85
  <link rel="stylesheet" crossorigin href="./assets/tdesign-vue-next-BiLJzazs.css">
86
+ <link rel="stylesheet" crossorigin href="./assets/main-Br62opI0.css">
87
  </head>
88
  <body>
89
  <div id="app"></div>
.output/public/popup.html CHANGED
@@ -3,42 +3,9 @@
3
  <head>
4
  <meta charset="UTF-8" />
5
  <title>Popup</title>
6
- <script type="module" crossorigin src="./assets/popup-U2NfT8EV.js"></script>
7
- <link rel="modulepreload" crossorigin href="./assets/core-js-pure-Dnpx5JGu.js">
8
- <link rel="modulepreload" crossorigin href="./assets/@babel-ynFNPEB3.js">
9
- <link rel="modulepreload" crossorigin href="./assets/@vue-COP35Tvs.js">
10
- <link rel="modulepreload" crossorigin href="./assets/pinia-DYvg5Pdn.js">
11
- <link rel="modulepreload" crossorigin href="./assets/destr-ClW9AvhW.js">
12
- <link rel="modulepreload" crossorigin href="./assets/deep-pick-omit-DP_A4OSP.js">
13
- <link rel="modulepreload" crossorigin href="./assets/pinia-plugin-persistedstate-DyrI1rJI.js">
14
- <link rel="modulepreload" crossorigin href="./assets/chroma-js-CJzpYopr.js">
15
- <link rel="modulepreload" crossorigin href="./assets/@material-C_XhzpVg.js">
16
- <link rel="modulepreload" crossorigin href="./assets/bezier-easing-BncZ6jfA.js">
17
- <link rel="modulepreload" crossorigin href="./assets/tvision-color-BdwcCUqE.js">
18
- <link rel="modulepreload" crossorigin href="./assets/lodash-VDnThKtA.js">
19
- <link rel="modulepreload" crossorigin href="./assets/eventsource-parser-D0ssca5s.js">
20
- <link rel="modulepreload" crossorigin href="./assets/tdesign-icons-vue-next-CCrD-Br3.js">
21
- <link rel="modulepreload" crossorigin href="./assets/lodash-es-RhymR7yg.js">
22
- <link rel="modulepreload" crossorigin href="./assets/sortablejs-DGtSoqI-.js">
23
- <link rel="modulepreload" crossorigin href="./assets/@popperjs-B4tvfKWZ.js">
24
- <link rel="modulepreload" crossorigin href="./assets/tdesign-vue-next-CHJ-1YYh.js">
25
- <link rel="modulepreload" crossorigin href="./assets/@vueuse-BsV7VRb2.js">
26
- <link rel="modulepreload" crossorigin href="./assets/@intlify-eboPrqDD.js">
27
- <link rel="modulepreload" crossorigin href="./assets/vue-i18n-DTZjQIEs.js">
28
- <link rel="modulepreload" crossorigin href="./assets/@mozilla-BD532_dh.js">
29
- <link rel="modulepreload" crossorigin href="./assets/_plugin-vue_export-helper-0drS65lc.js">
30
- <link rel="modulepreload" crossorigin href="./assets/markdown-it-link-attributes-DRKqjf49.js">
31
- <link rel="modulepreload" crossorigin href="./assets/mdurl-CDXpswLz.js">
32
- <link rel="modulepreload" crossorigin href="./assets/uc.micro-CLkLCS2f.js">
33
- <link rel="modulepreload" crossorigin href="./assets/entities-D7HTx9ov.js">
34
- <link rel="modulepreload" crossorigin href="./assets/linkify-it-LcVOBuC5.js">
35
- <link rel="modulepreload" crossorigin href="./assets/punycode.js-Bmr3cAX8.js">
36
- <link rel="modulepreload" crossorigin href="./assets/markdown-it-C8SkdHr7.js">
37
- <link rel="modulepreload" crossorigin href="./assets/katex-Vs6-m9jZ.js">
38
- <link rel="modulepreload" crossorigin href="./assets/@traptitech-xv_Vpjqh.js">
39
- <link rel="modulepreload" crossorigin href="./assets/highlight.js-DdQUKuBy.js">
40
- <link rel="modulepreload" crossorigin href="./assets/markdown-it-highlightjs-DAVjgNjy.js">
41
  <link rel="modulepreload" crossorigin href="./assets/vscode-jsonrpc-B7fdjHWu.js">
 
42
  <link rel="modulepreload" crossorigin href="./assets/@chevrotain-DFy4Htpj.js">
43
  <link rel="modulepreload" crossorigin href="./assets/chevrotain-Cp5uJ8YW.js">
44
  <link rel="modulepreload" crossorigin href="./assets/chevrotain-allstar-WPou0XcH.js">
@@ -61,6 +28,8 @@
61
  <link rel="modulepreload" crossorigin href="./assets/dagre-d3-es-D8JeTxsO.js">
62
  <link rel="modulepreload" crossorigin href="./assets/@braintree-BB7t-Iuh.js">
63
  <link rel="modulepreload" crossorigin href="./assets/khroma-C2oHPU0S.js">
 
 
64
  <link rel="modulepreload" crossorigin href="./assets/dayjs-Cbdj87rt.js">
65
  <link rel="modulepreload" crossorigin href="./assets/internmap-B8oPgqVZ.js">
66
  <link rel="modulepreload" crossorigin href="./assets/d3-array-BhN1wQGI.js">
@@ -82,10 +51,41 @@
82
  <link rel="modulepreload" crossorigin href="./assets/marked-CrLTNeyQ.js">
83
  <link rel="modulepreload" crossorigin href="./assets/cytoscape-fcose-B58q80h4.js">
84
  <link rel="modulepreload" crossorigin href="./assets/mermaid-r27wrvTx.js">
85
- <link rel="modulepreload" crossorigin href="./assets/markdown-BQr3Bh3z.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-CrBFWcNQ.css">
89
  </head>
90
  <body>
91
  <div id="app"></div>
 
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">
10
  <link rel="modulepreload" crossorigin href="./assets/chevrotain-Cp5uJ8YW.js">
11
  <link rel="modulepreload" crossorigin href="./assets/chevrotain-allstar-WPou0XcH.js">
 
28
  <link rel="modulepreload" crossorigin href="./assets/dagre-d3-es-D8JeTxsO.js">
29
  <link rel="modulepreload" crossorigin href="./assets/@braintree-BB7t-Iuh.js">
30
  <link rel="modulepreload" crossorigin href="./assets/khroma-C2oHPU0S.js">
31
+ <link rel="modulepreload" crossorigin href="./assets/core-js-pure-Dnpx5JGu.js">
32
+ <link rel="modulepreload" crossorigin href="./assets/@babel-ynFNPEB3.js">
33
  <link rel="modulepreload" crossorigin href="./assets/dayjs-Cbdj87rt.js">
34
  <link rel="modulepreload" crossorigin href="./assets/internmap-B8oPgqVZ.js">
35
  <link rel="modulepreload" crossorigin href="./assets/d3-array-BhN1wQGI.js">
 
51
  <link rel="modulepreload" crossorigin href="./assets/marked-CrLTNeyQ.js">
52
  <link rel="modulepreload" crossorigin href="./assets/cytoscape-fcose-B58q80h4.js">
53
  <link rel="modulepreload" crossorigin href="./assets/mermaid-r27wrvTx.js">
54
+ <link rel="modulepreload" crossorigin href="./assets/@vue-CfxotJ-S.js">
55
+ <link rel="modulepreload" crossorigin href="./assets/pinia-gf2247cH.js">
56
+ <link rel="modulepreload" crossorigin href="./assets/destr-ClW9AvhW.js">
57
+ <link rel="modulepreload" crossorigin href="./assets/deep-pick-omit-DP_A4OSP.js">
58
+ <link rel="modulepreload" crossorigin href="./assets/pinia-plugin-persistedstate-DyrI1rJI.js">
59
+ <link rel="modulepreload" crossorigin href="./assets/eventsource-parser-D0ssca5s.js">
60
+ <link rel="modulepreload" crossorigin href="./assets/lodash-VDnThKtA.js">
61
+ <link rel="modulepreload" crossorigin href="./assets/tdesign-icons-vue-next-Bre5yOVt.js">
62
+ <link rel="modulepreload" crossorigin href="./assets/sortablejs-DGtSoqI-.js">
63
+ <link rel="modulepreload" crossorigin href="./assets/@popperjs-B4tvfKWZ.js">
64
+ <link rel="modulepreload" crossorigin href="./assets/tdesign-vue-next-BiEwLJDx.js">
65
+ <link rel="modulepreload" crossorigin href="./assets/@vueuse-B4dz7nOv.js">
66
+ <link rel="modulepreload" crossorigin href="./assets/@intlify-eboPrqDD.js">
67
+ <link rel="modulepreload" crossorigin href="./assets/vue-i18n-BLIfPQxk.js">
68
+ <link rel="modulepreload" crossorigin href="./assets/@mozilla-BD532_dh.js">
69
+ <link rel="modulepreload" crossorigin href="./assets/chroma-js-CJzpYopr.js">
70
+ <link rel="modulepreload" crossorigin href="./assets/@material-C_XhzpVg.js">
71
+ <link rel="modulepreload" crossorigin href="./assets/bezier-easing-BncZ6jfA.js">
72
+ <link rel="modulepreload" crossorigin href="./assets/tvision-color-BdwcCUqE.js">
73
+ <link rel="modulepreload" crossorigin href="./assets/mermaid-render-DYiT7KKL.js">
74
+ <link rel="modulepreload" crossorigin href="./assets/markdown-it-link-attributes-DRKqjf49.js">
75
+ <link rel="modulepreload" crossorigin href="./assets/mdurl-CDXpswLz.js">
76
+ <link rel="modulepreload" crossorigin href="./assets/uc.micro-CLkLCS2f.js">
77
+ <link rel="modulepreload" crossorigin href="./assets/entities-D7HTx9ov.js">
78
+ <link rel="modulepreload" crossorigin href="./assets/linkify-it-LcVOBuC5.js">
79
+ <link rel="modulepreload" crossorigin href="./assets/punycode.js-Bmr3cAX8.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-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">
89
  </head>
90
  <body>
91
  <div id="app"></div>
.output/public/sw.js CHANGED
@@ -1,5 +1,5 @@
1
  // 缓存名称 - 更改版本号可以强制更新缓存
2
- const CACHE_NAME = 'app-cache-v1743351702406';
3
  const ASSETS_PATTERN = /\/assets\//;
4
  // 需要缓存的资源列表
5
  const urlsToCache = [
 
1
  // 缓存名称 - 更改版本号可以强制更新缓存
2
+ const CACHE_NAME = 'app-cache-v1743400142659';
3
  const ASSETS_PATTERN = /\/assets\//;
4
  // 需要缓存的资源列表
5
  const urlsToCache = [
.output/server/chunks/nitro/nitro.mjs CHANGED
The diff for this file is too large to render. See raw diff
 
package-lock.json CHANGED
@@ -1242,9 +1242,9 @@
1242
  }
1243
  },
1244
  "node_modules/@esbuild/aix-ppc64": {
1245
- "version": "0.25.1",
1246
- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz",
1247
- "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==",
1248
  "cpu": [
1249
  "ppc64"
1250
  ],
@@ -1259,9 +1259,9 @@
1259
  }
1260
  },
1261
  "node_modules/@esbuild/android-arm": {
1262
- "version": "0.25.1",
1263
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz",
1264
- "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==",
1265
  "cpu": [
1266
  "arm"
1267
  ],
@@ -1276,9 +1276,9 @@
1276
  }
1277
  },
1278
  "node_modules/@esbuild/android-arm64": {
1279
- "version": "0.25.1",
1280
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz",
1281
- "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==",
1282
  "cpu": [
1283
  "arm64"
1284
  ],
@@ -1293,9 +1293,9 @@
1293
  }
1294
  },
1295
  "node_modules/@esbuild/android-x64": {
1296
- "version": "0.25.1",
1297
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz",
1298
- "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==",
1299
  "cpu": [
1300
  "x64"
1301
  ],
@@ -1310,9 +1310,9 @@
1310
  }
1311
  },
1312
  "node_modules/@esbuild/darwin-arm64": {
1313
- "version": "0.25.1",
1314
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz",
1315
- "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==",
1316
  "cpu": [
1317
  "arm64"
1318
  ],
@@ -1327,9 +1327,9 @@
1327
  }
1328
  },
1329
  "node_modules/@esbuild/darwin-x64": {
1330
- "version": "0.25.1",
1331
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz",
1332
- "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==",
1333
  "cpu": [
1334
  "x64"
1335
  ],
@@ -1344,9 +1344,9 @@
1344
  }
1345
  },
1346
  "node_modules/@esbuild/freebsd-arm64": {
1347
- "version": "0.25.1",
1348
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz",
1349
- "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==",
1350
  "cpu": [
1351
  "arm64"
1352
  ],
@@ -1361,9 +1361,9 @@
1361
  }
1362
  },
1363
  "node_modules/@esbuild/freebsd-x64": {
1364
- "version": "0.25.1",
1365
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz",
1366
- "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==",
1367
  "cpu": [
1368
  "x64"
1369
  ],
@@ -1378,9 +1378,9 @@
1378
  }
1379
  },
1380
  "node_modules/@esbuild/linux-arm": {
1381
- "version": "0.25.1",
1382
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz",
1383
- "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==",
1384
  "cpu": [
1385
  "arm"
1386
  ],
@@ -1395,9 +1395,9 @@
1395
  }
1396
  },
1397
  "node_modules/@esbuild/linux-arm64": {
1398
- "version": "0.25.1",
1399
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz",
1400
- "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==",
1401
  "cpu": [
1402
  "arm64"
1403
  ],
@@ -1412,9 +1412,9 @@
1412
  }
1413
  },
1414
  "node_modules/@esbuild/linux-ia32": {
1415
- "version": "0.25.1",
1416
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz",
1417
- "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==",
1418
  "cpu": [
1419
  "ia32"
1420
  ],
@@ -1429,9 +1429,9 @@
1429
  }
1430
  },
1431
  "node_modules/@esbuild/linux-loong64": {
1432
- "version": "0.25.1",
1433
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz",
1434
- "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==",
1435
  "cpu": [
1436
  "loong64"
1437
  ],
@@ -1446,9 +1446,9 @@
1446
  }
1447
  },
1448
  "node_modules/@esbuild/linux-mips64el": {
1449
- "version": "0.25.1",
1450
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz",
1451
- "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==",
1452
  "cpu": [
1453
  "mips64el"
1454
  ],
@@ -1463,9 +1463,9 @@
1463
  }
1464
  },
1465
  "node_modules/@esbuild/linux-ppc64": {
1466
- "version": "0.25.1",
1467
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz",
1468
- "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==",
1469
  "cpu": [
1470
  "ppc64"
1471
  ],
@@ -1480,9 +1480,9 @@
1480
  }
1481
  },
1482
  "node_modules/@esbuild/linux-riscv64": {
1483
- "version": "0.25.1",
1484
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz",
1485
- "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==",
1486
  "cpu": [
1487
  "riscv64"
1488
  ],
@@ -1497,9 +1497,9 @@
1497
  }
1498
  },
1499
  "node_modules/@esbuild/linux-s390x": {
1500
- "version": "0.25.1",
1501
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz",
1502
- "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==",
1503
  "cpu": [
1504
  "s390x"
1505
  ],
@@ -1514,9 +1514,9 @@
1514
  }
1515
  },
1516
  "node_modules/@esbuild/linux-x64": {
1517
- "version": "0.25.1",
1518
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz",
1519
- "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==",
1520
  "cpu": [
1521
  "x64"
1522
  ],
@@ -1531,9 +1531,9 @@
1531
  }
1532
  },
1533
  "node_modules/@esbuild/netbsd-arm64": {
1534
- "version": "0.25.1",
1535
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz",
1536
- "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==",
1537
  "cpu": [
1538
  "arm64"
1539
  ],
@@ -1548,9 +1548,9 @@
1548
  }
1549
  },
1550
  "node_modules/@esbuild/netbsd-x64": {
1551
- "version": "0.25.1",
1552
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz",
1553
- "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==",
1554
  "cpu": [
1555
  "x64"
1556
  ],
@@ -1565,9 +1565,9 @@
1565
  }
1566
  },
1567
  "node_modules/@esbuild/openbsd-arm64": {
1568
- "version": "0.25.1",
1569
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz",
1570
- "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==",
1571
  "cpu": [
1572
  "arm64"
1573
  ],
@@ -1582,9 +1582,9 @@
1582
  }
1583
  },
1584
  "node_modules/@esbuild/openbsd-x64": {
1585
- "version": "0.25.1",
1586
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz",
1587
- "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==",
1588
  "cpu": [
1589
  "x64"
1590
  ],
@@ -1599,9 +1599,9 @@
1599
  }
1600
  },
1601
  "node_modules/@esbuild/sunos-x64": {
1602
- "version": "0.25.1",
1603
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz",
1604
- "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==",
1605
  "cpu": [
1606
  "x64"
1607
  ],
@@ -1616,9 +1616,9 @@
1616
  }
1617
  },
1618
  "node_modules/@esbuild/win32-arm64": {
1619
- "version": "0.25.1",
1620
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz",
1621
- "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==",
1622
  "cpu": [
1623
  "arm64"
1624
  ],
@@ -1633,9 +1633,9 @@
1633
  }
1634
  },
1635
  "node_modules/@esbuild/win32-ia32": {
1636
- "version": "0.25.1",
1637
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz",
1638
- "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==",
1639
  "cpu": [
1640
  "ia32"
1641
  ],
@@ -1650,9 +1650,9 @@
1650
  }
1651
  },
1652
  "node_modules/@esbuild/win32-x64": {
1653
- "version": "0.25.1",
1654
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz",
1655
- "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==",
1656
  "cpu": [
1657
  "x64"
1658
  ],
@@ -7266,9 +7266,9 @@
7266
  }
7267
  },
7268
  "node_modules/alien-signals": {
7269
- "version": "1.0.10",
7270
- "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-1.0.10.tgz",
7271
- "integrity": "sha512-pBrgovDvA/c55/aA+ar5pxNCvjQB5IlODtpOQXmUyrpclWIsHmUMsfIuCWsSU/l1iLU2O3ZhICdPaYTsuvGu8Q==",
7272
  "dev": true,
7273
  "license": "MIT"
7274
  },
@@ -10835,9 +10835,9 @@
10835
  "license": "MIT"
10836
  },
10837
  "node_modules/esbuild": {
10838
- "version": "0.25.1",
10839
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz",
10840
- "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==",
10841
  "dev": true,
10842
  "hasInstallScript": true,
10843
  "license": "MIT",
@@ -10848,31 +10848,31 @@
10848
  "node": ">=18"
10849
  },
10850
  "optionalDependencies": {
10851
- "@esbuild/aix-ppc64": "0.25.1",
10852
- "@esbuild/android-arm": "0.25.1",
10853
- "@esbuild/android-arm64": "0.25.1",
10854
- "@esbuild/android-x64": "0.25.1",
10855
- "@esbuild/darwin-arm64": "0.25.1",
10856
- "@esbuild/darwin-x64": "0.25.1",
10857
- "@esbuild/freebsd-arm64": "0.25.1",
10858
- "@esbuild/freebsd-x64": "0.25.1",
10859
- "@esbuild/linux-arm": "0.25.1",
10860
- "@esbuild/linux-arm64": "0.25.1",
10861
- "@esbuild/linux-ia32": "0.25.1",
10862
- "@esbuild/linux-loong64": "0.25.1",
10863
- "@esbuild/linux-mips64el": "0.25.1",
10864
- "@esbuild/linux-ppc64": "0.25.1",
10865
- "@esbuild/linux-riscv64": "0.25.1",
10866
- "@esbuild/linux-s390x": "0.25.1",
10867
- "@esbuild/linux-x64": "0.25.1",
10868
- "@esbuild/netbsd-arm64": "0.25.1",
10869
- "@esbuild/netbsd-x64": "0.25.1",
10870
- "@esbuild/openbsd-arm64": "0.25.1",
10871
- "@esbuild/openbsd-x64": "0.25.1",
10872
- "@esbuild/sunos-x64": "0.25.1",
10873
- "@esbuild/win32-arm64": "0.25.1",
10874
- "@esbuild/win32-ia32": "0.25.1",
10875
- "@esbuild/win32-x64": "0.25.1"
10876
  }
10877
  },
10878
  "node_modules/escalade": {
 
1242
  }
1243
  },
1244
  "node_modules/@esbuild/aix-ppc64": {
1245
+ "version": "0.25.2",
1246
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz",
1247
+ "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==",
1248
  "cpu": [
1249
  "ppc64"
1250
  ],
 
1259
  }
1260
  },
1261
  "node_modules/@esbuild/android-arm": {
1262
+ "version": "0.25.2",
1263
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz",
1264
+ "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==",
1265
  "cpu": [
1266
  "arm"
1267
  ],
 
1276
  }
1277
  },
1278
  "node_modules/@esbuild/android-arm64": {
1279
+ "version": "0.25.2",
1280
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz",
1281
+ "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==",
1282
  "cpu": [
1283
  "arm64"
1284
  ],
 
1293
  }
1294
  },
1295
  "node_modules/@esbuild/android-x64": {
1296
+ "version": "0.25.2",
1297
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz",
1298
+ "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==",
1299
  "cpu": [
1300
  "x64"
1301
  ],
 
1310
  }
1311
  },
1312
  "node_modules/@esbuild/darwin-arm64": {
1313
+ "version": "0.25.2",
1314
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz",
1315
+ "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==",
1316
  "cpu": [
1317
  "arm64"
1318
  ],
 
1327
  }
1328
  },
1329
  "node_modules/@esbuild/darwin-x64": {
1330
+ "version": "0.25.2",
1331
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz",
1332
+ "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==",
1333
  "cpu": [
1334
  "x64"
1335
  ],
 
1344
  }
1345
  },
1346
  "node_modules/@esbuild/freebsd-arm64": {
1347
+ "version": "0.25.2",
1348
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz",
1349
+ "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==",
1350
  "cpu": [
1351
  "arm64"
1352
  ],
 
1361
  }
1362
  },
1363
  "node_modules/@esbuild/freebsd-x64": {
1364
+ "version": "0.25.2",
1365
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz",
1366
+ "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==",
1367
  "cpu": [
1368
  "x64"
1369
  ],
 
1378
  }
1379
  },
1380
  "node_modules/@esbuild/linux-arm": {
1381
+ "version": "0.25.2",
1382
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz",
1383
+ "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==",
1384
  "cpu": [
1385
  "arm"
1386
  ],
 
1395
  }
1396
  },
1397
  "node_modules/@esbuild/linux-arm64": {
1398
+ "version": "0.25.2",
1399
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz",
1400
+ "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==",
1401
  "cpu": [
1402
  "arm64"
1403
  ],
 
1412
  }
1413
  },
1414
  "node_modules/@esbuild/linux-ia32": {
1415
+ "version": "0.25.2",
1416
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz",
1417
+ "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==",
1418
  "cpu": [
1419
  "ia32"
1420
  ],
 
1429
  }
1430
  },
1431
  "node_modules/@esbuild/linux-loong64": {
1432
+ "version": "0.25.2",
1433
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz",
1434
+ "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==",
1435
  "cpu": [
1436
  "loong64"
1437
  ],
 
1446
  }
1447
  },
1448
  "node_modules/@esbuild/linux-mips64el": {
1449
+ "version": "0.25.2",
1450
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz",
1451
+ "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==",
1452
  "cpu": [
1453
  "mips64el"
1454
  ],
 
1463
  }
1464
  },
1465
  "node_modules/@esbuild/linux-ppc64": {
1466
+ "version": "0.25.2",
1467
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz",
1468
+ "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==",
1469
  "cpu": [
1470
  "ppc64"
1471
  ],
 
1480
  }
1481
  },
1482
  "node_modules/@esbuild/linux-riscv64": {
1483
+ "version": "0.25.2",
1484
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz",
1485
+ "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==",
1486
  "cpu": [
1487
  "riscv64"
1488
  ],
 
1497
  }
1498
  },
1499
  "node_modules/@esbuild/linux-s390x": {
1500
+ "version": "0.25.2",
1501
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz",
1502
+ "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==",
1503
  "cpu": [
1504
  "s390x"
1505
  ],
 
1514
  }
1515
  },
1516
  "node_modules/@esbuild/linux-x64": {
1517
+ "version": "0.25.2",
1518
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz",
1519
+ "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==",
1520
  "cpu": [
1521
  "x64"
1522
  ],
 
1531
  }
1532
  },
1533
  "node_modules/@esbuild/netbsd-arm64": {
1534
+ "version": "0.25.2",
1535
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz",
1536
+ "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==",
1537
  "cpu": [
1538
  "arm64"
1539
  ],
 
1548
  }
1549
  },
1550
  "node_modules/@esbuild/netbsd-x64": {
1551
+ "version": "0.25.2",
1552
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz",
1553
+ "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==",
1554
  "cpu": [
1555
  "x64"
1556
  ],
 
1565
  }
1566
  },
1567
  "node_modules/@esbuild/openbsd-arm64": {
1568
+ "version": "0.25.2",
1569
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz",
1570
+ "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==",
1571
  "cpu": [
1572
  "arm64"
1573
  ],
 
1582
  }
1583
  },
1584
  "node_modules/@esbuild/openbsd-x64": {
1585
+ "version": "0.25.2",
1586
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz",
1587
+ "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==",
1588
  "cpu": [
1589
  "x64"
1590
  ],
 
1599
  }
1600
  },
1601
  "node_modules/@esbuild/sunos-x64": {
1602
+ "version": "0.25.2",
1603
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz",
1604
+ "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==",
1605
  "cpu": [
1606
  "x64"
1607
  ],
 
1616
  }
1617
  },
1618
  "node_modules/@esbuild/win32-arm64": {
1619
+ "version": "0.25.2",
1620
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz",
1621
+ "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==",
1622
  "cpu": [
1623
  "arm64"
1624
  ],
 
1633
  }
1634
  },
1635
  "node_modules/@esbuild/win32-ia32": {
1636
+ "version": "0.25.2",
1637
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz",
1638
+ "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==",
1639
  "cpu": [
1640
  "ia32"
1641
  ],
 
1650
  }
1651
  },
1652
  "node_modules/@esbuild/win32-x64": {
1653
+ "version": "0.25.2",
1654
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz",
1655
+ "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==",
1656
  "cpu": [
1657
  "x64"
1658
  ],
 
7266
  }
7267
  },
7268
  "node_modules/alien-signals": {
7269
+ "version": "1.0.13",
7270
+ "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-1.0.13.tgz",
7271
+ "integrity": "sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg==",
7272
  "dev": true,
7273
  "license": "MIT"
7274
  },
 
10835
  "license": "MIT"
10836
  },
10837
  "node_modules/esbuild": {
10838
+ "version": "0.25.2",
10839
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz",
10840
+ "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==",
10841
  "dev": true,
10842
  "hasInstallScript": true,
10843
  "license": "MIT",
 
10848
  "node": ">=18"
10849
  },
10850
  "optionalDependencies": {
10851
+ "@esbuild/aix-ppc64": "0.25.2",
10852
+ "@esbuild/android-arm": "0.25.2",
10853
+ "@esbuild/android-arm64": "0.25.2",
10854
+ "@esbuild/android-x64": "0.25.2",
10855
+ "@esbuild/darwin-arm64": "0.25.2",
10856
+ "@esbuild/darwin-x64": "0.25.2",
10857
+ "@esbuild/freebsd-arm64": "0.25.2",
10858
+ "@esbuild/freebsd-x64": "0.25.2",
10859
+ "@esbuild/linux-arm": "0.25.2",
10860
+ "@esbuild/linux-arm64": "0.25.2",
10861
+ "@esbuild/linux-ia32": "0.25.2",
10862
+ "@esbuild/linux-loong64": "0.25.2",
10863
+ "@esbuild/linux-mips64el": "0.25.2",
10864
+ "@esbuild/linux-ppc64": "0.25.2",
10865
+ "@esbuild/linux-riscv64": "0.25.2",
10866
+ "@esbuild/linux-s390x": "0.25.2",
10867
+ "@esbuild/linux-x64": "0.25.2",
10868
+ "@esbuild/netbsd-arm64": "0.25.2",
10869
+ "@esbuild/netbsd-x64": "0.25.2",
10870
+ "@esbuild/openbsd-arm64": "0.25.2",
10871
+ "@esbuild/openbsd-x64": "0.25.2",
10872
+ "@esbuild/sunos-x64": "0.25.2",
10873
+ "@esbuild/win32-arm64": "0.25.2",
10874
+ "@esbuild/win32-ia32": "0.25.2",
10875
+ "@esbuild/win32-x64": "0.25.2"
10876
  }
10877
  },
10878
  "node_modules/escalade": {