UNPKG

qlfy-unified-login

Version:

实现统一认证登陆功能的逻辑插件,无实际渲染标签,内置统一登陆跳转、统一登录token获取、统一登陆token刷新等功能;

11 lines 69.3 kB
(function(B,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(B=typeof globalThis<"u"?globalThis:B||self,a(B["qlfy-unified-login"]={},B.Vue))})(this,function(B,a){"use strict";function Qe(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rn}=Object.prototype,{getPrototypeOf:Ne}=Object,{iterator:ue,toStringTag:Ye}=Symbol,fe=(e=>t=>{const n=Rn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$=e=>(e=e.toLowerCase(),t=>fe(t)===e),de=e=>t=>typeof t===e,{isArray:G}=Array,te=de("undefined");function Nn(e){return e!==null&&!te(e)&&e.constructor!==null&&!te(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const et=$("ArrayBuffer");function An(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&et(e.buffer),t}const Pn=de("string"),I=de("function"),tt=de("number"),pe=e=>e!==null&&typeof e=="object",In=e=>e===!0||e===!1,me=e=>{if(fe(e)!=="object")return!1;const t=Ne(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ye in e)&&!(ue in e)},kn=$("Date"),Bn=$("File"),Ln=$("Blob"),vn=$("FileList"),$n=e=>pe(e)&&I(e.pipe),Fn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||I(e.append)&&((t=fe(e))==="formdata"||t==="object"&&I(e.toString)&&e.toString()==="[object FormData]"))},jn=$("URLSearchParams"),[Un,Dn,zn,Mn]=["ReadableStream","Request","Response","Headers"].map($),qn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),G(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(r=0;r<s;r++)l=i[r],t.call(null,e[l],l,e)}}function nt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rt=e=>!te(e)&&e!==D;function Ae(){const{caseless:e}=rt(this)&&this||{},t={},n=(r,o)=>{const i=e&&nt(t,o)||o;me(t[i])&&me(r)?t[i]=Ae(t[i],r):me(r)?t[i]=Ae({},r):G(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ne(arguments[r],n);return t}const Vn=(e,t,n,{allOwnKeys:r}={})=>(ne(t,(o,i)=>{n&&I(o)?e[i]=Qe(o,n):e[i]=o},{allOwnKeys:r}),e),Hn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jn=(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)},Kn=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Ne(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wn=(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},Gn=e=>{if(!e)return null;if(G(e))return e;let t=e.length;if(!tt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ne(Uint8Array)),Xn=(e,t)=>{const r=(e&&e[ue]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Qn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yn=$("HTMLFormElement"),er=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ot=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tr=$("RegExp"),st=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ne(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},nr=e=>{st(e,(t,n)=>{if(I(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(I(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+"'")})}})},rr=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return G(e)?r(e):r(String(e).split(t)),n},or=()=>{},sr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ir(e){return!!(e&&I(e.append)&&e[Ye]==="FormData"&&e[ue])}const ar=e=>{const t=new Array(10),n=(r,o)=>{if(pe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=G(r)?[]:{};return ne(r,(s,l)=>{const d=n(s,o+1);!te(d)&&(i[l]=d)}),t[o]=void 0,i}}return r};return n(e,0)},lr=$("AsyncFunction"),cr=e=>e&&(pe(e)||I(e))&&I(e.then)&&I(e.catch),it=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:o,data:i})=>{o===D&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",I(D.postMessage)),ur=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||it,c={isArray:G,isArrayBuffer:et,isBuffer:Nn,isFormData:Fn,isArrayBufferView:An,isString:Pn,isNumber:tt,isBoolean:In,isObject:pe,isPlainObject:me,isReadableStream:Un,isRequest:Dn,isResponse:zn,isHeaders:Mn,isUndefined:te,isDate:kn,isFile:Bn,isBlob:Ln,isRegExp:tr,isFunction:I,isStream:$n,isURLSearchParams:jn,isTypedArray:Zn,isFileList:vn,forEach:ne,merge:Ae,extend:Vn,trim:qn,stripBOM:Hn,inherits:Jn,toFlatObject:Kn,kindOf:fe,kindOfTest:$,endsWith:Wn,toArray:Gn,forEachEntry:Xn,matchAll:Qn,isHTMLForm:Yn,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:st,freezeMethods:nr,toObjectSet:rr,toCamelCase:er,noop:or,toFiniteNumber:sr,findKey:nt,global:D,isContextDefined:rt,isSpecCompliantForm:ir,toJSONObject:ar,isAsyncFn:lr,isThenable:cr,setImmediate:it,asap:ur,isIterable:e=>e!=null&&I(e[ue])};function b(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}c.inherits(b,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.status}}});const at=b.prototype,lt={};["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=>{lt[e]={value:e}}),Object.defineProperties(b,lt),Object.defineProperty(at,"isAxiosError",{value:!0}),b.from=(e,t,n,r,o,i)=>{const s=Object.create(at);return c.toFlatObject(e,s,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),b.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const fr=null;function Pe(e){return c.isPlainObject(e)||c.isArray(e)}function ct(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function ut(e,t,n){return e?e.concat(t).map(function(o,i){return o=ct(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function dr(e){return c.isArray(e)&&!e.some(Pe)}const pr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function he(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(p,m){return!c.isUndefined(m[p])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(o))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(c.isDate(g))return g.toISOString();if(c.isBoolean(g))return g.toString();if(!d&&c.isBlob(g))throw new b("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(g)||c.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,m){let w=g;if(g&&!m&&typeof g=="object"){if(c.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(c.isArray(g)&&dr(g)||(c.isFileList(g)||c.endsWith(p,"[]"))&&(w=c.toArray(g)))return p=ct(p),w.forEach(function(R,_){!(c.isUndefined(R)||R===null)&&t.append(s===!0?ut([p],_,i):s===null?p:p+"[]",f(R))}),!1}return Pe(g)?!0:(t.append(ut(m,p,i),f(g)),!1)}const h=[],y=Object.assign(pr,{defaultVisitor:u,convertValue:f,isVisitable:Pe});function E(g,p){if(!c.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),c.forEach(g,function(w,O){(!(c.isUndefined(w)||w===null)&&o.call(t,w,c.isString(O)?O.trim():O,p,y))===!0&&E(w,p?p.concat(O):[O])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return E(e),t}function ft(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ie(e,t){this._pairs=[],e&&he(e,this,t)}const dt=Ie.prototype;dt.append=function(t,n){this._pairs.push([t,n])},dt.toString=function(t){const n=t?function(r){return t.call(this,r,ft)}:ft;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function mr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pt(e,t,n){if(!t)return e;const r=n&&n.encode||mr;c.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=c.isURLSearchParams(t)?t.toString():new Ie(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mt{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 ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ie,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",Be=typeof navigator=="object"&&navigator||void 0,gr=ke&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),yr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",br=ke&&window.location.href||"http://localhost",A={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:gr,hasStandardBrowserWebWorkerEnv:yr,navigator:Be,origin:br},Symbol.toStringTag,{value:"Module"})),...hr};function wr(e,t){return he(e,new A.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return A.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function _r(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sr(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function gt(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),d=i>=n.length;return s=!s&&c.isArray(o)?o.length:s,d?(c.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!c.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&c.isArray(o[s])&&(o[s]=Sr(o[s])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,o)=>{t(_r(r),o,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:ht,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return o?JSON.stringify(gt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(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(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return he(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Er(t)):t}],transformResponse:[function(t){const n=this.transitional||re.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?b.from(l,b.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:A.classes.FormData,Blob:A.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 Cr=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"]),Or=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Cr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yt=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function ge(e){return e===!1||e==null?e:c.isArray(e)?e.map(ge):String(e)}function Tr(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 xr=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 Rr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Nr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let k=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,d,f){const u=oe(d);if(!u)throw new Error("header name must be a non-empty string");const h=c.findKey(o,u);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||d]=ge(l))}const s=(l,d)=>c.forEach(l,(f,u)=>i(f,u,d));if(c.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(c.isString(t)&&(t=t.trim())&&!xr(t))s(Or(t),n);else if(c.isObject(t)&&c.isIterable(t)){let l={},d,f;for(const u of t){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[f=u[0]]=(d=l[f])?c.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}s(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=oe(t),t){const r=c.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Tr(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=oe(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 i(s){if(s=oe(s),s){const l=c.findKey(r,s);l&&(!n||Le(r,r[l],l,n))&&(delete r[l],o=!0)}}return c.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Le(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return c.forEach(this,(o,i)=>{const s=c.findKey(r,i);if(s){n[s]=ge(o),delete n[i];return}const l=t?Rr(i):String(i).trim();l!==i&&delete n[i],n[l]=ge(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(` `)}getSetCookie(){return this.get("set-cookie")||[]}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[yt]=this[yt]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=oe(s);r[l]||(Nr(o,s),r[l]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};k.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(k.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),c.freezeMethods(k);function ve(e,t){const n=this||re,r=t||n,o=k.from(r.headers);let i=r.data;return c.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function bt(e){return!!(e&&e.__CANCEL__)}function Z(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(Z,b,{__CANCEL__:!0});function wt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ar(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),u=r[i];s||(s=f),n[o]=d,r[o]=f;let h=i,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s<t)return;const E=u&&f-u;return E?Math.round(y*1e3/E):void 0}}function Ir(e,t){let n=0,r=1e3/t,o,i;const s=(f,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),h=u-n;h>=r?s(f,u):(o=f,i||(i=setTimeout(()=>{i=null,s(o)},r-h)))},()=>o&&s(o)]}const ye=(e,t,n=3)=>{let r=0;const o=Pr(50,250);return Ir(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,d=s-r,f=o(d),u=s<=l;r=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:d,rate:f||void 0,estimated:f&&l&&u?(l-s)/f:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},_t=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},St=e=>(...t)=>c.asap(()=>e(...t)),kr=A.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,A.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(A.origin),A.navigator&&/(msie|trident)/i.test(A.navigator.userAgent)):()=>!0,Br=A.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),c.isString(r)&&s.push("path="+r),c.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Lr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t,n){let r=!Lr(t);return e&&(r||n==!1)?vr(e,t):t}const Ct=e=>e instanceof k?{...e}:e;function z(e,t){t=t||{};const n={};function r(f,u,h,y){return c.isPlainObject(f)&&c.isPlainObject(u)?c.merge.call({caseless:y},f,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function o(f,u,h,y){if(c.isUndefined(u)){if(!c.isUndefined(f))return r(void 0,f,h,y)}else return r(f,u,h,y)}function i(f,u){if(!c.isUndefined(u))return r(void 0,u)}function s(f,u){if(c.isUndefined(u)){if(!c.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function l(f,u,h){if(h in t)return r(f,u);if(h in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u,h)=>o(Ct(f),Ct(u),h,!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=d[u]||o,y=h(e[u],t[u],u);c.isUndefined(y)&&h!==l||(n[u]=y)}),n}const Ot=e=>{const t=z({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=k.from(s),t.url=pt(Et(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(c.isFormData(n)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((d=s.getContentType())!==!1){const[f,...u]=d?d.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...u].join("; "))}}if(A.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&kr(t.url))){const f=o&&i&&Br.read(i);f&&s.set(o,f)}return t},$r=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Ot(e);let i=o.data;const s=k.from(o.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:f}=o,u,h,y,E,g;function p(){E&&E(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function w(){if(!m)return;const R=k.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:R,config:e,request:m};wt(function(T){n(T),p()},function(T){r(T),p()},S),m=null}"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(w)},m.onabort=function(){m&&(r(new b("Request aborted",b.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new b("Network Error",b.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||ht;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new b(_,S.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&c.forEach(s.toJSON(),function(_,S){m.setRequestHeader(S,_)}),c.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),f&&([y,g]=ye(f,!0),m.addEventListener("progress",y)),d&&m.upload&&([h,E]=ye(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",E)),(o.cancelToken||o.signal)&&(u=R=>{m&&(r(!R||R.type?new Z(null,e,m):R),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const O=Ar(o.url);if(O&&A.protocols.indexOf(O)===-1){r(new b("Unsupported protocol "+O+":",b.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Fr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,l();const u=f instanceof Error?f:this.reason;r.abort(u instanceof b?u:new Z(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new b(`timeout ${t} of ms exceeded`,b.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>c.asap(l),d}},jr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Ur=async function*(e,t){for await(const n of Dr(e))yield*jr(n,t)},Dr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Tt=(e,t,n,r)=>{const o=Ur(e,t);let i=0,s,l=d=>{s||(s=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:u}=await o.next();if(f){l(),d.close();return}let h=u.byteLength;if(n){let y=i+=h;n(y)}d.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(d){return l(d),o.return()}},{highWaterMark:2})},be=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=be&&typeof ReadableStream=="function",zr=be&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Mr=xt&&Rt(()=>{let e=!1;const t=new Request(A.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Nt=64*1024,$e=xt&&Rt(()=>c.isReadableStream(new Response("").body)),we={stream:$e&&(e=>e.body)};be&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!we[t]&&(we[t]=c.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new b(`Response type '${t}' is not supported`,b.ERR_NOT_SUPPORT,r)})})})(new Response);const qr=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(A.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(c.isArrayBufferView(e)||c.isArrayBuffer(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await zr(e)).byteLength},Vr=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??qr(t)},Fe={http:fr,xhr:$r,fetch:be&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:d,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:y}=Ot(e);f=f?(f+"").toLowerCase():"text";let E=Fr([o,i&&i.toAbortSignal()],s),g;const p=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let m;try{if(d&&Mr&&n!=="get"&&n!=="head"&&(m=await Vr(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(c.isFormData(r)&&(N=S.headers.get("content-type"))&&u.setContentType(N),S.body){const[T,v]=_t(m,ye(St(d)));r=Tt(S.body,Nt,T,v)}}c.isString(h)||(h=h?"include":"omit");const w="credentials"in Request.prototype;g=new Request(t,{...y,signal:E,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?h:void 0});let O=await fetch(g,y);const R=$e&&(f==="stream"||f==="response");if($e&&(l||R&&p)){const S={};["status","statusText","headers"].forEach(C=>{S[C]=O[C]});const N=c.toFiniteNumber(O.headers.get("content-length")),[T,v]=l&&_t(N,ye(St(l),!0))||[];O=new Response(Tt(O.body,Nt,T,()=>{v&&v(),p&&p()}),S)}f=f||"text";let _=await we[c.findKey(we,f)||"text"](O,e);return!R&&p&&p(),await new Promise((S,N)=>{wt(S,N,{data:_,headers:k.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:g})})}catch(w){throw p&&p(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,e,g),{cause:w.cause||w}):b.from(w,w&&w.code,e,g)}})};c.forEach(Fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const At=e=>`- ${e}`,Hr=e=>c.isFunction(e)||e===null||e===!1,Pt={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!Hr(n)&&(r=Fe[(s=String(n)).toLowerCase()],r===void 0))throw new b(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(At).join(` `):" "+At(i[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Fe};function je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Z(null,e)}function It(e){return je(e),e.headers=k.from(e.headers),e.data=ve.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pt.getAdapter(e.adapter||re.adapter)(e).then(function(r){return je(e),r.data=ve.call(e,e.transformResponse,r),r.headers=k.from(r.headers),r},function(r){return bt(r)||(je(e),r&&r.response&&(r.response.data=ve.call(e,e.transformResponse,r.response),r.response.headers=k.from(r.response.headers))),Promise.reject(r)})}const kt="1.10.0",_e={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_e[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bt={};_e.transitional=function(t,n,r){function o(i,s){return"[Axios v"+kt+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new b(o(s," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!Bt[s]&&(Bt[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}},_e.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Jr(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],d=l===void 0||s(l,i,e);if(d!==!0)throw new b("option "+i+" must be "+d,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+i,b.ERR_BAD_OPTION)}}const Se={assertOptions:Jr,validators:_e},U=Se.validators;let M=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mt,response:new mt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=z(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Se.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean)},!1),o!=null&&(c.isFunction(o)?n.paramsSerializer={serialize:o}:Se.assertOptions(o,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Se.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&c.merge(i.common,i[n.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=k.concat(s,i);const l=[];let d=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(d=d&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,h=0,y;if(!d){const g=[It.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,f),y=g.length,u=Promise.resolve(n);h<y;)u=u.then(g[h++],g[h++]);return u}y=l.length;let E=n;for(h=0;h<y;){const g=l[h++],p=l[h++];try{E=g(E)}catch(m){p.call(this,m);break}}try{u=It.call(this,E)}catch(g){return Promise.reject(g)}for(h=0,y=f.length;h<y;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=z(this.defaults,t);const n=Et(t.baseURL,t.url,t.allowAbsoluteUrls);return pt(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){M.prototype[t]=function(n,r){return this.request(z(r||{},{method:t,url:n,data:(r||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,l){return this.request(z(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}M.prototype[t]=n(),M.prototype[t+"Form"]=n(!0)});let Kr=class xn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new Z(i,s,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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new xn(function(o){t=o}),cancel:t}}};function Wr(e){return function(n){return e.apply(null,n)}}function Gr(e){return c.isObject(e)&&e.isAxiosError===!0}const Ue={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(Ue).forEach(([e,t])=>{Ue[t]=e});function Lt(e){const t=new M(e),n=Qe(M.prototype.request,t);return c.extend(n,M.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lt(z(e,o))},n}const x=Lt(re);x.Axios=M,x.CanceledError=Z,x.CancelToken=Kr,x.isCancel=bt,x.VERSION=kt,x.toFormData=he,x.AxiosError=b,x.Cancel=x.CanceledError,x.all=function(t){return Promise.all(t)},x.spread=Wr,x.isAxiosError=Gr,x.mergeConfig=z,x.AxiosHeaders=k,x.formToJSON=e=>gt(c.isHTMLForm(e)?new FormData(e):e),x.getAdapter=Pt.getAdapter,x.HttpStatusCode=Ue,x.default=x;const{Axios:Ki,AxiosError:Wi,CanceledError:Gi,isCancel:Zi,CancelToken:Xi,VERSION:Qi,all:Yi,Cancel:ea,isAxiosError:ta,spread:na,toFormData:ra,AxiosHeaders:oa,HttpStatusCode:sa,formToJSON:ia,getAdapter:aa,mergeConfig:la}=x;class De{set(t,n,r){let o=null;if(typeof r=="number"&&r>0)o=Date.now()+r*1e3;else if(typeof r>"u"){const s=this.getRaw(t);o=s?s.expire:null}const i={value:n,expire:o};localStorage.setItem(t,JSON.stringify(i))}get(t){const n=this.getRaw(t);return n?n.expire&&Date.now()>n.expire?(this.remove(t),null):n.value:null}getRaw(t){try{const n=localStorage.getItem(t);if(!n)return null;const r=JSON.parse(n);return r&&typeof r=="object"&&"value"in r&&"expire"in r?r:{value:n,expire:null}}catch{return{value:localStorage.getItem(t),expire:null}}}remove(t){localStorage.removeItem(t)}clear(){localStorage.clear()}}const Zr=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),q={componentId:""},V=new De;function vt(){const e=V.get("qlUnifiedLoginConfig_"+q.componentId);if(!e||!e.isEnabled)return console.error(new Error("统一登陆未开启,请检查配置")),null;V.remove(e.tokenName),V.remove("loginInfo"),window.open(Qr(e),"_self")}function $t(){const e=V.get("qlUnifiedLoginConfig_"+q.componentId);return!e||!e.isEnabled?null:V.get(e.tokenName)}function se(){const e=V.get("qlUnifiedLoginConfig_"+q.componentId),t=Xr(e);t&&window.open(t,"_self")}function Ft(){return V.get("loginInfo")}function Xr(e){if(!e.clientId||!e.clientSecret)return console.error("未配置应用id或应用密钥"),"";const t=new Date().getTime();let n=e.redirectUrl||encodeURIComponent(window.location.href);return`${e.loginPageBaseAddress}/idp/oauth2/authorize?client_id=${e.entityId}&redirect_uri=${n}&response_type=code&state=${t}`}function Qr(e){const t=e.redirectPath?e.redirectPath:encodeURIComponent(window.location.href);return`${e.loginPageBaseAddress}/idp/profile/OAUTH2/Redirect/GLO? =${t}&redirectToLogin=true&entityId=${e.entityId}`}function Yr(){let e="",t;for(let n=0;n<32;n++)t=Math.random()*16|0,(n===8||n===12||n===16||n===20)&&(e+="-"),e+=(n===12?4:n===16?t&3|8:t).toString(16);return e}const jt=Symbol(),Ee="el",eo="is-",H=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},Ut=Symbol("namespaceContextKey"),to=e=>{const t=e||(a.getCurrentInstance()?a.inject(Ut,a.ref(Ee)):a.ref(Ee));return a.computed(()=>a.unref(t)||Ee)},ze=(e,t)=>{const n=to(t);return{namespace:n,b:(p="")=>H(n.value,e,p,"",""),e:p=>p?H(n.value,e,"",p,""):"",m:p=>p?H(n.value,e,"","",p):"",be:(p,m)=>p&&m?H(n.value,e,p,m,""):"",em:(p,m)=>p&&m?H(n.value,e,"",p,m):"",bm:(p,m)=>p&&m?H(n.value,e,p,"",m):"",bem:(p,m,w)=>p&&m&&w?H(n.value,e,p,m,w):"",is:(p,...m)=>{const w=m.length>=1?m[0]:!0;return p&&w?`${eo}${p}`:""},cssVar:p=>{const m={};for(const w in p)p[w]&&(m[`--${n.value}-${w}`]=p[w]);return m},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const m={};for(const w in p)p[w]&&(m[`--${n.value}-${e}-${w}`]=p[w]);return m},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}};/** * @vue/shared v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const no=Object.prototype.hasOwnProperty,Dt=(e,t)=>no.call(e,t),Ce=e=>typeof e=="function",ie=e=>typeof e=="string",zt=e=>e!==null&&typeof e=="object";var ro=typeof global=="object"&&global&&global.Object===Object&&global,oo=typeof self=="object"&&self&&self.Object===Object&&self,Me=ro||oo||Function("return this")(),X=Me.Symbol,Mt=Object.prototype,so=Mt.hasOwnProperty,io=Mt.toString,ae=X?X.toStringTag:void 0;function ao(e){var t=so.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch{}var o=io.call(e);return r&&(t?e[ae]=n:delete e[ae]),o}var lo=Object.prototype,co=lo.toString;function uo(e){return co.call(e)}var fo="[object Null]",po="[object Undefined]",qt=X?X.toStringTag:void 0;function Vt(e){return e==null?e===void 0?po:fo:qt&&qt in Object(e)?ao(e):uo(e)}function mo(e){return e!=null&&typeof e=="object"}var ho="[object Symbol]";function qe(e){return typeof e=="symbol"||mo(e)&&Vt(e)==ho}function go(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Ve=Array.isArray,Ht=X?X.prototype:void 0,Jt=Ht?Ht.toString:void 0;function Kt(e){if(typeof e=="string")return e;if(Ve(e))return go(e,Kt)+"";if(qe(e))return Jt?Jt.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Wt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yo="[object AsyncFunction]",bo="[object Function]",wo="[object GeneratorFunction]",_o="[object Proxy]";function So(e){if(!Wt(e))return!1;var t=Vt(e);return t==bo||t==wo||t==yo||t==_o}var He=Me["__core-js_shared__"],Gt=function(){var e=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eo(e){return!!Gt&&Gt in e}var Co=Function.prototype,Oo=Co.toString;function To(e){if(e!=null){try{return Oo.call(e)}catch{}try{return e+""}catch{}}return""}var xo=/[\\^$.*+?()[\]{}|]/g,Ro=/^\[object .+?Constructor\]$/,No=Function.prototype,Ao=Object.prototype,Po=No.toString,Io=Ao.hasOwnProperty,ko=RegExp("^"+Po.call(Io).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bo(e){if(!Wt(e)||Eo(e))return!1;var t=So(e)?ko:Ro;return t.test(To(e))}function Lo(e,t){return e==null?void 0:e[t]}function Zt(e,t){var n=Lo(e,t);return Bo(n)?n:void 0}function vo(e,t){return e===t||e!==e&&t!==t}var $o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fo=/^\w*$/;function jo(e,t){if(Ve(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qe(e)?!0:Fo.test(e)||!$o.test(e)||t!=null&&e in Object(t)}var le=Zt(Object,"create");function Uo(){this.__data__=le?le(null):{},this.size=0}function Do(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zo="__lodash_hash_undefined__",Mo=Object.prototype,qo=Mo.hasOwnProperty;function Vo(e){var t=this.__data__;if(le){var n=t[e];return n===zo?void 0:n}return qo.call(t,e)?t[e]:void 0}var Ho=Object.prototype,Jo=Ho.hasOwnProperty;function Ko(e){var t=this.__data__;return le?t[e]!==void 0:Jo.call(t,e)}var Wo="__lodash_hash_undefined__";function Go(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&t===void 0?Wo:t,this}function J(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}J.prototype.clear=Uo,J.prototype.delete=Do,J.prototype.get=Vo,J.prototype.has=Ko,J.prototype.set=Go;function Zo(){this.__data__=[],this.size=0}function Oe(e,t){for(var n=e.length;n--;)if(vo(e[n][0],t))return n;return-1}var Xo=Array.prototype,Qo=Xo.splice;function Yo(e){var t=this.__data__,n=Oe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Qo.call(t,n,1),--this.size,!0}function es(e){var t=this.__data__,n=Oe(t,e);return n<0?void 0:t[n][1]}function ts(e){return Oe(this.__data__,e)>-1}function ns(e,t){var n=this.__data__,r=Oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Q(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Q.prototype.clear=Zo,Q.prototype.delete=Yo,Q.prototype.get=es,Q.prototype.has=ts,Q.prototype.set=ns;var rs=Zt(Me,"Map");function os(){this.size=0,this.__data__={hash:new J,map:new(rs||Q),string:new J}}function ss(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Te(e,t){var n=e.__data__;return ss(t)?n[typeof t=="string"?"string":"hash"]:n.map}function is(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t}function as(e){return Te(this,e).get(e)}function ls(e){return Te(this,e).has(e)}function cs(e,t){var n=Te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function K(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}K.prototype.clear=os,K.prototype.delete=is,K.prototype.get=as,K.prototype.has=ls,K.prototype.set=cs;var us="Expected a function";function Je(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(us);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Je.Cache||K),n}Je.Cache=K;var fs=500;function ds(e){var t=Je(e,function(r){return n.size===fs&&n.clear(),r}),n=t.cache;return t}var ps=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/\\(\\)?/g,hs=ds(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ps,function(n,r,o,i){t.push(o?i.replace(ms,"$1"):r||n)}),t});function gs(e){return e==null?"":Kt(e)}function ys(e,t){return Ve(e)?e:jo(e,t)?[e]:hs(gs(e))}function bs(e){if(typeof e=="string"||qe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ws(e,t){t=ys(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bs(t[n++])];return n&&n==r?e:void 0}function _s(e,t,n){var r=e==null?void 0:ws(e,t);return r===void 0?n:r}function Ss(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}const Es=e=>e===void 0,Ke=e=>typeof e=="boolean",W=e=>typeof e=="number",Cs=e=>typeof Element>"u"?!1:e instanceof Element,Os=e=>ie(e)?!Number.isNaN(Number(e)):!1;var Xt;const Y=typeof window<"u",Ts=e=>typeof e=="string",xs=()=>{};Y&&((Xt=window==null?void 0:window.navigator)!=null&&Xt.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function We(e){return typeof e=="function"?e():a.unref(e)}function Rs(e){return e}function Ge(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Ns(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function As(e,t,n={}){const{immediate:r=!0}=n,o=a.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){o.value=!1,s()}function d(...f){s(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...f)},We(t))}return r&&(o.value=!0,Y&&d()),Ge(l),{isPending:a.readonly(o),start:d,stop:l}}function Qt(e){var t;const n=We(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Yt=Y?window:void 0;function Ps(...e){let t,n,r,o;if(Ts(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Yt):[t,n,r,o]=e,!t)return xs;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,h,y,E)=>(u.addEventListener(h,y,E),()=>u.removeEventListener(h,y,E)),d=a.watch(()=>[Qt(t),We(o)],([u,h])=>{s(),u&&i.push(...n.flatMap(y=>r.map(E=>l(u,y,E,h))))},{immediate:!0,flush:"post"}),f=()=>{d(),s()};return Ge(f),f}function Is(e,t=!1){const n=a.ref(),r=()=>n.value=!!e();return r(),Ns(r,t),n}const en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tn="__vueuse_ssr_handlers__";en[tn]=en[tn]||{};var nn=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,Ls=(e,t)=>{var n={};for(var r in e)ks.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&nn)for(var r of nn(e))t.indexOf(r)<0&&Bs.call(e,r)&&(n[r]=e[r]);return n};function vs(e,t,n={}){const r=n,{window:o=Yt}=r,i=Ls(r,["window"]);let s;const l=Is(()=>o&&"ResizeObserver"in o),d=()=>{s&&(s.disconnect(),s=void 0)},f=a.watch(()=>Qt(e),h=>{d(),l.value&&o&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{d(),f()};return Ge(u),{isSupported:l,stop:u}}var rn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(rn||(rn={}));var $s=Object.defineProperty,on=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable,sn=(e,t,n)=>t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Us=(e,t)=>{for(var n in t||(t={}))Fs.call(t,n)&&sn(e,n,t[n]);if(on)for(var n of on(t))js.call(t,n)&&sn(e,n,t[n]);return e};Us({linear:Rs},{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]});class Ds extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function xe(e,t){if(process.env.NODE_ENV!=="production"){const n=ie(e)?new Ds(`[${e}] ${t}`):e;console.warn(n)}}const an={current:0},ln=a.ref(0),cn=2e3,un=Symbol("elZIndexContextKey"),fn=Symbol("zIndexContextKey"),zs=e=>{const t=a.getCurrentInstance()?a.inject(un,an):an,n=e||(a.getCurrentInstance()?a.inject(fn,void 0):void 0),r=a.computed(()=>{const s=a.unref(n);return W(s)?s:cn}),o=a.computed(()=>r.value+ln.value),i=()=>(t.current++,ln.value=t.current,o.value);return!Y&&!a.inject(un)&&xe("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:o,nextZIndex:i}};var Ms={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noM