diff --git "a/.output/public/assets/main-BHXR-KLt.js" "b/.output/public/assets/main-BHXR-KLt.js" new file mode 100644--- /dev/null +++ "b/.output/public/assets/main-BHXR-KLt.js" @@ -0,0 +1,1306 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DSrorEDA.js","./global-D3BYkvaa.js","./global-BBPDszaw.css","./ChatInput.vue_vue_type_style_index_0_lang-BF_ESh-7.js","./index-UDqjXop5.js","./index-Btrwuqar.js","./index-COWnL8XW.js","./index-dIOYMMBF.css","./dep-916b902f-Cn0S6Rgc.js","./index-BZuyLcM6.css","./_commonjs-dynamic-modules-BHR_E30J.js","./index-CqIJcWep.js","./index-CIhn6Q_x.css","./ChatInput-BMuO6hgs.css","./app-_ksMLlTy.js","./index-CFf_Ho28.js","./index-XXxXkjQE.css","./v4-_R2nDvl_.js","./index-BO1LBToO.js","./index-Cg5ihCA-.css","./index-DWphMrS1.css","./chat-Bk-d2e60.js","./avatar.vue_vue_type_script_setup_true_lang-BASxWw7j.js","./refresh-DaGPhaEH.js","./index-CYx4j8rU.js","./index-DTZnpgd-.css","./index-DnHwCcNj.js","./form-model-BuU6gmb2.js","./form-model-BANeuwVW.css","./index-Cuo7O5Im.css","./lyihub-CcSYfJzB.js","./lyihub-Bco7WNuk.css","./index-BSjyIt_w.js","./index-wQ5-px18.css","./fetch-DgHGEove.js","./debounce-Tt5OIvUe.js","./CodeBlocks.vue_vue_type_style_index_0_lang-NSVyPaRs.js","./markdown-b73q677t.js","./copy-BBWLw_FM.js","./CodeBlocks-CllJyOW7.css","./useVirtualScrollNew-Ck-yq0Qe.js","./ellipsis-CUguZ874.js","./chat-DcH-HSRP.css","./index-B0yFS2PK.js","./plus-B1xA9W2T.js","./index-D5r9_V6Z.css","./index-seAfbiMq.js","./delete-1-QUTFWdbE.js","./index-YIxyi2hk.js","./index-L5AGF2i2.css","./index-BpojDYFf.js","./index-CkF9ks1N.js","./FrameContent-DW5sdLoA.js","./FrameContent-CUoI637t.css","./about-CdYB6Ic4.js","./help-Dzm7LGdY.js","./changelog-BLu10RIw.js","./index-9YghBFZ7.js","./index-DcpcXD6o.css","./content-B1prbsh0.js","./content-CXerDfC_.css"])))=>i.map(i=>d[i]); +var e;import{E as t,u as n,r,a as o,o as i,b as a,_ as l,i as s,c,d as u,g as f,e as d,f as p,h,j as v,L as m,k as g,l as y,m as b,n as O,w as E,p as S,q as _,s as w,t as x,v as C,x as T,y as A,z as P,A as N,B as I,C as D,D as j,F as k,G as R,H as M,I as L,J as F,K as V,M as B,N as X,O as U,P as z,Q as H,R as W,S as G,T as $,U as q,V as Y,W as K,X as J,Y as Q,Z,$ as ee,a0 as te,a1 as ne,a2 as re,a3 as oe,a4 as ie,a5 as ae,a6 as le,a7 as se,a8 as ce,a9 as ue,aa as fe,ab as de,ac as pe,ad as he,ae as ve,af as me,ag as ge,ah as ye,ai as be,aj as Oe,ak as Ee,al as Se,am as _e,an as we,ao as xe,ap as Ce,aq as Te,ar as Ae,as as Pe,at as Ne,au as Ie,av as De,aw as je,ax as ke,ay as Re,az as Me,aA as Le,aB as Fe,aC as Ve,aD as Be,aE as Xe,aF as Ue,aG as ze,aH as He,aI as We,aJ as Ge,aK as $e,aL as qe,aM as Ye,aN as Ke,aO as Je,aP as Qe,aQ as Ze,aR as et,aS as tt,aT as nt,aU as rt,aV as ot,aW as it,aX as at,aY as lt,aZ as st,a_ as ct,a$ as ut,b0 as ft,b1 as dt,b2 as pt,b3 as ht,b4 as vt,b5 as mt,b6 as gt,b7 as yt,b8 as bt,b9 as Ot,ba as Et,bb as St,bc as _t,bd as wt,be as xt,bf as Ct,bg as Tt,bh as At,bi as Pt,bj as Nt,bk as It,bl as Dt,bm as jt,bn as kt,bo as Rt,bp as Mt,bq as Lt,br as Ft,bs as Vt,bt as Bt,bu as Xt,bv as Ut,bw as zt,bx as Ht}from"./global-D3BYkvaa.js"; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */function Wt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r0?a:0,s=r.offsetWidth,d=r.offsetHeight;null===c.value.parentNode&&(Jt(c.value,{position:"absolute",left:"".concat(0-l,"px"),top:"".concat(0-l,"px"),width:"".concat(s,"px"),height:"".concat(d,"px"),borderRadius:i.borderRadius,pointerEvents:"none",overflow:"hidden"}),r.appendChild(c.value));var p=document.createElement("div");Jt(p,{marginTop:"0",marginLeft:"0",right:"".concat(s,"px"),width:"".concat(s+20,"px"),height:"100%",transition:"transform ".concat(200,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(400,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:o,opacity:"0.9"});for(var h=new WeakMap,v=r.children.length,m=0;me.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-add",o.value])),l=c((()=>sn(sn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(cn,s.value)}});function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-chat-setting",o.value])),l=c((()=>dn(dn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(pn,s.value)}});function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-chevron-left",o.value])),l=c((()=>mn(mn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(gn,s.value)}});function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-chevron-right",o.value])),l=c((()=>On(On({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(En,s.value)}});function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-delete-time",o.value])),l=c((()=>wn(wn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(xn,s.value)}});function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-file",o.value])),l=c((()=>An(An({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(Pn,s.value)}});function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-image-error",o.value])),l=c((()=>Dn(Dn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(jn,s.value)}});function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-image",o.value])),l=c((()=>Mn(Mn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(Ln,s.value)}});function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-list",o.value])),l=c((()=>Bn(Bn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(Xn,s.value)}});function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-setting",o.value])),l=c((()=>Hn(Hn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(Wn,s.value)}});function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-sticky-note",o.value])),l=c((()=>qn(qn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(Yn,s.value)}});function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;te.size)),{className:o,style:i}=S(r),a=c((()=>["t-icon","t-icon-system-setting",o.value])),l=c((()=>Qn(Qn({},i.value),n.style))),s=c((()=>({class:a.value,style:l.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>_(Zn,s.value)}}),tr=function(e){return e<768?"xs":e>=768&&e<992?"sm":e>=992&&e<1200?"md":e>=1200&&e<1400?"lg":e>=1400&&e<1880?"xl":"xxl"}; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function nr(e,t){i((function(){window.addEventListener(e,t)})),x((function(){window.removeEventListener(e,t)}))} +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t=0),"".concat(e,"-").concat(r,"-offset-").concat(i.offset),parseInt(i.offset,10)>=0),"".concat(e,"-").concat(r,"-push-").concat(i.push),parseInt(i.push,10)>=0),"".concat(e,"-").concat(r,"-pull-").concat(i.pull),parseInt(i.pull,10)>=0))}),{});return or(h(h(h(h(h(h({},"".concat(e),!0),"".concat(e,"-").concat(n),!Gt(n)),"".concat(e,"-order-").concat(r),r),"".concat(e,"-offset-").concat(o),o),"".concat(e,"-push-").concat(i),i),"".concat(e,"-pull-").concat(a),a),l)}(t.value,e)})),l=c((function(){var t,n,o,a,l,s={},c=e.flex;if(c&&(s.flex=function(e){return C(e)?"".concat(e," ").concat(e," 0"):/^\d+(\.\d+)?(px|r?em|%)$/.test(e)?"0 0 ".concat(e):e}(c)),r){var u=r.gutter;Object.assign(s,(t=u,n=i.value,o={},a=function(e){return Object.assign(o,{paddingLeft:"".concat(e/2,"px"),paddingRight:"".concat(e/2,"px")})},l={isNumber:function(e){C(e)&&a(e)},isArray:function(e){A(e)&&e.length&&(C(e[0])&&a(e[0]),T(e[0])&&e[0][n]&&a(e[0][n]))},isObject:function(e){T(e)&&e[n]&&a(e[n])}},Object.keys(l).forEach((function(e){l[e](t)})),o))}return s}));return function(){var t,r,o=e.tag;return v(o,{class:a.value,style:l.value},"function"==typeof(r=t=n("default"))||"[object Object]"===Object.prototype.toString.call(r)&&!j(r)?t:{default:function(){return[t]}})}}}),ur=E(lr),fr=E(cr),dr=d({name:"TLayout",setup:function(){var e=r(!1),t=b(),n=o("layout"),i=c((function(){return[n.value,h({},"".concat(n.value,"--with-sider"),e.value)]}));return I("layout",{hasSide:e}),function(){return v("section",{class:i.value},[t("default")])}}}),pr=d({name:"THeader",props:{height:{type:String,default:""}},setup:function(e){var t=o("layout__header"),n=b();return function(){return v("header",{class:t.value,style:e.height?{height:e.height}:{}},[n("default")])}}}),hr=d({name:"TFooter",props:{height:{type:String,default:""}},setup:function(e){var t=o("layout__footer"),n=b();return function(){return v("footer",{class:t.value,style:e.height?{height:e.height}:{}},[n("default")])}}}),vr=d({name:"TAside",props:{width:{type:String,default:""}},setup:function(e){var t=u("layout",Object.create(null)).hasSide,n=o("layout__sider"),r=b();if(t)return i((function(){t.value=!0})),a((function(){t.value=!1})),function(){var t=e.width?{width:e.width}:{};return v("aside",{class:n.value,style:t},[r("default")])}}}),mr=d({name:"TContent",setup:function(){var e=o("layout__content"),t=b();return function(){return v("main",{class:e.value},[t("default")])}}}),gr=E(vr),yr=E(dr),br=E(pr),Or=E(hr),Er=E(mr),Sr={align:{type:String,validator:function(e){return!e||["start","end","center","baseline"].includes(e)}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return!e||["vertical","horizontal"].includes(e)}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:"medium"}}; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function _r(){var e=f();return function(t,n){var r,o;n||(n=e.slots);var i=(null===(r=n)||void 0===r||null===(o=r.default)||void 0===o?void 0:o.call(r))||[];return k(i).filter((function(e){var n;return null===(n=e.type.name)||void 0===n?void 0:n.endsWith(t)}))}} +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}},o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Dr),Dr.exports;var kr=Dr.exports(),Rr=kr;try{regeneratorRuntime=kr}catch(hy){"object"===("undefined"==typeof globalThis?"undefined":R(globalThis))?globalThis.regeneratorRuntime=kr:Function("r","regeneratorRuntime = r")(kr)}var Mr="top",Lr="bottom",Fr="right",Vr="left",Br="auto",Xr=[Mr,Lr,Fr,Vr],Ur="start",zr="end",Hr="viewport",Wr="popper",Gr=Xr.reduce((function(e,t){return e.concat([t+"-"+Ur,t+"-"+zr])}),[]),$r=[].concat(Xr,[Br]).reduce((function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+zr])}),[]),qr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yr(e){return e?(e.nodeName||"").toLowerCase():null}function Kr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jr(e){return e instanceof Kr(e).Element||e instanceof Element}function Qr(e){return e instanceof Kr(e).HTMLElement||e instanceof HTMLElement}function Zr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kr(e).ShadowRoot||e instanceof ShadowRoot)}const eo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Qr(o)&&Yr(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Qr(r)&&Yr(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function to(e){return e.split("-")[0]}var no=Math.max,ro=Math.min,oo=Math.round;function io(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ao(){return!/^((?!chrome|android).)*safari/i.test(io())}function lo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Qr(e)&&(o=e.offsetWidth>0&&oo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&oo(r.height)/e.offsetHeight||1);var a=(Jr(e)?Kr(e):window).visualViewport,l=!ao()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,f=r.height/i;return{width:u,height:f,top:c,right:s+u,bottom:c+f,left:s,x:s,y:c}}function so(e){var t=lo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function co(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uo(e){return Kr(e).getComputedStyle(e)}function fo(e){return["table","td","th"].indexOf(Yr(e))>=0}function po(e){return((Jr(e)?e.ownerDocument: +// $FlowFixMe[prop-missing] +e.document)||window.document).documentElement}function ho(e){return"html"===Yr(e)?e: +// this is a quicker (but less type safe) way to save quite some bytes from the bundle +// $FlowFixMe[incompatible-return] +// $FlowFixMe[prop-missing] +e.assignedSlot||// step into the shadow DOM of the parent of a slotted node +e.parentNode||(// DOM Element detected +Zr(e)?e.host:null)||// ShadowRoot detected +// $FlowFixMe[incompatible-call]: HTMLElement is a Node +po(e)}function vo(e){return Qr(e)&&// https://github.com/popperjs/popper-core/issues/837 +"fixed"!==uo(e).position?e.offsetParent:null}function mo(e){for(var t=Kr(e),n=vo(e);n&&fo(n)&&"static"===uo(n).position;)n=vo(n);return n&&("html"===Yr(n)||"body"===Yr(n)&&"static"===uo(n).position)?t:n||function(e){var t=/firefox/i.test(io());if(/Trident/i.test(io())&&Qr(e)&&"fixed"===uo(e).position)return null;var n=ho(e);for(Zr(n)&&(n=n.host);Qr(n)&&["html","body"].indexOf(Yr(n))<0;){var r=uo(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yo(e,t,n){return no(e,ro(t,n))}function bo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Oo(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Eo(e){return e.split("-")[1]}var So={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _o(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,h=a.y,v=void 0===h?0:h,m="function"==typeof u?u({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Vr,O=Mr,E=window;if(c){var S=mo(n),_="clientHeight",w="clientWidth";if(S===Kr(n)&&"static"!==uo(S=po(n)).position&&"absolute"===l&&(_="scrollHeight",w="scrollWidth"),o===Mr||(o===Vr||o===Fr)&&i===zr)O=Lr,v-=(f&&S===E&&E.visualViewport?E.visualViewport.height: +// $FlowFixMe[prop-missing] +S[_])-r.height,v*=s?1:-1;if(o===Vr||(o===Mr||o===Lr)&&i===zr)b=Fr,p-=(f&&S===E&&E.visualViewport?E.visualViewport.width: +// $FlowFixMe[prop-missing] +S[w])-r.width,p*=s?1:-1}var x,C=Object.assign({position:l},c&&So),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:oo(n*o)/o||0,y:oo(r*o)/o||0}}({x:p,y:v},Kr(n)):{x:p,y:v};return p=T.x,v=T.y,s?Object.assign({},C,((x={})[O]=y?"0":"",x[b]=g?"0":"",x.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",x)):Object.assign({},C,((t={})[O]=y?v+"px":"",t[b]=g?p+"px":"",t.transform="",t))}var wo={passive:!0};var xo={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,(function(e){return xo[e]}))}var To={start:"end",end:"start"};function Ao(e){return e.replace(/start|end/g,(function(e){return To[e]}))}function Po(e){var t=Kr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function No(e){return lo(po(e)).left+Po(e).scrollLeft}function Io(e){var t=uo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Do(e){return["html","body","#document"].indexOf(Yr(e))>=0?e.ownerDocument.body:Qr(e)&&Io(e)?e:Do(ho(e))}function jo(e,t){var n;void 0===t&&(t=[]);var r=Do(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Kr(r),a=o?[i].concat(i.visualViewport||[],Io(r)?r:[]):r,l=t.concat(a);return o?l: +// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here +l.concat(jo(ho(a)))}function ko(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ro(e,t,n){return t===Hr?ko(function(e,t){var n=Kr(e),r=po(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=ao();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+No(e),y:s}}(e,n)):Jr(t)?function(e,t){var n=lo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ko(function(e){var t,n=po(e),r=Po(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=no(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=no(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+No(e),s=-r.scrollTop;return"rtl"===uo(o||n).direction&&(l+=no(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(po(e)))}function Mo(e,t,n,r){var o="clippingParents"===t?function(e){var t=jo(ho(e)),n=["absolute","fixed"].indexOf(uo(e).position)>=0&&Qr(e)?mo(e):e;return Jr(n)?t.filter((function(e){return Jr(e)&&co(e,n)&&"body"!==Yr(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Ro(e,n,r);return t.top=no(o.top,t.top),t.right=ro(o.right,t.right),t.bottom=ro(o.bottom,t.bottom),t.left=no(o.left,t.left),t}),Ro(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Lo(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?to(o):null,a=o?Eo(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Mr:t={x:l,y:n.y-r.height};break;case Lr:t={x:l,y:n.y+n.height};break;case Fr:t={x:n.x+n.width,y:s};break;case Vr:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?go(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ur:t[c]=t[c]-(n[u]/2-r[u]/2);break;case zr:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Fo(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Hr:c,f=n.elementContext,d=void 0===f?Wr:f,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,m=void 0===v?0:v,g=bo("number"!=typeof m?m:Oo(m,Xr)),y=d===Wr?"reference":Wr,b=e.rects.popper,O=e.elements[h?y:d],E=Mo(Jr(O)?O:O.contextElement||po(e.elements.popper),s,u,a),S=lo(e.elements.reference),_=Lo({reference:S,element:b,strategy:"absolute",placement:o}),w=ko(Object.assign({},b,_)),x=d===Wr?w:S,C={top:E.top-x.top+g.top,bottom:x.bottom-E.bottom+g.bottom,left:E.left-x.left+g.left,right:x.right-E.right+g.right},T=e.modifiersData.offset;if(d===Wr&&T){var A=T[o];Object.keys(C).forEach((function(e){var t=[Fr,Lr].indexOf(e)>=0?1:-1,n=[Mr,Lr].indexOf(e)>=0?"y":"x";C[e]+=A[n]*t}))}return C}function Vo(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Bo(e){return[Mr,Fr,Lr,Vr].some((function(t){return e[t]>=0}))}function Xo(e,t,n){void 0===n&&(n=!1);var r,o,i=Qr(t),a=Qr(t)&&function(e){var t=e.getBoundingClientRect(),n=oo(t.width)/e.offsetWidth||1,r=oo(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=po(t),s=lo(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==Yr(t)||// https://github.com/popperjs/popper-core/issues/1078 +Io(l))&&(c=(r=t)!==Kr(r)&&Qr(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Po(r)),Qr(t)?((u=lo(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=No(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Uo(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var zo={placement:"bottom",modifiers:[],strategy:"absolute"};function Ho(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Vr,Fr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,g=to(m),y=s||(g===m||!h?[Co(m)]:function(e){if(to(e)===Br)return[];var t=Co(e);return[Ao(e),t,Ao(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(to(n)===Br?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?$r:s,u=Eo(r),f=u?l?Gr:Gr.filter((function(e){return Eo(e)===u})):Xr,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Fo(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[to(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),O=t.rects.reference,E=t.rects.popper,S=new Map,_=!0,w=b[0],x=0;x=0,N=P?"width":"height",I=Fo(t,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),D=P?A?Fr:Vr:A?Lr:Mr;O[N]>E[N]&&(D=Co(D));var j=Co(D),k=[];if(i&&k.push(I[T]<=0),l&&k.push(I[D]<=0,I[j]<=0),k.every((function(e){return e}))){w=C,_=!1;break}S.set(C,k)}if(_)for(var R=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},M=h?3:1;M>0;M--){if("break"===R(M))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,m=Fo(t,{boundary:s,rootBoundary:c,padding:f,altBoundary:u}),g=to(t.placement),y=Eo(t.placement),b=!y,O=go(g),E="x"===O?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,w=t.rects.popper,x="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,C="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(i){var P,N="y"===O?Mr:Vr,I="y"===O?Lr:Fr,D="y"===O?"height":"width",j=S[O],k=j+m[N],R=j-m[I],M=p?-w[D]/2:0,L=y===Ur?_[D]:w[D],F=y===Ur?-w[D]:-_[D],V=t.elements.arrow,B=p&&V?so(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=X[N],z=X[I],H=yo(0,_[D],B[D]),W=b?_[D]/2-M-H-U-C.mainAxis:L-H-U-C.mainAxis,G=b?-_[D]/2+M+H+z+C.mainAxis:F+H+z+C.mainAxis,$=t.elements.arrow&&mo(t.elements.arrow),q=$?"y"===O?$.clientTop||0:$.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[O])?P:0,K=j+G-Y,J=yo(p?ro(k,j+W-Y-q):k,j,p?no(R,K):R);S[O]=J,A[O]=J-j}if(l){var Q,Z="x"===O?Mr:Vr,ee="x"===O?Lr:Fr,te=S[E],ne="y"===E?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[Mr,Vr].indexOf(g),ae=null!=(Q=null==T?void 0:T[E])?Q:0,le=ie?re:te-_[ne]-w[ne]-ae+C.altAxis,se=ie?te+_[ne]+w[ne]-ae-C.altAxis:oe,ce=p&&ie?(fe=yo(le,te,ue=se))>ue?ue:fe:yo(p?le:re,te,p?se:oe);S[E]=ce,A[E]=ce-te}var ue,fe;t.modifiersData[r]=A}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=to(n.placement),s=go(l),c=[Vr,Fr].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return bo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Oo(e,Xr))}(o.padding,n),f=so(i),d="y"===s?Mr:Vr,p="y"===s?Lr:Fr,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],v=a[s]-n.rects.reference[s],m=mo(i),g=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,y=h/2-v/2,b=u[d],O=g-f[c]-u[p],E=g/2-f[c]/2+y,S=yo(b,E,O),_=s;n.modifiersData[r]=((t={})[_]=S,t.centerOffset=S-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&co(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Fo(t,{elementContext:"reference"}),l=Fo(t,{altBoundary:!0}),s=Vo(a,r),c=Vo(l,o,i),u=Bo(s),f=Bo(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),$o=/\s/;var qo=function(e){for(var t=e.length;t--&&$o.test(e.charAt(t)););return t},Yo=/^\s+/;var Ko=function(e){return e?e.slice(0,qo(e)+1).replace(Yo,""):e},Jo=T,Qo=U,Zo=/^[-+]0x[0-9a-f]+$/i,ei=/^0b[01]+$/i,ti=/^0o[0-7]+$/i,ni=parseInt;var ri=z,oi=T,ii=function(){return ri.Date.now()},ai=function(e){if("number"==typeof e)return e;if(Qo(e))return NaN;if(Jo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ko(e);var n=ei.test(e);return n||ti.test(e)?ni(e.slice(2),n?2:8):Zo.test(e)?NaN:+e},li=Math.max,si=Math.min; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */var ci=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=ii();if(h(e))return m(e);l=setTimeout(v,function(e){var n=t-(e-s);return f?si(n,i-(e-c)):n}(e))}function m(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function g(){var e=ii(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(v,t),u?p(e):a}(s);if(f)return clearTimeout(l),l=setTimeout(v,t),p(s)}return void 0===l&&(l=setTimeout(v,t)),a}return t=ai(t)||0,oi(n)&&(u=!!n.leading,i=(f="maxWait"in n)?li(ai(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},g.flush=function(){return void 0===l?a:m(ii())},g}; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */function ui(e,t,n,o){var i=f(),a=i.emit,l=i.vnode,s=r(),c=l.props||{};return Object.prototype.hasOwnProperty.call(c,o)||Object.prototype.hasOwnProperty.call(c,H(o))?[e,function(e){a("update:".concat(o),e);for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1?t-1:0),o=1;o4&&void 0!==arguments[4]?arguments[4]:"value",a=f(),l=a.emit,s=a.vnode,c=r(),u=s.props||{},d=Object.prototype.hasOwnProperty.call(u,"modelValue")||Object.prototype.hasOwnProperty.call(u,"model-value"),p=Object.prototype.hasOwnProperty.call(u,i)||Object.prototype.hasOwnProperty.call(u,H(i));return d?[t,function(e){l("update:modelValue",e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r=Si.KB&&e=Si.MB&&e=Si.GB?"".concat((e/Si.GB).toFixed(1)," GB"):""}function wi(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Date,n=t.getMonth()+1;n=n<10?"0".concat(n):n;var r="".concat(t.getFullYear(),"-").concat(n,"-").concat(t.getDate()),o="".concat(t.getHours(),":").concat(t.getMinutes(),":").concat(t.getSeconds());return e?[r,o].join(" "):r}function xi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=e,o=0,i=0;if(!r)return"";for(var a=0;aa-n&&i=1024&&e<1048576?"".concat((e/1024).toFixed(1)," KB"):e>=1048576?"".concat((e/1048576).toFixed(1)," MB"):""}function Ti(e,t,n){var r=["B","KB","MB","GB"],o=r.indexOf(n);return-1===o&&(hi.warn("Upload","`sizeLimit.unit` can only be one of ".concat(r.join())),o=1),e>t*Si[n]}function Ai(e,t,n){var r=t||n;if(!e)return!0;if(!r)return!1;for(var o=e.split(",").map((function(e){return e.trim()})),i=0,a=o.length;i1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){A(t)?e.push.apply(e,g(t)):t.type===L?e.push.apply(e,g(ji(t.children))):e.push(t)})),e.filter((function(e){return!(e&&(e.type===M||e.type===L&&0===e.children.length||e.type===q&&""===e.children.trim()))}))}function ki(e){var t=f(),n=r();return i((function(){n.value=e(t)})),W((function(){var r=e(t);n.value!==r&&(n.value=r)})),n}var Ri=d({name:"TPopupTrigger",props:{forwardRef:Function},emits:["resize"],setup:function(e,t){var n=t.emit,o=t.slots,i=ki((function(e){return e.parent.vnode.el.nextElementSibling})),a=r();return G(i,(function(){var t;null===(t=e.forwardRef)||void 0===t||t.call(e,i.value)})),Di(i,(function(e){var t=B(e,1)[0].contentRect;a.value=t})),G(a,(function(e,t){var r,o;o=t,!(r=e)&&!o||r&&o&&!["width","height","x","y"].some((function(e){return r[e]!==o[e]}))||n("resize")})),function(){var e,t,n=ji(null===(e=o.default)||void 0===e?void 0:e.call(o));return n.length>1||(null===(t=n[0])||void 0===t?void 0:t.type)===q?v("span",null,[n]):n[0]}}}),Mi=d({name:"TPopupContent",emits:["resize"],setup:function(e,t){var n=t.emit,r=t.slots;return Di(ki((function(e){return e.vnode.el.children[0]})),(function(){n("resize")})),function(){return v("div",{style:"position: absolute; top: 0px; left: 0px; width: 100%"},[r.default()])}}}),Li=d({name:"TPopupContainer",inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:Ii.attach,forwardRef:Function},emits:["resize","contentMounted"],setup:function(e,t){var n=t.emit,o=t.attrs,a=t.slots,l=t.expose,s=r(),c=r(!1);function u(){n("resize")}return i((function(){requestAnimationFrame((function(){c.value=e.visible}))})),G((function(){return e.visible}),(function(t){t&&(c.value=e.visible)})),l({unmountContent:function(){c.value=!1}}),function(){var t,r,i=function(){return Y()||K(e.attach,s.value)};return v(L,null,[v(Ri,{class:o.class,forwardRef:function(t){e.forwardRef(t),s.value=t},onResize:u},(r=t=a.default(),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!j(r)?t:{default:function(){return[t]}})),c.value&&v($,{disabled:!i(),to:i()},{default:function(){return[v(Mi,{onResize:u,onVnodeMounted:function(){return n("contentMounted")}},{default:function(){return[a.content&&a.content()]}})]}})])}}}),Fi={};function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;tn.x&&t.xn.y&&t.y0&&r(s)?n>1?e(s,n-1,r,o,i):Qi(i,s):o||(i[i.length]=s)}return i},ta=ea;var na=function(e){return(null==e?0:e.length)?ta(e,1):[]},ra=se,oa=ce;var ia=function(e){return oa(ra(e,void 0,na),e+"")},aa=be,la=Oe; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */var sa=me,ca=qi,ua=function(e,t){return t.length<2?e:aa(e,la(t,0,-1))},fa=ge;var da=ye;var pa=de,ha=ve,va=function(e,t){return t=sa(t,e),null==(e=ua(e,t))||delete e[fa(ca(t))]},ma=me,ga=pe,ya=function(e){return da(e)?void 0:e},ba=he,Oa=ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=pa(t,(function(t){return t=ma(t,e),r||(r=t.length>1),t})),ga(e,ba(e),n),r&&(n=ha(n,7,ya));for(var o=t.length;o--;)va(n,t[o]);return n})),Ea={delay:{type:Number},destroyOnClose:{type:Boolean,default:!0},duration:{type:Number},placement:{type:String,default:"top"},showArrow:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return!e||["default","primary","success","danger","warning","light"].includes(e)}}}; +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t0)for(var n=0,r=e.children.length;n0){var o=Ba(this.data,n);o&&!o.children.some((function(e){return e.value===r.value}))?o.children.push(r):this.cache.add(r)}else this.cache.add(r)}},{key:"select",value:function(e){var t=Fa(this.data,e,[])||[];return t.push(e),t.filter((function(e){return null!=e}))}},{key:"expand",value:function(e){var t=this;if(this.expandValues.has(e))return this.expandValues.delete(e),g(this.expandValues);if(this.expandValues.add(e),!this.isMutex.value)return g(this.expandValues);var n=Va(this.data,e)||[],r=new Set(n.filter((function(t){var n;return(null===(n=t.children)||void 0===n?void 0:n.length)>0&&t.value!==e})).map((function(e){return e.value})));return this.expandValues.forEach((function(e){r.has(e)&&t.expandValues.delete(e)})),g(this.expandValues)}},{key:"getChild",value:function(e){var t=Ba(this.data,e);return t?t.children:[]}}])}(); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function za(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1})),P=c((function(){return m.valueMath.abs(n)?V(m.value+t):V(m.value+n)}},U=function(){setTimeout((function(){V(function(e,t,n){var r,o=e.navsContainer,i=e.activeTab,a=e.rightOperations,l=e.leftOperations,s=Ka(i),c=Ka(o),u=(null==(r=i)?void 0:r.offsetLeft)||0,f=Ka(a),d=Ka(l);if("auto"===n){if(u-dt+c-f)return u+s-c+f}else{if("start"===n)return u-d;if("center"===n)return u+(s-c)/2;if("end"===n)return u+s-c+f}return t}(C(),m.value,e.scrollPosition))}),0)},z=function(){ne((function(){var e,t,n,r,o;w.value=(e=C(),t=e.navsWrap,n=e.navsContainer,r=e.rightOperations,o=e.toRightBtn,Ka(t)-Ka(n)+Ka(r)-Ka(o))}))};G([function(){return e.placement},function(){return e.panels}],z),G([function(){return e.scrollPosition}],U),function(e,t){nr("resize",e);var n=null;i((function(){window.ResizeObserver&&t&&(n=new window.ResizeObserver(e)).observe(t)})),x((function(){var e;null===(e=n)||void 0===e||e.disconnect()}))}(ci(z),g.value);var H=function(t){var n;null===(n=e.onAdd)||void 0===n||n.call(e,{e:t})},W=function(t){var n=t.e,r=t.value,o=t.index;e.onRemove({e:n,value:r,index:o})},$=function(t){null!=t&&t.$el&&(null==t?void 0:t.value)===e.value&&_.value!==t.$el&&(_.value=t.$el,U())},q=function(e){var t,n=null,r=[],o=function(e){var n=e.target;t=n,n.style.opacity="0.5"},i=function(e){e.target.style.opacity=""},l=function(e){e.preventDefault()},s=function(e){var o=nl(e.target,n.children);o&&o!==t&&o.draggable&&(o.firstChild.style.outline="1px dashed #0052d9",r.includes(o)||r.push(o))},c=function(e){for(var t=e.target,n=0,o=r;na&&(o=n.children[l+1]);var s="card"===e.theme?a:a-1,c="card"===e.theme?l:l-1;null===(i=e.onDragSort)||void 0===i||i.call(e,{currentIndex:s,current:e.panels[s].value,targetIndex:c,target:e.panels[c].value})}};return a((function(){n.removeEventListener("dragstart",o),n.removeEventListener("dragend",i),n.removeEventListener("dragover",l),n.removeEventListener("dragenter",s),document.removeEventListener("dragleave",c),document.removeEventListener("mousemove",c),n.removeEventListener("drop",u)})),{setNavsWrap:function(e){(n=e).addEventListener("dragstart",o,!1),n.addEventListener("dragend",i,!1),n.addEventListener("dragover",l,!1),n.addEventListener("dragenter",s,!1),document.addEventListener("dragleave",c,!1),document.addEventListener("mousemove",c,!1),n.addEventListener("drop",u,!1)}}}(e),Y=q.setNavsWrap;i((function(){Y(b.value),z(),U()}));var K=function(){return e.panels.map((function(t,n){var r,o;o=null!=t&&null!==(r=t.children)&&void 0!==r&&r.label?t.children.label():ee(t.label)?t.label(y):t.label||"选项卡".concat(n+1);var i=e.dragSort;return i&&!1===t.draggable&&(i=t.draggable),v(Ja,{ref:$,draggable:i,key:t.value,index:n,theme:e.theme,size:e.size,placement:e.placement,label:o,active:t.value===e.value,disabled:e.disabled||t.disabled,removable:t.removable,value:t.value,onClick:function(n){return function(t,n){var r=n.value;if(n.disabled||e.value===r)return!1;e.onChange(r)}(0,t)},onRemove:W},null)}))};return function(){return v("div",{ref:g,class:["".concat(t.value,"__nav")],style:I.value},[[v("div",{ref:O,class:["".concat(t.value,"__operations"),"".concat(t.value,"__operations--left")]},[v(ae,{name:"fade",mode:"out-in",appear:!0},{default:function(){return[A.value?v("div",{class:j.value,onClick:function(){return B("prev")}},[v(l,null,null)]):null]}})]),v("div",{ref:E,class:["".concat(t.value,"__operations"),"".concat(t.value,"__operations--right")]},[v(ae,{name:"fade",mode:"out-in",appear:!0},{default:function(){return[P.value?v("div",{ref:S,class:k.value,onClick:function(){return B("next")}},[v(s,null,null)]):null]}}),e.addable?v("div",{class:R.value,onClick:H},[v(u,null,null)]):null,e.action])],(n=K(),v("div",{class:M.value},[v("div",{class:L.value,onWheel:X},[v("div",{ref:b,class:F.value,style:N.value},["card"!==e.theme&&v(Qa,{placement:e.placement,value:e.value,navs:n},null),n])])]))]);var n}}})),al=E(d({name:"TTabs",props:Ya,setup:function(e){var t=o("tabs"),n=o(),r=b(),i=N(e),a=di(i.value,i.modelValue,e.defaultValue||"",e.onChange),l=B(a,2),s=l[0],c=l[1];I("tabs",{value:s});var u=function(t){var n;null===(n=e.onAdd)||void 0===n||n.call(e,{e:t.e})},f=function(e){c(e)},d=function(t){var n,r=t.e,o=t.value,i=t.index;null===(n=e.onRemove)||void 0===n||n.call(e,{value:o,index:i,e:r})},p=function(){var e=r("default");if(!e)return[];var t=function(e){return e.map((function(e){return e.children&&A(e.children)?t(e.children):e})).flat().filter((function(e){return"TTabPanel"===e.type.name}))};return t(e)},m=function(){var t,o=(null!==(t=e.list)&&void 0!==t&&t.length?e.list:p())||[],i=r("action"),a=o.map((function(e){var t=e;return e.props&&Object.keys(e.props).forEach((function(n){t[n]=e.props[n]})),t})),l={theme:e.theme,value:s.value,size:e.size,disabled:e.disabled,placement:e.placement,scrollPosition:e.scrollPosition,addable:e.addable,panels:a,dragSort:e.dragSort,action:i};return v("div",{class:h(h({},"".concat(n.value,"-tabs__header"),!0),"".concat(n.value,"-is-").concat(e.placement),!0)},[v(il,ie(l,{onDragSort:e.onDragSort,onChange:f,onAdd:u,onRemove:d}),null)])},g=function(){var t,r=p();return null!==(t=e.list)&&void 0!==t&&t.length?e.list.map((function(e){return v(qa,ie(e,{onRemove:d}),null)})):r&&r.length?v("div",{class:["".concat(n.value,"-tabs__content")]},[r]):void 0};return function(){return v("div",{class:[t.value]},["bottom"!==e.placement?[m(),g()]:[g(),m()]])}}})),ll=E(qa),sl={content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function},popupProps:{type:Object},title:{type:[String,Function]},value:{type:[String,Number]}},cl=d({name:"TFakeArrow",props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:Object||String}},setup:function(e){var t=o("fake-arrow");return{classes:c((function(){return[t.value,h({},"".concat(t.value,"--active"),e.isActive),e.overlayClassName]}))}},render:function(){return v("svg",{class:this.classes,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:this.overlayStyle},[v("path",{d:"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921",stroke:"black","stroke-opacity":"0.9","stroke-width":"1.3"},null)])}}); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fl=d({name:"TSubmenu",props:sl,setup:function(e,t){var n=o(),a=u("TdMenu"),l=a.theme,s=a.activeValues,d=a.expandValues,p=a.isHead,v=a.open,m=u("TdSubmenu",{}),g=m.setSubPopup,y=m.closeParentPopup,b=c((function(){return t.attrs.expandType||a.mode.value})),O=r([]),E=c((function(){return s.value.indexOf(e.value)>-1})),S=r(!1),_=r(!1),w=c((function(){return"light"===l.value?"#E7E7E7":"#383838"})),x=c((function(){var t;return"popup"===b.value?S.value:!!d&&(null===(t=d.value)||void 0===t?void 0:t.includes(e.value))})),C=r(!1),T=r(),A=r(),P=r(),j=o("slide-down");Qt(P,w);var k=c((function(){return["".concat(n.value,"-submenu"),h(h({},"".concat(n.value,"-is-disabled"),e.disabled),"".concat(n.value,"-is-opened"),x.value)]})),R=c((function(){var t;return["".concat(n.value,"-menu__popup"),"".concat(n.value,"-is-").concat(p?"horizontal":"vertical"),h({},"".concat(n.value,"-is-opened"),S.value),null===(t=e.popupProps)||void 0===t?void 0:t.overlayInnerClassName]})),M=c((function(){var t;return["".concat(n.value,"-menu--").concat(l.value),p&&"".concat(n.value,"-is-head-menu"),h({},"".concat(n.value,"-menu-is-nested"),C.value),null===(t=e.popupProps)||void 0===t?void 0:t.overlayClassName]})),L=c((function(){return["".concat(n.value,"-menu__item"),"".concat(n.value,"-menu__item-spacer"),"".concat(n.value,"-menu__item-spacer--").concat(p&&!C.value?"bottom":"right"),h(h(h({},"".concat(n.value,"-is-disabled"),e.disabled),"".concat(n.value,"-is-opened"),x.value),"".concat(n.value,"-is-active"),E.value)]})),F=c((function(){return["".concat(n.value,"-menu__sub"),h({},"".concat(n.value,"-is-opened"),x.value)]})),V=c((function(){return[h({},"".concat(n.value,"-fake-arrow--active"),x.value)]})),B=function(e){ee(g)&&g(e)},X=function(e){return null==e?void 0:e.classList.contains("".concat(n.value,"-menu__popup"))},U=function(e){return!!e&&(X(e)||U(e.parentElement))},z=function(e){var t=e.toElement,n=e.relatedTarget,r=t||n;if(r!==A.value){for(var o=function(e){return e===P.value};null!==r&&r!==document&&!o(r);)r=r.parentNode;_.value=!1,o(r)||(S.value=!1),null==y||y(e)}};G(S,(function(t){a.open(e.value,t?"add":"remove")}));var H=N(e).value;return I("TdSubmenu",D({value:H,addMenuItem:function(e){O.value.push(e),m&&m.addMenuItem(e)},setSubPopup:function(e){A.value=e},closeParentPopup:function(e){var t=e.relatedTarget;U(t)||z(e)}})),G(T,(function(){B(T.value)})),i((function(){var n;null==a||null===(n=a.vMenu)||void 0===n||n.add({value:e.value,parent:null==m?void 0:m.value,vnode:t.slots.default});for(var r=f().parent;r&&!/^t(head)?menu/i.test(null===(o=r)||void 0===o?void 0:o.type.name);){var o,i,l;if(/submenu/i.test(null===(i=r)||void 0===i?void 0:i.type.name)){C.value=!0;break}r=null===(l=r)||void 0===l?void 0:l.parent}})),{classPrefix:n,menuItems:O,mode:b,theme:l,isHead:p,isNested:C,classes:k,subClass:F,isOpen:x,transitionClass:j,arrowClass:V,overlayInnerClassName:R,overlayClassName:M,submenuClass:L,submenuRef:P,popupWrapperRef:T,popupVisible:S,isCursorInPopup:_,handleEnterPopup:function(){_.value=!0},handleMouseEnter:function(){e.disabled||setTimeout((function(){S.value||(v(e.value),ne().then((function(){B(T.value)}))),S.value=!0}),0)},handleMouseLeave:function(e){setTimeout((function(){var t=X(e.relatedTarget);_.value||t||(S.value=!1)}),0)},handleMouseLeavePopup:z,handleSubmenuItemClick:function(){e.disabled||v(e.value)}}},methods:{renderPopup:function(e){var t,n=this,r="right-top";!this.isNested&&this.isHead&&(r="bottom-left");var o=v("div",{ref:"popupWrapperRef",class:["".concat(this.classPrefix,"-menu__spacer"),"".concat(this.classPrefix,"-menu__spacer--").concat(!this.isNested&&this.isHead?"top":"left")],onMouseenter:this.handleEnterPopup,onMouseleave:this.handleMouseLeavePopup},[v("ul",{class:"".concat(this.classPrefix,"-menu__popup-wrapper")},[Te(this,"default","content")])]),i={content:function(){return o}},a=v(Wi,ie(null!==(t=this.popupProps)&&void 0!==t?t:{},{overlayInnerClassName:g(this.overlayInnerClassName),overlayClassName:g(this.overlayClassName),visible:this.popupVisible,placement:r}),function(e){for(var t=1;t0&&(e=this.isHead?this.renderHeadSubmenu():this.renderSubmenu()),v("li",ie({class:this.classes},t),[e])}}); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t0&&X(C.value[0])}));var U=function(e){var t,n=L.find((function(t){return t.value===e}));null===(t=n.onClick)||void 0===t||t.call(n,{value:e});var r=n.to,o=n.href,i=n.replace;o&&(window.location.href=n.href);var a=n.router||d.$router;r&&a&&(i?a.replace(r):a.push(r))},z=r(),H=r(),W=r(),$=r(),q=function(e,t){e.forEach((function(e){var n,r,o,i,a=null===(n=e.props)||void 0===n?void 0:n.value;"TSubmenu"!==(null===(r=e.type)||void 0===r?void 0:r.name)&&"TMenuItem"!==(null===(o=e.type)||void 0===o?void 0:o.name)||F.add(pl({value:a,parent:t,vnode:e.children.default},e.props)),ee(null===(i=e.children)||void 0===i?void 0:i.default)?q(e.children.default(),a):A(e.children)&&q(e.children,a)}))};return q((null===(n=(a=t.slots).default)||void 0===n?void 0:n.call(a))||(null===(l=(s=t.slots).content)||void 0===l?void 0:l.call(s))||[]),function(){var n,r,o,i,a,l,s,c,f,d,p,h,m,g,b=(null===(n=e.logo)||void 0===n?void 0:n.call(e,y))||(null===(r=(o=t.slots).logo)||void 0===r?void 0:r.call(o)),O=(null===(i=e.operations)||void 0===i?void 0:i.call(e,y))||(null===(a=(l=t.slots).operations)||void 0===a?void 0:a.call(l))||(null===(s=(c=t.slots).options)||void 0===s?void 0:s.call(c)),E=(null===(f=(d=t.slots).default)||void 0===f?void 0:f.call(d))||(null===(p=(h=t.slots).content)||void 0===p?void 0:p.call(h))||[];return v("div",{class:R.value},[v("div",{class:"".concat(u.value,"-head-menu__inner"),ref:H},[b&&v("div",{class:"".concat(u.value,"-menu__logo"),ref:W},[b]),v("ul",{class:"".concat(u.value,"-menu"),ref:z},[E]),O&&v("div",{class:"".concat(u.value,"-menu__operations"),ref:$},[O])]),"normal"===M.value&&(0===L.length?null:v("ul",{class:["".concat(u.value,"-head-menu__submenu"),"".concat(u.value,"-submenu")]},[v(al,{value:S.value,onChange:V},(g=m=L.map((function(e){var t;return v(ll,{value:e.value,label:null===(t=e.vnode()[0])||void 0===t?void 0:t.children},null)})),"function"==typeof g||"[object Object]"===Object.prototype.toString.call(g)&&!j(g)?m:{default:function(){return[m]}}))]))])}}}); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function vl(e,t){var n,r;V(t)&&(n=function(e){return we("on-".concat(e))}(t));for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a2&&void 0!==arguments[2]?arguments[2]:{},i=o.window,a=void 0===i?Kl:i,l=Wt(o,Yl),s=a&&"MutationObserver"in a,c=function(){n&&(n.disconnect(),n=void 0)},u=G((function(){return n=Ie(e),null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n;var t,n}),(function(e){c(),s&&a&&e&&(n=new MutationObserver(t)).observe(e,l)}),{immediate:!0}),f=function(){c(),u()};return r=f,De()&&je(r),{isSupported:s,stop:f}} +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if("outline"!==e.variant){var n=f.value.querySelector(E.value),r=t?"none":"all";if(n){var o=n.offsetWidth,i=n.offsetHeight,a=n.offsetLeft,l=n.offsetTop;o?S.value={"transition-property":r,width:"".concat(o,"px"),height:"".concat(i,"px"),left:"".concat(a,"px"),top:"".concat(l,"px")}:function(){var e=document.createElement("div");e.setAttribute("style","position: absolute; visibility: hidden;"),e.appendChild(f.value.cloneNode(!0)),document.body.appendChild(e);var t=e.querySelector(E.value),n=t.offsetWidth,r=t.offsetHeight,o=t.offsetLeft,i=t.offsetTop;S.value=Zl(Zl({},S.value),{},{width:"".concat(n,"px"),height:"".concat(r,"px"),left:"".concat(o,"px"),top:"".concat(i,"px")}),document.body.removeChild(e)}()}else S.value={"transition-property":r,width:"0px",height:"9px",left:"0px",top:"0px"}}};G(s,Ir(Rr.mark((function e(){return Rr.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ne();case 2:_();case 3:case"end":return e.stop()}}),e)})))),i((function(){_(!0),Di(f,Hl(Ir(Rr.mark((function e(){return Rr.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ne();case 2:_();case 3:case"end":return e.stop()}}),e)}))),300));var e=f.value.querySelector("".concat(E.value," .").concat(d.value,"__label"));e&&(O=Jl(e,(function(e){e.forEach((function(e){"characterData"===e.type&&_()}))}),{attributes:!0,childList:!0,characterData:!0,subtree:!0}))})),a((function(){var e;null===(e=O)||void 0===e||e.stop()}));var w=N(e),x=w.name,T=w.disabled,A=w.readonly;I(Fl,D({name:x,disabled:T,readonly:A,value:s,allowUncheck:e.allowUncheck,setValue:u}));var P=o("radio-group"),j=ke(),k=function(){if(e.variant.includes("filled")&&!Pr(s.value))return v("div",{style:S.value,class:"".concat(P.value,"__bg-block")},null)},R=c((function(){return["".concat(P.value),b.value[e.size],h(h(h({},"".concat(P.value,"__outline"),"outline"===e.variant),"".concat(P.value,"--filled"),e.variant.includes("filled")),"".concat(P.value,"--primary-filled"),"primary-filled"===e.variant)]}));return function(){return v("div",{ref:f,class:R.value},[j("default")||(null===(t=e.options)||void 0===t?void 0:t.map((function(t){var n=t;(C(t)||V(t))&&(n={value:t,label:t.toString()});var r="button"===e.theme?ql:Xl;return v(r,{key:"radio-group-options-".concat(n.value,"-").concat(Math.random()),name:e.name,checked:s.value===n.value,disabled:"disabled"in n?n.disabled:e.disabled,value:n.value},{default:function(){return[ee(n.label)?n.label(y):n.label]}})}))),k()]);var t}}}),ts=E(Xl),ns=E(es),rs=E(ql),os={alt:{type:String,default:""},content:{type:[String,Function]},default:{type:[String,Function]},hideOnLoadFailed:Boolean,icon:{type:Function},image:{type:String,default:""},imageProps:{type:Object},shape:{type:String,default:"circle",validator:function(e){return!e||["circle","round"].includes(e)}},size:{type:String,default:""},onError:Function},is=E(d({name:"TImage",props:{alt:{type:String,default:""},error:{type:[String,Function]},fallback:{type:String,default:""},fit:{type:String,default:"fill",validator:function(e){return!e||["contain","cover","fill","none","scale-down"].includes(e)}},gallery:Boolean,lazy:Boolean,loading:{type:[String,Function]},overlayContent:{type:[String,Function]},overlayTrigger:{type:String,default:"always",validator:function(e){return!e||["always","hover"].includes(e)}},placeholder:{type:[String,Function]},position:{type:String,default:"center"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin",validator:function(e){return!e||["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"].includes(e)}},shape:{type:String,default:"square",validator:function(e){return!e||["circle","round","square"].includes(e)}},src:{type:[String,Object]},srcset:{type:Object},onError:Function,onLoad:Function},setup:function(e){var t=r(null),o=r(null),l=null,s=N(e).src,u=b();i((function(){var n;if(null!==(n=o.value)&&void 0!==n&&n.complete&&!e.lazy&&S(),e.lazy&&t.value){var r=Ml(t.value,null,y,0);l=r}})),a((function(){t.value&&l&&l.unobserve(t.value)}));var f=n("image"),d=f.classPrefix,p=f.globalConfig,h=r(s.value);G([s,p],(function(t){var n=B(t,2),r=n[0],o=(n[1]||{}).replaceImageSrc,i=ee(o)?o(e):r;i===h.value&&h.value||(h.value=i)}),{immediate:!0});var m=Ni(h).previewUrl;G([m],(function(){_.value=!1,O.value=!1}));var g=r(!e.lazy),y=function(){g.value=!0},O=r(!1),E=function(t){var n;O.value=!0,null===(n=e.onLoad)||void 0===n||n.call(e,{e:t})},S=function(){var e=new Event("load");Object.defineProperty(e,"target",{value:o.value,enumerable:!0}),E(e)},_=r(!1),w=function(t){var n;_.value=!0,null===(n=e.onError)||void 0===n||n.call(e,{e:t}),e.fallback&&(h.value=e.fallback,_.value=!1)},x=c((function(){return"hover"===e.overlayTrigger})),C=c((function(){return["".concat(d.value,"-image"),"".concat(d.value,"-image--fit-").concat(e.fit),"".concat(d.value,"-image--position-").concat(e.position)]})),T=r(!x.value),A=function(){x.value&&(T.value=!T.value)};function P(){var t=V(h.value)?h.value:m.value;return v("img",{ref:o,src:t,onError:w,onLoad:E,class:C.value,alt:e.alt,referrerpolicy:e.referrerpolicy},null)}var I=ke();return function(){return v("div",ie({ref:t,class:["".concat(d.value,"-image__wrapper"),"".concat(d.value,"-image__wrapper--shape-").concat(e.shape),e.gallery&&"".concat(d.value,"-image__wrapper--gallery"),x.value&&"".concat(d.value,"-image__wrapper--need-hover")],onMouseenter:A,onMouseleave:A},Oa(e,["src","alt","fit","position","shape","placeholder","loading","error","overlayTrigger","overlayContent","lazy","gallery","onLoad","onError"])),[(r=u("placeholder"),r?v("div",{class:"".concat(d.value,"-image__placeholder")},[r]):null),e.gallery?v("div",{class:"".concat(d.value,"-image__gallery-shadow")},null):null,(_.value||!g.value)&&v("div",{class:"".concat(d.value,"-image")},null),!(_.value||!g.value)&&(e.srcset&&Object.keys(e.srcset).length?v("picture",null,[Object.entries(e.srcset).map((function(e){var t=B(e,2),n=t[0],r=t[1];return v("source",{type:n,srcset:r},null)})),P()]):P()),!(_.value||!g.value)&&!O.value&&v("div",{class:"".concat(d.value,"-image__loading")},[u("loading")||v(Ar,{direction:"vertical",size:8,align:"center"},{default:function(){return[v(Fn,{size:"24px"},null),V(e.loading)?e.loading:p.value.loadingText]}})]),_.value&&v("div",{class:"".concat(d.value,"-image__error")},[I("error",{defaultNode:v(Ar,{direction:"vertical",size:8,align:"center"},{default:function(){return[v(kn,{size:"24px"},null),V(e.error)?e.error:p.value.errorText]}})})]),(n=I("overlayContent"),n?v("div",{class:["".concat(d.value,"-image__overlay-content"),!T.value&&"".concat(d.value,"-image__overlay-content--hidden")]},[n]):null)]);var n,r}}})); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e){for(var t=1;tn-2*g.value?"scale(".concat((n-2*g.value)/r,")"):"scale(1)")};return i((function(){ne((function(){T()}))})),W((function(){ne((function(){T()}))})),G((function(){return e.image}),(function(e){e&&(m.value=!0)})),function(){var r=n("default","content"),o=a("icon"),i=o&&!r,s=e.shape,c=e.image,u=e.alt,p=["".concat(t.value),l.value[E.value],h(h(h({},"".concat(t.value,"--circle"),"circle"===s),"".concat(t.value,"--round"),"round"===s),"".concat(t.value,"__icon"),!!i)];return r=v("span",{ref:d,style:ls({},x.value)},[r]),o&&(r=[o,i?"":r]),c&&m.value&&(r=v(is,ie({style:ls({},w.value),src:c,alt:u,onError:C},e.imageProps),null)),v("div",{ref:f,class:p,style:ls({},_.value)},[r])}}}); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */var cs=d({name:"TAvatarGroup",props:{cascading:{type:String,default:"right-up",validator:function(e){return!e||["left-up","right-up"].includes(e)}},collapseAvatar:{type:[String,Function]},max:{type:Number},popupProps:{type:Object},size:{type:String,default:""}},setup:function(e){I("avatarGroup",e);var t=b(),n=o("avatar"),r=o("avatar-group"),i=function(t){if((null==t?void 0:t.length)>e.max){var r=a(t),o=t.slice(0,e.max);return o.push(v(ss,{class:"".concat(n.value,"__collapse"),size:e.size},"function"==typeof(i=r)||"[object Object]"===Object.prototype.toString.call(i)&&!j(i)?r:{default:function(){return[r]}})),o} +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +var i;return t},a=function(n){return t("collapseAvatar")||"+".concat(n.length-e.max)};return function(){var o=t("default"),a=e.cascading,l=e.max,s=["".concat(r.value),h(h({},"".concat(n.value,"--offset-right"),"right-up"===a),"".concat(n.value,"--offset-left"),"left-up"===a)],c=l&&l>=0?[i(k(o))]:[o];return v("div",{class:s},[c])}}}),us=E(ss); +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.10.7 + * (c) 2025 tdesign + * @license MIT + */ +function fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ds(e){for(var t=1;tVe.global.getLocaleMessage(e.value).componentsLocale)),locale:e}}const bs=ze("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 Os={getItem:e=>window.ipcRenderer.sendSync("GetConfig","note.json",e)||null,setItem:(e,t)=>{window.ipcRenderer.send("SaveConfig","note.json",e,t)}},Es=ze("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:{ +// 在这里进行自定义配置 +storage:window.ipcRenderer?Os:localStorage}}),Ss=Ke(d({__name:"App",setup(e){const t=He(),n=c((()=>t.displayMode)),{getComponentsLocale:r,locale:o}=ys();return(e,t)=>{const i=We("router-view"),a=gs;return Ge(),$e(a,{"global-config":Ie(r)},{default:qe((()=>[(Ge(),$e(i,{key:Ie(o),class:Ye([n.value])},null,8,["class"]))])),_:1},8,["global-config"])}}}),[["__scopeId","data-v-a54c09a9"]]),_s="undefined"!=typeof document;function ws(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const xs=Object.assign;function Cs(e,t){const n={};for(const r in t){const o=t[r];n[r]=As(o)?o.map(e):e(o)}return n}const Ts=()=>{},As=Array.isArray,Ps=/#/g,Ns=/&/g,Is=/\//g,Ds=/=/g,js=/\?/g,ks=/\+/g,Rs=/%5B/g,Ms=/%5D/g,Ls=/%5E/g,Fs=/%60/g,Vs=/%7B/g,Bs=/%7C/g,Xs=/%7D/g,Us=/%20/g;function zs(e){return encodeURI(""+e).replace(Bs,"|").replace(Rs,"[").replace(Ms,"]")}function Hs(e){return zs(e).replace(ks,"%2B").replace(Us,"+").replace(Ps,"%23").replace(Ns,"%26").replace(Fs,"`").replace(Vs,"{").replace(Xs,"}").replace(Ls,"^")}function Ws(e){return null==e?"":function(e){return zs(e).replace(Ps,"%23").replace(js,"%3F")}(e).replace(Is,"%2F")}function Gs(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const $s=/\/$/;function qs(e,t,n="/"){let r,o={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l=0&&(s=-1),s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),a=t.slice(l,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 i,a,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+r.slice(i).join("/")}(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:Gs(a)}}function Ys(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Ks(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Js(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qs(e[n],t[n]))return!1;return!0}function Qs(e,t){return As(e)?Zs(e,t):As(t)?Zs(t,e):e===t}function Zs(e,t){return As(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const ec={path:"/", +// TODO: could we use a symbol in the future? +name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var tc,nc,rc,oc;function ic(e){if(!e)if(_s){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace($s,"")}(nc=tc||(tc={})).pop="pop",nc.push="push",(oc=rc||(rc={})).back="back",oc.forward="forward",oc.unknown="";const ac=/^[^#]+#/;function lc(e,t){return e.replace(ac,"#")+t}const sc=()=>({left:window.scrollX,top:window.scrollY});function cc(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 uc(e,t){return(history.state?history.state.position-t:-1)+e}const fc=new Map;function dc(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),Ys(n,"")}return Ys(n,e)+r+o}function pc(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?sc():null}}function hc(e){const{history:t,location:n}=window,r={value:dc(e,n)},o={value:t.state};function i(r,i,a){const l=e.indexOf("#"),s=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+r:location.protocol+"//"+location.host+e+r;try{t[a?"replaceState":"pushState"](i,"",s),o.value=i}catch(c){n[a?"replace":"assign"](s)}}return o.value||i(r.value,{back:null,current:r.value,forward:null, +// the length is off by one, we need to decrease it +position:t.length-1,replaced:!0, +// don't add a scroll as the user may have an anchor, and we want +// scrollBehavior to be triggered without a saved position +scroll:null},!0),{location:r,state:o,push:function(e,n){const a=xs({}, +// use current history state to gracefully handle a wrong call to +// history.replaceState +// https://github.com/vuejs/router/issues/366 +o.value,t.state,{forward:e,scroll:sc()});i(a.current,a,!0),i(e,xs({},pc(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){i(e,xs({},t.state,pc(o.value.back, +// keep back and forward entries but override current position +e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function vc(e){const t=hc(e=ic(e)),n=function(e,t,n,r){let o=[],i=[],a=null;const l=({state:i})=>{const l=dc(e,location),s=n.value,c=t.value;let u=0;if(i){if(n.value=l,t.value=i,a&&a===s)return void(a=null);u=c?i.position-c.position:0}else r(l);o.forEach((e=>{e(n.value,s,{delta:u,type:tc.pop,direction:u?u>0?rc.forward:rc.back:rc.unknown})}))};function s(){const{history:e}=window;e.state&&e.replaceState(xs({},e.state,{scroll:sc()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const r=xs({ +// it's overridden right after +location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:lc.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 mc(e){return"string"==typeof e||"symbol"==typeof e}const gc=Symbol("");var yc,bc;function Oc(e,t){return xs(new Error,{type:e,[gc]:!0},t)}function Ec(e,t){return e instanceof Error&&gc in e&&(null==t||!!(e.type&t))}(bc=yc||(yc={}))[bc.aborted=4]="aborted",bc[bc.cancelled=8]="cancelled",bc[bc.duplicated=16]="duplicated";const Sc="[^/]+?",_c={sensitive:!1,strict:!1,start:!0,end:!0},wc=/[.+*?^${}()[\]/\\]/g;function xc(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Cc(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Ac={type:0,value:""},Pc=/[a-zA-Z0-9_]/;function Nc(e,t,n){const r=function(e,t){const n=xs({},_c,t),r=[];let o=n.start?"^":"";const i=[];for(const s of e){const e=s.length?[]:[90 +/* PathScore.Root */];n.strict&&!s.length&&(o+="/");for(let t=0;t1&&("*"===l||"+"===l)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;s{i(d)}:Ts}function i(e){if(mc(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){const t=function(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Cc(e,t[o])<0?r=o:n=o+1}const o=function(e){let t=e;for(;t=t.parent;)if(Fc(t)&&0===Cc(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&&!Rc(e)&&r.set(e.record.name,e)}return t=Lc({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,i,a,l={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw Oc(1,{location:e});a=o.record.name,l=xs( +// paramsFromLocation is a new object +Dc(t.params, +// only keep params that exist in the resolved location +// only keep optional params coming from a parent record +o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))), +// discard any existing params in the current location that do not exist here +// #1497 this ensures better active/exact matching +e.params&&Dc(e.params,o.keys.map((e=>e.name)))),i=o.stringify(l)}else if(null!=e.path)i=e.path,o=n.find((e=>e.re.test(i))),o&&(l=o.parse(i),a=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw Oc(1,{location:e,currentLocation:t});a=o.record.name,l=xs({},t.params,e.params),i=o.stringify(l)}const s=[];let c=o;for(;c;)s.unshift(c.record),c=c.parent;return{name:a,path:i,params:l,matched:s,meta:Mc(s)}},removeRoute:i,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Dc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function jc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{}, +// must be declared afterwards +// mods: {}, +components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kc(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 Rc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mc(e){return e.reduce(((e,t)=>xs(e,t.meta)),{})}function Lc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Fc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Vc(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;re&&Hs(e))):[r&&Hs(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Xc(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=As(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const Uc=Symbol(""),zc=Symbol(""),Hc=Symbol(""),Wc=Symbol(""),Gc=Symbol("");function $c(){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 qc(e,t,n,r,o,i=e=>e()){const a=r&&(// name is defined if record is because of the function overload +r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((l,s)=>{const c=e=>{var i;!1===e?s(Oc(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(i=e)||i&&"object"==typeof i?s(Oc(2,{from:t,to:e})):(a&&// since enterCallbackArray is truthy, both record and name also are +r.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),l())},u=i((()=>e.call(r&&r.instances[o],t,n,c)));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch((e=>s(e)))}))}function Yc(e,t,n,r,o=e=>e()){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(ws(l)){const s=(l.__vccOpts||l)[t];s&&i.push(qc(s,n,r,a,e,o))}else{let s=l();i.push((()=>s.then((i=>{if(!i)throw new Error(`Couldn't resolve component "${e}" at "${a.path}"`);const l=(s=i).__esModule||"Module"===s[Symbol.toStringTag]||// support CF with dynamic imports that do not +// add the Module string tag +s.default&&ws(s.default)?i.default:i;var s;a.mods[e]=i,a.components[e]=l;const c=(l.__vccOpts||l)[t];return c&&qc(c,n,r,a,e,o)()}))))}}return i}function Kc(e){const t=u(Hc),n=u(Wc),r=c((()=>{const n=Ie(e.to);return t.resolve(n)})),o=c((()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched;if(!o||!i.length)return-1;const a=i.findIndex(Ks.bind(null,o));if(a>-1)return a;const l=Qc(e[t-2]); +// we are dealing with nested routes +return t>1&&// if the parent and matched route have the same path, this link is +// referring to the empty child. Or we currently are on a different +// child of the same parent +Qc(o)===l&&// avoid comparing the child with its parent +i[i.length-1].path!==l?i.findIndex(Ks.bind(null,e[t-2])):a})),i=c((()=>o.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(!As(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(n.params,r.value.params))),a=c((()=>o.value>-1&&o.value===n.matched.length-1&&Js(n.params,r.value.params)));return{route:r,href:c((()=>r.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){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}(n)){const n=t[Ie(e.replace)?"replace":"push"](Ie(e.to)).catch(Ts);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>n)),n}return Promise.resolve()}}}const Jc=d({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String, +// inactiveClass: String, +exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Kc,setup(e,{slots:t}){const n=D(Kc(e)),{options:r}=u(Hc),o=c((()=>({[Zc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive, +// [getLinkClass( +// props.inactiveClass, +// options.linkInactiveClass, +// 'router-link-inactive' +// )]: !link.isExactActive, +[Zc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&(1===(i=t.default(n)).length?i[0]:i);var i;return e.custom?r:y("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href, +// this would override user added attrs but Vue will still add +// the listener, so we end up triggering both +onClick:n.navigate,class:o.value},r)}}});function Qc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zc=(e,t,n)=>null!=e?e:null!=t?t:n;function eu(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tu=d({name:"RouterView", +// #674 we manually inherit them +inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object}, +// Better compat for @vue/compat users +// https://github.com/vuejs/router/issues/1315 +compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=u(Gc),i=c((()=>e.route||o.value)),a=u(zc,0),l=c((()=>{let e=Ie(a);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=c((()=>i.value.matched[l.value]));I(zc,c((()=>l.value+1))),I(Uc,s),I(Gc,i);const f=r();return G((()=>[f.value,s.value,e.name]),(([e,t,n],[r,o,i])=>{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 +// the first visit +o&&Ks(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=i.value,o=e.name,a=s.value,l=a&&a.components[o];if(!l)return eu(n.default,{Component:l,route:r});const c=a.props[o],u=c?!0===c?r.params:"function"==typeof c?c(r):c:null,d=y(l,xs({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[o]=null)},ref:f})); +// pass the vnode to the slot as a prop. +// h and both accept vnodes +return eu(n.default,{Component:d,route:r})||d}}});function nu(){return u(Hc)}function ru(e){return u(Wc)}const ou=Ke(d({__name:"Breadcrumb",setup(e){const{locale:t}=ys(),n=ru(),r=c((()=>{const e=n.path.split("/");e.shift();return e.reduce(((e,r,o)=>{var i;const a=null==(i=n.matched[o])?void 0:i.meta;if((null==a?void 0:a.hiddenBreadcrumb)||Object.values(n.params).includes(r))return e;let l=r;return(null==a?void 0:a.title)&&(l="string"==typeof a.title?a.title:a.title[t.value]),e.push({path:r,to:e[o-1]?`/${e[o-1].path}/${r}`:`/${r}`,title:l}),e}),[])}));return(e,t)=>{const n=Na,o=Pa;return Ge(),$e(o,{"max-item-width":"150",class:"tdesign-breadcrumb"},{default:qe((()=>[(Ge(!0),Ze(L,null,et(r.value,(e=>(Ge(),$e(n,{key:e.to,to:e.to},{default:qe((()=>[tt(nt(e.title),1)])),_:2},1032,["to"])))),128))])),_:1})}}}),[["__scopeId","data-v-7ec7ffe3"]]),iu=Ke(d({__name:"Content",setup:e=>(e,t)=>{const n=We("router-view");return Ge(),$e(n,null,{default:qe((({Component:e})=>[(Ge(),$e(rt(e)))])),_:1})}}),[["__scopeId","data-v-d7ed7a08"]]),au=Ke(d({__name:"Footer",setup:e=>(e,t)=>(Ge(),Ze("div",{class:Ye([Ie(ot)+"-footer","flex justify-center items-center"])},"Copyright © 2021-"+nt((new Date).getFullYear())+" openseedsoft. All Rights Reserved",3))}),[["__scopeId","data-v-f64c9180"]]),lu=d({__name:"SettingMenu",props:{theme:{type:String,default:"light"},menu:{type:Array,default:()=>[]}},setup(e){const t=e;nu(),He(),bs();const{locale:n}=ys(),r=c((()=>uy())),o=c((()=>t.theme));return(t,i)=>{const a=_l,l=El;return Ge(),$e(l,{theme:o.value,value:r.value,class:"shadow-md"},{default:qe((()=>[(Ge(!0),Ze(L,null,et(e.menu,(e=>(Ge(),$e(a,{key:e.path,value:`/setting/${e.path}`,to:e.path},{default:qe((()=>{return[tt(nt((t=e.meta.title,"string"==typeof t?t:t[n.value])),1)];var t})),_:2},1032,["value","to"])))),128))])),_:1},8,["theme","value"])}}}),su=d({__name:"LayoutContent",setup(e){const t=He(),n=it(),r=ru();let o=ly;const i=c((()=>{var e;if(0==r.path.startsWith("/setting"))return null;return(null==(e=o.find((e=>"/setting"===e.path)))?void 0:e.children).filter((e=>{var t,r;return!(null==(t=e.meta)?void 0:t.isPro)||(null==(r=e.meta)?void 0:r.isPro)&&n.isPro})).filter((e=>(e.path.includes("api"),!0)))}));return(e,n)=>{const r=Er,o=Or,a=yr;return Ge(),$e(a,{class:Ye([`${Ie(ot)}-layout`,"flex flex-col h-full"])},{default:qe((()=>[v(r,{class:Ye([`${Ie(ot)}-content-layout`,"flex-1"])},{default:qe((()=>[Ie(t).showBreadcrumb?(Ge(),$e(ou,{key:0})):at("",!0),i.value?(Ge(),$e(lu,{key:1,theme:Ie(t).displayMode,menu:i.value,class:"mb-4 w-full overflow-x-auto"},null,8,["theme","menu"])):at("",!0),v(iu)])),_:1},8,["class"]),Ie(t).showFooter?(Ge(),$e(o,{key:0,class:Ye(`${Ie(ot)}-footer-layout`)},{default:qe((()=>[v(au)])),_:1},8,["class"])):at("",!0)])),_:1},8,["class"])}}}),cu=d({__name:"MenuContent",props:{navData:{type:Array,default:()=>[]}},setup(e){const t=e,n=c((()=>uy())),{locale:r}=ys(),o=c((()=>{const{navData:e}=t;return l(e)})),i=e=>{if("string"==typeof e.icon)return React.createElement("t-icon",{name:e.icon});return e.icon},a=e=>"string"==typeof e?e:e[r.value],l=(e,t)=>e&&0!==e.length?(e.sort(((e,t)=>{var n,r;return((null==(n=e.meta)?void 0:n.orderNo)||0)-((null==(r=t.meta)?void 0:r.orderNo)||0)})),e.map((e=>{var n,r;const o=t&&!e.path.includes(t)?`${t}/${e.path}`:e.path;return{path:o,title:null==(n=e.meta)?void 0:n.title,icon:null==(r=e.meta)?void 0:r.icon,children:l(e.children,o),meta:e.meta,redirect:e.redirect}})).filter((e=>e.meta&&!0!==e.meta.hidden))):[],s=e=>{const{frameSrc:t,frameBlank:n}=e.meta;return t&&n?t.match(/(http|https):\/\/([\w.]+\/?)\S*/):null},u=e=>{var t;return n.value.split("/").length>e.path.split("/").length&&n.value.startsWith(e.path)||n.value===e.path?n.value:(null==(t=e.meta)?void 0:t.single)?e.redirect:e.path};return(e,t)=>{const n=_l,r=We("menu-content",!0),l=Sl;return Ge(),Ze("div",null,[(Ge(!0),Ze(L,null,et(o.value,(e=>{var t;return Ge(),Ze(L,{key:e.path},[e.children&&e.children.length&&!(null==(t=e.meta)?void 0:t.single)?(Ge(),$e(l,{key:1,name:e.path,value:e.path,title:a(e.title)},{icon:qe((()=>[(Ge(),$e(rt(i(e)),{class:"t-icon"}))])),default:qe((()=>[e.children?(Ge(),$e(r,{key:0,"nav-data":e.children},null,8,["nav-data"])):at("",!0)])),_:2},1032,["name","value","title"])):(Ge(),Ze(L,{key:0},[s(e)?(Ge(),$e(n,{key:0,name:e.path,value:u(e),onClick:t=>{return n=s(e)[0],void window.open(n);var n}},{icon:qe((()=>[(Ge(),$e(rt(i(e)),{class:"t-icon"}))])),default:qe((()=>[tt(" "+nt(a(e.title)),1)])),_:2},1032,["name","value","onClick"])):(Ge(),$e(n,{key:1,name:e.path,value:u(e),to:e.path},{icon:qe((()=>[(Ge(),$e(rt(i(e)),{class:"t-icon"}))])),default:qe((()=>[tt(" "+nt(a(e.title)),1)])),_:2},1032,["name","value","to"]))],64))],64)})),128))])}}}),uu={class:"header-operate-left"},fu={key:1,class:"text-center font-bold w-full pr-16 overflow-hidden text-ellipsis whitespace-nowrap"},du=Ke(d({__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;nu();const{locale:n}=ys(),r=ru(),o=He(),i=lt(),a=c((()=>uy())),l=c((()=>[`${ot}-header-layout`])),s=c((()=>t.theme)),u=()=>{o.updateConfig({isSidebarCompact:!o.isSidebarCompact})};function f(e,t,n=""){for(const r of e){const e=n+r.path;if(e===t)return r;if(r.children){const n=f(r.children,t,e+"/");if(n)return n}}return null}const d=c((()=>{var e,t;if(r.path.startsWith("/setting")){return(null==(e=f(ly,"/setting"))?void 0:e.meta).title[n.value]}if("/conversation/chat"===r.path){return i.find(r.query.id).name}const o=null==(t=f(ly,r.path))?void 0:t.meta;return o?o.title[n.value]:r.path}));return(t,n)=>{const r=an,i=El;return Ge(),Ze("div",{class:Ye([l.value,"h-full"])},[v(i,{theme:s.value,"expand-type":"popup",value:a.value},{logo:qe((()=>[st("div",uu,[v(r,{theme:"default",shape:"square",variant:"text",onClick:u},{default:qe((()=>[v(Ie(Un),{name:"view-list"})])),_:1})])])),default:qe((()=>[!0===Ie(o).showNav?(Ge(),$e(cu,{key:0,class:"header-menu","nav-data":e.menu},null,8,["nav-data"])):(Ge(),Ze("div",fu,nt(d.value),1))])),operations:qe((()=>n[0]||(n[0]=[st("div",{class:"operations-container"},null,-1)]))),_:1},8,["theme","value"])],2)}}}),[["__scopeId","data-v-066d80f0"]]),pu=d({__name:"LayoutHeader",setup(e){const t=He();let n=ly;return(e,r)=>(Ge(),$e(du,{theme:Ie(t).displayMode,menu:Ie(n),"is-compact":Ie(t).isSidebarCompact},null,8,["theme","menu","is-compact"]))}}),hu=""+new URL("assets-t-logo-CxwPZnhN.png",import.meta.url).href,vu={name:"seedchat",private:!0,description:"seedchat",author:{name:"zhepama",email:"zhepama@gmail.com"},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","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:{"@agoose77/markdown-it-mermaid":"^1.1.0","@dicebear/collection":"^8.0.1","@dicebear/core":"^8.0.1","@grpc/grpc-js":"^1.12.5","@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.5.0","@wdns/vue-code-block":"^2.3.5","electron-context-menu":"^4.0.4","electron-findbar":"^0.6.4","eventsource-parser":"^3.0.0","form-data":"^4.0.1","highlight.js":"^11.11.1",jose:"^5.9.6",mammoth:"^1.9.0","markdown-it":"^14.1.0","markdown-it-highlightjs":"^4.2.0","markdown-it-link-attributes":"^4.0.1","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","tvision-color":"^1.6.0",undici:"^7.3.0",uuid:"^11.0.5",vue:"^3.5.13","vue-i18n":"^11.0.1","vue-router":"^4.5.0",vuedraggable:"^4.1.0",ws:"^8.18.0",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/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.83.4",shx:"^0.3.4","swagger-ui-dist":"^5.18.3",tailwindcss:"^3.4.4",terser:"^5.37.0",typescript:"^5.7.3","unplugin-auto-import":"^19.0.0","unplugin-vue-components":"^28.0.0",vite:"^6.0.11","vite-plugin-electron":"^0.29.0","vite-plugin-electron-renderer":"^0.14.6","vite-plugin-javascript-obfuscator":"^3.1.0","vite-plugin-pwa":"^0.21.1","vite-svg-loader":"^5.1.0",vitest:"^3.0.4","vue-tsc":"^2.2.0",vuepress:"^2.0.0-rc.14",wrangler:"^3.106.0"},main:"dist-electron/main.js",overrides:{canvas:"npm:dry-uninstall"}};var mu={exports:{}},gu={exports:{}},yu={}; +/** +* @vue/compiler-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +const bu=Symbol(""),Ou=Symbol(""),Eu=Symbol(""),Su=Symbol(""),_u=Symbol(""),wu=Symbol(""),xu=Symbol(""),Cu=Symbol(""),Tu=Symbol(""),Au=Symbol(""),Pu=Symbol(""),Nu=Symbol(""),Iu=Symbol(""),Du=Symbol(""),ju=Symbol(""),ku=Symbol(""),Ru=Symbol(""),Mu=Symbol(""),Lu=Symbol(""),Fu=Symbol(""),Vu=Symbol(""),Bu=Symbol(""),Xu=Symbol(""),Uu=Symbol(""),zu=Symbol(""),Hu=Symbol(""),Wu=Symbol(""),Gu=Symbol(""),$u=Symbol(""),qu=Symbol(""),Yu=Symbol(""),Ku=Symbol(""),Ju=Symbol(""),Qu=Symbol(""),Zu=Symbol(""),ef=Symbol(""),tf=Symbol(""),nf=Symbol(""),rf=Symbol(""),of={[bu]:"Fragment",[Ou]:"Teleport",[Eu]:"Suspense",[Su]:"KeepAlive",[_u]:"BaseTransition",[wu]:"openBlock",[xu]:"createBlock",[Cu]:"createElementBlock",[Tu]:"createVNode",[Au]:"createElementVNode",[Pu]:"createCommentVNode",[Nu]:"createTextVNode",[Iu]:"createStaticVNode",[Du]:"resolveComponent",[ju]:"resolveDynamicComponent",[ku]:"resolveDirective",[Ru]:"resolveFilter",[Mu]:"withDirectives",[Lu]:"renderList",[Fu]:"renderSlot",[Vu]:"createSlots",[Bu]:"toDisplayString",[Xu]:"mergeProps",[Uu]:"normalizeClass",[zu]:"normalizeStyle",[Hu]:"normalizeProps",[Wu]:"guardReactiveProps",[Gu]:"toHandlers",[$u]:"camelize",[qu]:"capitalize",[Yu]:"toHandlerKey",[Ku]:"setBlockTracking",[Ju]:"pushScopeId",[Qu]:"popScopeId",[Zu]:"withCtx",[ef]:"unref",[tf]:"isRef",[nf]:"withMemo",[rf]:"isMemoSame"};function af(e){Object.getOwnPropertySymbols(e).forEach((t=>{of[t]=e[t]}))}const lf={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function sf(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:lf}}function cf(e,t,n,r,o,i,a,l=!1,s=!1,c=!1,u=lf){return e&&(l?(e.helper(wu),e.helper(Ef(e.inSSR,c))):e.helper(Of(e.inSSR,c)),a&&e.helper(Mu)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:a,isBlock:l,disableTracking:s,isComponent:c,loc:u}}function uf(e,t=lf){return{type:17,loc:t,elements:e}}function ff(e,t=lf){return{type:15,loc:t,properties:e}}function df(e,t){return{type:16,loc:lf,key:ct(e)?pf(e,!0):e,value:t}}function pf(e,t=!1,n=lf,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function hf(e,t=lf){return{type:8,loc:t,children:e}}function vf(e,t=[],n=lf){return{type:14,loc:n,callee:e,arguments:t}}function mf(e,t=void 0,n=!1,r=!1,o=lf){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function gf(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:lf}}function yf(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:lf}}function bf(e){return{type:21,body:e,loc:lf}}function Of(e,t){return e||t?Tu:Au}function Ef(e,t){return e||t?xu:Cu}function Sf(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Of(r,e.isComponent)),t(wu),t(Ef(r,e.isComponent)))}const _f=new Uint8Array([123,123]),wf=new Uint8Array([125,125]);function xf(e){return e>=97&&e<=122||e>=65&&e<=90}function Cf(e){return 32===e||10===e||9===e||12===e||13===e}function Tf(e){return 47===e||62===e||Cf(e)}function Af(e){const t=new Uint8Array(e.length);for(let n=0;n +CommentEnd:new Uint8Array([45,45,62]), +// `-->` +ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]), +// `<\/script` +StyleEnd:new Uint8Array([60,47,115,116,121,108,101]), +// ``.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with