You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
400 KiB
JavaScript
101 lines
400 KiB
JavaScript
1 year ago
|
import{I as q2,J as $n,K as D2,L as Cn,r as E,M as g3,g as y,c as _,e as b,d as i2,N,O as p3,o as V2,F as f2,k as p2,P as o2,z as P,Q as S2,j as o,t as n2,f,R as J3,_ as a2,b as q,h as c2,B as U,D as u3,s as Tn,S as Mn,T as z2,U as r3,w as x,V as Sn,W as B2,X as Y3,Y as Q3,q as P2,p as k2,l as N2,G as b3,H as I2,Z as d2,$ as j3,a0 as x3,u as w3,a1 as In,a2 as F2,a3 as R2,a4 as W2,a5 as M2,a as q3,a6 as G2,a7 as An,a8 as Ln,a9 as X2,aa as Q2,ab as L2,ac as h3,ad as En,ae as H2,v as v3,af as Z2,ag as _3,ah as a3,ai as O3,aj as nn,ak as H3,al as U2,am as Pn,an as Vn,x as t3,y as o3,ao as hn,ap as en,aq as On,ar as Hn,as as Dn,at as Bn,au as Nn,av as Rn}from"./index-93dfb385.js";import{u as gn,a as T2}from"./hooks-381c0830.js";import{u as v2,d as Zn,e as y2,a as E2}from"./logout-13b9668f.js";import{u as n3}from"./epTheme-26687a13.js";import"./user-e9c47f7a.js";const Fn={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 447.936V896h255.936V640H640v256h255.936V447.936z"/>'},Wn={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'},Un={width:1024,height:1024,body:'<path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/>'},Gn={width:48,height:48,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4"><rect width="40" height="36" x="4" y="6" rx="3"/><path d="M4 14h40M20 24h16m-16 8h16m-24-8h2m-2 8h2"/></g>'},Xn={width:48,height:48,body:'<g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="4"><rect width="40" height="32" x="4" y="8" rx="2"/><path stroke-linecap="round" d="m12 18l7 6l-7 6m11 2h13"/></g>'},Kn={width:48,height:48,body:'<g fill="none" stroke="currentColor" stroke-width="4"><path stroke-linecap="round" stroke-linejoin="round" d="M19 32h10v9H19z"/><rect width="38" height="24" x="5" y="8" rx="2"/><path stroke-linecap="round" stroke-linejoin="round" d="M22 27h4M14 41h20"/></g>'},Jn={width:48,height:48,body:'<g fill="none"><rect width="36" height="14" x="6" y="28" stroke="currentColor" stroke-width="4" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M20 7H10a4 4 0 0 0-4 4v6a4 4 0 0 0 4 4h10"/><circle cx="34" cy="14" r="8" stroke="currentColor" stroke-width="4"/><circle cx="34" cy="14" r="3" fill="currentColor"/></g>'},Yn={width:48,height:48,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m6 14l18-8l18 8M6 14l18 8M6 14v20l18 8m18-28l-18 8m18-8v20l-18 8m0-20v20"/>'},Qn={width:48,height:48,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4"><path d="M11 14L25 4v40H11V14Z" clip-rule="evenodd"/><path d="m25 13l14 10v21M4 44h40"/></g>'},n0={width:48,height:48,body:'<g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="4"><path d="M14 25c0-5.523 4.477-10 10-10s10 4.477 10 10v16H14V25Z"/><path stroke-linecap="round" d="M24 5v3m11.892 1.328l-1.929 2.298m8.256 8.661l-2.955.521m-33.483-.521l2.955.521m3.373-11.48l1.928 2.298M6 41h37"/></g>'},i0={width:48,height:48,body:'<g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="4"><path d="m15 12l3-6h12l3 6H15Z"/><rect width="40" height="30" x="4" y="12" rx="3"/><path d="M24 35a8 8 0 1 0 0-16a8 8 0 0 0 0 16Z"/></g>'};q2("homeFilled",Fn);q2("informationLine",Wn);q2("lollipop",Un);q2("projectIcon",Gn);q2("terminal",Xn);q2("computer",Kn);q2("categoryManagement",Jn);q2("weixinFavorites",Yn);q2("buildingOne",Qn);q2("alarm",n0);q2("camera",i0);const h0=$n({id:"pure-setting",state:()=>({title:D2().Title,fix
|
||
|
$subMenuActiveText: #333333 !default;
|
||
|
$menuBg: #fff !default;
|
||
|
$menuHover: #1C0D82 !default;
|
||
|
$subMenuBg: #fff !default;
|
||
|
$subMenuActiveBg: #1C0D82 !default;
|
||
|
$menuText: #333333 !default;
|
||
|
$sidebarLogo: #fff !default;
|
||
|
$menuTitleHover: #1C0D82 !default;
|
||
|
$menuActiveBefore: #1C0D82 !default;
|
||
|
`},{scopeName:"layout-theme-light",varsContent:`
|
||
|
$subMenuActiveText: #409eff !default;
|
||
|
$menuBg: #fff !default;
|
||
|
$menuHover: #e0ebf6 !default;
|
||
|
$subMenuBg: #fff !default;
|
||
|
$subMenuActiveBg: #e0ebf6 !default;
|
||
|
$menuText: #7a80b4 !default;
|
||
|
$sidebarLogo: #fff !default;
|
||
|
$menuTitleHover: #000 !default;
|
||
|
$menuActiveBefore: #4091f7 !default;
|
||
|
`},{scopeName:"layout-theme-dusk",varsContent:`
|
||
|
$subMenuActiveText: #fff !default;
|
||
|
$menuBg: #2a0608 !default;
|
||
|
$menuHover: #e13c39 !default;
|
||
|
$subMenuBg: #000 !default;
|
||
|
$subMenuActiveBg: #e13c39 !default;
|
||
|
$menuText: rgb(254 254 254 / 65.1%) !default;
|
||
|
$sidebarLogo: #42090c !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #e13c39 !default;
|
||
|
`},{scopeName:"layout-theme-volcano",varsContent:`
|
||
|
$subMenuActiveText: #fff !default;
|
||
|
$menuBg: #2b0e05 !default;
|
||
|
$menuHover: #e85f33 !default;
|
||
|
$subMenuBg: #0f0603 !default;
|
||
|
$subMenuActiveBg: #e85f33 !default;
|
||
|
$menuText: rgb(254 254 254 / 65%) !default;
|
||
|
$sidebarLogo: #441708 !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #e85f33 !default;
|
||
|
`},{scopeName:"layout-theme-yellow",varsContent:`
|
||
|
$subMenuActiveText: #d25f00 !default;
|
||
|
$menuBg: #2b2503 !default;
|
||
|
$menuHover: #f6da4d !default;
|
||
|
$subMenuBg: #0f0603 !default;
|
||
|
$subMenuActiveBg: #f6da4d !default;
|
||
|
$menuText: rgb(254 254 254 / 65%) !default;
|
||
|
$sidebarLogo: #443b05 !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #f6da4d !default;
|
||
|
`},{scopeName:"layout-theme-mingQing",varsContent:`
|
||
|
$subMenuActiveText: #fff !default;
|
||
|
$menuBg: #032121 !default;
|
||
|
$menuHover: #59bfc1 !default;
|
||
|
$subMenuBg: #000 !default;
|
||
|
$subMenuActiveBg: #59bfc1 !default;
|
||
|
$menuText: #7a80b4 !default;
|
||
|
$sidebarLogo: #053434 !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #59bfc1 !default;
|
||
|
`},{scopeName:"layout-theme-auroraGreen",varsContent:`
|
||
|
$subMenuActiveText: #fff !default;
|
||
|
$menuBg: #0b1e15 !default;
|
||
|
$menuHover: #60ac80 !default;
|
||
|
$subMenuBg: #000 !default;
|
||
|
$subMenuActiveBg: #60ac80 !default;
|
||
|
$menuText: #7a80b4 !default;
|
||
|
$sidebarLogo: #112f21 !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #60ac80 !default;
|
||
|
`},{scopeName:"layout-theme-pink",varsContent:`
|
||
|
$subMenuActiveText: #fff !default;
|
||
|
$menuBg: #28081a !default;
|
||
|
$menuHover: #d84493 !default;
|
||
|
$subMenuBg: #000 !default;
|
||
|
$subMenuActiveBg: #d84493 !default;
|
||
|
$menuText: #7a80b4 !default;
|
||
|
$sidebarLogo: #3f0d29 !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #d84493 !default;
|
||
|
`},{scopeName:"layout-theme-saucePurple",varsContent:`
|
||
|
$subMenuActiveText: #fff !default;
|
||
|
$menuBg: #130824 !default;
|
||
|
$menuHover: #693ac9 !default;
|
||
|
$subMenuBg: #000 !default;
|
||
|
$subMenuActiveBg: #693ac9 !default;
|
||
|
$menuText: #7a80b4 !default;
|
||
|
$sidebarLogo: #1f0c38 !default;
|
||
|
$menuTitleHover: #fff !default;
|
||
|
$menuActiveBefore: #693ac9 !default;
|
||
|
`}]},e0="./",g0="assets";function un(i){let n=i.replace("#","").match(/../g);for(let h=0;h<3;h++)n[h]=parseInt(n[h],16);return n}function tn(i,n,h){let e=[i.toString(16),n.toString(16),h.toString(16)];for(let u=0;u<3;u++)e[u].length==1&&(e[u]=`0${e[u]}`);return`#${e.join("")}`}function u0(i,n){let h=un(i);for(let e=0;e<3;e++)h[e]=Math.floor(h[e]*(1-n));return tn(h[0],h[1],h[2])}function t0(i,n){let h=un(i);for(let e=0;e<3;e++)h[e]=Math.floor((255-h[e])*n+h[e]);return tn(h[0],h[1],h[2])}function D3(i){return`(^${i}\\s+|\\s+${i}\\s+|\\s+${i}$|^${i}$)`}function B3({scopeName:i,multipleScopeVars:n}){const h=Array.isArray(n)&&n.length?n:y3.multipleScopeVars;let e=document.documentElement.className;new RegExp(D3(i)).test(e)||(h.forEach(u=>{e=e.replace(new RegExp(D3(u.scopeName),"g"),` ${i} `)}),document.documentElement.className=e.replace(/(^\s+|\s+$)/g,""))}function N3({id:i,href:n}){const h=document.createElement("link");return h.rel="stylesheet",h.href=n,h.id=i,h}function on(i){const n={scopeName:"theme-default",customLinkHref:g=>g,...i},h=n.themeLinkTagId||y3.themeLinkTagId;let e=document.getElementById(h);const u=n.customLinkHref(`${e0.replace(/\/$/,"")}${`/${g0}/${n.scopeName}.css`.replace(/\/+(?=\/)/g,"")}`);if(e){e.id=`${h}_old`;const g=N3({id:h,href:u});e.nextSibling?e.parentNode.insertBefore(g,e.nextSibling):e.parentNode.appendChild(g),g.onload=()=>{setTimeout(()=>{e.parentNode.removeChild(e),e=null},60),B3(n)};return}e=N3({id:h,href:u}),B3(n),document[(n.themeLinkTagInjectTo||y3.themeLinkTagInjectTo||"").replace("-prepend","")].appendChild(e)}function sn(){var r;const{layoutTheme:i,layout:n}=gn(),h=E([{color:"rgba(28, 13, 130,.1)",themeColor:"default"},{color:"#ffffff",themeColor:"light"},{color:"#f5222d",themeColor:"dusk"},{color:"#fa541c",themeColor:"volcano"},{color:"#fadb14",themeColor:"yellow"},{color:"#13c2c2",themeColor:"mingQing"},{color:"#52c41a",themeColor:"auroraGreen"},{color:"#eb2f96",themeColor:"pink"},{color:"#722ed1",themeColor:"saucePurple"}]),{$storage:e}=g3(),u=E((r=e==null?void 0:e.layout)==null?void 0:r.darkMode),g=document.documentElement;function t(a=D2().Theme??"default"){var j,w;if(i.value.theme=a,on({scopeName:`layout-theme-${a}`}),e.layout={layout:n.value,theme:a,darkMode:u.value,sidebarStatus:(j=e.layout)==null?void 0:j.sidebarStatus,epThemeColor:(w=e.layout)==null?void 0:w.epThemeColor},a==="default"||a==="light")m(D2().EpThemeColor);else{const p=h.value.find(I=>I.themeColor===a);m(p.color)}}function s(a,j,w){document.documentElement.style.setProperty(`--el-color-primary-${a}-${j}`,u.value?u0(w,j/10):t0(w,j/10))}const m=a=>{n3().setEpThemeColor(a),document.documentElement.style.setProperty("--el-color-primary",a);for(let j=1;j<=2;j++)s("dark",j,a);for(let j=1;j<=9;j++)s("light",j,a)};function z(){n3().epTheme==="light"&&u.value?t("default"):t(n3().epTheme),u.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}return{body:g,dataTheme:u,layoutTheme:i,themeColors:h,dataThemeChange:z,setEpThemeColor:m,setLayoutThemeColor:t}}const o0=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],s0=["j","q","x"],l0=["uān","uán","uǎn","uàn","uan","uē","ué","uě","uè","ue","ūn","ún","ǔn","ùn","un","ū","ú","ǔ","ù","u"],c0={uān:"üān",uán:"üán",uǎn:"üǎn",uàn:"üàn",uan:"üan",uē:"üē",ué:"üé",uě:"üě",uè:"üè",ue:"üe",ūn:"ǖn",ún:"ǘn",ǔn:"ǚn",ùn:"ǜn",un:"ün",ū:"ǖ",ú:"ǘ",ǔ:"ǚ",ù:"ǜ",u:"ü"},r0=["ia","ian","iang","iao","ie","iu","iong","ua","uai","uan","uang","ue","ui","uo","üan","üe","van","ve"],z3={南宫:"nán gōng",第五:"dì wǔ",万俟:"mò qí",司马:"sī mǎ",上官:"shàng guān",欧阳:"ōu yáng",夏侯:"xià hóu",诸葛:"zhū gě",闻人:"wén rén",东方:"dōng fāng",赫连:"hè lián",皇甫:"huáng fǔ",尉迟:"yù chí",公羊:"gōng yáng",澹台:"tán tái",公冶:"gōng yě",宗政:"zōng zhèng",濮阳:"pú yáng",淳于:"chún yú",单于:"chán yú",太叔:"tài shū",申屠:"shēn tú",公孙:"gōng sūn",仲孙:"zhòng sūn
|
||
|
`)>-1&&(B?J=J.split(`
|
||
|
`).map(function(m2){return" "+m2}).join(`
|
||
|
`).substr(2):J=`
|
||
|
`+J.split(`
|
||
|
`).map(function(m2){return" "+m2}).join(`
|
||
|
`))):J=c.stylize("[Circular]","special")),T(D)){if(B&&F.match(/^\d+$/))return J;D=JSON.stringify(""+F),D.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(D=D.substr(1,D.length-2),D=c.stylize(D,"name")):(D=D.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),D=c.stylize(D,"string"))}return D+": "+J}function w(c,l,d){var O=c.reduce(function(F,B){return B.indexOf(`
|
||
|
`)>=0,F+B.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?d[0]+(l===""?"":l+`
|
||
|
`)+" "+c.join(`,
|
||
|
`)+" "+d[1]:d[0]+l+" "+c.join(", ")+" "+d[1]}function p(c){return Array.isArray(c)}i.isArray=p;function I(c){return typeof c=="boolean"}i.isBoolean=I;function k(c){return c===null}i.isNull=k;function M(c){return c==null}i.isNullOrUndefined=M;function G(c){return typeof c=="number"}i.isNumber=G;function Z(c){return typeof c=="string"}i.isString=Z;function S(c){return typeof c=="symbol"}i.isSymbol=S;function T(c){return c===void 0}i.isUndefined=T;function $(c){return A(c)&&r2(c)==="[object RegExp]"}i.isRegExp=$;function A(c){return typeof c=="object"&&c!==null}i.isObject=A;function X(c){return A(c)&&r2(c)==="[object Date]"}i.isDate=X;function C(c){return A(c)&&(r2(c)==="[object Error]"||c instanceof Error)}i.isError=C;function R(c){return typeof c=="function"}i.isFunction=R;function l2(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||typeof c=="symbol"||typeof c>"u"}i.isPrimitive=l2,i.isBuffer=z6;function r2(c){return Object.prototype.toString.call(c)}function K(c){return c<10?"0"+c.toString(10):c.toString(10)}var A2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $2(){var c=new Date,l=[K(c.getHours()),K(c.getMinutes()),K(c.getSeconds())].join(":");return[c.getDate(),A2[c.getMonth()],l].join(" ")}i.log=function(){console.log("%s - %s",$2(),i.format.apply(i,arguments))},i.inherits=f6,i._extend=function(c,l){if(!l||!A(l))return c;for(var d=Object.keys(l),O=d.length;O--;)c[d[O]]=l[d[O]];return c};function O2(c,l){return Object.prototype.hasOwnProperty.call(c,l)}})(jn);var m6=process.platform==="win32",w2=jn;function s3(i,n){for(var h=[],e=0;e<i.length;e++){var u=i[e];!u||u==="."||(u===".."?h.length&&h[h.length-1]!==".."?h.pop():n&&h.push(".."):h.push(u))}return h}function K2(i){for(var n=i.length-1,h=0;h<=n&&!i[h];h++);for(var e=n;e>=0&&!i[e];e--);return h===0&&e===n?i:h>e?[]:i.slice(h,e+1)}var xn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,p6=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,g2={};function l3(i){var n=xn.exec(i),h=(n[1]||"")+(n[2]||""),e=n[3]||"",u=p6.exec(e),g=u[1],t=u[2],s=u[3];return[h,g,t,s]}function P3(i){var n=xn.exec(i),h=n[1]||"",e=!!h&&h[1]!==":";return{device:h,isUnc:e,isAbsolute:e||!!n[2],tail:n[3]}}function wn(i){return"\\\\"+i.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}g2.resolve=function(){for(var i="",n="",h=!1,e=arguments.length-1;e>=-1;e--){var u;if(e>=0?u=arguments[e]:i?(u=process.env["="+i],(!u||u.substr(0,3).toLowerCase()!==i.toLowerCase()+"\\")&&(u=i+"\\")):u=process.cwd(),w2.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var g=P3(u),t=g.device,s=g.isUnc,m=g.isAbsolute,z=g.tail;if(!(t&&i&&t.toLowerCase()!==i.toLowerCase())&&(i||(i=t),h||(n=z+"\\"+n,h=m),i&&h))break}return s&&(i=wn(i)),n=s3(n.split(/[\\\/]+/),!h).join("\\"),i+(h?"\\":"")+n||"."};g2.normalize=function(i){var n=P3(i),h=n.device,e=n.isUnc,u=n.isAbsolute,g=n.tail,t=/[\\\/]$/.test(g);return g=s3(g.split(/[\\\/]+/),!u).join("\\"),!g&&!u&&(g="."),g&&t&&(g+="\\"),e&&(h=wn(h)),h+(u?"\\":"")+g};g2.isAbsolute=function(i){return P3(i).isAbsolute};g2.join=function(){for(var i=[],n=0;n<arguments.length;n++){var h=arguments[n];if(!w2.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&i.push(h)}var e=i.join("\\");return/^[\\\/]{2}[^\\\/]/.test(i[0])||(e=e.replace(/^[\\\/]{2,}/,"\\")),g2.normalize(e)};g2.relative=function(i,n){i=g2.resolve(i),n=g2.resolve(n);for(var h=i.toLowerCase(),e=n.toLowerCase(),u=K2(n.split("\\")),g=K2(h.split("\\")),t=K2(e.split("\\")),s=Math.min(g.length,t.length),m=s,z=0;z<s;z++)if(g[z]!==t[z]){m=z;break}if(m==0)return n;for(var r=[],z=m;z<g.length;z++)r.push("..");return r=r.concat(u.slice(m)),r.join("\\")};g2._makeLong=function(i){if(!w2.isString(i))return i;if(!i)return"";var n=g2.resolve(i);return/^[a-zA-Z]\:\\/.test(n)?"\\\\?\\"+n:/^\\\\[^?.]/.test(n)?"\\\\?\\UNC\\"+n.substring(2):i};g2.dirname=function(i){var n=l3(i),h=n[0],e=n[1];return!h&&!e?".":(e&&(e=e.substr(0,e.length-1)),h+e)};g2.basename=function(i,n){var h=l3(
|