This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
handingkang-ohmyweb/static/index-5d54be19.js

4 lines
62 KiB
JavaScript
Raw Normal View History

var _t=Object.defineProperty;var At=(e,t,n)=>t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(At(e,typeof t!="symbol"?t+"":t,n),n);import{r as k,w as We,H as Ge,ag as Pe,ah as xe,O as Tt,P as Ot,u as Rt,l as Ke,V as Ct,ay as Pt,az as xt,aA as kt,aB as te,b as Dt,e as Nt,m as Bt,p as Lt,as as Ft}from"./vue-09136d94.js";import{E as ke,b as K,c as Vt,m as It,e as Mt,g as Ut,i as zt,f as Ht}from"./element-3594ebb6.js";import{V as ge,a as jt}from"./vxe-e1f17f9a.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const M="v3-admin-vite";class S{}V(S,"TOKEN",`${M}-token-key`),V(S,"CONFIG_LAYOUT",`${M}-config-layout-key`),V(S,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),V(S,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),V(S,"VISITED_VIEWS",`${M}-visited-views-key`),V(S,"CACHED_VIEWS",`${M}-cached-views-key`);const qt=()=>{const e=localStorage.getItem(S.CONFIG_LAYOUT);return e?JSON.parse(e):null},Jt=e=>{localStorage.setItem(S.CONFIG_LAYOUT,JSON.stringify(e))},$t=()=>{localStorage.removeItem(S.CONFIG_LAYOUT)},co=()=>localStorage.getItem(S.SIDEBAR_STATUS),uo=e=>{localStorage.setItem(S.SIDEBAR_STATUS,e)},Wt=()=>localStorage.getItem(S.ACTIVE_THEME_NAME),Gt=e=>{localStorage.setItem(S.ACTIVE_THEME_NAME,e)},Kt=()=>{const e=localStorage.getItem(S.VISITED_VIEWS);return JSON.parse(e??"[]")},Xt=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(S.VISITED_VIEWS,JSON.stringify(e))},Yt=()=>{const e=localStorage.getItem(S.CACHED_VIEWS);return JSON.parse(e??"[]")},Zt=e=>{localStorage.setItem(S.CACHED_VIEWS,JSON.stringify(e))},Xe="normal",Qt=[{title:"默认",name:Xe},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],we=k(Wt()||Xe),en=e=>{we.value=e},tn=e=>{document.documentElement.className=e},nn=()=>{We(()=>{const e=we.value;tn(e),Gt(e)})};function rn(){return{themeList:Qt,activeThemeName:we,initTheme:nn,setTheme:en}}const lo=e=>{let t="";try{t=getComputedStyle(document.documentElement).getPropertyValue(e)}catch(n){console.error(n)}return t},fo=(e,t)=>{try{document.documentElement.style.setProperty(e,t)}catch(n){console.error(n)}},on=()=>{$t(),location.reload()};var sn={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",dep
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&mr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function Y(e){return e===!1||e==null?e:c.isArray(e)?e.map(Y):String(e)}function hr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Er=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,r,o){if(c.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function yr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(l,p,u){const m=j(p);if(!m)throw new Error("header name must be a non-empty string");const f=c.findKey(o,m);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||p]=Y(l))}const i=(l,p)=>c.forEach(l,(u,m)=>s(u,m,p));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Er(t)?i(pr(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=j(t),t){const r=c.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return hr(o);if(c.isFunction(n))return n.call(this,o,r);if(c.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||le(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=j(i),i){const l=c.findKey(r,i);l&&(!n||le(r,r[l],l,n))&&(delete r[l],o=!0)}}return c.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||le(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return c.forEach(this,(o,s)=>{const i=c.findKey(r,s);if(i){n[i]=Y(o),delete n[s];return}const l=t?yr(s):String(s).trim();l!==s&&delete n[s],n[l]=Y(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=j(i);r[l]||(gr(o,i),r[l]=!0)}return c.isArray(t)?t.forEach(s):s(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.freezeMethods(ce.prototype);c.freezeMethods(ce);const N=ce;function de(e,t){const n=this||Ae,r=t||n,o=N.from(r.headers);let s=r.data;return c.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function gt(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits($,g,{__CANCEL__:!0});function wr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const br=P.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,l){const p=[];p.push(n+"="+encodeURIComponent(r)),c.isNumber(o)&&p.push("expires="+new Date(o).toGMTString()),c.isString(s)&&p.push("path="+s),c.isString(i)&&p.push("domain="+i),l===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function vr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function wt(e,t){return e&&!vr(t)?Sr(e,t):t}const _r=P.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=c.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Ar(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Tr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(p){const u=Date.now(),m=r[s];i||(i=u),n[o]=p,r[o]=u;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const y=m&&u-m;return y?Math.round(h*1e3/y):void 0}}function He(e,t){let n=0;const r=Tr(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,p=r(l),u=s<=i;n=s;const m={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:p||void 0,estimated:p&&i&&u?(i-s)/p:void 0,event:o};m[t?"download":"upload"]=!0,e(m)}}const Or=typeof XMLHttpRequest<"u",Rr=Or&&function(e){return new Promise(function(n,r){let o=e.data;const s=N.from(e.headers).normalize(),i=e.responseType;let l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}c.isFormData(o)&&(P.isStandardBrowserEnv||P.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+a))}const m=wt(e.baseURL,e.url);u.open(e.method.toUpperCase(),ht(m,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const y=N.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};wr(function(w){n(w)