0&&(d=f.removeMin(),h=c[d],h.distance!==Number.POSITIVE_INFINITY);)o(d).forEach(l);return c}return di}var hi,Hc;function l_(){if(Hc)return hi;Hc=1;var e=rl(),r=$();hi=n;function n(t,a,i){return r.transform(t.nodes(),function(u,s){u[s]=e(t,s,a,i)},{})}return hi}var li,Wc;function nl(){if(Wc)return li;Wc=1;var e=$();li=r;function r(n){var t=0,a=[],i={},u=[];function s(o){var c=i[o]={onStack:!0,lowlink:t,index:t++};if(a.push(o),n.successors(o).forEach(function(h){e.has(i,h)?i[h].onStack&&(c.lowlink=Math.min(c.lowlink,i[h].index)):(s(h),c.lowlink=Math.min(c.lowlink,i[h].lowlink))}),c.lowlink===c.index){var f=[],d;do d=a.pop(),i[d].onStack=!1,f.push(d);while(o!==d);u.push(f)}}return n.nodes().forEach(function(o){e.has(i,o)||s(o)}),u}return li}var vi,Yc;function v_(){if(Yc)return vi;Yc=1;var e=$(),r=nl();vi=n;function n(t){return e.filter(r(t),function(a){return a.length>1||a.length===1&&t.hasEdge(a[0],a[0])})}return vi}var pi,Xc;function p_(){if(Xc)return pi;Xc=1;var e=$();pi=n;var r=e.constant(1);function n(a,i,u){return t(a,i||r,u||function(s){return a.outEdges(s)})}function t(a,i,u){var s={},o=a.nodes();return o.forEach(function(c){s[c]={},s[c][c]={distance:0},o.forEach(function(f){c!==f&&(s[c][f]={distance:Number.POSITIVE_INFINITY})}),u(c).forEach(function(f){var d=f.v===c?f.w:f.v,h=i(f);s[c][d]={distance:h,predecessor:c}})}),o.forEach(function(c){var f=s[c];o.forEach(function(d){var h=s[d];o.forEach(function(l){var p=h[c],v=f[l],_=h[l],g=p.distance+v.distance;g<_.distance&&(_.distance=g,_.predecessor=v.predecessor)})})}),s}return pi}var _i,Zc;function tl(){if(Zc)return _i;Zc=1;var e=$();_i=r,r.CycleException=n;function r(t){var a={},i={},u=[];function s(o){if(e.has(i,o))throw new n;e.has(a,o)||(i[o]=!0,a[o]=!0,e.each(t.predecessors(o),s),delete i[o],u.push(o))}if(e.each(t.sinks(),s),e.size(a)!==t.nodeCount())throw new n;return u}function n(){}return n.prototype=new Error,_i}var gi,Jc;function __(){if(Jc)return gi;Jc=1;var e=tl();gi=r;function r(n){try{e(n)}catch(t){if(t instanceof e.CycleException)return!1;throw t}return!0}return gi}var bi,Qc;function al(){if(Qc)return bi;Qc=1;var e=$();bi=r;function r(t,a,i){e.isArray(a)||(a=[a]);var u=(t.isDirected()?t.successors:t.neighbors).bind(t),s=[],o={};return e.each(a,function(c){if(!t.hasNode(c))throw new Error("Graph does not have node: "+c);n(t,c,i==="post",o,u,s)}),s}function n(t,a,i,u,s,o){e.has(u,a)||(u[a]=!0,i||o.push(a),e.each(s(a),function(c){n(t,c,i,u,s,o)}),i&&o.push(a))}return bi}var yi,ed;function g_(){if(ed)return yi;ed=1;var e=al();yi=r;function r(n,t){return e(n,t,"post")}return yi}var mi,rd;function b_(){if(rd)return mi;rd=1;var e=al();mi=r;function r(n,t){return e(n,t,"pre")}return mi}var qi,nd;function y_(){if(nd)return qi;nd=1;var e=$(),r=Uu(),n=el();qi=t;function t(a,i){var u=new r,s={},o=new n,c;function f(h){var l=h.v===c?h.w:h.v,p=o.priority(l);if(p!==void 0){var v=i(h);v0;){if(c=o.removeMin(),e.has(s,c))u.setEdge(c,s[c]);else{if(d)throw new Error("Input graph is not connected: "+a);d=!0}a.nodeEdges(c).forEach(f)}return u}return qi}var wi,td;function m_(){return td||(td=1,wi={components:h_(),dijkstra:rl(),dijkstraAll:l_(),findCycles:v_(),floydWarshall:p_(),isAcyclic:__(),postorder:g_(),preorder:b_(),prim:y_(),tarjan:nl(),topsort:tl()}),wi}var Ri,ad;function q_(){if(ad)return Ri;ad=1;var e=c_();return Ri={Graph:e.Graph,json:d_(),alg:m_(),version:e.version},Ri}var er;if(typeof Au=="function")try{er=q_()}catch(e){}er||(er=window.graphlib);var V=er,Ei,id;function w_(){if(id)return Ei;id=1;var e=Sh(),r=1,n=4;function t(a){return e(a,r|n)}return Ei=t,Ei}var Ii,ud;function qr(){if(ud)return Ii;ud=1;var e=Ae(),r=ae(),n=hr(),t=B();function a(i,u,s){if(!t(s))return!1;var o=typeof u;return(o=="number"?r(s)&&n(u,s.length):o=="string"&&u in s)?e(s[u],i):!1}return Ii=a,Ii}var Ti,sd;function R_(){if(sd)return Ti;sd=1;var e=mr(),r=Ae(),n=qr(),t=ye(),a=Object.prototype,i=a.hasOwnProperty,u=e(function(s,o){s=Object(s);var c=-1,f=o.length,d=f>2?o[2]:void 0;for(d&&n(o[0],o[1],d)&&(f=1);++c-1?o[c?i[f]:f]:void 0}}return Ai=t,Ai}var Ci,fd;function I_(){if(fd)return Ci;fd=1;var e=/\s/;function r(n){for(var t=n.length;t--&&e.test(n.charAt(t)););return t}return Ci=r,Ci}var Si,cd;function T_(){if(cd)return Si;cd=1;var e=I_(),r=/^\s+/;function n(t){return t&&t.slice(0,e(t)+1).replace(r,"")}return Si=n,Si}var Oi,dd;function A_(){if(dd)return Oi;dd=1;var e=T_(),r=B(),n=xe(),t=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;function o(c){if(typeof c=="number")return c;if(n(c))return t;if(r(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=r(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=i.test(c);return d||u.test(c)?s(c.slice(2),d?2:8):a.test(c)?t:+c}return Oi=o,Oi}var xi,hd;function il(){if(hd)return xi;hd=1;var e=A_(),r=1/0,n=17976931348623157e292;function t(a){if(!a)return a===0?a:0;if(a=e(a),a===r||a===-r){var i=a<0?-1:1;return i*n}return a===a?a:0}return xi=t,xi}var Pi,ld;function C_(){if(ld)return Pi;ld=1;var e=il();function r(n){var t=e(n),a=t%1;return t===t?a?t-a:t:0}return Pi=r,Pi}var Mi,vd;function S_(){if(vd)return Mi;vd=1;var e=Zh(),r=ie(),n=C_(),t=Math.max;function a(i,u,s){var o=i==null?0:i.length;if(!o)return-1;var c=s==null?0:n(s);return c<0&&(c=t(o+c,0)),e(i,r(u,3),c)}return Mi=a,Mi}var Li,pd;function O_(){if(pd)return Li;pd=1;var e=E_(),r=S_(),n=e(r);return Li=n,Li}var ki,_d;function ul(){if(_d)return ki;_d=1;var e=$u();function r(n){var t=n==null?0:n.length;return t?e(n,1):[]}return ki=r,ki}var Ni,gd;function x_(){if(gd)return Ni;gd=1;var e=ju(),r=Oh(),n=ye();function t(a,i){return a==null?a:e(a,r(i),n)}return Ni=t,Ni}var Fi,bd;function P_(){if(bd)return Fi;bd=1;function e(r){var n=r==null?0:r.length;return n?r[n-1]:void 0}return Fi=e,Fi}var ji,yd;function M_(){if(yd)return ji;yd=1;var e=cr(),r=Du(),n=ie();function t(a,i){var u={};return i=n(i,3),r(a,function(s,o,c){e(u,o,i(s,o,c))}),u}return ji=t,ji}var Di,md;function zu(){if(md)return Di;md=1;var e=xe();function r(n,t,a){for(var i=-1,u=n.length;++in}return Gi=e,Gi}var Bi,wd;function k_(){if(wd)return Bi;wd=1;var e=zu(),r=L_(),n=me();function t(a){return a&&a.length?e(a,n,r):void 0}return Bi=t,Bi}var $i,Rd;function sl(){if(Rd)return $i;Rd=1;var e=cr(),r=Ae();function n(t,a,i){(i!==void 0&&!r(t[a],i)||i===void 0&&!(a in t))&&e(t,a,i)}return $i=n,$i}var Ui,Ed;function N_(){if(Ed)return Ui;Ed=1;var e=ge(),r=pr(),n=Z(),t="[object Object]",a=Function.prototype,i=Object.prototype,u=a.toString,s=i.hasOwnProperty,o=u.call(Object);function c(f){if(!n(f)||e(f)!=t)return!1;var d=r(f);if(d===null)return!0;var h=s.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&u.call(h)==o}return Ui=c,Ui}var zi,Id;function ol(){if(Id)return zi;Id=1;function e(r,n){if(!(n==="constructor"&&typeof r[n]=="function")&&n!="__proto__")return r[n]}return zi=e,zi}var Ki,Td;function F_(){if(Td)return Ki;Td=1;var e=Be(),r=ye();function n(t){return e(t,r(t))}return Ki=n,Ki}var Vi,Ad;function j_(){if(Ad)return Vi;Ad=1;var e=sl(),r=gh(),n=Th(),t=bh(),a=Ch(),i=$e(),u=k(),s=Jh(),o=Se(),c=Ge(),f=B(),d=N_(),h=Ue(),l=ol(),p=F_();function v(_,g,b,m,w,A,q){var y=l(_,b),T=l(g,b),S=q.get(T);if(S){e(_,b,S);return}var x=A?A(y,T,b+"",_,g,q):void 0,E=x===void 0;if(E){var L=u(T),N=!L&&o(T),J=!L&&!N&&h(T);x=T,L||N||J?u(y)?x=y:s(y)?x=t(y):N?(E=!1,x=r(T,!0)):J?(E=!1,x=n(T,!0)):x=[]:d(T)||i(T)?(x=y,i(y)?x=p(y):(!f(y)||c(y))&&(x=a(T))):E=!1}E&&(q.set(T,x),w(x,T,m,A,q),q.delete(T)),e(_,b,x)}return Vi=v,Vi}var Hi,Cd;function D_(){if(Cd)return Hi;Cd=1;var e=fr(),r=sl(),n=ju(),t=j_(),a=B(),i=ye(),u=ol();function s(o,c,f,d,h){o!==c&&n(c,function(l,p){if(h||(h=new e),a(l))t(o,c,p,f,s,d,h);else{var v=d?d(u(o,p),l,p+"",o,c,h):void 0;v===void 0&&(v=l),r(o,p,v)}},i)}return Hi=s,Hi}var Wi,Sd;function G_(){if(Sd)return Wi;Sd=1;var e=mr(),r=qr();function n(t){return e(function(a,i){var u=-1,s=i.length,o=s>1?i[s-1]:void 0,c=s>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(s--,o):void 0,c&&r(i[0],i[1],c)&&(o=s<3?void 0:o,s=1),a=Object(a);++ut||s&&o&&f&&!c&&!d||i&&o&&f||!a&&f||!u)return 1;if(!i&&!s&&!d&&n=c)return f;var d=a[i];return f*(d=="desc"?-1:1)}}return n.index-t.index}return cu=r,cu}var du,Vd;function ng(){if(Vd)return du;Vd=1;var e=gr(),r=yr(),n=ie(),t=Vh(),a=Q_(),i=lr(),u=rg(),s=me(),o=k();function c(f,d,h){d.length?d=e(d,function(v){return o(v)?function(_){return r(_,v.length===1?v[0]:v)}:v}):d=[s];var l=-1;d=e(d,i(n));var p=t(f,function(v,_,g){var b=e(d,function(m){return m(v)});return{criteria:b,index:++l,value:v}});return a(p,function(v,_){return u(v,_,h)})}return du=c,du}var hu,Hd;function tg(){if(Hd)return hu;Hd=1;var e=$u(),r=ng(),n=mr(),t=qr(),a=n(function(i,u){if(i==null)return[];var s=u.length;return s>1&&t(i,u[0],u[1])?u=[]:s>2&&t(u[0],u[1],u[2])&&(u=[u[0]]),r(i,e(u,1),[])});return hu=a,hu}var lu,Wd;function ag(){if(Wd)return lu;Wd=1;var e=Dh(),r=0;function n(t){var a=++r;return e(t)+a}return lu=n,lu}var vu,Yd;function ig(){if(Yd)return vu;Yd=1;function e(r,n,t){for(var a=-1,i=r.length,u=n.length,s={};++a0;--s)if(u=r[s].dequeue(),u){t=t.concat(_u(e,r,n,u,!0));break}}}return t}function _u(e,r,n,t,a){var i=a?[]:void 0;return re.forEach(e.inEdges(t.v),function(u){var s=e.edge(u),o=e.node(u.v);a&&i.push({v:u.v,w:u.w}),o.out-=s,Eu(r,n,o)}),re.forEach(e.outEdges(t.v),function(u){var s=e.edge(u),o=u.w,c=e.node(o);c.in-=s,Eu(r,n,c)}),e.removeNode(t.v),i}function pg(e,r){var n=new fg,t=0,a=0;re.forEach(e.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),re.forEach(e.edges(),function(s){var o=n.edge(s.v,s.w)||0,c=r(s),f=o+c;n.setEdge(s.v,s.w,f),a=Math.max(a,n.node(s.v).out+=c),t=Math.max(t,n.node(s.w).in+=c)});var i=re.range(a+t+3).map(function(){return new cg}),u=t+1;return re.forEach(n.nodes(),function(s){Eu(i,u,n.node(s))}),{graph:n,buckets:i,zeroIdx:u}}function Eu(e,r,n){n.out?n.in?e[n.out-n.in+r].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var _e=M,_g=dg,gg={run:bg,undo:mg};function bg(e){var r=e.graph().acyclicer==="greedy"?_g(e,n(e)):yg(e);_e.forEach(r,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,_e.uniqueId("rev"))});function n(t){return function(a){return t.edge(a).weight}}}function yg(e){var r=[],n={},t={};function a(i){_e.has(t,i)||(t[i]=!0,n[i]=!0,_e.forEach(e.outEdges(i),function(u){_e.has(n,u.w)?r.push(u):a(u.w)}),delete n[i])}return _e.forEach(e.nodes(),a),r}function mg(e){_e.forEach(e.edges(),function(r){var n=e.edge(r);if(n.reversed){e.removeEdge(r);var t=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(r.w,r.v,n,t)}})}var C=M,dl=V.Graph,j={addDummyNode:hl,simplify:qg,asNonCompoundGraph:wg,successorWeights:Rg,predecessorWeights:Eg,intersectRect:Ig,buildLayerMatrix:Tg,normalizeRanks:Ag,removeEmptyRanks:Cg,addBorderNode:Sg,maxRank:ll,partition:Og,time:xg,notime:Pg};function hl(e,r,n,t){var a;do a=C.uniqueId(t);while(e.hasNode(a));return n.dummy=r,e.setNode(a,n),a}function qg(e){var r=new dl().setGraph(e.graph());return C.forEach(e.nodes(),function(n){r.setNode(n,e.node(n))}),C.forEach(e.edges(),function(n){var t=r.edge(n.v,n.w)||{weight:0,minlen:1},a=e.edge(n);r.setEdge(n.v,n.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),r}function wg(e){var r=new dl({multigraph:e.isMultigraph()}).setGraph(e.graph());return C.forEach(e.nodes(),function(n){e.children(n).length||r.setNode(n,e.node(n))}),C.forEach(e.edges(),function(n){r.setEdge(n,e.edge(n))}),r}function Rg(e){var r=C.map(e.nodes(),function(n){var t={};return C.forEach(e.outEdges(n),function(a){t[a.w]=(t[a.w]||0)+e.edge(a).weight}),t});return C.zipObject(e.nodes(),r)}function Eg(e){var r=C.map(e.nodes(),function(n){var t={};return C.forEach(e.inEdges(n),function(a){t[a.v]=(t[a.v]||0)+e.edge(a).weight}),t});return C.zipObject(e.nodes(),r)}function Ig(e,r){var n=e.x,t=e.y,a=r.x-n,i=r.y-t,u=e.width/2,s=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var o,c;return Math.abs(i)*u>Math.abs(a)*s?(i<0&&(s=-s),o=s*a/i,c=s):(a<0&&(u=-u),o=u,c=u*i/a),{x:n+o,y:t+c}}function Tg(e){var r=C.map(C.range(ll(e)+1),function(){return[]});return C.forEach(e.nodes(),function(n){var t=e.node(n),a=t.rank;C.isUndefined(a)||(r[a][t.order]=n)}),r}function Ag(e){var r=C.min(C.map(e.nodes(),function(n){return e.node(n).rank}));C.forEach(e.nodes(),function(n){var t=e.node(n);C.has(t,"rank")&&(t.rank-=r)})}function Cg(e){var r=C.min(C.map(e.nodes(),function(i){return e.node(i).rank})),n=[];C.forEach(e.nodes(),function(i){var u=e.node(i).rank-r;n[u]||(n[u]=[]),n[u].push(i)});var t=0,a=e.graph().nodeRankFactor;C.forEach(n,function(i,u){C.isUndefined(i)&&u%a!==0?--t:t&&C.forEach(i,function(s){e.node(s).rank+=t})})}function Sg(e,r,n,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=n,a.order=t),hl(e,"border",a,r)}function ll(e){return C.max(C.map(e.nodes(),function(r){var n=e.node(r).rank;if(!C.isUndefined(n))return n}))}function Og(e,r){var n={lhs:[],rhs:[]};return C.forEach(e,function(t){r(t)?n.lhs.push(t):n.rhs.push(t)}),n}function xg(e,r){var n=C.now();try{return r()}finally{console.log(e+" time: "+(C.now()-n)+"ms")}}function Pg(e,r){return r()}var vl=M,Mg=j,Lg={run:kg,undo:Fg};function kg(e){e.graph().dummyChains=[],vl.forEach(e.edges(),function(r){Ng(e,r)})}function Ng(e,r){var n=r.v,t=e.node(n).rank,a=r.w,i=e.node(a).rank,u=r.name,s=e.edge(r),o=s.labelRank;if(i!==t+1){e.removeEdge(r);var c,f,d;for(d=0,++t;tu.lim&&(s=u,o=!0);var c=te.filter(r.edges(),function(f){return o===Zd(e,e.node(f.v),s)&&o!==Zd(e,e.node(f.w),s)});return te.minBy(c,function(f){return Vg(r,f)})}function ml(e,r,n,t){var a=n.v,i=n.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),Vu(e),Ku(e,r),Qg(e,r)}function Qg(e,r){var n=te.find(e.nodes(),function(a){return!r.node(a).parent}),t=Wg(e,n);t=t.slice(1),te.forEach(t,function(a){var i=e.node(a).parent,u=r.edge(a,i),s=!1;u||(u=r.edge(i,a),s=!0),r.node(a).rank=r.node(i).rank+(s?u.minlen:-u.minlen)})}function eb(e,r,n){return e.hasEdge(r,n)}function Zd(e,r,n){return n.low<=r.lim&&r.lim<=n.lim}var rb=Rr,ql=rb.longestPath,nb=pl,tb=Zg,ab=ib;function ib(e){switch(e.graph().ranker){case"network-simplex":Jd(e);break;case"tight-tree":sb(e);break;case"longest-path":ub(e);break;default:Jd(e)}}var ub=ql;function sb(e){ql(e),nb(e)}function Jd(e){tb(e)}var Iu=M,ob=fb;function fb(e){var r=db(e);Iu.forEach(e.graph().dummyChains,function(n){for(var t=e.node(n),a=t.edgeObj,i=cb(e,r,a.v,a.w),u=i.path,s=i.lca,o=0,c=u[o],f=!0;n!==a.w;){if(t=e.node(n),f){for(;(c=u[o])!==s&&e.node(c).maxRanku||s>r[o].lim));for(c=o,o=t;(o=e.parent(o))!==c;)i.push(o);return{path:a.concat(i.reverse()),lca:c}}function db(e){var r={},n=0;function t(a){var i=n;Iu.forEach(e.children(a),t),r[a]={low:i,lim:n++}}return Iu.forEach(e.children(),t),r}var ne=M,Tu=j,hb={run:lb,cleanup:_b};function lb(e){var r=Tu.addDummyNode(e,"root",{},"_root"),n=vb(e),t=ne.max(ne.values(n))-1,a=2*t+1;e.graph().nestingRoot=r,ne.forEach(e.edges(),function(u){e.edge(u).minlen*=a});var i=pb(e)+1;ne.forEach(e.children(),function(u){wl(e,r,a,i,t,n,u)}),e.graph().nodeRankFactor=a}function wl(e,r,n,t,a,i,u){var s=e.children(u);if(!s.length){u!==r&&e.setEdge(r,u,{weight:0,minlen:n});return}var o=Tu.addBorderNode(e,"_bt"),c=Tu.addBorderNode(e,"_bb"),f=e.node(u);e.setParent(o,u),f.borderTop=o,e.setParent(c,u),f.borderBottom=c,ne.forEach(s,function(d){wl(e,r,n,t,a,i,d);var h=e.node(d),l=h.borderTop?h.borderTop:d,p=h.borderBottom?h.borderBottom:d,v=h.borderTop?t:2*t,_=l!==p?1:a-i[u]+1;e.setEdge(o,l,{weight:v,minlen:_,nestingEdge:!0}),e.setEdge(p,c,{weight:v,minlen:_,nestingEdge:!0})}),e.parent(u)||e.setEdge(r,o,{weight:0,minlen:a+i[u]})}function vb(e){var r={};function n(t,a){var i=e.children(t);i&&i.length&&ne.forEach(i,function(u){n(u,a+1)}),r[t]=a}return ne.forEach(e.children(),function(t){n(t,1)}),r}function pb(e){return ne.reduce(e.edges(),function(r,n){return r+e.edge(n).weight},0)}function _b(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,ne.forEach(e.edges(),function(n){var t=e.edge(n);t.nestingEdge&&e.removeEdge(n)})}var gu=M,gb=j,bb=yb;function yb(e){function r(n){var t=e.children(n),a=e.node(n);if(t.length&&gu.forEach(t,r),gu.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,u=a.maxRank+1;i0;)f%2&&(d+=s[f+1]),f=f-1>>1,s[f]+=c.weight;o+=c.weight*d})),o}var rh=M,Ob=xb;function xb(e,r){return rh.map(r,function(n){var t=e.inEdges(n);if(t.length){var a=rh.reduce(t,function(i,u){var s=e.edge(u),o=e.node(u.v);return{sum:i.sum+s.weight*o.order,weight:i.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:n}})}var G=M,Pb=Mb;function Mb(e,r){var n={};G.forEach(e,function(a,i){var u=n[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};G.isUndefined(a.barycenter)||(u.barycenter=a.barycenter,u.weight=a.weight)}),G.forEach(r.edges(),function(a){var i=n[a.v],u=n[a.w];!G.isUndefined(i)&&!G.isUndefined(u)&&(u.indegree++,i.out.push(n[a.w]))});var t=G.filter(n,function(a){return!a.indegree});return Lb(t)}function Lb(e){var r=[];function n(i){return function(u){u.merged||(G.isUndefined(u.barycenter)||G.isUndefined(i.barycenter)||u.barycenter>=i.barycenter)&&kb(i,u)}}function t(i){return function(u){u.in.push(i),--u.indegree===0&&e.push(u)}}for(;e.length;){var a=e.pop();r.push(a),G.forEach(a.in.reverse(),n(a)),G.forEach(a.out,t(a))}return G.map(G.filter(r,function(i){return!i.merged}),function(i){return G.pick(i,["vs","i","barycenter","weight"])})}function kb(e,r){var n=0,t=0;e.weight&&(n+=e.barycenter*e.weight,t+=e.weight),r.weight&&(n+=r.barycenter*r.weight,t+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=n/t,e.weight=t,e.i=Math.min(r.i,e.i),r.merged=!0}var Ne=M,Nb=j,Fb=jb;function jb(e,r){var n=Nb.partition(e,function(f){return Ne.has(f,"barycenter")}),t=n.lhs,a=Ne.sortBy(n.rhs,function(f){return-f.i}),i=[],u=0,s=0,o=0;t.sort(Db(!!r)),o=nh(i,a,o),Ne.forEach(t,function(f){o+=f.vs.length,i.push(f.vs),u+=f.barycenter*f.weight,s+=f.weight,o=nh(i,a,o)});var c={vs:Ne.flatten(i,!0)};return s&&(c.barycenter=u/s,c.weight=s),c}function nh(e,r,n){for(var t;r.length&&(t=Ne.last(r)).i<=n;)r.pop(),e.push(t.vs),n++;return n}function Db(e){return function(r,n){return r.barycentern.barycenter?1:e?n.i-r.i:r.i-n.i}}var fe=M,Gb=Ob,Bb=Pb,$b=Fb,Ub=El;function El(e,r,n,t){var a=e.children(r),i=e.node(r),u=i?i.borderLeft:void 0,s=i?i.borderRight:void 0,o={};u&&(a=fe.filter(a,function(p){return p!==u&&p!==s}));var c=Gb(e,a);fe.forEach(c,function(p){if(e.children(p.v).length){var v=El(e,p.v,n,t);o[p.v]=v,fe.has(v,"barycenter")&&Kb(p,v)}});var f=Bb(c,n);zb(f,o);var d=$b(f,t);if(u&&(d.vs=fe.flatten([u,d.vs,s],!0),e.predecessors(u).length)){var h=e.node(e.predecessors(u)[0]),l=e.node(e.predecessors(s)[0]);fe.has(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+h.order+l.order)/(d.weight+2),d.weight+=2}return d}function zb(e,r){fe.forEach(e,function(n){n.vs=fe.flatten(n.vs.map(function(t){return r[t]?r[t].vs:t}),!0)})}function Kb(e,r){fe.isUndefined(e.barycenter)?(e.barycenter=r.barycenter,e.weight=r.weight):(e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight)}var Fe=M,Vb=V.Graph,Hb=Wb;function Wb(e,r,n){var t=Yb(e),a=new Vb({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return Fe.forEach(e.nodes(),function(i){var u=e.node(i),s=e.parent(i);(u.rank===r||u.minRank<=r&&r<=u.maxRank)&&(a.setNode(i),a.setParent(i,s||t),Fe.forEach(e[n](i),function(o){var c=o.v===i?o.w:o.v,f=a.edge(c,i),d=Fe.isUndefined(f)?0:f.weight;a.setEdge(c,i,{weight:e.edge(o).weight+d})}),Fe.has(u,"minRank")&&a.setNode(i,{borderLeft:u.borderLeft[r],borderRight:u.borderRight[r]}))}),a}function Yb(e){for(var r;e.hasNode(r=Fe.uniqueId("_root")););return r}var Xb=M,Zb=Jb;function Jb(e,r,n){var t={},a;Xb.forEach(n,function(i){for(var u=e.parent(i),s,o;u;){if(s=e.parent(u),s?(o=t[s],t[s]=u):(o=a,a=u),o&&o!==u){r.setEdge(o,u);return}u=s}})}var de=M,Qb=Ib,ey=Ab,ry=Ub,ny=Hb,ty=Zb,ay=V.Graph,th=j,iy=uy;function uy(e){var r=th.maxRank(e),n=ah(e,de.range(1,r+1),"inEdges"),t=ah(e,de.range(r-1,-1,-1),"outEdges"),a=Qb(e);ih(e,a);for(var i=Number.POSITIVE_INFINITY,u,s=0,o=0;o<4;++s,++o){sy(s%2?n:t,s%4>=2),a=th.buildLayerMatrix(e);var c=ey(e,a);cc)&&Hu(n,h,f)})})}function a(i,u){var s=-1,o,c=0;return R.forEach(u,function(f,d){if(e.node(f).dummy==="border"){var h=e.predecessors(f);h.length&&(o=e.node(h[0]).order,t(u,c,d,s,o),c=d,s=o)}t(u,c,u.length,o,i.length)}),u}return R.reduce(r,a),n}function dy(e,r){if(e.node(r).dummy)return R.find(e.predecessors(r),function(n){return e.node(n).dummy})}function Hu(e,r,n){if(r>n){var t=r;r=n,n=t}var a=e[r];a||(e[r]=a={}),a[n]=!0}function Al(e,r,n){if(r>n){var t=r;r=n,n=t}return R.has(e[r],n)}function Cl(e,r,n,t){var a={},i={},u={};return R.forEach(r,function(s){R.forEach(s,function(o,c){a[o]=o,i[o]=o,u[o]=c})}),R.forEach(r,function(s){var o=-1;R.forEach(s,function(c){var f=t(c);if(f.length){f=R.sortBy(f,function(v){return u[v]});for(var d=(f.length-1)/2,h=Math.floor(d),l=Math.ceil(d);h<=l;++h){var p=f[h];i[c]===c&&o({}));const o=u==="LR";s.setGraph({rankdir:u}),n.value=u;for(const c of a){const f=e(c.id);s.setNode(c.id,{width:f.dimensions.width||150,height:f.dimensions.height||50})}for(const c of i)s.setEdge(c.source,c.target);return wu.layout(s),a.map(c=>{const f=s.node(c.id);return Tr(Ir({},c),{targetPosition:o?Ze.Left:Ze.Top,sourcePosition:o?Ze.Right:Ze.Bottom,position:{x:f.x,y:f.y}})})}return{graph:r,layout:t,previousDirection:n}}function um(e){for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]]}}function sm(e){const r=[];for(const n of e)for(const t of e)if(n.id!==t.id){const a=`e${n.id}-${t.id}`;r.push({id:a,source:n.id,target:t.id,type:"animation",animated:!0})}return r}function om(){return e=>{const r=sm(e);um(r);const n=new Set,t=[];for(const a of r)!n.has(a.target)&&(n.size===0||n.has(a.source))&&(t.push(a),n.add(a.source),n.add(a.target));return t}}function fm({graph:e,cancelOnError:r=!0}){const{updateNodeData:n,getConnectedEdges:t}=ar(),a=Ru(()=>rs(e)),i=Te(!1),u=new Set,s=new Map,o=new Set;function c(v,_=!1){return Q(this,null,function*(){if(u.has(v.id))return;o.add(v.id);const g=t(v.id).filter(m=>m.target===v.id);if(yield Promise.all(g.map(m=>cm(()=>!m.data.isAnimating))),o.clear(),!i.value)return;u.add(v.id),n(v.id,{isRunning:!0,isFinished:!1,hasError:!1,isCancelled:!1});const b=Math.floor(Math.random()*2e3)+1e3;return new Promise(m=>{const w=setTimeout(()=>Q(this,null,function*(){const A=a.value.successors(v.id),q=Math.random()<.15;if(!_&&q&&(n(v.id,{isRunning:!1,hasError:!0}),rs(r))){yield h(v.id),s.delete(v.id),m();return}n(v.id,{isRunning:!1,isFinished:!0}),s.delete(v.id),A.length>0&&(yield Promise.all(A.map(y=>c({id:y})))),m()}),_?0:b);s.set(v.id,w)})})}function f(v){return Q(this,null,function*(){if(i.value)return;d(v),i.value=!0;const _=v.filter(g=>{var b;return((b=a.value.predecessors(g.id))==null?void 0:b.length)===0});yield Promise.all(_.map(g=>c(g,!0))),p()})}function d(v){p();for(const _ of v)n(_.id,{isRunning:!1,isFinished:!1,hasError:!1,isSkipped:!1,isCancelled:!1})}function h(v){return Q(this,null,function*(){const _=a.value.successors(v);for(const g of _)n(g,{isRunning:!1,isSkipped:!0}),yield h(g)})}function l(){return Q(this,null,function*(){i.value=!1;for(const v of o)clearTimeout(s.get(v)),s.delete(v),n(v,{isRunning:!1,isFinished:!1,hasError:!1,isSkipped:!1,isCancelled:!0}),yield h(v);for(const[v,_]of s)clearTimeout(_),s.delete(v),n(v,{isRunning:!1,isFinished:!1,hasError:!1,isSkipped:!1,isCancelled:!0}),yield h(v);u.clear(),o.clear()})}function p(){i.value=!1,u.clear(),s.clear()}return{run:f,stop:l,reset:d,isRunning:i}}function cm(e){return Q(this,null,function*(){return new Promise(r=>{const n=setInterval(()=>{e()&&(clearInterval(n),r())},100)})})}var Y=(e=>(e.Lines="lines",e.Dots="dots",e))(Y||{});const Ll=function({dimensions:e,size:r,color:n}){return dh("path",{stroke:n,"stroke-width":r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},kl=function({radius:e,color:r}){return dh("circle",{cx:e,cy:e,r:e,fill:r})};Y.Lines+"",Y.Dots+"";const dm={[Y.Dots]:"#81818a",[Y.Lines]:"#eee"},hm=["id","x","y","width","height","patternTransform"],lm={key:2,height:"100",width:"100"},vm=["fill"],pm=["x","y","fill"],_m={name:"Background",compatConfig:{MODE:3}},gm=ch(Tr(Ir({},_m),{props:{id:{},variant:{default:()=>Y.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:2}},setup(e){const{id:r,viewport:n}=ar(),t=ov(()=>{const[u,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],o=[u*n.value.zoom||1,s*n.value.zoom||1],c=e.size*n.value.zoom,f=e.variant===Y.Dots?[c/e.offset,c/e.offset]:[o[0]/e.offset,o[1]/e.offset];return{scaledGap:o,offset:f,size:c}}),a=Ru(()=>`pattern-${r}${e.id?`-${e.id}`:""}`),i=Ru(()=>e.color||e.patternColor||dm[e.variant||Y.Dots]);return(u,s)=>(pe(),De("svg",{class:"vue-flow__background vue-flow__container",style:fv({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[Ar(u.$slots,"pattern-container",{id:a.value},()=>[ce("pattern",{id:a.value,x:D(n).x%t.value.scaledGap[0],y:D(n).y%t.value.scaledGap[1],width:t.value.scaledGap[0],height:t.value.scaledGap[1],patternTransform:`translate(-${t.value.offset[0]},-${t.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[Ar(u.$slots,"pattern",{},()=>[u.variant===D(Y).Lines?(pe(),ns(D(Ll),{key:0,size:u.lineWidth,color:i.value,dimensions:t.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===D(Y).Dots?(pe(),ns(D(kl),{key:1,color:i.value,radius:t.value.size/u.offset},null,8,["color","radius"])):ts("",!0),u.bgColor?(pe(),De("svg",lm,[ce("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,vm)])):ts("",!0)])],8,hm)]),ce("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,pm),Ar(u.$slots,"default",{id:a.value})],4))}})),U={x:0,y:0},z="process",W="animation",bm=[{id:"1",position:U,type:z},{id:"2",position:U,type:z},{id:"2a",position:U,type:z},{id:"2b",position:U,type:z},{id:"2c",position:U,type:z},{id:"2d",position:U,type:z},{id:"3",position:U,type:z},{id:"4",position:U,type:z},{id:"5",position:U,type:z},{id:"6",position:U,type:z},{id:"7",position:U,type:z}],ym=[{id:"e1-2",source:"1",target:"2",type:W,animated:!0},{id:"e1-3",source:"1",target:"3",type:W,animated:!0},{id:"e2-2a",source:"2",target:"2a",type:W,animated:!0},{id:"e2-2b",source:"2",target:"2b",type:W,animated:!0},{id:"e2-2c",source:"2",target:"2c",type:W,animated:!0},{id:"e2c-2d",source:"2c",target:"2d",type:W,animated:!0},{id:"e3-7",source:"3",target:"4",type:W,animated:!0},{id:"e4-5",source:"4",target:"5",type:W,animated:!0},{id:"e5-6",source:"5",target:"6",type:W,animated:!0},{id:"e5-7",source:"5",target:"7",type:W,animated:!0}],mm=e=>(cv("data-v-6094ddc5"),e=e(),dv(),e),qm={class:"layout-flow"},wm={class:"layout-panel"},Rm=mm(()=>ce("span",{class:"spinner"},null,-1)),Em=ch({__name:"index",setup(e){const r=Te(bm),n=Te(ym),t=Te(!0),a=om(),{graph:i,layout:u,previousDirection:s}=im(),{run:o,stop:c,reset:f,isRunning:d}=fm({graph:i,cancelOnError:t}),{fitView:h}=ar();function l(){return Q(this,null,function*(){yield c(),f(r.value),n.value=a(r.value),as(()=>{p(s.value)})})}function p(v){return Q(this,null,function*(){yield c(),f(r.value),r.value=u(r.value,n.value,v),as(()=>{h(),o(r.value)})})}return(v,_)=>(pe(),De("div",qm,[H(D(vv),{nodes:r.value,edges:n.value,onNodesInitialized:_[4]||(_[4]=g=>p("LR"))},{"node-process":Xe(g=>[H(pv,{data:g.data,"source-position":g.sourcePosition,"target-position":g.targetPosition},null,8,["data","source-position","target-position"])]),"edge-animation":Xe(g=>[H(_v,{id:g.id,source:g.source,target:g.target,"source-x":g.sourceX,"source-y":g.sourceY,targetX:g.targetX,targetY:g.targetY,"source-position":g.sourcePosition,"target-position":g.targetPosition},null,8,["id","source","target","source-x","source-y","targetX","targetY","source-position","target-position"])]),default:Xe(()=>[H(D(gm)),H(D(lv),{class:"process-panel",position:"top-left"},{default:Xe(()=>[ce("div",wm,[D(d)?(pe(),De("button",{key:0,class:"stop-btn",title:"stop",onClick:_[0]||(_[0]=(...g)=>D(c)&&D(c)(...g))},[H(Pe,{name:"stop"}),Rm])):(pe(),De("button",{key:1,title:"start",onClick:_[1]||(_[1]=g=>D(o)(r.value))},[H(Pe,{name:"play"})])),ce("button",{title:"set horizontal layout",onClick:_[2]||(_[2]=g=>p("LR"))},[H(Pe,{name:"horizontal"})]),ce("button",{title:"set vertical layout",onClick:_[3]||(_[3]=g=>p("TB"))},[H(Pe,{name:"vertical"})]),ce("button",{title:"shuffle graph",onClick:l},[H(Pe,{name:"shuffle"})])])]),_:1})]),_:1},8,["nodes","edges"])]))}}),Pm=hv(Em,[["__scopeId","data-v-6094ddc5"]]);export{Pm as default};
diff --git a/dist/static/js/index-Cvbb2wK8.js b/dist/static/js/index-CAh8tl6A.js
similarity index 93%
rename from dist/static/js/index-Cvbb2wK8.js
rename to dist/static/js/index-CAh8tl6A.js
index 88d65cf9d..4a7d22709 100644
--- a/dist/static/js/index-Cvbb2wK8.js
+++ b/dist/static/js/index-CAh8tl6A.js
@@ -1,4 +1,4 @@
-var E=Object.defineProperty,F=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var z=(n,t,e)=>t in n?E(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,f=(n,t)=>{for(var e in t||(t={}))J.call(t,e)&&z(n,e,t[e]);if(x)for(var e of x(t))K.call(t,e)&&z(n,e,t[e]);return n},C=(n,t)=>F(n,O(t));var L=(n,t,e)=>new Promise((d,m)=>{var y=l=>{try{c(e.next(l))}catch(v){m(v)}},u=l=>{try{c(e.throw(l))}catch(v){m(v)}},c=l=>l.done?d(l.value):Promise.resolve(l.value).then(y,u);c((e=e.apply(n,t)).next())});import{aA as R,d as G,r as p,o as H,x as h,g as Q,m as s,j as g,u as b,z as w,a3 as S,F as k,K as W,k as r,v as X,e as _,l as Y,y as Z,f as ee,cS as te,J as ae,q as ne}from"./index-DZuaHQDs.js";import le from"./Card-BNUdiuPZ.js";import{_ as oe}from"./DialogForm.vue_vue_type_script_setup_true_lang-Biwq1ieX.js";import{u as se}from"./hooks-BoRjbw1y.js";import{d as ie}from"./add-circle-line-DOJqVT3s.js";import"./more-2-fill-iTOisMwj.js";const re=n=>R.request("post","/get-card-list",{data:n}),ue={class:"main"},ce={class:"w-full flex justify-between mb-4"},pe=`
+var E=Object.defineProperty,F=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var z=(n,t,e)=>t in n?E(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,f=(n,t)=>{for(var e in t||(t={}))J.call(t,e)&&z(n,e,t[e]);if(x)for(var e of x(t))K.call(t,e)&&z(n,e,t[e]);return n},C=(n,t)=>F(n,O(t));var L=(n,t,e)=>new Promise((d,m)=>{var y=l=>{try{c(e.next(l))}catch(v){m(v)}},u=l=>{try{c(e.throw(l))}catch(v){m(v)}},c=l=>l.done?d(l.value):Promise.resolve(l.value).then(y,u);c((e=e.apply(n,t)).next())});import{aA as R,d as G,r as p,o as H,x as h,g as Q,m as s,j as g,u as b,z as w,a3 as S,F as k,K as W,k as r,v as X,e as _,l as Y,y as Z,f as ee,cS as te,J as ae,q as ne}from"./index-BAaep8yZ.js";import le from"./Card-kz7mZq7D.js";import{_ as oe}from"./DialogForm.vue_vue_type_script_setup_true_lang-DqkU9iqK.js";import{u as se}from"./hooks-n2iC5q0_.js";import{d as ie}from"./add-circle-line-DOJqVT3s.js";import"./more-2-fill-iTOisMwj.js";const re=n=>R.request("post","/get-card-list",{data:n}),ue={class:"main"},ce={class:"w-full flex justify-between mb-4"},pe=`
{const u=c("el-scrollbar"),a=c("el-button"),h=c("pure-table");return i(),m("div",D,[o(u,{height:"540px"},{default:t(()=>[n("code",null,[n("pre",H," "+g(e(l)),1)])]),_:1}),o(h,{"row-key":"id","align-whole":"center","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},data:e(l),columns:e(s)},{empty:t(()=>[o(e($),{fill:"var(--el-svg-monochrome-grey)",class:"m-auto"})]),append:t(()=>[o(a,{plain:"",class:"w-full my-2",icon:e(r)(e(k)),onClick:e(_)},{default:t(()=>[y(" 添加一行数据 ")]),_:1},8,["icon","onClick"])]),operation:t(({row:f})=>[o(a,{class:"reset-margin",link:"",type:"primary",icon:e(r)(e(C)),onClick:E=>e(p)(f)},null,8,["icon","onClick"])]),_:1},8,["header-cell-style","data","columns"])])}}}),q=w(M,[["__scopeId","data-v-103a7622"]]);export{q as default};
+import{useColumns as v}from"./columns-BtBFa8wK.js";import{e as i,x as m,g as n,d as x,k as c,m as o,j as t,t as g,u as e,l as y,_ as w}from"./index-BAaep8yZ.js";import{u as r}from"./hooks-n2iC5q0_.js";import{d as k}from"./plus-C98eNXam.js";import{d as C}from"./delete-Ce0TSdK5.js";import"./data-Dd4sCrbk.js";const b={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",class:"empty-icon",viewBox:"0 0 1024 1024"},L=n("path",{d:"M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18M673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4zm146.5-486.1c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8m-444.5 51.6L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4M512 239.3h2.5c19.5.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1z"},null,-1),B=[L];function V(d,s){return i(),m("svg",b,[...B])}const $={render:V},D={class:"flex"},H={class:"w-[400px]"},M=x({__name:"index",setup(d){const{columns:s,dataList:l,onAdd:_,onDel:p}=v();return(N,z)=>{const u=c("el-scrollbar"),a=c("el-button"),h=c("pure-table");return i(),m("div",D,[o(u,{height:"540px"},{default:t(()=>[n("code",null,[n("pre",H," "+g(e(l)),1)])]),_:1}),o(h,{"row-key":"id","align-whole":"center","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},data:e(l),columns:e(s)},{empty:t(()=>[o(e($),{fill:"var(--el-svg-monochrome-grey)",class:"m-auto"})]),append:t(()=>[o(a,{plain:"",class:"w-full my-2",icon:e(r)(e(k)),onClick:e(_)},{default:t(()=>[y(" 添加一行数据 ")]),_:1},8,["icon","onClick"])]),operation:t(({row:f})=>[o(a,{class:"reset-margin",link:"",type:"primary",icon:e(r)(e(C)),onClick:E=>e(p)(f)},null,8,["icon","onClick"])]),_:1},8,["header-cell-style","data","columns"])])}}}),q=w(M,[["__scopeId","data-v-103a7622"]]);export{q as default};
diff --git a/dist/static/js/index-CVEx7WqW.js b/dist/static/js/index-CVEx7WqW.js
new file mode 100644
index 000000000..a1ac36a3d
--- /dev/null
+++ b/dist/static/js/index-CVEx7WqW.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-6skdLNqn.js";import"./columns-fAqPYQMY.js";import"./data-ClgPGhLc.js";import"./index-BAaep8yZ.js";export{o as default};
diff --git a/dist/static/js/index-U-4QRTIG.js b/dist/static/js/index-CXmDcenG.js
similarity index 86%
rename from dist/static/js/index-U-4QRTIG.js
rename to dist/static/js/index-CXmDcenG.js
index 5d86a4ce7..6520d4323 100644
--- a/dist/static/js/index-U-4QRTIG.js
+++ b/dist/static/js/index-CXmDcenG.js
@@ -1 +1 @@
-import{d as m,r,U as p,x as d,g as s,t as o,u as a,m as i,k as c,e as _}from"./index-DZuaHQDs.js";const f={class:"dark:text-white"},x={style:{"text-indent":"2em"}},v=m({name:"Menu1-1",__name:"index",setup(V){const e=r(""),{t:n}=p();return(h,t)=>{const l=c("el-input");return _(),d("div",f,[s("p",null,o(a(n)("menus.hsmenu1")),1),s("p",x,o(a(n)("menus.hsmenu1-1")),1),i(l,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u)},null,8,["modelValue"])])}}});export{v as default};
+import{d as m,r,U as p,x as d,g as s,t as o,u as a,m as i,k as c,e as _}from"./index-BAaep8yZ.js";const f={class:"dark:text-white"},x={style:{"text-indent":"2em"}},v=m({name:"Menu1-1",__name:"index",setup(V){const e=r(""),{t:n}=p();return(h,t)=>{const l=c("el-input");return _(),d("div",f,[s("p",null,o(a(n)("menus.hsmenu1")),1),s("p",x,o(a(n)("menus.hsmenu1-1")),1),i(l,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u)},null,8,["modelValue"])])}}});export{v as default};
diff --git a/dist/static/js/index-CYN93geP.js b/dist/static/js/index-CYN93geP.js
deleted file mode 100644
index 21d2d433d..000000000
--- a/dist/static/js/index-CYN93geP.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-BocYgLg6.js";import"./columns-B6icGCHy.js";import"./print-B-zH8tbv.js";import"./data-C_5PjqzO.js";import"./index-DZuaHQDs.js";export{o as default};
diff --git a/dist/static/js/index-C08tY3-O.js b/dist/static/js/index-CZHPYV44.js
similarity index 93%
rename from dist/static/js/index-C08tY3-O.js
rename to dist/static/js/index-CZHPYV44.js
index 20cc27898..8a55d773e 100644
--- a/dist/static/js/index-C08tY3-O.js
+++ b/dist/static/js/index-CZHPYV44.js
@@ -1 +1 @@
-import{e as c,x as d,g as t,d as r,ag as l,m as i,u as n,A as _,B as p,_ as u}from"./index-DZuaHQDs.js";const h={width:"32",height:"32",viewBox:"0 0 48 48"},f=t("path",{fill:"#2F88FF","fill-rule":"evenodd",stroke:"#000","stroke-linejoin":"round","stroke-width":"4",d:"M44 40.836q-7.34-8.96-13.036-10.168t-10.846-.365V41L4 23.545 20.118 7v10.167q9.523.075 16.192 6.833 6.668 6.758 7.69 16.836Z","clip-rule":"evenodd"},null,-1),x=[f];function v(e,o){return c(),d("svg",h,[...x])}const m={render:v},a=e=>(_("data-v-b1cd7caf"),e=e(),p(),e),k={class:"w-full h-full text-center"},w=a(()=>t("h1",null,"业务内容模块",-1)),g=a(()=>t("p",null,"使用场景:需要外嵌平台某个页面,不需要展示菜单导航以及额外模块",-1)),B=r({name:"Empty",__name:"index",setup(e){const o=l();return(b,s)=>(c(),d("div",k,[w,g,t("div",{class:"back",title:"返回上一页",onClick:s[0]||(s[0]=I=>n(o).go(-1))},[i(n(m),{class:"w-[80px] h-[80px]"})])]))}}),F=u(B,[["__scopeId","data-v-b1cd7caf"]]);export{F as default};
+import{e as c,x as d,g as t,d as r,ag as l,m as i,u as n,A as _,B as p,_ as u}from"./index-BAaep8yZ.js";const h={width:"32",height:"32",viewBox:"0 0 48 48"},f=t("path",{fill:"#2F88FF","fill-rule":"evenodd",stroke:"#000","stroke-linejoin":"round","stroke-width":"4",d:"M44 40.836q-7.34-8.96-13.036-10.168t-10.846-.365V41L4 23.545 20.118 7v10.167q9.523.075 16.192 6.833 6.668 6.758 7.69 16.836Z","clip-rule":"evenodd"},null,-1),x=[f];function v(e,o){return c(),d("svg",h,[...x])}const m={render:v},a=e=>(_("data-v-b1cd7caf"),e=e(),p(),e),k={class:"w-full h-full text-center"},w=a(()=>t("h1",null,"业务内容模块",-1)),g=a(()=>t("p",null,"使用场景:需要外嵌平台某个页面,不需要展示菜单导航以及额外模块",-1)),B=r({name:"Empty",__name:"index",setup(e){const o=l();return(b,s)=>(c(),d("div",k,[w,g,t("div",{class:"back",title:"返回上一页",onClick:s[0]||(s[0]=I=>n(o).go(-1))},[i(n(m),{class:"w-[80px] h-[80px]"})])]))}}),F=u(B,[["__scopeId","data-v-b1cd7caf"]]);export{F as default};
diff --git a/dist/static/js/index-CbE8Hllz.js b/dist/static/js/index-CbE8Hllz.js
new file mode 100644
index 000000000..19e9cab9a
--- /dev/null
+++ b/dist/static/js/index-CbE8Hllz.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-0WGNphMM.js";import"./columns-CfQo81CX.js";import"./data-ClgPGhLc.js";import"./index-BAaep8yZ.js";export{o as default};
diff --git a/dist/static/js/index-CbqQqAmI.js b/dist/static/js/index-CcfPlkdx.js
similarity index 97%
rename from dist/static/js/index-CbqQqAmI.js
rename to dist/static/js/index-CcfPlkdx.js
index cf21b5a9f..e48e78152 100644
--- a/dist/static/js/index-CbqQqAmI.js
+++ b/dist/static/js/index-CcfPlkdx.js
@@ -1 +1 @@
-import{d as q,r as j,ag as F,c as V,an as G,ao as K,f as b,j as c,k as i,v as Y,e as r,g as e,z as N,l,m as n,a3 as Q,t as B,x as I,u as p,i as W,h as X,K as L,T as ee,J as $,G as te,H as se,A as oe,B as ae,_ as ne}from"./index-DZuaHQDs.js";import{S as le}from"./sortable.esm-6WsHlDA5.js";import{_ as ie}from"./form.vue_vue_type_script_setup_true_lang-Dsbp5iVJ.js";import{d as ce}from"./plus-C98eNXam.js";import"./mock-DdzUNl2o.js";const re="/vue-pure-admin/static/jpg/1-CNu9tHLV.jpg",de="/vue-pure-admin/static/jpg/2-Dn7NyzRJ.jpg",pe="/vue-pure-admin/static/jpg/3-BNVYzMvF.jpg",ue={width:24,height:24,body:''},me={width:24,height:24,body:''},u=v=>(oe("data-v-cc9c60b8"),v=v(),ae(),v),_e={class:"card-header"},ge={class:"header-right"},ve=u(()=>e("p",{class:"mb-4"},[l(" 综合示例"),e("span",{class:"text-[14px]"},[l(" ( "),e("span",{class:"text-[red]"},"自动上传"),l(" 、拖拽上传、拖拽排序、设置请求头、上传进度、大图预览、多选文件、最大文件数量、文件类型限制、文件大小限制、删除文件) ")])],-1)),he={key:0,class:"mt-[35%] m-auto"},fe=u(()=>e("p",{class:"font-medium"},"文件上传中",-1)),xe=["onMouseenter"],ye=["src"],be=["onClick"],ke=["onClick"],we={title:"移除",class:"hover:text-[var(--el-color-danger)]"},Ce={key:0,effect:"dark",round:"",size:"large",type:"info",class:"img-name"},je={class:"text-[#fff] dark:text-black"},Ie=u(()=>e("p",{class:"el-upload__tip"}," 可拖拽上传最多3张单个不超过2MB且格式为jpeg/png/gif的图片 ",-1)),$e=u(()=>e("p",{class:"mb-4 mt-4"},[l(" 结合表单校验进行"),e("span",{class:"text-[red]"},"手动上传"),e("span",{class:"text-[14px]"}," (可先打开浏览器控制台找到Network,然后填写表单内容后点击点提交观察请求变化) ")],-1)),ze={class:"flex justify-between"},Se=u(()=>e("p",{class:"text-center"},"上传接口相关截图",-1)),Me={class:"flex flex-wrap"},Ve={class:"text-[red] text-[12px] flex flex-auto items-center justify-end"},Ne=u(()=>e("span",{class:"font-bold text-[18x]"}," 请不要上传重要信息 ",-1)),Be=q({name:"PureUpload",__name:"index",setup(v){const o=j([]),E=F(),m=j(0),h=j(!1),U=V(()=>G(o.value,"url")),A=V(()=>K(o.value,"name","size")),Z=s=>new URL(Object.assign({"./imgs/1.jpg":re,"./imgs/2.jpg":de,"./imgs/3.jpg":pe})[`./imgs/${s}.jpg`],import.meta.url).href,z=Array.from({length:3}).map((s,t)=>Z(t+1)),D=s=>{if(!["image/jpeg","image/png","image/gif"].includes(s.type))return $("只能上传图片"),!1;if(s.size/1024/1024>2)return $("单个图片大小不能超过2MB"),!1},H=()=>{$("最多上传3张图片,请先删除在上传")},O=s=>{o.value.splice(o.value.indexOf(s),1)},J=s=>{m.value=o.value.findIndex(t=>t.uid===s.uid),h.value=!0},S=()=>document.querySelectorAll("#pure-upload-item"),R=s=>{var d,x,y;const t="el-upload-list",f=o.value.findIndex(_=>_.uid===s);(y=(x=(d=S())==null?void 0:d[f])==null?void 0:x.classList)==null||y.add(`${t}__item-actions`);const k=document.querySelector(`.${t}`);le.create(k,{handle:`.${t}__item`,onEnd:({newIndex:_,oldIndex:g})=>{const w=o.value[g];o.value.splice(g,1),o.value.splice(_,0,w),S().forEach(C=>{C.classList.remove(`${t}__item-actions`)})}})},T=()=>{[{name:"巴旦木.jpeg",type:"img"},{name:"恭喜发财.png",type:"img"},{name:"可爱动物.gif",type:"gif"},{name:"pure-upload.csv",type:"other"},{name:"pure-upload.txt",type:"other"}].forEach(s=>{te.get(`https://xiaoxian521.github.io/hyperlink/${s.type}/${s.name}`,{responseType:"blob"}).then(({data:t})=>{se(t,s.name)})})};return(s,t)=>{const f=i("el-link"),k=i("el-button"),d=i("IconifyIconOffline"),x=i("el-progress"),y=i("el-upload"),_=i("el-image-viewer"),g=i("el-divider"),w=i("el-image"),C=i("el-card"),P=Y("tippy");return r(),b(C,{shadow:"never"},{header:c(()=>[e("div",_e,[N((r(),b(f,{href:"https://element-plus.org/zh-CN/component/upload.html",target:"_blank",style:{"font-size":"16px","font-weight":"800"}},{default:c(()=>[l(" 文件上传 ")]),_:1})),[[P,{content:"点击查看详细文档"}]]),e("span",ge,[n(k,{class:"ml-1",text:"",bg:"",onClick:T},{default:c(()=>[l(" 点击下载安全文件进行上传测试 ")]),_:1})])])]),default:c(()=>[ve,N(e("p",{class:"mb-4"},B(A.value),513),[[Q,o.value.length>0]]),n(y,{"file-list":o.value,"onUpdate:fileList":t[0]||(t[0]=a=>o.value=a),drag:"",multiple:"",class:"pure-upload","list-type":"picture-card",accept:"image/jpeg,image/png,image/gif",action:"https://run.mocky.io/v3/3aa761d7-b0b3-4a03-96b3-6168d4f7467b",limit:3,headers:{Authorization:"eyJhbGciOiJIUzUxMiJ9.admin"},"on-exceed":H,"before-upload":D},{file:c(({file:a})=>[a.status=="ready"||a.status=="uploading"?(r(),I("div",he,[fe,n(x,{class:"mt-2","stroke-width":2,"text-inside":!0,"show-text":!1,percentage:a.percentage},null,8,["percentage"])])):(r(),I("div",{key:1,onMouseenter:X(M=>R(a.uid),["stop"])},[e("img",{class:"el-upload-list__item-thumbnail select-none",src:a.url},null,8,ye),e("span",{id:"pure-upload-item",class:W(["el-upload-list__item-actions",o.value.length>1&&"!cursor-move"])},[e("span",{title:"查看",class:"hover:text-primary",onClick:M=>J(a)},[n(d,{icon:p(ue),class:"hover:scale-125 duration-100"},null,8,["icon"])],8,be),e("span",{class:"el-upload-list__item-delete",onClick:M=>O(a)},[e("span",we,[n(d,{icon:p(me),class:"hover:scale-125 duration-100"},null,8,["icon"])])],8,ke)],2)],40,xe))]),default:c(()=>[n(d,{icon:p(ce),class:"m-auto mt-4",width:"30"},null,8,["icon"])]),_:1},8,["file-list","headers"]),h.value?(r(),b(_,{key:0,initialIndex:m.value,"url-list":U.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,onClose:t[1]||(t[1]=a=>h.value=!1),onSwitch:t[2]||(t[2]=a=>m.value=a)},null,8,["initialIndex","url-list"])):L("",!0),(r(),b(ee,{to:"body"},[o.value[m.value]&&h.value?(r(),I("div",Ce,[e("p",je,B(o.value[m.value].name),1)])):L("",!0)])),Ie,n(g),$e,e("div",ze,[n(ie),e("div",null,[Se,n(w,{class:"w-[200px] rounded-md",src:p(z)[0],"preview-src-list":p(z),fit:"cover"},null,8,["src","preview-src-list"])])]),n(g),e("div",Me,[e("p",null,[l(" 裁剪、上传头像请参考 "),e("span",{class:"font-bold text-[18x] cursor-pointer hover:text-[red]",onClick:t[3]||(t[3]=a=>p(E).push({name:"SystemUser"}))}," 系统管理-用户管理 "),l(" 表格操作栏中的上传头像功能 ")]),e("p",Ve,[l(" 免责声明:上传接口使用免费开源的 "),n(f,{href:"https://designer.mocky.io/",target:"_blank",style:{"font-size":"16px","font-weight":"800"}},{default:c(()=>[l(" Mocky ")]),_:1}),Ne,l(",如果造成任何损失,我们概不负责 ")])])]),_:1})}}}),De=ne(Be,[["__scopeId","data-v-cc9c60b8"]]);export{De as default};
+import{d as q,r as j,ag as F,c as V,an as G,ao as K,f as b,j as c,k as i,v as Y,e as r,g as e,z as N,l,m as n,a3 as Q,t as B,x as I,u as p,i as W,h as X,K as L,T as ee,J as $,G as te,H as se,A as oe,B as ae,_ as ne}from"./index-BAaep8yZ.js";import{S as le}from"./sortable.esm-6WsHlDA5.js";import{_ as ie}from"./form.vue_vue_type_script_setup_true_lang-DKva-_G-.js";import{d as ce}from"./plus-C98eNXam.js";import"./mock-CgBcpQWs.js";const re="/vue-pure-admin/static/jpg/1-CNu9tHLV.jpg",de="/vue-pure-admin/static/jpg/2-Dn7NyzRJ.jpg",pe="/vue-pure-admin/static/jpg/3-BNVYzMvF.jpg",ue={width:24,height:24,body:''},me={width:24,height:24,body:''},u=v=>(oe("data-v-cc9c60b8"),v=v(),ae(),v),_e={class:"card-header"},ge={class:"header-right"},ve=u(()=>e("p",{class:"mb-4"},[l(" 综合示例"),e("span",{class:"text-[14px]"},[l(" ( "),e("span",{class:"text-[red]"},"自动上传"),l(" 、拖拽上传、拖拽排序、设置请求头、上传进度、大图预览、多选文件、最大文件数量、文件类型限制、文件大小限制、删除文件) ")])],-1)),he={key:0,class:"mt-[35%] m-auto"},fe=u(()=>e("p",{class:"font-medium"},"文件上传中",-1)),xe=["onMouseenter"],ye=["src"],be=["onClick"],ke=["onClick"],we={title:"移除",class:"hover:text-[var(--el-color-danger)]"},Ce={key:0,effect:"dark",round:"",size:"large",type:"info",class:"img-name"},je={class:"text-[#fff] dark:text-black"},Ie=u(()=>e("p",{class:"el-upload__tip"}," 可拖拽上传最多3张单个不超过2MB且格式为jpeg/png/gif的图片 ",-1)),$e=u(()=>e("p",{class:"mb-4 mt-4"},[l(" 结合表单校验进行"),e("span",{class:"text-[red]"},"手动上传"),e("span",{class:"text-[14px]"}," (可先打开浏览器控制台找到Network,然后填写表单内容后点击点提交观察请求变化) ")],-1)),ze={class:"flex justify-between"},Se=u(()=>e("p",{class:"text-center"},"上传接口相关截图",-1)),Me={class:"flex flex-wrap"},Ve={class:"text-[red] text-[12px] flex flex-auto items-center justify-end"},Ne=u(()=>e("span",{class:"font-bold text-[18x]"}," 请不要上传重要信息 ",-1)),Be=q({name:"PureUpload",__name:"index",setup(v){const o=j([]),E=F(),m=j(0),h=j(!1),U=V(()=>G(o.value,"url")),A=V(()=>K(o.value,"name","size")),Z=s=>new URL(Object.assign({"./imgs/1.jpg":re,"./imgs/2.jpg":de,"./imgs/3.jpg":pe})[`./imgs/${s}.jpg`],import.meta.url).href,z=Array.from({length:3}).map((s,t)=>Z(t+1)),D=s=>{if(!["image/jpeg","image/png","image/gif"].includes(s.type))return $("只能上传图片"),!1;if(s.size/1024/1024>2)return $("单个图片大小不能超过2MB"),!1},H=()=>{$("最多上传3张图片,请先删除在上传")},O=s=>{o.value.splice(o.value.indexOf(s),1)},J=s=>{m.value=o.value.findIndex(t=>t.uid===s.uid),h.value=!0},S=()=>document.querySelectorAll("#pure-upload-item"),R=s=>{var d,x,y;const t="el-upload-list",f=o.value.findIndex(_=>_.uid===s);(y=(x=(d=S())==null?void 0:d[f])==null?void 0:x.classList)==null||y.add(`${t}__item-actions`);const k=document.querySelector(`.${t}`);le.create(k,{handle:`.${t}__item`,onEnd:({newIndex:_,oldIndex:g})=>{const w=o.value[g];o.value.splice(g,1),o.value.splice(_,0,w),S().forEach(C=>{C.classList.remove(`${t}__item-actions`)})}})},T=()=>{[{name:"巴旦木.jpeg",type:"img"},{name:"恭喜发财.png",type:"img"},{name:"可爱动物.gif",type:"gif"},{name:"pure-upload.csv",type:"other"},{name:"pure-upload.txt",type:"other"}].forEach(s=>{te.get(`https://xiaoxian521.github.io/hyperlink/${s.type}/${s.name}`,{responseType:"blob"}).then(({data:t})=>{se(t,s.name)})})};return(s,t)=>{const f=i("el-link"),k=i("el-button"),d=i("IconifyIconOffline"),x=i("el-progress"),y=i("el-upload"),_=i("el-image-viewer"),g=i("el-divider"),w=i("el-image"),C=i("el-card"),P=Y("tippy");return r(),b(C,{shadow:"never"},{header:c(()=>[e("div",_e,[N((r(),b(f,{href:"https://element-plus.org/zh-CN/component/upload.html",target:"_blank",style:{"font-size":"16px","font-weight":"800"}},{default:c(()=>[l(" 文件上传 ")]),_:1})),[[P,{content:"点击查看详细文档"}]]),e("span",ge,[n(k,{class:"ml-1",text:"",bg:"",onClick:T},{default:c(()=>[l(" 点击下载安全文件进行上传测试 ")]),_:1})])])]),default:c(()=>[ve,N(e("p",{class:"mb-4"},B(A.value),513),[[Q,o.value.length>0]]),n(y,{"file-list":o.value,"onUpdate:fileList":t[0]||(t[0]=a=>o.value=a),drag:"",multiple:"",class:"pure-upload","list-type":"picture-card",accept:"image/jpeg,image/png,image/gif",action:"https://run.mocky.io/v3/3aa761d7-b0b3-4a03-96b3-6168d4f7467b",limit:3,headers:{Authorization:"eyJhbGciOiJIUzUxMiJ9.admin"},"on-exceed":H,"before-upload":D},{file:c(({file:a})=>[a.status=="ready"||a.status=="uploading"?(r(),I("div",he,[fe,n(x,{class:"mt-2","stroke-width":2,"text-inside":!0,"show-text":!1,percentage:a.percentage},null,8,["percentage"])])):(r(),I("div",{key:1,onMouseenter:X(M=>R(a.uid),["stop"])},[e("img",{class:"el-upload-list__item-thumbnail select-none",src:a.url},null,8,ye),e("span",{id:"pure-upload-item",class:W(["el-upload-list__item-actions",o.value.length>1&&"!cursor-move"])},[e("span",{title:"查看",class:"hover:text-primary",onClick:M=>J(a)},[n(d,{icon:p(ue),class:"hover:scale-125 duration-100"},null,8,["icon"])],8,be),e("span",{class:"el-upload-list__item-delete",onClick:M=>O(a)},[e("span",we,[n(d,{icon:p(me),class:"hover:scale-125 duration-100"},null,8,["icon"])])],8,ke)],2)],40,xe))]),default:c(()=>[n(d,{icon:p(ce),class:"m-auto mt-4",width:"30"},null,8,["icon"])]),_:1},8,["file-list","headers"]),h.value?(r(),b(_,{key:0,initialIndex:m.value,"url-list":U.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,onClose:t[1]||(t[1]=a=>h.value=!1),onSwitch:t[2]||(t[2]=a=>m.value=a)},null,8,["initialIndex","url-list"])):L("",!0),(r(),b(ee,{to:"body"},[o.value[m.value]&&h.value?(r(),I("div",Ce,[e("p",je,B(o.value[m.value].name),1)])):L("",!0)])),Ie,n(g),$e,e("div",ze,[n(ie),e("div",null,[Se,n(w,{class:"w-[200px] rounded-md",src:p(z)[0],"preview-src-list":p(z),fit:"cover"},null,8,["src","preview-src-list"])])]),n(g),e("div",Me,[e("p",null,[l(" 裁剪、上传头像请参考 "),e("span",{class:"font-bold text-[18x] cursor-pointer hover:text-[red]",onClick:t[3]||(t[3]=a=>p(E).push({name:"SystemUser"}))}," 系统管理-用户管理 "),l(" 表格操作栏中的上传头像功能 ")]),e("p",Ve,[l(" 免责声明:上传接口使用免费开源的 "),n(f,{href:"https://designer.mocky.io/",target:"_blank",style:{"font-size":"16px","font-weight":"800"}},{default:c(()=>[l(" Mocky ")]),_:1}),Ne,l(",如果造成任何损失,我们概不负责 ")])])]),_:1})}}}),De=ne(Be,[["__scopeId","data-v-cc9c60b8"]]);export{De as default};
diff --git a/dist/static/js/index-Ct1jiXR1.js b/dist/static/js/index-Cdo22T8h.js
similarity index 56%
rename from dist/static/js/index-Ct1jiXR1.js
rename to dist/static/js/index-Cdo22T8h.js
index 99f1ecd5a..6ce439ed0 100644
--- a/dist/static/js/index-Ct1jiXR1.js
+++ b/dist/static/js/index-Cdo22T8h.js
@@ -1,4 +1,4 @@
-var Sn=Object.defineProperty,Mn=Object.defineProperties;var Vn=Object.getOwnPropertyDescriptors;var Yt=Object.getOwnPropertySymbols;var Tn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable;var Jt=(t,e,n)=>e in t?Sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kt=(t,e)=>{for(var n in e||(e={}))Tn.call(e,n)&&Jt(t,n,e[n]);if(Yt)for(var n of Yt(e))Hn.call(e,n)&&Jt(t,n,e[n]);return t},Ct=(t,e)=>Mn(t,Vn(e));var at=(t,e,n)=>new Promise((a,i)=>{var s=h=>{try{d(n.next(h))}catch(f){i(f)}},l=h=>{try{d(n.throw(h))}catch(f){i(f)}},d=h=>h.done?a(h.value):Promise.resolve(h.value).then(s,l);d((n=n.apply(t,e)).next())});import{fy as te,au as zn,ax as Ye,ay as Ln,e as c,x as S,g as v,d as oe,r as P,$ as At,c as j,c_ as mt,o as Ke,F as ye,y as Ce,n as ue,f as D,W as Ee,u as o,t as se,ad as je,m as u,_ as be,k as H,l as _e,K as J,z as ie,a3 as xe,h as We,w as Ze,c$ as rn,q as Ge,d2 as An,ag as Et,U as En,O as St,ah as Zn,aa as Ve,fz as xt,j as x,dq as On,av as Be,d8 as Je,aG as Rn,a0 as cn,du as Se,v as et,i as le,fA as Zt,fB as dt,af as Ot,fC as De,L as Pn,fD as Qe,aw as st,b as Rt,fE as Re,fF as un,fG as Dn,fH as ut,da as Ne,fI as ht,fJ as dn,s as Pt,b6 as Dt,fK as It,fL as jn,fM as qn,S as ft,fN as vt,d5 as Mt,fO as Qt,M as rt,A as hn,B as fn,as as pn,Y as nt,a1 as mn,a as Bn,Z as Fn,V as Nn,fP as Un,ar as Wn,b7 as Gn,fv as Kn,a6 as en}from"./index-DZuaHQDs.js";import{d as Xn,a as pt}from"./close-CObHKOmY.js";import{d as Yn}from"./home-filled-NADQtN-e.js";import{d as Jn}from"./git-branch-line-BhusJOme.js";import{d as Qn}from"./admin-line-CpqWPwjZ.js";import{d as eo,u as ze,a as jt,g as qt,b as Bt,t as to,c as no,e as oo,f as ao}from"./dark-DKnjvQZp.js";import{u as Xe}from"./app-CJXTvrpt.js";import{m as lo}from"./index-QpUUYT1t.js";import{u as Vt}from"./epTheme-gTdHAM10.js";import{u as Pe}from"./hooks-BoRjbw1y.js";import{S as so}from"./sortable.esm-6WsHlDA5.js";import{d as tt}from"./check-CIQVCvCT.js";import{e as Me}from"./mitt-E5P-NQ8u.js";import{d as ro}from"./refresh-right-Du3ZsAuC.js";import{d as Tt}from"./arrow-right-s-line-CxPb13eK.js";import{b as vn}from"./back_top-DdMFfBRi.js";import{R as $t}from"./index-BR25qlm3.js";import{R as tn}from"./index-BfQnyHy1.js";const io={width:1024,height:1024,body:''},co={width:1024,height:1024,body:''},uo={width:1024,height:1024,body:''},ho={width:1024,height:1024,body:''},fo={width:1024,height:1024,body:''},po={width:1024,height:1024,body:''},mo={width:24,height:24,body:''},vo={width:24,height:24,body:''},_o={width:24,height:24,body:''},go={width:24,height:24,body:''},yo={width:24,height:24,body:''},bo={width:24,height:24,body:''},wo={width:24,height:24,body:''},_n={width:24,height:24,body:''},_t={width:24,height:24,body:''},ko={width:24,height:24,body:''},Co={width:24,height:24,body:''},xo={width:24,height:24,body:''},Io={width:24,height:24,body:''},$o={width:24,height:24,body:''},So={width:24,height:24,body:''},Mo={width:24,height:24,body:''},Vo={width:24,height:24,body:''},To={width:24,height:24,body:''},Ho={width:24,height:24,body:''},zo={width:24,height:24,body:''};te("ep:menu",Xn);te("ep:edit",io);te("ep:set-up",co);te("ep:guide",uo);te("ep:monitor",ho);te("ep:lollipop",fo);te("ep:histogram",po);te("ep:home-filled",Yn);te("ri:bookmark-2-line",mo);te("ri:file-ppt-2-line",vo);te("ri:bank-card-line",_o);te("ri:admin-fill",go);te("ri:file-info-line",yo);te("ri:git-branch-line",Jn);te("ri:links-fill",wo);te("ri:table-line",bo);te("ri:search-line",_n);te("ri:admin-line",Qn);te("ri:settings-3-line",_t);te("ri:bar-chart-horizontal-line",ko);te("ri:window-line",Co);te("ri:file-search-line",Io);te("ri:artboard-line",xo);te("ri:list-check",$o);te("ri:ubuntu-fill",So);te("ri:user-voice-line",Mo);te("ri:edit-box-line",Vo);te("ri:history-fill",To);te("ri:information-line",eo);te("ri:terminal-window-line",Ho);te("ri:checkbox-circle-line",zo);const Lo=zn({id:"pure-setting",state:()=>({title:Ye().Title,fixedHeader:Ye().FixedHeader,hiddenSideBar:Ye().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Ft(){return Lo(Ln)}const Ao={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Eo=v("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1),Zo=[Eo];function Oo(t,e){return c(),S("svg",Ao,[...Zo])}const gn={render:Oo},Ro=["onMouseenter"],Po={class:"result-item-title"},Do=oe({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=P(),i=P(),s=n,l=At(),d=t,h=j(()=>k=>({background:(k==null?void 0:k.path)===f.value?Vt().epThemeColor:"",color:k.path===f.value?"#fff":"",fontSize:k.path===f.value?"16px":"14px"})),f=j({get(){return d.value},set(k){s("update:value",k)}});function b(k){return at(this,null,function*(){f.value=k.path})}function p(){s("enter")}function g(){i.value=window.innerHeight-window.innerHeight/10-140}mt(a,g);function _(k){var A;const L=(A=l==null?void 0:l.proxy)==null?void 0:A.$refs[`resultItemRef${k}`];if(!L)return 0;const R=L[0].offsetTop+128;return R>i.value?R-i.value:0}return Ke(()=>{g()}),e({handleScroll:_}),(k,L)=>(c(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(c(!0),S(ye,null,Ce(k.options,(w,R)=>{var A,E;return c(),S("div",{key:w.path,ref_for:!0,ref:"resultItemRef"+R,class:"result-item dark:bg-[#1d1d1d]",style:ue(h.value(w)),onClick:p,onMouseenter:W=>b(w)},[(c(),D(Ee(o(Pe)((A=w.meta)==null?void 0:A.icon)))),v("span",Po,se(o(je)((E=w.meta)==null?void 0:E.title)),1),u(o(gn))],44,Ro)}),128))],512))}}),jo=be(Do,[["__scopeId","data-v-b88fa124"]]),qo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Bo=v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1),Fo=[Bo];function No(t,e){return c(),S("svg",qo,[...Fo])}const Uo={render:No},Wo={width:24,height:24,body:''},Go={width:24,height:24,body:''},Ko={class:"search-footer text-[#333] dark:text-white"},Xo={class:"search-footer-item"},Yo={class:"search-footer-item"},Jo={class:"search-footer-item"},Qo={key:0,class:"search-footer-total"},ea=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=ze();return(a,i)=>{const s=H("IconifyIconOffline");return c(),S("div",Ko,[v("span",Xo,[u(o(gn),{class:"icon"}),_e(" 确认 ")]),v("span",Yo,[u(s,{icon:o(Wo),class:"icon"},null,8,["icon"]),u(s,{icon:o(Go),class:"icon"},null,8,["icon"]),_e(" 切换 ")]),v("span",Jo,[u(o(Uo),{class:"icon"}),_e(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(c(),S("p",Qo," 共"+se(e.total)+"项 ",1)):J("",!0)])}}}),ta=be(ea,[["__scopeId","data-v-f9c16431"]]),na={width:1024,height:1024,body:''},oa={class:"history-item-title"},aa=oe({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:e}){const n=e;function a(s){n("collectItem",s)}function i(s){n("deleteItem",s)}return(s,l)=>{var h,f;const d=H("IconifyIconOffline");return c(),S(ye,null,[(c(),D(Ee(o(Pe)((h=s.item.meta)==null?void 0:h.icon)))),v("span",oa,se(o(je)((f=s.item.meta)==null?void 0:f.title)),1),ie(u(d,{icon:o(na),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:l[0]||(l[0]=We(b=>a(s.item),["stop"]))},null,8,["icon"]),[[xe,s.item.type==="history"]]),u(d,{icon:o(pt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:l[1]||(l[1]=We(b=>i(s.item),["stop"]))},null,8,["icon"])],64)}}}),nn=be(aa,[["__scopeId","data-v-a9dc41c7"]]),la=["onMouseenter"],sa={class:"collect-container"},ra=["onMouseenter"],ia=oe({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=P(),i=P(),s=P(!1),l=n,d=At(),h=t,f=j(()=>M=>({background:(M==null?void 0:M.path)===p.value?Vt().epThemeColor:"",color:M.path===p.value?"#fff":"",fontSize:M.path===p.value?"16px":"14px"})),b=j(()=>({color:Vt().epThemeColor,fontWeight:500})),p=j({get(){return h.value},set(M){l("update:value",M)}});Ze(()=>h.value,M=>{M&&s.value&&rn(100).then(()=>s.value=!1)});const g=j(()=>h.options.filter(M=>M.type==="history")),_=j(()=>h.options.filter(M=>M.type==="collect"));function k(M){l("collect",M)}function L(M){s.value=!0,l("delete",M)}function w(M){return at(this,null,function*(){s.value||(p.value=M.path)})}function R(){l("enter")}function A(){i.value=window.innerHeight-window.innerHeight/10-140}mt(a,A);function E(M){var ee;const B=(ee=d==null?void 0:d.proxy)==null?void 0:ee.$refs[`historyItemRef${M}`];if(!B)return 0;const ce=(An(B)?B[0]:B).offsetTop+128;return ce>i.value?ce-i.value:0}const W=M=>{l("drag",{oldIndex:M.oldIndex,newIndex:M.newIndex})};let G=null;return Ze(_,M=>{M.length>1&&Ge(()=>{const B=document.querySelector(".collect-container");!B||G||(G=so.create(B,{animation:160,onStart:F=>{F.item.style.cursor="move"},onEnd:F=>{F.item.style.cursor="pointer"},onUpdate:W}),A())})},{deep:!0,immediate:!0}),e({handleScroll:E}),(M,B)=>(c(),S("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(c(),S(ye,{key:0},[v("div",{style:ue(b.value)},"搜索历史",4),(c(!0),S(ye,null,Ce(g.value,(F,ce)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+ce,class:"history-item dark:bg-[#1d1d1d]",style:ue(f.value(F)),onClick:R,onMouseenter:ee=>w(F)},[u(nn,{item:F,onDeleteItem:L,onCollectItem:k},null,8,["item"])],44,la))),128))],64)):J("",!0),_.value.length?(c(),S(ye,{key:1},[v("div",{style:ue(b.value)}," 收藏"+se(_.value.length>1?"(可拖拽排序)":""),5),v("div",sa,[(c(!0),S(ye,null,Ce(_.value,(F,ce)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+(ce+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ue(f.value(F)),onClick:R,onMouseenter:ee=>w(F)},[u(nn,{item:F,onDeleteItem:L},null,8,["item"])],44,ra))),128))])],64)):J("",!0)],512))}}),ca=be(ia,[["__scopeId","data-v-9fa90bc8"]]),ua={class:"search-content"},on="history",da="collect",qe="menu-search-history",Ue="menu-search-collect",ha=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=ze(),a=e,i=t,s=Et(),{locale:l}=En(),d=P(""),h=P(),f=P(),b=P(),p=P(""),g=P(""),_=St([]),k=St([]),L=On(ee,300),w=Ye().MenuSearchHistory,R=P(null),A=j(()=>Zn(Ve().wholeMenus)),E=j({get(){return i.value},set(y){a("update:value",y)}});Ze(()=>i.value,y=>{y&&re()});const W=j(()=>d.value&&_.value.length>0),G=j(()=>!d.value&&k.value.length>0),M=j(()=>!d.value&&k.value.length===0||d.value&&_.value.length===0);function B(y){return Be().getItem(y)||[]}function F(y,C){Be().setItem(y,C)}function ce(y){const C=[];function T(K){K.forEach(V=>{C.push(V),V.children&&T(V.children)})}return T(y),C}function ee(){var C;const y=ce(A.value);_.value=y.filter(T=>{var K,V;return d.value?je((K=T.meta)==null?void 0:K.title).toLocaleLowerCase().includes(d.value.toLocaleLowerCase().trim())||l.value==="zh"&&!Je(lo(je((V=T.meta)==null?void 0:V.title).toLocaleLowerCase(),d.value.toLocaleLowerCase().trim())):!1}),p.value=((C=_.value)==null?void 0:C.length)>0?_.value[0].path:""}function q(){E.value=!1,setTimeout(()=>{_.value=[],g.value="",d.value=""},200)}function ae(y){const T=(_.value.length?h.value:f.value).handleScroll(y);b.value.setScrollTop(T)}function pe(){const y=_.value.length>0,C=y?_.value:k.value,T=y?p.value:g.value;return{options:C,currentPath:T,isResultOptions:y}}function we(y,C){C?p.value=_.value[y].path:g.value=k.value[y].path,ae(y)}function Le(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.path===C)-1+y.length)%y.length;we(V,T)}function Ie(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.path===C)+1)%y.length;we(V,T)}function Te(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0||C==="")return;const K=y.findIndex(V=>V.path===C);K!==-1&&(T?$():X(),s.push(y[K].path),q())}function r(y){const C=y.type===on?qe:Ue;let T=B(C);T=T.filter(K=>K.path!==y.path),F(C,T),re()}function m(y){let C=B(qe),T=B(Ue);C=C.filter(K=>K.path!==y.path),F(qe,C),T.some(K=>K.path===y.path)||(T.unshift(Ct(kt({},y),{type:da})),F(Ue,T)),re()}function $(){const{path:y,meta:C}=_.value.find(de=>de.path===p.value),T=B(qe),V=B(Ue).some(de=>de.path===y),z=T.findIndex(de=>de.path===y);V||(z!==-1&&T.splice(z,1),T.length>=w&&T.pop(),T.unshift({path:y,meta:C,type:on}),Be().setItem(qe,T))}function X(){let y=B(qe);const C=y.findIndex(T=>T.path===g.value);if(C!==-1){const[T]=y.splice(C,1);y.unshift(T),F(qe,y)}}function re(){var T;const y=B(qe),C=B(Ue);k.value=[...y,...C],g.value=(T=k.value[0])==null?void 0:T.path}function ne(y){const C=B(Ue),[T]=C.splice(y.oldIndex,1);C.splice(y.newIndex,0,T),Be().setItem(Ue,C),k.value=[...B(qe),...B(Ue)],g.value=T.path}return xt("Enter",Te),xt("ArrowUp",Le),xt("ArrowDown",Ie),(y,C)=>{const T=H("IconifyIconOffline"),K=H("el-input"),V=H("el-empty"),z=H("el-scrollbar"),de=H("el-dialog");return c(),D(de,{modelValue:E.value,"onUpdate:modelValue":C[3]||(C[3]=me=>E.value=me),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":q,style:{borderRadius:"6px"},"append-to-body":"",onOpened:C[4]||(C[4]=me=>R.value.focus()),onClosed:C[5]||(C[5]=me=>R.value.blur())},{footer:x(()=>[u(ta,{total:_.value.length},null,8,["total"])]),default:x(()=>[u(K,{ref_key:"inputRef",ref:R,modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=me=>d.value=me),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(L)},{prefix:x(()=>[u(T,{icon:o(_n),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",ua,[u(z,{ref_key:"scrollbarRef",ref:b,"max-height":"calc(90vh - 140px)"},{default:x(()=>[M.value?(c(),D(V,{key:0,description:"暂无搜索结果"})):J("",!0),G.value?(c(),D(ca,{key:1,ref_key:"historyRef",ref:f,value:g.value,"onUpdate:value":C[1]||(C[1]=me=>g.value=me),options:k.value,onClick:Te,onDelete:r,onCollect:m,onDrag:ne},null,8,["value","options"])):J("",!0),W.value?(c(),D(jo,{key:2,ref_key:"resultRef",ref:h,value:p.value,"onUpdate:value":C[2]||(C[2]=me=>p.value=me),options:_.value,onClick:Te},null,8,["value","options"])):J("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),fa=be(ha,[["__scopeId","data-v-ba7ee514"]]);function pa(t=!1){const e=P(t);function n(l){e.value=l}function a(){n(!0)}function i(){n(!1)}function s(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:i,toggle:s}}const Nt=oe({__name:"index",setup(t){const{bool:e,toggle:n}=pa();function a(){n()}return(i,s)=>{const l=H("IconifyIconOffline");return c(),S("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[u(l,{icon:"ri:search-line"})]),u(o(fa),{value:o(e),"onUpdate:value":s[0]||(s[0]=d=>Rn(e)?e.value=d:null)},null,8,["value"])])}}}),an=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式,如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]},{key:"2",name:"消息",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 评论了你",description:"长风破浪会有时,直挂云帆济沧海",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 回复了你",description:"行路难,行路难,多歧路,今安在。",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"一年前",type:"2"}]},{key:"3",name:"待办",list:[{avatar:"",title:"任务名称",description:"任务需要在 2022-11-16 20:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"},{avatar:"",title:"第三方紧急代码变更",description:"一拳提交于 2022-11-16,需在 2022-11-18 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"信息安全考试",description:"指派小仙于 2022-12-12 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin 版本发布",description:"vue-pure-admin 版本发布",datetime:"",extra:"进行中",type:"3"}]}],ma={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},va={class:"notice-container-text"},_a={class:"notice-text-title text-[#000000d9] dark:text-white"},ga={class:"notice-text-datetime text-[#00000073] dark:text-white"},ya=oe({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=P(null),a=P(!1),i=P(null),s=P(!1),{tooltipEffect:l}=ze(),d=cn();function h(){Ge(()=>{var b,p;((b=n.value)==null?void 0:b.scrollWidth)>((p=n.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function f(b,p){const g=document.createElement("span");g.innerText=p,g.className="getDescriptionWidth",document.querySelector("body").appendChild(g);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const k=b.target.offsetWidth;_>2*k?s.value=!0:s.value=!1}return(b,p)=>{var L,w;const g=H("el-avatar"),_=H("el-tooltip"),k=H("el-tag");return c(),S("div",ma,[e.noticeItem.avatar?(c(),D(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),v("div",va,[v("div",_a,[u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!o(d)},{default:x(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:h},se(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(c(),D(k,{key:0,type:(w=e.noticeItem)==null?void 0:w.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var R;return[_e(se((R=e.noticeItem)==null?void 0:R.extra),1)]}),_:1},8,["type"])):J("",!0)]),u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:x(()=>[v("div",{ref_key:"descriptionRef",ref:i,class:"notice-text-description",onMouseover:p[0]||(p[0]=R=>f(R,e.noticeItem.description))},se(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",ga,se(e.noticeItem.datetime),1)])])}}}),ba=be(ya,[["__scopeId","data-v-2a7dbc48"]]),wa={key:0},ka=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=H("el-empty");return e.list.length?(c(),S("div",wa,[(c(!0),S(ye,null,Ce(e.list,(s,l)=>(c(),D(ba,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(c(),D(i,{key:1,description:"暂无消息"}))}}}),Ca={width:1024,height:1024,body:''},xa={class:"dropdown-badge navbar-bg-hover select-none"},Ia={class:"header-notice-icon"},$a={key:1},Sa={class:"noticeList-container"},Ma=oe({__name:"index",setup(t){const e=P(0),n=P(an),a=P(an[0].key);return n.value.map(i=>e.value+=i.list.length),(i,s)=>{const l=H("IconifyIconOffline"),d=H("el-badge"),h=H("el-empty"),f=H("el-scrollbar"),b=H("el-tab-pane"),p=H("el-tabs"),g=H("el-dropdown-menu"),_=H("el-dropdown");return c(),D(_,{trigger:"click",placement:"bottom-end"},{dropdown:x(()=>[u(g,null,{default:x(()=>[u(p,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=k=>a.value=k),stretch:!0,class:"dropdown-tabs",style:ue({width:n.value.length===0?"200px":"330px"})},{default:x(()=>[n.value.length===0?(c(),D(h,{key:0,description:"暂无消息","image-size":60})):(c(),S("span",$a,[(c(!0),S(ye,null,Ce(n.value,k=>(c(),D(b,{key:k.key,label:`${k.name}(${k.list.length})`,name:`${k.key}`},{default:x(()=>[u(f,{"max-height":"330px"},{default:x(()=>[v("div",Sa,[u(ka,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[v("span",xa,[u(d,{value:e.value,max:99},{default:x(()=>[v("span",Ia,[u(l,{icon:o(Ca)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Ut=be(Ma,[["__scopeId","data-v-33dc6db9"]]),Va={key:0,class:"flex justify-center items-center"},Ht=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(c(),S("div",Va,[(c(),D(Ee(o(Pe)(Se(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!0)}}),Wt=oe({__name:"fullScreen",setup(t){const e=P(),{toggle:n,isFullscreen:a,Fullscreen:i,ExitFullscreen:s}=ze();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ze(a,l=>{e.value=l?s:i},{immediate:!0}),(l,d)=>{const h=H("IconifyIconOffline");return c(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:d[0]||(d[0]=(...f)=>o(n)&&o(n)(...f))},[u(h,{icon:e.value},null,8,["icon"])])}}}),Gt={width:24,height:24,body:''},Ta={key:0,class:"horizontal-header"},Ha={class:"select-none"},za={class:"horizontal-header-right"},La={class:"check-zh"},Aa={class:"check-en"},Ea={class:"el-dropdown-link navbar-bg-hover select-none"},Za=["src"],Oa={key:0,class:"dark:text-white"},Ra=["title"],Pa=oe({__name:"mixNav",setup(t){const e=P(),n=P(null),{t:a,route:i,locale:s,translationCh:l,translationEn:d}=jt(e),{device:h,logout:f,onPanel:b,resolvePath:p,username:g,userAvatar:_,getDivStyle:k,avatarsStyle:L,getDropdownItemStyle:w,getDropdownItemClass:R}=ze();function A(E){var M,B,F;const W=Ve().wholeMenus,G=Zt(E,W)[0];n.value=Je((M=i.meta)==null?void 0:M.activePath)?(F=(B=dt(G,W))==null?void 0:B.children[0])==null?void 0:F.path:i.meta.activePath}return Ke(()=>{A(i.path)}),Ge(()=>{var E;(E=e.value)==null||E.handleResize()}),Ze(()=>[i.path,Ve().wholeMenus],()=>{A(i.path)}),(E,W)=>{const G=H("el-menu-item"),M=H("el-menu"),B=H("IconifyIconOffline"),F=H("el-dropdown-item"),ce=H("el-dropdown-menu"),ee=H("el-dropdown"),q=et("loading");return o(h)!=="mobile"?ie((c(),S("div",Ta,[u(M,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":n.value},{default:x(()=>[(c(!0),S(ye,null,Ce(o(Ve)().wholeMenus,ae=>(c(),D(G,{key:ae.path,index:o(p)(ae)||ae.redirect},{title:x(()=>[Se(ae.meta.icon)?(c(),S("div",{key:0,class:le(["sub-menu-icon",ae.meta.icon])},[(c(),D(Ee(o(Pe)(ae.meta&&Se(ae.meta.icon)))))],2)):J("",!0),v("div",{style:ue(o(k))},[v("span",Ha,se(o(je)(ae.meta.title)),1),u(Ht,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",za,[u(Nt,{id:"header-search"}),u(ee,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(ce,{class:"translation"},{default:x(()=>[u(F,{style:ue(o(w)(o(s),"zh")),class:le(["dark:!text-white",o(R)(o(s),"zh")]),onClick:o(l)},{default:x(()=>[ie(v("span",La,[u(B,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(F,{style:ue(o(w)(o(s),"en")),class:le(["dark:!text-white",o(R)(o(s),"en")]),onClick:o(d)},{default:x(()=>[ie(v("span",Aa,[u(B,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(qt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Wt,{id:"full-screen"}),u(Ut,{id:"header-notice"}),u(ee,{trigger:"click"},{dropdown:x(()=>[u(ce,{class:"logout"},{default:x(()=>[u(F,{onClick:o(f)},{default:x(()=>[u(B,{icon:o(Gt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Ea,[v("img",{src:o(_),style:ue(o(L))},null,12,Za),o(g)?(c(),S("p",Oa,se(o(g)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:W[0]||(W[0]=(...ae)=>o(b)&&o(b)(...ae))},[u(B,{icon:o(_t)},null,8,["icon"])],8,Ra)])])),[[q,o(Ve)().wholeMenus.length===0]]):J("",!0)}}}),Da=be(Pa,[["__scopeId","data-v-322f62be"]]),ja=["onClick"],qa=oe({__name:"breadCrumb",setup(t){const e=Ot(),n=P([]),a=Et(),i=a.options.routes,s=De().multiTags,l=()=>{let h;Object.keys(e.query).length>0?s.forEach(p=>{Qe(e.query,p==null?void 0:p.query)&&(h=Se(p))}):Object.keys(e.params).length>0?s.forEach(p=>{Qe(e.params,p==null?void 0:p.params)&&(h=Se(p))}):h=dt(a.currentRoute.value.path,i);const f=Zt(a.currentRoute.value.name,i,"name"),b=[];f.forEach(p=>{p!=="/"&&b.push(dt(p,i))}),b.push(h),b.forEach((p,g)=>{h!=null&&h.query||h!=null&&h.params||p!=null&&p.children&&p.children.forEach(_=>{var k,L;((k=_==null?void 0:_.meta)==null?void 0:k.title)===((L=p==null?void 0:p.meta)==null?void 0:L.title)&&b.splice(g,1)})}),n.value=b.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},d=h=>{const{redirect:f,name:b,path:p}=h;f?a.push(f):b?h.query?a.push({name:b,query:h.query}):h.params?a.push({name:b,params:h.params}):a.push({name:b}):a.push({path:p})};return Ke(()=>{l()}),Ze(()=>e.path,()=>{l()},{deep:!0}),(h,f)=>{const b=H("el-breadcrumb-item"),p=H("el-breadcrumb");return c(),D(p,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[u(Pn,{name:"breadcrumb"},{default:x(()=>[(c(!0),S(ye,null,Ce(n.value,g=>(c(),D(b,{key:g.path,class:"!inline !items-stretch"},{default:x(()=>[v("a",{onClick:We(_=>d(g),["prevent"])},se(o(je)(g.meta.title)),9,ja)]),_:2},1024))),128))]),_:1})]),_:1})}}}),yn={width:24,height:24,body:''},Ba={width:24,height:24,body:''},Fa=["title"],Na=oe({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=e,i=()=>{a("toggleClick")};return(s,l)=>{const d=H("IconifyIconOffline");return c(),S("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:i},[u(d,{icon:n.isActive?o(yn):o(Ba),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Fa)}}}),Ua={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Wa={key:3,class:"vertical-header-right"},Ga={class:"check-en"},Ka={class:"el-dropdown-link navbar-bg-hover select-none"},Xa=["src"],Ya={key:0,class:"dark:text-white"},Ja=["title"],Qa=oe({__name:"navbar",setup(t){const{layout:e,device:n,logout:a,onPanel:i,pureApp:s,username:l,userAvatar:d,avatarsStyle:h,toggleSideBar:f,getDropdownItemStyle:b,getDropdownItemClass:p}=ze(),{t:g,locale:_,translationCh:k,translationEn:L}=jt();return(w,R)=>{const A=H("IconifyIconOffline"),E=H("el-dropdown-item"),W=H("el-dropdown-menu"),G=H("el-dropdown");return c(),S("div",Ua,[o(n)==="mobile"?(c(),D(Na,{key:0,class:"hamburger-container","is-active":o(s).sidebar.opened,onToggleClick:o(f)},null,8,["is-active","onToggleClick"])):J("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(c(),D(qa,{key:1,class:"breadcrumb-container"})):J("",!0),o(e)==="mix"?(c(),D(Da,{key:2})):J("",!0),o(e)==="vertical"?(c(),S("div",Wa,[u(Nt,{id:"header-search"}),u(G,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(W,{class:"translation"},{default:x(()=>[u(E,{style:ue(o(b)(o(_),"zh")),class:le(["dark:!text-white",o(p)(o(_),"zh")]),onClick:o(k)},{default:x(()=>[ie(u(A,{class:"check-zh",icon:o(tt)},null,8,["icon"]),[[xe,o(_)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(E,{style:ue(o(b)(o(_),"en")),class:le(["dark:!text-white",o(p)(o(_),"en")]),onClick:o(L)},{default:x(()=>[ie(v("span",Ga,[u(A,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(_)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(qt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Wt,{id:"full-screen"}),u(Ut,{id:"header-notice"}),u(G,{trigger:"click"},{dropdown:x(()=>[u(W,{class:"logout"},{default:x(()=>[u(E,{onClick:o(a)},{default:x(()=>[u(A,{icon:o(Gt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Ka,[v("img",{src:o(d),style:ue(o(h))},null,12,Xa),o(l)?(c(),S("p",Ya,se(o(l)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.hssystemSet"),onClick:R[0]||(R[0]=(...M)=>o(i)&&o(i)(...M))},[u(A,{icon:o(_t)},null,8,["icon"])],8,Ja)])):J("",!0)])}}}),el=be(Qa,[["__scopeId","data-v-8aa88393"]]),tl={width:24,height:24,body:''},nl={width:24,height:24,body:''},ol={width:24,height:24,body:''},al={width:24,height:24,body:''};function ll(){var ce,ee;const t=Ot(),e=Et(),n=At(),a=Ft(),i=P(0),s=P(0),l=P(0),d=P(!1),h=P(-1),f=P({}),b=P(!1),p=P(((ce=Be().getItem(`${st()}configure`))==null?void 0:ce.showModel)||"smart"),g=(ee=P(Be().getItem(`${st()}configure`).hideTabs))!=null?ee:P("false"),_=j(()=>De().multiTags),k=Rt([{icon:ro,text:Re("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:pt,text:Re("buttons.hscloseCurrentTab"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:al,text:Re("buttons.hscloseLeftTabs"),divided:!0,disabled:!(_.value.length>1),show:!0},{icon:ol,text:Re("buttons.hscloseRightTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:nl,text:Re("buttons.hscloseOtherTabs"),divided:!0,disabled:!(_.value.length>2),show:!0},{icon:tl,text:Re("buttons.hscloseAllTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:un,text:Re("buttons.hscontentFullScreen"),divided:!0,disabled:!1,show:!0}]);function L(q,ae,pe){var we,Le;return Dn((we=t==null?void 0:t.meta)==null?void 0:we.showLink)&&((Le=t==null?void 0:t.meta)==null?void 0:Le.showLink)===!1?Object.keys(t.query).length>0?Qe(t.query,q.query)?ae:pe:Qe(t.params,q.params)?ae:pe:t.path===q.path?ae:pe}const w=j(()=>(q,ae)=>{if(ae!==0)return L(q,!0,!1)}),R=j(()=>q=>L(q,"is-active","")),A=j(()=>q=>L(q,"schedule-active","")),E=j(()=>({transform:`translateX(${l.value}px)`,transition:b.value?"none":"transform 0.5s ease-in-out"})),W=j(()=>({left:s.value+"px",top:i.value+"px"})),G=()=>{d.value=!1};function M(q){if(q&&(h.value=q),o(p)==="smart"){if(ut(n.refs["schedule"+q][0],"schedule-active"))return;Ne(!0,"schedule-in",n.refs["schedule"+q][0]),Ne(!1,"schedule-out",n.refs["schedule"+q][0])}else{if(ut(n.refs["dynamic"+q][0],"is-active"))return;Ne(!0,"card-in",n.refs["dynamic"+q][0]),Ne(!1,"card-out",n.refs["dynamic"+q][0])}}function B(q){if(h.value=-1,o(p)==="smart"){if(ut(n.refs["schedule"+q][0],"schedule-active"))return;Ne(!1,"schedule-in",n.refs["schedule"+q][0]),Ne(!0,"schedule-out",n.refs["schedule"+q][0])}else{if(ut(n.refs["dynamic"+q][0],"is-active"))return;Ne(!1,"card-in",n.refs["dynamic"+q][0]),Ne(!0,"card-out",n.refs["dynamic"+q][0])}}function F(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ke(()=>{if(!p.value){const q=Be().getItem(`${st()}configure`);q.showModel="card",Be().setItem(`${st()}configure`,q)}}),{Close:pt,route:t,router:e,visible:d,showTags:g,instance:n,multiTags:_,showModel:p,tagsViews:k,buttonTop:i,buttonLeft:s,translateX:l,pureSetting:a,activeIndex:h,getTabStyle:E,isScrolling:b,iconIsActive:w,linkIsActive:R,currentSelect:f,scheduleIsActive:A,getContextMenuStyle:W,$t:Re,closeMenu:G,onMounted:Ke,onMouseenter:M,onMouseleave:B,transformI18n:je,onContentFullScreen:F}}const sl={width:24,height:24,body:''},zt={width:24,height:24,body:''};var rl={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const il={class:"arrow-left"},cl=["onContextmenu","onMouseenter","onMouseleave","onClick"],ul={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},dl=["onClick"],hl={class:"arrow-right"},fl=["onClick"],pl={class:"arrow-down"},ml=oe({__name:"index",setup(t){var Q;const{Close:e,route:n,router:a,visible:i,showTags:s,instance:l,multiTags:d,tagsViews:h,buttonTop:f,buttonLeft:b,showModel:p,translateX:g,pureSetting:_,activeIndex:k,getTabStyle:L,isScrolling:w,iconIsActive:R,linkIsActive:A,currentSelect:E,scheduleIsActive:W,getContextMenuStyle:G,closeMenu:M,onMounted:B,onMouseenter:F,onMouseleave:ce,transformI18n:ee,onContentFullScreen:q}=ll(),ae=P(),pe=P(),we=P(),Le=P(),Ie=P(!1),Te=(Q=ht())==null?void 0:Q.path,{VITE_HIDE_HOME:r}=rl,m=()=>at(this,null,function*(){yield Ge();const I=d.value.findIndex(Z=>Je(n.query)?Je(n.params)?n.path===Z.path:Qe(n.params,Z.params):Qe(n.query,Z.query));$(I)}),$=I=>at(this,null,function*(){var ve,He;yield Ge();const Z=10;if(!l.refs["dynamic"+I])return;const O=l.refs["dynamic"+I][0],Y=O==null?void 0:O.offsetLeft,he=O==null?void 0:O.offsetWidth,N=we.value?(ve=we.value)==null?void 0:ve.offsetWidth:0,U=ae.value?(He=ae.value)==null?void 0:He.offsetWidth:0;N<=U?Ie.value=!0:Ie.value=!1,U-g.value&&Y+he<-g.value+N?g.value=Math.min(0,N-he-Y-Z):g.value=-(Y-(N-Z-he))}),X=I=>{var Y;const Z=we.value?(Y=we.value)==null?void 0:Y.offsetWidth:0,O=ae.value?ae.value.offsetWidth:0;I>0?g.value=Math.min(0,g.value+I):Z=-(O-Z)&&(g.value=Math.max(g.value+I,Z-O)):g.value=0,w.value=!1},re=I=>{w.value=!0;const Z=Math.abs(I.deltaX)+Math.abs(I.deltaY);let O=0;I.deltaX<0?O=Z>0?Z:100:O=Z>0?-Z:-100,ne(O)},ne=I=>{let O=Math.abs(I);const Y=()=>{const he=Math.sign(I)*Math.min(20,O);X(he),O-=Math.abs(he),O>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function y(I){const Z=d.value.some(Y=>Y.path===I);function O(Y,he){Z||Y.forEach(N=>{N.path===he?De().handleTags("push",{path:he,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&O(N.children,he)})}O(a.options.routes,I)}function C(){const{fullPath:I,query:Z}=o(n);a.replace({path:"/redirect"+I,query:Z}),It(n,"refresh")}function T(I,Z,O){var U,ve,He,Xt;const Y=d.value.findIndex(Ae=>{if(Ae.query){if(Ae.path===I.path)return Ae.query===I.query}else if(Ae.params){if(Ae.path===I.path)return Ae.params===I.params}else return Ae.path===I.path}),he=(Ae,In,$n)=>{$n?De().handleTags("equal",[r==="false"?qn[0]:Se(ht()),I]):De().handleTags("splice","",{startIndex:Ae,length:In}),m()};O==="other"?he(1,1,!0):O==="left"?he(1,Y-1):O==="right"?he(Y+1,d.value.length):he(Y,1);const N=De().handleTags("slice");if(Z===n.path){if(O==="left")return;(U=N[0])!=null&&U.query?a.push({name:N[0].name,query:N[0].query}):(ve=N[0])!=null&&ve.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}else{if(!d.value.length||d.value.some(Ae=>Ae.path===n.path))return;(He=N[0])!=null&&He.query?a.push({name:N[0].name,query:N[0].query}):(Xt=N[0])!=null&&Xt.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}}function K(I,Z){T(I,I.path,Z),It(n)}function V(I,Z,O){if(Z&&Z.disabled)return;let Y;switch(O?Y={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:Y={path:n.path,meta:n.meta},I){case 0:C();break;case 1:K(Y);break;case 2:K(Y,"left");break;case 3:K(Y,"right");break;case 4:K(Y,"other");break;case 5:De().handleTags("splice","",{startIndex:1,length:d.value.length}),a.push(Te),It(n);break;case 6:q(),setTimeout(()=>{_.hiddenSideBar?(h[6].icon=jn,h[6].text=Re("buttons.hscontentExitFullScreen")):(h[6].icon=un,h[6].text=Re("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{ke(n.fullPath,n.query)})}function z(I){const{key:Z,item:O}=I;V(Z,O)}function de(I,Z){M(),V(I,Z,E.value)}function me(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].show=I})}function Fe(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].disabled=I})}function ke(I,Z={},O=!1){const Y=d.value,he=d.value.length;let N=-1;Je(Z)?N=Y.findIndex(U=>U.path===I):N=Y.findIndex(U=>Qe(U.query,Z)),me(!0),O&&(h[0].show=!0),N===1&&he!==2?(h[2].show=!1,Array.of(1,3,4,5).forEach(U=>{h[U].disabled=!1}),h[2].disabled=!0):N===1&&he===2?(Fe(!1),Array.of(2,3,4).forEach(U=>{h[U].show=!1,h[U].disabled=!0})):he-1===N&&N!==0?(h[3].show=!1,Array.of(1,2,4,5).forEach(U=>{h[U].disabled=!1}),h[3].disabled=!0):N===0||I===`/redirect${Te}`?Fe(!0):Fe(!1)}function ot(I,Z){M(),I.path===Te?(me(!1),h[0].show=!0):n.path!==I.path&&n.name!==I.name?(h[0].show=!1,ke(I.path,I.query)):d.value.length===2&&n.path!==I.path?(me(!0),h[4].show=!1):n.path===I.path&&ke(I.path,I.query,!0),E.value=I;const O=140,Y=o(pe).getBoundingClientRect().left,N=o(pe).offsetWidth-O,U=Z.clientX-Y+5;U>N?b.value=N:b.value=U,Ft().hiddenSideBar?f.value=Z.clientY:f.value=Z.clientY-40,Ge(()=>{i.value=!0})}function wt(I){const{name:Z,path:O}=I;Z?I.query?a.push({name:Z,query:I.query}):I.params?a.push({name:Z,params:I.params}):a.push({name:Z}):a.push({path:O})}return dn(Le,M,{detectIframe:!0}),Ze(n,()=>{k.value=-1,m()}),B(()=>{l&&(ke(n.fullPath),Me.on("tagViewsChange",I=>{o(s)!==I&&(s.value=I)}),Me.on("tagViewsShowModel",I=>{p.value=I}),Me.on("changLayoutRoute",I=>{y(I),setTimeout(()=>{ke(I)})}),mt(we,m),rn().then(()=>m()))}),Pt(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),(I,Z)=>{const O=H("IconifyIconOffline"),Y=H("el-dropdown-item"),he=H("el-dropdown-menu"),N=H("el-dropdown");return o(s)?J("",!0):(c(),S("div",{key:0,ref_key:"containerDom",ref:pe,class:"tags-view"},[ie(v("span",il,[u(O,{icon:o(zt),onClick:Z[0]||(Z[0]=U=>X(200))},null,8,["icon"])],512),[[xe,Ie.value]]),v("div",{ref_key:"scrollbarDom",ref:we,class:"scroll-container",onWheel:We(re,["prevent"])},[v("div",{ref_key:"tabDom",ref:ae,class:"tab select-none",style:ue(o(L))},[(c(!0),S(ye,null,Ce(o(d),(U,ve)=>(c(),S("div",{ref_for:!0,ref:"dynamic"+ve,key:ve,class:le(["scroll-item is-closable",o(A)(U)]),onContextmenu:We(He=>ot(U,He),["prevent"]),onMouseenter:We(He=>o(F)(ve),["prevent"]),onMouseleave:We(He=>o(ce)(ve),["prevent"]),onClick:He=>wt(U)},[v("span",ul,se(o(ee)(U.meta.title)),1),o(R)(U,ve)||ve===o(k)&&ve!==0?(c(),S("span",{key:0,class:"el-icon-close",onClick:We(He=>K(U),["stop"])},[u(O,{icon:o(e)},null,8,["icon"])],8,dl)):J("",!0),o(p)!=="card"?(c(),S("span",{key:1,ref_for:!0,ref:"schedule"+ve,class:le([o(W)(U)])},null,2)):J("",!0)],42,cl))),128))],4)],544),ie(v("span",hl,[u(O,{icon:o(Tt),onClick:Z[1]||(Z[1]=U=>X(-200))},null,8,["icon"])],512),[[xe,Ie.value]]),u(Dt,{name:"el-zoom-in-top"},{default:x(()=>[ie((c(),S("ul",{ref_key:"contextmenuRef",ref:Le,key:Math.random(),style:ue(o(G)),class:"contextmenu"},[(c(!0),S(ye,null,Ce(o(h).slice(0,6),(U,ve)=>(c(),S("div",{key:ve,style:{display:"flex","align-items":"center"}},[U.show?(c(),S("li",{key:0,onClick:He=>de(ve,U)},[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)],8,fl)):J("",!0)]))),128))],4)),[[xe,o(i)]])]),_:1}),u(N,{trigger:"click",placement:"bottom-end",onCommand:z},{dropdown:x(()=>[u(he,null,{default:x(()=>[(c(!0),S(ye,null,Ce(o(h),(U,ve)=>(c(),D(Y,{key:ve,command:{key:ve,item:U},divided:U.divided,disabled:U.disabled},{default:x(()=>[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[v("span",pl,[u(O,{icon:o(sl),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),vl=be(ml,[["__scopeId","data-v-718536cb"]]),_l={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},gl={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},yl=oe({__name:"index",setup(t){const e=Ye("Title");return(n,a)=>(c(),S("footer",_l,[_e(" Copyright © 2020-present "),v("a",gl," "+se(o(e)),1)]))}}),ln=be(yl,[["__scopeId","data-v-44b5e275"]]),lt=new Map,bl=()=>{function t(a,i){lt.set(a,i)}function e(a){return a?lt.get(a):[...lt.entries()]}function n(a){lt.delete(a)}return{setMap:t,getMap:e,delMap:n,MAP:lt}},wl={class:"w-full h-full"},kl=oe({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=St([]),{setMap:a,getMap:i,MAP:s,delMap:l}=bl(),d=j(()=>{var f,b;return Ye().KeepAlive&&((f=e.currRoute.meta)==null?void 0:f.keepAlive)&&!!((b=e.currRoute.meta)!=null&&b.frameSrc)}),h=j(()=>!d.value&&e.currComp);return Ze(De().multiTags,f=>{if(!Array.isArray(f)||!d.value)return;if(f.filter(p=>{var g;return(g=p.meta)==null?void 0:g.frameSrc}).lengthg.path===p)||(l(p),n.value=i())}),Ze(()=>e.currRoute.fullPath,f=>{const p=De().multiTags.filter(g=>{var _;return(_=g.meta)==null?void 0:_.frameSrc});d.value&&p.length!==s.size&&([...s.keys()].find(_=>f===_)||a(f,e.currComp)),s.size>0&&(n.value=i())},{immediate:!0}),(f,b)=>(c(),S(ye,null,[(c(!0),S(ye,null,Ce(n.value,([p,g])=>{var _;return ie((c(),S("div",{key:p,class:"w-full h-full"},[ft(f.$slots,"default",{fullPath:p,Comp:g,frameInfo:{frameSrc:(_=f.currRoute.meta)==null?void 0:_.frameSrc,fullPath:p}})],512)),[[xe,p===e.currRoute.fullPath]])}),128)),ie(v("div",wl,[ft(f.$slots,"default",{Comp:h.value,fullPath:e.currRoute.fullPath})],512),[[xe,!d.value]])],64))}}),Cl={class:"grow"},xl={key:1,class:"grow"},Il=oe({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=vt(),i=j(()=>a==null?void 0:a.KeepAlive),s=j(()=>_=>_.meta.transition),l=j(()=>n==null?void 0:n.configure.hideTabs),d=j(()=>n==null?void 0:n.configure.hideFooter),h=j(()=>n==null?void 0:n.configure.stretch),f=j(()=>(n==null?void 0:n.layout.layout)==="vertical"),b=j(()=>Mt(h.value)?h.value+"px":h.value?"1440px":"100%"),p=j(()=>[l.value&&f?"padding-top: 48px;":"",!l.value&&f?"padding-top: 81px;":"",l.value&&!f.value?"padding-top: 48px;":"",!l.value&&!f.value?"padding-top: 81px;":"",e.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=oe({props:{route:{type:void 0,required:!0}},render(){var w,R,A;const _=((w=s.value(this.route))==null?void 0:w.name)||"fade-transform",k=(R=s.value(this.route))==null?void 0:R.enterTransition,L=(A=s.value(this.route))==null?void 0:A.leaveTransition;return rt(Dt,{name:k?"pure-classes-transition":_,enterActiveClass:k?`animate__animated ${k}`:void 0,leaveActiveClass:L?`animate__animated ${L}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,k)=>{const L=H("el-backtop"),w=H("el-scrollbar"),R=H("router-view");return c(),S("section",{class:le([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ue(p.value)},[u(R,null,{default:x(({Component:A,route:E})=>[u(kl,{currComp:A,currRoute:E},{default:x(({Comp:W,fullPath:G,frameInfo:M})=>[e.fixedHeader?(c(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":b.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:x(()=>[u(L,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:x(()=>[u(o(vn))]),_:1}),v("div",Cl,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(Qt,{key:0,include:o(Ve)().cachePageList},[(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?J("",!0):(c(),D(ln,{key:0}))]),_:2},1032,["wrap-style"])):(c(),S("div",xl,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(Qt,{key:0,include:o(Ve)().cachePageList},[(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!e.fixedHeader?(c(),D(ln,{key:0})):J("",!0)],6)}}}),sn=be(Il,[["__scopeId","data-v-918fa3f0"]]),bn=t=>(hn("data-v-af01f247"),t=t(),fn(),t),$l=bn(()=>v("div",{class:"right-panel-background"},null,-1)),Sl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Ml=bn(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),Vl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Tl=oe({__name:"index",setup(t){const e=P(null),n=P(!1),a=j(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-none","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{onReset:i}=Bt();return dn(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Ke(()=>{Me.on("openPanel",()=>{n.value=!0})}),Pt(()=>{Me.off("openPanel")}),(s,l)=>{const d=H("IconifyIconOffline"),h=H("el-scrollbar"),f=H("el-button"),b=et("tippy");return c(),S("div",{class:le({show:n.value})},[$l,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Sl,[Ml,ie((c(),S("span",{class:le(a.value)},[u(d,{class:"dark:text-white",width:"18px",height:"18px",icon:o(pt),onClick:l[0]||(l[0]=p=>n.value=!n.value)},null,8,["icon"])],2)),[[b,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),u(h,null,{default:x(()=>[ft(s.$slots,"default",{},void 0,!0)]),_:3}),v("div",Vl,[ie((c(),D(f,{type:"danger",text:"",bg:"",onClick:o(i)},{default:x(()=>[_e(" 清空缓存 ")]),_:1},8,["onClick"])),[[b,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Hl=be(Tl,[["__scopeId","data-v-af01f247"]]),zl={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Ll=v("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),Al=v("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),El=[Ll,Al];function Zl(t,e){return c(),S("svg",zl,[...El])}const Ol={render:Zl},$e=t=>(hn("data-v-af47f972"),t=t(),fn(),t),Rl={class:"p-5"},Pl={class:"theme-color"},Dl=["onClick"],jl={class:"pure-theme"},ql=$e(()=>v("div",null,null,-1)),Bl=$e(()=>v("div",null,null,-1)),Fl=[ql,Bl],Nl=$e(()=>v("div",null,null,-1)),Ul=$e(()=>v("div",null,null,-1)),Wl=[Nl,Ul],Gl=$e(()=>v("div",null,null,-1)),Kl=$e(()=>v("div",null,null,-1)),Xl=[Gl,Kl],Yl={key:0},Jl=$e(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),Ql=$e(()=>v("p",{class:"mt-5 font-medium text-sm dark:text-white"},"界面显示",-1)),es={class:"setting"},ts=$e(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),ns=$e(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),os=$e(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),as=$e(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),ls=$e(()=>v("span",{class:"dark:text-white"},"Logo",-1)),ss=$e(()=>v("span",{class:"dark:text-white"},"页签持久化",-1)),rs=oe({__name:"index",setup(t){var y,C,T,K;const{device:e}=ze(),{isDark:n}=pn(),{$storage:a}=vt(),i=P(),s=P(),l=P(),{dataTheme:d,overallStyle:h,layoutTheme:f,themeColors:b,toggleClass:p,dataThemeChange:g,setLayoutThemeColor:_}=Bt();if(o(f)){const V=o(f).layout,z=o(f).theme;to({scopeName:`layout-theme-${z}`}),m(V)}const k=P((C=(y=a.configure)==null?void 0:y.showModel)!=null?C:"smart"),L=P((K=(T=a.configure)==null?void 0:T.showLogo)!=null?K:!0),w=Rt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,hideFooter:a.configure.hideFooter,multiTagsCache:a.configure.multiTagsCache,stretch:a.configure.stretch}),R=j(()=>V=>({background:V})),A=j(()=>V=>!(V==="light"&&n.value));function E(V,z){const de=a.configure;de[V]=z,a.configure=de}const W=V=>{const z=document.querySelector("html");p(w.greyVal,"html-grey",z),E("grey",V)},G=V=>{const z=document.querySelector("html");p(w.weakVal,"html-weakness",z),E("weak",V)},M=()=>{const V=w.tabsVal;E("hideTabs",V),Me.emit("tagViewsChange",V)},B=()=>{const V=w.hideFooter;E("hideFooter",V)},F=()=>{const V=w.multiTagsCache;E("multiTagsCache",V),De().multiTagsCacheChange(V)};function ce({option:V}){const{value:z}=V;k.value=z,E("showModel",z),Me.emit("tagViewsShowModel",z)}function ee(){o(L)?E("showLogo",!0):E("showLogo",!1),Me.emit("logoChange",o(L))}function q(V){V.forEach(z=>{p(!1,"is-select",o(z))})}const ae=[{label:"固定",tip:"紧凑页面,轻松找到所需信息",value:"fixed"},{label:"自定义",tip:"最小1280、最大1600",value:"custom"}],pe=V=>{w.stretch=V,E("stretch",V)},we=({option:V})=>{const{value:z}=V;pe(z==="custom"?1440:!1)},Le=j(()=>V=>V===f.value.theme&&f.value.theme!=="light"?"#fff":V===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent"),Ie=j(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),Te=j(()=>[{label:"浅色",icon:no,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"深色",icon:oo,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"自动",icon:Ol,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),r=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function m(V){var z,de,me,Fe,ke;f.value.layout=V,window.document.body.setAttribute("layout",V),a.layout={layout:V,theme:f.value.theme,darkMode:(z=a.layout)==null?void 0:z.darkMode,sidebarStatus:(de=a.layout)==null?void 0:de.sidebarStatus,epThemeColor:(me=a.layout)==null?void 0:me.epThemeColor,themeColor:(Fe=a.layout)==null?void 0:Fe.themeColor,overallStyle:(ke=a.layout)==null?void 0:ke.overallStyle},Xe().setLayout(V)}Ze(a,({layout:V})=>{switch(V.layout){case"vertical":p(!0,"is-select",o(s)),nt(q([l]),50),nt(q([i]),50);break;case"horizontal":p(!0,"is-select",o(l)),nt(q([s]),50),nt(q([i]),50);break;case"mix":p(!0,"is-select",o(i)),nt(q([s]),50),nt(q([l]),50);break}});const $=window.matchMedia("(prefers-color-scheme: dark)");function X(){h.value==="system"&&($.matches?d.value=!0:d.value=!1,g(h.value))}function re(){$.removeEventListener("change",X)}function ne(){X(),re(),$.addEventListener("change",X)}return mn(()=>{Ge(()=>{var V,z;ne(),w.greyVal&&((V=document.querySelector("html"))==null||V.classList.add("html-grey")),w.weakVal&&((z=document.querySelector("html"))==null||z.classList.add("html-weakness")),w.tabsVal&&M(),w.hideFooter&&B()})}),Bn(()=>re),(V,z)=>{const de=H("IconifyIconOffline"),me=H("el-icon"),Fe=H("el-input-number"),ke=H("el-switch"),ot=et("tippy"),wt=et("ripple");return c(),D(Hl,null,{default:x(()=>[v("div",Rl,[v("p",{class:le(Ie.value)},"整体风格",2),u(o($t),{class:"select-none",modelValue:o(h)==="system"?2:o(d)?1:0,options:Te.value,onChange:z[0]||(z[0]=Q=>{Q.index===1&&Q.index!==2?d.value=!0:d.value=!1,h.value=Q.option.theme,o(g)(Q.option.theme),Q.index===2&&ne()})},null,8,["modelValue","options"]),v("p",{class:le(["mt-5",Ie.value])},"主题色",2),v("ul",Pl,[(c(!0),S(ye,null,Ce(o(b),(Q,I)=>ie((c(),S("li",{key:I,style:ue(R.value(Q.color)),onClick:Z=>o(_)(Q.themeColor)},[u(me,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Le.value(Q.themeColor)},{default:x(()=>[u(de,{icon:o(tt)},null,8,["icon"])]),_:2},1032,["color"])],12,Dl)),[[xe,A.value(Q.themeColor)]])),128))]),v("p",{class:le(["mt-5",Ie.value])},"导航模式",2),v("ul",jl,[ie((c(),S("li",{ref_key:"verticalRef",ref:s,class:le(o(f).layout==="vertical"?"is-select":""),onClick:z[1]||(z[1]=Q=>m("vertical"))},Fl,2)),[[ot,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?ie((c(),S("li",{key:0,ref_key:"horizontalRef",ref:l,class:le(o(f).layout==="horizontal"?"is-select":""),onClick:z[2]||(z[2]=Q=>m("horizontal"))},Wl,2)),[[ot,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):J("",!0),o(e)!=="mobile"?ie((c(),S("li",{key:1,ref_key:"mixRef",ref:i,class:le(o(f).layout==="mix"?"is-select":""),onClick:z[3]||(z[3]=Q=>m("mix"))},Xl,2)),[[ot,{content:"混合菜单,灵活多变",zIndex:41e3}]]):J("",!0)]),o(e)!=="mobile"?(c(),S("span",Yl,[v("p",{class:le(["mt-5",Ie.value])},"页宽",2),u(o($t),{class:"mb-2 select-none",modelValue:o(Mt)(w.stretch)?1:0,options:ae,onChange:we},null,8,["modelValue"]),o(Mt)(w.stretch)?(c(),D(Fe,{key:0,modelValue:w.stretch,"onUpdate:modelValue":z[4]||(z[4]=Q=>w.stretch=Q),min:1280,max:1600,"controls-position":"right",onChange:z[5]||(z[5]=Q=>pe(Q))},null,8,["modelValue"])):ie((c(),S("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-gray-100",onClick:z[6]||(z[6]=Q=>pe(!w.stretch))},[v("div",{class:le(["flex-bc transition-all duration-300",[w.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[u(de,{icon:w.stretch?o(Tt):o(zt),height:"20"},null,8,["icon"]),Jl,u(de,{icon:w.stretch?o(zt):o(Tt),height:"20"},null,8,["icon"])],2)])),[[wt,{class:"text-gray-300"}]])])):J("",!0),v("p",{class:le(["mt-4",Ie.value])},"页签风格",2),u(o($t),{class:"select-none",modelValue:k.value==="smart"?0:1,options:r,onChange:ce},null,8,["modelValue"]),Ql,v("ul",es,[v("li",null,[ts,u(ke,{modelValue:w.greyVal,"onUpdate:modelValue":z[7]||(z[7]=Q=>w.greyVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),v("li",null,[ns,u(ke,{modelValue:w.weakVal,"onUpdate:modelValue":z[8]||(z[8]=Q=>w.weakVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:G},null,8,["modelValue"])]),v("li",null,[os,u(ke,{modelValue:w.tabsVal,"onUpdate:modelValue":z[9]||(z[9]=Q=>w.tabsVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),v("li",null,[as,u(ke,{modelValue:w.hideFooter,"onUpdate:modelValue":z[10]||(z[10]=Q=>w.hideFooter=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),v("li",null,[ls,u(ke,{modelValue:L.value,"onUpdate:modelValue":z[11]||(z[11]=Q=>L.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:ee},null,8,["modelValue"])]),v("li",null,[ss,u(ke,{modelValue:w.multiTagsCache,"onUpdate:modelValue":z[12]||(z[12]=Q=>w.multiTagsCache=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])])])])]),_:1})}}}),is=be(rs,[["__scopeId","data-v-af47f972"]]),cs=["src"],us={class:"sidebar-title"},ds=["src"],hs={class:"sidebar-title"},fs=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=ze();return(i,s)=>{const l=H("router-link");return c(),S("div",{class:le(["sidebar-logo-container",{collapses:e.collapse}])},[u(Dt,{name:"sidebarLogoFade"},{default:x(()=>{var d,h,f,b;return[e.collapse?(c(),D(l,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:(h=(d=o(ht)())==null?void 0:d.path)!=null?h:"/"},{default:x(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,cs),v("span",us,se(o(n)),1)]),_:1},8,["title","to"])):(c(),D(l,{key:"expand",title:o(n),class:"sidebar-logo-link",to:(b=(f=o(ht)())==null?void 0:f.path)!=null?b:"/"},{default:x(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,ds),v("span",hs,se(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),ps=be(fs,[["__scopeId","data-v-1e860333"]]);var ct={exports:{}},wn={},ms=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Lt={exports:{}};typeof Object.create=="function"?Lt.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Lt.exports=function(e,n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e};var vs=Lt.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!W(r)){for(var m=[],$=0;$=re)return C;switch(C){case"%s":return String(X[$++]);case"%d":return Number(X[$++]);case"%j":try{return JSON.stringify(X[$++])}catch(T){return"[Circular]"}default:return C}}),y=X[$];$=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),w(m)?$.showHidden=m:m&&t._extend($,m),M($.showHidden)&&($.showHidden=!1),M($.depth)&&($.depth=2),M($.colors)&&($.colors=!1),M($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=l),f($,r,$.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(r,m){var $=s.styles[m];return $?"\x1B["+s.colors[$][0]+"m"+r+"\x1B["+s.colors[$][1]+"m":r}function d(r,m){return r}function h(r){var m={};return r.forEach(function($,X){m[$]=!0}),m}function f(r,m,$){if(r.customInspect&&m&&q(m.inspect)&&m.inspect!==t.inspect&&!(m.constructor&&m.constructor.prototype===m)){var X=m.inspect($,r);return W(X)||(X=f(r,X,$)),X}var re=b(r,m);if(re)return re;var ne=Object.keys(m),y=h(ne);if(r.showHidden&&(ne=Object.getOwnPropertyNames(m)),ee(m)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return p(m);if(ne.length===0){if(q(m)){var C=m.name?": "+m.name:"";return r.stylize("[Function"+C+"]","special")}if(B(m))return r.stylize(RegExp.prototype.toString.call(m),"regexp");if(ce(m))return r.stylize(Date.prototype.toString.call(m),"date");if(ee(m))return p(m)}var T="",K=!1,V=["{","}"];if(L(m)&&(K=!0,V=["[","]"]),q(m)){var z=m.name?": "+m.name:"";T=" [Function"+z+"]"}if(B(m)&&(T=" "+RegExp.prototype.toString.call(m)),ce(m)&&(T=" "+Date.prototype.toUTCString.call(m)),ee(m)&&(T=" "+p(m)),ne.length===0&&(!K||m.length==0))return V[0]+T+V[1];if($<0)return B(m)?r.stylize(RegExp.prototype.toString.call(m),"regexp"):r.stylize("[Object]","special");r.seen.push(m);var de;return K?de=g(r,m,$,y,ne):de=ne.map(function(me){return _(r,m,$,y,me,K)}),r.seen.pop(),k(de,T,V)}function b(r,m){if(M(m))return r.stylize("undefined","undefined");if(W(m)){var $="'"+JSON.stringify(m).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize($,"string")}if(E(m))return r.stylize(""+m,"number");if(w(m))return r.stylize(""+m,"boolean");if(R(m))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,m,$,X,re){for(var ne=[],y=0,C=m.length;ye in t?Mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kt=(t,e)=>{for(var n in e||(e={}))Hn.call(e,n)&&en(t,n,e[n]);if(Qt)for(var n of Qt(e))zn.call(e,n)&&en(t,n,e[n]);return t},Ct=(t,e)=>Vn(t,Tn(e));var at=(t,e,n)=>new Promise((a,i)=>{var s=h=>{try{d(n.next(h))}catch(f){i(f)}},l=h=>{try{d(n.throw(h))}catch(f){i(f)}},d=h=>h.done?a(h.value):Promise.resolve(h.value).then(s,l);d((n=n.apply(t,e)).next())});import{fy as te,au as Ln,ax as Ye,ay as An,e as c,x as S,g as v,d as oe,r as P,$ as At,c as j,c_ as mt,o as Ke,F as ye,y as Ce,n as ue,f as D,W as Ee,u as o,t as se,ad as je,m as u,_ as be,k as H,l as _e,K as J,z as ie,a3 as xe,h as We,w as Ze,c$ as un,q as Ge,d2 as En,ag as Et,U as Zn,O as St,ah as On,aa as Ve,fz as xt,j as x,dq as Rn,av as Be,d8 as Je,aG as Pn,a0 as dn,du as Se,v as et,i as le,fA as Zt,fB as dt,af as Ot,fC as De,L as Dn,fD as Qe,aw as st,b as Rt,fE as Re,fF as hn,fG as jn,fH as ut,da as Ne,fI as ht,fJ as fn,s as Pt,b6 as Dt,fK as It,fL as qn,fM as Bn,A as jt,B as qt,S as ft,fN as vt,d5 as Mt,fO as tn,M as rt,as as pn,Y as nt,a1 as mn,a as Fn,Z as Nn,V as Un,fP as Wn,ar as Gn,b7 as Kn,fv as Xn,a6 as nn}from"./index-BAaep8yZ.js";import{d as Yn,a as pt}from"./close-CObHKOmY.js";import{d as Jn}from"./home-filled-NADQtN-e.js";import{d as Qn}from"./git-branch-line-BhusJOme.js";import{d as eo}from"./admin-line-CpqWPwjZ.js";import{d as to,u as ze,a as Bt,g as Ft,b as Nt,t as no,c as oo,e as ao,f as lo}from"./dark-ClUjdXml.js";import{u as Xe}from"./app-CQnhMBwF.js";import{m as so}from"./index-QpUUYT1t.js";import{u as Vt}from"./epTheme-C6dkH2Du.js";import{u as Pe}from"./hooks-n2iC5q0_.js";import{S as ro}from"./sortable.esm-6WsHlDA5.js";import{d as tt}from"./check-CIQVCvCT.js";import{e as Me}from"./mitt-E5P-NQ8u.js";import{d as io}from"./refresh-right-Du3ZsAuC.js";import{d as Tt}from"./arrow-right-s-line-CxPb13eK.js";import{b as vn}from"./back_top-BT7DZkiX.js";import{R as $t}from"./index-Bf2XPo4E.js";import{R as on}from"./index-BJfj3QbS.js";const co={width:1024,height:1024,body:''},uo={width:1024,height:1024,body:''},ho={width:1024,height:1024,body:''},fo={width:1024,height:1024,body:''},po={width:1024,height:1024,body:''},mo={width:1024,height:1024,body:''},vo={width:24,height:24,body:''},_o={width:24,height:24,body:''},go={width:24,height:24,body:''},yo={width:24,height:24,body:''},bo={width:24,height:24,body:''},wo={width:24,height:24,body:''},ko={width:24,height:24,body:''},_n={width:24,height:24,body:''},_t={width:24,height:24,body:''},Co={width:24,height:24,body:''},xo={width:24,height:24,body:''},Io={width:24,height:24,body:''},$o={width:24,height:24,body:''},So={width:24,height:24,body:''},Mo={width:24,height:24,body:''},Vo={width:24,height:24,body:''},To={width:24,height:24,body:''},Ho={width:24,height:24,body:''},zo={width:24,height:24,body:''},Lo={width:24,height:24,body:''};te("ep:menu",Yn);te("ep:edit",co);te("ep:set-up",uo);te("ep:guide",ho);te("ep:monitor",fo);te("ep:lollipop",po);te("ep:histogram",mo);te("ep:home-filled",Jn);te("ri:bookmark-2-line",vo);te("ri:file-ppt-2-line",_o);te("ri:bank-card-line",go);te("ri:admin-fill",yo);te("ri:file-info-line",bo);te("ri:git-branch-line",Qn);te("ri:links-fill",ko);te("ri:table-line",wo);te("ri:search-line",_n);te("ri:admin-line",eo);te("ri:settings-3-line",_t);te("ri:bar-chart-horizontal-line",Co);te("ri:window-line",xo);te("ri:file-search-line",$o);te("ri:artboard-line",Io);te("ri:list-check",So);te("ri:ubuntu-fill",Mo);te("ri:user-voice-line",Vo);te("ri:edit-box-line",To);te("ri:history-fill",Ho);te("ri:information-line",to);te("ri:terminal-window-line",zo);te("ri:checkbox-circle-line",Lo);const Ao=Ln({id:"pure-setting",state:()=>({title:Ye().Title,fixedHeader:Ye().FixedHeader,hiddenSideBar:Ye().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Ut(){return Ao(An)}const Eo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Zo=v("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1),Oo=[Zo];function Ro(t,e){return c(),S("svg",Eo,[...Oo])}const gn={render:Ro},Po=["onMouseenter"],Do={class:"result-item-title"},jo=oe({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=P(),i=P(),s=n,l=At(),d=t,h=j(()=>k=>({background:(k==null?void 0:k.path)===f.value?Vt().epThemeColor:"",color:k.path===f.value?"#fff":"",fontSize:k.path===f.value?"16px":"14px"})),f=j({get(){return d.value},set(k){s("update:value",k)}});function b(k){return at(this,null,function*(){f.value=k.path})}function p(){s("enter")}function g(){i.value=window.innerHeight-window.innerHeight/10-140}mt(a,g);function _(k){var A;const L=(A=l==null?void 0:l.proxy)==null?void 0:A.$refs[`resultItemRef${k}`];if(!L)return 0;const R=L[0].offsetTop+128;return R>i.value?R-i.value:0}return Ke(()=>{g()}),e({handleScroll:_}),(k,L)=>(c(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(c(!0),S(ye,null,Ce(k.options,(w,R)=>{var A,E;return c(),S("div",{key:w.path,ref_for:!0,ref:"resultItemRef"+R,class:"result-item dark:bg-[#1d1d1d]",style:ue(h.value(w)),onClick:p,onMouseenter:W=>b(w)},[(c(),D(Ee(o(Pe)((A=w.meta)==null?void 0:A.icon)))),v("span",Do,se(o(je)((E=w.meta)==null?void 0:E.title)),1),u(o(gn))],44,Po)}),128))],512))}}),qo=be(jo,[["__scopeId","data-v-b88fa124"]]),Bo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Fo=v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1),No=[Fo];function Uo(t,e){return c(),S("svg",Bo,[...No])}const Wo={render:Uo},Go={width:24,height:24,body:''},Ko={width:24,height:24,body:''},Xo={class:"search-footer text-[#333] dark:text-white"},Yo={class:"search-footer-item"},Jo={class:"search-footer-item"},Qo={class:"search-footer-item"},ea={key:0,class:"search-footer-total"},ta=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=ze();return(a,i)=>{const s=H("IconifyIconOffline");return c(),S("div",Xo,[v("span",Yo,[u(o(gn),{class:"icon"}),_e(" 确认 ")]),v("span",Jo,[u(s,{icon:o(Go),class:"icon"},null,8,["icon"]),u(s,{icon:o(Ko),class:"icon"},null,8,["icon"]),_e(" 切换 ")]),v("span",Qo,[u(o(Wo),{class:"icon"}),_e(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(c(),S("p",ea," 共"+se(e.total)+"项 ",1)):J("",!0)])}}}),na=be(ta,[["__scopeId","data-v-f9c16431"]]),oa={width:1024,height:1024,body:''},aa={class:"history-item-title"},la=oe({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:e}){const n=e;function a(s){n("collectItem",s)}function i(s){n("deleteItem",s)}return(s,l)=>{var h,f;const d=H("IconifyIconOffline");return c(),S(ye,null,[(c(),D(Ee(o(Pe)((h=s.item.meta)==null?void 0:h.icon)))),v("span",aa,se(o(je)((f=s.item.meta)==null?void 0:f.title)),1),ie(u(d,{icon:o(oa),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:l[0]||(l[0]=We(b=>a(s.item),["stop"]))},null,8,["icon"]),[[xe,s.item.type==="history"]]),u(d,{icon:o(pt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:l[1]||(l[1]=We(b=>i(s.item),["stop"]))},null,8,["icon"])],64)}}}),an=be(la,[["__scopeId","data-v-a9dc41c7"]]),sa=["onMouseenter"],ra={class:"collect-container"},ia=["onMouseenter"],ca=oe({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=P(),i=P(),s=P(!1),l=n,d=At(),h=t,f=j(()=>M=>({background:(M==null?void 0:M.path)===p.value?Vt().epThemeColor:"",color:M.path===p.value?"#fff":"",fontSize:M.path===p.value?"16px":"14px"})),b=j(()=>({color:Vt().epThemeColor,fontWeight:500})),p=j({get(){return h.value},set(M){l("update:value",M)}});Ze(()=>h.value,M=>{M&&s.value&&un(100).then(()=>s.value=!1)});const g=j(()=>h.options.filter(M=>M.type==="history")),_=j(()=>h.options.filter(M=>M.type==="collect"));function k(M){l("collect",M)}function L(M){s.value=!0,l("delete",M)}function w(M){return at(this,null,function*(){s.value||(p.value=M.path)})}function R(){l("enter")}function A(){i.value=window.innerHeight-window.innerHeight/10-140}mt(a,A);function E(M){var ee;const B=(ee=d==null?void 0:d.proxy)==null?void 0:ee.$refs[`historyItemRef${M}`];if(!B)return 0;const ce=(En(B)?B[0]:B).offsetTop+128;return ce>i.value?ce-i.value:0}const W=M=>{l("drag",{oldIndex:M.oldIndex,newIndex:M.newIndex})};let G=null;return Ze(_,M=>{M.length>1&&Ge(()=>{const B=document.querySelector(".collect-container");!B||G||(G=ro.create(B,{animation:160,onStart:F=>{F.item.style.cursor="move"},onEnd:F=>{F.item.style.cursor="pointer"},onUpdate:W}),A())})},{deep:!0,immediate:!0}),e({handleScroll:E}),(M,B)=>(c(),S("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(c(),S(ye,{key:0},[v("div",{style:ue(b.value)},"搜索历史",4),(c(!0),S(ye,null,Ce(g.value,(F,ce)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+ce,class:"history-item dark:bg-[#1d1d1d]",style:ue(f.value(F)),onClick:R,onMouseenter:ee=>w(F)},[u(an,{item:F,onDeleteItem:L,onCollectItem:k},null,8,["item"])],44,sa))),128))],64)):J("",!0),_.value.length?(c(),S(ye,{key:1},[v("div",{style:ue(b.value)}," 收藏"+se(_.value.length>1?"(可拖拽排序)":""),5),v("div",ra,[(c(!0),S(ye,null,Ce(_.value,(F,ce)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+(ce+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ue(f.value(F)),onClick:R,onMouseenter:ee=>w(F)},[u(an,{item:F,onDeleteItem:L},null,8,["item"])],44,ia))),128))])],64)):J("",!0)],512))}}),ua=be(ca,[["__scopeId","data-v-9fa90bc8"]]),da={class:"search-content"},ln="history",ha="collect",qe="menu-search-history",Ue="menu-search-collect",fa=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=ze(),a=e,i=t,s=Et(),{locale:l}=Zn(),d=P(""),h=P(),f=P(),b=P(),p=P(""),g=P(""),_=St([]),k=St([]),L=Rn(ee,300),w=Ye().MenuSearchHistory,R=P(null),A=j(()=>On(Ve().wholeMenus)),E=j({get(){return i.value},set(y){a("update:value",y)}});Ze(()=>i.value,y=>{y&&re()});const W=j(()=>d.value&&_.value.length>0),G=j(()=>!d.value&&k.value.length>0),M=j(()=>!d.value&&k.value.length===0||d.value&&_.value.length===0);function B(y){return Be().getItem(y)||[]}function F(y,C){Be().setItem(y,C)}function ce(y){const C=[];function T(K){K.forEach(V=>{C.push(V),V.children&&T(V.children)})}return T(y),C}function ee(){var C;const y=ce(A.value);_.value=y.filter(T=>{var K,V;return d.value?je((K=T.meta)==null?void 0:K.title).toLocaleLowerCase().includes(d.value.toLocaleLowerCase().trim())||l.value==="zh"&&!Je(so(je((V=T.meta)==null?void 0:V.title).toLocaleLowerCase(),d.value.toLocaleLowerCase().trim())):!1}),p.value=((C=_.value)==null?void 0:C.length)>0?_.value[0].path:""}function q(){E.value=!1,setTimeout(()=>{_.value=[],g.value="",d.value=""},200)}function ae(y){const T=(_.value.length?h.value:f.value).handleScroll(y);b.value.setScrollTop(T)}function pe(){const y=_.value.length>0,C=y?_.value:k.value,T=y?p.value:g.value;return{options:C,currentPath:T,isResultOptions:y}}function we(y,C){C?p.value=_.value[y].path:g.value=k.value[y].path,ae(y)}function Le(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.path===C)-1+y.length)%y.length;we(V,T)}function Ie(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.path===C)+1)%y.length;we(V,T)}function Te(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0||C==="")return;const K=y.findIndex(V=>V.path===C);K!==-1&&(T?$():X(),s.push(y[K].path),q())}function r(y){const C=y.type===ln?qe:Ue;let T=B(C);T=T.filter(K=>K.path!==y.path),F(C,T),re()}function m(y){let C=B(qe),T=B(Ue);C=C.filter(K=>K.path!==y.path),F(qe,C),T.some(K=>K.path===y.path)||(T.unshift(Ct(kt({},y),{type:ha})),F(Ue,T)),re()}function $(){const{path:y,meta:C}=_.value.find(de=>de.path===p.value),T=B(qe),V=B(Ue).some(de=>de.path===y),z=T.findIndex(de=>de.path===y);V||(z!==-1&&T.splice(z,1),T.length>=w&&T.pop(),T.unshift({path:y,meta:C,type:ln}),Be().setItem(qe,T))}function X(){let y=B(qe);const C=y.findIndex(T=>T.path===g.value);if(C!==-1){const[T]=y.splice(C,1);y.unshift(T),F(qe,y)}}function re(){var T;const y=B(qe),C=B(Ue);k.value=[...y,...C],g.value=(T=k.value[0])==null?void 0:T.path}function ne(y){const C=B(Ue),[T]=C.splice(y.oldIndex,1);C.splice(y.newIndex,0,T),Be().setItem(Ue,C),k.value=[...B(qe),...B(Ue)],g.value=T.path}return xt("Enter",Te),xt("ArrowUp",Le),xt("ArrowDown",Ie),(y,C)=>{const T=H("IconifyIconOffline"),K=H("el-input"),V=H("el-empty"),z=H("el-scrollbar"),de=H("el-dialog");return c(),D(de,{modelValue:E.value,"onUpdate:modelValue":C[3]||(C[3]=me=>E.value=me),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":q,style:{borderRadius:"6px"},"append-to-body":"",onOpened:C[4]||(C[4]=me=>R.value.focus()),onClosed:C[5]||(C[5]=me=>R.value.blur())},{footer:x(()=>[u(na,{total:_.value.length},null,8,["total"])]),default:x(()=>[u(K,{ref_key:"inputRef",ref:R,modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=me=>d.value=me),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(L)},{prefix:x(()=>[u(T,{icon:o(_n),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",da,[u(z,{ref_key:"scrollbarRef",ref:b,"max-height":"calc(90vh - 140px)"},{default:x(()=>[M.value?(c(),D(V,{key:0,description:"暂无搜索结果"})):J("",!0),G.value?(c(),D(ua,{key:1,ref_key:"historyRef",ref:f,value:g.value,"onUpdate:value":C[1]||(C[1]=me=>g.value=me),options:k.value,onClick:Te,onDelete:r,onCollect:m,onDrag:ne},null,8,["value","options"])):J("",!0),W.value?(c(),D(qo,{key:2,ref_key:"resultRef",ref:h,value:p.value,"onUpdate:value":C[2]||(C[2]=me=>p.value=me),options:_.value,onClick:Te},null,8,["value","options"])):J("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),pa=be(fa,[["__scopeId","data-v-ba7ee514"]]);function ma(t=!1){const e=P(t);function n(l){e.value=l}function a(){n(!0)}function i(){n(!1)}function s(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:i,toggle:s}}const Wt=oe({__name:"index",setup(t){const{bool:e,toggle:n}=ma();function a(){n()}return(i,s)=>{const l=H("IconifyIconOffline");return c(),S("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[u(l,{icon:"ri:search-line"})]),u(o(pa),{value:o(e),"onUpdate:value":s[0]||(s[0]=d=>Pn(e)?e.value=d:null)},null,8,["value"])])}}}),sn=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式,如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]},{key:"2",name:"消息",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 评论了你",description:"长风破浪会有时,直挂云帆济沧海",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 回复了你",description:"行路难,行路难,多歧路,今安在。",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"一年前",type:"2"}]},{key:"3",name:"待办",list:[{avatar:"",title:"任务名称",description:"任务需要在 2022-11-16 20:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"},{avatar:"",title:"第三方紧急代码变更",description:"一拳提交于 2022-11-16,需在 2022-11-18 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"信息安全考试",description:"指派小仙于 2022-12-12 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin 版本发布",description:"vue-pure-admin 版本发布",datetime:"",extra:"进行中",type:"3"}]}],va={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},_a={class:"notice-container-text"},ga={class:"notice-text-title text-[#000000d9] dark:text-white"},ya={class:"notice-text-datetime text-[#00000073] dark:text-white"},ba=oe({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=P(null),a=P(!1),i=P(null),s=P(!1),{tooltipEffect:l}=ze(),d=dn();function h(){Ge(()=>{var b,p;((b=n.value)==null?void 0:b.scrollWidth)>((p=n.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function f(b,p){const g=document.createElement("span");g.innerText=p,g.className="getDescriptionWidth",document.querySelector("body").appendChild(g);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const k=b.target.offsetWidth;_>2*k?s.value=!0:s.value=!1}return(b,p)=>{var L,w;const g=H("el-avatar"),_=H("el-tooltip"),k=H("el-tag");return c(),S("div",va,[e.noticeItem.avatar?(c(),D(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),v("div",_a,[v("div",ga,[u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!o(d)},{default:x(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:h},se(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(c(),D(k,{key:0,type:(w=e.noticeItem)==null?void 0:w.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var R;return[_e(se((R=e.noticeItem)==null?void 0:R.extra),1)]}),_:1},8,["type"])):J("",!0)]),u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:x(()=>[v("div",{ref_key:"descriptionRef",ref:i,class:"notice-text-description",onMouseover:p[0]||(p[0]=R=>f(R,e.noticeItem.description))},se(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",ya,se(e.noticeItem.datetime),1)])])}}}),wa=be(ba,[["__scopeId","data-v-2a7dbc48"]]),ka={key:0},Ca=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=H("el-empty");return e.list.length?(c(),S("div",ka,[(c(!0),S(ye,null,Ce(e.list,(s,l)=>(c(),D(wa,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(c(),D(i,{key:1,description:"暂无消息"}))}}}),xa={width:1024,height:1024,body:''},Ia={class:"dropdown-badge navbar-bg-hover select-none"},$a={class:"header-notice-icon"},Sa={key:1},Ma={class:"noticeList-container"},Va=oe({__name:"index",setup(t){const e=P(0),n=P(sn),a=P(sn[0].key);return n.value.map(i=>e.value+=i.list.length),(i,s)=>{const l=H("IconifyIconOffline"),d=H("el-badge"),h=H("el-empty"),f=H("el-scrollbar"),b=H("el-tab-pane"),p=H("el-tabs"),g=H("el-dropdown-menu"),_=H("el-dropdown");return c(),D(_,{trigger:"click",placement:"bottom-end"},{dropdown:x(()=>[u(g,null,{default:x(()=>[u(p,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=k=>a.value=k),stretch:!0,class:"dropdown-tabs",style:ue({width:n.value.length===0?"200px":"330px"})},{default:x(()=>[n.value.length===0?(c(),D(h,{key:0,description:"暂无消息","image-size":60})):(c(),S("span",Sa,[(c(!0),S(ye,null,Ce(n.value,k=>(c(),D(b,{key:k.key,label:`${k.name}(${k.list.length})`,name:`${k.key}`},{default:x(()=>[u(f,{"max-height":"330px"},{default:x(()=>[v("div",Ma,[u(Ca,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[v("span",Ia,[u(d,{value:e.value,max:99},{default:x(()=>[v("span",$a,[u(l,{icon:o(xa)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Gt=be(Va,[["__scopeId","data-v-33dc6db9"]]),Ta={key:0,class:"flex justify-center items-center"},Ht=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(c(),S("div",Ta,[(c(),D(Ee(o(Pe)(Se(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!0)}}),Kt=oe({__name:"fullScreen",setup(t){const e=P(),{toggle:n,isFullscreen:a,Fullscreen:i,ExitFullscreen:s}=ze();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ze(a,l=>{e.value=l?s:i},{immediate:!0}),(l,d)=>{const h=H("IconifyIconOffline");return c(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:d[0]||(d[0]=(...f)=>o(n)&&o(n)(...f))},[u(h,{icon:e.value},null,8,["icon"])])}}}),Xt={width:24,height:24,body:''},Ha={key:0,class:"horizontal-header"},za={class:"select-none"},La={class:"horizontal-header-right"},Aa={class:"check-zh"},Ea={class:"check-en"},Za={class:"el-dropdown-link navbar-bg-hover select-none"},Oa=["src"],Ra={key:0,class:"dark:text-white"},Pa=["title"],Da=oe({__name:"mixNav",setup(t){const e=P(),n=P(null),{t:a,route:i,locale:s,translationCh:l,translationEn:d}=Bt(e),{device:h,logout:f,onPanel:b,resolvePath:p,username:g,userAvatar:_,getDivStyle:k,avatarsStyle:L,getDropdownItemStyle:w,getDropdownItemClass:R}=ze();function A(E){var M,B,F;const W=Ve().wholeMenus,G=Zt(E,W)[0];n.value=Je((M=i.meta)==null?void 0:M.activePath)?(F=(B=dt(G,W))==null?void 0:B.children[0])==null?void 0:F.path:i.meta.activePath}return Ke(()=>{A(i.path)}),Ge(()=>{var E;(E=e.value)==null||E.handleResize()}),Ze(()=>[i.path,Ve().wholeMenus],()=>{A(i.path)}),(E,W)=>{const G=H("el-menu-item"),M=H("el-menu"),B=H("IconifyIconOffline"),F=H("el-dropdown-item"),ce=H("el-dropdown-menu"),ee=H("el-dropdown"),q=et("loading");return o(h)!=="mobile"?ie((c(),S("div",Ha,[u(M,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":n.value},{default:x(()=>[(c(!0),S(ye,null,Ce(o(Ve)().wholeMenus,ae=>(c(),D(G,{key:ae.path,index:o(p)(ae)||ae.redirect},{title:x(()=>[Se(ae.meta.icon)?(c(),S("div",{key:0,class:le(["sub-menu-icon",ae.meta.icon])},[(c(),D(Ee(o(Pe)(ae.meta&&Se(ae.meta.icon)))))],2)):J("",!0),v("div",{style:ue(o(k))},[v("span",za,se(o(je)(ae.meta.title)),1),u(Ht,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",La,[u(Wt,{id:"header-search"}),u(ee,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(ce,{class:"translation"},{default:x(()=>[u(F,{style:ue(o(w)(o(s),"zh")),class:le(["dark:!text-white",o(R)(o(s),"zh")]),onClick:o(l)},{default:x(()=>[ie(v("span",Aa,[u(B,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(F,{style:ue(o(w)(o(s),"en")),class:le(["dark:!text-white",o(R)(o(s),"en")]),onClick:o(d)},{default:x(()=>[ie(v("span",Ea,[u(B,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{id:"header-notice"}),u(ee,{trigger:"click"},{dropdown:x(()=>[u(ce,{class:"logout"},{default:x(()=>[u(F,{onClick:o(f)},{default:x(()=>[u(B,{icon:o(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Za,[v("img",{src:o(_),style:ue(o(L))},null,12,Oa),o(g)?(c(),S("p",Ra,se(o(g)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:W[0]||(W[0]=(...ae)=>o(b)&&o(b)(...ae))},[u(B,{icon:o(_t)},null,8,["icon"])],8,Pa)])])),[[q,o(Ve)().wholeMenus.length===0]]):J("",!0)}}}),ja=be(Da,[["__scopeId","data-v-322f62be"]]),qa=["onClick"],Ba=oe({__name:"breadCrumb",setup(t){const e=Ot(),n=P([]),a=Et(),i=a.options.routes,s=De().multiTags,l=()=>{let h;Object.keys(e.query).length>0?s.forEach(p=>{Qe(e.query,p==null?void 0:p.query)&&(h=Se(p))}):Object.keys(e.params).length>0?s.forEach(p=>{Qe(e.params,p==null?void 0:p.params)&&(h=Se(p))}):h=dt(a.currentRoute.value.path,i);const f=Zt(a.currentRoute.value.name,i,"name"),b=[];f.forEach(p=>{p!=="/"&&b.push(dt(p,i))}),b.push(h),b.forEach((p,g)=>{h!=null&&h.query||h!=null&&h.params||p!=null&&p.children&&p.children.forEach(_=>{var k,L;((k=_==null?void 0:_.meta)==null?void 0:k.title)===((L=p==null?void 0:p.meta)==null?void 0:L.title)&&b.splice(g,1)})}),n.value=b.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},d=h=>{const{redirect:f,name:b,path:p}=h;f?a.push(f):b?h.query?a.push({name:b,query:h.query}):h.params?a.push({name:b,params:h.params}):a.push({name:b}):a.push({path:p})};return Ke(()=>{l()}),Ze(()=>e.path,()=>{l()},{deep:!0}),(h,f)=>{const b=H("el-breadcrumb-item"),p=H("el-breadcrumb");return c(),D(p,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[u(Dn,{name:"breadcrumb"},{default:x(()=>[(c(!0),S(ye,null,Ce(n.value,g=>(c(),D(b,{key:g.path,class:"!inline !items-stretch"},{default:x(()=>[v("a",{onClick:We(_=>d(g),["prevent"])},se(o(je)(g.meta.title)),9,qa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),yn={width:24,height:24,body:''},Fa={width:24,height:24,body:''},Na=["title"],Ua=oe({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=e,i=()=>{a("toggleClick")};return(s,l)=>{const d=H("IconifyIconOffline");return c(),S("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:i},[u(d,{icon:n.isActive?o(yn):o(Fa),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Na)}}}),Wa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Ga={key:3,class:"vertical-header-right"},Ka={class:"check-en"},Xa={class:"el-dropdown-link navbar-bg-hover select-none"},Ya=["src"],Ja={key:0,class:"dark:text-white"},Qa=["title"],el=oe({__name:"navbar",setup(t){const{layout:e,device:n,logout:a,onPanel:i,pureApp:s,username:l,userAvatar:d,avatarsStyle:h,toggleSideBar:f,getDropdownItemStyle:b,getDropdownItemClass:p}=ze(),{t:g,locale:_,translationCh:k,translationEn:L}=Bt();return(w,R)=>{const A=H("IconifyIconOffline"),E=H("el-dropdown-item"),W=H("el-dropdown-menu"),G=H("el-dropdown");return c(),S("div",Wa,[o(n)==="mobile"?(c(),D(Ua,{key:0,class:"hamburger-container","is-active":o(s).sidebar.opened,onToggleClick:o(f)},null,8,["is-active","onToggleClick"])):J("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(c(),D(Ba,{key:1,class:"breadcrumb-container"})):J("",!0),o(e)==="mix"?(c(),D(ja,{key:2})):J("",!0),o(e)==="vertical"?(c(),S("div",Ga,[u(Wt,{id:"header-search"}),u(G,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(W,{class:"translation"},{default:x(()=>[u(E,{style:ue(o(b)(o(_),"zh")),class:le(["dark:!text-white",o(p)(o(_),"zh")]),onClick:o(k)},{default:x(()=>[ie(u(A,{class:"check-zh",icon:o(tt)},null,8,["icon"]),[[xe,o(_)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(E,{style:ue(o(b)(o(_),"en")),class:le(["dark:!text-white",o(p)(o(_),"en")]),onClick:o(L)},{default:x(()=>[ie(v("span",Ka,[u(A,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(_)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{id:"header-notice"}),u(G,{trigger:"click"},{dropdown:x(()=>[u(W,{class:"logout"},{default:x(()=>[u(E,{onClick:o(a)},{default:x(()=>[u(A,{icon:o(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Xa,[v("img",{src:o(d),style:ue(o(h))},null,12,Ya),o(l)?(c(),S("p",Ja,se(o(l)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.hssystemSet"),onClick:R[0]||(R[0]=(...M)=>o(i)&&o(i)(...M))},[u(A,{icon:o(_t)},null,8,["icon"])],8,Qa)])):J("",!0)])}}}),tl=be(el,[["__scopeId","data-v-8aa88393"]]),nl={width:24,height:24,body:''},ol={width:24,height:24,body:''},al={width:24,height:24,body:''},ll={width:24,height:24,body:''};function sl(){var ce,ee;const t=Ot(),e=Et(),n=At(),a=Ut(),i=P(0),s=P(0),l=P(0),d=P(!1),h=P(-1),f=P({}),b=P(!1),p=P(((ce=Be().getItem(`${st()}configure`))==null?void 0:ce.showModel)||"smart"),g=(ee=P(Be().getItem(`${st()}configure`).hideTabs))!=null?ee:P("false"),_=j(()=>De().multiTags),k=Rt([{icon:io,text:Re("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:pt,text:Re("buttons.hscloseCurrentTab"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:ll,text:Re("buttons.hscloseLeftTabs"),divided:!0,disabled:!(_.value.length>1),show:!0},{icon:al,text:Re("buttons.hscloseRightTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:ol,text:Re("buttons.hscloseOtherTabs"),divided:!0,disabled:!(_.value.length>2),show:!0},{icon:nl,text:Re("buttons.hscloseAllTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:hn,text:Re("buttons.hscontentFullScreen"),divided:!0,disabled:!1,show:!0}]);function L(q,ae,pe){var we,Le;return jn((we=t==null?void 0:t.meta)==null?void 0:we.showLink)&&((Le=t==null?void 0:t.meta)==null?void 0:Le.showLink)===!1?Object.keys(t.query).length>0?Qe(t.query,q.query)?ae:pe:Qe(t.params,q.params)?ae:pe:t.path===q.path?ae:pe}const w=j(()=>(q,ae)=>{if(ae!==0)return L(q,!0,!1)}),R=j(()=>q=>L(q,"is-active","")),A=j(()=>q=>L(q,"schedule-active","")),E=j(()=>({transform:`translateX(${l.value}px)`,transition:b.value?"none":"transform 0.5s ease-in-out"})),W=j(()=>({left:s.value+"px",top:i.value+"px"})),G=()=>{d.value=!1};function M(q){if(q&&(h.value=q),o(p)==="smart"){if(ut(n.refs["schedule"+q][0],"schedule-active"))return;Ne(!0,"schedule-in",n.refs["schedule"+q][0]),Ne(!1,"schedule-out",n.refs["schedule"+q][0])}else{if(ut(n.refs["dynamic"+q][0],"is-active"))return;Ne(!0,"card-in",n.refs["dynamic"+q][0]),Ne(!1,"card-out",n.refs["dynamic"+q][0])}}function B(q){if(h.value=-1,o(p)==="smart"){if(ut(n.refs["schedule"+q][0],"schedule-active"))return;Ne(!1,"schedule-in",n.refs["schedule"+q][0]),Ne(!0,"schedule-out",n.refs["schedule"+q][0])}else{if(ut(n.refs["dynamic"+q][0],"is-active"))return;Ne(!1,"card-in",n.refs["dynamic"+q][0]),Ne(!0,"card-out",n.refs["dynamic"+q][0])}}function F(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ke(()=>{if(!p.value){const q=Be().getItem(`${st()}configure`);q.showModel="card",Be().setItem(`${st()}configure`,q)}}),{Close:pt,route:t,router:e,visible:d,showTags:g,instance:n,multiTags:_,showModel:p,tagsViews:k,buttonTop:i,buttonLeft:s,translateX:l,pureSetting:a,activeIndex:h,getTabStyle:E,isScrolling:b,iconIsActive:w,linkIsActive:R,currentSelect:f,scheduleIsActive:A,getContextMenuStyle:W,$t:Re,closeMenu:G,onMounted:Ke,onMouseenter:M,onMouseleave:B,transformI18n:je,onContentFullScreen:F}}const rl={width:24,height:24,body:''},zt={width:24,height:24,body:''};var il={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const cl={class:"arrow-left"},ul=["onContextmenu","onMouseenter","onMouseleave","onClick"],dl={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},hl=["onClick"],fl={class:"arrow-right"},pl=["onClick"],ml={class:"arrow-down"},vl=oe({__name:"index",setup(t){var Q;const{Close:e,route:n,router:a,visible:i,showTags:s,instance:l,multiTags:d,tagsViews:h,buttonTop:f,buttonLeft:b,showModel:p,translateX:g,pureSetting:_,activeIndex:k,getTabStyle:L,isScrolling:w,iconIsActive:R,linkIsActive:A,currentSelect:E,scheduleIsActive:W,getContextMenuStyle:G,closeMenu:M,onMounted:B,onMouseenter:F,onMouseleave:ce,transformI18n:ee,onContentFullScreen:q}=sl(),ae=P(),pe=P(),we=P(),Le=P(),Ie=P(!1),Te=(Q=ht())==null?void 0:Q.path,{VITE_HIDE_HOME:r}=il,m=()=>at(this,null,function*(){yield Ge();const I=d.value.findIndex(Z=>Je(n.query)?Je(n.params)?n.path===Z.path:Qe(n.params,Z.params):Qe(n.query,Z.query));$(I)}),$=I=>at(this,null,function*(){var ve,He;yield Ge();const Z=10;if(!l.refs["dynamic"+I])return;const O=l.refs["dynamic"+I][0],Y=O==null?void 0:O.offsetLeft,he=O==null?void 0:O.offsetWidth,N=we.value?(ve=we.value)==null?void 0:ve.offsetWidth:0,U=ae.value?(He=ae.value)==null?void 0:He.offsetWidth:0;N<=U?Ie.value=!0:Ie.value=!1,U-g.value&&Y+he<-g.value+N?g.value=Math.min(0,N-he-Y-Z):g.value=-(Y-(N-Z-he))}),X=I=>{var Y;const Z=we.value?(Y=we.value)==null?void 0:Y.offsetWidth:0,O=ae.value?ae.value.offsetWidth:0;I>0?g.value=Math.min(0,g.value+I):Z=-(O-Z)&&(g.value=Math.max(g.value+I,Z-O)):g.value=0,w.value=!1},re=I=>{w.value=!0;const Z=Math.abs(I.deltaX)+Math.abs(I.deltaY);let O=0;I.deltaX<0?O=Z>0?Z:100:O=Z>0?-Z:-100,ne(O)},ne=I=>{let O=Math.abs(I);const Y=()=>{const he=Math.sign(I)*Math.min(20,O);X(he),O-=Math.abs(he),O>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function y(I){const Z=d.value.some(Y=>Y.path===I);function O(Y,he){Z||Y.forEach(N=>{N.path===he?De().handleTags("push",{path:he,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&O(N.children,he)})}O(a.options.routes,I)}function C(){const{fullPath:I,query:Z}=o(n);a.replace({path:"/redirect"+I,query:Z}),It(n,"refresh")}function T(I,Z,O){var U,ve,He,Jt;const Y=d.value.findIndex(Ae=>{if(Ae.query){if(Ae.path===I.path)return Ae.query===I.query}else if(Ae.params){if(Ae.path===I.path)return Ae.params===I.params}else return Ae.path===I.path}),he=(Ae,$n,Sn)=>{Sn?De().handleTags("equal",[r==="false"?Bn[0]:Se(ht()),I]):De().handleTags("splice","",{startIndex:Ae,length:$n}),m()};O==="other"?he(1,1,!0):O==="left"?he(1,Y-1):O==="right"?he(Y+1,d.value.length):he(Y,1);const N=De().handleTags("slice");if(Z===n.path){if(O==="left")return;(U=N[0])!=null&&U.query?a.push({name:N[0].name,query:N[0].query}):(ve=N[0])!=null&&ve.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}else{if(!d.value.length||d.value.some(Ae=>Ae.path===n.path))return;(He=N[0])!=null&&He.query?a.push({name:N[0].name,query:N[0].query}):(Jt=N[0])!=null&&Jt.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}}function K(I,Z){T(I,I.path,Z),It(n)}function V(I,Z,O){if(Z&&Z.disabled)return;let Y;switch(O?Y={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:Y={path:n.path,meta:n.meta},I){case 0:C();break;case 1:K(Y);break;case 2:K(Y,"left");break;case 3:K(Y,"right");break;case 4:K(Y,"other");break;case 5:De().handleTags("splice","",{startIndex:1,length:d.value.length}),a.push(Te),It(n);break;case 6:q(),setTimeout(()=>{_.hiddenSideBar?(h[6].icon=qn,h[6].text=Re("buttons.hscontentExitFullScreen")):(h[6].icon=hn,h[6].text=Re("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{ke(n.fullPath,n.query)})}function z(I){const{key:Z,item:O}=I;V(Z,O)}function de(I,Z){M(),V(I,Z,E.value)}function me(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].show=I})}function Fe(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].disabled=I})}function ke(I,Z={},O=!1){const Y=d.value,he=d.value.length;let N=-1;Je(Z)?N=Y.findIndex(U=>U.path===I):N=Y.findIndex(U=>Qe(U.query,Z)),me(!0),O&&(h[0].show=!0),N===1&&he!==2?(h[2].show=!1,Array.of(1,3,4,5).forEach(U=>{h[U].disabled=!1}),h[2].disabled=!0):N===1&&he===2?(Fe(!1),Array.of(2,3,4).forEach(U=>{h[U].show=!1,h[U].disabled=!0})):he-1===N&&N!==0?(h[3].show=!1,Array.of(1,2,4,5).forEach(U=>{h[U].disabled=!1}),h[3].disabled=!0):N===0||I===`/redirect${Te}`?Fe(!0):Fe(!1)}function ot(I,Z){M(),I.path===Te?(me(!1),h[0].show=!0):n.path!==I.path&&n.name!==I.name?(h[0].show=!1,ke(I.path,I.query)):d.value.length===2&&n.path!==I.path?(me(!0),h[4].show=!1):n.path===I.path&&ke(I.path,I.query,!0),E.value=I;const O=140,Y=o(pe).getBoundingClientRect().left,N=o(pe).offsetWidth-O,U=Z.clientX-Y+5;U>N?b.value=N:b.value=U,Ut().hiddenSideBar?f.value=Z.clientY:f.value=Z.clientY-40,Ge(()=>{i.value=!0})}function wt(I){const{name:Z,path:O}=I;Z?I.query?a.push({name:Z,query:I.query}):I.params?a.push({name:Z,params:I.params}):a.push({name:Z}):a.push({path:O})}return fn(Le,M,{detectIframe:!0}),Ze(n,()=>{k.value=-1,m()}),B(()=>{l&&(ke(n.fullPath),Me.on("tagViewsChange",I=>{o(s)!==I&&(s.value=I)}),Me.on("tagViewsShowModel",I=>{p.value=I}),Me.on("changLayoutRoute",I=>{y(I),setTimeout(()=>{ke(I)})}),mt(we,m),un().then(()=>m()))}),Pt(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),(I,Z)=>{const O=H("IconifyIconOffline"),Y=H("el-dropdown-item"),he=H("el-dropdown-menu"),N=H("el-dropdown");return o(s)?J("",!0):(c(),S("div",{key:0,ref_key:"containerDom",ref:pe,class:"tags-view"},[ie(v("span",cl,[u(O,{icon:o(zt),onClick:Z[0]||(Z[0]=U=>X(200))},null,8,["icon"])],512),[[xe,Ie.value]]),v("div",{ref_key:"scrollbarDom",ref:we,class:"scroll-container",onWheel:We(re,["prevent"])},[v("div",{ref_key:"tabDom",ref:ae,class:"tab select-none",style:ue(o(L))},[(c(!0),S(ye,null,Ce(o(d),(U,ve)=>(c(),S("div",{ref_for:!0,ref:"dynamic"+ve,key:ve,class:le(["scroll-item is-closable",o(A)(U)]),onContextmenu:We(He=>ot(U,He),["prevent"]),onMouseenter:We(He=>o(F)(ve),["prevent"]),onMouseleave:We(He=>o(ce)(ve),["prevent"]),onClick:He=>wt(U)},[v("span",dl,se(o(ee)(U.meta.title)),1),o(R)(U,ve)||ve===o(k)&&ve!==0?(c(),S("span",{key:0,class:"el-icon-close",onClick:We(He=>K(U),["stop"])},[u(O,{icon:o(e)},null,8,["icon"])],8,hl)):J("",!0),o(p)!=="card"?(c(),S("span",{key:1,ref_for:!0,ref:"schedule"+ve,class:le([o(W)(U)])},null,2)):J("",!0)],42,ul))),128))],4)],544),ie(v("span",fl,[u(O,{icon:o(Tt),onClick:Z[1]||(Z[1]=U=>X(-200))},null,8,["icon"])],512),[[xe,Ie.value]]),u(Dt,{name:"el-zoom-in-top"},{default:x(()=>[ie((c(),S("ul",{ref_key:"contextmenuRef",ref:Le,key:Math.random(),style:ue(o(G)),class:"contextmenu"},[(c(!0),S(ye,null,Ce(o(h).slice(0,6),(U,ve)=>(c(),S("div",{key:ve,style:{display:"flex","align-items":"center"}},[U.show?(c(),S("li",{key:0,onClick:He=>de(ve,U)},[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)],8,pl)):J("",!0)]))),128))],4)),[[xe,o(i)]])]),_:1}),u(N,{trigger:"click",placement:"bottom-end",onCommand:z},{dropdown:x(()=>[u(he,null,{default:x(()=>[(c(!0),S(ye,null,Ce(o(h),(U,ve)=>(c(),D(Y,{key:ve,command:{key:ve,item:U},divided:U.divided,disabled:U.disabled},{default:x(()=>[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[v("span",ml,[u(O,{icon:o(rl),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),_l=be(vl,[["__scopeId","data-v-718536cb"]]),bn=t=>(jt("data-v-eafb8ae3"),t=t(),qt(),t),gl={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},yl={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},bl=bn(()=>v("span",{class:"ml-10"},"赞助商:",-1)),wl=bn(()=>v("a",{class:"logo",href:"https://ai-tools.cn/resume/start",target:"_blank",rel:"sponsored noopener"}," 二猫 AI 简历 ",-1)),kl=oe({__name:"index",setup(t){const e=Ye("Title");return(n,a)=>(c(),S("footer",gl,[_e(" Copyright © 2020-present "),v("a",yl," "+se(o(e)),1),bl,wl]))}}),rn=be(kl,[["__scopeId","data-v-eafb8ae3"]]),lt=new Map,Cl=()=>{function t(a,i){lt.set(a,i)}function e(a){return a?lt.get(a):[...lt.entries()]}function n(a){lt.delete(a)}return{setMap:t,getMap:e,delMap:n,MAP:lt}},xl={class:"w-full h-full"},Il=oe({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=St([]),{setMap:a,getMap:i,MAP:s,delMap:l}=Cl(),d=j(()=>{var f,b;return Ye().KeepAlive&&((f=e.currRoute.meta)==null?void 0:f.keepAlive)&&!!((b=e.currRoute.meta)!=null&&b.frameSrc)}),h=j(()=>!d.value&&e.currComp);return Ze(De().multiTags,f=>{if(!Array.isArray(f)||!d.value)return;if(f.filter(p=>{var g;return(g=p.meta)==null?void 0:g.frameSrc}).lengthg.path===p)||(l(p),n.value=i())}),Ze(()=>e.currRoute.fullPath,f=>{const p=De().multiTags.filter(g=>{var _;return(_=g.meta)==null?void 0:_.frameSrc});d.value&&p.length!==s.size&&([...s.keys()].find(_=>f===_)||a(f,e.currComp)),s.size>0&&(n.value=i())},{immediate:!0}),(f,b)=>(c(),S(ye,null,[(c(!0),S(ye,null,Ce(n.value,([p,g])=>{var _;return ie((c(),S("div",{key:p,class:"w-full h-full"},[ft(f.$slots,"default",{fullPath:p,Comp:g,frameInfo:{frameSrc:(_=f.currRoute.meta)==null?void 0:_.frameSrc,fullPath:p}})],512)),[[xe,p===e.currRoute.fullPath]])}),128)),ie(v("div",xl,[ft(f.$slots,"default",{Comp:h.value,fullPath:e.currRoute.fullPath})],512),[[xe,!d.value]])],64))}}),$l={class:"grow"},Sl={key:1,class:"grow"},Ml=oe({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=vt(),i=j(()=>a==null?void 0:a.KeepAlive),s=j(()=>_=>_.meta.transition),l=j(()=>n==null?void 0:n.configure.hideTabs),d=j(()=>n==null?void 0:n.configure.hideFooter),h=j(()=>n==null?void 0:n.configure.stretch),f=j(()=>(n==null?void 0:n.layout.layout)==="vertical"),b=j(()=>Mt(h.value)?h.value+"px":h.value?"1440px":"100%"),p=j(()=>[l.value&&f?"padding-top: 48px;":"",!l.value&&f?"padding-top: 81px;":"",l.value&&!f.value?"padding-top: 48px;":"",!l.value&&!f.value?"padding-top: 81px;":"",e.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=oe({props:{route:{type:void 0,required:!0}},render(){var w,R,A;const _=((w=s.value(this.route))==null?void 0:w.name)||"fade-transform",k=(R=s.value(this.route))==null?void 0:R.enterTransition,L=(A=s.value(this.route))==null?void 0:A.leaveTransition;return rt(Dt,{name:k?"pure-classes-transition":_,enterActiveClass:k?`animate__animated ${k}`:void 0,leaveActiveClass:L?`animate__animated ${L}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,k)=>{const L=H("el-backtop"),w=H("el-scrollbar"),R=H("router-view");return c(),S("section",{class:le([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ue(p.value)},[u(R,null,{default:x(({Component:A,route:E})=>[u(Il,{currComp:A,currRoute:E},{default:x(({Comp:W,fullPath:G,frameInfo:M})=>[e.fixedHeader?(c(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":b.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:x(()=>[u(L,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:x(()=>[u(o(vn))]),_:1}),v("div",$l,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(tn,{key:0,include:o(Ve)().cachePageList},[(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?J("",!0):(c(),D(rn,{key:0}))]),_:2},1032,["wrap-style"])):(c(),S("div",Sl,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(tn,{key:0,include:o(Ve)().cachePageList},[(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!e.fixedHeader?(c(),D(rn,{key:0})):J("",!0)],6)}}}),cn=be(Ml,[["__scopeId","data-v-918fa3f0"]]),wn=t=>(jt("data-v-af01f247"),t=t(),qt(),t),Vl=wn(()=>v("div",{class:"right-panel-background"},null,-1)),Tl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Hl=wn(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),zl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Ll=oe({__name:"index",setup(t){const e=P(null),n=P(!1),a=j(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-none","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{onReset:i}=Nt();return fn(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Ke(()=>{Me.on("openPanel",()=>{n.value=!0})}),Pt(()=>{Me.off("openPanel")}),(s,l)=>{const d=H("IconifyIconOffline"),h=H("el-scrollbar"),f=H("el-button"),b=et("tippy");return c(),S("div",{class:le({show:n.value})},[Vl,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Tl,[Hl,ie((c(),S("span",{class:le(a.value)},[u(d,{class:"dark:text-white",width:"18px",height:"18px",icon:o(pt),onClick:l[0]||(l[0]=p=>n.value=!n.value)},null,8,["icon"])],2)),[[b,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),u(h,null,{default:x(()=>[ft(s.$slots,"default",{},void 0,!0)]),_:3}),v("div",zl,[ie((c(),D(f,{type:"danger",text:"",bg:"",onClick:o(i)},{default:x(()=>[_e(" 清空缓存 ")]),_:1},8,["onClick"])),[[b,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Al=be(Ll,[["__scopeId","data-v-af01f247"]]),El={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Zl=v("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),Ol=v("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),Rl=[Zl,Ol];function Pl(t,e){return c(),S("svg",El,[...Rl])}const Dl={render:Pl},$e=t=>(jt("data-v-af47f972"),t=t(),qt(),t),jl={class:"p-5"},ql={class:"theme-color"},Bl=["onClick"],Fl={class:"pure-theme"},Nl=$e(()=>v("div",null,null,-1)),Ul=$e(()=>v("div",null,null,-1)),Wl=[Nl,Ul],Gl=$e(()=>v("div",null,null,-1)),Kl=$e(()=>v("div",null,null,-1)),Xl=[Gl,Kl],Yl=$e(()=>v("div",null,null,-1)),Jl=$e(()=>v("div",null,null,-1)),Ql=[Yl,Jl],es={key:0},ts=$e(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),ns=$e(()=>v("p",{class:"mt-5 font-medium text-sm dark:text-white"},"界面显示",-1)),os={class:"setting"},as=$e(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),ls=$e(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),ss=$e(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),rs=$e(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),is=$e(()=>v("span",{class:"dark:text-white"},"Logo",-1)),cs=$e(()=>v("span",{class:"dark:text-white"},"页签持久化",-1)),us=oe({__name:"index",setup(t){var y,C,T,K;const{device:e}=ze(),{isDark:n}=pn(),{$storage:a}=vt(),i=P(),s=P(),l=P(),{dataTheme:d,overallStyle:h,layoutTheme:f,themeColors:b,toggleClass:p,dataThemeChange:g,setLayoutThemeColor:_}=Nt();if(o(f)){const V=o(f).layout,z=o(f).theme;no({scopeName:`layout-theme-${z}`}),m(V)}const k=P((C=(y=a.configure)==null?void 0:y.showModel)!=null?C:"smart"),L=P((K=(T=a.configure)==null?void 0:T.showLogo)!=null?K:!0),w=Rt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,hideFooter:a.configure.hideFooter,multiTagsCache:a.configure.multiTagsCache,stretch:a.configure.stretch}),R=j(()=>V=>({background:V})),A=j(()=>V=>!(V==="light"&&n.value));function E(V,z){const de=a.configure;de[V]=z,a.configure=de}const W=V=>{const z=document.querySelector("html");p(w.greyVal,"html-grey",z),E("grey",V)},G=V=>{const z=document.querySelector("html");p(w.weakVal,"html-weakness",z),E("weak",V)},M=()=>{const V=w.tabsVal;E("hideTabs",V),Me.emit("tagViewsChange",V)},B=()=>{const V=w.hideFooter;E("hideFooter",V)},F=()=>{const V=w.multiTagsCache;E("multiTagsCache",V),De().multiTagsCacheChange(V)};function ce({option:V}){const{value:z}=V;k.value=z,E("showModel",z),Me.emit("tagViewsShowModel",z)}function ee(){o(L)?E("showLogo",!0):E("showLogo",!1),Me.emit("logoChange",o(L))}function q(V){V.forEach(z=>{p(!1,"is-select",o(z))})}const ae=[{label:"固定",tip:"紧凑页面,轻松找到所需信息",value:"fixed"},{label:"自定义",tip:"最小1280、最大1600",value:"custom"}],pe=V=>{w.stretch=V,E("stretch",V)},we=({option:V})=>{const{value:z}=V;pe(z==="custom"?1440:!1)},Le=j(()=>V=>V===f.value.theme&&f.value.theme!=="light"?"#fff":V===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent"),Ie=j(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),Te=j(()=>[{label:"浅色",icon:oo,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"深色",icon:ao,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"自动",icon:Dl,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),r=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function m(V){var z,de,me,Fe,ke;f.value.layout=V,window.document.body.setAttribute("layout",V),a.layout={layout:V,theme:f.value.theme,darkMode:(z=a.layout)==null?void 0:z.darkMode,sidebarStatus:(de=a.layout)==null?void 0:de.sidebarStatus,epThemeColor:(me=a.layout)==null?void 0:me.epThemeColor,themeColor:(Fe=a.layout)==null?void 0:Fe.themeColor,overallStyle:(ke=a.layout)==null?void 0:ke.overallStyle},Xe().setLayout(V)}Ze(a,({layout:V})=>{switch(V.layout){case"vertical":p(!0,"is-select",o(s)),nt(q([l]),50),nt(q([i]),50);break;case"horizontal":p(!0,"is-select",o(l)),nt(q([s]),50),nt(q([i]),50);break;case"mix":p(!0,"is-select",o(i)),nt(q([s]),50),nt(q([l]),50);break}});const $=window.matchMedia("(prefers-color-scheme: dark)");function X(){h.value==="system"&&($.matches?d.value=!0:d.value=!1,g(h.value))}function re(){$.removeEventListener("change",X)}function ne(){X(),re(),$.addEventListener("change",X)}return mn(()=>{Ge(()=>{var V,z;ne(),w.greyVal&&((V=document.querySelector("html"))==null||V.classList.add("html-grey")),w.weakVal&&((z=document.querySelector("html"))==null||z.classList.add("html-weakness")),w.tabsVal&&M(),w.hideFooter&&B()})}),Fn(()=>re),(V,z)=>{const de=H("IconifyIconOffline"),me=H("el-icon"),Fe=H("el-input-number"),ke=H("el-switch"),ot=et("tippy"),wt=et("ripple");return c(),D(Al,null,{default:x(()=>[v("div",jl,[v("p",{class:le(Ie.value)},"整体风格",2),u(o($t),{class:"select-none",modelValue:o(h)==="system"?2:o(d)?1:0,options:Te.value,onChange:z[0]||(z[0]=Q=>{Q.index===1&&Q.index!==2?d.value=!0:d.value=!1,h.value=Q.option.theme,o(g)(Q.option.theme),Q.index===2&&ne()})},null,8,["modelValue","options"]),v("p",{class:le(["mt-5",Ie.value])},"主题色",2),v("ul",ql,[(c(!0),S(ye,null,Ce(o(b),(Q,I)=>ie((c(),S("li",{key:I,style:ue(R.value(Q.color)),onClick:Z=>o(_)(Q.themeColor)},[u(me,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Le.value(Q.themeColor)},{default:x(()=>[u(de,{icon:o(tt)},null,8,["icon"])]),_:2},1032,["color"])],12,Bl)),[[xe,A.value(Q.themeColor)]])),128))]),v("p",{class:le(["mt-5",Ie.value])},"导航模式",2),v("ul",Fl,[ie((c(),S("li",{ref_key:"verticalRef",ref:s,class:le(o(f).layout==="vertical"?"is-select":""),onClick:z[1]||(z[1]=Q=>m("vertical"))},Wl,2)),[[ot,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?ie((c(),S("li",{key:0,ref_key:"horizontalRef",ref:l,class:le(o(f).layout==="horizontal"?"is-select":""),onClick:z[2]||(z[2]=Q=>m("horizontal"))},Xl,2)),[[ot,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):J("",!0),o(e)!=="mobile"?ie((c(),S("li",{key:1,ref_key:"mixRef",ref:i,class:le(o(f).layout==="mix"?"is-select":""),onClick:z[3]||(z[3]=Q=>m("mix"))},Ql,2)),[[ot,{content:"混合菜单,灵活多变",zIndex:41e3}]]):J("",!0)]),o(e)!=="mobile"?(c(),S("span",es,[v("p",{class:le(["mt-5",Ie.value])},"页宽",2),u(o($t),{class:"mb-2 select-none",modelValue:o(Mt)(w.stretch)?1:0,options:ae,onChange:we},null,8,["modelValue"]),o(Mt)(w.stretch)?(c(),D(Fe,{key:0,modelValue:w.stretch,"onUpdate:modelValue":z[4]||(z[4]=Q=>w.stretch=Q),min:1280,max:1600,"controls-position":"right",onChange:z[5]||(z[5]=Q=>pe(Q))},null,8,["modelValue"])):ie((c(),S("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-gray-100",onClick:z[6]||(z[6]=Q=>pe(!w.stretch))},[v("div",{class:le(["flex-bc transition-all duration-300",[w.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[u(de,{icon:w.stretch?o(Tt):o(zt),height:"20"},null,8,["icon"]),ts,u(de,{icon:w.stretch?o(zt):o(Tt),height:"20"},null,8,["icon"])],2)])),[[wt,{class:"text-gray-300"}]])])):J("",!0),v("p",{class:le(["mt-4",Ie.value])},"页签风格",2),u(o($t),{class:"select-none",modelValue:k.value==="smart"?0:1,options:r,onChange:ce},null,8,["modelValue"]),ns,v("ul",os,[v("li",null,[as,u(ke,{modelValue:w.greyVal,"onUpdate:modelValue":z[7]||(z[7]=Q=>w.greyVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),v("li",null,[ls,u(ke,{modelValue:w.weakVal,"onUpdate:modelValue":z[8]||(z[8]=Q=>w.weakVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:G},null,8,["modelValue"])]),v("li",null,[ss,u(ke,{modelValue:w.tabsVal,"onUpdate:modelValue":z[9]||(z[9]=Q=>w.tabsVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),v("li",null,[rs,u(ke,{modelValue:w.hideFooter,"onUpdate:modelValue":z[10]||(z[10]=Q=>w.hideFooter=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),v("li",null,[is,u(ke,{modelValue:L.value,"onUpdate:modelValue":z[11]||(z[11]=Q=>L.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:ee},null,8,["modelValue"])]),v("li",null,[cs,u(ke,{modelValue:w.multiTagsCache,"onUpdate:modelValue":z[12]||(z[12]=Q=>w.multiTagsCache=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])])])])]),_:1})}}}),ds=be(us,[["__scopeId","data-v-af47f972"]]),hs=["src"],fs={class:"sidebar-title"},ps=["src"],ms={class:"sidebar-title"},vs=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=ze();return(i,s)=>{const l=H("router-link");return c(),S("div",{class:le(["sidebar-logo-container",{collapses:e.collapse}])},[u(Dt,{name:"sidebarLogoFade"},{default:x(()=>{var d,h,f,b;return[e.collapse?(c(),D(l,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:(h=(d=o(ht)())==null?void 0:d.path)!=null?h:"/"},{default:x(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,hs),v("span",fs,se(o(n)),1)]),_:1},8,["title","to"])):(c(),D(l,{key:"expand",title:o(n),class:"sidebar-logo-link",to:(b=(f=o(ht)())==null?void 0:f.path)!=null?b:"/"},{default:x(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,ps),v("span",ms,se(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),_s=be(vs,[["__scopeId","data-v-1e860333"]]);var ct={exports:{}},kn={},gs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Lt={exports:{}};typeof Object.create=="function"?Lt.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Lt.exports=function(e,n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e};var ys=Lt.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!W(r)){for(var m=[],$=0;$=re)return C;switch(C){case"%s":return String(X[$++]);case"%d":return Number(X[$++]);case"%j":try{return JSON.stringify(X[$++])}catch(T){return"[Circular]"}default:return C}}),y=X[$];$=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),w(m)?$.showHidden=m:m&&t._extend($,m),M($.showHidden)&&($.showHidden=!1),M($.depth)&&($.depth=2),M($.colors)&&($.colors=!1),M($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=l),f($,r,$.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(r,m){var $=s.styles[m];return $?"\x1B["+s.colors[$][0]+"m"+r+"\x1B["+s.colors[$][1]+"m":r}function d(r,m){return r}function h(r){var m={};return r.forEach(function($,X){m[$]=!0}),m}function f(r,m,$){if(r.customInspect&&m&&q(m.inspect)&&m.inspect!==t.inspect&&!(m.constructor&&m.constructor.prototype===m)){var X=m.inspect($,r);return W(X)||(X=f(r,X,$)),X}var re=b(r,m);if(re)return re;var ne=Object.keys(m),y=h(ne);if(r.showHidden&&(ne=Object.getOwnPropertyNames(m)),ee(m)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return p(m);if(ne.length===0){if(q(m)){var C=m.name?": "+m.name:"";return r.stylize("[Function"+C+"]","special")}if(B(m))return r.stylize(RegExp.prototype.toString.call(m),"regexp");if(ce(m))return r.stylize(Date.prototype.toString.call(m),"date");if(ee(m))return p(m)}var T="",K=!1,V=["{","}"];if(L(m)&&(K=!0,V=["[","]"]),q(m)){var z=m.name?": "+m.name:"";T=" [Function"+z+"]"}if(B(m)&&(T=" "+RegExp.prototype.toString.call(m)),ce(m)&&(T=" "+Date.prototype.toUTCString.call(m)),ee(m)&&(T=" "+p(m)),ne.length===0&&(!K||m.length==0))return V[0]+T+V[1];if($<0)return B(m)?r.stylize(RegExp.prototype.toString.call(m),"regexp"):r.stylize("[Object]","special");r.seen.push(m);var de;return K?de=g(r,m,$,y,ne):de=ne.map(function(me){return _(r,m,$,y,me,K)}),r.seen.pop(),k(de,T,V)}function b(r,m){if(M(m))return r.stylize("undefined","undefined");if(W(m)){var $="'"+JSON.stringify(m).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize($,"string")}if(E(m))return r.stylize(""+m,"number");if(w(m))return r.stylize(""+m,"boolean");if(R(m))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,m,$,X,re){for(var ne=[],y=0,C=m.length;y-1&&(ne?C=C.split(`
`).map(function(K){return" "+K}).join(`
`).substr(2):C=`
@@ -7,4 +7,4 @@ var Sn=Object.defineProperty,Mn=Object.defineProperties;var Vn=Object.getOwnProp
`))):C=r.stylize("[Circular]","special")),M(y)){if(ne&&re.match(/^\d+$/))return C;y=JSON.stringify(""+re),y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(y=y.substr(1,y.length-2),y=r.stylize(y,"name")):(y=y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),y=r.stylize(y,"string"))}return y+": "+C}function k(r,m,$){var X=r.reduce(function(re,ne){return ne.indexOf(`
`)>=0,re+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?$[0]+(m===""?"":m+`
`)+" "+r.join(`,
- `)+" "+$[1]:$[0]+m+" "+r.join(", ")+" "+$[1]}function L(r){return Array.isArray(r)}t.isArray=L;function w(r){return typeof r=="boolean"}t.isBoolean=w;function R(r){return r===null}t.isNull=R;function A(r){return r==null}t.isNullOrUndefined=A;function E(r){return typeof r=="number"}t.isNumber=E;function W(r){return typeof r=="string"}t.isString=W;function G(r){return typeof r=="symbol"}t.isSymbol=G;function M(r){return r===void 0}t.isUndefined=M;function B(r){return F(r)&&pe(r)==="[object RegExp]"}t.isRegExp=B;function F(r){return typeof r=="object"&&r!==null}t.isObject=F;function ce(r){return F(r)&&pe(r)==="[object Date]"}t.isDate=ce;function ee(r){return F(r)&&(pe(r)==="[object Error]"||r instanceof Error)}t.isError=ee;function q(r){return typeof r=="function"}t.isFunction=q;function ae(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=ae,t.isBuffer=ms;function pe(r){return Object.prototype.toString.call(r)}function we(r){return r<10?"0"+r.toString(10):r.toString(10)}var Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ie(){var r=new Date,m=[we(r.getHours()),we(r.getMinutes()),we(r.getSeconds())].join(":");return[r.getDate(),Le[r.getMonth()],m].join(" ")}t.log=function(){console.log("%s - %s",Ie(),t.format.apply(t,arguments))},t.inherits=vs,t._extend=function(r,m){if(!m||!F(m))return r;for(var $=Object.keys(m),X=$.length;X--;)r[$[X]]=m[$[X]];return r};function Te(r,m){return Object.prototype.hasOwnProperty.call(r,m)}})(wn);var _s={},gs=process.platform==="win32",Oe=wn;function gt(t,e){for(var n=[],a=0;a=0&&!t[a];a--);return n===0&&a===e?t:n>a?[]:t.slice(n,a+1)}var kn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,ys=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,fe={};function yt(t){var e=kn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=ys.exec(a),s=i[1],l=i[2],d=i[3];return[n,s,l,d]}function Kt(t){var e=kn.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Cn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}fe.resolve=function(){for(var t="",e="",n=!1,a=arguments.length-1;a>=-1;a--){var i;if(a>=0?i=arguments[a]:t?(i=_s["="+t],(!i||i.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(i=t+"\\")):i=process.cwd(),Oe.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=Kt(i),l=s.device,d=s.isUnc,h=s.isAbsolute,f=s.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=f+"\\"+e,n=h),t&&n))break}return d&&(t=Cn(t)),e=gt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};fe.normalize=function(t){var e=Kt(t),n=e.device,a=e.isUnc,i=e.isAbsolute,s=e.tail,l=/[\\\/]$/.test(s);return s=gt(s.split(/[\\\/]+/),!i).join("\\"),!s&&!i&&(s="."),s&&l&&(s+="\\"),a&&(n=Cn(n)),n+(i?"\\":"")+s};fe.isAbsolute=function(t){return Kt(t).isAbsolute};fe.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Oe.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=gt(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};ge.normalize=function(t){var e=ge.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=gt(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};ge.isAbsolute=function(t){return t.charAt(0)==="/"};ge.join=function(){for(var t="",e=0;eUn(e.to.name)),a=i=>n.value?{href:i.name,target:"_blank",rel:"noopener"}:{to:i};return(i,s)=>(c(),D(Ee(n.value?"a":"router-link"),Wn(Gn(a(i.to))),{default:x(()=>[ft(i.$slots,"default")]),_:3},16))}}),xs={width:1024,height:1024,body:''},Is={width:1024,height:1024,body:''},$s={width:1024,height:1024,body:''},Ss={width:1024,height:1024,body:''},xn=oe({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=Kn(),{layout:n,isCollapse:a,tooltipEffect:i,getDivStyle:s}=ze(),l=t,d=j(()=>({width:"100%",display:"flex",alignItems:"center"})),h=j(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),f=j(()=>{var _;return(_=Ye())!=null&&_.MenuArrowIconNoTransition?{"expand-close-icon":Pe(Is),"expand-open-icon":Pe(xs),"collapse-close-icon":Pe(Ss),"collapse-open-icon":Pe($s)}:""}),b=P(null);function p(_=[],k){var w,R;const L=_.filter(A=>(b.value=A,!0));return(R=(w=L[0])==null?void 0:w.meta)!=null&&R.showParent?!1:L.length===1?!0:L.length===0?(b.value=Ct(kt({},k),{path:"",noShowingChildren:!0}),!0):!1}function g(_){const k=/^http(s?):\/\//;return k.test(_)||k.test(l.basePath)?_||l.basePath:ks.posix.resolve(l.basePath,_)}return(_,k)=>{const L=H("el-text"),w=H("el-menu-item"),R=H("sidebar-item",!0),A=H("el-sub-menu");return p(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(c(),D(Cs,{key:0,to:t.item},{default:x(()=>[u(w,en({index:g(b.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:d.value},o(e)),{title:x(()=>[v("div",{style:ue(o(s))},[u(o(tn),{tippyProps:{offset:[0,-10],theme:o(i)},class:"!text-inherit"},{default:x(()=>[_e(se(o(je)(b.value.meta.title)),1)]),_:1},8,["tippyProps"]),u(Ht,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var E,W,G,M,B;return[Se(l.item.meta.icon)?(c(),S("div",{key:0,class:"sub-menu-icon",style:ue(h.value)},[(c(),D(Ee(o(Pe)(Se(b.value.meta.icon)||l.item.meta&&Se(l.item.meta.icon)))))],4)):J("",!0),!((E=l.item)!=null&&E.meta.icon)&&o(a)&&o(n)==="vertical"&&((G=(W=l.item)==null?void 0:W.pathList)==null?void 0:G.length)===1||!b.value.meta.icon&&o(a)&&o(n)==="mix"&&((B=(M=l.item)==null?void 0:M.pathList)==null?void 0:B.length)===2?(c(),D(L,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:x(()=>[_e(se(o(je)(b.value.meta.title)),1)]),_:1})):J("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(c(),D(A,en({key:1,ref:"subMenu",teleported:"",index:g(l.item.path)},f.value),{title:x(()=>[Se(l.item.meta.icon)?(c(),S("div",{key:0,style:ue(h.value),class:"sub-menu-icon"},[(c(),D(Ee(o(Pe)(l.item.meta&&Se(l.item.meta.icon)))))],4)):J("",!0),o(n)==="vertical"&&o(a)&&Se(l.item.meta.icon)&&l.item.parentId===null?J("",!0):(c(),D(o(tn),{key:1,tippyProps:{offset:[0,-10],theme:o(i)},class:le({"!text-inherit":!0,"!px-4":o(n)!=="horizontal"&&o(a)&&!Se(l.item.meta.icon)&&l.item.parentId===null})},{default:x(()=>[_e(se(o(je)(l.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?J("",!0):(c(),D(Ht,{key:2,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))]),default:x(()=>[(c(!0),S(ye,null,Ce(l.item.children,E=>(c(),D(R,{key:E.path,"is-nest":!0,item:E,"base-path":g(E.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ms={class:"collapse-container"},Vs=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=ze(),i=j(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:s}=vt(),l=j(()=>{var f;return(f=s.layout)==null?void 0:f.themeColor}),d=e,h=()=>{d("toggleClick")};return(f,b)=>{const p=H("IconifyIconOffline"),g=et("tippy");return c(),S("div",Ms,[ie(u(p,{icon:o(yn),class:le([i.value,l.value==="light"?"":"text-primary"]),style:ue({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:h},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),Ts=be(Vs,[["__scopeId","data-v-d14bd14d"]]),Hs=oe({__name:"vertical",setup(t){var k,L;const e=Ot(),n=P((L=(k=Be().getItem(`${st()}configure`))==null?void 0:k.showLogo)!=null?L:!0),{device:a,pureApp:i,isCollapse:s,tooltipEffect:l,menuSelect:d,toggleSideBar:h}=ze(),f=P([]),b=j(()=>i.layout==="mix"&&a.value!=="mobile"?f.value:Ve().wholeMenus),p=j(()=>i.layout==="mix"?!1:b.value.length===0),g=j(()=>{var w;return Je((w=e.meta)==null?void 0:w.activePath)?e.path:e.meta.activePath});function _(){let w="";w=g.value,f.value=[];const R=Zt(w,Ve().wholeMenus),A=dt(R[0]||w,Ve().wholeMenus);A!=null&&A.children&&(f.value=A==null?void 0:A.children)}return Ze(()=>[e.path,Ve().wholeMenus],()=>{e.path.includes("/redirect")||(_(),d(e.path))}),Ke(()=>{_(),Me.on("logoChange",w=>{n.value=w})}),Pt(()=>{Me.off("logoChange")}),(w,R)=>{const A=H("el-menu"),E=H("el-scrollbar"),W=et("loading");return ie((c(),S("div",{class:le(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(c(),D(ps,{key:0,collapse:o(s)},null,8,["collapse"])):J("",!0),u(E,{"wrap-class":"scrollbar-wrapper",class:le([o(a)==="mobile"?"mobile":"pc"])},{default:x(()=>[u(A,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:o(s),"collapse-transition":!1,"popper-effect":o(l),"default-active":g.value},{default:x(()=>[(c(!0),S(ye,null,Ce(b.value,G=>(c(),D(xn,{key:G.path,item:G,"base-path":G.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),o(a)!=="mobile"?(c(),D(Ts,{key:1,"is-active":o(i).sidebar.opened,onToggleClick:o(h)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[W,p.value]])}}}),zs=be(Hs,[["__scopeId","data-v-3752e90e"]]),Ls={class:"horizontal-header"},As=["src"],Es={class:"horizontal-header-right"},Zs={class:"check-zh"},Os={class:"check-en"},Rs={class:"el-dropdown-link navbar-bg-hover"},Ps=["src"],Ds={key:0,class:"dark:text-white"},js=["title"],qs=oe({__name:"horizontal",setup(t){const e=P(),{t:n,route:a,locale:i,translationCh:s,translationEn:l}=jt(e),{title:d,logout:h,backTopMenu:f,onPanel:b,getLogo:p,username:g,userAvatar:_,avatarsStyle:k,getDropdownItemStyle:L,getDropdownItemClass:w}=ze(),R=j(()=>{var A;return Je((A=a.meta)==null?void 0:A.activePath)?a.path:a.meta.activePath});return Ge(()=>{var A;(A=e.value)==null||A.handleResize()}),(A,E)=>{const W=H("el-menu"),G=H("IconifyIconOffline"),M=H("el-dropdown-item"),B=H("el-dropdown-menu"),F=H("el-dropdown"),ce=et("loading");return ie((c(),S("div",Ls,[v("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...ee)=>o(f)&&o(f)(...ee))},[v("img",{src:o(p)(),alt:"logo"},null,8,As),v("span",null,se(o(d)),1)]),u(W,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:x(()=>[(c(!0),S(ye,null,Ce(o(Ve)().wholeMenus,ee=>(c(),D(xn,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Es,[u(Nt,{id:"header-search"}),u(F,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(B,{class:"translation"},{default:x(()=>[u(M,{style:ue(o(L)(o(i),"zh")),class:le(["dark:!text-white",o(w)(o(i),"zh")]),onClick:o(s)},{default:x(()=>[ie(v("span",Zs,[u(G,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(M,{style:ue(o(L)(o(i),"en")),class:le(["dark:!text-white",o(w)(o(i),"en")]),onClick:o(l)},{default:x(()=>[ie(v("span",Os,[u(G,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(qt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Wt,{id:"full-screen"}),u(Ut,{id:"header-notice"}),u(F,{trigger:"click"},{dropdown:x(()=>[u(B,{class:"logout"},{default:x(()=>[u(M,{onClick:o(h)},{default:x(()=>[u(G,{icon:o(Gt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Rs,[v("img",{src:o(_),style:ue(o(k))},null,12,Ps),o(g)?(c(),S("p",Ds,se(o(g)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:E[1]||(E[1]=(...ee)=>o(b)&&o(b)(...ee))},[u(G,{icon:o(_t)},null,8,["icon"])],8,js)])])),[[ce,o(Ve)().wholeMenus.length===0]])}}}),Bs=be(qs,[["__scopeId","data-v-848e7d44"]]),Fs={key:0},Ns=oe({__name:"index",setup(t){const e=P(),{isDark:n}=pn(),{layout:a}=ao(),i=cn(),s=Ft(),{$storage:l}=vt(),d=Rt({sidebar:j(()=>Xe().sidebar),device:j(()=>Xe().device),fixedHeader:j(()=>s.fixedHeader),classes:j(()=>({hideSidebar:!d.sidebar.opened,openSidebar:d.sidebar.opened,withoutAnimation:d.sidebar.withoutAnimation,mobile:d.device==="mobile"})),hideTabs:j(()=>l==null?void 0:l.configure.hideTabs)});function h(g){var _,k,L,w,R,A;window.document.body.setAttribute("layout",g),l.layout={layout:`${g}`,theme:(_=l.layout)==null?void 0:_.theme,darkMode:(k=l.layout)==null?void 0:k.darkMode,sidebarStatus:(L=l.layout)==null?void 0:L.sidebarStatus,epThemeColor:(w=l.layout)==null?void 0:w.epThemeColor,themeColor:(R=l.layout)==null?void 0:R.themeColor,overallStyle:(A=l.layout)==null?void 0:A.overallStyle}}function f(g,_){Xe().toggleDevice(g),Xe().toggleSideBar(_,"resize")}let b=!0;mt(e,g=>{if(i)return;const _=g[0],[{inlineSize:k}]=_.borderBoxSize;k<=760?h("vertical"):h(Xe().layout),k>0&&k<=760?(f("mobile",!1),b=!0):k>760&&k<=990?b&&(f("desktop",!1),b=!1):k>990&&!d.sidebar.isClickCollapse?(f("desktop",!0),b=!0):(f("desktop",!1),b=!1)}),Ke(()=>{i&&f("mobile",!1)}),mn(()=>{var g;Bt().dataThemeChange((g=l.layout)==null?void 0:g.overallStyle)});const p=oe({render(){return rt("div",{class:{"fixed-header":d.fixedHeader},style:[d.hideTabs&&a.value.includes("horizontal")?n.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!s.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?rt(el):null,!s.hiddenSideBar&&a.value.includes("horizontal")?rt(Bs):null,rt(vl)]})}});return(g,_)=>{const k=H("el-backtop"),L=H("el-scrollbar");return c(),S("div",{ref_key:"appWrapperRef",ref:e,class:le(["app-wrapper",d.classes])},[ie(v("div",{class:"app-mask",onClick:_[0]||(_[0]=w=>o(Xe)().toggleSideBar())},null,512),[[xe,d.device==="mobile"&&d.sidebar.opened&&o(a).includes("vertical")]]),ie(u(zs,null,null,512),[[xe,!o(s).hiddenSideBar&&(o(a).includes("vertical")||o(a).includes("mix"))]]),v("div",{class:le(["main-container",o(s).hiddenSideBar?"main-hidden":""])},[d.fixedHeader?(c(),S("div",Fs,[u(o(p)),u(sn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])])):(c(),D(L,{key:1},{default:x(()=>[u(k,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:x(()=>[u(o(vn))]),_:1}),u(o(p)),u(sn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),u(is)],2)}}}),dr=be(Ns,[["__scopeId","data-v-e1cc1ddb"]]);export{dr as default};
+ `)+" "+$[1]:$[0]+m+" "+r.join(", ")+" "+$[1]}function L(r){return Array.isArray(r)}t.isArray=L;function w(r){return typeof r=="boolean"}t.isBoolean=w;function R(r){return r===null}t.isNull=R;function A(r){return r==null}t.isNullOrUndefined=A;function E(r){return typeof r=="number"}t.isNumber=E;function W(r){return typeof r=="string"}t.isString=W;function G(r){return typeof r=="symbol"}t.isSymbol=G;function M(r){return r===void 0}t.isUndefined=M;function B(r){return F(r)&&pe(r)==="[object RegExp]"}t.isRegExp=B;function F(r){return typeof r=="object"&&r!==null}t.isObject=F;function ce(r){return F(r)&&pe(r)==="[object Date]"}t.isDate=ce;function ee(r){return F(r)&&(pe(r)==="[object Error]"||r instanceof Error)}t.isError=ee;function q(r){return typeof r=="function"}t.isFunction=q;function ae(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=ae,t.isBuffer=gs;function pe(r){return Object.prototype.toString.call(r)}function we(r){return r<10?"0"+r.toString(10):r.toString(10)}var Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ie(){var r=new Date,m=[we(r.getHours()),we(r.getMinutes()),we(r.getSeconds())].join(":");return[r.getDate(),Le[r.getMonth()],m].join(" ")}t.log=function(){console.log("%s - %s",Ie(),t.format.apply(t,arguments))},t.inherits=ys,t._extend=function(r,m){if(!m||!F(m))return r;for(var $=Object.keys(m),X=$.length;X--;)r[$[X]]=m[$[X]];return r};function Te(r,m){return Object.prototype.hasOwnProperty.call(r,m)}})(kn);var bs={},ws=process.platform==="win32",Oe=kn;function gt(t,e){for(var n=[],a=0;a=0&&!t[a];a--);return n===0&&a===e?t:n>a?[]:t.slice(n,a+1)}var Cn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,ks=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,fe={};function yt(t){var e=Cn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=ks.exec(a),s=i[1],l=i[2],d=i[3];return[n,s,l,d]}function Yt(t){var e=Cn.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function xn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}fe.resolve=function(){for(var t="",e="",n=!1,a=arguments.length-1;a>=-1;a--){var i;if(a>=0?i=arguments[a]:t?(i=bs["="+t],(!i||i.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(i=t+"\\")):i=process.cwd(),Oe.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=Yt(i),l=s.device,d=s.isUnc,h=s.isAbsolute,f=s.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=f+"\\"+e,n=h),t&&n))break}return d&&(t=xn(t)),e=gt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};fe.normalize=function(t){var e=Yt(t),n=e.device,a=e.isUnc,i=e.isAbsolute,s=e.tail,l=/[\\\/]$/.test(s);return s=gt(s.split(/[\\\/]+/),!i).join("\\"),!s&&!i&&(s="."),s&&l&&(s+="\\"),a&&(n=xn(n)),n+(i?"\\":"")+s};fe.isAbsolute=function(t){return Yt(t).isAbsolute};fe.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Oe.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=gt(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};ge.normalize=function(t){var e=ge.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=gt(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};ge.isAbsolute=function(t){return t.charAt(0)==="/"};ge.join=function(){for(var t="",e=0;eWn(e.to.name)),a=i=>n.value?{href:i.name,target:"_blank",rel:"noopener"}:{to:i};return(i,s)=>(c(),D(Ee(n.value?"a":"router-link"),Gn(Kn(a(i.to))),{default:x(()=>[ft(i.$slots,"default")]),_:3},16))}}),Ss={width:1024,height:1024,body:''},Ms={width:1024,height:1024,body:''},Vs={width:1024,height:1024,body:''},Ts={width:1024,height:1024,body:''},In=oe({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=Xn(),{layout:n,isCollapse:a,tooltipEffect:i,getDivStyle:s}=ze(),l=t,d=j(()=>({width:"100%",display:"flex",alignItems:"center"})),h=j(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),f=j(()=>{var _;return(_=Ye())!=null&&_.MenuArrowIconNoTransition?{"expand-close-icon":Pe(Ms),"expand-open-icon":Pe(Ss),"collapse-close-icon":Pe(Ts),"collapse-open-icon":Pe(Vs)}:""}),b=P(null);function p(_=[],k){var w,R;const L=_.filter(A=>(b.value=A,!0));return(R=(w=L[0])==null?void 0:w.meta)!=null&&R.showParent?!1:L.length===1?!0:L.length===0?(b.value=Ct(kt({},k),{path:"",noShowingChildren:!0}),!0):!1}function g(_){const k=/^http(s?):\/\//;return k.test(_)||k.test(l.basePath)?_||l.basePath:Is.posix.resolve(l.basePath,_)}return(_,k)=>{const L=H("el-text"),w=H("el-menu-item"),R=H("sidebar-item",!0),A=H("el-sub-menu");return p(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(c(),D($s,{key:0,to:t.item},{default:x(()=>[u(w,nn({index:g(b.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:d.value},o(e)),{title:x(()=>[v("div",{style:ue(o(s))},[u(o(on),{tippyProps:{offset:[0,-10],theme:o(i)},class:"!text-inherit"},{default:x(()=>[_e(se(o(je)(b.value.meta.title)),1)]),_:1},8,["tippyProps"]),u(Ht,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var E,W,G,M,B;return[Se(l.item.meta.icon)?(c(),S("div",{key:0,class:"sub-menu-icon",style:ue(h.value)},[(c(),D(Ee(o(Pe)(Se(b.value.meta.icon)||l.item.meta&&Se(l.item.meta.icon)))))],4)):J("",!0),!((E=l.item)!=null&&E.meta.icon)&&o(a)&&o(n)==="vertical"&&((G=(W=l.item)==null?void 0:W.pathList)==null?void 0:G.length)===1||!b.value.meta.icon&&o(a)&&o(n)==="mix"&&((B=(M=l.item)==null?void 0:M.pathList)==null?void 0:B.length)===2?(c(),D(L,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:x(()=>[_e(se(o(je)(b.value.meta.title)),1)]),_:1})):J("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(c(),D(A,nn({key:1,ref:"subMenu",teleported:"",index:g(l.item.path)},f.value),{title:x(()=>[Se(l.item.meta.icon)?(c(),S("div",{key:0,style:ue(h.value),class:"sub-menu-icon"},[(c(),D(Ee(o(Pe)(l.item.meta&&Se(l.item.meta.icon)))))],4)):J("",!0),o(n)==="vertical"&&o(a)&&Se(l.item.meta.icon)&&l.item.parentId===null?J("",!0):(c(),D(o(on),{key:1,tippyProps:{offset:[0,-10],theme:o(i)},class:le({"!text-inherit":!0,"!px-4":o(n)!=="horizontal"&&o(a)&&!Se(l.item.meta.icon)&&l.item.parentId===null})},{default:x(()=>[_e(se(o(je)(l.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?J("",!0):(c(),D(Ht,{key:2,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))]),default:x(()=>[(c(!0),S(ye,null,Ce(l.item.children,E=>(c(),D(R,{key:E.path,"is-nest":!0,item:E,"base-path":g(E.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Hs={class:"collapse-container"},zs=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=ze(),i=j(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:s}=vt(),l=j(()=>{var f;return(f=s.layout)==null?void 0:f.themeColor}),d=e,h=()=>{d("toggleClick")};return(f,b)=>{const p=H("IconifyIconOffline"),g=et("tippy");return c(),S("div",Hs,[ie(u(p,{icon:o(yn),class:le([i.value,l.value==="light"?"":"text-primary"]),style:ue({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:h},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),Ls=be(zs,[["__scopeId","data-v-d14bd14d"]]),As=oe({__name:"vertical",setup(t){var k,L;const e=Ot(),n=P((L=(k=Be().getItem(`${st()}configure`))==null?void 0:k.showLogo)!=null?L:!0),{device:a,pureApp:i,isCollapse:s,tooltipEffect:l,menuSelect:d,toggleSideBar:h}=ze(),f=P([]),b=j(()=>i.layout==="mix"&&a.value!=="mobile"?f.value:Ve().wholeMenus),p=j(()=>i.layout==="mix"?!1:b.value.length===0),g=j(()=>{var w;return Je((w=e.meta)==null?void 0:w.activePath)?e.path:e.meta.activePath});function _(){let w="";w=g.value,f.value=[];const R=Zt(w,Ve().wholeMenus),A=dt(R[0]||w,Ve().wholeMenus);A!=null&&A.children&&(f.value=A==null?void 0:A.children)}return Ze(()=>[e.path,Ve().wholeMenus],()=>{e.path.includes("/redirect")||(_(),d(e.path))}),Ke(()=>{_(),Me.on("logoChange",w=>{n.value=w})}),Pt(()=>{Me.off("logoChange")}),(w,R)=>{const A=H("el-menu"),E=H("el-scrollbar"),W=et("loading");return ie((c(),S("div",{class:le(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(c(),D(_s,{key:0,collapse:o(s)},null,8,["collapse"])):J("",!0),u(E,{"wrap-class":"scrollbar-wrapper",class:le([o(a)==="mobile"?"mobile":"pc"])},{default:x(()=>[u(A,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:o(s),"collapse-transition":!1,"popper-effect":o(l),"default-active":g.value},{default:x(()=>[(c(!0),S(ye,null,Ce(b.value,G=>(c(),D(In,{key:G.path,item:G,"base-path":G.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),o(a)!=="mobile"?(c(),D(Ls,{key:1,"is-active":o(i).sidebar.opened,onToggleClick:o(h)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[W,p.value]])}}}),Es=be(As,[["__scopeId","data-v-3752e90e"]]),Zs={class:"horizontal-header"},Os=["src"],Rs={class:"horizontal-header-right"},Ps={class:"check-zh"},Ds={class:"check-en"},js={class:"el-dropdown-link navbar-bg-hover"},qs=["src"],Bs={key:0,class:"dark:text-white"},Fs=["title"],Ns=oe({__name:"horizontal",setup(t){const e=P(),{t:n,route:a,locale:i,translationCh:s,translationEn:l}=Bt(e),{title:d,logout:h,backTopMenu:f,onPanel:b,getLogo:p,username:g,userAvatar:_,avatarsStyle:k,getDropdownItemStyle:L,getDropdownItemClass:w}=ze(),R=j(()=>{var A;return Je((A=a.meta)==null?void 0:A.activePath)?a.path:a.meta.activePath});return Ge(()=>{var A;(A=e.value)==null||A.handleResize()}),(A,E)=>{const W=H("el-menu"),G=H("IconifyIconOffline"),M=H("el-dropdown-item"),B=H("el-dropdown-menu"),F=H("el-dropdown"),ce=et("loading");return ie((c(),S("div",Zs,[v("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...ee)=>o(f)&&o(f)(...ee))},[v("img",{src:o(p)(),alt:"logo"},null,8,Os),v("span",null,se(o(d)),1)]),u(W,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:x(()=>[(c(!0),S(ye,null,Ce(o(Ve)().wholeMenus,ee=>(c(),D(In,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Rs,[u(Wt,{id:"header-search"}),u(F,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(B,{class:"translation"},{default:x(()=>[u(M,{style:ue(o(L)(o(i),"zh")),class:le(["dark:!text-white",o(w)(o(i),"zh")]),onClick:o(s)},{default:x(()=>[ie(v("span",Ps,[u(G,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(M,{style:ue(o(L)(o(i),"en")),class:le(["dark:!text-white",o(w)(o(i),"en")]),onClick:o(l)},{default:x(()=>[ie(v("span",Ds,[u(G,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{id:"header-notice"}),u(F,{trigger:"click"},{dropdown:x(()=>[u(B,{class:"logout"},{default:x(()=>[u(M,{onClick:o(h)},{default:x(()=>[u(G,{icon:o(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",js,[v("img",{src:o(_),style:ue(o(k))},null,12,qs),o(g)?(c(),S("p",Bs,se(o(g)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:E[1]||(E[1]=(...ee)=>o(b)&&o(b)(...ee))},[u(G,{icon:o(_t)},null,8,["icon"])],8,Fs)])])),[[ce,o(Ve)().wholeMenus.length===0]])}}}),Us=be(Ns,[["__scopeId","data-v-848e7d44"]]),Ws={key:0},Gs=oe({__name:"index",setup(t){const e=P(),{isDark:n}=pn(),{layout:a}=lo(),i=dn(),s=Ut(),{$storage:l}=vt(),d=Rt({sidebar:j(()=>Xe().sidebar),device:j(()=>Xe().device),fixedHeader:j(()=>s.fixedHeader),classes:j(()=>({hideSidebar:!d.sidebar.opened,openSidebar:d.sidebar.opened,withoutAnimation:d.sidebar.withoutAnimation,mobile:d.device==="mobile"})),hideTabs:j(()=>l==null?void 0:l.configure.hideTabs)});function h(g){var _,k,L,w,R,A;window.document.body.setAttribute("layout",g),l.layout={layout:`${g}`,theme:(_=l.layout)==null?void 0:_.theme,darkMode:(k=l.layout)==null?void 0:k.darkMode,sidebarStatus:(L=l.layout)==null?void 0:L.sidebarStatus,epThemeColor:(w=l.layout)==null?void 0:w.epThemeColor,themeColor:(R=l.layout)==null?void 0:R.themeColor,overallStyle:(A=l.layout)==null?void 0:A.overallStyle}}function f(g,_){Xe().toggleDevice(g),Xe().toggleSideBar(_,"resize")}let b=!0;mt(e,g=>{if(i)return;const _=g[0],[{inlineSize:k}]=_.borderBoxSize;k<=760?h("vertical"):h(Xe().layout),k>0&&k<=760?(f("mobile",!1),b=!0):k>760&&k<=990?b&&(f("desktop",!1),b=!1):k>990&&!d.sidebar.isClickCollapse?(f("desktop",!0),b=!0):(f("desktop",!1),b=!1)}),Ke(()=>{i&&f("mobile",!1)}),mn(()=>{var g;Nt().dataThemeChange((g=l.layout)==null?void 0:g.overallStyle)});const p=oe({render(){return rt("div",{class:{"fixed-header":d.fixedHeader},style:[d.hideTabs&&a.value.includes("horizontal")?n.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!s.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?rt(tl):null,!s.hiddenSideBar&&a.value.includes("horizontal")?rt(Us):null,rt(_l)]})}});return(g,_)=>{const k=H("el-backtop"),L=H("el-scrollbar");return c(),S("div",{ref_key:"appWrapperRef",ref:e,class:le(["app-wrapper",d.classes])},[ie(v("div",{class:"app-mask",onClick:_[0]||(_[0]=w=>o(Xe)().toggleSideBar())},null,512),[[xe,d.device==="mobile"&&d.sidebar.opened&&o(a).includes("vertical")]]),ie(u(Es,null,null,512),[[xe,!o(s).hiddenSideBar&&(o(a).includes("vertical")||o(a).includes("mix"))]]),v("div",{class:le(["main-container",o(s).hiddenSideBar?"main-hidden":""])},[d.fixedHeader?(c(),S("div",Ws,[u(o(p)),u(cn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])])):(c(),D(L,{key:1},{default:x(()=>[u(k,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:x(()=>[u(o(vn))]),_:1}),u(o(p)),u(cn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),u(ds)],2)}}}),pr=be(Gs,[["__scopeId","data-v-e1cc1ddb"]]);export{pr as default};
diff --git a/dist/static/js/index-BCHOLwZZ.js b/dist/static/js/index-CgqpSbNG.js
similarity index 96%
rename from dist/static/js/index-BCHOLwZZ.js
rename to dist/static/js/index-CgqpSbNG.js
index d537c3895..b227d4a80 100644
--- a/dist/static/js/index-BCHOLwZZ.js
+++ b/dist/static/js/index-CgqpSbNG.js
@@ -1 +1 @@
-import{d as w,a9 as A,aa as F,c as h,gf as I,ab as M,r as N,fC as C,k as m,e as _,f as j,j as a,g as d,x as g,F as y,y as b,m as n,u as s,l as o,t as v,ad as E,gg as x}from"./index-DZuaHQDs.js";import{u as S}from"./hooks-CT3BXQ7u.js";const U=d("div",{class:"font-medium"},"标签页复用,超出限制自动关闭",-1),H={class:"flex flex-wrap items-center"},L=d("p",null,"query传参模式:",-1),P={class:"flex flex-wrap items-center"},z=d("p",null,"params传参模式:",-1),O=w({name:"Tabs",__name:"index",setup(G){const{toDetail:c,router:u}=S(),B=A(F().wholeMenus,!0),f=h(()=>I(M(B),0,{disabled:!0})),p=N([]),k=h(()=>{var r;return(r=C())==null?void 0:r.multiTags});function $(){p.value.length!==0&&p.value.forEach(r=>{var l;const t=(l=x(f.value,r).redirect)!=null?l:x(f.value,r).path;C().handleTags("splice",t),t==="/tabs/index"&&u.push({path:k.value[k.value.length-1].path})})}return(r,t)=>{const l=m("el-button"),i=m("el-divider"),q=m("el-tree-select"),D=m("el-link"),T=m("el-card");return _(),j(T,{shadow:"never"},{header:a(()=>[U]),default:a(()=>[d("div",H,[L,(_(),g(y,null,b(6,e=>n(l,{key:e,class:"m-2",onClick:V=>s(c)({id:e},"query")},{default:a(()=>[o(" 打开"+v(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64)),n(l,{onClick:t[0]||(t[0]=e=>s(c)({id:666,name:"小明",age:18,job:"工程师"},"query"))},{default:a(()=>[o(" 多个参数 ")]),_:1})]),n(i),d("div",P,[z,(_(),g(y,null,b(6,e=>n(l,{key:e,class:"m-2",onClick:V=>s(c)({id:e},"params")},{default:a(()=>[o(" 打开"+v(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),n(i),n(q,{modelValue:p.value,"onUpdate:modelValue":t[1]||(t[1]=e=>p.value=e),class:"!w-[300px]","node-key":"uniqueId",placeholder:"请选择要关闭的标签",clearable:"",multiple:"",filterable:"","default-expand-all":"",props:{label:e=>s(E)(e.meta.title),value:"uniqueId",children:"children",disabled:"disabled"},data:f.value},{default:a(({data:e})=>[d("span",null,v(s(E)(e.meta.title)),1)]),_:1},8,["modelValue","props","data"]),n(l,{class:"m-2",onClick:$},{default:a(()=>[o("关闭标签")]),_:1}),n(i),n(l,{onClick:t[2]||(t[2]=e=>s(u).push({name:"Menu1-2-2"}))},{default:a(()=>[o(" 跳转页内菜单(传name对象,优先推荐) ")]),_:1}),n(l,{onClick:t[3]||(t[3]=e=>s(u).push("/nested/menu1/menu1-2/menu1-2-2"))},{default:a(()=>[o(" 跳转页内菜单(直接传要跳转的路径) ")]),_:1}),n(l,{onClick:t[4]||(t[4]=e=>s(u).push({path:"/nested/menu1/menu1-2/menu1-2-2"}))},{default:a(()=>[o(" 跳转页内菜单(传path对象) ")]),_:1}),n(i),n(l,{onClick:t[5]||(t[5]=e=>s(u).push({name:"Menu1-2-2",query:{text:"传name对象,优先推荐"}}))},{default:a(()=>[o(" 携参跳转页内菜单(传name对象,优先推荐) ")]),_:1}),n(l,{onClick:t[6]||(t[6]=e=>s(u).push({path:"/nested/menu1/menu1-2/menu1-2-2",query:{text:"传path对象"}}))},{default:a(()=>[o(" 携参跳转页内菜单(传path对象) ")]),_:1}),n(D,{class:"ml-4",href:"https://router.vuejs.org/zh/guide/essentials/navigation.html#%E5%AF%BC%E8%88%AA%E5%88%B0%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BD%8D%E7%BD%AE",target:"_blank"},{default:a(()=>[o(" 点击查看更多跳转方式 ")]),_:1}),n(i),n(l,{onClick:t[7]||(t[7]=e=>s(u).push({name:"Empty"}))},{default:a(()=>[o(" 跳转无Layout的空白页面 ")]),_:1})]),_:1})}}});export{O as default};
+import{d as w,a9 as A,aa as F,c as h,gf as I,ab as M,r as N,fC as C,k as m,e as _,f as j,j as a,g as d,x as g,F as y,y as b,m as n,u as s,l as o,t as v,ad as E,gg as x}from"./index-BAaep8yZ.js";import{u as S}from"./hooks-Dp2ftsOm.js";const U=d("div",{class:"font-medium"},"标签页复用,超出限制自动关闭",-1),H={class:"flex flex-wrap items-center"},L=d("p",null,"query传参模式:",-1),P={class:"flex flex-wrap items-center"},z=d("p",null,"params传参模式:",-1),O=w({name:"Tabs",__name:"index",setup(G){const{toDetail:c,router:u}=S(),B=A(F().wholeMenus,!0),f=h(()=>I(M(B),0,{disabled:!0})),p=N([]),k=h(()=>{var r;return(r=C())==null?void 0:r.multiTags});function $(){p.value.length!==0&&p.value.forEach(r=>{var l;const t=(l=x(f.value,r).redirect)!=null?l:x(f.value,r).path;C().handleTags("splice",t),t==="/tabs/index"&&u.push({path:k.value[k.value.length-1].path})})}return(r,t)=>{const l=m("el-button"),i=m("el-divider"),q=m("el-tree-select"),D=m("el-link"),T=m("el-card");return _(),j(T,{shadow:"never"},{header:a(()=>[U]),default:a(()=>[d("div",H,[L,(_(),g(y,null,b(6,e=>n(l,{key:e,class:"m-2",onClick:V=>s(c)({id:e},"query")},{default:a(()=>[o(" 打开"+v(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64)),n(l,{onClick:t[0]||(t[0]=e=>s(c)({id:666,name:"小明",age:18,job:"工程师"},"query"))},{default:a(()=>[o(" 多个参数 ")]),_:1})]),n(i),d("div",P,[z,(_(),g(y,null,b(6,e=>n(l,{key:e,class:"m-2",onClick:V=>s(c)({id:e},"params")},{default:a(()=>[o(" 打开"+v(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),n(i),n(q,{modelValue:p.value,"onUpdate:modelValue":t[1]||(t[1]=e=>p.value=e),class:"!w-[300px]","node-key":"uniqueId",placeholder:"请选择要关闭的标签",clearable:"",multiple:"",filterable:"","default-expand-all":"",props:{label:e=>s(E)(e.meta.title),value:"uniqueId",children:"children",disabled:"disabled"},data:f.value},{default:a(({data:e})=>[d("span",null,v(s(E)(e.meta.title)),1)]),_:1},8,["modelValue","props","data"]),n(l,{class:"m-2",onClick:$},{default:a(()=>[o("关闭标签")]),_:1}),n(i),n(l,{onClick:t[2]||(t[2]=e=>s(u).push({name:"Menu1-2-2"}))},{default:a(()=>[o(" 跳转页内菜单(传name对象,优先推荐) ")]),_:1}),n(l,{onClick:t[3]||(t[3]=e=>s(u).push("/nested/menu1/menu1-2/menu1-2-2"))},{default:a(()=>[o(" 跳转页内菜单(直接传要跳转的路径) ")]),_:1}),n(l,{onClick:t[4]||(t[4]=e=>s(u).push({path:"/nested/menu1/menu1-2/menu1-2-2"}))},{default:a(()=>[o(" 跳转页内菜单(传path对象) ")]),_:1}),n(i),n(l,{onClick:t[5]||(t[5]=e=>s(u).push({name:"Menu1-2-2",query:{text:"传name对象,优先推荐"}}))},{default:a(()=>[o(" 携参跳转页内菜单(传name对象,优先推荐) ")]),_:1}),n(l,{onClick:t[6]||(t[6]=e=>s(u).push({path:"/nested/menu1/menu1-2/menu1-2-2",query:{text:"传path对象"}}))},{default:a(()=>[o(" 携参跳转页内菜单(传path对象) ")]),_:1}),n(D,{class:"ml-4",href:"https://router.vuejs.org/zh/guide/essentials/navigation.html#%E5%AF%BC%E8%88%AA%E5%88%B0%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BD%8D%E7%BD%AE",target:"_blank"},{default:a(()=>[o(" 点击查看更多跳转方式 ")]),_:1}),n(i),n(l,{onClick:t[7]||(t[7]=e=>s(u).push({name:"Empty"}))},{default:a(()=>[o(" 跳转无Layout的空白页面 ")]),_:1})]),_:1})}}});export{O as default};
diff --git a/dist/static/js/index-CmBZ0-hX.js b/dist/static/js/index-CmBZ0-hX.js
deleted file mode 100644
index fead945f4..000000000
--- a/dist/static/js/index-CmBZ0-hX.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-BeYH12BA.js";import"./columns-BXsm_fwZ.js";import"./index-DZuaHQDs.js";import"./data-C_5PjqzO.js";export{o as default};
diff --git a/dist/static/js/index-CjK6ocrq.js b/dist/static/js/index-CpwdXFHj.js
similarity index 66%
rename from dist/static/js/index-CjK6ocrq.js
rename to dist/static/js/index-CpwdXFHj.js
index 631bd8a80..054da0a69 100644
--- a/dist/static/js/index-CjK6ocrq.js
+++ b/dist/static/js/index-CpwdXFHj.js
@@ -1 +1 @@
-import{list as k}from"./list-JrC9BJDw.js";import{d as y,r as b,f as a,j as e,k as t,e as n,g as s,l,m as c,x,y as v,t as C,W as g,K as N,u as B,F as V,_ as F}from"./index-DZuaHQDs.js";import"./base.vue_vue_type_script_setup_true_lang-QLrGpQwZ.js";import"./_plugin-vue_export-helper-BNu6E7Ie.js";import"./plus-form-D0Z4Aosf.js";import"./dialog.vue_vue_type_script_setup_true_lang-BpWSrSGz.js";/* empty css */import"./drawer.vue_vue_type_script_setup_true_lang-3yvdRvpm.js";import"./steps.vue_vue_type_script_setup_true_lang-BhgFxu3q.js";import"./search.vue_vue_type_script_setup_true_lang-DmHReifj.js";const S={class:"card-header"},w={class:"font-medium"},z=y({name:"SchemaForm",__name:"index",setup(D){const r=b(0);function _({index:p}){r.value=p}return(p,P)=>{const i=t("el-link"),d=t("el-tooltip"),u=t("el-tab-pane"),f=t("el-tabs"),h=t("el-card");return n(),a(h,{shadow:"never","body-style":{height:"calc(100vh - 180px)"}},{header:e(()=>[s("div",S,[s("span",w,[l(" JSON 格式配置表单,采用优秀开源的 "),c(i,{href:"https://plus-pro-components.com/components/form.html",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[l(" PlusProComponents ")]),_:1}),l(" ,维护整体表单只需操作 columns 配置即可 ")])])]),default:e(()=>[c(f,{onTabClick:_},{default:e(()=>[(n(!0),x(V,null,v(B(k),(o,m)=>(n(),a(u,{key:o.key,lazy:!0},{label:e(()=>[c(d,{content:`(第 ${m+1} 个示例)${o.content}`,placement:"top-end"},{default:e(()=>[s("span",null,C(o.title),1)]),_:2},1032,["content"])]),default:e(()=>[r.value==m?(n(),a(g(o.component),{key:0})):N("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["body-style"])}}}),q=F(z,[["__scopeId","data-v-74b44392"]]);export{q as default};
+import{list as k}from"./list-CmwD_uIt.js";import{d as y,r as b,f as a,j as e,k as t,e as n,g as s,l,m as c,x,y as v,t as C,W as g,K as N,u as B,F as V,_ as F}from"./index-BAaep8yZ.js";import"./base.vue_vue_type_script_setup_true_lang-Ds7u1Qkh.js";import"./_plugin-vue_export-helper-Dj0KU09q.js";import"./plus-form-saeW2Rcw.js";import"./dialog.vue_vue_type_script_setup_true_lang-DjpmArtv.js";/* empty css */import"./drawer.vue_vue_type_script_setup_true_lang-CIxhC6h7.js";import"./steps.vue_vue_type_script_setup_true_lang-COZVMkxq.js";import"./search.vue_vue_type_script_setup_true_lang-spvvQWxO.js";const S={class:"card-header"},w={class:"font-medium"},z=y({name:"SchemaForm",__name:"index",setup(D){const r=b(0);function _({index:p}){r.value=p}return(p,P)=>{const i=t("el-link"),d=t("el-tooltip"),u=t("el-tab-pane"),f=t("el-tabs"),h=t("el-card");return n(),a(h,{shadow:"never","body-style":{height:"calc(100vh - 180px)"}},{header:e(()=>[s("div",S,[s("span",w,[l(" JSON 格式配置表单,采用优秀开源的 "),c(i,{href:"https://plus-pro-components.com/components/form.html",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[l(" PlusProComponents ")]),_:1}),l(" ,维护整体表单只需操作 columns 配置即可 ")])])]),default:e(()=>[c(f,{onTabClick:_},{default:e(()=>[(n(!0),x(V,null,v(B(k),(o,m)=>(n(),a(u,{key:o.key,lazy:!0},{label:e(()=>[c(d,{content:`(第 ${m+1} 个示例)${o.content}`,placement:"top-end"},{default:e(()=>[s("span",null,C(o.title),1)]),_:2},1032,["content"])]),default:e(()=>[r.value==m?(n(),a(g(o.component),{key:0})):N("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["body-style"])}}}),q=F(z,[["__scopeId","data-v-74b44392"]]);export{q as default};
diff --git a/dist/static/js/index-CqRiONUn.js b/dist/static/js/index-CqRiONUn.js
deleted file mode 100644
index 41541d0ef..000000000
--- a/dist/static/js/index-CqRiONUn.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-gcSeuefF.js";import"./columns-BuPZoRX8.js";import"./index-DZuaHQDs.js";import"./data-C_5PjqzO.js";export{o as default};
diff --git a/dist/static/js/index-B3uAdIM-.js b/dist/static/js/index-CsqlH5uL.js
similarity index 81%
rename from dist/static/js/index-B3uAdIM-.js
rename to dist/static/js/index-CsqlH5uL.js
index 51e58c16c..be6aa0687 100644
--- a/dist/static/js/index-B3uAdIM-.js
+++ b/dist/static/js/index-CsqlH5uL.js
@@ -1 +1 @@
-import{u as g}from"./columns-DMVrBhg1.js";import{u as d}from"./hooks-BoRjbw1y.js";import{d as f,k as o,e as C,f as b,j as a,m as t,u as e,_ as h}from"./index-DZuaHQDs.js";const k=f({__name:"index",setup(x){const{loading:r,columns:i,dataList:s,pagination:n,Empty:c,onCurrentChange:l}=g();return(y,P)=>{const p=o("el-empty"),u=o("el-button"),m=o("pure-table");return C(),b(m,{"row-key":"id",alignWhole:"center",showOverflowTooltip:"",loading:e(r),"loading-config":{background:"transparent"},data:e(s).slice((e(n).currentPage-1)*e(n).pageSize,e(n).currentPage*e(n).pageSize),columns:e(i),pagination:e(n),onPageCurrentChange:e(l)},{empty:a(()=>[t(p,{description:"暂无数据","image-size":60},{image:a(()=>[t(e(c))]),_:1})]),operation:a(({row:_})=>[t(u,{plain:"",circle:"",size:"small",title:`查看序号为${_.id}的详情`,icon:e(d)("ri:search-line")},null,8,["title","icon"])]),_:1},8,["loading","data","columns","pagination","onPageCurrentChange"])}}}),B=h(k,[["__scopeId","data-v-db81b3a6"]]);export{B as default};
+import{u as g}from"./columns-DP5UzbpV.js";import{u as d}from"./hooks-n2iC5q0_.js";import{d as f,k as o,e as C,f as b,j as a,m as t,u as e,_ as h}from"./index-BAaep8yZ.js";const k=f({__name:"index",setup(x){const{loading:r,columns:i,dataList:s,pagination:n,Empty:c,onCurrentChange:l}=g();return(y,P)=>{const p=o("el-empty"),u=o("el-button"),m=o("pure-table");return C(),b(m,{"row-key":"id",alignWhole:"center",showOverflowTooltip:"",loading:e(r),"loading-config":{background:"transparent"},data:e(s).slice((e(n).currentPage-1)*e(n).pageSize,e(n).currentPage*e(n).pageSize),columns:e(i),pagination:e(n),onPageCurrentChange:e(l)},{empty:a(()=>[t(p,{description:"暂无数据","image-size":60},{image:a(()=>[t(e(c))]),_:1})]),operation:a(({row:_})=>[t(u,{plain:"",circle:"",size:"small",title:`查看序号为${_.id}的详情`,icon:e(d)("ri:search-line")},null,8,["title","icon"])]),_:1},8,["loading","data","columns","pagination","onPageCurrentChange"])}}}),B=h(k,[["__scopeId","data-v-db81b3a6"]]);export{B as default};
diff --git a/dist/static/js/index-C6ASXkF1.js b/dist/static/js/index-D0wESG5A.js
similarity index 98%
rename from dist/static/js/index-C6ASXkF1.js
rename to dist/static/js/index-D0wESG5A.js
index 4168b5403..84fe554ce 100644
--- a/dist/static/js/index-C6ASXkF1.js
+++ b/dist/static/js/index-D0wESG5A.js
@@ -1 +1 @@
-import{d as C,cW as x,cX as j,r as s,ah as V,c as m,f as T,j as h,k as r,e as u,g as c,m as g,x as I,y as X,i as O,n as $,h as b,t as A,F as E,z as F,a3 as N,X as Y}from"./index-DZuaHQDs.js";const W=["bounce","flash","pulse","rubberBand","shakeX","headShake","swing","tada","wobble","jello","heartBeat","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","hinge","jackInTheBox","rollIn","rollOut","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp"],q={class:"w-[280px]"},G={class:"flex flex-wrap justify-around mb-1"},H=["onMouseenter","onClick"],J=C({name:"ReAnimateSelector",__name:"index",props:x({placeholder:{type:String,default:"请选择动画"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(d){const v=d,a=j(d,"modelValue"),f=s(),n=s(W),w=V(n),_=m(()=>["mt-1","flex","border","w-[130px]","h-[100px]","items-center","cursor-pointer","transition-all","justify-center","border-[#e5e7eb]","hover:text-primary","hover:duration-[700ms]"]),L=m(()=>e=>a.value===e?{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}:"");function R(e){a.value=e}function k(){a.value=""}function B(e){f.value=e,n.value=w.value.filter(o=>o.includes(e))}const t=s({});function y(e){var o;t.value[e]=(o=t.value[e])!=null&&o.loading?Object.assign({},t.value[e],{loading:!1}):Object.assign({},t.value[e],{loading:!0})}function D(){t.value={}}return(e,o)=>{const U=r("el-empty"),z=r("el-scrollbar"),S=r("el-select");return u(),T(S,{clearable:"",filterable:"",placeholder:v.placeholder,"popper-class":"pure-animate-popper","model-value":a.value,"filter-method":B,onClear:k},{empty:h(()=>[c("div",q,[g(z,{noresize:"",height:"212px","view-style":{overflow:"hidden"},class:"border-t border-[#e5e7eb]"},{default:h(()=>[c("ul",G,[(u(!0),I(E,null,X(n.value,(l,i)=>{var p;return u(),I("li",{key:i,class:O(_.value),style:$(L.value(l)),onMouseenter:b(M=>y(i),["prevent"]),onMouseleave:b(D,["prevent"]),onClick:M=>R(l)},[c("h4",{class:O([`animate__animated animate__${(p=t.value[i])!=null&&p.loading?l+" animate__infinite":""} `])},A(l),3)],46,H)}),128))]),F(g(U,{description:`${f.value} 动画不存在`,"image-size":60},null,8,["description"]),[[N,n.value.length===0]])]),_:1})])]),_:1},8,["placeholder","model-value"])}}}),P=Y(J);export{P as R};
+import{d as C,cW as x,cX as j,r as s,ah as V,c as m,f as T,j as h,k as r,e as u,g as c,m as g,x as I,y as X,i as O,n as $,h as b,t as A,F as E,z as F,a3 as N,X as Y}from"./index-BAaep8yZ.js";const W=["bounce","flash","pulse","rubberBand","shakeX","headShake","swing","tada","wobble","jello","heartBeat","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","hinge","jackInTheBox","rollIn","rollOut","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp"],q={class:"w-[280px]"},G={class:"flex flex-wrap justify-around mb-1"},H=["onMouseenter","onClick"],J=C({name:"ReAnimateSelector",__name:"index",props:x({placeholder:{type:String,default:"请选择动画"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(d){const v=d,a=j(d,"modelValue"),f=s(),n=s(W),w=V(n),_=m(()=>["mt-1","flex","border","w-[130px]","h-[100px]","items-center","cursor-pointer","transition-all","justify-center","border-[#e5e7eb]","hover:text-primary","hover:duration-[700ms]"]),L=m(()=>e=>a.value===e?{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}:"");function R(e){a.value=e}function k(){a.value=""}function B(e){f.value=e,n.value=w.value.filter(o=>o.includes(e))}const t=s({});function y(e){var o;t.value[e]=(o=t.value[e])!=null&&o.loading?Object.assign({},t.value[e],{loading:!1}):Object.assign({},t.value[e],{loading:!0})}function D(){t.value={}}return(e,o)=>{const U=r("el-empty"),z=r("el-scrollbar"),S=r("el-select");return u(),T(S,{clearable:"",filterable:"",placeholder:v.placeholder,"popper-class":"pure-animate-popper","model-value":a.value,"filter-method":B,onClear:k},{empty:h(()=>[c("div",q,[g(z,{noresize:"",height:"212px","view-style":{overflow:"hidden"},class:"border-t border-[#e5e7eb]"},{default:h(()=>[c("ul",G,[(u(!0),I(E,null,X(n.value,(l,i)=>{var p;return u(),I("li",{key:i,class:O(_.value),style:$(L.value(l)),onMouseenter:b(M=>y(i),["prevent"]),onMouseleave:b(D,["prevent"]),onClick:M=>R(l)},[c("h4",{class:O([`animate__animated animate__${(p=t.value[i])!=null&&p.loading?l+" animate__infinite":""} `])},A(l),3)],46,H)}),128))]),F(g(U,{description:`${f.value} 动画不存在`,"image-size":60},null,8,["description"]),[[N,n.value.length===0]])]),_:1})])]),_:1},8,["placeholder","model-value"])}}}),P=Y(J);export{P as R};
diff --git a/dist/static/js/index-hU2OJnd0.js b/dist/static/js/index-D2So5R_t.js
similarity index 69%
rename from dist/static/js/index-hU2OJnd0.js
rename to dist/static/js/index-D2So5R_t.js
index 134687eeb..e93129d58 100644
--- a/dist/static/js/index-hU2OJnd0.js
+++ b/dist/static/js/index-D2So5R_t.js
@@ -1 +1 @@
-import n from"./vertical-UaLV7ydW.js";import c from"./horizontal-B_MF-zcX.js";import{d as i,f as p,j as e,k as o,e as _,g as s,l as t,m as a}from"./index-DZuaHQDs.js";import"./vue-virtual-scroller.esm-B5q3MC9d.js";const m={class:"font-medium"},d={class:"w-full flex justify-around flex-wrap"},w=i({name:"VirtualList",__name:"index",setup(u){return(f,x)=>{const r=o("el-link"),l=o("el-card");return _(),p(l,{shadow:"never"},{header:e(()=>[s("div",m,[t(" 虚拟列表( "),a(r,{href:"https://github.com/Akryum/vue-virtual-scroller/tree/next/packages/vue-virtual-scroller",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:e(()=>[t(" github地址 ")]),_:1}),t(" ) ")])]),default:e(()=>[s("div",d,[a(n,{class:"h-[500px] w-[500px]"}),a(c,{class:"h-[500px] w-[500px]"})])]),_:1})}}});export{w as default};
+import n from"./vertical-CHuLktBr.js";import c from"./horizontal-CoAFOoJC.js";import{d as i,f as p,j as e,k as o,e as _,g as s,l as t,m as a}from"./index-BAaep8yZ.js";import"./vue-virtual-scroller.esm-BNXNqi38.js";const m={class:"font-medium"},d={class:"w-full flex justify-around flex-wrap"},w=i({name:"VirtualList",__name:"index",setup(u){return(f,x)=>{const r=o("el-link"),l=o("el-card");return _(),p(l,{shadow:"never"},{header:e(()=>[s("div",m,[t(" 虚拟列表( "),a(r,{href:"https://github.com/Akryum/vue-virtual-scroller/tree/next/packages/vue-virtual-scroller",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:e(()=>[t(" github地址 ")]),_:1}),t(" ) ")])]),default:e(()=>[s("div",d,[a(n,{class:"h-[500px] w-[500px]"}),a(c,{class:"h-[500px] w-[500px]"})])]),_:1})}}});export{w as default};
diff --git a/dist/static/js/index-ByClEwb7.js b/dist/static/js/index-D2wsyi_I.js
similarity index 99%
rename from dist/static/js/index-ByClEwb7.js
rename to dist/static/js/index-D2wsyi_I.js
index b773e5780..f8c8254f6 100644
--- a/dist/static/js/index-ByClEwb7.js
+++ b/dist/static/js/index-D2wsyi_I.js
@@ -1 +1 @@
-var Xe=Object.defineProperty,Ge=Object.defineProperties;var Ke=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var Ye=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;var fe=(t,e,s)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,Y=(t,e)=>{for(var s in e||(e={}))Ye.call(e,s)&&fe(t,s,e[s]);if(Ee)for(var s of Ee(e))Ze.call(e,s)&&fe(t,s,e[s]);return t},Ce=(t,e)=>Ge(t,Ke(e));var y=(t,e,s)=>(fe(t,typeof e!="symbol"?e+"":e,s),s),Ie=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var f=(t,e,s)=>(Ie(t,e,"read from private field"),s?s.call(t):e.get(t)),h=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)};var n=(t,e,s)=>(Ie(t,e,"access private method"),s);var p=(t,e,s)=>new Promise((i,r)=>{var o=l=>{try{a(s.next(l))}catch(d){r(d)}},u=l=>{try{a(s.throw(l))}catch(d){r(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,u);a((s=s.apply(t,e)).next())});import{d as et,r as tt,o as st,m as Ne}from"./index-DZuaHQDs.js";const xe=t=>Array.isArray(t),Me=t=>xe(t)?t:[t];let it=function(t){let e=function(c){return Me(c).forEach(T=>{var K;return m.set(Symbol((K=T.char)==null?void 0:K.innerText),r(Y({},T)))}),this},s=()=>l().filter(c=>c.typeable),i=function(c,T){let K=[...m.keys()];m.set(K[c],r(T))},r=c=>(c.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},c),o=function(){m.forEach(c=>delete c.done)},u=function(){m=new Map,e(t)},a=()=>m,l=()=>Array.from(m.values()),d=c=>m.delete(c),E=(c=!1)=>c?l():l().filter(T=>!T.done),G=(c,T=!1)=>T?m.delete(c):m.get(c).done=!0,m=new Map;return e(t),{add:e,set:i,wipe:u,done:G,reset:o,destroy:d,getItems:E,getQueue:a,getTypeable:s}};const Re="data-typeit-id",q="ti-cursor",rt="END",nt={started:!1,completed:!1,frozen:!1,destroyed:!1},x={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(t=>({opacity:t})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},ot=`[${Re}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`,ee=t=>document.createElement(t),we=t=>document.createTextNode(t),$e=(t,e="")=>{let s=ee("style");s.id=e,s.appendChild(we(t)),document.head.appendChild(s)},Ae=t=>(xe(t)||(t=[t/2,t/2]),t),Le=(t,e)=>Math.abs(Math.random()*(t+e-(t-e))+(t-e));let ve=t=>t/2;function ut(t){let{speed:e,deleteSpeed:s,lifeLike:i}=t;return s=s!==null?s:e/3,i?[Le(e,ve(e)),Le(s,ve(s))]:[e,s]}const Fe=t=>Array.from(t);let Pe=t=>([...t.childNodes].forEach(e=>{if(e.nodeValue){[...e.nodeValue].forEach(s=>{e.parentNode.insertBefore(we(s),e)}),e.remove();return}Pe(e)}),t);const He=t=>{let e=document.implementation.createHTMLDocument();return e.body.innerHTML=t,Pe(e.body)};function Qe(t,e=!1,s=!1){let i=t.querySelector(`.${q}`),r=document.createTreeWalker(t,NodeFilter.SHOW_ALL,{acceptNode:a=>{var l,d;if(i&&s){if((l=a.classList)!=null&&l.contains(q))return NodeFilter.FILTER_ACCEPT;if(i.contains(a))return NodeFilter.FILTER_REJECT}return(d=a.classList)!=null&&d.contains(q)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),o,u=[];for(;o=r.nextNode();)o.originalParent||(o.originalParent=o.parentNode),u.push(o);return e?u.reverse():u}function at(t){return Qe(He(t))}function lt(t,e=!0){return e?at(t):Fe(t).map(we)}const Be=t=>Number.isInteger(t),De=({queueItems:t,selector:e,cursorPosition:s,to:i})=>{if(Be(e))return e*-1;let r=new RegExp(rt,"i").test(i),o=e?[...t].reverse().findIndex(({char:a})=>{let l=a.parentElement,d=l.matches(e);return r&&d?!0:d&&l.firstChild.isSameNode(a)}):-1;o<0&&(o=r?0:t.length-1);let u=r?0:1;return o-s+u},ht=t=>(t.forEach(clearTimeout),[]),Z=(t,e)=>new Array(e).fill(t);let re=t=>new Promise(e=>{requestAnimationFrame(()=>p(void 0,null,function*(){e(yield t())}))}),_e=t=>t==null?void 0:t.getAnimations().find(e=>e.id===t.dataset.tiAnimationId),ze=({cursor:t,frames:e,options:s})=>{let i=t.animate(e,s);return i.pause(),i.id=t.dataset.tiAnimationId,re(()=>{re(()=>{i.play()})}),i},dt=({cursor:t,options:e,cursorOptions:s})=>{if(!t||!s)return;let i=_e(t),r;i&&(e.delay=i.effect.getComputedTiming().delay,r=i.currentTime,i.cancel());let o=ze({cursor:t,frames:s.animation.frames,options:e});return r&&(o.currentTime=r),o},qe=t=>{var e;return(e=t.func)==null?void 0:e.call(null)},ct=o=>p(void 0,[o],function*({index:t,queueItems:e,wait:s,cursor:i,cursorOptions:r}){let u=e[t][1],a=[],l=t,d=u,E=()=>d&&!d.delay,G=u.shouldPauseCursor()&&r.autoPause;for(;E();)a.push(d),E()&&l++,d=e[l]?e[l][1]:null;if(a.length)return yield re(()=>p(void 0,null,function*(){for(let T of a)yield qe(T)})),l-1;let m=_e(i),c;return m&&(c=Ce(Y({},m.effect.getComputedTiming()),{delay:G?r.autoPauseDelay:0})),yield s(()=>p(void 0,null,function*(){m&&G&&m.cancel(),yield re(()=>{qe(u)})}),u.delay),yield dt({cursor:i,options:c,cursorOptions:r}),t});const ft=(t,e)=>{new IntersectionObserver((i,r)=>{i.forEach(o=>{o.isIntersecting&&(e(),r.unobserve(t))})},{threshold:1}).observe(t)},pt=()=>Math.random().toString().substring(2,9),ne=t=>"value"in t;let mt=t=>ne(t)?Fe(t.value):Qe(t,!0).filter(e=>!(e.childNodes.length>0)),k=t=>typeof t=="function"?t():t,Se=(t,e=document,s=!1)=>e[`querySelector${s?"All":""}`](t),yt=t=>/body/i.test(t==null?void 0:t.tagName),bt=(t,e)=>{if(ne(t)){t.value=`${t.value}${e.textContent}`;return}e.innerHTML="";let s=yt(e.originalParent)?t:e.originalParent||t;s.insertBefore(e,Se("."+q,s)||null)};const gt=t=>/<(.+)>(.*?)<\/(.+)>/.test(t.outerHTML),F=(t,e)=>Object.assign({},t,e);let Tt=t=>{var e,s,i;if(typeof t=="object"){let r={},{frames:o,options:u}=x.cursor.animation;return r.animation=t.animation||{},r.animation.frames=((e=t.animation)==null?void 0:e.frames)||o,r.animation.options=F(u,((s=t.animation)==null?void 0:s.options)||{}),r.autoPause=(i=t.autoPause)!=null?i:x.cursor.autoPause,r.autoPauseDelay=t.autoPauseDelay||x.cursor.autoPauseDelay,r}return t===!0?x.cursor:t};const wt=(t,e)=>{if(!t)return;let s=t.parentNode;(s.childNodes.length>1||s.isSameNode(e)?t:s).remove()},Pt=(t,e,s)=>{let i=e[s-1],r=Se(`.${q}`,t);t=(i==null?void 0:i.parentNode)||t,t.insertBefore(r,i||null)};function St(t){return typeof t=="string"?Se(t):t}let Et={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"},Ct=(t,e)=>{let i=`${`[${Re}='${t}']`} .${q}`,r=getComputedStyle(e),o=Object.entries(Et).reduce((u,[a,l])=>`${u} ${a}: var(--ti-cursor-${a}, ${l||r[a]});`,"");$e(`${i} { display: inline-block; width: 0; ${o} }`,t)};function It(t){return t.replace(//g,"").trim().split(/
/)}let Nt=(t,e,s)=>Math.min(Math.max(e+t,0),s.length),At=(t,e,s)=>new Promise(i=>{let r=()=>p(void 0,null,function*(){yield t(),i()});s.push(setTimeout(r,e||0))});var oe,Ue,I,H,V,pe,ue,Ve,j,me,O,ye,W,be,M,te,b,w,ae,je,N,Q,A,B,le,Oe,he,de,We,ce,Je,J,ge,R,se,L,_,$,ie,S,C,v,z,D,U,X,Te,g,P,ke;let Lt=(ke=class{constructor(e,s={}){h(this,oe);h(this,I);h(this,V);h(this,ue);h(this,j);h(this,O);h(this,W);h(this,M);h(this,b);h(this,ae);h(this,N);h(this,A);h(this,le);h(this,de);h(this,ce);h(this,J);h(this,R);h(this,L);h(this,$);h(this,S);h(this,v);h(this,D);h(this,X);h(this,g);y(this,"element");y(this,"timeouts");y(this,"cursorPosition");y(this,"predictedCursorPosition");y(this,"statuses",{started:!1,completed:!1,frozen:!1,destroyed:!1});y(this,"opts");y(this,"id");y(this,"queue");y(this,"cursor");y(this,"unfreeze",()=>{});y(this,"is",function(e){return this.statuses[e]});h(this,he,e=>{var s;e.cursor=Tt((s=e.cursor)!=null?s:x.cursor),this.opts.strings=n(this,de,We).call(this,Me(this.opts.strings)),this.opts=F(this.opts,{html:!f(this,D,U)&&this.opts.html,nextStringDelay:Ae(this.opts.nextStringDelay),loopDelay:Ae(this.opts.loopDelay)})});this.opts=F(x,s),this.element=St(e),this.timeouts=[],this.cursorPosition=0,this.unfreeze=()=>{},this.predictedCursorPosition=null,this.statuses=F({},nt),this.id=pt(),this.queue=it([{delay:this.opts.startDelay}]),f(this,he).call(this,s),this.cursor=n(this,ce,Je).call(this),this.element.dataset.typeitId=this.id,$e(ot),this.opts.strings.length&&n(this,le,Oe).call(this)}go(){return this.statuses.started?this:(n(this,W,be).call(this),this.opts.waitUntilVisible?(ft(this.element,n(this,I,H).bind(this)),this):(n(this,I,H).call(this),this))}destroy(e=!0){this.timeouts=ht(this.timeouts),k(e)&&this.cursor&&n(this,$,ie).call(this,this.cursor),this.statuses.destroyed=!0}reset(e){!this.is("destroyed")&&this.destroy(),e?(this.queue.wipe(),e(this)):this.queue.reset(),this.cursorPosition=0;for(let s in this.statuses)this.statuses[s]=!1;return this.element[n(this,M,te).call(this)?"value":"innerHTML"]="",this}type(e,s={}){e=k(e);let{instant:i}=s,r=n(this,N,Q).call(this,s),u=lt(e,this.opts.html).map(l=>({func:()=>n(this,R,se).call(this,l),char:l,delay:i||gt(l)?0:n(this,S,C).call(this),typeable:l.nodeType===Node.TEXT_NODE})),a=[r[0],{func:()=>p(this,null,function*(){return yield this.opts.beforeString(e,this)})},...u,{func:()=>p(this,null,function*(){return yield this.opts.afterString(e,this)})},r[1]];return n(this,b,w).call(this,a,s)}break(e={}){return n(this,b,w).call(this,{func:()=>n(this,R,se).call(this,ee("BR")),typeable:!0},e)}move(e,s={}){e=k(e);let i=n(this,N,Q).call(this,s),{instant:r,to:o}=s,u=De({queueItems:this.queue.getTypeable(),selector:e===null?"":e,to:o,cursorPosition:f(this,v,z)}),a=u<0?-1:1;return this.predictedCursorPosition=f(this,v,z)+u,n(this,b,w).call(this,[i[0],...Z({func:()=>n(this,V,pe).call(this,a),delay:r?0:n(this,S,C).call(this),cursorable:!0},Math.abs(u)),i[1]],s)}exec(e,s={}){let i=n(this,N,Q).call(this,s);return n(this,b,w).call(this,[i[0],{func:()=>e(this)},i[1]],s)}options(e,s={}){return e=k(e),n(this,A,B).call(this,e),n(this,b,w).call(this,{},s)}pause(e,s={}){return n(this,b,w).call(this,{delay:k(e)},s)}delete(e=null,s={}){e=k(e);let i=n(this,N,Q).call(this,s),r=e,{instant:o,to:u}=s,a=this.queue.getTypeable(),l=r===null?a.length:Be(r)?r:De({queueItems:a,selector:r,cursorPosition:f(this,v,z),to:u});return n(this,b,w).call(this,[i[0],...Z({func:n(this,L,_).bind(this),delay:o?0:n(this,S,C).call(this,1),deletable:!0},l),i[1]],s)}freeze(){this.statuses.frozen=!0}flush(e=()=>{}){return n(this,W,be).call(this),n(this,I,H).call(this,!1).then(e),this}getQueue(){return this.queue}getOptions(){return this.opts}updateOptions(e){return n(this,A,B).call(this,e)}getElement(){return this.element}empty(e={}){return n(this,b,w).call(this,{func:n(this,oe,Ue).bind(this)},e)}},oe=new WeakSet,Ue=function(){return p(this,null,function*(){if(n(this,M,te).call(this)){this.element.value="";return}f(this,g,P).forEach(n(this,$,ie).bind(this))})},I=new WeakSet,H=function(e=!0){return p(this,null,function*(){this.statuses.started=!0;let s=i=>{this.queue.done(i,!e)};try{let i=[...this.queue.getQueue()];for(let o=0;od+E).forEach(d=>{let[E]=i[d];s(E)}),o=l}s(u)}}if(!e)return this;if(this.statuses.completed=!0,yield this.opts.afterComplete(this),!this.opts.loop)throw"";let r=this.opts.loopDelay;n(this,O,ye).call(this,()=>p(this,null,function*(){yield n(this,ue,Ve).call(this,r[0]),n(this,I,H).call(this)}),r[1])}catch(i){}return this})},V=new WeakSet,pe=function(e){return p(this,null,function*(){this.cursorPosition=Nt(e,this.cursorPosition,f(this,g,P)),Pt(this.element,f(this,g,P),this.cursorPosition)})},ue=new WeakSet,Ve=function(e){return p(this,null,function*(){let s=f(this,v,z);s&&(yield n(this,V,pe).call(this,{value:s}));let i=f(this,g,P).map(r=>[Symbol(),{func:n(this,L,_).bind(this),delay:n(this,S,C).call(this,1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let r=0;r{this.unfreeze=()=>{this.statuses.frozen=!1,r()}})),i||(yield this.opts.beforeStep(this)),yield At(e,s,this.timeouts),i||(yield this.opts.afterStep(this))})},W=new WeakSet,be=function(){return p(this,null,function*(){if(!n(this,M,te).call(this)&&this.cursor&&this.element.appendChild(this.cursor),f(this,X,Te)){Ct(this.id,this.element),this.cursor.dataset.tiAnimationId=this.id;let{animation:e}=this.opts.cursor,{frames:s,options:i}=e;ze({frames:s,cursor:this.cursor,options:Y({duration:this.opts.cursorSpeed},i)})}})},M=new WeakSet,te=function(){return ne(this.element)},b=new WeakSet,w=function(e,s){return this.queue.add(e),n(this,ae,je).call(this,s),this},ae=new WeakSet,je=function(e={}){let s=e.delay;s&&this.queue.add({delay:s})},N=new WeakSet,Q=function(e={}){return[{func:()=>n(this,A,B).call(this,e)},{func:()=>n(this,A,B).call(this,this.opts)}]},A=new WeakSet,B=function(e){return p(this,null,function*(){this.opts=F(this.opts,e)})},le=new WeakSet,Oe=function(){let e=this.opts.strings.filter(s=>!!s);e.forEach((s,i)=>{if(this.type(s),i+1===e.length)return;let r=this.opts.breakLines?[{func:()=>n(this,R,se).call(this,ee("BR")),typeable:!0}]:Z({func:n(this,L,_).bind(this),delay:n(this,S,C).call(this,1)},this.queue.getTypeable().length);n(this,J,ge).call(this,r)})},he=new WeakMap,de=new WeakSet,We=function(e){let s=this.element.innerHTML;return s?(this.element.innerHTML="",this.opts.startDelete?(this.element.innerHTML=s,Pe(this.element),n(this,J,ge).call(this,Z({func:n(this,L,_).bind(this),delay:n(this,S,C).call(this,1),deletable:!0},f(this,g,P).length)),e):It(s).concat(e)):e},ce=new WeakSet,Je=function(){if(f(this,D,U))return null;let e=ee("span");return e.className=q,f(this,X,Te)?(e.innerHTML=He(this.opts.cursorChar).innerHTML,e):(e.style.visibility="hidden",e)},J=new WeakSet,ge=function(e){let s=this.opts.nextStringDelay;this.queue.add([{delay:s[0]},...e,{delay:s[1]}])},R=new WeakSet,se=function(e){bt(this.element,e)},L=new WeakSet,_=function(){f(this,g,P).length&&(f(this,D,U)?this.element.value=this.element.value.slice(0,-1):n(this,$,ie).call(this,f(this,g,P)[this.cursorPosition]))},$=new WeakSet,ie=function(e){wt(e,this.element)},S=new WeakSet,C=function(e=0){return ut(this.opts)[e]},v=new WeakSet,z=function(){var e;return(e=this.predictedCursorPosition)!=null?e:this.cursorPosition},D=new WeakSet,U=function(){return ne(this.element)},X=new WeakSet,Te=function(){return!!this.opts.cursor&&!f(this,D,U)},g=new WeakSet,P=function(){return mt(this.element)},ke);const vt=et({name:"TypeIt",props:{options:{type:Object,default:()=>({})}},setup(t,{slots:e,expose:s}){function i(u){throw new TypeError(u)}function r(){return navigator.language}const o=tt(null);return st(()=>{const u=o.value.querySelector(".type-it");if(!u){const l=r()==="zh-CN"?"请确保有且只有一个具有class属性为 'type-it' 的元素":"Please make sure that there is only one element with a Class attribute with 'type-it'";i(l)}const a=new Lt(u,t.options).go();s({typeIt:a})}),()=>{var u,a;return Ne("div",{ref:o},[(a=(u=e.default)==null?void 0:u.call(e))!=null?a:Ne("span",{class:"type-it"},null)])}}}),xt=vt;export{xt as T};
+var Xe=Object.defineProperty,Ge=Object.defineProperties;var Ke=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var Ye=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;var fe=(t,e,s)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,Y=(t,e)=>{for(var s in e||(e={}))Ye.call(e,s)&&fe(t,s,e[s]);if(Ee)for(var s of Ee(e))Ze.call(e,s)&&fe(t,s,e[s]);return t},Ce=(t,e)=>Ge(t,Ke(e));var y=(t,e,s)=>(fe(t,typeof e!="symbol"?e+"":e,s),s),Ie=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var f=(t,e,s)=>(Ie(t,e,"read from private field"),s?s.call(t):e.get(t)),h=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)};var n=(t,e,s)=>(Ie(t,e,"access private method"),s);var p=(t,e,s)=>new Promise((i,r)=>{var o=l=>{try{a(s.next(l))}catch(d){r(d)}},u=l=>{try{a(s.throw(l))}catch(d){r(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,u);a((s=s.apply(t,e)).next())});import{d as et,r as tt,o as st,m as Ne}from"./index-BAaep8yZ.js";const xe=t=>Array.isArray(t),Me=t=>xe(t)?t:[t];let it=function(t){let e=function(c){return Me(c).forEach(T=>{var K;return m.set(Symbol((K=T.char)==null?void 0:K.innerText),r(Y({},T)))}),this},s=()=>l().filter(c=>c.typeable),i=function(c,T){let K=[...m.keys()];m.set(K[c],r(T))},r=c=>(c.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},c),o=function(){m.forEach(c=>delete c.done)},u=function(){m=new Map,e(t)},a=()=>m,l=()=>Array.from(m.values()),d=c=>m.delete(c),E=(c=!1)=>c?l():l().filter(T=>!T.done),G=(c,T=!1)=>T?m.delete(c):m.get(c).done=!0,m=new Map;return e(t),{add:e,set:i,wipe:u,done:G,reset:o,destroy:d,getItems:E,getQueue:a,getTypeable:s}};const Re="data-typeit-id",q="ti-cursor",rt="END",nt={started:!1,completed:!1,frozen:!1,destroyed:!1},x={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(t=>({opacity:t})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},ot=`[${Re}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`,ee=t=>document.createElement(t),we=t=>document.createTextNode(t),$e=(t,e="")=>{let s=ee("style");s.id=e,s.appendChild(we(t)),document.head.appendChild(s)},Ae=t=>(xe(t)||(t=[t/2,t/2]),t),Le=(t,e)=>Math.abs(Math.random()*(t+e-(t-e))+(t-e));let ve=t=>t/2;function ut(t){let{speed:e,deleteSpeed:s,lifeLike:i}=t;return s=s!==null?s:e/3,i?[Le(e,ve(e)),Le(s,ve(s))]:[e,s]}const Fe=t=>Array.from(t);let Pe=t=>([...t.childNodes].forEach(e=>{if(e.nodeValue){[...e.nodeValue].forEach(s=>{e.parentNode.insertBefore(we(s),e)}),e.remove();return}Pe(e)}),t);const He=t=>{let e=document.implementation.createHTMLDocument();return e.body.innerHTML=t,Pe(e.body)};function Qe(t,e=!1,s=!1){let i=t.querySelector(`.${q}`),r=document.createTreeWalker(t,NodeFilter.SHOW_ALL,{acceptNode:a=>{var l,d;if(i&&s){if((l=a.classList)!=null&&l.contains(q))return NodeFilter.FILTER_ACCEPT;if(i.contains(a))return NodeFilter.FILTER_REJECT}return(d=a.classList)!=null&&d.contains(q)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),o,u=[];for(;o=r.nextNode();)o.originalParent||(o.originalParent=o.parentNode),u.push(o);return e?u.reverse():u}function at(t){return Qe(He(t))}function lt(t,e=!0){return e?at(t):Fe(t).map(we)}const Be=t=>Number.isInteger(t),De=({queueItems:t,selector:e,cursorPosition:s,to:i})=>{if(Be(e))return e*-1;let r=new RegExp(rt,"i").test(i),o=e?[...t].reverse().findIndex(({char:a})=>{let l=a.parentElement,d=l.matches(e);return r&&d?!0:d&&l.firstChild.isSameNode(a)}):-1;o<0&&(o=r?0:t.length-1);let u=r?0:1;return o-s+u},ht=t=>(t.forEach(clearTimeout),[]),Z=(t,e)=>new Array(e).fill(t);let re=t=>new Promise(e=>{requestAnimationFrame(()=>p(void 0,null,function*(){e(yield t())}))}),_e=t=>t==null?void 0:t.getAnimations().find(e=>e.id===t.dataset.tiAnimationId),ze=({cursor:t,frames:e,options:s})=>{let i=t.animate(e,s);return i.pause(),i.id=t.dataset.tiAnimationId,re(()=>{re(()=>{i.play()})}),i},dt=({cursor:t,options:e,cursorOptions:s})=>{if(!t||!s)return;let i=_e(t),r;i&&(e.delay=i.effect.getComputedTiming().delay,r=i.currentTime,i.cancel());let o=ze({cursor:t,frames:s.animation.frames,options:e});return r&&(o.currentTime=r),o},qe=t=>{var e;return(e=t.func)==null?void 0:e.call(null)},ct=o=>p(void 0,[o],function*({index:t,queueItems:e,wait:s,cursor:i,cursorOptions:r}){let u=e[t][1],a=[],l=t,d=u,E=()=>d&&!d.delay,G=u.shouldPauseCursor()&&r.autoPause;for(;E();)a.push(d),E()&&l++,d=e[l]?e[l][1]:null;if(a.length)return yield re(()=>p(void 0,null,function*(){for(let T of a)yield qe(T)})),l-1;let m=_e(i),c;return m&&(c=Ce(Y({},m.effect.getComputedTiming()),{delay:G?r.autoPauseDelay:0})),yield s(()=>p(void 0,null,function*(){m&&G&&m.cancel(),yield re(()=>{qe(u)})}),u.delay),yield dt({cursor:i,options:c,cursorOptions:r}),t});const ft=(t,e)=>{new IntersectionObserver((i,r)=>{i.forEach(o=>{o.isIntersecting&&(e(),r.unobserve(t))})},{threshold:1}).observe(t)},pt=()=>Math.random().toString().substring(2,9),ne=t=>"value"in t;let mt=t=>ne(t)?Fe(t.value):Qe(t,!0).filter(e=>!(e.childNodes.length>0)),k=t=>typeof t=="function"?t():t,Se=(t,e=document,s=!1)=>e[`querySelector${s?"All":""}`](t),yt=t=>/body/i.test(t==null?void 0:t.tagName),bt=(t,e)=>{if(ne(t)){t.value=`${t.value}${e.textContent}`;return}e.innerHTML="";let s=yt(e.originalParent)?t:e.originalParent||t;s.insertBefore(e,Se("."+q,s)||null)};const gt=t=>/<(.+)>(.*?)<\/(.+)>/.test(t.outerHTML),F=(t,e)=>Object.assign({},t,e);let Tt=t=>{var e,s,i;if(typeof t=="object"){let r={},{frames:o,options:u}=x.cursor.animation;return r.animation=t.animation||{},r.animation.frames=((e=t.animation)==null?void 0:e.frames)||o,r.animation.options=F(u,((s=t.animation)==null?void 0:s.options)||{}),r.autoPause=(i=t.autoPause)!=null?i:x.cursor.autoPause,r.autoPauseDelay=t.autoPauseDelay||x.cursor.autoPauseDelay,r}return t===!0?x.cursor:t};const wt=(t,e)=>{if(!t)return;let s=t.parentNode;(s.childNodes.length>1||s.isSameNode(e)?t:s).remove()},Pt=(t,e,s)=>{let i=e[s-1],r=Se(`.${q}`,t);t=(i==null?void 0:i.parentNode)||t,t.insertBefore(r,i||null)};function St(t){return typeof t=="string"?Se(t):t}let Et={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"},Ct=(t,e)=>{let i=`${`[${Re}='${t}']`} .${q}`,r=getComputedStyle(e),o=Object.entries(Et).reduce((u,[a,l])=>`${u} ${a}: var(--ti-cursor-${a}, ${l||r[a]});`,"");$e(`${i} { display: inline-block; width: 0; ${o} }`,t)};function It(t){return t.replace(//g,"").trim().split(/
/)}let Nt=(t,e,s)=>Math.min(Math.max(e+t,0),s.length),At=(t,e,s)=>new Promise(i=>{let r=()=>p(void 0,null,function*(){yield t(),i()});s.push(setTimeout(r,e||0))});var oe,Ue,I,H,V,pe,ue,Ve,j,me,O,ye,W,be,M,te,b,w,ae,je,N,Q,A,B,le,Oe,he,de,We,ce,Je,J,ge,R,se,L,_,$,ie,S,C,v,z,D,U,X,Te,g,P,ke;let Lt=(ke=class{constructor(e,s={}){h(this,oe);h(this,I);h(this,V);h(this,ue);h(this,j);h(this,O);h(this,W);h(this,M);h(this,b);h(this,ae);h(this,N);h(this,A);h(this,le);h(this,de);h(this,ce);h(this,J);h(this,R);h(this,L);h(this,$);h(this,S);h(this,v);h(this,D);h(this,X);h(this,g);y(this,"element");y(this,"timeouts");y(this,"cursorPosition");y(this,"predictedCursorPosition");y(this,"statuses",{started:!1,completed:!1,frozen:!1,destroyed:!1});y(this,"opts");y(this,"id");y(this,"queue");y(this,"cursor");y(this,"unfreeze",()=>{});y(this,"is",function(e){return this.statuses[e]});h(this,he,e=>{var s;e.cursor=Tt((s=e.cursor)!=null?s:x.cursor),this.opts.strings=n(this,de,We).call(this,Me(this.opts.strings)),this.opts=F(this.opts,{html:!f(this,D,U)&&this.opts.html,nextStringDelay:Ae(this.opts.nextStringDelay),loopDelay:Ae(this.opts.loopDelay)})});this.opts=F(x,s),this.element=St(e),this.timeouts=[],this.cursorPosition=0,this.unfreeze=()=>{},this.predictedCursorPosition=null,this.statuses=F({},nt),this.id=pt(),this.queue=it([{delay:this.opts.startDelay}]),f(this,he).call(this,s),this.cursor=n(this,ce,Je).call(this),this.element.dataset.typeitId=this.id,$e(ot),this.opts.strings.length&&n(this,le,Oe).call(this)}go(){return this.statuses.started?this:(n(this,W,be).call(this),this.opts.waitUntilVisible?(ft(this.element,n(this,I,H).bind(this)),this):(n(this,I,H).call(this),this))}destroy(e=!0){this.timeouts=ht(this.timeouts),k(e)&&this.cursor&&n(this,$,ie).call(this,this.cursor),this.statuses.destroyed=!0}reset(e){!this.is("destroyed")&&this.destroy(),e?(this.queue.wipe(),e(this)):this.queue.reset(),this.cursorPosition=0;for(let s in this.statuses)this.statuses[s]=!1;return this.element[n(this,M,te).call(this)?"value":"innerHTML"]="",this}type(e,s={}){e=k(e);let{instant:i}=s,r=n(this,N,Q).call(this,s),u=lt(e,this.opts.html).map(l=>({func:()=>n(this,R,se).call(this,l),char:l,delay:i||gt(l)?0:n(this,S,C).call(this),typeable:l.nodeType===Node.TEXT_NODE})),a=[r[0],{func:()=>p(this,null,function*(){return yield this.opts.beforeString(e,this)})},...u,{func:()=>p(this,null,function*(){return yield this.opts.afterString(e,this)})},r[1]];return n(this,b,w).call(this,a,s)}break(e={}){return n(this,b,w).call(this,{func:()=>n(this,R,se).call(this,ee("BR")),typeable:!0},e)}move(e,s={}){e=k(e);let i=n(this,N,Q).call(this,s),{instant:r,to:o}=s,u=De({queueItems:this.queue.getTypeable(),selector:e===null?"":e,to:o,cursorPosition:f(this,v,z)}),a=u<0?-1:1;return this.predictedCursorPosition=f(this,v,z)+u,n(this,b,w).call(this,[i[0],...Z({func:()=>n(this,V,pe).call(this,a),delay:r?0:n(this,S,C).call(this),cursorable:!0},Math.abs(u)),i[1]],s)}exec(e,s={}){let i=n(this,N,Q).call(this,s);return n(this,b,w).call(this,[i[0],{func:()=>e(this)},i[1]],s)}options(e,s={}){return e=k(e),n(this,A,B).call(this,e),n(this,b,w).call(this,{},s)}pause(e,s={}){return n(this,b,w).call(this,{delay:k(e)},s)}delete(e=null,s={}){e=k(e);let i=n(this,N,Q).call(this,s),r=e,{instant:o,to:u}=s,a=this.queue.getTypeable(),l=r===null?a.length:Be(r)?r:De({queueItems:a,selector:r,cursorPosition:f(this,v,z),to:u});return n(this,b,w).call(this,[i[0],...Z({func:n(this,L,_).bind(this),delay:o?0:n(this,S,C).call(this,1),deletable:!0},l),i[1]],s)}freeze(){this.statuses.frozen=!0}flush(e=()=>{}){return n(this,W,be).call(this),n(this,I,H).call(this,!1).then(e),this}getQueue(){return this.queue}getOptions(){return this.opts}updateOptions(e){return n(this,A,B).call(this,e)}getElement(){return this.element}empty(e={}){return n(this,b,w).call(this,{func:n(this,oe,Ue).bind(this)},e)}},oe=new WeakSet,Ue=function(){return p(this,null,function*(){if(n(this,M,te).call(this)){this.element.value="";return}f(this,g,P).forEach(n(this,$,ie).bind(this))})},I=new WeakSet,H=function(e=!0){return p(this,null,function*(){this.statuses.started=!0;let s=i=>{this.queue.done(i,!e)};try{let i=[...this.queue.getQueue()];for(let o=0;od+E).forEach(d=>{let[E]=i[d];s(E)}),o=l}s(u)}}if(!e)return this;if(this.statuses.completed=!0,yield this.opts.afterComplete(this),!this.opts.loop)throw"";let r=this.opts.loopDelay;n(this,O,ye).call(this,()=>p(this,null,function*(){yield n(this,ue,Ve).call(this,r[0]),n(this,I,H).call(this)}),r[1])}catch(i){}return this})},V=new WeakSet,pe=function(e){return p(this,null,function*(){this.cursorPosition=Nt(e,this.cursorPosition,f(this,g,P)),Pt(this.element,f(this,g,P),this.cursorPosition)})},ue=new WeakSet,Ve=function(e){return p(this,null,function*(){let s=f(this,v,z);s&&(yield n(this,V,pe).call(this,{value:s}));let i=f(this,g,P).map(r=>[Symbol(),{func:n(this,L,_).bind(this),delay:n(this,S,C).call(this,1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let r=0;r{this.unfreeze=()=>{this.statuses.frozen=!1,r()}})),i||(yield this.opts.beforeStep(this)),yield At(e,s,this.timeouts),i||(yield this.opts.afterStep(this))})},W=new WeakSet,be=function(){return p(this,null,function*(){if(!n(this,M,te).call(this)&&this.cursor&&this.element.appendChild(this.cursor),f(this,X,Te)){Ct(this.id,this.element),this.cursor.dataset.tiAnimationId=this.id;let{animation:e}=this.opts.cursor,{frames:s,options:i}=e;ze({frames:s,cursor:this.cursor,options:Y({duration:this.opts.cursorSpeed},i)})}})},M=new WeakSet,te=function(){return ne(this.element)},b=new WeakSet,w=function(e,s){return this.queue.add(e),n(this,ae,je).call(this,s),this},ae=new WeakSet,je=function(e={}){let s=e.delay;s&&this.queue.add({delay:s})},N=new WeakSet,Q=function(e={}){return[{func:()=>n(this,A,B).call(this,e)},{func:()=>n(this,A,B).call(this,this.opts)}]},A=new WeakSet,B=function(e){return p(this,null,function*(){this.opts=F(this.opts,e)})},le=new WeakSet,Oe=function(){let e=this.opts.strings.filter(s=>!!s);e.forEach((s,i)=>{if(this.type(s),i+1===e.length)return;let r=this.opts.breakLines?[{func:()=>n(this,R,se).call(this,ee("BR")),typeable:!0}]:Z({func:n(this,L,_).bind(this),delay:n(this,S,C).call(this,1)},this.queue.getTypeable().length);n(this,J,ge).call(this,r)})},he=new WeakMap,de=new WeakSet,We=function(e){let s=this.element.innerHTML;return s?(this.element.innerHTML="",this.opts.startDelete?(this.element.innerHTML=s,Pe(this.element),n(this,J,ge).call(this,Z({func:n(this,L,_).bind(this),delay:n(this,S,C).call(this,1),deletable:!0},f(this,g,P).length)),e):It(s).concat(e)):e},ce=new WeakSet,Je=function(){if(f(this,D,U))return null;let e=ee("span");return e.className=q,f(this,X,Te)?(e.innerHTML=He(this.opts.cursorChar).innerHTML,e):(e.style.visibility="hidden",e)},J=new WeakSet,ge=function(e){let s=this.opts.nextStringDelay;this.queue.add([{delay:s[0]},...e,{delay:s[1]}])},R=new WeakSet,se=function(e){bt(this.element,e)},L=new WeakSet,_=function(){f(this,g,P).length&&(f(this,D,U)?this.element.value=this.element.value.slice(0,-1):n(this,$,ie).call(this,f(this,g,P)[this.cursorPosition]))},$=new WeakSet,ie=function(e){wt(e,this.element)},S=new WeakSet,C=function(e=0){return ut(this.opts)[e]},v=new WeakSet,z=function(){var e;return(e=this.predictedCursorPosition)!=null?e:this.cursorPosition},D=new WeakSet,U=function(){return ne(this.element)},X=new WeakSet,Te=function(){return!!this.opts.cursor&&!f(this,D,U)},g=new WeakSet,P=function(){return mt(this.element)},ke);const vt=et({name:"TypeIt",props:{options:{type:Object,default:()=>({})}},setup(t,{slots:e,expose:s}){function i(u){throw new TypeError(u)}function r(){return navigator.language}const o=tt(null);return st(()=>{const u=o.value.querySelector(".type-it");if(!u){const l=r()==="zh-CN"?"请确保有且只有一个具有class属性为 'type-it' 的元素":"Please make sure that there is only one element with a Class attribute with 'type-it'";i(l)}const a=new Lt(u,t.options).go();s({typeIt:a})}),()=>{var u,a;return Ne("div",{ref:o},[(a=(u=e.default)==null?void 0:u.call(e))!=null?a:Ne("span",{class:"type-it"},null)])}}}),xt=vt;export{xt as T};
diff --git a/dist/static/js/index-D4Po64Ba.js b/dist/static/js/index-D4Po64Ba.js
new file mode 100644
index 000000000..ac7ec40a6
--- /dev/null
+++ b/dist/static/js/index-D4Po64Ba.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-6BB8iFAL.js";import"./columns-C-mFv53s.js";import"./index-BAaep8yZ.js";import"./data-BlE4BKqa.js";export{o as default};
diff --git a/dist/static/js/index-Dff9ED1x.js b/dist/static/js/index-D5ALe1Sb.js
similarity index 86%
rename from dist/static/js/index-Dff9ED1x.js
rename to dist/static/js/index-D5ALe1Sb.js
index 3ce335cd9..ff6c42f6c 100644
--- a/dist/static/js/index-Dff9ED1x.js
+++ b/dist/static/js/index-D5ALe1Sb.js
@@ -1 +1 @@
-import{R as m}from"./index-DPRqMGnN.js";import{d as q,as as B,r as S,x as _,m as s,j as o,k as i,v as N,e as n,F as v,y as h,z as p,f as l,g as a,t as y,n as z,u as t,aG as $,i as F,di as O,dj as T,A as W,B as A,_ as E}from"./index-DZuaHQDs.js";import G from"./index-B3uAdIM-.js";import{R as H}from"./index-BzxV1uYC.js";import{u as L}from"./index-C82p2FZD.js";import{_ as P}from"./bar.vue_vue_type_script_setup_true_lang-nASW1AjB.js";import{_ as U}from"./line.vue_vue_type_script_setup_true_lang-Cq2d4INt.js";import{_ as J}from"./round.vue_vue_type_script_setup_true_lang-VAMgh5S6.js";import{R as K}from"./index-BR25qlm3.js";import{c as M,b,p as Q,l as X}from"./columns-DMVrBhg1.js";import"./hooks-BoRjbw1y.js";import"./propTypes-DnNFEbDH.js";const x=f=>(W("data-v-da11050c"),f=f(),A(),f),Y={class:"flex justify-between"},Z={class:"text-md font-medium"},ee={class:"flex justify-between items-start mt-3"},te={class:"w-1/2"},ae={class:"font-medium text-green-500"},se={class:"flex justify-between"},oe=x(()=>a("span",{class:"text-md font-medium"},"分析概览",-1)),ne={class:"flex justify-between items-start mt-3"},le=x(()=>a("div",{class:"flex justify-between"},[a("span",{class:"text-md font-medium"},"解决概率")],-1)),re={class:"text-nowrap ml-2 text-text_color_regular text-sm"},ie=x(()=>a("div",{class:"flex justify-between"},[a("span",{class:"text-md font-medium"},"数据统计")],-1)),ce=x(()=>a("div",{class:"flex justify-between"},[a("span",{class:"text-md font-medium"},"最新动态")],-1)),de={class:"text-text_color_regular text-sm"},ue=q({name:"Welcome",__name:"index",setup(f){const{isDark:g}=B();let c=S(1);const k=[{label:"上周"},{label:"本周"}];return(me,w)=>{const D=i("IconifyIconOffline"),d=i("el-card"),j=i("el-progress"),C=i("el-timeline-item"),I=i("el-timeline"),R=i("el-scrollbar"),V=i("el-row"),u=N("motion");return n(),_("div",null,[s(V,{gutter:24,justify:"space-around"},{default:o(()=>[(n(!0),_(v,null,h(t(M),(e,r)=>p((n(),l(t(m),{key:r,class:"mb-[18px]",value:6,md:12,sm:12,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:80*(r+1)}}},{default:o(()=>[s(d,{class:"line-card",shadow:"never"},{default:o(()=>[a("div",Y,[a("span",Z,y(e.name),1),a("div",{class:"w-8 h-8 flex justify-center items-center rounded-md",style:z({backgroundColor:t(g)?"transparent":e.bgColor})},[s(D,{icon:e.icon,color:e.color,width:"18"},null,8,["icon","color"])],4)]),a("div",ee,[a("div",te,[s(t(H),{duration:e.duration,fontSize:"1.6em",startVal:100,endVal:e.value},null,8,["duration","endVal"]),a("p",ae,y(e.percent),1)]),e.data.length>1?(n(),l(t(U),{key:0,class:"!w-1/2",color:e.color,data:e.data},null,8,["color","data"])):(n(),l(t(J),{key:1,class:"!w-1/2"}))])]),_:2},1024)]),_:2},1032,["enter"])),[[u]])),128)),p((n(),l(t(m),{class:"mb-[18px]",value:18,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:o(()=>[s(d,{class:"bar-card",shadow:"never"},{default:o(()=>[a("div",se,[oe,s(t(K),{modelValue:t(c),"onUpdate:modelValue":w[0]||(w[0]=e=>$(c)?c.value=e:c=e),options:k},null,8,["modelValue"])]),a("div",ne,[s(t(P),{requireData:t(b)[t(c)].requireData,questionData:t(b)[t(c)].questionData},null,8,["requireData","questionData"])])]),_:1})]),_:1})),[[u]]),p((n(),l(t(m),{class:"mb-[18px]",value:6,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:480}}},{default:o(()=>[s(d,{shadow:"never"},{default:o(()=>[le,(n(!0),_(v,null,h(t(Q),(e,r)=>(n(),_("div",{key:r,class:F(["flex","justify-between","items-start",r===0?"mt-8":"mt-[2.15rem]"])},[s(j,{"text-inside":!0,percentage:e.percentage,"stroke-width":21,color:e.color,striped:"","striped-flow":"",duration:e.duration},null,8,["percentage","color","duration"]),a("span",re,y(e.week),1)],2))),128))]),_:1})]),_:1})),[[u]]),p((n(),l(t(m),{class:"mb-[18px]",value:18,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:560}}},{default:o(()=>[s(d,{shadow:"never",class:"h-[580px]"},{default:o(()=>[ie,s(G,{class:"mt-3"})]),_:1})]),_:1})),[[u]]),p((n(),l(t(m),{class:"mb-[18px]",value:6,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:640}}},{default:o(()=>[s(d,{shadow:"never"},{default:o(()=>[ce,s(R,{"max-height":"504",class:"mt-3"},{default:o(()=>[s(I,null,{default:o(()=>[(n(!0),_(v,null,h(t(X),(e,r)=>(n(),l(C,{key:r,center:"",placement:"top",icon:O(t(L)({background:t(T)({randomizeHue:!0})})),timestamp:e.date},{default:o(()=>[a("p",de,y(`新增 ${e.requiredNumber} 条问题,${e.resolveNumber} 条已解决`),1)]),_:2},1032,["icon","timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})),[[u]])]),_:1})])}}}),je=E(ue,[["__scopeId","data-v-da11050c"]]);export{je as default};
+import{R as m}from"./index-DKA0-Lk4.js";import{d as q,as as B,r as S,x as _,m as s,j as o,k as i,v as N,e as n,F as v,y as h,z as p,f as l,g as a,t as y,n as z,u as t,aG as $,i as F,di as O,dj as T,A as W,B as A,_ as E}from"./index-BAaep8yZ.js";import G from"./index-CsqlH5uL.js";import{R as H}from"./index-bjRGRK8c.js";import{u as L}from"./index-BsDzLG3-.js";import{_ as P}from"./bar.vue_vue_type_script_setup_true_lang-7CZHJhdW.js";import{_ as U}from"./line.vue_vue_type_script_setup_true_lang-CzrxabMz.js";import{_ as J}from"./round.vue_vue_type_script_setup_true_lang-C5VcZKv-.js";import{R as K}from"./index-Bf2XPo4E.js";import{c as M,b,p as Q,l as X}from"./columns-DP5UzbpV.js";import"./hooks-n2iC5q0_.js";import"./propTypes-DnNFEbDH.js";const x=f=>(W("data-v-da11050c"),f=f(),A(),f),Y={class:"flex justify-between"},Z={class:"text-md font-medium"},ee={class:"flex justify-between items-start mt-3"},te={class:"w-1/2"},ae={class:"font-medium text-green-500"},se={class:"flex justify-between"},oe=x(()=>a("span",{class:"text-md font-medium"},"分析概览",-1)),ne={class:"flex justify-between items-start mt-3"},le=x(()=>a("div",{class:"flex justify-between"},[a("span",{class:"text-md font-medium"},"解决概率")],-1)),re={class:"text-nowrap ml-2 text-text_color_regular text-sm"},ie=x(()=>a("div",{class:"flex justify-between"},[a("span",{class:"text-md font-medium"},"数据统计")],-1)),ce=x(()=>a("div",{class:"flex justify-between"},[a("span",{class:"text-md font-medium"},"最新动态")],-1)),de={class:"text-text_color_regular text-sm"},ue=q({name:"Welcome",__name:"index",setup(f){const{isDark:g}=B();let c=S(1);const k=[{label:"上周"},{label:"本周"}];return(me,w)=>{const D=i("IconifyIconOffline"),d=i("el-card"),j=i("el-progress"),C=i("el-timeline-item"),I=i("el-timeline"),R=i("el-scrollbar"),V=i("el-row"),u=N("motion");return n(),_("div",null,[s(V,{gutter:24,justify:"space-around"},{default:o(()=>[(n(!0),_(v,null,h(t(M),(e,r)=>p((n(),l(t(m),{key:r,class:"mb-[18px]",value:6,md:12,sm:12,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:80*(r+1)}}},{default:o(()=>[s(d,{class:"line-card",shadow:"never"},{default:o(()=>[a("div",Y,[a("span",Z,y(e.name),1),a("div",{class:"w-8 h-8 flex justify-center items-center rounded-md",style:z({backgroundColor:t(g)?"transparent":e.bgColor})},[s(D,{icon:e.icon,color:e.color,width:"18"},null,8,["icon","color"])],4)]),a("div",ee,[a("div",te,[s(t(H),{duration:e.duration,fontSize:"1.6em",startVal:100,endVal:e.value},null,8,["duration","endVal"]),a("p",ae,y(e.percent),1)]),e.data.length>1?(n(),l(t(U),{key:0,class:"!w-1/2",color:e.color,data:e.data},null,8,["color","data"])):(n(),l(t(J),{key:1,class:"!w-1/2"}))])]),_:2},1024)]),_:2},1032,["enter"])),[[u]])),128)),p((n(),l(t(m),{class:"mb-[18px]",value:18,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:o(()=>[s(d,{class:"bar-card",shadow:"never"},{default:o(()=>[a("div",se,[oe,s(t(K),{modelValue:t(c),"onUpdate:modelValue":w[0]||(w[0]=e=>$(c)?c.value=e:c=e),options:k},null,8,["modelValue"])]),a("div",ne,[s(t(P),{requireData:t(b)[t(c)].requireData,questionData:t(b)[t(c)].questionData},null,8,["requireData","questionData"])])]),_:1})]),_:1})),[[u]]),p((n(),l(t(m),{class:"mb-[18px]",value:6,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:480}}},{default:o(()=>[s(d,{shadow:"never"},{default:o(()=>[le,(n(!0),_(v,null,h(t(Q),(e,r)=>(n(),_("div",{key:r,class:F(["flex","justify-between","items-start",r===0?"mt-8":"mt-[2.15rem]"])},[s(j,{"text-inside":!0,percentage:e.percentage,"stroke-width":21,color:e.color,striped:"","striped-flow":"",duration:e.duration},null,8,["percentage","color","duration"]),a("span",re,y(e.week),1)],2))),128))]),_:1})]),_:1})),[[u]]),p((n(),l(t(m),{class:"mb-[18px]",value:18,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:560}}},{default:o(()=>[s(d,{shadow:"never",class:"h-[580px]"},{default:o(()=>[ie,s(G,{class:"mt-3"})]),_:1})]),_:1})),[[u]]),p((n(),l(t(m),{class:"mb-[18px]",value:6,xs:24,initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:640}}},{default:o(()=>[s(d,{shadow:"never"},{default:o(()=>[ce,s(R,{"max-height":"504",class:"mt-3"},{default:o(()=>[s(I,null,{default:o(()=>[(n(!0),_(v,null,h(t(X),(e,r)=>(n(),l(C,{key:r,center:"",placement:"top",icon:O(t(L)({background:t(T)({randomizeHue:!0})})),timestamp:e.date},{default:o(()=>[a("p",de,y(`新增 ${e.requiredNumber} 条问题,${e.resolveNumber} 条已解决`),1)]),_:2},1032,["icon","timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})),[[u]])]),_:1})])}}}),je=E(ue,[["__scopeId","data-v-da11050c"]]);export{je as default};
diff --git a/dist/static/js/index-D8rv4dsv.js b/dist/static/js/index-D8rv4dsv.js
new file mode 100644
index 000000000..15f1b0b22
--- /dev/null
+++ b/dist/static/js/index-D8rv4dsv.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-DrAkOoAK.js";import"./columns-BRGflYa4.js";import"./index-BAaep8yZ.js";import"./data-BlE4BKqa.js";export{o as default};
diff --git a/dist/static/js/index-D9rS7mK5.js b/dist/static/js/index-D9rS7mK5.js
new file mode 100644
index 000000000..f1e4d5f45
--- /dev/null
+++ b/dist/static/js/index-D9rS7mK5.js
@@ -0,0 +1,2 @@
+import{list as k}from"./list-7ZU1MWpI.js";import{d as x,r as y,f as l,j as e,k as t,e as n,g as p,l as r,m as o,x as g,y as C,t as v,W as N,K as z,u as B,F as T,_ as V}from"./index-BAaep8yZ.js";import"./base.vue_vue_type_script_setup_true_lang-C6KBDw9e.js";import"./data-BlE4BKqa.js";import"./stripe.vue_vue_type_script_setup_true_lang-DSuAGQTT.js";import"./border.vue_vue_type_script_setup_true_lang-Hrel9bTE.js";import"./status.vue_vue_type_style_index_0_lang-DjUr69Qs.js";import"./fixHeader.vue_vue_type_script_setup_true_lang-BHGrWEhA.js";import"./fixColumn.vue_vue_type_script_setup_true_lang-B4N-fkuQ.js";import"./fluidHeight.vue_vue_type_script_setup_true_lang-CAm3C5nC.js";import"./groupHeader.vue_vue_type_script_setup_true_lang-CV6hONr7.js";import"./radio.vue_vue_type_script_setup_true_lang-DDBhGiYs.js";import"./multipleChoice.vue_vue_type_script_setup_true_lang-D4yWYvo5.js";import"./sortable.vue_vue_type_script_setup_true_lang-zdLs7LIr.js";import"./filters.vue_vue_type_script_setup_true_lang-CtywBpPf.js";import"./index.vue_vue_type_script_setup_true_lang-6BB8iFAL.js";import"./columns-C-mFv53s.js";import"./index.vue_vue_type_script_setup_true_lang-DrAkOoAK.js";import"./columns-BRGflYa4.js";import"./expand.vue_vue_type_script_setup_true_lang-wsDdSmNM.js";import"./tree.vue_vue_type_script_setup_true_lang-QUoKSnn7.js";import"./totalRow.vue_vue_type_script_setup_true_lang-BmP-pfHZ.js";import"./merge.vue_vue_type_script_setup_true_lang-DHIQufnQ.js";import"./customIndex.vue_vue_type_script_setup_true_lang-DSHDRKKg.js";import"./layout.vue_vue_type_script_setup_true_lang-DPgd-p92.js";import"./nestProp.vue_vue_type_script_setup_true_lang-DPPv7M_2.js";import"./imgPreview.vue_vue_type_script_setup_true_lang-xFgNfYmU.js";const w={class:"card-header"},D={class:"font-medium"},F=x({name:"PureTable",__name:"index",setup($){const s=y(0);function _({index:m}){s.value=m}return(m,j)=>{const i=t("el-link"),d=t("el-alert"),u=t("el-tooltip"),f=t("el-tab-pane"),b=t("el-tabs"),h=t("el-card");return n(),l(h,{shadow:"never"},{header:e(()=>[p("div",w,[p("span",D,[r(" 二次封装 element-plus 的 "),o(i,{href:"https://element-plus.org/zh-CN/component/table.html",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[r(" el-table ")]),_:1}),r(" 完全兼容 api 并提供灵活的配置项以及完善的类型提示,不用将代码都写在 template 里了 "),o(i,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[r(" @pureadmin/table 源码 ")]),_:1})])])]),default:e(()=>[o(d,{title:`基础用法中大部分表格都没设置 row-key ,不过最好都设置一下,后端需返回唯一值的字段,比如id。作用:1. 用来优化 Table
+ 的渲染,尤其当字段在深层结构中;2. 防止某些操作导致表格组件内部混乱`,type:"info",closable:!1}),o(b,{onTabClick:_},{default:e(()=>[(n(!0),g(T,null,C(B(k),(a,c)=>(n(),l(f,{key:a.key,lazy:!0},{label:e(()=>[o(u,{content:`(第 ${c+1} 个示例)${a.content}`,placement:"top-end"},{default:e(()=>[p("span",null,v(a.title),1)]),_:2},1032,["content"])]),default:e(()=>[s.value==c?(n(),l(N(a.component),{key:0})):z("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}}),pe=V(F,[["__scopeId","data-v-24029e75"]]);export{pe as default};
diff --git a/dist/static/js/index-BIO_sD6N.js b/dist/static/js/index-DBkn7mxq.js
similarity index 90%
rename from dist/static/js/index-BIO_sD6N.js
rename to dist/static/js/index-DBkn7mxq.js
index fa7d70bd8..0dd6d9082 100644
--- a/dist/static/js/index-BIO_sD6N.js
+++ b/dist/static/js/index-DBkn7mxq.js
@@ -1 +1 @@
-import oe from"./tree-BL8ZYJQE.js";import{useUser as te}from"./hook-DD3vyp_L.js";import{R as le,P as ne}from"./refresh-Cn55-z1p.js";import{u as s}from"./hooks-BoRjbw1y.js";import{d as ae}from"./admin-line-CpqWPwjZ.js";import{d as re}from"./delete-Ce0TSdK5.js";import{d as ie}from"./edit-pen-Ci7W0xNM.js";import{d as se}from"./add-circle-line-DOJqVT3s.js";import{d as ce,r as g,k as a,v as de,e as z,x as D,m as o,i as m,u as e,g as C,j as t,l as i,z as me,t as pe,K as ue,_ as fe}from"./index-DZuaHQDs.js";import"./git-branch-line-BhusJOme.js";import"./more-2-fill-iTOisMwj.js";import"./role.vue_vue_type_script_setup_true_lang-CmK1XHzq.js";import"./index-DPRqMGnN.js";import"./index.vue_vue_type_script_setup_true_lang-hhcIctjF.js";import"./hooks-js6BFSIe.js";import"./upload.vue_vue_type_script_setup_true_lang-CAyvRQ1c.js";import"./index-D046tvJA.js";import"./system-DOAPCM6P.js";import"./epTheme-gTdHAM10.js";import"./sortable.esm-6WsHlDA5.js";const _e={width:24,height:24,body:''},he=_e,ge={width:24,height:24,body:''},Ce=ge,ve={width:1024,height:1024,body:''},ye=ve,be={key:0,class:"bg-[var(--el-fill-color-light)] w-full h-[46px] mb-2 pl-4 flex items-center"},ke={class:"flex-auto"},xe={style:{"font-size":"var(--el-font-size-base)"},class:"text-[rgba(42,46,54,0.5)] dark:text-[rgba(220,220,242,0.5)]"},we=ce({name:"SystemUser",__name:"index",setup(Ve){const v=g(),y=g(),b=g(),{form:c,loading:k,columns:U,dataList:Z,treeData:L,treeLoading:P,selectedNum:x,pagination:M,buttonClass:f,deviceDetection:_,onSearch:w,resetForm:B,onbatchDel:N,openDialog:V,onTreeSelect:T,handleUpdate:H,handleDelete:j,handleUpload:I,handleReset:E,handleRole:F,handleSizeChange:K,onSelectionCancel:q,handleCurrentChange:A,handleSelectionChange:G}=te(b,v);return(Se,r)=>{const S=a("el-input"),u=a("el-form-item"),$=a("el-option"),J=a("el-select"),n=a("el-button"),O=a("el-form"),R=a("el-popconfirm"),h=a("el-dropdown-item"),Q=a("el-dropdown-menu"),W=a("el-dropdown"),X=a("pure-table"),Y=de("motion-fade");return z(),D("div",{class:m(["flex","justify-between",e(_)()&&"flex-wrap"])},[o(oe,{ref_key:"treeRef",ref:v,class:m(["mr-2",e(_)()?"w-full":"min-w-[200px]"]),treeData:e(L),treeLoading:e(P),onTreeSelect:e(T)},null,8,["class","treeData","treeLoading","onTreeSelect"]),C("div",{class:m([e(_)()?["w-full","mt-2"]:"w-[calc(100%-200px)]"])},[o(O,{ref_key:"formRef",ref:y,inline:!0,model:e(c),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:t(()=>[o(u,{label:"用户名称:",prop:"username"},{default:t(()=>[o(S,{modelValue:e(c).username,"onUpdate:modelValue":r[0]||(r[0]=l=>e(c).username=l),placeholder:"请输入用户名称",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),o(u,{label:"手机号码:",prop:"phone"},{default:t(()=>[o(S,{modelValue:e(c).phone,"onUpdate:modelValue":r[1]||(r[1]=l=>e(c).phone=l),placeholder:"请输入手机号码",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),o(u,{label:"状态:",prop:"status"},{default:t(()=>[o(J,{modelValue:e(c).status,"onUpdate:modelValue":r[2]||(r[2]=l=>e(c).status=l),placeholder:"请选择",clearable:"",class:"!w-[180px]"},{default:t(()=>[o($,{label:"已开启",value:"1"}),o($,{label:"已关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),o(u,null,{default:t(()=>[o(n,{type:"primary",icon:e(s)("ri:search-line"),loading:e(k),onClick:e(w)},{default:t(()=>[i(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(n,{icon:e(s)(e(le)),onClick:r[3]||(r[3]=l=>e(B)(y.value))},{default:t(()=>[i(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(ne),{title:"用户管理(仅演示,操作后不生效)",columns:e(U),onRefresh:e(w)},{buttons:t(()=>[o(n,{type:"primary",icon:e(s)(e(se)),onClick:r[4]||(r[4]=l=>e(V)())},{default:t(()=>[i(" 新增用户 ")]),_:1},8,["icon"])]),default:t(({size:l,dynamicColumns:ee})=>[e(x)>0?me((z(),D("div",be,[C("div",ke,[C("span",xe," 已选 "+pe(e(x))+" 项 ",1),o(n,{type:"primary",text:"",onClick:e(q)},{default:t(()=>[i(" 取消选择 ")]),_:1},8,["onClick"])]),o(R,{title:"是否确认删除?",onConfirm:e(N)},{reference:t(()=>[o(n,{type:"danger",text:"",class:"mr-1"},{default:t(()=>[i(" 批量删除 ")]),_:1})]),_:1},8,["onConfirm"])])),[[Y]]):ue("",!0),o(X,{ref_key:"tableRef",ref:b,"row-key":"id",adaptive:"",adaptiveConfig:{offsetBottom:108},"align-whole":"center","table-layout":"auto",loading:e(k),size:l,data:e(Z),columns:ee,pagination:e(M),paginationSmall:l==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(G),onPageSizeChange:e(K),onPageCurrentChange:e(A)},{operation:t(({row:d})=>[o(n,{class:"reset-margin",link:"",type:"primary",size:l,icon:e(s)(e(ie)),onClick:p=>e(V)("修改",d)},{default:t(()=>[i(" 修改 ")]),_:2},1032,["size","icon","onClick"]),o(R,{title:`是否确认删除用户编号为${d.id}的这条数据`,onConfirm:p=>e(j)(d)},{reference:t(()=>[o(n,{class:"reset-margin",link:"",type:"primary",size:l,icon:e(s)(e(re))},{default:t(()=>[i(" 删除 ")]),_:2},1032,["size","icon"])]),_:2},1032,["title","onConfirm"]),o(W,null,{dropdown:t(()=>[o(Q,null,{default:t(()=>[o(h,null,{default:t(()=>[o(n,{class:m(e(f)),link:"",type:"primary",size:l,icon:e(s)(e(he)),onClick:p=>e(I)(d)},{default:t(()=>[i(" 上传头像 ")]),_:2},1032,["class","size","icon","onClick"])]),_:2},1024),o(h,null,{default:t(()=>[o(n,{class:m(e(f)),link:"",type:"primary",size:l,icon:e(s)(e(Ce)),onClick:p=>e(E)(d)},{default:t(()=>[i(" 重置密码 ")]),_:2},1032,["class","size","icon","onClick"])]),_:2},1024),o(h,null,{default:t(()=>[o(n,{class:m(e(f)),link:"",type:"primary",size:l,icon:e(s)(e(ae)),onClick:p=>e(F)(d)},{default:t(()=>[i(" 分配角色 ")]),_:2},1032,["class","size","icon","onClick"])]),_:2},1024)]),_:2},1024)]),default:t(()=>[o(n,{class:"ml-3 mt-[2px]",link:"",type:"primary",size:l,icon:e(s)(e(ye)),onClick:p=>e(H)(d)},null,8,["size","icon","onClick"])]),_:2},1024)]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange"])]),_:1},8,["columns","onRefresh"])],2)],2)}}}),Ge=fe(we,[["__scopeId","data-v-febb6646"]]);export{Ge as default};
+import oe from"./tree-DIi8B33i.js";import{useUser as te}from"./hook-Dy4g8Wew.js";import{R as le,P as ne}from"./refresh-hz8n9CjZ.js";import{u as s}from"./hooks-n2iC5q0_.js";import{d as ae}from"./admin-line-CpqWPwjZ.js";import{d as re}from"./delete-Ce0TSdK5.js";import{d as ie}from"./edit-pen-Ci7W0xNM.js";import{d as se}from"./add-circle-line-DOJqVT3s.js";import{d as ce,r as g,k as a,v as de,e as z,x as D,m as o,i as m,u as e,g as C,j as t,l as i,z as me,t as pe,K as ue,_ as fe}from"./index-BAaep8yZ.js";import"./git-branch-line-BhusJOme.js";import"./more-2-fill-iTOisMwj.js";import"./role.vue_vue_type_script_setup_true_lang-1ObIB5mC.js";import"./index-DKA0-Lk4.js";import"./index.vue_vue_type_script_setup_true_lang-Ykwek2QJ.js";import"./hooks-DRBPO7ss.js";import"./upload.vue_vue_type_script_setup_true_lang-gfxAulHz.js";import"./index-oabxNiy7.js";import"./system-C4sbqSKx.js";import"./epTheme-C6dkH2Du.js";import"./sortable.esm-6WsHlDA5.js";const _e={width:24,height:24,body:''},he=_e,ge={width:24,height:24,body:''},Ce=ge,ve={width:1024,height:1024,body:''},ye=ve,be={key:0,class:"bg-[var(--el-fill-color-light)] w-full h-[46px] mb-2 pl-4 flex items-center"},ke={class:"flex-auto"},xe={style:{"font-size":"var(--el-font-size-base)"},class:"text-[rgba(42,46,54,0.5)] dark:text-[rgba(220,220,242,0.5)]"},we=ce({name:"SystemUser",__name:"index",setup(Ve){const v=g(),y=g(),b=g(),{form:c,loading:k,columns:U,dataList:Z,treeData:L,treeLoading:P,selectedNum:x,pagination:M,buttonClass:f,deviceDetection:_,onSearch:w,resetForm:B,onbatchDel:N,openDialog:V,onTreeSelect:T,handleUpdate:H,handleDelete:j,handleUpload:I,handleReset:E,handleRole:F,handleSizeChange:K,onSelectionCancel:q,handleCurrentChange:A,handleSelectionChange:G}=te(b,v);return(Se,r)=>{const S=a("el-input"),u=a("el-form-item"),$=a("el-option"),J=a("el-select"),n=a("el-button"),O=a("el-form"),R=a("el-popconfirm"),h=a("el-dropdown-item"),Q=a("el-dropdown-menu"),W=a("el-dropdown"),X=a("pure-table"),Y=de("motion-fade");return z(),D("div",{class:m(["flex","justify-between",e(_)()&&"flex-wrap"])},[o(oe,{ref_key:"treeRef",ref:v,class:m(["mr-2",e(_)()?"w-full":"min-w-[200px]"]),treeData:e(L),treeLoading:e(P),onTreeSelect:e(T)},null,8,["class","treeData","treeLoading","onTreeSelect"]),C("div",{class:m([e(_)()?["w-full","mt-2"]:"w-[calc(100%-200px)]"])},[o(O,{ref_key:"formRef",ref:y,inline:!0,model:e(c),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:t(()=>[o(u,{label:"用户名称:",prop:"username"},{default:t(()=>[o(S,{modelValue:e(c).username,"onUpdate:modelValue":r[0]||(r[0]=l=>e(c).username=l),placeholder:"请输入用户名称",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),o(u,{label:"手机号码:",prop:"phone"},{default:t(()=>[o(S,{modelValue:e(c).phone,"onUpdate:modelValue":r[1]||(r[1]=l=>e(c).phone=l),placeholder:"请输入手机号码",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),o(u,{label:"状态:",prop:"status"},{default:t(()=>[o(J,{modelValue:e(c).status,"onUpdate:modelValue":r[2]||(r[2]=l=>e(c).status=l),placeholder:"请选择",clearable:"",class:"!w-[180px]"},{default:t(()=>[o($,{label:"已开启",value:"1"}),o($,{label:"已关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),o(u,null,{default:t(()=>[o(n,{type:"primary",icon:e(s)("ri:search-line"),loading:e(k),onClick:e(w)},{default:t(()=>[i(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(n,{icon:e(s)(e(le)),onClick:r[3]||(r[3]=l=>e(B)(y.value))},{default:t(()=>[i(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(ne),{title:"用户管理(仅演示,操作后不生效)",columns:e(U),onRefresh:e(w)},{buttons:t(()=>[o(n,{type:"primary",icon:e(s)(e(se)),onClick:r[4]||(r[4]=l=>e(V)())},{default:t(()=>[i(" 新增用户 ")]),_:1},8,["icon"])]),default:t(({size:l,dynamicColumns:ee})=>[e(x)>0?me((z(),D("div",be,[C("div",ke,[C("span",xe," 已选 "+pe(e(x))+" 项 ",1),o(n,{type:"primary",text:"",onClick:e(q)},{default:t(()=>[i(" 取消选择 ")]),_:1},8,["onClick"])]),o(R,{title:"是否确认删除?",onConfirm:e(N)},{reference:t(()=>[o(n,{type:"danger",text:"",class:"mr-1"},{default:t(()=>[i(" 批量删除 ")]),_:1})]),_:1},8,["onConfirm"])])),[[Y]]):ue("",!0),o(X,{ref_key:"tableRef",ref:b,"row-key":"id",adaptive:"",adaptiveConfig:{offsetBottom:108},"align-whole":"center","table-layout":"auto",loading:e(k),size:l,data:e(Z),columns:ee,pagination:e(M),paginationSmall:l==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(G),onPageSizeChange:e(K),onPageCurrentChange:e(A)},{operation:t(({row:d})=>[o(n,{class:"reset-margin",link:"",type:"primary",size:l,icon:e(s)(e(ie)),onClick:p=>e(V)("修改",d)},{default:t(()=>[i(" 修改 ")]),_:2},1032,["size","icon","onClick"]),o(R,{title:`是否确认删除用户编号为${d.id}的这条数据`,onConfirm:p=>e(j)(d)},{reference:t(()=>[o(n,{class:"reset-margin",link:"",type:"primary",size:l,icon:e(s)(e(re))},{default:t(()=>[i(" 删除 ")]),_:2},1032,["size","icon"])]),_:2},1032,["title","onConfirm"]),o(W,null,{dropdown:t(()=>[o(Q,null,{default:t(()=>[o(h,null,{default:t(()=>[o(n,{class:m(e(f)),link:"",type:"primary",size:l,icon:e(s)(e(he)),onClick:p=>e(I)(d)},{default:t(()=>[i(" 上传头像 ")]),_:2},1032,["class","size","icon","onClick"])]),_:2},1024),o(h,null,{default:t(()=>[o(n,{class:m(e(f)),link:"",type:"primary",size:l,icon:e(s)(e(Ce)),onClick:p=>e(E)(d)},{default:t(()=>[i(" 重置密码 ")]),_:2},1032,["class","size","icon","onClick"])]),_:2},1024),o(h,null,{default:t(()=>[o(n,{class:m(e(f)),link:"",type:"primary",size:l,icon:e(s)(e(ae)),onClick:p=>e(F)(d)},{default:t(()=>[i(" 分配角色 ")]),_:2},1032,["class","size","icon","onClick"])]),_:2},1024)]),_:2},1024)]),default:t(()=>[o(n,{class:"ml-3 mt-[2px]",link:"",type:"primary",size:l,icon:e(s)(e(ye)),onClick:p=>e(H)(d)},null,8,["size","icon","onClick"])]),_:2},1024)]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange"])]),_:1},8,["columns","onRefresh"])],2)],2)}}}),Ge=fe(we,[["__scopeId","data-v-febb6646"]]);export{Ge as default};
diff --git a/dist/static/js/index-iRWYsdSE.js b/dist/static/js/index-DGSssar_.js
similarity index 73%
rename from dist/static/js/index-iRWYsdSE.js
rename to dist/static/js/index-DGSssar_.js
index 2bc89bd17..71ef9715a 100644
--- a/dist/static/js/index-iRWYsdSE.js
+++ b/dist/static/js/index-DGSssar_.js
@@ -1 +1 @@
-import{_ as v}from"./base.vue_vue_type_script_setup_true_lang-BSGlyn-c.js";import{_ as x}from"./multi.vue_vue_type_script_setup_true_lang-IgF0TKnq.js";import{_ as k}from"./picUpload.vue_vue_type_script_setup_true_lang-CpUy9yE0.js";import{d as h,r as V,f as o,j as e,k as s,e as n,g as m,l as d,m as a,u as _,K as c,_ as w}from"./index-DZuaHQDs.js";import"./index.esm-B6to7K5-.js";import"./index-DPRqMGnN.js";const g=v,N=x,y=k,B={class:"card-header"},C={class:"font-medium"},$=h({name:"Editor",__name:"index",setup(b){const t=V("1");return(U,r)=>{const i=s("el-link"),l=s("el-collapse-item"),p=s("el-collapse"),f=s("el-card");return n(),o(f,{shadow:"never"},{header:e(()=>[m("div",B,[m("span",C,[d(" 编辑器组件,采用开源的 "),a(i,{href:"https://www.wangeditor.com",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[d(" Wangeditor ")]),_:1})])])]),default:e(()=>[a(p,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=u=>t.value=u),accordion:""},{default:e(()=>[a(l,{title:"基础用法",name:"1"},{default:e(()=>[t.value==="1"?(n(),o(_(g),{key:0})):c("",!0)]),_:1}),a(l,{title:"多个富文本",name:"2"},{default:e(()=>[t.value==="2"?(n(),o(_(N),{key:0})):c("",!0)]),_:1}),a(l,{title:"自定义图片上传",name:"3"},{default:e(()=>[t.value==="3"?(n(),o(_(y),{key:0})):c("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),P=w($,[["__scopeId","data-v-370db8ff"]]);export{P as default};
+import{_ as v}from"./base.vue_vue_type_script_setup_true_lang-MLOwiTCy.js";import{_ as x}from"./multi.vue_vue_type_script_setup_true_lang-CaS1ROE0.js";import{_ as k}from"./picUpload.vue_vue_type_script_setup_true_lang-D_K1Y-Xh.js";import{d as h,r as V,f as o,j as e,k as s,e as n,g as m,l as d,m as a,u as _,K as c,_ as w}from"./index-BAaep8yZ.js";import"./index.esm-BtO_Rzzc.js";import"./index-DKA0-Lk4.js";const g=v,N=x,y=k,B={class:"card-header"},C={class:"font-medium"},$=h({name:"Editor",__name:"index",setup(b){const t=V("1");return(U,r)=>{const i=s("el-link"),l=s("el-collapse-item"),p=s("el-collapse"),f=s("el-card");return n(),o(f,{shadow:"never"},{header:e(()=>[m("div",B,[m("span",C,[d(" 编辑器组件,采用开源的 "),a(i,{href:"https://www.wangeditor.com",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[d(" Wangeditor ")]),_:1})])])]),default:e(()=>[a(p,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=u=>t.value=u),accordion:""},{default:e(()=>[a(l,{title:"基础用法",name:"1"},{default:e(()=>[t.value==="1"?(n(),o(_(g),{key:0})):c("",!0)]),_:1}),a(l,{title:"多个富文本",name:"2"},{default:e(()=>[t.value==="2"?(n(),o(_(N),{key:0})):c("",!0)]),_:1}),a(l,{title:"自定义图片上传",name:"3"},{default:e(()=>[t.value==="3"?(n(),o(_(y),{key:0})):c("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),P=w($,[["__scopeId","data-v-370db8ff"]]);export{P as default};
diff --git a/dist/static/js/index-kIxJBuoC.js b/dist/static/js/index-DHEutSv6.js
similarity index 99%
rename from dist/static/js/index-kIxJBuoC.js
rename to dist/static/js/index-DHEutSv6.js
index 50868e23f..3b19209ff 100644
--- a/dist/static/js/index-kIxJBuoC.js
+++ b/dist/static/js/index-DHEutSv6.js
@@ -1 +1 @@
-var X=Object.defineProperty;var y=(n,e,t)=>e in n?X(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var a=(n,e,t)=>(y(n,typeof e!="symbol"?e+"":e,t),t);import{e as x}from"./mitt-E5P-NQ8u.js";import{d as S,r as m,a4 as P,o as L,s as R,f as E,j as r,k as g,v as U,e as I,g as h,l as s,m as d,K as F,z as B,A as H,B as O,_ as A}from"./index-DZuaHQDs.js";class z{constructor(e){a(this,"canvas");a(this,"ctx");a(this,"images");a(this,"container");a(this,"positionX");a(this,"isDragging");a(this,"startX");a(this,"handleClick",e=>{this.drawTick(e)});a(this,"handleMouseDown",e=>{this.startDrag(e.clientX)});a(this,"handleMouseMove",e=>{this.drag(e.clientX)});a(this,"handleMouseUp",()=>{this.endDrag()});a(this,"handleTouchStart",e=>{e.touches.length===1&&(e.preventDefault(),this.startDrag(e.touches[0].clientX))});a(this,"handleTouchMove",e=>{e.touches.length===1&&(e.preventDefault(),this.drag(e.touches[0].clientX))});a(this,"handleTouchEnd",()=>{this.endDrag()});this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.images=[],this.positionX=0,this.isDragging=!1,this.startX=0,this.container=document.getElementById(e),this.container&&(this.container.appendChild(this.canvas),this.canvas.width=this.container.clientWidth,this.canvas.height=this.container.clientHeight)}addImage(e,t,i,o,f){const p=new Image;p.src=e,this.images.push({img:p,x:t,y:i,width:o,height:f}),this.render()}render(){this.clearRect(),this.images.forEach(e=>{const t=e.x+this.positionX;this.ctx.drawImage(e.img,t,e.y,e.width,e.height)})}clearImages(){this.images=[]}clearRect(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}drawTick(e){this.render();const t=Math.ceil((Math.abs(this.positionX)+e.offsetX)/this.images[0].width)-1,i=e.offsetX,o=e.offsetY;this.ctx.strokeStyle="red",this.ctx.lineWidth=4,this.ctx.lineCap="round",this.ctx.beginPath(),this.ctx.moveTo(i-10,o),this.ctx.lineTo(i,o+10),this.ctx.lineTo(i+15,o-10),this.ctx.stroke(),x.emit("imageInfo",this.images[t])}addListener(){this.canvas&&(this.canvas.addEventListener("click",this.handleClick),this.canvas.addEventListener("mousedown",this.handleMouseDown),this.canvas.addEventListener("mousemove",this.handleMouseMove),this.canvas.addEventListener("mouseup",this.handleMouseUp),this.canvas.addEventListener("touchstart",this.handleTouchStart),this.canvas.addEventListener("touchmove",this.handleTouchMove),this.canvas.addEventListener("touchend",this.handleTouchEnd))}startDrag(e){this.canvas.style.cursor="grabbing",this.canvas.style.userSelect="none",this.startX=e,this.isDragging=!0}drag(e){if(!this.isDragging)return;const t=e-this.startX,i=this.images.length*this.images[0].width-this.container.clientWidth;this.positionX=Math.max(Math.min(this.positionX+t,0),-i),this.startX=e,this.render()}endDrag(){this.canvas.style.cursor="grab",this.canvas.style.userSelect="auto",this.isDragging=!1}}var N={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const W=n=>(H("data-v-5b041a13"),n=n(),O(),n),j={class:"card-header"},Y={class:"font-medium"},G={class:"flex flex-wrap"},K=W(()=>h("div",{class:"el-upload__text"}," 可拖拽上传视频(默认截取16张帧图片,可在代码中自行修改) ",-1)),$={id:"canvas-container","element-loading-text":"温馨提示:可左右拖拽图片并单击选取所需的帧图片",class:"w-full h-[200px] overflow-hidden mt-6"},u=200,J=S({name:"VideoFrame",__name:"index",setup(n){const e=m(""),t=m(),i=m(),o=m(!1),{loadScript:f}=P(),{VITE_PUBLIC_PATH:p}=N,v=c=>`${p}wasm/${c}`,M=v("index.js"),T=v("capture.worker.js"),b=v("capture.worker.wasm");f({src:M}).then(c=>{c[0].message==="加载成功"&&(i.value=cheetahCapture.initCapture({workerPath:T,wasmPath:b}))}),L(()=>{t.value=new z("canvas-container"),x.on("imageInfo",c=>e.value=c.img.src)});function k(c){return e.value="",o.value=!0,t.value.clearImages(),i.value.then(w=>{w.capture({file:c,info:16,onChange:(l,{url:_})=>{t.value.addImage(_,u*l.url.length,0,u,u)},onSuccess:()=>{t.value.addListener(),t.value.drawTick({offsetX:u/2,offsetY:u/2}),o.value=!1},onError:()=>{o.value=!1}})}),!1}return R(()=>{x.off("imageInfo")}),(c,w)=>{const l=g("el-link"),_=g("el-upload"),D=g("el-image"),V=g("el-card"),C=U("loading");return I(),E(V,{shadow:"never"},{header:r(()=>[h("div",j,[h("span",Y,[h("p",null,[s(" 基于自定义编译 "),d(l,{href:"https://github.com/FFmpeg/FFmpeg",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" FFmpeg ")]),_:1}),s(" 的截帧工具,支持MP4、MOV、AVI、WebM、MKV等主流格式,支持 H.264(AVC)、H.265(HEVC)、MPEG-2、MPEG-4、VP8、VP9、WMV3编码格式 ")]),s(" 当然还可以支持更多视频格式,只要FFmpeg支持的,按理都能支持,您也可参考 "),d(l,{href:"https://github.com/wanwu/cheetah-capture",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" cheetah-capture ")]),_:1}),s(" 和 "),d(l,{href:"https://github.com/jordiwang/web-capture",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" web-capture ")]),_:1}),s(" 修改并编译wasm等文件(强烈推荐在Ubuntu系统进行编译) "),h("p",null,[s(" mac系统推荐安装 "),d(l,{href:"https://github.com/utmapp/UTM",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" UTM ")]),_:1}),s(" 虚拟机,windows系统推荐安装VMware虚拟机 ")]),h("p",null,[s(" 当然这只是一个视频帧截取工具,如果您想要更多操作可以研究下 "),d(l,{href:"https://ffmpegwasm.netlify.app/",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" ffmpeg.wasm ")]),_:1}),s(" ,它是基于 FFmpeg 的纯 WebAssembly / JavaScript 工具,可以在浏览器内进行视频和音频录制、转换和流式传输等,不过通过一些实践,对于时长较长的视频性能还是不太行,不过用于时长较短的短视频还是可以上生产的 ")])])])]),default:r(()=>[h("div",G,[d(_,{drag:"","show-file-list":!1,accept:".mp4,.mov,.avi,.webm,.mkv","before-upload":k},{default:r(()=>[K]),_:1}),e.value?(I(),E(D,{key:0,src:e.value,"preview-src-list":Array.of(e.value),class:"w-[180px] h-[180px] ml-2 rounded-[6px]"},null,8,["src","preview-src-list"])):F("",!0)]),B(h("div",$,null,512),[[C,o.value]])]),_:1})}}}),ee=A(J,[["__scopeId","data-v-5b041a13"]]);export{ee as default};
+var X=Object.defineProperty;var y=(n,e,t)=>e in n?X(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var a=(n,e,t)=>(y(n,typeof e!="symbol"?e+"":e,t),t);import{e as x}from"./mitt-E5P-NQ8u.js";import{d as S,r as m,a4 as P,o as L,s as R,f as E,j as r,k as g,v as U,e as I,g as h,l as s,m as d,K as F,z as B,A as H,B as O,_ as A}from"./index-BAaep8yZ.js";class z{constructor(e){a(this,"canvas");a(this,"ctx");a(this,"images");a(this,"container");a(this,"positionX");a(this,"isDragging");a(this,"startX");a(this,"handleClick",e=>{this.drawTick(e)});a(this,"handleMouseDown",e=>{this.startDrag(e.clientX)});a(this,"handleMouseMove",e=>{this.drag(e.clientX)});a(this,"handleMouseUp",()=>{this.endDrag()});a(this,"handleTouchStart",e=>{e.touches.length===1&&(e.preventDefault(),this.startDrag(e.touches[0].clientX))});a(this,"handleTouchMove",e=>{e.touches.length===1&&(e.preventDefault(),this.drag(e.touches[0].clientX))});a(this,"handleTouchEnd",()=>{this.endDrag()});this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.images=[],this.positionX=0,this.isDragging=!1,this.startX=0,this.container=document.getElementById(e),this.container&&(this.container.appendChild(this.canvas),this.canvas.width=this.container.clientWidth,this.canvas.height=this.container.clientHeight)}addImage(e,t,i,o,f){const p=new Image;p.src=e,this.images.push({img:p,x:t,y:i,width:o,height:f}),this.render()}render(){this.clearRect(),this.images.forEach(e=>{const t=e.x+this.positionX;this.ctx.drawImage(e.img,t,e.y,e.width,e.height)})}clearImages(){this.images=[]}clearRect(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}drawTick(e){this.render();const t=Math.ceil((Math.abs(this.positionX)+e.offsetX)/this.images[0].width)-1,i=e.offsetX,o=e.offsetY;this.ctx.strokeStyle="red",this.ctx.lineWidth=4,this.ctx.lineCap="round",this.ctx.beginPath(),this.ctx.moveTo(i-10,o),this.ctx.lineTo(i,o+10),this.ctx.lineTo(i+15,o-10),this.ctx.stroke(),x.emit("imageInfo",this.images[t])}addListener(){this.canvas&&(this.canvas.addEventListener("click",this.handleClick),this.canvas.addEventListener("mousedown",this.handleMouseDown),this.canvas.addEventListener("mousemove",this.handleMouseMove),this.canvas.addEventListener("mouseup",this.handleMouseUp),this.canvas.addEventListener("touchstart",this.handleTouchStart),this.canvas.addEventListener("touchmove",this.handleTouchMove),this.canvas.addEventListener("touchend",this.handleTouchEnd))}startDrag(e){this.canvas.style.cursor="grabbing",this.canvas.style.userSelect="none",this.startX=e,this.isDragging=!0}drag(e){if(!this.isDragging)return;const t=e-this.startX,i=this.images.length*this.images[0].width-this.container.clientWidth;this.positionX=Math.max(Math.min(this.positionX+t,0),-i),this.startX=e,this.render()}endDrag(){this.canvas.style.cursor="grab",this.canvas.style.userSelect="auto",this.isDragging=!1}}var N={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const W=n=>(H("data-v-5b041a13"),n=n(),O(),n),j={class:"card-header"},Y={class:"font-medium"},G={class:"flex flex-wrap"},K=W(()=>h("div",{class:"el-upload__text"}," 可拖拽上传视频(默认截取16张帧图片,可在代码中自行修改) ",-1)),$={id:"canvas-container","element-loading-text":"温馨提示:可左右拖拽图片并单击选取所需的帧图片",class:"w-full h-[200px] overflow-hidden mt-6"},u=200,J=S({name:"VideoFrame",__name:"index",setup(n){const e=m(""),t=m(),i=m(),o=m(!1),{loadScript:f}=P(),{VITE_PUBLIC_PATH:p}=N,v=c=>`${p}wasm/${c}`,M=v("index.js"),T=v("capture.worker.js"),b=v("capture.worker.wasm");f({src:M}).then(c=>{c[0].message==="加载成功"&&(i.value=cheetahCapture.initCapture({workerPath:T,wasmPath:b}))}),L(()=>{t.value=new z("canvas-container"),x.on("imageInfo",c=>e.value=c.img.src)});function k(c){return e.value="",o.value=!0,t.value.clearImages(),i.value.then(w=>{w.capture({file:c,info:16,onChange:(l,{url:_})=>{t.value.addImage(_,u*l.url.length,0,u,u)},onSuccess:()=>{t.value.addListener(),t.value.drawTick({offsetX:u/2,offsetY:u/2}),o.value=!1},onError:()=>{o.value=!1}})}),!1}return R(()=>{x.off("imageInfo")}),(c,w)=>{const l=g("el-link"),_=g("el-upload"),D=g("el-image"),V=g("el-card"),C=U("loading");return I(),E(V,{shadow:"never"},{header:r(()=>[h("div",j,[h("span",Y,[h("p",null,[s(" 基于自定义编译 "),d(l,{href:"https://github.com/FFmpeg/FFmpeg",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" FFmpeg ")]),_:1}),s(" 的截帧工具,支持MP4、MOV、AVI、WebM、MKV等主流格式,支持 H.264(AVC)、H.265(HEVC)、MPEG-2、MPEG-4、VP8、VP9、WMV3编码格式 ")]),s(" 当然还可以支持更多视频格式,只要FFmpeg支持的,按理都能支持,您也可参考 "),d(l,{href:"https://github.com/wanwu/cheetah-capture",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" cheetah-capture ")]),_:1}),s(" 和 "),d(l,{href:"https://github.com/jordiwang/web-capture",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" web-capture ")]),_:1}),s(" 修改并编译wasm等文件(强烈推荐在Ubuntu系统进行编译) "),h("p",null,[s(" mac系统推荐安装 "),d(l,{href:"https://github.com/utmapp/UTM",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" UTM ")]),_:1}),s(" 虚拟机,windows系统推荐安装VMware虚拟机 ")]),h("p",null,[s(" 当然这只是一个视频帧截取工具,如果您想要更多操作可以研究下 "),d(l,{href:"https://ffmpegwasm.netlify.app/",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:r(()=>[s(" ffmpeg.wasm ")]),_:1}),s(" ,它是基于 FFmpeg 的纯 WebAssembly / JavaScript 工具,可以在浏览器内进行视频和音频录制、转换和流式传输等,不过通过一些实践,对于时长较长的视频性能还是不太行,不过用于时长较短的短视频还是可以上生产的 ")])])])]),default:r(()=>[h("div",G,[d(_,{drag:"","show-file-list":!1,accept:".mp4,.mov,.avi,.webm,.mkv","before-upload":k},{default:r(()=>[K]),_:1}),e.value?(I(),E(D,{key:0,src:e.value,"preview-src-list":Array.of(e.value),class:"w-[180px] h-[180px] ml-2 rounded-[6px]"},null,8,["src","preview-src-list"])):F("",!0)]),B(h("div",$,null,512),[[C,o.value]])]),_:1})}}}),ee=A(J,[["__scopeId","data-v-5b041a13"]]);export{ee as default};
diff --git a/dist/static/js/index-CvxJtv3S.js b/dist/static/js/index-DJhySW31.js
similarity index 66%
rename from dist/static/js/index-CvxJtv3S.js
rename to dist/static/js/index-DJhySW31.js
index 395b49a4c..af524f34d 100644
--- a/dist/static/js/index-CvxJtv3S.js
+++ b/dist/static/js/index-DJhySW31.js
@@ -1 +1 @@
-import r from"./basic-BY_ZxUfr.js";import c from"./menuGroup-43IGfQER.js";import l from"./menuDynamic-Cp_Vy1Iw.js";import{d as _,f as d,j as o,k as a,e as p,m as e,g as s}from"./index-DZuaHQDs.js";import"./index.esm-CYu0pNm6.js";const u=s("div",{class:"card-header"},[s("span",{class:"font-medium"},"右键菜单")],-1),v=_({name:"ContextMenu",__name:"index",setup(f){return(i,x)=>{const t=a("el-col"),n=a("el-row"),m=a("el-card");return p(),d(m,{shadow:"never"},{header:o(()=>[u]),default:o(()=>[e(n,{gutter:24},{default:o(()=>[e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(r)]),_:1}),e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(c)]),_:1}),e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(l)]),_:1})]),_:1})]),_:1})}}});export{v as default};
+import r from"./basic-DcGHjRLH.js";import c from"./menuGroup-D1REoIJ1.js";import l from"./menuDynamic-BBKkqgdZ.js";import{d as _,f as d,j as o,k as a,e as p,m as e,g as s}from"./index-BAaep8yZ.js";import"./index.esm-KEqxtvcC.js";const u=s("div",{class:"card-header"},[s("span",{class:"font-medium"},"右键菜单")],-1),v=_({name:"ContextMenu",__name:"index",setup(f){return(i,x)=>{const t=a("el-col"),n=a("el-row"),m=a("el-card");return p(),d(m,{shadow:"never"},{header:o(()=>[u]),default:o(()=>[e(n,{gutter:24},{default:o(()=>[e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(r)]),_:1}),e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(c)]),_:1}),e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(l)]),_:1})]),_:1})]),_:1})}}});export{v as default};
diff --git a/dist/static/js/index-DPRqMGnN.js b/dist/static/js/index-DKA0-Lk4.js
similarity index 89%
rename from dist/static/js/index-DPRqMGnN.js
rename to dist/static/js/index-DKA0-Lk4.js
index ad3136955..ba2231382 100644
--- a/dist/static/js/index-DPRqMGnN.js
+++ b/dist/static/js/index-DKA0-Lk4.js
@@ -1 +1 @@
-var r=Object.defineProperty;var a=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var l=(s,t,e)=>t in s?r(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,o=(s,t)=>{for(var e in t||(t={}))n.call(t,e)&&l(s,e,t[e]);if(a)for(var e of a(t))d.call(t,e)&&l(s,e,t[e]);return s};import{d as m,M as u,bB as p}from"./index-DZuaHQDs.js";const h=m({name:"ReCol",props:{value:{type:Number,default:24}},render(){const s=this.$attrs,t=this.value;return u(p,o({xs:t,sm:t,md:t,lg:t,xl:t},s),{default:()=>this.$slots.default()})}});export{h as R};
+var r=Object.defineProperty;var a=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var l=(s,t,e)=>t in s?r(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,o=(s,t)=>{for(var e in t||(t={}))n.call(t,e)&&l(s,e,t[e]);if(a)for(var e of a(t))d.call(t,e)&&l(s,e,t[e]);return s};import{d as m,M as u,bB as p}from"./index-BAaep8yZ.js";const h=m({name:"ReCol",props:{value:{type:Number,default:24}},render(){const s=this.$attrs,t=this.value;return u(p,o({xs:t,sm:t,md:t,lg:t,xl:t},s),{default:()=>this.$slots.default()})}});export{h as R};
diff --git a/dist/static/js/index-CU-Mjs3W.js b/dist/static/js/index-DKM6u3LM.js
similarity index 99%
rename from dist/static/js/index-CU-Mjs3W.js
rename to dist/static/js/index-DKM6u3LM.js
index 0a17c7739..1c8660874 100644
--- a/dist/static/js/index-CU-Mjs3W.js
+++ b/dist/static/js/index-DKM6u3LM.js
@@ -1,4 +1,4 @@
-import{d as Ot,r as Rt,f as Mt,j as M,k as W,e as ft,m as U,l as mt,x as Dt,y as Vt,F as Ft,g as bt}from"./index-DZuaHQDs.js";/*!
+import{d as Ot,r as Rt,f as Mt,j as M,k as W,e as ft,m as U,l as mt,x as Dt,y as Vt,F as Ft,g as bt}from"./index-BAaep8yZ.js";/*!
* Intro.js v7.2.0
* https://introjs.com
*
diff --git a/dist/static/js/index-DPmdVKvS.js b/dist/static/js/index-DPmdVKvS.js
new file mode 100644
index 000000000..dfb5e4efe
--- /dev/null
+++ b/dist/static/js/index-DPmdVKvS.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-BlfHVwgF.js";import"./columns-bzAqFu7J.js";import"./data-ClgPGhLc.js";import"./index-BAaep8yZ.js";export{o as default};
diff --git a/dist/static/js/index-C4JNf1t_.js b/dist/static/js/index-DS1yZ9_r.js
similarity index 99%
rename from dist/static/js/index-C4JNf1t_.js
rename to dist/static/js/index-DS1yZ9_r.js
index 810f4a46b..249e72a4a 100644
--- a/dist/static/js/index-C4JNf1t_.js
+++ b/dist/static/js/index-DS1yZ9_r.js
@@ -1,4 +1,4 @@
-import{e as x,x as P,g,d as J,r as T,o as K,s as Q,f as B,j as I,a2 as z,k as H,v as $,l as j,m as V,z as S,t as F,a3 as U,u as N}from"./index-DZuaHQDs.js";/*! *****************************************************************************
+import{e as x,x as P,g,d as J,r as T,o as K,s as Q,f as B,j as I,a2 as z,k as H,v as $,l as j,m as V,z as S,t as F,a3 as U,u as N}from"./index-BAaep8yZ.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
diff --git a/dist/static/js/index-DUgyU_pS.js b/dist/static/js/index-DUgyU_pS.js
deleted file mode 100644
index 8422435a0..000000000
--- a/dist/static/js/index-DUgyU_pS.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-DrRpPVa3.js";import"./columns-BOTK3JYZ.js";import"./index-DZuaHQDs.js";import"./data-Dd4sCrbk.js";import"./edit-pen-Ci7W0xNM.js";import"./check-CIQVCvCT.js";export{o as default};
diff --git a/dist/static/js/index-DbylXdtH.js b/dist/static/js/index-DbylXdtH.js
new file mode 100644
index 000000000..9350f66e0
--- /dev/null
+++ b/dist/static/js/index-DbylXdtH.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-Ykwek2QJ.js";import"./index-DKA0-Lk4.js";import"./index-BAaep8yZ.js";import"./hooks-DRBPO7ss.js";export{o as default};
diff --git a/dist/static/js/index-Djgh65PA.js b/dist/static/js/index-Djgh65PA.js
new file mode 100644
index 000000000..3708ab07c
--- /dev/null
+++ b/dist/static/js/index-Djgh65PA.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-BK_Pijf-.js";import"./columns-Ct9jX69y.js";import"./sortable.esm-6WsHlDA5.js";import"./index-BAaep8yZ.js";import"./data-ClgPGhLc.js";export{o as default};
diff --git a/dist/static/js/index-DyHzaucp.js b/dist/static/js/index-DyHzaucp.js
new file mode 100644
index 000000000..b193d09a5
--- /dev/null
+++ b/dist/static/js/index-DyHzaucp.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-CFvPmb3s.js";import"./columns-C5FmJZNi.js";import"./sortable.esm-6WsHlDA5.js";import"./index-BAaep8yZ.js";import"./data-ClgPGhLc.js";export{o as default};
diff --git a/dist/static/js/index-Da5uLlOc.js b/dist/static/js/index-Dyzll_OB.js
similarity index 91%
rename from dist/static/js/index-Da5uLlOc.js
rename to dist/static/js/index-Dyzll_OB.js
index c0557ff65..a9cc8befa 100644
--- a/dist/static/js/index-Da5uLlOc.js
+++ b/dist/static/js/index-Dyzll_OB.js
@@ -1 +1 @@
-import{useRole as A}from"./hook-HmB-W-wK.js";import{g as E}from"./utils-NlcLu7mC.js";import{R as F,P as K}from"./refresh-Cn55-z1p.js";import{u as c}from"./hooks-BoRjbw1y.js";import{d as M}from"./delete-Ce0TSdK5.js";import{d as G,r as h,k as n,v as H,e as C,x as b,m as o,j as t,u as e,l as i,z as J,g as k,t as O,K as Q,_ as W}from"./index-DZuaHQDs.js";import"./detail.vue_vue_type_script_setup_true_lang-BdXzYbDZ.js";import"./vue-json-pretty-CF4FjDiP.js";import"./system-DOAPCM6P.js";import"./epTheme-gTdHAM10.js";import"./sortable.esm-6WsHlDA5.js";const X={width:1024,height:1024,body:''},Y=X,Z={class:"main"},ee={key:0,class:"bg-[var(--el-fill-color-light)] w-full h-[46px] mb-2 pl-4 flex items-center"},oe={class:"flex-auto"},te={style:{"font-size":"var(--el-font-size-base)"},class:"text-[rgba(42,46,54,0.5)] dark:text-[rgba(220,220,242,0.5)]"},le=G({name:"SystemLog",__name:"index",setup(ne){const d=h(),p=h(),{form:s,loading:u,columns:y,dataList:v,pagination:x,selectedNum:f,onSearch:_,onDetail:S,clearAll:V,resetForm:w,onbatchDel:z,handleSizeChange:R,onSelectionCancel:D,handleCellDblclick:P,handleCurrentChange:B,handleSelectionChange:N}=A(p);return(ae,a)=>{const T=n("el-input"),m=n("el-form-item"),q=n("el-date-picker"),r=n("el-button"),$=n("el-form"),g=n("el-popconfirm"),I=n("pure-table"),L=H("motion-fade");return C(),b("div",Z,[o($,{ref_key:"formRef",ref:d,inline:!0,model:e(s),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:t(()=>[o(m,{label:"所属模块",prop:"module"},{default:t(()=>[o(T,{modelValue:e(s).module,"onUpdate:modelValue":a[0]||(a[0]=l=>e(s).module=l),placeholder:"请输入所属模块",clearable:"",class:"!w-[170px]"},null,8,["modelValue"])]),_:1}),o(m,{label:"请求时间",prop:"requestTime"},{default:t(()=>[o(q,{modelValue:e(s).requestTime,"onUpdate:modelValue":a[1]||(a[1]=l=>e(s).requestTime=l),shortcuts:e(E)(),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期时间","end-placeholder":"结束日期时间"},null,8,["modelValue","shortcuts"])]),_:1}),o(m,null,{default:t(()=>[o(r,{type:"primary",icon:e(c)("ri:search-line"),loading:e(u),onClick:e(_)},{default:t(()=>[i(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(r,{icon:e(c)(e(F)),onClick:a[2]||(a[2]=l=>e(w)(d.value))},{default:t(()=>[i(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(K),{title:"系统日志(仅演示,操作后不生效)",columns:e(y),onRefresh:e(_)},{buttons:t(()=>[o(g,{title:"确定要删除所有日志数据吗?",onConfirm:e(V)},{reference:t(()=>[o(r,{type:"danger",icon:e(c)(e(M))},{default:t(()=>[i(" 清空日志 ")]),_:1},8,["icon"])]),_:1},8,["onConfirm"])]),default:t(({size:l,dynamicColumns:U})=>[e(f)>0?J((C(),b("div",ee,[k("div",oe,[k("span",te," 已选 "+O(e(f))+" 项 ",1),o(r,{type:"primary",text:"",onClick:e(D)},{default:t(()=>[i(" 取消选择 ")]),_:1},8,["onClick"])]),o(g,{title:"是否确认删除?",onConfirm:e(z)},{reference:t(()=>[o(r,{type:"danger",text:"",class:"mr-1"},{default:t(()=>[i(" 批量删除 ")]),_:1})]),_:1},8,["onConfirm"])])),[[L]]):Q("",!0),o(I,{ref_key:"tableRef",ref:p,"row-key":"id","align-whole":"center","table-layout":"auto",loading:e(u),size:l,adaptive:"",adaptiveConfig:{offsetBottom:108},data:e(v),columns:U,pagination:e(x),paginationSmall:l==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(N),onPageSizeChange:e(R),onPageCurrentChange:e(B),onCellDblclick:e(P)},{operation:t(({row:j})=>[o(r,{class:"reset-margin !outline-none",link:"",type:"primary",size:l,icon:e(c)(e(Y)),onClick:re=>e(S)(j)},{default:t(()=>[i(" 详情 ")]),_:2},1032,["size","icon","onClick"])]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange","onCellDblclick"])]),_:1},8,["columns","onRefresh"])])}}}),Ce=W(le,[["__scopeId","data-v-93c1a603"]]);export{Ce as default};
+import{useRole as A}from"./hook-B6TaVaQu.js";import{g as E}from"./utils-NlcLu7mC.js";import{R as F,P as K}from"./refresh-hz8n9CjZ.js";import{u as c}from"./hooks-n2iC5q0_.js";import{d as M}from"./delete-Ce0TSdK5.js";import{d as G,r as h,k as n,v as H,e as C,x as b,m as o,j as t,u as e,l as i,z as J,g as k,t as O,K as Q,_ as W}from"./index-BAaep8yZ.js";import"./detail.vue_vue_type_script_setup_true_lang-0eBypr-E.js";import"./vue-json-pretty-pvNpy4mr.js";import"./system-C4sbqSKx.js";import"./epTheme-C6dkH2Du.js";import"./sortable.esm-6WsHlDA5.js";const X={width:1024,height:1024,body:''},Y=X,Z={class:"main"},ee={key:0,class:"bg-[var(--el-fill-color-light)] w-full h-[46px] mb-2 pl-4 flex items-center"},oe={class:"flex-auto"},te={style:{"font-size":"var(--el-font-size-base)"},class:"text-[rgba(42,46,54,0.5)] dark:text-[rgba(220,220,242,0.5)]"},le=G({name:"SystemLog",__name:"index",setup(ne){const d=h(),p=h(),{form:s,loading:u,columns:y,dataList:v,pagination:x,selectedNum:f,onSearch:_,onDetail:S,clearAll:V,resetForm:w,onbatchDel:z,handleSizeChange:R,onSelectionCancel:D,handleCellDblclick:P,handleCurrentChange:B,handleSelectionChange:N}=A(p);return(ae,a)=>{const T=n("el-input"),m=n("el-form-item"),q=n("el-date-picker"),r=n("el-button"),$=n("el-form"),g=n("el-popconfirm"),I=n("pure-table"),L=H("motion-fade");return C(),b("div",Z,[o($,{ref_key:"formRef",ref:d,inline:!0,model:e(s),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:t(()=>[o(m,{label:"所属模块",prop:"module"},{default:t(()=>[o(T,{modelValue:e(s).module,"onUpdate:modelValue":a[0]||(a[0]=l=>e(s).module=l),placeholder:"请输入所属模块",clearable:"",class:"!w-[170px]"},null,8,["modelValue"])]),_:1}),o(m,{label:"请求时间",prop:"requestTime"},{default:t(()=>[o(q,{modelValue:e(s).requestTime,"onUpdate:modelValue":a[1]||(a[1]=l=>e(s).requestTime=l),shortcuts:e(E)(),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期时间","end-placeholder":"结束日期时间"},null,8,["modelValue","shortcuts"])]),_:1}),o(m,null,{default:t(()=>[o(r,{type:"primary",icon:e(c)("ri:search-line"),loading:e(u),onClick:e(_)},{default:t(()=>[i(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(r,{icon:e(c)(e(F)),onClick:a[2]||(a[2]=l=>e(w)(d.value))},{default:t(()=>[i(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(K),{title:"系统日志(仅演示,操作后不生效)",columns:e(y),onRefresh:e(_)},{buttons:t(()=>[o(g,{title:"确定要删除所有日志数据吗?",onConfirm:e(V)},{reference:t(()=>[o(r,{type:"danger",icon:e(c)(e(M))},{default:t(()=>[i(" 清空日志 ")]),_:1},8,["icon"])]),_:1},8,["onConfirm"])]),default:t(({size:l,dynamicColumns:U})=>[e(f)>0?J((C(),b("div",ee,[k("div",oe,[k("span",te," 已选 "+O(e(f))+" 项 ",1),o(r,{type:"primary",text:"",onClick:e(D)},{default:t(()=>[i(" 取消选择 ")]),_:1},8,["onClick"])]),o(g,{title:"是否确认删除?",onConfirm:e(z)},{reference:t(()=>[o(r,{type:"danger",text:"",class:"mr-1"},{default:t(()=>[i(" 批量删除 ")]),_:1})]),_:1},8,["onConfirm"])])),[[L]]):Q("",!0),o(I,{ref_key:"tableRef",ref:p,"row-key":"id","align-whole":"center","table-layout":"auto",loading:e(u),size:l,adaptive:"",adaptiveConfig:{offsetBottom:108},data:e(v),columns:U,pagination:e(x),paginationSmall:l==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(N),onPageSizeChange:e(R),onPageCurrentChange:e(B),onCellDblclick:e(P)},{operation:t(({row:j})=>[o(r,{class:"reset-margin !outline-none",link:"",type:"primary",size:l,icon:e(c)(e(Y)),onClick:re=>e(S)(j)},{default:t(()=>[i(" 详情 ")]),_:2},1032,["size","icon","onClick"])]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange","onCellDblclick"])]),_:1},8,["columns","onRefresh"])])}}}),Ce=W(le,[["__scopeId","data-v-93c1a603"]]);export{Ce as default};
diff --git a/dist/static/js/index-DJqWwm1H.js b/dist/static/js/index-F0DYzX3p.js
similarity index 99%
rename from dist/static/js/index-DJqWwm1H.js
rename to dist/static/js/index-F0DYzX3p.js
index 1cbec625c..4dd6471e8 100644
--- a/dist/static/js/index-DJqWwm1H.js
+++ b/dist/static/js/index-F0DYzX3p.js
@@ -1,4 +1,4 @@
-var Ze=Object.defineProperty,Je=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var tt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable;var Ce=(e,o,a)=>o in e?Ze(e,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[o]=a,X=(e,o)=>{for(var a in o||(o={}))tt.call(o,a)&&Ce(e,a,o[a]);if(Be)for(var a of Be(o))at.call(o,a)&&Ce(e,a,o[a]);return e},K=(e,o)=>Je(e,et(o));var Me=(e,o,a)=>new Promise((i,f)=>{var s=n=>{try{r(a.next(n))}catch(t){f(t)}},l=n=>{try{r(a.throw(n))}catch(t){f(t)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(s,l);r((a=a.apply(e,o)).next())});import{d as U,b4 as ne,d7 as rt,c as W,r as L,aY as ue,e as O,x as S,g as $,f as P,j as R,S as G,n as H,K as F,i as we,u as C,m as xe,l as ie,t as N,F as Z,y as ae,L as nt,a6 as it,h as ot,a_ as de,w as ce,q as Ge,b6 as lt,T as st,d6 as re,o as Ie,de as ut,df as dt,$ as ct}from"./index-DZuaHQDs.js";var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ft={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){var a="day";return function(i,f,s){var l=function(t){return t.add(4-t.isoWeekday(),a)},r=f.prototype;r.isoWeekYear=function(){return l(this).year()},r.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),a);var u,d,g,p,x=l(this),m=(u=this.isoWeekYear(),d=this.$u,g=(d?s.utc:s)().year(u).startOf("year"),p=4-g.isoWeekday(),g.isoWeekday()>4&&(p+=7),g.add(p,a));return x.diff(m,"week")+1},r.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var n=r.startOf;r.startOf=function(t,u){var d=this.$utils(),g=!!d.u(u)||u;return d.p(t)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(t,u)}}})})(ft);var gt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i){i.prototype.isSameOrBefore=function(f,s){return this.isSame(f,s)||this.isBefore(f,s)}}})})(gt);var ht={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i){i.prototype.isSameOrAfter=function(f,s){return this.isSame(f,s)||this.isAfter(f,s)}}})})(ht);var mt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i,f){i.prototype.isBetween=function(s,l,r,n){var t=f(s),u=f(l),d=(n=n||"()")[0]==="(",g=n[1]===")";return(d?this.isAfter(t,r):!this.isBefore(t,r))&&(g?this.isBefore(u,r):!this.isAfter(u,r))||(d?this.isBefore(t,r):!this.isAfter(t,r))&&(g?this.isAfter(u,r):!this.isBefore(u,r))}}})})(mt);var pt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){var a="week",i="year";return function(f,s,l){var r=s.prototype;r.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),"day");var t=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=l(this).startOf(i).add(1,i).date(t),d=l(this).endOf(a);if(u.isBefore(d))return 1}var g=l(this).startOf(i).date(t).startOf(a).subtract(1,"millisecond"),p=this.diff(g,a,!0);return p<0?l(this).startOf("week").week():Math.ceil(p)},r.weeks=function(n){return n===void 0&&(n=null),this.week(n)}}})})(pt);var bt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i,f){var s=i.prototype,l=s.format;f.en.ordinal=function(r){var n=["th","st","nd","rd"],t=r%100;return"["+r+(n[(t-20)%10]||n[t]||n[0])+"]"},s.format=function(r){var n=this,t=this.$locale();if(!this.isValid())return l.bind(this)(r);var u=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((n.$M+1)/3);case"Do":return t.ordinal(n.$D);case"gggg":return n.weekYear();case"GGGG":return n.isoWeekYear();case"wo":return t.ordinal(n.week(),"W");case"w":case"ww":return u.s(n.week(),g==="w"?1:2,"0");case"W":case"WW":return u.s(n.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return u.s(String(n.$H===0?24:n.$H),g==="k"?1:2,"0");case"X":return Math.floor(n.$d.getTime()/1e3);case"x":return n.$d.getTime();case"z":return"["+n.offsetName()+"]";case"zzz":return"["+n.offsetName("long")+"]";default:return g}});return l.bind(this)(d)}}})})(bt);var vt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,f=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,r={},n=function(m){return(m=+m)+(m>68?1900:2e3)},t=function(m){return function(b){this[m]=+b}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var D=b.match(/([+-]|\d\d)/g),h=60*D[1]+(+D[2]||0);return h===0?0:D[0]==="+"?-h:h}(m)}],d=function(m){var b=r[m];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(m,b){var D,h=r.meridiem;if(h){for(var y=1;y<=24;y+=1)if(m.indexOf(h(y,0,b))>-1){D=y>12;break}}else D=m===(b?"pm":"PM");return D},p={A:[l,function(m){this.afternoon=g(m,!1)}],a:[l,function(m){this.afternoon=g(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[f,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,t("seconds")],ss:[s,t("seconds")],m:[s,t("minutes")],mm:[s,t("minutes")],H:[s,t("hours")],h:[s,t("hours")],HH:[s,t("hours")],hh:[s,t("hours")],D:[s,t("day")],DD:[f,t("day")],Do:[l,function(m){var b=r.ordinal,D=m.match(/\d+/);if(this.day=D[0],b)for(var h=1;h<=31;h+=1)b(h).replace(/\[|\]/g,"")===m&&(this.day=h)}],M:[s,t("month")],MM:[f,t("month")],MMM:[l,function(m){var b=d("months"),D=(d("monthsShort")||b.map(function(h){return h.slice(0,3)})).indexOf(m)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[l,function(m){var b=d("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,t("year")],YY:[f,function(m){this.year=n(m)}],YYYY:[/\d{4}/,t("year")],Z:u,ZZ:u};function x(m){var b,D;b=m,D=r&&r.formats;for(var h=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,T,E){var Y=E&&E.toUpperCase();return T||D[E]||a[E]||D[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,I,j){return I||j.slice(1)})})).match(i),y=h.length,k=0;k-1)return new Date((ee==="X"?1e3:1)*q);var A=x(ee)(q),te=A.year,le=A.month,Pe=A.day,Ve=A.hours,Qe=A.minutes,Xe=A.seconds,Ke=A.milliseconds,De=A.zone,ge=new Date,he=Pe||(te||le?1:ge.getDate()),me=te||ge.getFullYear(),se=0;te&&!le||(se=le>0?le-1:ge.getMonth());var pe=Ve||0,be=Qe||0,ve=Xe||0,ye=Ke||0;return De?new Date(Date.UTC(me,se,he,pe,be,ve,ye+60*De.offset*1e3)):Q?new Date(Date.UTC(me,se,he,pe,be,ve,ye)):new Date(me,se,he,pe,be,ve,ye)}catch(ra){return new Date("")}}(c,B,w),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),E&&c!=this.format(B)&&(this.$d=new Date("")),r={}}else if(B instanceof Array)for(var _=B.length,I=1;I<=_;I+=1){v[1]=B[I-1];var j=D.apply(this,v);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}I===_&&(this.$d=new Date(""))}else y.call(this,k)}}})})(vt);const We=Symbol("CHART_ROWS_KEY"),ze=Symbol("CONFIG_KEY"),je=Symbol("EMIT_BAR_EVENT_KEY"),Ae=Symbol("BAR_CONTAINER_KEY");function z(){const e=de(ze);if(!e)throw Error("Failed to inject config!");return e}const Re="YYYY-MM-DD HH:mm";function oe(e=z()){const{chartStart:o,chartEnd:a,barStart:i,barEnd:f,dateFormat:s}=e,l=W(()=>n(o.value)),r=W(()=>n(a.value)),n=(t,u)=>{let d;if(u!==void 0&&typeof t!="string"&&!(t instanceof Date)&&(d=u==="start"?t[i.value]:t[f.value]),typeof t=="string")d=t;else if(t instanceof Date)return re(t);const g=s.value||Re;return re(d,g,!0)};return{chartStartDayjs:l,chartEndDayjs:r,toDayjs:n,format:(t,u)=>u===!1?t instanceof Date?t:re(t).toDate():(typeof t=="string"||t instanceof Date?n(t):t).format(u)}}function Fe(){const{precision:e}=z(),{chartStartDayjs:o,chartEndDayjs:a}=oe(),i=W(()=>{switch(e==null?void 0:e.value){case"hour":return"day";case"day":return"month";case"date":case"week":return"month";case"month":return"year";default:throw new Error("Precision prop incorrect. Must be one of the following: 'hour', 'day', 'date', 'week', 'month'")}}),f=W(()=>{switch(e.value){case"date":return"day";case"week":return"isoWeek";default:return e.value}}),s={hour:"HH",date:"DD.MMM",day:"DD.MMM",week:"WW",month:"MMMM YYYY",year:"YYYY"};return{timeaxisUnits:W(()=>{const l=[],r=[],n=a.value.diff(o.value,"minutes",!0),t=i.value,u=f.value;let d=o.value,g=o.value;for(;g.isSameOrBefore(a.value);){const p=g.endOf(u),x=p.isAfter(a.value)?a.value.diff(g,"minutes",!0)/n*100:p.diff(g,"minutes",!0)/n*100;r.push({label:g.format(s[e==null?void 0:e.value]),value:String(g),date:g.toDate(),width:String(x)+"%"}),g=p.add(1,u==="isoWeek"?"week":u).startOf(u)}for(;d.isSameOrBefore(a.value);){const p=d.endOf(t),x=p.isAfter(a.value)?a.value.diff(d,"minutes",!0)/n*100:p.diff(d,"minutes",!0)/n*100;l.push({label:d.format(s[t]),value:String(d),date:d.toDate(),width:String(x)+"%"}),d=p.add(1,t).startOf(t)}return{upperUnits:l,lowerUnits:r}})}}const yt={class:"g-grid-container"},wt=U({__name:"GGanttGrid",props:{highlightedUnits:{}},setup(e){const{colors:o}=z(),{timeaxisUnits:a}=Fe();return(i,f)=>(O(),S("div",yt,[(O(!0),S(Z,null,ae(C(a).lowerUnits,({label:s,value:l,width:r})=>{var n;return O(),S("div",{key:s,class:"g-grid-line",style:H({width:r,background:(n=i.highlightedUnits)!=null&&n.includes(Number(l))?C(o).hoverHighlight:void 0})},null,4)}),128))]))}});function ke(){const e=de(We);if(!e)throw Error("Failed to inject getChartRows!");return e}const xt={class:"g-label-column-rows"},kt=U({__name:"GGanttLabelColumn",setup(e){const{font:o,colors:a,labelColumnTitle:i,rowHeight:f}=z(),s=ke();return(l,r)=>(O(),S("div",{class:"g-label-column",style:H({fontFamily:C(o),color:C(a).text})},[G(l.$slots,"label-column-title",{},()=>[$("div",{class:"g-label-column-header",style:H({background:C(a).primary})},N(C(i)),5)]),$("div",xt,[(O(!0),S(Z,null,ae(C(s)(),({label:n},t)=>(O(),S("div",{key:`${n}_${t}`,class:"g-label-column-row",style:H({background:t%2===0?C(a).ternary:C(a).quartenary,height:`${C(f)}px`})},[G(l.$slots,"label-column-row",{label:n},()=>[$("span",null,N(n),1)])],4))),128))])],4))}}),Dt={class:"g-timeaxis"},Bt={class:"g-timeunits-container"},Ct={class:"g-timeunits-container"},Mt=U({__name:"GGanttTimeaxis",setup(e){const{precision:o,colors:a}=z(),{timeaxisUnits:i}=Fe();return(f,s)=>(O(),S("div",Dt,[$("div",Bt,[(O(!0),S(Z,null,ae(C(i).upperUnits,({label:l,value:r,date:n,width:t},u)=>(O(),S("div",{key:l,class:"g-upper-timeunit",style:H({background:u%2===0?C(a).primary:C(a).secondary,color:C(a).text,width:t})},[G(f.$slots,"upper-timeunit",{label:l,value:r,date:n},()=>[ie(N(l),1)])],4))),128))]),$("div",Ct,[(O(!0),S(Z,null,ae(C(i).lowerUnits,({label:l,value:r,date:n,width:t},u)=>(O(),S("div",{key:l,class:"g-timeunit",style:H({background:u%2===0?C(a).ternary:C(a).quartenary,color:C(a).text,flexDirection:C(o)==="hour"?"column":"row",alignItems:C(o)==="hour"?"":"center",width:t})},[G(f.$slots,"timeunit",{label:l,value:r,date:n},()=>[ie(N(l),1)]),C(o)==="hour"?(O(),S("div",{key:0,class:"g-timeaxis-hour-pin",style:H({background:C(a).text})},null,4)):F("",!0)],4))),128))])]))}}),Ot="cadetblue",Tt=U({__name:"GGanttBarTooltip",props:{bar:{},modelValue:{type:Boolean}},setup(e){const o=e,a={hour:"HH:mm",day:"DD. MMM HH:mm",date:"DD. MMMM YYYY",month:"DD. MMMM YYYY",week:"DD. MMMM YYYY (WW)"},{bar:i}=ne(o),{precision:f,font:s,barStart:l,barEnd:r,rowHeight:n}=z(),t=L("0px"),u=L("0px");ce(()=>o.bar,()=>Me(this,null,function*(){var b;yield Ge();const D=((b=i==null?void 0:i.value)==null?void 0:b.ganttBarConfig.id)||"";if(!D)return;const h=document.getElementById(D),{top:y,left:k}=(h==null?void 0:h.getBoundingClientRect())||{top:0,left:0},c=Math.max(k,10);t.value=`${y+n.value-10}px`,u.value=`${c}px`}),{deep:!0,immediate:!0});const d=W(()=>{var b,D;return((D=(b=i==null?void 0:i.value)==null?void 0:b.ganttBarConfig.style)==null?void 0:D.background)||Ot}),{toDayjs:g}=oe(),p=W(()=>{var b;return(b=i.value)==null?void 0:b[l.value]}),x=W(()=>{var b;return(b=i.value)==null?void 0:b[r.value]}),m=W(()=>{if(!(i!=null&&i.value))return"";const b=a[f.value],D=g(p.value).format(b),h=g(x.value).format(b);return`${D} – ${h}`});return(b,D)=>(O(),P(st,{to:"body"},[xe(lt,{name:"g-fade",mode:"out-in"},{default:R(()=>[b.modelValue?(O(),S("div",{key:0,class:"g-gantt-tooltip",style:H({top:t.value,left:u.value,fontFamily:C(s)})},[$("div",{class:"g-gantt-tooltip-color-dot",style:H({background:d.value})},null,4),G(b.$slots,"default",{bar:C(i),barStart:p.value,barEnd:x.value},()=>[ie(N(m.value),1)])],4)):F("",!0)]),_:3})]))}});function fe(e=z()){const{dateFormat:o,chartSize:a}=e,{chartStartDayjs:i,chartEndDayjs:f,toDayjs:s,format:l}=oe(e),r=W(()=>f.value.diff(i.value,"minutes"));return{mapTimeToPosition:n=>{const t=a.width.value||0,u=s(n).diff(i.value,"minutes",!0);return Math.ceil(u/r.value*t)},mapPositionToTime:n=>{const t=a.width.value||0,u=n/t*r.value;return l(i.value.add(u,"minutes"),o.value)}}}const Et=U({__name:"GGanttCurrentTime",setup(e){const{mapTimeToPosition:o}=fe(),a=L(re()),{colors:i,dateFormat:f,currentTimeLabel:s}=z(),l=W(()=>{const r=f.value||"YYYY-MM-DD HH:mm";return o(re(a.value,r).format(r))});return(r,n)=>(O(),S("div",{class:"g-grid-current-time",style:H({left:`${l.value}px`})},[$("div",{class:"g-grid-current-time-marker",style:H({border:`1px dashed ${C(i).markerCurrentTime}`})},null,4),$("span",{class:"g-grid-current-time-text",style:H({color:C(i).markerCurrentTime})},[G(r.$slots,"current-time-label",{},()=>[ie(N(C(s)),1)])],4)],4))}});var Oe;const Ne=typeof window<"u";Ne&&((Oe=window==null?void 0:window.navigator)!=null&&Oe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function St(e){return typeof e=="function"?e():C(e)}function Yt(e){return e}function _t(e){return ut()?(dt(e),!0):!1}function Lt(e,o=!0){ct()?Ie(e):o?e():Ge(e)}function Ue(e){var o;const a=St(e);return(o=a==null?void 0:a.$el)!=null?o:a}const $t=Ne?window:void 0;function Ht(e,o=!1){const a=L(),i=()=>a.value=!!e();return i(),Lt(i,o),a}const Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ee="__vueuse_ssr_handlers__";Te[Ee]=Te[Ee]||{};var Se=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Wt=(e,o)=>{var a={};for(var i in e)Gt.call(e,i)&&o.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Se)for(var i of Se(e))o.indexOf(i)<0&&It.call(e,i)&&(a[i]=e[i]);return a};function zt(e,o,a={}){const i=a,{window:f=$t}=i,s=Wt(i,["window"]);let l;const r=Ht(()=>f&&"ResizeObserver"in f),n=()=>{l&&(l.disconnect(),l=void 0)},t=ce(()=>Ue(e),d=>{n(),r.value&&f&&d&&(l=new ResizeObserver(o),l.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{n(),t()};return _t(u),{isSupported:r,stop:u}}function jt(e,o={width:0,height:0},a={}){const i=L(o.width),f=L(o.height);return zt(e,([s])=>{i.value=s.contentRect.width,f.value=s.contentRect.height},a),ce(()=>Ue(e),s=>{i.value=s?o.width:0,f.value=s?o.height:0}),{width:i,height:f}}var Ye;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ye||(Ye={}));var At=Object.defineProperty,_e=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Le=(e,o,a)=>o in e?At(e,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[o]=a,Nt=(e,o)=>{for(var a in o||(o={}))Rt.call(o,a)&&Le(e,a,o[a]);if(_e)for(var a of _e(o))Ft.call(o,a)&&Le(e,a,o[a]);return e};const Ut={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Nt({linear:Yt},Ut);const $e={default:{primary:"#eeeeee",secondary:"#E0E0E0",ternary:"#F5F5F5",quartenary:"#ededed",hoverHighlight:"rgba(204, 216, 219, 0.5)",markerCurrentTime:"#000",text:"#404040",background:"white"},creamy:{primary:"#ffe8d9",secondary:"#fcdcc5",ternary:"#fff6f0",quartenary:"#f7ece6",hoverHighlight:"rgba(230, 221, 202, 0.5)",markerCurrentTime:"#000",text:"#542d05",background:"white"},crimson:{primary:"#a82039",secondary:"#c41238",ternary:"#db4f56",quartenary:"#ce5f64",hoverHighlight:"rgba(196, 141, 141, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},dark:{primary:"#404040",secondary:"#303030",ternary:"#353535",quartenary:"#383838",hoverHighlight:"rgba(159, 160, 161, 0.5)",markerCurrentTime:"#fff",text:"white",background:"#525252",toast:"#1f1f1f"},flare:{primary:"#e08a38",secondary:"#e67912",ternary:"#5e5145",quartenary:"#665648",hoverHighlight:"rgba(196, 141, 141, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},fuchsia:{primary:"#de1d5a",secondary:"#b50b41",ternary:"#ff7da6",quartenary:"#f2799f",hoverHighlight:"rgba(196, 141, 141, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},grove:{primary:"#3d9960",secondary:"#288542",ternary:"#72b585",quartenary:"#65a577",hoverHighlight:"rgba(160, 219, 171, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},"material-blue":{primary:"#0D47A1",secondary:"#1565C0",ternary:"#42a5f5",quartenary:"#409fed",hoverHighlight:"rgba(110, 165, 196, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},sky:{primary:"#b5e3ff",secondary:"#a1d6f7",ternary:"#d6f7ff",quartenary:"#d0edf4",hoverHighlight:"rgba(193, 202, 214, 0.5)",markerCurrentTime:"#000",text:"#022c47",background:"white"},slumber:{primary:"#2a2f42",secondary:"#2f3447",ternary:"#35394d",quartenary:"#2c3044",hoverHighlight:"rgba(179, 162, 127, 0.5)",markerCurrentTime:"#fff",text:"#ffe0b3",background:"#38383b",toast:"#1f1f1f"},vue:{primary:"#258a5d",secondary:"#41B883",ternary:"#35495E",quartenary:"#2a3d51",hoverHighlight:"rgba(160, 219, 171, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"}},qt={class:"g-gantt-rows-container"},Pt=U({__name:"GGanttChart",props:{chartStart:{},chartEnd:{},precision:{default:"day"},barStart:{},barEnd:{},currentTime:{type:Boolean},currentTimeLabel:{default:""},dateFormat:{type:[String,Boolean],default:Re},width:{default:"100%"},hideTimeaxis:{type:Boolean,default:!1},colorScheme:{default:"default"},grid:{type:Boolean,default:!1},pushOnOverlap:{type:Boolean,default:!1},noOverlap:{type:Boolean,default:!1},rowHeight:{default:40},highlightedUnits:{default:()=>[]},font:{default:"inherit"},labelColumnTitle:{default:""},labelColumnWidth:{default:"150px"}},emits:["click-bar","mousedown-bar","mouseup-bar","dblclick-bar","mouseenter-bar","mouseleave-bar","dragstart-bar","drag-bar","dragend-bar","contextmenu-bar"],setup(e,{emit:o}){const a=e,{width:i,font:f,colorScheme:s}=ne(a),l=rt(),r=W(()=>typeof s.value!="string"?s.value:$e[s.value]||$e.default),n=()=>{var h;const y=(h=l.default)==null?void 0:h.call(l),k=[];return y&&y.forEach(c=>{var w;if((w=c.props)!=null&&w.bars){const{label:v,bars:B}=c.props;k.push({label:v,bars:B})}else Array.isArray(c.children)&&c.children.forEach(v=>{var B;const M=v;if((B=M==null?void 0:M.props)!=null&&B.bars){const{label:T,bars:E}=M.props;k.push({label:T,bars:E})}})}),k},t=L(!1),u=L(!1),d=L(void 0);let g;const p=h=>{g&&clearTimeout(g),g=setTimeout(()=>{t.value=!0},800),d.value=h},x=()=>{clearTimeout(g),t.value=!1},m=(h,y,k,c)=>{switch(h.type){case"click":o("click-bar",{bar:y,e:h,datetime:k});break;case"mousedown":o("mousedown-bar",{bar:y,e:h,datetime:k});break;case"mouseup":o("mouseup-bar",{bar:y,e:h,datetime:k});break;case"dblclick":o("dblclick-bar",{bar:y,e:h,datetime:k});break;case"mouseenter":p(y),o("mouseenter-bar",{bar:y,e:h});break;case"mouseleave":x(),o("mouseleave-bar",{bar:y,e:h});break;case"dragstart":u.value=!0,o("dragstart-bar",{bar:y,e:h});break;case"drag":o("drag-bar",{bar:y,e:h});break;case"dragend":u.value=!1,o("dragend-bar",{bar:y,e:h,movedBars:c});break;case"contextmenu":o("contextmenu-bar",{bar:y,e:h,datetime:k});break}},b=L(null),D=jt(b);return ue(We,n),ue(ze,K(X({},ne(a)),{colors:r,chartSize:D})),ue(je,m),(h,y)=>(O(),S("div",null,[$("div",{class:we([{"labels-in-column":!!h.labelColumnTitle}])},[h.labelColumnTitle?(O(),P(kt,{key:0,style:H({width:h.labelColumnWidth})},{"label-column-title":R(()=>[G(h.$slots,"label-column-title")]),"label-column-row":R(({label:k})=>[G(h.$slots,"label-column-row",{label:k})]),_:3},8,["style"])):F("",!0),$("div",{ref_key:"ganttChart",ref:b,class:we(["g-gantt-chart",{"with-column":h.labelColumnTitle}]),style:H({width:C(i),background:r.value.background,fontFamily:C(f)})},[h.hideTimeaxis?F("",!0):(O(),P(Mt,{key:0},{"upper-timeunit":R(({label:k,value:c,date:w})=>[G(h.$slots,"upper-timeunit",{label:k,value:c,date:w})]),timeunit:R(({label:k,value:c,date:w})=>[G(h.$slots,"timeunit",{label:k,value:c,date:w})]),_:3})),h.grid?(O(),P(wt,{key:1,"highlighted-units":h.highlightedUnits},null,8,["highlighted-units"])):F("",!0),h.currentTime?(O(),P(Et,{key:2},{"current-time-label":R(()=>[G(h.$slots,"current-time-label")]),_:3})):F("",!0),$("div",qt,[G(h.$slots,"default")])],6)],2),xe(Tt,{"model-value":t.value||u.value,bar:d.value},{default:R(()=>[G(h.$slots,"bar-tooltip",{bar:d.value})]),_:3},8,["model-value","bar"])]))}});function He(e,o=()=>null,a=()=>null,i=z()){const{barStart:f,barEnd:s,pushOnOverlap:l}=i,r=L(!1);let n=0,t;const{mapPositionToTime:u}=fe(i),{toDayjs:d}=oe(i),g=y=>{const k=document.getElementById(e.ganttBarConfig.id);if(k){switch(n=y.clientX-(k.getBoundingClientRect().left||0),y.target.className){case"g-gantt-bar-handle-left":document.body.style.cursor="ew-resize",t=m;break;case"g-gantt-bar-handle-right":document.body.style.cursor="ew-resize",t=b;break;default:t=x}r.value=!0,window.addEventListener("mousemove",t),window.addEventListener("mouseup",h)}},p=()=>{var y;const k=document.getElementById(e.ganttBarConfig.id),c=(y=k==null?void 0:k.closest(".g-gantt-row-bars-container"))==null?void 0:y.getBoundingClientRect();return{barElement:k,barContainer:c}},x=y=>{const{barElement:k,barContainer:c}=p();if(!k||!c)return;const w=k.getBoundingClientRect().width,v=y.clientX-c.left-n,B=v+w;D(v,B)||(e[f.value]=u(v),e[s.value]=u(B),o(y,e))},m=y=>{const{barElement:k,barContainer:c}=p();if(!k||!c)return;const w=y.clientX-c.left,v=u(w);d(v).isSameOrAfter(d(e,"end"))||(e[f.value]=v,o(y,e))},b=y=>{const{barElement:k,barContainer:c}=p();if(!k||!c)return;const w=y.clientX-c.left,v=u(w);d(v).isSameOrBefore(d(e,"start"))||(e[s.value]=v,o(y,e))},D=(y,k)=>{if(!l.value)return!1;const c=e.ganttBarConfig.dragLimitLeft,w=e.ganttBarConfig.dragLimitRight;return y&&c!=null&&yw},h=y=>{r.value=!1,document.body.style.cursor="",window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",h),a(y,e)};return{isDragging:r,initDrag:g}}function qe(){const e=de(je);if(!e)throw Error("Failed to inject emitBarEvent!");return e}function Vt(){const e=z(),o=ke(),a=qe(),{pushOnOverlap:i,barStart:f,barEnd:s,noOverlap:l,dateFormat:r}=e,n=new Map,{toDayjs:t,format:u}=oe(),d=(c,w)=>{const{initDrag:v}=He(c,p,h,e);a(K(X({},w),{type:"dragstart"}),c),v(w),y(c)},g=(c,w)=>{const v=c.ganttBarConfig.bundle;v!=null&&(o().forEach(B=>{B.bars.forEach(M=>{if(M.ganttBarConfig.bundle===v){const T=M===c?h:()=>null,{initDrag:E}=He(M,p,T,e);E(w),y(M)}})}),a(K(X({},w),{type:"dragstart"}),c))},p=(c,w)=>{a(K(X({},c),{type:"drag"}),w),x(w)},x=c=>{if(!(i!=null&&i.value))return;let w=c,{overlapBar:v,overlapType:B}=m(w);for(;v;){y(v);const M=t(w[f.value]),T=t(w[s.value]),E=t(v[f.value]),Y=t(v[s.value]);let _;switch(B){case"left":_=Y.diff(M,"minutes",!0),v[s.value]=u(w[f.value],r.value),v[f.value]=u(E.subtract(_,"minutes"),r.value);break;case"right":_=T.diff(E,"minutes",!0),v[f.value]=u(T,r.value),v[s.value]=u(Y.add(_,"minutes"),r.value);break;default:console.warn("Vue-Ganttastic: One bar is inside of the other one! This should never occur while push-on-overlap is active!");return}v&&(B==="left"||B==="right")&&b(v,_,B),w=v,{overlapBar:v,overlapType:B}=m(v)}},m=c=>{var w,v;let B,M,T;const E=(v=(w=o().find(I=>I.bars.includes(c)))==null?void 0:w.bars)!=null?v:[],Y=t(c[f.value]),_=t(c[s.value]);return{overlapBar:E.find(I=>{if(I===c)return!1;const j=t(I[f.value]),q=t(I[s.value]);return B=Y.isBetween(j,q),M=_.isBetween(j,q),T=j.isBetween(Y,_)||q.isBetween(Y,_),B||M||T}),overlapType:B?"left":M?"right":T?"between":null}},b=(c,w,v)=>{y(c),c.ganttBarConfig.bundle&&o().forEach(B=>{B.bars.forEach(M=>{M.ganttBarConfig.bundle===c.ganttBarConfig.bundle&&M!==c&&(y(M),D(M,w,v))})})},D=(c,w,v)=>{switch(v){case"left":c[f.value]=u(t(c,"start").subtract(w,"minutes"),r.value),c[s.value]=u(t(c,"end").subtract(w,"minutes"),r.value);break;case"right":c[f.value]=u(t(c,"start").add(w,"minutes"),r.value),c[s.value]=u(t(c,"end").add(w,"minutes"),r.value)}x(c)},h=(c,w)=>{k();const v=K(X({},c),{type:"dragend"});a(v,w,void 0,new Map(n)),n.clear()},y=c=>{if(!n.has(c)){const w=c[f.value],v=c[s.value];n.set(c,{oldStart:w,oldEnd:v})}},k=()=>{if(i.value||!l.value)return;let c=!1;n.forEach((w,v)=>{const{overlapBar:B}=m(v);B!=null&&(c=!0)}),c&&n.forEach(({oldStart:w,oldEnd:v},B)=>{B[f.value]=w,B[s.value]=v})};return{initDragOfBar:d,initDragOfBundle:g}}function Qt(){const{pushOnOverlap:e}=z(),o=ke(),a=l=>{const r=[];return l!=null&&o().forEach(n=>{n.bars.forEach(t=>{t.ganttBarConfig.bundle===l&&r.push(t)})}),r},i=l=>{if(!(!e.value||l.ganttBarConfig.pushOnOverlap===!1)){for(const r of["left","right"]){const n=r,{gapDistanceSoFar:t,bundleBarsAndGapDist:u}=f(l,0,n);let d=t;const g=u;if(!g)continue;for(let x=0;xD!==m).forEach(D=>{const h=f(D,b,n),y=h.gapDistanceSoFar,k=h.bundleBarsAndGapDist;y!=null&&(!d||y{g.find(w=>w.bar===c.bar)||g.push(c)})})}const p=document.getElementById(l.ganttBarConfig.id);d!=null&&n==="left"?l.ganttBarConfig.dragLimitLeft=p.offsetLeft-d:d!=null&&n==="right"&&(l.ganttBarConfig.dragLimitRight=p.offsetLeft+p.offsetWidth+d)}a(l.ganttBarConfig.bundle).forEach(r=>{r.ganttBarConfig.dragLimitLeft=l.ganttBarConfig.dragLimitLeft,r.ganttBarConfig.dragLimitRight=l.ganttBarConfig.dragLimitRight})}},f=(l,r=0,n)=>{const t=l.ganttBarConfig.bundle?[{bar:l,gapDistance:r}]:[];let u=l,d=s(u,n);if(n==="left")for(;d;){const g=document.getElementById(u.ganttBarConfig.id),p=document.getElementById(d.ganttBarConfig.id),x=p.offsetLeft+p.offsetWidth;if(r+=g.offsetLeft-x,d.ganttBarConfig.immobile)return{gapDistanceSoFar:r,bundleBarsAndGapDist:t};d.ganttBarConfig.bundle&&t.push({bar:d,gapDistance:r}),u=d,d=s(d,"left")}if(n==="right")for(;d;){const g=document.getElementById(u.ganttBarConfig.id),p=document.getElementById(d.ganttBarConfig.id),x=g.offsetLeft+g.offsetWidth;if(r+=p.offsetLeft-x,d.ganttBarConfig.immobile)return{gapDistanceSoFar:r,bundleBarsAndGapDist:t};d.ganttBarConfig.bundle&&t.push({bar:d,gapDistance:r}),u=d,d=s(d,"right")}return{gapDistanceSoFar:null,bundleBarsAndGapDist:t}},s=(l,r)=>{var n,t;const u=document.getElementById(l.ganttBarConfig.id),d=(t=(n=o().find(p=>p.bars.includes(l)))==null?void 0:n.bars)!=null?t:[];let g=[];return r==="left"?g=d.filter(p=>{const x=document.getElementById(p.ganttBarConfig.id);return x&&x.offsetLeft{const x=document.getElementById(p.ganttBarConfig.id);return x&&x.offsetLeft>u.offsetLeft&&p.ganttBarConfig.pushOnOverlap!==!1}),g.length>0?g.reduce((p,x)=>{const m=document.getElementById(p.ganttBarConfig.id),b=document.getElementById(x.ganttBarConfig.id),D=Math.abs(m.offsetLeft-u.offsetLeft),h=Math.abs(b.offsetLeft-u.offsetLeft);return Ds.value.ganttBarConfig);function p(M){g.value.bundle!=null?t(s.value,M):n(s.value,M),d.value=!0}const x=()=>{u(s.value),!g.value.immobile&&(window.addEventListener("mousemove",p,{once:!0}),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",p),d.value=!1},{once:!0}))},m=de(Ae),b=M=>{var T;M.preventDefault(),M.type==="mousedown"&&x();const E=(T=m==null?void 0:m.value)==null?void 0:T.getBoundingClientRect();if(!E)return;const Y=r(M.clientX-E.left);a(M,s.value,Y)},{barStart:D,barEnd:h,width:y,chartStart:k,chartEnd:c,chartSize:w}=i,v=L(0),B=L(0);return Ie(()=>{ce([s,y,k,c,w.width],()=>{v.value=l(s.value[D.value]),B.value=l(s.value[h.value])},{deep:!0,immediate:!0})}),(M,T)=>(O(),S("div",{id:g.value.id,class:we(["g-gantt-bar",g.value.class||""]),style:H(K(X({},g.value.style),{position:"absolute",top:`${C(f)*.1}px`,left:`${v.value}px`,width:`${B.value-v.value}px`,height:`${C(f)*.8}px`,zIndex:d.value?3:2})),onMousedown:b,onClick:b,onDblclick:b,onMouseenter:b,onMouseleave:b,onContextmenu:b},[$("div",Kt,[G(M.$slots,"default",{bar:C(s)},()=>[$("div",null,N(g.value.label||""),1),g.value.html?(O(),S("div",{key:0,innerHTML:g.value.html},null,8,Zt)):F("",!0)])]),g.value.hasHandles?(O(),S(Z,{key:0},[Jt,ea],64)):F("",!0)],46,Xt))}}),aa=U({__name:"GGanttRow",props:{label:{},bars:{},highlightOnHover:{type:Boolean}},emits:["drop"],setup(e,{emit:o}){const a=e,{rowHeight:i,colors:f,labelColumnTitle:s}=z(),{highlightOnHover:l}=ne(a),r=L(!1),n=W(()=>({height:`${i.value}px`,background:l!=null&&l.value&&r.value?f.value.hoverHighlight:null})),{mapPositionToTime:t}=fe(),u=L(null);ue(Ae,u);const d=p=>{var x;const m=(x=u.value)==null?void 0:x.getBoundingClientRect();if(!m){console.error("Vue-Ganttastic: failed to find bar container element for row.");return}const b=p.clientX-m.left,D=t(b);o("drop",{e:p,datetime:D})},g=p=>!p||/^\s*$/.test(p);return(p,x)=>(O(),S("div",{class:"g-gantt-row",style:H(n.value),onDragover:x[0]||(x[0]=ot(m=>r.value=!0,["prevent"])),onDragleave:x[1]||(x[1]=m=>r.value=!1),onDrop:x[2]||(x[2]=m=>d(m)),onMouseover:x[3]||(x[3]=m=>r.value=!0),onMouseleave:x[4]||(x[4]=m=>r.value=!1)},[g(p.label)?F("",!0):(O(),S("div",{key:0,class:"g-gantt-row-label",style:H({background:C(f).primary,color:C(f).text})},[G(p.$slots,"label",{},()=>[ie(N(p.label),1)])],4)),$("div",it({ref_key:"barContainer",ref:u,class:"g-gantt-row-bars-container"},p.$attrs),[xe(nt,{name:"bar-transition",tag:"div"},{default:R(()=>[(O(!0),S(Z,null,ae(p.bars,m=>(O(),P(ta,{key:m.ganttBarConfig.id,bar:m},{default:R(()=>[G(p.$slots,"bar-label",{bar:m})]),_:2},1032,["bar"]))),128))]),_:3})],16)],36))}});function V(e,o="top"){if(!e||typeof document>"u")return;const a=document.head,i=document.createElement("style");o==="top"&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.appendChild(document.createTextNode(e))}V(`
+var Ze=Object.defineProperty,Je=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var tt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable;var Ce=(e,o,a)=>o in e?Ze(e,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[o]=a,X=(e,o)=>{for(var a in o||(o={}))tt.call(o,a)&&Ce(e,a,o[a]);if(Be)for(var a of Be(o))at.call(o,a)&&Ce(e,a,o[a]);return e},K=(e,o)=>Je(e,et(o));var Me=(e,o,a)=>new Promise((i,f)=>{var s=n=>{try{r(a.next(n))}catch(t){f(t)}},l=n=>{try{r(a.throw(n))}catch(t){f(t)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(s,l);r((a=a.apply(e,o)).next())});import{d as U,b4 as ne,d7 as rt,c as W,r as L,aY as ue,e as O,x as S,g as $,f as P,j as R,S as G,n as H,K as F,i as we,u as C,m as xe,l as ie,t as N,F as Z,y as ae,L as nt,a6 as it,h as ot,a_ as de,w as ce,q as Ge,b6 as lt,T as st,d6 as re,o as Ie,de as ut,df as dt,$ as ct}from"./index-BAaep8yZ.js";var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ft={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){var a="day";return function(i,f,s){var l=function(t){return t.add(4-t.isoWeekday(),a)},r=f.prototype;r.isoWeekYear=function(){return l(this).year()},r.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),a);var u,d,g,p,x=l(this),m=(u=this.isoWeekYear(),d=this.$u,g=(d?s.utc:s)().year(u).startOf("year"),p=4-g.isoWeekday(),g.isoWeekday()>4&&(p+=7),g.add(p,a));return x.diff(m,"week")+1},r.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var n=r.startOf;r.startOf=function(t,u){var d=this.$utils(),g=!!d.u(u)||u;return d.p(t)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(t,u)}}})})(ft);var gt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i){i.prototype.isSameOrBefore=function(f,s){return this.isSame(f,s)||this.isBefore(f,s)}}})})(gt);var ht={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i){i.prototype.isSameOrAfter=function(f,s){return this.isSame(f,s)||this.isAfter(f,s)}}})})(ht);var mt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i,f){i.prototype.isBetween=function(s,l,r,n){var t=f(s),u=f(l),d=(n=n||"()")[0]==="(",g=n[1]===")";return(d?this.isAfter(t,r):!this.isBefore(t,r))&&(g?this.isBefore(u,r):!this.isAfter(u,r))||(d?this.isBefore(t,r):!this.isAfter(t,r))&&(g?this.isAfter(u,r):!this.isBefore(u,r))}}})})(mt);var pt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){var a="week",i="year";return function(f,s,l){var r=s.prototype;r.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),"day");var t=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=l(this).startOf(i).add(1,i).date(t),d=l(this).endOf(a);if(u.isBefore(d))return 1}var g=l(this).startOf(i).date(t).startOf(a).subtract(1,"millisecond"),p=this.diff(g,a,!0);return p<0?l(this).startOf("week").week():Math.ceil(p)},r.weeks=function(n){return n===void 0&&(n=null),this.week(n)}}})})(pt);var bt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){return function(a,i,f){var s=i.prototype,l=s.format;f.en.ordinal=function(r){var n=["th","st","nd","rd"],t=r%100;return"["+r+(n[(t-20)%10]||n[t]||n[0])+"]"},s.format=function(r){var n=this,t=this.$locale();if(!this.isValid())return l.bind(this)(r);var u=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((n.$M+1)/3);case"Do":return t.ordinal(n.$D);case"gggg":return n.weekYear();case"GGGG":return n.isoWeekYear();case"wo":return t.ordinal(n.week(),"W");case"w":case"ww":return u.s(n.week(),g==="w"?1:2,"0");case"W":case"WW":return u.s(n.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return u.s(String(n.$H===0?24:n.$H),g==="k"?1:2,"0");case"X":return Math.floor(n.$d.getTime()/1e3);case"x":return n.$d.getTime();case"z":return"["+n.offsetName()+"]";case"zzz":return"["+n.offsetName("long")+"]";default:return g}});return l.bind(this)(d)}}})})(bt);var vt={exports:{}};(function(e,o){(function(a,i){e.exports=i()})(J,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,f=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,r={},n=function(m){return(m=+m)+(m>68?1900:2e3)},t=function(m){return function(b){this[m]=+b}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var D=b.match(/([+-]|\d\d)/g),h=60*D[1]+(+D[2]||0);return h===0?0:D[0]==="+"?-h:h}(m)}],d=function(m){var b=r[m];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(m,b){var D,h=r.meridiem;if(h){for(var y=1;y<=24;y+=1)if(m.indexOf(h(y,0,b))>-1){D=y>12;break}}else D=m===(b?"pm":"PM");return D},p={A:[l,function(m){this.afternoon=g(m,!1)}],a:[l,function(m){this.afternoon=g(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[f,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,t("seconds")],ss:[s,t("seconds")],m:[s,t("minutes")],mm:[s,t("minutes")],H:[s,t("hours")],h:[s,t("hours")],HH:[s,t("hours")],hh:[s,t("hours")],D:[s,t("day")],DD:[f,t("day")],Do:[l,function(m){var b=r.ordinal,D=m.match(/\d+/);if(this.day=D[0],b)for(var h=1;h<=31;h+=1)b(h).replace(/\[|\]/g,"")===m&&(this.day=h)}],M:[s,t("month")],MM:[f,t("month")],MMM:[l,function(m){var b=d("months"),D=(d("monthsShort")||b.map(function(h){return h.slice(0,3)})).indexOf(m)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[l,function(m){var b=d("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,t("year")],YY:[f,function(m){this.year=n(m)}],YYYY:[/\d{4}/,t("year")],Z:u,ZZ:u};function x(m){var b,D;b=m,D=r&&r.formats;for(var h=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,T,E){var Y=E&&E.toUpperCase();return T||D[E]||a[E]||D[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,I,j){return I||j.slice(1)})})).match(i),y=h.length,k=0;k-1)return new Date((ee==="X"?1e3:1)*q);var A=x(ee)(q),te=A.year,le=A.month,Pe=A.day,Ve=A.hours,Qe=A.minutes,Xe=A.seconds,Ke=A.milliseconds,De=A.zone,ge=new Date,he=Pe||(te||le?1:ge.getDate()),me=te||ge.getFullYear(),se=0;te&&!le||(se=le>0?le-1:ge.getMonth());var pe=Ve||0,be=Qe||0,ve=Xe||0,ye=Ke||0;return De?new Date(Date.UTC(me,se,he,pe,be,ve,ye+60*De.offset*1e3)):Q?new Date(Date.UTC(me,se,he,pe,be,ve,ye)):new Date(me,se,he,pe,be,ve,ye)}catch(ra){return new Date("")}}(c,B,w),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),E&&c!=this.format(B)&&(this.$d=new Date("")),r={}}else if(B instanceof Array)for(var _=B.length,I=1;I<=_;I+=1){v[1]=B[I-1];var j=D.apply(this,v);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}I===_&&(this.$d=new Date(""))}else y.call(this,k)}}})})(vt);const We=Symbol("CHART_ROWS_KEY"),ze=Symbol("CONFIG_KEY"),je=Symbol("EMIT_BAR_EVENT_KEY"),Ae=Symbol("BAR_CONTAINER_KEY");function z(){const e=de(ze);if(!e)throw Error("Failed to inject config!");return e}const Re="YYYY-MM-DD HH:mm";function oe(e=z()){const{chartStart:o,chartEnd:a,barStart:i,barEnd:f,dateFormat:s}=e,l=W(()=>n(o.value)),r=W(()=>n(a.value)),n=(t,u)=>{let d;if(u!==void 0&&typeof t!="string"&&!(t instanceof Date)&&(d=u==="start"?t[i.value]:t[f.value]),typeof t=="string")d=t;else if(t instanceof Date)return re(t);const g=s.value||Re;return re(d,g,!0)};return{chartStartDayjs:l,chartEndDayjs:r,toDayjs:n,format:(t,u)=>u===!1?t instanceof Date?t:re(t).toDate():(typeof t=="string"||t instanceof Date?n(t):t).format(u)}}function Fe(){const{precision:e}=z(),{chartStartDayjs:o,chartEndDayjs:a}=oe(),i=W(()=>{switch(e==null?void 0:e.value){case"hour":return"day";case"day":return"month";case"date":case"week":return"month";case"month":return"year";default:throw new Error("Precision prop incorrect. Must be one of the following: 'hour', 'day', 'date', 'week', 'month'")}}),f=W(()=>{switch(e.value){case"date":return"day";case"week":return"isoWeek";default:return e.value}}),s={hour:"HH",date:"DD.MMM",day:"DD.MMM",week:"WW",month:"MMMM YYYY",year:"YYYY"};return{timeaxisUnits:W(()=>{const l=[],r=[],n=a.value.diff(o.value,"minutes",!0),t=i.value,u=f.value;let d=o.value,g=o.value;for(;g.isSameOrBefore(a.value);){const p=g.endOf(u),x=p.isAfter(a.value)?a.value.diff(g,"minutes",!0)/n*100:p.diff(g,"minutes",!0)/n*100;r.push({label:g.format(s[e==null?void 0:e.value]),value:String(g),date:g.toDate(),width:String(x)+"%"}),g=p.add(1,u==="isoWeek"?"week":u).startOf(u)}for(;d.isSameOrBefore(a.value);){const p=d.endOf(t),x=p.isAfter(a.value)?a.value.diff(d,"minutes",!0)/n*100:p.diff(d,"minutes",!0)/n*100;l.push({label:d.format(s[t]),value:String(d),date:d.toDate(),width:String(x)+"%"}),d=p.add(1,t).startOf(t)}return{upperUnits:l,lowerUnits:r}})}}const yt={class:"g-grid-container"},wt=U({__name:"GGanttGrid",props:{highlightedUnits:{}},setup(e){const{colors:o}=z(),{timeaxisUnits:a}=Fe();return(i,f)=>(O(),S("div",yt,[(O(!0),S(Z,null,ae(C(a).lowerUnits,({label:s,value:l,width:r})=>{var n;return O(),S("div",{key:s,class:"g-grid-line",style:H({width:r,background:(n=i.highlightedUnits)!=null&&n.includes(Number(l))?C(o).hoverHighlight:void 0})},null,4)}),128))]))}});function ke(){const e=de(We);if(!e)throw Error("Failed to inject getChartRows!");return e}const xt={class:"g-label-column-rows"},kt=U({__name:"GGanttLabelColumn",setup(e){const{font:o,colors:a,labelColumnTitle:i,rowHeight:f}=z(),s=ke();return(l,r)=>(O(),S("div",{class:"g-label-column",style:H({fontFamily:C(o),color:C(a).text})},[G(l.$slots,"label-column-title",{},()=>[$("div",{class:"g-label-column-header",style:H({background:C(a).primary})},N(C(i)),5)]),$("div",xt,[(O(!0),S(Z,null,ae(C(s)(),({label:n},t)=>(O(),S("div",{key:`${n}_${t}`,class:"g-label-column-row",style:H({background:t%2===0?C(a).ternary:C(a).quartenary,height:`${C(f)}px`})},[G(l.$slots,"label-column-row",{label:n},()=>[$("span",null,N(n),1)])],4))),128))])],4))}}),Dt={class:"g-timeaxis"},Bt={class:"g-timeunits-container"},Ct={class:"g-timeunits-container"},Mt=U({__name:"GGanttTimeaxis",setup(e){const{precision:o,colors:a}=z(),{timeaxisUnits:i}=Fe();return(f,s)=>(O(),S("div",Dt,[$("div",Bt,[(O(!0),S(Z,null,ae(C(i).upperUnits,({label:l,value:r,date:n,width:t},u)=>(O(),S("div",{key:l,class:"g-upper-timeunit",style:H({background:u%2===0?C(a).primary:C(a).secondary,color:C(a).text,width:t})},[G(f.$slots,"upper-timeunit",{label:l,value:r,date:n},()=>[ie(N(l),1)])],4))),128))]),$("div",Ct,[(O(!0),S(Z,null,ae(C(i).lowerUnits,({label:l,value:r,date:n,width:t},u)=>(O(),S("div",{key:l,class:"g-timeunit",style:H({background:u%2===0?C(a).ternary:C(a).quartenary,color:C(a).text,flexDirection:C(o)==="hour"?"column":"row",alignItems:C(o)==="hour"?"":"center",width:t})},[G(f.$slots,"timeunit",{label:l,value:r,date:n},()=>[ie(N(l),1)]),C(o)==="hour"?(O(),S("div",{key:0,class:"g-timeaxis-hour-pin",style:H({background:C(a).text})},null,4)):F("",!0)],4))),128))])]))}}),Ot="cadetblue",Tt=U({__name:"GGanttBarTooltip",props:{bar:{},modelValue:{type:Boolean}},setup(e){const o=e,a={hour:"HH:mm",day:"DD. MMM HH:mm",date:"DD. MMMM YYYY",month:"DD. MMMM YYYY",week:"DD. MMMM YYYY (WW)"},{bar:i}=ne(o),{precision:f,font:s,barStart:l,barEnd:r,rowHeight:n}=z(),t=L("0px"),u=L("0px");ce(()=>o.bar,()=>Me(this,null,function*(){var b;yield Ge();const D=((b=i==null?void 0:i.value)==null?void 0:b.ganttBarConfig.id)||"";if(!D)return;const h=document.getElementById(D),{top:y,left:k}=(h==null?void 0:h.getBoundingClientRect())||{top:0,left:0},c=Math.max(k,10);t.value=`${y+n.value-10}px`,u.value=`${c}px`}),{deep:!0,immediate:!0});const d=W(()=>{var b,D;return((D=(b=i==null?void 0:i.value)==null?void 0:b.ganttBarConfig.style)==null?void 0:D.background)||Ot}),{toDayjs:g}=oe(),p=W(()=>{var b;return(b=i.value)==null?void 0:b[l.value]}),x=W(()=>{var b;return(b=i.value)==null?void 0:b[r.value]}),m=W(()=>{if(!(i!=null&&i.value))return"";const b=a[f.value],D=g(p.value).format(b),h=g(x.value).format(b);return`${D} – ${h}`});return(b,D)=>(O(),P(st,{to:"body"},[xe(lt,{name:"g-fade",mode:"out-in"},{default:R(()=>[b.modelValue?(O(),S("div",{key:0,class:"g-gantt-tooltip",style:H({top:t.value,left:u.value,fontFamily:C(s)})},[$("div",{class:"g-gantt-tooltip-color-dot",style:H({background:d.value})},null,4),G(b.$slots,"default",{bar:C(i),barStart:p.value,barEnd:x.value},()=>[ie(N(m.value),1)])],4)):F("",!0)]),_:3})]))}});function fe(e=z()){const{dateFormat:o,chartSize:a}=e,{chartStartDayjs:i,chartEndDayjs:f,toDayjs:s,format:l}=oe(e),r=W(()=>f.value.diff(i.value,"minutes"));return{mapTimeToPosition:n=>{const t=a.width.value||0,u=s(n).diff(i.value,"minutes",!0);return Math.ceil(u/r.value*t)},mapPositionToTime:n=>{const t=a.width.value||0,u=n/t*r.value;return l(i.value.add(u,"minutes"),o.value)}}}const Et=U({__name:"GGanttCurrentTime",setup(e){const{mapTimeToPosition:o}=fe(),a=L(re()),{colors:i,dateFormat:f,currentTimeLabel:s}=z(),l=W(()=>{const r=f.value||"YYYY-MM-DD HH:mm";return o(re(a.value,r).format(r))});return(r,n)=>(O(),S("div",{class:"g-grid-current-time",style:H({left:`${l.value}px`})},[$("div",{class:"g-grid-current-time-marker",style:H({border:`1px dashed ${C(i).markerCurrentTime}`})},null,4),$("span",{class:"g-grid-current-time-text",style:H({color:C(i).markerCurrentTime})},[G(r.$slots,"current-time-label",{},()=>[ie(N(C(s)),1)])],4)],4))}});var Oe;const Ne=typeof window<"u";Ne&&((Oe=window==null?void 0:window.navigator)!=null&&Oe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function St(e){return typeof e=="function"?e():C(e)}function Yt(e){return e}function _t(e){return ut()?(dt(e),!0):!1}function Lt(e,o=!0){ct()?Ie(e):o?e():Ge(e)}function Ue(e){var o;const a=St(e);return(o=a==null?void 0:a.$el)!=null?o:a}const $t=Ne?window:void 0;function Ht(e,o=!1){const a=L(),i=()=>a.value=!!e();return i(),Lt(i,o),a}const Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ee="__vueuse_ssr_handlers__";Te[Ee]=Te[Ee]||{};var Se=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Wt=(e,o)=>{var a={};for(var i in e)Gt.call(e,i)&&o.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Se)for(var i of Se(e))o.indexOf(i)<0&&It.call(e,i)&&(a[i]=e[i]);return a};function zt(e,o,a={}){const i=a,{window:f=$t}=i,s=Wt(i,["window"]);let l;const r=Ht(()=>f&&"ResizeObserver"in f),n=()=>{l&&(l.disconnect(),l=void 0)},t=ce(()=>Ue(e),d=>{n(),r.value&&f&&d&&(l=new ResizeObserver(o),l.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{n(),t()};return _t(u),{isSupported:r,stop:u}}function jt(e,o={width:0,height:0},a={}){const i=L(o.width),f=L(o.height);return zt(e,([s])=>{i.value=s.contentRect.width,f.value=s.contentRect.height},a),ce(()=>Ue(e),s=>{i.value=s?o.width:0,f.value=s?o.height:0}),{width:i,height:f}}var Ye;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ye||(Ye={}));var At=Object.defineProperty,_e=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Le=(e,o,a)=>o in e?At(e,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[o]=a,Nt=(e,o)=>{for(var a in o||(o={}))Rt.call(o,a)&&Le(e,a,o[a]);if(_e)for(var a of _e(o))Ft.call(o,a)&&Le(e,a,o[a]);return e};const Ut={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Nt({linear:Yt},Ut);const $e={default:{primary:"#eeeeee",secondary:"#E0E0E0",ternary:"#F5F5F5",quartenary:"#ededed",hoverHighlight:"rgba(204, 216, 219, 0.5)",markerCurrentTime:"#000",text:"#404040",background:"white"},creamy:{primary:"#ffe8d9",secondary:"#fcdcc5",ternary:"#fff6f0",quartenary:"#f7ece6",hoverHighlight:"rgba(230, 221, 202, 0.5)",markerCurrentTime:"#000",text:"#542d05",background:"white"},crimson:{primary:"#a82039",secondary:"#c41238",ternary:"#db4f56",quartenary:"#ce5f64",hoverHighlight:"rgba(196, 141, 141, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},dark:{primary:"#404040",secondary:"#303030",ternary:"#353535",quartenary:"#383838",hoverHighlight:"rgba(159, 160, 161, 0.5)",markerCurrentTime:"#fff",text:"white",background:"#525252",toast:"#1f1f1f"},flare:{primary:"#e08a38",secondary:"#e67912",ternary:"#5e5145",quartenary:"#665648",hoverHighlight:"rgba(196, 141, 141, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},fuchsia:{primary:"#de1d5a",secondary:"#b50b41",ternary:"#ff7da6",quartenary:"#f2799f",hoverHighlight:"rgba(196, 141, 141, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},grove:{primary:"#3d9960",secondary:"#288542",ternary:"#72b585",quartenary:"#65a577",hoverHighlight:"rgba(160, 219, 171, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},"material-blue":{primary:"#0D47A1",secondary:"#1565C0",ternary:"#42a5f5",quartenary:"#409fed",hoverHighlight:"rgba(110, 165, 196, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"},sky:{primary:"#b5e3ff",secondary:"#a1d6f7",ternary:"#d6f7ff",quartenary:"#d0edf4",hoverHighlight:"rgba(193, 202, 214, 0.5)",markerCurrentTime:"#000",text:"#022c47",background:"white"},slumber:{primary:"#2a2f42",secondary:"#2f3447",ternary:"#35394d",quartenary:"#2c3044",hoverHighlight:"rgba(179, 162, 127, 0.5)",markerCurrentTime:"#fff",text:"#ffe0b3",background:"#38383b",toast:"#1f1f1f"},vue:{primary:"#258a5d",secondary:"#41B883",ternary:"#35495E",quartenary:"#2a3d51",hoverHighlight:"rgba(160, 219, 171, 0.5)",markerCurrentTime:"#000",text:"white",background:"white"}},qt={class:"g-gantt-rows-container"},Pt=U({__name:"GGanttChart",props:{chartStart:{},chartEnd:{},precision:{default:"day"},barStart:{},barEnd:{},currentTime:{type:Boolean},currentTimeLabel:{default:""},dateFormat:{type:[String,Boolean],default:Re},width:{default:"100%"},hideTimeaxis:{type:Boolean,default:!1},colorScheme:{default:"default"},grid:{type:Boolean,default:!1},pushOnOverlap:{type:Boolean,default:!1},noOverlap:{type:Boolean,default:!1},rowHeight:{default:40},highlightedUnits:{default:()=>[]},font:{default:"inherit"},labelColumnTitle:{default:""},labelColumnWidth:{default:"150px"}},emits:["click-bar","mousedown-bar","mouseup-bar","dblclick-bar","mouseenter-bar","mouseleave-bar","dragstart-bar","drag-bar","dragend-bar","contextmenu-bar"],setup(e,{emit:o}){const a=e,{width:i,font:f,colorScheme:s}=ne(a),l=rt(),r=W(()=>typeof s.value!="string"?s.value:$e[s.value]||$e.default),n=()=>{var h;const y=(h=l.default)==null?void 0:h.call(l),k=[];return y&&y.forEach(c=>{var w;if((w=c.props)!=null&&w.bars){const{label:v,bars:B}=c.props;k.push({label:v,bars:B})}else Array.isArray(c.children)&&c.children.forEach(v=>{var B;const M=v;if((B=M==null?void 0:M.props)!=null&&B.bars){const{label:T,bars:E}=M.props;k.push({label:T,bars:E})}})}),k},t=L(!1),u=L(!1),d=L(void 0);let g;const p=h=>{g&&clearTimeout(g),g=setTimeout(()=>{t.value=!0},800),d.value=h},x=()=>{clearTimeout(g),t.value=!1},m=(h,y,k,c)=>{switch(h.type){case"click":o("click-bar",{bar:y,e:h,datetime:k});break;case"mousedown":o("mousedown-bar",{bar:y,e:h,datetime:k});break;case"mouseup":o("mouseup-bar",{bar:y,e:h,datetime:k});break;case"dblclick":o("dblclick-bar",{bar:y,e:h,datetime:k});break;case"mouseenter":p(y),o("mouseenter-bar",{bar:y,e:h});break;case"mouseleave":x(),o("mouseleave-bar",{bar:y,e:h});break;case"dragstart":u.value=!0,o("dragstart-bar",{bar:y,e:h});break;case"drag":o("drag-bar",{bar:y,e:h});break;case"dragend":u.value=!1,o("dragend-bar",{bar:y,e:h,movedBars:c});break;case"contextmenu":o("contextmenu-bar",{bar:y,e:h,datetime:k});break}},b=L(null),D=jt(b);return ue(We,n),ue(ze,K(X({},ne(a)),{colors:r,chartSize:D})),ue(je,m),(h,y)=>(O(),S("div",null,[$("div",{class:we([{"labels-in-column":!!h.labelColumnTitle}])},[h.labelColumnTitle?(O(),P(kt,{key:0,style:H({width:h.labelColumnWidth})},{"label-column-title":R(()=>[G(h.$slots,"label-column-title")]),"label-column-row":R(({label:k})=>[G(h.$slots,"label-column-row",{label:k})]),_:3},8,["style"])):F("",!0),$("div",{ref_key:"ganttChart",ref:b,class:we(["g-gantt-chart",{"with-column":h.labelColumnTitle}]),style:H({width:C(i),background:r.value.background,fontFamily:C(f)})},[h.hideTimeaxis?F("",!0):(O(),P(Mt,{key:0},{"upper-timeunit":R(({label:k,value:c,date:w})=>[G(h.$slots,"upper-timeunit",{label:k,value:c,date:w})]),timeunit:R(({label:k,value:c,date:w})=>[G(h.$slots,"timeunit",{label:k,value:c,date:w})]),_:3})),h.grid?(O(),P(wt,{key:1,"highlighted-units":h.highlightedUnits},null,8,["highlighted-units"])):F("",!0),h.currentTime?(O(),P(Et,{key:2},{"current-time-label":R(()=>[G(h.$slots,"current-time-label")]),_:3})):F("",!0),$("div",qt,[G(h.$slots,"default")])],6)],2),xe(Tt,{"model-value":t.value||u.value,bar:d.value},{default:R(()=>[G(h.$slots,"bar-tooltip",{bar:d.value})]),_:3},8,["model-value","bar"])]))}});function He(e,o=()=>null,a=()=>null,i=z()){const{barStart:f,barEnd:s,pushOnOverlap:l}=i,r=L(!1);let n=0,t;const{mapPositionToTime:u}=fe(i),{toDayjs:d}=oe(i),g=y=>{const k=document.getElementById(e.ganttBarConfig.id);if(k){switch(n=y.clientX-(k.getBoundingClientRect().left||0),y.target.className){case"g-gantt-bar-handle-left":document.body.style.cursor="ew-resize",t=m;break;case"g-gantt-bar-handle-right":document.body.style.cursor="ew-resize",t=b;break;default:t=x}r.value=!0,window.addEventListener("mousemove",t),window.addEventListener("mouseup",h)}},p=()=>{var y;const k=document.getElementById(e.ganttBarConfig.id),c=(y=k==null?void 0:k.closest(".g-gantt-row-bars-container"))==null?void 0:y.getBoundingClientRect();return{barElement:k,barContainer:c}},x=y=>{const{barElement:k,barContainer:c}=p();if(!k||!c)return;const w=k.getBoundingClientRect().width,v=y.clientX-c.left-n,B=v+w;D(v,B)||(e[f.value]=u(v),e[s.value]=u(B),o(y,e))},m=y=>{const{barElement:k,barContainer:c}=p();if(!k||!c)return;const w=y.clientX-c.left,v=u(w);d(v).isSameOrAfter(d(e,"end"))||(e[f.value]=v,o(y,e))},b=y=>{const{barElement:k,barContainer:c}=p();if(!k||!c)return;const w=y.clientX-c.left,v=u(w);d(v).isSameOrBefore(d(e,"start"))||(e[s.value]=v,o(y,e))},D=(y,k)=>{if(!l.value)return!1;const c=e.ganttBarConfig.dragLimitLeft,w=e.ganttBarConfig.dragLimitRight;return y&&c!=null&&yw},h=y=>{r.value=!1,document.body.style.cursor="",window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",h),a(y,e)};return{isDragging:r,initDrag:g}}function qe(){const e=de(je);if(!e)throw Error("Failed to inject emitBarEvent!");return e}function Vt(){const e=z(),o=ke(),a=qe(),{pushOnOverlap:i,barStart:f,barEnd:s,noOverlap:l,dateFormat:r}=e,n=new Map,{toDayjs:t,format:u}=oe(),d=(c,w)=>{const{initDrag:v}=He(c,p,h,e);a(K(X({},w),{type:"dragstart"}),c),v(w),y(c)},g=(c,w)=>{const v=c.ganttBarConfig.bundle;v!=null&&(o().forEach(B=>{B.bars.forEach(M=>{if(M.ganttBarConfig.bundle===v){const T=M===c?h:()=>null,{initDrag:E}=He(M,p,T,e);E(w),y(M)}})}),a(K(X({},w),{type:"dragstart"}),c))},p=(c,w)=>{a(K(X({},c),{type:"drag"}),w),x(w)},x=c=>{if(!(i!=null&&i.value))return;let w=c,{overlapBar:v,overlapType:B}=m(w);for(;v;){y(v);const M=t(w[f.value]),T=t(w[s.value]),E=t(v[f.value]),Y=t(v[s.value]);let _;switch(B){case"left":_=Y.diff(M,"minutes",!0),v[s.value]=u(w[f.value],r.value),v[f.value]=u(E.subtract(_,"minutes"),r.value);break;case"right":_=T.diff(E,"minutes",!0),v[f.value]=u(T,r.value),v[s.value]=u(Y.add(_,"minutes"),r.value);break;default:console.warn("Vue-Ganttastic: One bar is inside of the other one! This should never occur while push-on-overlap is active!");return}v&&(B==="left"||B==="right")&&b(v,_,B),w=v,{overlapBar:v,overlapType:B}=m(v)}},m=c=>{var w,v;let B,M,T;const E=(v=(w=o().find(I=>I.bars.includes(c)))==null?void 0:w.bars)!=null?v:[],Y=t(c[f.value]),_=t(c[s.value]);return{overlapBar:E.find(I=>{if(I===c)return!1;const j=t(I[f.value]),q=t(I[s.value]);return B=Y.isBetween(j,q),M=_.isBetween(j,q),T=j.isBetween(Y,_)||q.isBetween(Y,_),B||M||T}),overlapType:B?"left":M?"right":T?"between":null}},b=(c,w,v)=>{y(c),c.ganttBarConfig.bundle&&o().forEach(B=>{B.bars.forEach(M=>{M.ganttBarConfig.bundle===c.ganttBarConfig.bundle&&M!==c&&(y(M),D(M,w,v))})})},D=(c,w,v)=>{switch(v){case"left":c[f.value]=u(t(c,"start").subtract(w,"minutes"),r.value),c[s.value]=u(t(c,"end").subtract(w,"minutes"),r.value);break;case"right":c[f.value]=u(t(c,"start").add(w,"minutes"),r.value),c[s.value]=u(t(c,"end").add(w,"minutes"),r.value)}x(c)},h=(c,w)=>{k();const v=K(X({},c),{type:"dragend"});a(v,w,void 0,new Map(n)),n.clear()},y=c=>{if(!n.has(c)){const w=c[f.value],v=c[s.value];n.set(c,{oldStart:w,oldEnd:v})}},k=()=>{if(i.value||!l.value)return;let c=!1;n.forEach((w,v)=>{const{overlapBar:B}=m(v);B!=null&&(c=!0)}),c&&n.forEach(({oldStart:w,oldEnd:v},B)=>{B[f.value]=w,B[s.value]=v})};return{initDragOfBar:d,initDragOfBundle:g}}function Qt(){const{pushOnOverlap:e}=z(),o=ke(),a=l=>{const r=[];return l!=null&&o().forEach(n=>{n.bars.forEach(t=>{t.ganttBarConfig.bundle===l&&r.push(t)})}),r},i=l=>{if(!(!e.value||l.ganttBarConfig.pushOnOverlap===!1)){for(const r of["left","right"]){const n=r,{gapDistanceSoFar:t,bundleBarsAndGapDist:u}=f(l,0,n);let d=t;const g=u;if(!g)continue;for(let x=0;xD!==m).forEach(D=>{const h=f(D,b,n),y=h.gapDistanceSoFar,k=h.bundleBarsAndGapDist;y!=null&&(!d||y{g.find(w=>w.bar===c.bar)||g.push(c)})})}const p=document.getElementById(l.ganttBarConfig.id);d!=null&&n==="left"?l.ganttBarConfig.dragLimitLeft=p.offsetLeft-d:d!=null&&n==="right"&&(l.ganttBarConfig.dragLimitRight=p.offsetLeft+p.offsetWidth+d)}a(l.ganttBarConfig.bundle).forEach(r=>{r.ganttBarConfig.dragLimitLeft=l.ganttBarConfig.dragLimitLeft,r.ganttBarConfig.dragLimitRight=l.ganttBarConfig.dragLimitRight})}},f=(l,r=0,n)=>{const t=l.ganttBarConfig.bundle?[{bar:l,gapDistance:r}]:[];let u=l,d=s(u,n);if(n==="left")for(;d;){const g=document.getElementById(u.ganttBarConfig.id),p=document.getElementById(d.ganttBarConfig.id),x=p.offsetLeft+p.offsetWidth;if(r+=g.offsetLeft-x,d.ganttBarConfig.immobile)return{gapDistanceSoFar:r,bundleBarsAndGapDist:t};d.ganttBarConfig.bundle&&t.push({bar:d,gapDistance:r}),u=d,d=s(d,"left")}if(n==="right")for(;d;){const g=document.getElementById(u.ganttBarConfig.id),p=document.getElementById(d.ganttBarConfig.id),x=g.offsetLeft+g.offsetWidth;if(r+=p.offsetLeft-x,d.ganttBarConfig.immobile)return{gapDistanceSoFar:r,bundleBarsAndGapDist:t};d.ganttBarConfig.bundle&&t.push({bar:d,gapDistance:r}),u=d,d=s(d,"right")}return{gapDistanceSoFar:null,bundleBarsAndGapDist:t}},s=(l,r)=>{var n,t;const u=document.getElementById(l.ganttBarConfig.id),d=(t=(n=o().find(p=>p.bars.includes(l)))==null?void 0:n.bars)!=null?t:[];let g=[];return r==="left"?g=d.filter(p=>{const x=document.getElementById(p.ganttBarConfig.id);return x&&x.offsetLeft{const x=document.getElementById(p.ganttBarConfig.id);return x&&x.offsetLeft>u.offsetLeft&&p.ganttBarConfig.pushOnOverlap!==!1}),g.length>0?g.reduce((p,x)=>{const m=document.getElementById(p.ganttBarConfig.id),b=document.getElementById(x.ganttBarConfig.id),D=Math.abs(m.offsetLeft-u.offsetLeft),h=Math.abs(b.offsetLeft-u.offsetLeft);return Ds.value.ganttBarConfig);function p(M){g.value.bundle!=null?t(s.value,M):n(s.value,M),d.value=!0}const x=()=>{u(s.value),!g.value.immobile&&(window.addEventListener("mousemove",p,{once:!0}),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",p),d.value=!1},{once:!0}))},m=de(Ae),b=M=>{var T;M.preventDefault(),M.type==="mousedown"&&x();const E=(T=m==null?void 0:m.value)==null?void 0:T.getBoundingClientRect();if(!E)return;const Y=r(M.clientX-E.left);a(M,s.value,Y)},{barStart:D,barEnd:h,width:y,chartStart:k,chartEnd:c,chartSize:w}=i,v=L(0),B=L(0);return Ie(()=>{ce([s,y,k,c,w.width],()=>{v.value=l(s.value[D.value]),B.value=l(s.value[h.value])},{deep:!0,immediate:!0})}),(M,T)=>(O(),S("div",{id:g.value.id,class:we(["g-gantt-bar",g.value.class||""]),style:H(K(X({},g.value.style),{position:"absolute",top:`${C(f)*.1}px`,left:`${v.value}px`,width:`${B.value-v.value}px`,height:`${C(f)*.8}px`,zIndex:d.value?3:2})),onMousedown:b,onClick:b,onDblclick:b,onMouseenter:b,onMouseleave:b,onContextmenu:b},[$("div",Kt,[G(M.$slots,"default",{bar:C(s)},()=>[$("div",null,N(g.value.label||""),1),g.value.html?(O(),S("div",{key:0,innerHTML:g.value.html},null,8,Zt)):F("",!0)])]),g.value.hasHandles?(O(),S(Z,{key:0},[Jt,ea],64)):F("",!0)],46,Xt))}}),aa=U({__name:"GGanttRow",props:{label:{},bars:{},highlightOnHover:{type:Boolean}},emits:["drop"],setup(e,{emit:o}){const a=e,{rowHeight:i,colors:f,labelColumnTitle:s}=z(),{highlightOnHover:l}=ne(a),r=L(!1),n=W(()=>({height:`${i.value}px`,background:l!=null&&l.value&&r.value?f.value.hoverHighlight:null})),{mapPositionToTime:t}=fe(),u=L(null);ue(Ae,u);const d=p=>{var x;const m=(x=u.value)==null?void 0:x.getBoundingClientRect();if(!m){console.error("Vue-Ganttastic: failed to find bar container element for row.");return}const b=p.clientX-m.left,D=t(b);o("drop",{e:p,datetime:D})},g=p=>!p||/^\s*$/.test(p);return(p,x)=>(O(),S("div",{class:"g-gantt-row",style:H(n.value),onDragover:x[0]||(x[0]=ot(m=>r.value=!0,["prevent"])),onDragleave:x[1]||(x[1]=m=>r.value=!1),onDrop:x[2]||(x[2]=m=>d(m)),onMouseover:x[3]||(x[3]=m=>r.value=!0),onMouseleave:x[4]||(x[4]=m=>r.value=!1)},[g(p.label)?F("",!0):(O(),S("div",{key:0,class:"g-gantt-row-label",style:H({background:C(f).primary,color:C(f).text})},[G(p.$slots,"label",{},()=>[ie(N(p.label),1)])],4)),$("div",it({ref_key:"barContainer",ref:u,class:"g-gantt-row-bars-container"},p.$attrs),[xe(nt,{name:"bar-transition",tag:"div"},{default:R(()=>[(O(!0),S(Z,null,ae(p.bars,m=>(O(),P(ta,{key:m.ganttBarConfig.id,bar:m},{default:R(()=>[G(p.$slots,"bar-label",{bar:m})]),_:2},1032,["bar"]))),128))]),_:3})],16)],36))}});function V(e,o="top"){if(!e||typeof document>"u")return;const a=document.head,i=document.createElement("style");o==="top"&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.appendChild(document.createTextNode(e))}V(`
.g-gantt-chart {
position: relative;
display: flex;
diff --git a/dist/static/js/index-FJGhVzlW.js b/dist/static/js/index-FJGhVzlW.js
new file mode 100644
index 000000000..ac0636b80
--- /dev/null
+++ b/dist/static/js/index-FJGhVzlW.js
@@ -0,0 +1 @@
+import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-D2nF3cj1.js";import"./columns-CZMiORmW.js";import"./xlsx-xf2utV5S.js";import"./data-ClgPGhLc.js";import"./index-BAaep8yZ.js";export{o as default};
diff --git a/dist/static/js/index-zAy0yoIn.js b/dist/static/js/index-G2fi-8sg.js
similarity index 96%
rename from dist/static/js/index-zAy0yoIn.js
rename to dist/static/js/index-G2fi-8sg.js
index 4cb030e28..8ec635c14 100644
--- a/dist/static/js/index-zAy0yoIn.js
+++ b/dist/static/js/index-G2fi-8sg.js
@@ -1 +1 @@
-import{useColumns as D}from"./columns-C7mT9puc.js";import{d as I,c as V,x as f,m as s,j as e,k as a,e as _,u as q,g as l,l as w,t as c,F as k,y as z,i as S,A,B as N,_ as T}from"./index-DZuaHQDs.js";var F={pkg:{name:"vue-pure-admin",version:"5.1.0",engines:{node:"^18.18.0 || ^20.9.0 || >=21.1.0",pnpm:">=8.6.10"},dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.1.3","@infectoone/vue-ganttastic":"^2.3.1","@logicflow/core":"^1.2.22","@logicflow/extension":"^1.2.22","@pureadmin/descriptions":"^1.2.1","@pureadmin/table":"^3.1.2","@pureadmin/utils":"^2.4.7","@vue-flow/background":"^1.3.0","@vue-flow/core":"^1.33.4","@vueuse/core":"^10.9.0","@vueuse/motion":"^2.1.0","@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^5.1.12","@zxcvbn-ts/core":"^3.0.4","animate.css":"^4.1.1",axios:"^1.6.7","china-area-data":"^5.0.1",cropperjs:"^1.6.1",dayjs:"^1.11.10",echarts:"^5.5.0","el-table-infinite-scroll":"^3.0.3","element-plus":"^2.6.1","intro.js":"^7.2.0","js-cookie":"^3.0.5",jsbarcode:"^3.11.6",localforage:"^1.10.0","mint-filter":"^4.0.3",mitt:"^3.0.1",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.1.7","pinyin-pro":"^3.19.6","plus-pro-components":"^0.0.5",qrcode:"^1.5.3",qs:"^6.12.0","responsive-storage":"^2.2.0",sortablejs:"^1.15.2",swiper:"^11.0.7",typeit:"^8.8.3","v-contextmenu":"^3.2.0","v3-infinite-loading":"^1.3.1","version-rocket":"^1.7.1",vue:"^3.4.21","vue-i18n":"^9.10.1","vue-json-pretty":"^2.3.0","vue-pdf-embed":"^2.0.2","vue-router":"^4.3.0","vue-tippy":"^6.4.1","vue-types":"^5.1.1","vue-virtual-scroller":"2.0.0-beta.8","vue-waterfall-plugin-next":"^2.4.3","vue3-danmaku":"^1.6.0","vue3-puzzle-vcode":"^1.1.7",vuedraggable:"^4.1.0","vxe-table":"^4.5.21","wavesurfer.js":"^7.7.5",xgplayer:"^3.0.14",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^19.1.0","@commitlint/config-conventional":"^19.1.0","@commitlint/types":"^19.0.3","@eslint/js":"^8.57.0","@faker-js/faker":"^8.4.1","@iconify-icons/ep":"^1.2.12","@iconify-icons/ri":"^1.2.10","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^2.0.0","@pureadmin/theme":"^3.2.0","@types/dagre":"^0.7.52","@types/gradient-string":"^1.1.5","@types/intro.js":"^5.1.5","@types/js-cookie":"^3.0.6","@types/node":"^20.11.27","@types/nprogress":"^0.2.3","@types/qrcode":"^1.5.5","@types/qs":"^6.9.12","@types/sortablejs":"^1.15.8","@typescript-eslint/eslint-plugin":"^7.2.0","@typescript-eslint/parser":"^7.2.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0",autoprefixer:"^10.4.18",boxen:"^7.1.1",cloc:"^2.11.0",cssnano:"^6.1.0",dagre:"^0.8.5",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-define-config":"^2.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.23.0","gradient-string":"^2.0.2",husky:"^9.0.11","lint-staged":"^15.2.2",postcss:"^8.4.35","postcss-html":"^1.6.0","postcss-import":"^16.0.1","postcss-scss":"^4.0.9",prettier:"^3.2.5",rimraf:"^5.0.5","rollup-plugin-visualizer":"^5.12.0",sass:"^1.72.0",stylelint:"^16.2.1","stylelint-config-recess-order":"^5.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard-scss":"^13.0.0","stylelint-prettier":"^5.0.0",svgo:"^3.2.0",tailwindcss:"^3.4.1",typescript:"^5.4.2",vite:"^5.1.6","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-fake-server":"^2.1.1","vite-plugin-remove-console":"^2.2.0","vite-plugin-router-warn":"^1.0.0","vite-svg-loader":"^5.1.0","vue-eslint-parser":"^9.4.2","vue-tsc":"^1.8.27"}},lastBuildTime:"2024-03-21 16:23:22"};const p=i=>(A("data-v-3f98eb12"),i=i(),N(),i),M=p(()=>l("span",null," vue-pure-admin 是一款开源免费且开箱即用的中后台管理系统模版。完全采用 ECMAScript 模块(ESM)规范来编写和组织代码,使用了最新的 Vue3、Vite、Element-Plus、TypeScript、Pinia、Tailwindcss 等主流技术开发。 ",-1)),O=p(()=>l("div",{class:"card-header"},[l("span",{class:"font-medium"},"平台信息")],-1)),L={class:"card-header flex items-center"},G=p(()=>l("span",{class:"font-medium"},"生产环境依赖",-1)),H=["href"],J={class:"card-header flex items-center"},K=p(()=>l("span",{class:"font-medium"},"开发环境依赖",-1)),Q=["href"],R=I({name:"About",__name:"index",setup(i){const{pkg:C}=F,{dependencies:g,devDependencies:b}=C,u=[],d=[],{columns:E}=D(),P=["@pureadmin/descriptions","@pureadmin/table","@pureadmin/utils","@vueuse/core","axios","dayjs","echarts","vue","element-plus","pinia","vue-i18n","vue-router","@iconify/vue","@vitejs/plugin-vue","@vitejs/plugin-vue-jsx","eslint","prettier","sass","stylelint","tailwindcss","typescript","vite","vue-tsc"],o=V(()=>n=>P.find(y=>y===n)&&"main-label");return Object.keys(g).forEach(n=>{u.push({field:g[n],label:n})}),Object.keys(b).forEach(n=>{d.push({field:b[n],label:n})}),(n,y)=>{const r=a("el-card"),B=a("PureDescriptions"),m=a("el-scrollbar"),h=a("el-tag"),x=a("el-descriptions-item"),j=a("el-descriptions");return _(),f("div",null,[s(r,{class:"mb-4 box-card",shadow:"never"},{default:e(()=>[M]),_:1}),s(r,{class:"m-4 box-card",shadow:"never"},{header:e(()=>[O]),default:e(()=>[s(m,null,{default:e(()=>[s(B,{border:"",columns:q(E),column:4},null,8,["columns"])]),_:1})]),_:1}),s(r,{class:"m-4 box-card",shadow:"never"},{header:e(()=>[l("div",L,[G,s(h,{type:"primary",effect:"dark",size:"small",round:"",class:"ml-1"},{default:e(()=>[w(c(u.length),1)]),_:1})])]),default:e(()=>[s(m,null,{default:e(()=>[s(j,{border:"",size:"small",column:6},{default:e(()=>[(_(),f(k,null,z(u,(t,v)=>s(x,{key:v,label:t.label,"label-class-name":o.value(t.label),"class-name":"pure-version","label-align":"right"},{default:e(()=>[l("a",{href:"https://www.npmjs.com/package/"+t.label,target:"_blank"},[l("span",{class:S(o.value(t.label)),style:{color:"var(--el-color-primary)"}},c(t.field),3)],8,H)]),_:2},1032,["label","label-class-name"])),64))]),_:1})]),_:1})]),_:1}),s(r,{class:"m-4 box-card",shadow:"never"},{header:e(()=>[l("div",J,[K,s(h,{type:"primary",effect:"dark",size:"small",round:"",class:"ml-1"},{default:e(()=>[w(c(d.length),1)]),_:1})])]),default:e(()=>[s(m,null,{default:e(()=>[s(j,{border:"",size:"small",column:5},{default:e(()=>[(_(),f(k,null,z(d,(t,v)=>s(x,{key:v,label:t.label,"label-class-name":o.value(t.label),"class-name":"pure-version","label-align":"right"},{default:e(()=>[l("a",{href:"https://www.npmjs.com/package/"+t.label,target:"_blank"},[l("span",{class:S(o.value(t.label)),style:{color:"var(--el-color-primary)"}},c(t.field),3)],8,Q)]),_:2},1032,["label","label-class-name"])),64))]),_:1})]),_:1})]),_:1})])}}}),X=T(R,[["__scopeId","data-v-3f98eb12"]]);export{X as default};
+import{useColumns as D}from"./columns-Dbt77Am1.js";import{d as I,c as V,x as f,m as s,j as e,k as a,e as _,u as q,g as l,l as w,t as c,F as k,y as z,i as S,A,B as N,_ as T}from"./index-BAaep8yZ.js";var F={pkg:{name:"vue-pure-admin",version:"5.1.0",engines:{node:"^18.18.0 || ^20.9.0 || >=21.1.0",pnpm:">=8.6.10"},dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.1.3","@infectoone/vue-ganttastic":"^2.3.1","@logicflow/core":"^1.2.22","@logicflow/extension":"^1.2.22","@pureadmin/descriptions":"^1.2.1","@pureadmin/table":"^3.1.2","@pureadmin/utils":"^2.4.7","@vue-flow/background":"^1.3.0","@vue-flow/core":"^1.33.4","@vueuse/core":"^10.9.0","@vueuse/motion":"^2.1.0","@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^5.1.12","@zxcvbn-ts/core":"^3.0.4","animate.css":"^4.1.1",axios:"^1.6.7","china-area-data":"^5.0.1",cropperjs:"^1.6.1",dayjs:"^1.11.10",echarts:"^5.5.0","el-table-infinite-scroll":"^3.0.3","element-plus":"^2.6.1","intro.js":"^7.2.0","js-cookie":"^3.0.5",jsbarcode:"^3.11.6",localforage:"^1.10.0","mint-filter":"^4.0.3",mitt:"^3.0.1",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.1.7","pinyin-pro":"^3.19.6","plus-pro-components":"^0.0.5",qrcode:"^1.5.3",qs:"^6.12.0","responsive-storage":"^2.2.0",sortablejs:"^1.15.2",swiper:"^11.0.7",typeit:"^8.8.3","v-contextmenu":"^3.2.0","v3-infinite-loading":"^1.3.1","version-rocket":"^1.7.1",vue:"^3.4.21","vue-i18n":"^9.10.1","vue-json-pretty":"^2.3.0","vue-pdf-embed":"^2.0.2","vue-router":"^4.3.0","vue-tippy":"^6.4.1","vue-types":"^5.1.1","vue-virtual-scroller":"2.0.0-beta.8","vue-waterfall-plugin-next":"^2.4.3","vue3-danmaku":"^1.6.0","vue3-puzzle-vcode":"^1.1.7",vuedraggable:"^4.1.0","vxe-table":"^4.5.21","wavesurfer.js":"^7.7.5",xgplayer:"^3.0.14",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^19.1.0","@commitlint/config-conventional":"^19.1.0","@commitlint/types":"^19.0.3","@eslint/js":"^8.57.0","@faker-js/faker":"^8.4.1","@iconify-icons/ep":"^1.2.12","@iconify-icons/ri":"^1.2.10","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^2.0.0","@pureadmin/theme":"^3.2.0","@types/dagre":"^0.7.52","@types/gradient-string":"^1.1.5","@types/intro.js":"^5.1.5","@types/js-cookie":"^3.0.6","@types/node":"^20.11.27","@types/nprogress":"^0.2.3","@types/qrcode":"^1.5.5","@types/qs":"^6.9.12","@types/sortablejs":"^1.15.8","@typescript-eslint/eslint-plugin":"^7.2.0","@typescript-eslint/parser":"^7.2.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0",autoprefixer:"^10.4.18",boxen:"^7.1.1",cloc:"^2.11.0",cssnano:"^6.1.0",dagre:"^0.8.5",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-define-config":"^2.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.23.0","gradient-string":"^2.0.2",husky:"^9.0.11","lint-staged":"^15.2.2",postcss:"^8.4.35","postcss-html":"^1.6.0","postcss-import":"^16.0.1","postcss-scss":"^4.0.9",prettier:"^3.2.5",rimraf:"^5.0.5","rollup-plugin-visualizer":"^5.12.0",sass:"^1.72.0",stylelint:"^16.2.1","stylelint-config-recess-order":"^5.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard-scss":"^13.0.0","stylelint-prettier":"^5.0.0",svgo:"^3.2.0",tailwindcss:"^3.4.1",typescript:"^5.4.2",vite:"^5.1.6","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-fake-server":"^2.1.1","vite-plugin-remove-console":"^2.2.0","vite-plugin-router-warn":"^1.0.0","vite-svg-loader":"^5.1.0","vue-eslint-parser":"^9.4.2","vue-tsc":"^1.8.27"}},lastBuildTime:"2024-03-21 22:47:27"};const p=i=>(A("data-v-3f98eb12"),i=i(),N(),i),M=p(()=>l("span",null," vue-pure-admin 是一款开源免费且开箱即用的中后台管理系统模版。完全采用 ECMAScript 模块(ESM)规范来编写和组织代码,使用了最新的 Vue3、Vite、Element-Plus、TypeScript、Pinia、Tailwindcss 等主流技术开发。 ",-1)),O=p(()=>l("div",{class:"card-header"},[l("span",{class:"font-medium"},"平台信息")],-1)),L={class:"card-header flex items-center"},G=p(()=>l("span",{class:"font-medium"},"生产环境依赖",-1)),H=["href"],J={class:"card-header flex items-center"},K=p(()=>l("span",{class:"font-medium"},"开发环境依赖",-1)),Q=["href"],R=I({name:"About",__name:"index",setup(i){const{pkg:C}=F,{dependencies:g,devDependencies:b}=C,u=[],d=[],{columns:E}=D(),P=["@pureadmin/descriptions","@pureadmin/table","@pureadmin/utils","@vueuse/core","axios","dayjs","echarts","vue","element-plus","pinia","vue-i18n","vue-router","@iconify/vue","@vitejs/plugin-vue","@vitejs/plugin-vue-jsx","eslint","prettier","sass","stylelint","tailwindcss","typescript","vite","vue-tsc"],o=V(()=>n=>P.find(y=>y===n)&&"main-label");return Object.keys(g).forEach(n=>{u.push({field:g[n],label:n})}),Object.keys(b).forEach(n=>{d.push({field:b[n],label:n})}),(n,y)=>{const r=a("el-card"),B=a("PureDescriptions"),m=a("el-scrollbar"),h=a("el-tag"),x=a("el-descriptions-item"),j=a("el-descriptions");return _(),f("div",null,[s(r,{class:"mb-4 box-card",shadow:"never"},{default:e(()=>[M]),_:1}),s(r,{class:"m-4 box-card",shadow:"never"},{header:e(()=>[O]),default:e(()=>[s(m,null,{default:e(()=>[s(B,{border:"",columns:q(E),column:4},null,8,["columns"])]),_:1})]),_:1}),s(r,{class:"m-4 box-card",shadow:"never"},{header:e(()=>[l("div",L,[G,s(h,{type:"primary",effect:"dark",size:"small",round:"",class:"ml-1"},{default:e(()=>[w(c(u.length),1)]),_:1})])]),default:e(()=>[s(m,null,{default:e(()=>[s(j,{border:"",size:"small",column:6},{default:e(()=>[(_(),f(k,null,z(u,(t,v)=>s(x,{key:v,label:t.label,"label-class-name":o.value(t.label),"class-name":"pure-version","label-align":"right"},{default:e(()=>[l("a",{href:"https://www.npmjs.com/package/"+t.label,target:"_blank"},[l("span",{class:S(o.value(t.label)),style:{color:"var(--el-color-primary)"}},c(t.field),3)],8,H)]),_:2},1032,["label","label-class-name"])),64))]),_:1})]),_:1})]),_:1}),s(r,{class:"m-4 box-card",shadow:"never"},{header:e(()=>[l("div",J,[K,s(h,{type:"primary",effect:"dark",size:"small",round:"",class:"ml-1"},{default:e(()=>[w(c(d.length),1)]),_:1})])]),default:e(()=>[s(m,null,{default:e(()=>[s(j,{border:"",size:"small",column:5},{default:e(()=>[(_(),f(k,null,z(d,(t,v)=>s(x,{key:v,label:t.label,"label-class-name":o.value(t.label),"class-name":"pure-version","label-align":"right"},{default:e(()=>[l("a",{href:"https://www.npmjs.com/package/"+t.label,target:"_blank"},[l("span",{class:S(o.value(t.label)),style:{color:"var(--el-color-primary)"}},c(t.field),3)],8,Q)]),_:2},1032,["label","label-class-name"])),64))]),_:1})]),_:1})]),_:1})])}}}),X=T(R,[["__scopeId","data-v-3f98eb12"]]);export{X as default};
diff --git a/dist/static/js/index-DL9cHJVj.js b/dist/static/js/index-GfcIracb.js
similarity index 87%
rename from dist/static/js/index-DL9cHJVj.js
rename to dist/static/js/index-GfcIracb.js
index d5c31d65d..d8ca947d1 100644
--- a/dist/static/js/index-DL9cHJVj.js
+++ b/dist/static/js/index-GfcIracb.js
@@ -1 +1 @@
-import{useRole as V}from"./hook-BqLbftfj.js";import{R as B,P as L}from"./refresh-Cn55-z1p.js";import{u as s}from"./hooks-BoRjbw1y.js";import{d as z,r as O,k as l,e as T,x as $,m as o,j as n,u as e,l as m,_ as I}from"./index-DZuaHQDs.js";import"./system-DOAPCM6P.js";import"./epTheme-gTdHAM10.js";import"./sortable.esm-6WsHlDA5.js";const N={width:24,height:24,body:''},U=N,j={class:"main"},E=z({name:"OnlineUser",__name:"index",setup(F){const c=O(),{form:r,loading:p,columns:_,dataList:g,pagination:h,onSearch:f,resetForm:C,handleOffline:v,handleSizeChange:b,handleCurrentChange:x,handleSelectionChange:y}=V();return(M,t)=>{const k=l("el-input"),u=l("el-form-item"),i=l("el-button"),S=l("el-form"),R=l("el-popconfirm"),w=l("pure-table");return T(),$("div",j,[o(S,{ref_key:"formRef",ref:c,inline:!0,model:e(r),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:n(()=>[o(u,{label:"用户名",prop:"username"},{default:n(()=>[o(k,{modelValue:e(r).username,"onUpdate:modelValue":t[0]||(t[0]=a=>e(r).username=a),placeholder:"请输入用户名",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),o(u,null,{default:n(()=>[o(i,{type:"primary",icon:e(s)("ri:search-line"),loading:e(p),onClick:e(f)},{default:n(()=>[m(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(i,{icon:e(s)(e(B)),onClick:t[1]||(t[1]=a=>e(C)(c.value))},{default:n(()=>[m(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(L),{title:"在线用户(仅演示,操作后不生效)",columns:e(_),onRefresh:e(f)},{default:n(({size:a,dynamicColumns:P})=>[o(w,{"align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(p),size:a,adaptive:"",adaptiveConfig:{offsetBottom:108},data:e(g),columns:P,pagination:e(h),paginationSmall:a==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(y),onPageSizeChange:e(b),onPageCurrentChange:e(x)},{operation:n(({row:d})=>[o(R,{title:`是否强制下线${d.username}`,onConfirm:Z=>e(v)(d)},{reference:n(()=>[o(i,{class:"reset-margin",link:"",type:"primary",size:a,icon:e(s)(e(U))},{default:n(()=>[m(" 强退 ")]),_:2},1032,["size","icon"])]),_:2},1032,["title","onConfirm"])]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange"])]),_:1},8,["columns","onRefresh"])])}}}),Q=I(E,[["__scopeId","data-v-b27a65f4"]]);export{Q as default};
+import{useRole as V}from"./hook-CknnkR7I.js";import{R as B,P as L}from"./refresh-hz8n9CjZ.js";import{u as s}from"./hooks-n2iC5q0_.js";import{d as z,r as O,k as l,e as T,x as $,m as o,j as n,u as e,l as m,_ as I}from"./index-BAaep8yZ.js";import"./system-C4sbqSKx.js";import"./epTheme-C6dkH2Du.js";import"./sortable.esm-6WsHlDA5.js";const N={width:24,height:24,body:''},U=N,j={class:"main"},E=z({name:"OnlineUser",__name:"index",setup(F){const c=O(),{form:r,loading:p,columns:_,dataList:g,pagination:h,onSearch:f,resetForm:C,handleOffline:v,handleSizeChange:b,handleCurrentChange:x,handleSelectionChange:y}=V();return(M,t)=>{const k=l("el-input"),u=l("el-form-item"),i=l("el-button"),S=l("el-form"),R=l("el-popconfirm"),w=l("pure-table");return T(),$("div",j,[o(S,{ref_key:"formRef",ref:c,inline:!0,model:e(r),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:n(()=>[o(u,{label:"用户名",prop:"username"},{default:n(()=>[o(k,{modelValue:e(r).username,"onUpdate:modelValue":t[0]||(t[0]=a=>e(r).username=a),placeholder:"请输入用户名",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),o(u,null,{default:n(()=>[o(i,{type:"primary",icon:e(s)("ri:search-line"),loading:e(p),onClick:e(f)},{default:n(()=>[m(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(i,{icon:e(s)(e(B)),onClick:t[1]||(t[1]=a=>e(C)(c.value))},{default:n(()=>[m(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(L),{title:"在线用户(仅演示,操作后不生效)",columns:e(_),onRefresh:e(f)},{default:n(({size:a,dynamicColumns:P})=>[o(w,{"align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(p),size:a,adaptive:"",adaptiveConfig:{offsetBottom:108},data:e(g),columns:P,pagination:e(h),paginationSmall:a==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(y),onPageSizeChange:e(b),onPageCurrentChange:e(x)},{operation:n(({row:d})=>[o(R,{title:`是否强制下线${d.username}`,onConfirm:Z=>e(v)(d)},{reference:n(()=>[o(i,{class:"reset-margin",link:"",type:"primary",size:a,icon:e(s)(e(U))},{default:n(()=>[m(" 强退 ")]),_:2},1032,["size","icon"])]),_:2},1032,["title","onConfirm"])]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange"])]),_:1},8,["columns","onRefresh"])])}}}),Q=I(E,[["__scopeId","data-v-b27a65f4"]]);export{Q as default};
diff --git a/dist/static/js/index-M8P6H8xA.js b/dist/static/js/index-M8P6H8xA.js
deleted file mode 100644
index 82c354b00..000000000
--- a/dist/static/js/index-M8P6H8xA.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{list as k}from"./list-B8nTOPQ3.js";import{d as x,r as y,f as l,j as e,k as t,e as n,g as p,l as r,m as o,x as g,y as C,t as v,W as N,K as z,u as B,F as T,_ as V}from"./index-DZuaHQDs.js";import"./base.vue_vue_type_script_setup_true_lang-436Xbo6t.js";import"./data-SrCjMXs1.js";import"./stripe.vue_vue_type_script_setup_true_lang-ByNfIDpR.js";import"./border.vue_vue_type_script_setup_true_lang-CnFUQs9W.js";import"./status.vue_vue_type_style_index_0_lang-CMTlbpmy.js";import"./fixHeader.vue_vue_type_script_setup_true_lang-Bvi_vFel.js";import"./fixColumn.vue_vue_type_script_setup_true_lang-B7xYy8u3.js";import"./fluidHeight.vue_vue_type_script_setup_true_lang-BuQFIV4_.js";import"./groupHeader.vue_vue_type_script_setup_true_lang-fiUPDyuw.js";import"./radio.vue_vue_type_script_setup_true_lang-CtXh2WGB.js";import"./multipleChoice.vue_vue_type_script_setup_true_lang-C62qHTd5.js";import"./sortable.vue_vue_type_script_setup_true_lang-BApB1Ch2.js";import"./filters.vue_vue_type_script_setup_true_lang-BfSWwO_N.js";import"./index.vue_vue_type_script_setup_true_lang-BdMN9_u8.js";import"./columns-67ABjIbx.js";import"./index.vue_vue_type_script_setup_true_lang-BYxq3nfS.js";import"./columns-CLfvbfpb.js";import"./expand.vue_vue_type_script_setup_true_lang-FOrodUD5.js";import"./tree.vue_vue_type_script_setup_true_lang-cIS00Dwy.js";import"./totalRow.vue_vue_type_script_setup_true_lang-1sedM6DD.js";import"./merge.vue_vue_type_script_setup_true_lang-DsT2pvtQ.js";import"./customIndex.vue_vue_type_script_setup_true_lang-FR0I5Mgx.js";import"./layout.vue_vue_type_script_setup_true_lang-C7KbrPlJ.js";import"./nestProp.vue_vue_type_script_setup_true_lang-DiTY6Q-_.js";import"./imgPreview.vue_vue_type_script_setup_true_lang-Cfj7iIKX.js";const w={class:"card-header"},D={class:"font-medium"},F=x({name:"PureTable",__name:"index",setup($){const s=y(0);function _({index:m}){s.value=m}return(m,j)=>{const i=t("el-link"),d=t("el-alert"),u=t("el-tooltip"),f=t("el-tab-pane"),b=t("el-tabs"),h=t("el-card");return n(),l(h,{shadow:"never"},{header:e(()=>[p("div",w,[p("span",D,[r(" 二次封装 element-plus 的 "),o(i,{href:"https://element-plus.org/zh-CN/component/table.html",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[r(" el-table ")]),_:1}),r(" 完全兼容 api 并提供灵活的配置项以及完善的类型提示,不用将代码都写在 template 里了 "),o(i,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[r(" @pureadmin/table 源码 ")]),_:1})])])]),default:e(()=>[o(d,{title:`基础用法中大部分表格都没设置 row-key ,不过最好都设置一下,后端需返回唯一值的字段,比如id。作用:1. 用来优化 Table
- 的渲染,尤其当字段在深层结构中;2. 防止某些操作导致表格组件内部混乱`,type:"info",closable:!1}),o(b,{onTabClick:_},{default:e(()=>[(n(!0),g(T,null,C(B(k),(a,c)=>(n(),l(f,{key:a.key,lazy:!0},{label:e(()=>[o(u,{content:`(第 ${c+1} 个示例)${a.content}`,placement:"top-end"},{default:e(()=>[p("span",null,v(a.title),1)]),_:2},1032,["content"])]),default:e(()=>[s.value==c?(n(),l(N(a.component),{key:0})):z("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}}),pe=V(F,[["__scopeId","data-v-24029e75"]]);export{pe as default};
diff --git a/dist/static/js/index-PuJXd2ly.js b/dist/static/js/index-PuJXd2ly.js
deleted file mode 100644
index c42cd6f20..000000000
--- a/dist/static/js/index-PuJXd2ly.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-DU_xgpE4.js";import"./columns-BN30PzGf.js";import"./data-C_5PjqzO.js";import"./index-DZuaHQDs.js";export{o as default};
diff --git a/dist/static/js/index-DHrwWkC1.js b/dist/static/js/index-XxxWckV3.js
similarity index 99%
rename from dist/static/js/index-DHrwWkC1.js
rename to dist/static/js/index-XxxWckV3.js
index b6f3dc659..ba61fa44e 100644
--- a/dist/static/js/index-DHrwWkC1.js
+++ b/dist/static/js/index-XxxWckV3.js
@@ -1,4 +1,4 @@
-var $t=Object.defineProperty;var Et=Object.getOwnPropertySymbols;var Qt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var Bt=(t,e,r)=>e in t?$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bt=(t,e)=>{for(var r in e||(e={}))Qt.call(e,r)&&Bt(t,r,e[r]);if(Et)for(var r of Et(e))Gt.call(e,r)&&Bt(t,r,e[r]);return t};var nt=(t,e,r)=>new Promise((i,o)=>{var n=a=>{try{c(r.next(a))}catch(u){o(u)}},s=a=>{try{c(r.throw(a))}catch(u){o(u)}},c=a=>a.done?i(a.value):Promise.resolve(a.value).then(n,s);c((r=r.apply(t,e)).next())});import{p as Q}from"./propTypes-DnNFEbDH.js";import{d as qt,r as pt,c as At,w as Wt,m as L,z as Xt,v as Zt,u as U,k as xt,F as te,q as ee,ah as ne,az as Tt,X as oe}from"./index-DZuaHQDs.js";import{d as re}from"./refresh-right-Du3ZsAuC.js";var Y={},ie=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Mt={},M={};let dt;const se=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];M.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};M.getSymbolTotalCodewords=function(e){return se[e]};M.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};M.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');dt=e};M.isKanjiModeEnabled=function(){return typeof dt!="undefined"};M.toSJIS=function(e){return dt(e)};var Z={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit!="undefined"&&i.bit>=0&&i.bit<4},t.from=function(i,o){if(t.isValid(i))return i;try{return e(i)}catch(n){return o}}})(Z);function Pt(){this.buffer=[],this.length=0}Pt.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var ae=Pt;function j(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}j.prototype.set=function(t,e,r,i){const o=t*this.size+e;this.data[o]=r,i&&(this.reservedBit[o]=!0)};j.prototype.get=function(t,e){return this.data[t*this.size+e]};j.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};j.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ce=j,Rt={};(function(t){const e=M.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];const o=Math.floor(i/7)+2,n=e(i),s=n===145?26:Math.ceil((n-13)/(2*o-2))*2,c=[n-7];for(let a=1;a=0&&o<=7},t.from=function(o){return t.isValid(o)?parseInt(o,10):void 0},t.getPenaltyN1=function(o){const n=o.size;let s=0,c=0,a=0,u=null,d=null;for(let b=0;b=5&&(s+=e.N1+(c-5)),u=w,c=1),w=o.get(C,b),w===d?a++:(a>=5&&(s+=e.N1+(a-5)),d=w,a=1)}c>=5&&(s+=e.N1+(c-5)),a>=5&&(s+=e.N1+(a-5))}return s},t.getPenaltyN2=function(o){const n=o.size;let s=0;for(let c=0;c=10&&(c===1488||c===93)&&s++,a=a<<1&2047|o.get(d,u),d>=10&&(a===1488||a===93)&&s++}return s*e.N3},t.getPenaltyN4=function(o){let n=0;const s=o.data.length;for(let a=0;a=0;){const s=n[0];for(let a=0;a0){const n=new Uint8Array(this.degree);return n.set(i,o),n}return i};var le=gt,_t={},D={},ht={};ht.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var P={};const Ft="[0-9]+",fe="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const de="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r
+var $t=Object.defineProperty;var Et=Object.getOwnPropertySymbols;var Qt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var Bt=(t,e,r)=>e in t?$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bt=(t,e)=>{for(var r in e||(e={}))Qt.call(e,r)&&Bt(t,r,e[r]);if(Et)for(var r of Et(e))Gt.call(e,r)&&Bt(t,r,e[r]);return t};var nt=(t,e,r)=>new Promise((i,o)=>{var n=a=>{try{c(r.next(a))}catch(u){o(u)}},s=a=>{try{c(r.throw(a))}catch(u){o(u)}},c=a=>a.done?i(a.value):Promise.resolve(a.value).then(n,s);c((r=r.apply(t,e)).next())});import{p as Q}from"./propTypes-DnNFEbDH.js";import{d as qt,r as pt,c as At,w as Wt,m as L,z as Xt,v as Zt,u as U,k as xt,F as te,q as ee,ah as ne,az as Tt,X as oe}from"./index-BAaep8yZ.js";import{d as re}from"./refresh-right-Du3ZsAuC.js";var Y={},ie=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Mt={},M={};let dt;const se=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];M.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};M.getSymbolTotalCodewords=function(e){return se[e]};M.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};M.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');dt=e};M.isKanjiModeEnabled=function(){return typeof dt!="undefined"};M.toSJIS=function(e){return dt(e)};var Z={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit!="undefined"&&i.bit>=0&&i.bit<4},t.from=function(i,o){if(t.isValid(i))return i;try{return e(i)}catch(n){return o}}})(Z);function Pt(){this.buffer=[],this.length=0}Pt.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r