var Ct=Object.defineProperty;var xt=(e,t,n)=>t in e?Ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>(xt(e,typeof t!="symbol"?t+"":t,n),n);import{r as P,w as Ke,H as Xe,ag as Pt,ah as De,O as kt,P as Dt,u as Nt,l as Ye,V as Bt,ay as Lt,az as Ft,aA as It,aB as te,b as Ze,z as Vt,e as Mt,m as Ut,p as zt,as as Ht}from"./vue-2207505e.js";import{E as jt,b as K,c as qt,m as $t,e as Jt,g as Wt,i as Gt,f as Kt}from"./element-a4dc66a7.js";import{V as ve,a as Xt}from"./vxe-51e6f8a7.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const M="v3-admin-vite";class _{}F(_,"TOKEN",`${M}-token-key`),F(_,"CONFIG_LAYOUT",`${M}-config-layout-key`),F(_,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),F(_,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),F(_,"VISITED_VIEWS",`${M}-visited-views-key`),F(_,"CACHED_VIEWS",`${M}-cached-views-key`);const Yt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Zt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},Es=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},gs=()=>localStorage.getItem(_.SIDEBAR_STATUS),ys=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},Qt=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),en=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},tn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},nn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},rn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},sn=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},Qe="normal",on=[{title:"默认",name:Qe},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],be=P(Qt()||Qe),an=e=>{be.value=e},cn=e=>{document.documentElement.className=e},un=()=>{Ke(()=>{const e=be.value;cn(e),en(e)})};function ln(){return{themeList:on,activeThemeName:be,initTheme:un,setTheme:an}}var dn={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} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const fn=Xe({__name:"App",setup(e){const{initTheme:t}=ln();return t(),jt({title:"Hello",type:"success",message:Pt("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ye(),kt(o,{locale:Nt(dn)},{default:Dt(()=>[Bt(s)]),_:1},8,["locale"])}}}),ne=Lt(),mn="modulepreload",pn=function(e){return"/v3-admin-vite/"+e},Ne={},b=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=pn(o),o in Ne)return;Ne[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let m=s.length-1;m>=0;m--){const f=s[m];if(f.href===o&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":mn,i||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),i)return new Promise((m,f)=>{u.addEventListener("load",m),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},hn=Ft("/v3-admin-vite/"),et={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>b(()=>import("./index-b518cc9d.js"),["static/index-b518cc9d.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/index.vue_vue_type_script_setup_true_lang-ff750191.js","static/vxe-51e6f8a7.js","static/index-43f7116f.css"]),tt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>b(()=>import("./index-bdbd957d.js"),["static/index-bdbd957d.js","static/vue-2207505e.js"])}]},{path:"/403",component:()=>b(()=>import("./403-8ab58c63.js"),["static/403-8ab58c63.js","static/ErrorPageLayout-f2f5ff4b.js","static/vue-2207505e.js","static/ErrorPageLayout-155a3ef2.css","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js"]),meta:{hidden:!0}},{path:"/404",component:()=>b(()=>import("./404-43f888f5.js"),["static/404-43f888f5.js","static/ErrorPageLayout-f2f5ff4b.js","static/vue-2207505e.js","static/ErrorPageLayout-155a3ef2.css","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js"]),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>b(()=>import("./index-799409f7.js"),["static/index-799409f7.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/index.vue_vue_type_script_setup_true_lang-ff750191.js","static/vxe-51e6f8a7.js","static/index-acd5de27.css"]),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>b(()=>import("./index-7ac811b7.js"),["static/index-7ac811b7.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js","static/index-d3ac1821.css"]),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>b(()=>import("./index-d14eca3f.js"),["static/index-d14eca3f.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js"]),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>b(()=>import("./index-a67dd2b8.js"),["static/index-a67dd2b8.js","static/index-320661ee.js","static/element-a4dc66a7.js","static/vue-2207505e.js","static/vxe-51e6f8a7.js","static/index-c475a2b5.css"]),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>b(()=>import("./index-f3566ad4.js"),["static/index-f3566ad4.js","static/index-320661ee.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js"]),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>b(()=>import("./index-ddb0a36b.js"),["static/index-ddb0a36b.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js"]),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>b(()=>import("./index-e72dcfe3.js"),["static/index-e72dcfe3.js","static/vue-2207505e.js"]),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>b(()=>import("./index-278a3b73.js"),["static/index-278a3b73.js","static/vue-2207505e.js","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js"]),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>b(()=>import("./index-b3649766.js"),["static/index-b3649766.js","static/vue-2207505e.js"]),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>b(()=>import("./index-0c350c79.js"),["static/index-0c350c79.js","static/vue-2207505e.js"]),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>b(()=>import("./index-72502c9f.js"),["static/index-72502c9f.js","static/vue-2207505e.js"]),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>b(()=>import("./index-3bc19812.js"),["static/index-3bc19812.js","static/vue-2207505e.js"]),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>b(()=>import("./use-fetch-select-9f829aa3.js"),["static/use-fetch-select-9f829aa3.js","static/vue-2207505e.js"]),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>b(()=>import("./use-fullscreen-loading-31e27641.js"),["static/use-fullscreen-loading-31e27641.js","static/element-a4dc66a7.js","static/vue-2207505e.js"]),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>b(()=>import("./use-watermark-2b05ffb4.js"),["static/use-watermark-2b05ffb4.js","static/element-a4dc66a7.js","static/vue-2207505e.js","static/vxe-51e6f8a7.js","static/use-watermark-bd559b9d.css"]),name:"UseWatermark",meta:{title:"useWatermark"}}]}],En=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>b(()=>import("./page-6b3bc023.js"),["static/page-6b3bc023.js","static/vue-2207505e.js","static/SwitchRoles-a5443d4d.js","static/SwitchRoles-47de59b3.css","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js","static/page-52a84664.css"]),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>b(()=>import("./directive-a13318b3.js"),["static/directive-a13318b3.js","static/SwitchRoles-a5443d4d.js","static/vue-2207505e.js","static/SwitchRoles-47de59b3.css","static/element-a4dc66a7.js","static/vxe-51e6f8a7.js","static/directive-7c8db414.css"]),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],k=It({history:hn,routes:tt});function Be(){try{k.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&k.hasRoute(t)&&k.removeRoute(t)})}catch{window.location.reload()}}const gn=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0},nt=(e,t)=>{const n=[];return e.forEach(r=>{const s={...r};gn(t,s)&&(s.children&&(s.children=nt(s.children,t)),n.push(s))}),n},rt=te("permission",()=>{const e=P([]),t=P([]);return{routes:e,dynamicRoutes:t,setRoutes:r=>{const s=nt(En,r);e.value=tt.concat(s),t.value=s}}});function yn(){return rt(ne)}const wn={layoutMode:"left",showSettings:!0,showTagsView:!0,fixedHeader:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showGreyMode:!1,showColorWeakness:!1},vn={...wn,...Yt()},st=te("settings",()=>{const e={};for(const[n,r]of Object.entries(vn)){const s=P(r);e[n]=s,Ze(s,()=>{const o=t();Zt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),ot=te("tags-view",()=>{const{cacheTagsView:e}=st(),t=P(e?tn():[]),n=P(e?rn():[]);return Ke(()=>{nn(t.value),sn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:f=>{const h=t.value.findIndex(g=>g.path===f.path);h!==-1?t.value[h].fullPath!==f.fullPath&&(t.value[h]={...f}):t.value.push({...f})},addCachedView:f=>{var h;typeof f.name=="string"&&(n.value.includes(f.name)||(h=f.meta)!=null&&h.keepAlive&&n.value.push(f.name))},delVisitedView:f=>{const h=t.value.findIndex(g=>g.path===f.path);h!==-1&&t.value.splice(h,1)},delCachedView:f=>{if(typeof f.name!="string")return;const h=n.value.indexOf(f.name);h!==-1&&n.value.splice(h,1)},delOthersVisitedViews:f=>{t.value=t.value.filter(h=>{var g;return((g=h.meta)==null?void 0:g.affix)||h.path===f.path})},delOthersCachedViews:f=>{if(typeof f.name!="string")return;const h=n.value.indexOf(f.name);h!==-1?n.value=n.value.slice(h,h+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(f=>{var h;return(h=f.meta)==null?void 0:h.affix})},delAllCachedViews:()=>{n.value=[]}}});function bn(){return ot(ne)}function G(e){for(var t=1;t"u")){i=G({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var p in i)i[p]&&(l+="; "+p,i[p]!==!0&&(l+="="+i[p].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;l_e.get(_.TOKEN),Le=e=>{_e.set(_.TOKEN,e)},Fe=()=>{_e.remove(_.TOKEN)};function it(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sn}=Object.prototype,{getPrototypeOf:Ae}=Object,re=(e=>t=>{const n=Sn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>re(t)===e),se=e=>t=>typeof t===e,{isArray:H}=Array,q=se("undefined");function An(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const at=D("ArrayBuffer");function Tn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&at(e.buffer),t}const Rn=se("string"),R=se("function"),ct=se("number"),oe=e=>e!==null&&typeof e=="object",On=e=>e===!0||e===!1,X=e=>{if(re(e)!=="object")return!1;const t=Ae(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Cn=D("Date"),xn=D("File"),Pn=D("Blob"),kn=D("FileList"),Dn=e=>oe(e)&&R(e.pipe),Nn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=re(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Bn=D("URLSearchParams"),Ln=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const lt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dt=e=>!q(e)&&e!==lt;function me(){const{caseless:e}=dt(this)&&this||{},t={},n=(r,s)=>{const o=e&&ut(t,s)||s;X(t[o])&&X(r)?t[o]=me(t[o],r):X(r)?t[o]=me({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r($(t,(s,o)=>{n&&R(s)?e[o]=it(s,n):e[o]=s},{allOwnKeys:r}),e),In=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Mn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Ae(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Un=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},zn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!ct(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ae(Uint8Array)),jn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},qn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$n=D("HTMLFormElement"),Jn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wn=D("RegExp"),ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Gn=e=>{ft(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Kn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Xn=()=>{},Yn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ce="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",mt={DIGIT:Ve,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Ve},Zn=(e=16,t=mt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Qn(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const er=e=>{const t=new Array(10),n=(r,s)=>{if(oe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return $(r,(i,l)=>{const p=n(i,s+1);!q(p)&&(o[l]=p)}),t[s]=void 0,o}}return r};return n(e,0)},tr=D("AsyncFunction"),nr=e=>e&&(oe(e)||R(e))&&R(e.then)&&R(e.catch),c={isArray:H,isArrayBuffer:at,isBuffer:An,isFormData:Nn,isArrayBufferView:Tn,isString:Rn,isNumber:ct,isBoolean:On,isObject:oe,isPlainObject:X,isUndefined:q,isDate:Cn,isFile:xn,isBlob:Pn,isRegExp:Wn,isFunction:R,isStream:Dn,isURLSearchParams:Bn,isTypedArray:Hn,isFileList:kn,forEach:$,merge:me,extend:Fn,trim:Ln,stripBOM:In,inherits:Vn,toFlatObject:Mn,kindOf:re,kindOfTest:D,endsWith:Un,toArray:zn,forEachEntry:jn,matchAll:qn,isHTMLForm:$n,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:ft,freezeMethods:Gn,toObjectSet:Kn,toCamelCase:Jn,noop:Xn,toFiniteNumber:Yn,findKey:ut,global:lt,isContextDefined:dt,ALPHABET:mt,generateString:Zn,isSpecCompliantForm:Qn,toJSONObject:er,isAsyncFn:tr,isThenable:nr};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pt=y.prototype,ht={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ht[e]={value:e}});Object.defineProperties(y,ht);Object.defineProperty(pt,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(pt);return c.toFlatObject(e,i,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const rr=null;function pe(e){return c.isPlainObject(e)||c.isArray(e)}function Et(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(s,o){return s=Et(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function sr(e){return c.isArray(e)&&!e.some(pe)}const or=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!c.isUndefined(E[d])});const r=n.metaTokens,s=n.visitor||m,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function u(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!p&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?p&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function m(a,d,E){let w=a;if(a&&!E&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&sr(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(w=c.toArray(a)))return d=Et(d),w.forEach(function(T,v){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Me([d],v,o):i===null?d:d+"[]",u(T))}),!1}return pe(a)?!0:(t.append(Me(E,d,o),u(a)),!1)}const f=[],h=Object.assign(or,{defaultVisitor:m,convertValue:u,isVisitable:pe});function g(a,d){if(!c.isUndefined(a)){if(f.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(a),c.forEach(a,function(w,A){(!(c.isUndefined(w)||w===null)&&s.call(t,w,c.isString(A)?A.trim():A,d,h))===!0&&g(w,d?d.concat(A):[A])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Te(e,t){this._pairs=[],e&&ie(e,this,t)}const gt=Te.prototype;gt.append=function(t,n){this._pairs.push([t,n])};gt.toString=function(t){const n=t?function(r){return t.call(this,r,Ue)}:Ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ir(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yt(e,t,n){if(!t)return e;const r=n&&n.encode||ir,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Te(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ar{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ze=ar,wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cr=typeof URLSearchParams<"u"?URLSearchParams:Te,ur=typeof FormData<"u"?FormData:null,lr=typeof Blob<"u"?Blob:null,dr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),fr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),C={isBrowser:!0,classes:{URLSearchParams:cr,FormData:ur,Blob:lr},isStandardBrowserEnv:dr,isStandardBrowserWebWorkerEnv:fr,protocols:["http","https","file","blob","url","data"]};function mr(e,t){return ie(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return C.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,p?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=hr(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(pr(r),s,n,0)}),n}return null}function Er(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Re={transitional:wt,adapter:C.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s&&s?JSON.stringify(vt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ie(l?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Er(t)):t}],transformResponse:[function(t){const n=this.transitional||Re.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?y.from(l,y.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Re.headers[e]={}});const Oe=Re,gr=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yr=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&gr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},He=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 wr(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 vr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ue(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function br(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _r(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ae{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,p,u){const m=j(p);if(!m)throw new Error("header name must be a non-empty string");const f=c.findKey(s,m);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||p]=Y(l))}const i=(l,p)=>c.forEach(l,(u,m)=>o(u,m,p));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!vr(t)?i(yr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=j(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);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||ue(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const l=c.findKey(r,i);l&&(!n||ue(r,r[l],l,n))&&(delete r[l],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ue(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=Y(s),delete n[o];return}const l=t?br(o):String(o).trim();l!==o&&delete n[o],n[l]=Y(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=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(s=>r.set(s)),r}static accessor(t){const r=(this[He]=this[He]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=j(i);r[l]||(_r(s,i),r[l]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(ae);const N=ae;function le(e,t){const n=this||Oe,r=t||n,s=N.from(r.headers);let o=r.data;return c.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function bt(e){return!!(e&&e.__CANCEL__)}function J(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(J,y,{__CANCEL__:!0});function Sr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ar=C.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,l){const p=[];p.push(n+"="+encodeURIComponent(r)),c.isNumber(s)&&p.push("expires="+new Date(s).toGMTString()),c.isString(o)&&p.push("path="+o),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 Tr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function _t(e,t){return e&&!Tr(t)?Rr(e,t):t}const Or=C.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;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=s(window.location.href),function(i){const l=c.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Cr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const u=Date.now(),m=r[o];i||(i=u),n[s]=p,r[s]=u;let f=o,h=0;for(;f!==s;)h+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,p=r(l),u=o<=i;n=o;const m={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:p||void 0,estimated:p&&i&&u?(i-o)/p:void 0,event:s};m[t?"download":"upload"]=!0,e(m)}}const Pr=typeof XMLHttpRequest<"u",kr=Pr&&function(e){return new Promise(function(n,r){let s=e.data;const o=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(s)&&(C.isStandardBrowserEnv||C.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+a))}const m=_t(e.baseURL,e.url);u.open(e.method.toUpperCase(),yt(m,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const g=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:g,config:e,request:u};Sr(function(w){n(w),p()},function(w){r(w),p()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new y("Request aborted",y.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||wt;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),r(new y(a,d.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,u)),u=null},C.isStandardBrowserEnv){const g=(e.withCredentials||Or(m))&&e.xsrfCookieName&&Ar.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&c.forEach(o.toJSON(),function(a,d){u.setRequestHeader(d,a)}),c.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",je(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",je(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{u&&(r(!g||g.type?new J(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=Cr(m);if(h&&C.protocols.indexOf(h)===-1){r(new y("Unsupported protocol "+h+":",y.ERR_BAD_REQUEST,e));return}u.send(s||null)})},Z={http:rr,xhr:kr};c.forEach(Z,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const St={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;se instanceof N?e.toJSON():e;function z(e,t){t=t||{};const n={};function r(u,m,f){return c.isPlainObject(u)&&c.isPlainObject(m)?c.merge.call({caseless:f},u,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function s(u,m,f){if(c.isUndefined(m)){if(!c.isUndefined(u))return r(void 0,u,f)}else return r(u,m,f)}function o(u,m){if(!c.isUndefined(m))return r(void 0,m)}function i(u,m){if(c.isUndefined(m)){if(!c.isUndefined(u))return r(void 0,u)}else return r(void 0,m)}function l(u,m,f){if(f in t)return r(u,m);if(f in e)return r(void 0,u)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,m)=>s($e(u),$e(m),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=p[m]||s,h=f(e[m],t[m],m);c.isUndefined(h)&&f!==l||(n[m]=h)}),n}const At="1.5.0",Ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Je={};Ce.transitional=function(t,n,r){function s(o,i){return"[Axios v"+At+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Je[i]&&(Je[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Dr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],p=l===void 0||i(l,o,e);if(p!==!0)throw new y("option "+o+" must be "+p,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const he={assertOptions:Dr,validators:Ce},B=he.validators;class ee{constructor(t){this.defaults=t,this.interceptors={request:new ze,response:new ze}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=z(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&he.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:he.assertOptions(s,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=N.concat(i,o);const l=[];let p=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(p=p&&d.synchronous,l.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let m,f=0,h;if(!p){const a=[qe.bind(this),void 0];for(a.unshift.apply(a,l),a.push.apply(a,u),h=a.length,m=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new J(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xe(function(s){t=s}),cancel:t}}}const Nr=xe;function Br(e){return function(n){return e.apply(null,n)}}function Lr(e){return c.isObject(e)&&e.isAxiosError===!0}const Ee={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ee).forEach(([e,t])=>{Ee[t]=e});const Fr=Ee;function Tt(e){const t=new Q(e),n=it(Q.prototype.request,t);return c.extend(n,Q.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Tt(z(e,s))},n}const S=Tt(Oe);S.Axios=Q;S.CanceledError=J;S.CancelToken=Nr;S.isCancel=bt;S.VERSION=At;S.toFormData=ie;S.AxiosError=y;S.Cancel=S.CanceledError;S.all=function(t){return Promise.all(t)};S.spread=Br;S.isAxiosError=Lr;S.mergeConfig=z;S.AxiosHeaders=N;S.formToJSON=e=>vt(c.isHTMLForm(e)?new FormData(e):e);S.getAdapter=St.getAdapter;S.HttpStatusCode=Fr;S.default=S;const Ir=S;function We(){ke().logout(),location.reload()}function Vr(){const e=Ir.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return K.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return We();default:return K.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(qt(t,"response.status")){case 400:t.message="请求错误";break;case 401:We();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return K.error(t.message),Promise.reject(t)}),e}function Mr(e){return function(t){const n=Se(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1",data:{}},s=$t(r,t);return e(s)}}const Ur=Vr(),Pe=Mr(Ur);function ws(){return Pe({url:"login/code",method:"get"})}function zr(e){return Pe({url:"users/login",method:"post",data:e})}function Hr(){return Pe({url:"users/info",method:"get"})}const jr=te("user",()=>{const e=P(Se()||""),t=P([]),n=P(""),r=rt(),s=ot(),o=st(),i=g=>{t.value=g},l=async({username:g,password:a,code:d})=>{const{data:E}=await zr({username:g,password:a,code:d});Le(E.token),e.value=E.token},p=async()=>{var a;const{data:g}=await Hr();n.value=g.username,t.value=((a=g.roles)==null?void 0:a.length)>0?g.roles:et.defaultRoles},u=async g=>{const a="token-"+g;e.value=a,Le(a),await p(),r.setRoutes(t.value),Be(),r.dynamicRoutes.forEach(d=>{k.addRoute(d)}),h()},m=()=>{Fe(),e.value="",t.value=[],Be(),h()},f=()=>{Fe(),e.value="",t.value=[]},h=()=>{o.cacheTagsView||(s.delAllVisitedViews(),s.delAllCachedViews())};return{token:e,roles:t,username:n,setRoles:i,login:l,getInfo:p,changeRoles:u,logout:m,resetToken:f}});function ke(){return jr(ne)}function qr(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const ge=qr(),ye=Symbol("ROUTE_CHANGE");let we;const $r=e=>{ge.emit(ye,e),we=e};function vs(){const e=[],t=(r,s=!1)=>{e.push(r),ge.on(ye,r),s&&we&&r(we)},n=r=>{ge.off(ye,r)};return Vt(()=>{for(let r=0;r{Rt.value=e?`${Ge} | ${e}`:Ge};Ze(Rt,(e,t)=>{document&&e!==t&&(document.title=e)});function Wr(){return{setTitle:Jr}}const Gr=()=>{const e=bn();e.cachedViews=[...e.cachedViews]},Kr=["/login"],Xr=[],Yr=e=>Kr.indexOf(e.path)!==-1||Xr.indexOf(e.name)!==-1;var Ot={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jt,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(a){var d,E;for(d in a)E=a[d],E!==void 0&&a.hasOwnProperty(d)&&(r[d]=E);return this},n.status=null,n.set=function(a){var d=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var E=n.render(!d),w=E.querySelector(r.barSelector),A=r.speed,T=r.easing;return E.offsetWidth,l(function(v){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),p(w,i(a,A,T)),a===1?(p(E,{transition:"none",opacity:1}),E.offsetWidth,setTimeout(function(){p(E,{transition:"all "+A+"ms linear",opacity:0}),setTimeout(function(){n.remove(),v()},A)},A)):setTimeout(v,A)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var d=n.status;return d?(typeof a!="number"&&(a=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+a,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,d=0;n.promise=function(E){return!E||E.state()==="resolved"?this:(d===0&&n.start(),a++,d++,E.always(function(){d--,d===0?(a=0,n.done()):n.set((a-d)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var E=d.querySelector(r.barSelector),w=a?"-100":o(n.status||0),A=document.querySelector(r.parent),T;return p(E,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&g(T)),A!=document.body&&m(A,"nprogress-custom-parent"),A.appendChild(d),d},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&g(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,d="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return d+"Perspective"in a?"translate3d":d+"Transform"in a?"translate":"margin"};function s(a,d,E){return aE?E:a}function o(a){return(-1+a)*100}function i(a,d,E){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+o(a)+"%,0)"}:w={"margin-left":o(a)+"%"},w.transition="all "+d+"ms "+E,w}var l=function(){var a=[];function d(){var E=a.shift();E&&E(d)}return function(E){a.push(E),a.length==1&&d()}}(),p=function(){var a=["Webkit","O","Moz","ms"],d={};function E(v){return v.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(O,x){return x.toUpperCase()})}function w(v){var O=document.body.style;if(v in O)return v;for(var x=a.length,V=v.charAt(0).toUpperCase()+v.slice(1),L;x--;)if(L=a[x]+V,L in O)return L;return v}function A(v){return v=E(v),d[v]||(d[v]=w(v))}function T(v,O,x){O=A(O),v.style[O]=x}return function(v,O){var x=arguments,V,L;if(x.length==2)for(V in O)L=O[V],L!==void 0&&O.hasOwnProperty(V)&&T(v,V,L);else T(v,x[1],x[2])}}();function u(a,d){var E=typeof a=="string"?a:h(a);return E.indexOf(" "+d+" ")>=0}function m(a,d){var E=h(a),w=E+d;u(E,d)||(a.className=w.substring(1))}function f(a,d){var E=h(a),w;u(a,d)&&(w=E.replace(" "+d+" "," "),a.className=w.substring(1,w.length-1))}function h(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function g(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(Ot);var Zr=Ot.exports;const U=Wt(Zr);const{setTitle:Qr}=Wr();U.configure({showSpinner:!1});k.beforeEach(async(e,t,n)=>{Gr(),U.start();const r=ke(),s=yn();if(Se())if(e.path==="/login")n({path:"/"}),U.done();else if(r.roles.length===0)try{if(et.async){await r.getInfo();const o=r.roles;s.setRoutes(o)}s.dynamicRoutes.forEach(o=>{k.addRoute(o)}),n({...e,replace:!0})}catch(o){r.resetToken(),K.error(o.message||"路由守卫过程发生错误"),n("/login"),U.done()}else n();else Yr(e)?n():(n("/login"),U.done())});k.afterEach(e=>{$r(e)});k.afterEach(e=>{Qr(e.meta.title),U.done()});const es={class:"svg-icon","aria-hidden":"true"},ts=["href"],ns=Xe({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Mt(()=>`#${t.prefix}-${t.name}`);return(r,s)=>(Ye(),Ut("svg",es,[zt("use",{href:n.value},null,8,ts)]))}});const rs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ss=rs(ns,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function os(e){e.component("SvgIcon",ss)}function is(e){e.use(Gt)}function as(e){for(const[t,n]of Object.entries(Kt))e.component(t,n)}ve.use(Xt);ve.setup({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0},columnConfig:{resizable:!1},align:"center",headerAlign:"center",rowId:"_VXE_ID"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function cs(e){e.use(ve)}function us(e){is(e),as(e),cs(e)}const ls={mounted(e,t){var s;const{value:n}=t,{roles:r}=ke();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function ds(e){e.directive("permission",ls)}const W=Ht(fn);us(W);os(W);ds(W);W.use(ne).use(k);k.isReady().then(()=>{W.mount("#app")});export{rs as _,ot as a,st as b,rt as c,jr as d,ws as e,ln as f,gs as g,Pe as h,ke as i,Es as r,ys as s,vs as u};