@vtj/utils 0.8.64 → 0.8.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -10
- package/dist/index.iife.js +17 -17
- package/dist/index.mjs +316 -326
- package/dist/index.umd.js +28 -28
- package/package.json +1 -1
- package/types/version.d.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@vtj/base");(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),e.call(this,t,n,r)}})();/**!
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/utils
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.65
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
|
-
*/const on="0.8.
|
|
8
|
-
* @vue/shared v3.4.
|
|
7
|
+
*/const on="0.8.65";/**
|
|
8
|
+
* @vue/shared v3.4.31
|
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10
10
|
* @license MIT
|
|
11
|
-
**//*! #__NO_SIDE_EFFECTS__ */function an(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const cn=Object.prototype.hasOwnProperty,oe=(e,t)=>cn.call(e,t),F=Array.isArray,te=e=>ut(e)==="[object Map]",ln=e=>typeof e=="string",W=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",un=Object.prototype.toString,ut=e=>un.call(e),fn=e=>ut(e).slice(8,-1),Fe=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,M=(e,t)=>!Object.is(e,t);let dn;function hn(e,t=dn){t&&t.active&&t.effects.push(e)}let I;class pn{constructor(t,n,r,s){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=5,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,hn(this,s)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,ht();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed){if(n.computed.effect._dirtyLevel===2)return Ee(),!0;if(mn(n.computed),this._dirtyLevel>=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Ee()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=j,n=I;try{return j=!0,I=this,this._runnings++,Je(this),this.fn()}finally{We(this),this._runnings--,I=n,j=t}}stop(){this.active&&(Je(this),We(this),this.onStop&&this.onStop(),this.active=!1)}}function mn(e){return e.value}function Je(e){e._trackId++,e._depsLength=0}function We(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ft(e.deps[t],e);e.deps.length=e._depsLength}}function ft(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let j=!0,_e=0;const dt=[];function ht(){dt.push(j),j=!1}function Ee(){const e=dt.pop();j=e===void 0?!0:e}function Ie(){_e++}function De(){for(_e--;!_e&&Se.length;)Se.shift()()}function pt(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&ft(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Se=[];function mt(e,t,n){Ie();for(const r of e.keys()){let s;if(!e.computed&&r.computed&&r._runnings>0&&(s??(s=e.get(r)===r._trackId))){r._dirtyLevel=2;continue}r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r.computed&&r._dirtyLevel===2&&(r._shouldSchedule=!0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==3&&(r._shouldSchedule=!1,r.scheduler&&Se.push(r.scheduler)))}De()}const gt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Re=new WeakMap,D=Symbol(""),Oe=Symbol("");function x(e,t,n){if(j&&I){let r=Re.get(e);r||Re.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=gt(()=>r.delete(n))),pt(I,s)}}function N(e,t,n,r,s,o){const i=Re.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&F(e)){const f=Number(r);i.forEach((d,u)=>{(u==="length"||!W(u)&&u>=f)&&a.push(d)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":F(e)?Fe(n)&&a.push(i.get("length")):(a.push(i.get(D)),te(e)&&a.push(i.get(Oe)));break;case"delete":F(e)||(a.push(i.get(D)),te(e)&&a.push(i.get(Oe)));break;case"set":te(e)&&a.push(i.get(D));break}Ie();for(const f of a)f&&mt(f,5);De()}const gn=an("__proto__,__v_isRef,__isVue"),yt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(W)),Ke=yn();function yn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=y(this);for(let o=0,i=this.length;o<i;o++)x(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(y)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ht(),Ie();const r=y(this)[t].apply(this,n);return De(),Ee(),r}}),e}function wn(e){W(e)||(e=String(e));const t=y(this);return x(t,"has",e),t.hasOwnProperty(e)}class wt{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?vn:Et:o?Pn:_t).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=F(t);if(!s){if(i&&oe(Ke,n))return Reflect.get(Ke,n,r);if(n==="hasOwnProperty")return wn}const a=Reflect.get(t,n,r);return(W(n)?yt.has(n):gn(n))||(s||x(t,"get",n),o)?a:ae(a)?i&&Fe(n)?a:a.value:ce(a)?s?Rt(a):St(a):a}}class bn extends wt{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const f=ie(o);if(!Tt(r)&&!ie(r)&&(o=y(o),r=y(r)),!F(t)&&ae(o)&&!ae(r))return f?!1:(o.value=r,!0)}const i=F(t)&&Fe(n)?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,r,s);return t===y(s)&&(i?M(r,o)&&N(t,"set",n,r):N(t,"add",n,r)),a}deleteProperty(t,n){const r=oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&N(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!W(n)||!yt.has(n))&&x(t,"has",n),r}ownKeys(t){return x(t,"iterate",F(t)?"length":D),Reflect.ownKeys(t)}}class _n extends wt{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const En=new bn,Sn=new _n,Ue=e=>e,le=e=>Reflect.getPrototypeOf(e);function G(e,t,n=!1,r=!1){e=e.__v_raw;const s=y(e),o=y(t);n||(M(t,o)&&x(s,"get",t),x(s,"get",o));const{has:i}=le(s),a=r?Ue:n?Be:z;if(i.call(s,t))return a(e.get(t));if(i.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function X(e,t=!1){const n=this.__v_raw,r=y(n),s=y(e);return t||(M(e,s)&&x(r,"has",e),x(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Q(e,t=!1){return e=e.__v_raw,!t&&x(y(e),"iterate",D),Reflect.get(e,"size",e)}function $e(e){e=y(e);const t=y(this);return le(t).has.call(t,e)||(t.add(e),N(t,"add",e,e)),this}function Ve(e,t){t=y(t);const n=y(this),{has:r,get:s}=le(n);let o=r.call(n,e);o||(e=y(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?M(t,i)&&N(n,"set",e,t):N(n,"add",e,t),this}function Ge(e){const t=y(this),{has:n,get:r}=le(t);let s=n.call(t,e);s||(e=y(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&N(t,"delete",e,void 0),o}function Xe(){const e=y(this),t=e.size!==0,n=e.clear();return t&&N(e,"clear",void 0,void 0),n}function Y(e,t){return function(r,s){const o=this,i=o.__v_raw,a=y(i),f=t?Ue:e?Be:z;return!e&&x(a,"iterate",D),i.forEach((d,u)=>r.call(s,f(d),f(u),o))}}function Z(e,t,n){return function(...r){const s=this.__v_raw,o=y(s),i=te(o),a=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,d=s[e](...r),u=n?Ue:t?Be:z;return!t&&x(o,"iterate",f?Oe:D),{next(){const{value:l,done:g}=d.next();return g?{value:l,done:g}:{value:a?[u(l[0]),u(l[1])]:u(l),done:g}},[Symbol.iterator](){return this}}}}function P(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Rn(){const e={get(o){return G(this,o)},get size(){return Q(this)},has:X,add:$e,set:Ve,delete:Ge,clear:Xe,forEach:Y(!1,!1)},t={get(o){return G(this,o,!1,!0)},get size(){return Q(this)},has:X,add:$e,set:Ve,delete:Ge,clear:Xe,forEach:Y(!1,!0)},n={get(o){return G(this,o,!0)},get size(){return Q(this,!0)},has(o){return X.call(this,o,!0)},add:P("add"),set:P("set"),delete:P("delete"),clear:P("clear"),forEach:Y(!0,!1)},r={get(o){return G(this,o,!0,!0)},get size(){return Q(this,!0)},has(o){return X.call(this,o,!0)},add:P("add"),set:P("set"),delete:P("delete"),clear:P("clear"),forEach:Y(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Z(o,!1,!1),n[o]=Z(o,!0,!1),t[o]=Z(o,!1,!0),r[o]=Z(o,!0,!0)}),[e,n,t,r]}const[On,Tn,An,xn]=Rn();function bt(e,t){const n=t?e?xn:An:e?Tn:On;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,o)}const Ln={get:bt(!1,!1)},Cn={get:bt(!0,!1)},_t=new WeakMap,Pn=new WeakMap,Et=new WeakMap,vn=new WeakMap;function jn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nn(e){return e.__v_skip||!Object.isExtensible(e)?0:jn(fn(e))}function St(e){return ie(e)?e:Ot(e,!1,En,Ln,_t)}function Rt(e){return Ot(e,!0,Sn,Cn,Et)}function Ot(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Nn(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function ie(e){return!!(e&&e.__v_isReadonly)}function Tt(e){return!!(e&&e.__v_isShallow)}function y(e){const t=e&&e.__v_raw;return t?y(t):e}const z=e=>ce(e)?St(e):e,Be=e=>ce(e)?Rt(e):e;class Fn{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new pn(()=>t(this._value),()=>ne(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=y(this),n=t.effect._dirtyLevel;return(!t._cacheable||t.effect.dirty)&&M(t._value,t._value=t.effect.run())&&n!==3&&ne(t,5),At(t),t.effect._dirtyLevel>=2&&ne(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function At(e){var t;j&&I&&(e=y(e),pt(I,(t=e.dep)!=null?t:e.dep=gt(()=>e.dep=void 0,e instanceof Fn?e:void 0)))}function ne(e,t=5,n,r){e=y(e);const s=e.dep;s&&mt(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function me(e){return In(e,!1)}function In(e,t){return ae(e)?e:new Dn(e,t)}class Dn{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:y(t),this._value=n?t:z(t)}get value(){return At(this),this._value}set value(t){const n=this.__v_isShallow||Tt(t)||ie(t);t=n?t:y(t),M(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:z(t),ne(this,5))}}function xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:ke}=Object,ue=(e=>t=>{const n=Un.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>ue(t)===e),fe=e=>t=>typeof t===e,{isArray:H}=Array,J=fe("undefined");function Bn(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lt=C("ArrayBuffer");function kn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lt(e.buffer),t}const Mn=fe("string"),T=fe("function"),Ct=fe("number"),de=e=>e!==null&&typeof e=="object",Hn=e=>e===!0||e===!1,re=e=>{if(ue(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qn=C("Date"),zn=C("File"),Jn=C("Blob"),Wn=C("FileList"),Kn=e=>de(e)&&T(e.pipe),$n=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=ue(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},Vn=C("URLSearchParams"),Gn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(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;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Pt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jt=e=>!J(e)&&e!==vt;function Te(){const{caseless:e}=jt(this)&&this||{},t={},n=(r,s)=>{const o=e&&Pt(t,s)||s;re(t[o])&&re(r)?t[o]=Te(t[o],r):re(r)?t[o]=Te({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&K(arguments[r],n);return t}const Xn=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,o)=>{n&&T(s)?e[o]=xt(s,n):e[o]=s},{allOwnKeys:r}),e),Qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yn=(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)},Zn=(e,t,n,r)=>{let s,o,i;const a={};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))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&ke(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},er=(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},tr=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},nr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),rr=(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])}},sr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},or=C("HTMLFormElement"),ir=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Qe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ar=C("RegExp"),Nt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},cr=e=>{Nt(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(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+"'")})}})},lr=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},ur=()=>{},fr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ge="abcdefghijklmnopqrstuvwxyz",Ye="0123456789",Ft={DIGIT:Ye,ALPHA:ge,ALPHA_DIGIT:ge+ge.toUpperCase()+Ye},dr=(e=16,t=Ft.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function hr(e){return!!(e&&T(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pr=e=>{const t=new Array(10),n=(r,s)=>{if(de(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return K(r,(i,a)=>{const f=n(i,s+1);!J(f)&&(o[a]=f)}),t[s]=void 0,o}}return r};return n(e,0)},mr=C("AsyncFunction"),gr=e=>e&&(de(e)||T(e))&&T(e.then)&&T(e.catch),c={isArray:H,isArrayBuffer:Lt,isBuffer:Bn,isFormData:$n,isArrayBufferView:kn,isString:Mn,isNumber:Ct,isBoolean:Hn,isObject:de,isPlainObject:re,isUndefined:J,isDate:qn,isFile:zn,isBlob:Jn,isRegExp:ar,isFunction:T,isStream:Kn,isURLSearchParams:Vn,isTypedArray:nr,isFileList:Wn,forEach:K,merge:Te,extend:Xn,trim:Gn,stripBOM:Qn,inherits:Yn,toFlatObject:Zn,kindOf:ue,kindOfTest:C,endsWith:er,toArray:tr,forEachEntry:rr,matchAll:sr,isHTMLForm:or,hasOwnProperty:Qe,hasOwnProp:Qe,reduceDescriptors:Nt,freezeMethods:cr,toObjectSet:lr,toCamelCase:ir,noop:ur,toFiniteNumber:fr,findKey:Pt,global:vt,isContextDefined:jt,ALPHABET:Ft,generateString:dr,isSpecCompliantForm:hr,toJSONObject:pr,isAsyncFn:mr,isThenable:gr};function m(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(m,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 It=m.prototype,Dt={};["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=>{Dt[e]={value:e}});Object.defineProperties(m,Dt);Object.defineProperty(It,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(It);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},a=>a!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const yr=null;function Ae(e){return c.isPlainObject(e)||c.isArray(e)}function Ut(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ze(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ut(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function wr(e){return c.isArray(e)&&!e.some(Ae)}const br=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,E){return!c.isUndefined(E[p])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!f&&c.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,p,E){let b=h;if(h&&!E&&typeof h=="object"){if(c.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&wr(h)||(c.isFileList(h)||c.endsWith(p,"[]"))&&(b=c.toArray(h)))return p=Ut(p),b.forEach(function(S,pe){!(c.isUndefined(S)||S===null)&&t.append(i===!0?Ze([p],pe,o):i===null?p:p+"[]",d(S))}),!1}return Ae(h)?!0:(t.append(Ze(E,p,o),d(h)),!1)}const l=[],g=Object.assign(br,{defaultVisitor:u,convertValue:d,isVisitable:Ae});function w(h,p){if(!c.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(h),c.forEach(h,function(b,O){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(O)?O.trim():O,p,g))===!0&&w(b,p?p.concat(O):[O])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return w(e),t}function et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Me(e,t){this._pairs=[],e&&he(e,this,t)}const Bt=Me.prototype;Bt.append=function(t,n){this._pairs.push([t,n])};Bt.toString=function(t){const n=t?function(r){return t.call(this,r,et)}:et;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kt(e,t,n){if(!t)return e;const r=n&&n.encode||_r,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Me(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tt{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 Mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Me,Sr=typeof FormData<"u"?FormData:null,Rr=typeof Blob<"u"?Blob:null,Or={isBrowser:!0,classes:{URLSearchParams:Er,FormData:Sr,Blob:Rr},protocols:["http","https","file","blob","url","data"]},Ht=typeof window<"u"&&typeof document<"u",Tr=(e=>Ht&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ar=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ht,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Ar},Symbol.toStringTag,{value:"Module"})),L={...xr,...Or};function Lr(e,t){return he(e,new L.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return L.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Cr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function qt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Pr(s[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Cr(r),s,n,0)}),n}return null}function vr(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 $={transitional:Mt,adapter:["xhr","http"],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?JSON.stringify(qt(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 a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lr(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return he(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),vr(t)):t}],transformResponse:[function(t){const n=this.transitional||$.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(a){if(i)throw a.name==="SyntaxError"?m.from(a,m.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.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=>{$.headers[e]={}});const jr=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"]),Nr=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
12
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&
|
|
13
|
-
`)}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[
|
|
14
|
-
`+o.map(
|
|
15
|
-
`):" "+
|
|
16
|
-
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Le.assertOptions(r,{silentJSONParsing:v.transitional(v.boolean),forcedJSONParsing:v.transitional(v.boolean),clarifyTimeoutError:v.transitional(v.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Le.assertOptions(s,{encode:v.function,serialize:v.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"],h=>{delete o[h]}),n.headers=A.concat(i,o);const a=[];let f=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(f=f&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,l=0,g;if(!f){const h=[ot.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,d),g=h.length,u=Promise.resolve(n);l<g;)u=u.then(h[l++],h[l++]);return u}g=a.length;let w=n;for(l=0;l<g;){const h=a[l++],p=a[l++];try{w=h(w)}catch(E){p.call(this,E);break}}try{u=ot.call(this,w)}catch(h){return Promise.reject(h)}for(l=0,g=d.length;l<g;)u=u.then(d[l++],d[l++]);return u}getUri(t){t=B(this.defaults,t);const n=Jt(t.baseURL,t.url);return kt(n,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){U.prototype[t]=function(n,r){return this.request(B(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(B(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}U.prototype[t]=n(),U.prototype[t+"Form"]=n(!0)});class qe{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{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(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new V(o,i,a),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 qe(function(s){t=s}),cancel:t}}}function Gr(e){return function(n){return e.apply(null,n)}}function Xr(e){return c.isObject(e)&&e.isAxiosError===!0}const Ce={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(Ce).forEach(([e,t])=>{Ce[t]=e});function $t(e){const t=new U(e),n=xt(U.prototype.request,t);return c.extend(n,U.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return $t(B(e,s))},n}const _=$t($);_.Axios=U;_.CanceledError=V;_.CancelToken=qe;_.isCancel=zt;_.VERSION=Kt;_.toFormData=he;_.AxiosError=m;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=Gr;_.isAxiosError=Xr;_.mergeConfig=B;_.AxiosHeaders=A;_.formToJSON=e=>qt(c.isHTMLForm(e)?new FormData(e):e);_.getAdapter=Wt.getAdapter;_.HttpStatusCode=Ce;_.default=_;const Qr={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Yr=["put","post","patch"],Pe="Local-Request-Id",Zr=100,es=300;class Vt{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(t={}){this.settings=t.settings||{};const n=R.omit(t,["settings"]);this.axios=_.create(R.merge({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},n)),this.setupSkipWarn(this.settings),this.showLoading=R.debounce(this.openLoading.bind(this),Zr),this.showError=R.throttle(this._showError.bind(this),es,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=R.merge(this.settings,t.settings||{});const n=R.omit(t,["settings"]);this.axios.defaults=R.merge(this.axios.defaults,n),this.setupSkipWarn(this.settings)}cancel(t,n="请求已取消"){if(t){const r=this.records[t];if(!r)return;r.source.cancel(n)}else for(const r of Object.values(this.records))r.source.cancel(n)}createHeaders(t,n,r){const s=n.injectHeaders?typeof n.headers=="function"?n.headers(t,r,n):n.headers||{}:{},o={"Content-Type":Qr[n.type||"form"],...r.headers,...s};return n.skipWarn&&(o[Pe]=t),o}isJsonType(t){return Object.entries(t).some(([n,r])=>n.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(t,n="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const r=n==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([s,o])=>{r.append(s,o)}),r}createSendData(t,n,r,s){const{type:o,skipWarn:i}=t,{name:a="skipWarn"}=i||{};let{data:f,params:d,method:u="get"}=n;const l=s?{[a]:!0}:{};return Yr.includes(u.toLowerCase())?(f=Object.assign(f||{},l),f=o!=="json"||!this.isJsonType(r)?this.toFormData(f,o):f):d={...f,...d,...l},{data:f,params:d}}createUrl(t){let{url:n,query:r}=t;if(n){r&&(n=R.template(n)(r));try{return R.pathToRegexpCompile(n,{encode:encodeURIComponent})(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",n)}}return n}openLoading(t){const{loading:n,showLoading:r}=t;n&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(t){const{loading:n,hideLoading:r}=t;if(!n)return;this.isLoading=!1;const s=Object.keys(this.records);r&&s.length===0&&(this.isLoading=!1,r())}_showError(t,n){const{failMessage:r,showError:s}=t;if(r&&s){const o=n?.message||n?.msg||"未知错误";s(o,n)}}validResponse(t,n){const{validSuccess:r,validate:s}=t;return r&&s?!!s(n):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},n=!1){const r=R.merge({},this.settings,t.settings||{}),s=R.omit(t,["settings"]),o=R.uuid(!1),i=_.CancelToken.source();this.records[o]={settings:r,config:s,source:i};const a=this.createUrl(s),f=this.createHeaders(o,r,s),{data:d,params:u}=this.createSendData(r,s,f,n);return this.showLoading(r),new Promise((l,g)=>{this.axios({cancelToken:i.token,...s,url:a,headers:f,data:d,params:u}).then(w=>this.isSkipWarnResponse(w)?l(w.promise):this.validResponse(r,w)?l(r.originResponse?w:w.data?.data):(this.showError(r,w.data),g(w.data))).catch(w=>(this.showError(r,w),g(w))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(t,n){const{response:r}=this.axios.interceptors,s=r.use(t,n);return()=>r.eject(s)}useRequest(t,n){const{request:r}=this.axios.interceptors,s=r.use(t,n);return()=>r.eject(s)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:n,executor:r,callback:s,complete:o}=t.skipWarn;this.stopSkipWarn=this.useResponse(i=>{const f=(i.config.headers||{})[Pe],d=this.records[f];if(!d)return i;const{data:u}=i;if(!u||typeof u!="object")return i;if(u?.code===n){s&&s(i);const l=new Promise(r).then(()=>this.send({...d.config,settings:d.settings},!0));l.catch(g=>g).finally(()=>{o&&o()}),i.promise=l}return i})}}function Gt(e={}){const t=new Vt(e),n=t.send.bind(t),r=t.cancel.bind(t),s=t.setConfig.bind(t),o=t.useRequest.bind(t),i=t.useResponse.bind(t);return Object.assign(n,{...t,instance:t,send:n,cancel:r,setConfig:s,useRequest:o,useResponse:i})}const Xt=Gt({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Qt(e){const t=typeof e=="string"?{url:e}:e;return(n,r)=>Xt.send(R.merge(t,r||{},{data:n}))}function ts(e){const t={};for(const[n,r]of Object.entries(e))t[n]=Qt(r);return t}function ns(e,t){const n=me(null),r=me(),s=me(!0);return e.then(o=>{n.value=t?t(o):o}).catch(o=>{r.value=o}).finally(()=>{s.value=!1}),{data:n,error:r,loading:s}}const k=typeof window<"u",rs=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=s=>{n(s)}});function ss(e){const t={};return e?(e.forEach((n,r)=>{t[r]=typeof n=="string"?decodeURIComponent(n):n}),t):{}}const os=e=>k?window.requestAnimationFrame(e):setTimeout(e,16),is=e=>k?window.cancelAnimationFrame(e):clearTimeout(e);class Yt{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(t={}){this.types={local:k?window.localStorage:this.caches,session:k?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,n,r={}){const{type:s,expired:o,prefix:i}={...this.options,...r},a=Date.now(),f=i+t,d=this.types[s]||this.caches,u={value:n,timestamp:a,expired:o};d===this.caches?d[f]=u:d.setItem(f,JSON.stringify(u))}get(t,n={}){const{type:r,prefix:s}={...this.options,...n},o=s+t,i=this.types[r]||this.caches;let a;if(i===this.caches)a=i[o];else{const g=i.getItem(o);g&&(a=JSON.parse(g))}if(!a)return null;const{value:f,timestamp:d,expired:u}=a;return u>0&&d+u<Date.now()?(this.remove(t,n),null):f}remove(t,n={}){const{type:r,prefix:s}={...this.options,...n},o=this.types[r]||this.caches,i=s+t;o===this.caches?delete o[i]:o.removeItem(i)}clear(t={}){const{type:n}={...this.options,...t},r=this.types[n]||this.caches;r===this.caches?this.caches={}:r.clear()}}const as=new Yt;var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve={exports:{}};(function(e,t){(function(n,r){r(t,e)})(cs,function(n,r){var s={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function i(d){try{delete window[d]}catch{window[d]=void 0}}function a(d){var u=document.getElementById(d);u&&document.getElementsByTagName("head")[0].removeChild(u)}function f(d){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=d,g=u.timeout||s.timeout,w=u.jsonpCallback||s.jsonpCallback,h=void 0;return new Promise(function(p,E){var b=u.jsonpCallbackFunction||o(),O=w+"_"+b;window[b]=function(pe){p({ok:!0,json:function(){return Promise.resolve(pe)}}),h&&clearTimeout(h),a(O),i(b)},l+=l.indexOf("?")===-1?"?":"&";var S=document.createElement("script");S.setAttribute("src",""+l+w+"="+b),u.charset&&S.setAttribute("charset",u.charset),u.nonce&&S.setAttribute("nonce",u.nonce),u.referrerPolicy&&S.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&S.setAttribute("crossorigin","true"),S.id=O,document.getElementsByTagName("head")[0].appendChild(S),h=setTimeout(function(){E(new Error("JSONP request to "+d+" timed out")),i(b),a(O),window[b]=function(){i(b)}},g),S.onerror=function(){E(new Error("JSONP request to "+d+" failed")),i(b),a(O),h&&clearTimeout(h)}})}r.exports=f})})(ve,ve.exports);var ls=ve.exports;const us=Zt(ls);function fs(e){if(k){const{protocol:t,host:n,pathname:r}=location;return`${t}//${n}${e?r:""}`}else return null}function ds(e=""){const t=e.match(R.rURL);return t?t[0]:""}function en(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,encodeURIComponent(e[n])].join("="));return t.join("&")}function je(e,t,n){const r={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",n=n||"=";let s;const o=new RegExp("(?:^|\\"+t+")([^\\"+n+"\\"+t+"]+)(?:\\"+n+"([^\\"+t+"]*))?","g");for(;(s=o.exec(e))!==null;)s[1]!==e&&(r[decodeURIComponent(s[1])]=decodeURIComponent(s[2]||""));return r}function tn(e,t){t=typeof t=="string"?je(t):t;const n=e.split("?")[0],r=je(e),s=Object.assign({},r,t),o=en(s);return o?[n,o].join("?"):e}const hs=Object.freeze(Object.defineProperty({__proto__:null,append:tn,getCurrentHost:fs,getHost:ds,parse:je,stringify:en},Symbol.toStringTag,{value:"Module"}));async function ps(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=R.template(e)(n||{}));const r=tn(e,n);return await(await us(r,t)).json()}var ms=function(t,n,r){var s=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async="async"in n?!!n.async:!0,o.src=t,n.attrs&&gs(o,n.attrs),n.text&&(o.text=""+n.text);var i="onload"in o?ct:ys;i(o,r),o.onload||ct(o,r),s.appendChild(o)};function gs(e,t){for(var n in t)e.setAttribute(n,t[n])}function ct(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function ys(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const ws=Zt(ms);function bs(e,t={}){return new Promise((n,r)=>{const{library:s}=t;ws(e,t,(o,i)=>{o?r(o):n(s?window[s]:void 0)})})}const lt={debug:-1,log:0,info:0,warn:1,error:2},_s=function(e,t,n,r){return function(...s){if(t&<[t]<=lt[e]&&console[e].apply&&(r==="*"||n.startsWith(r)))return console[e].apply(console,Es(s,n))}};function Es(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Ss(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const n=e.split(":");return{targetLevel:n[0],targetBizName:n[1]}}return{targetLevel:e,targetBizName:"*"}}const Rs={level:"warn",bizName:"*"};class nn{config;options;constructor(t){this.options={...Rs,...t};const n=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href)||[])[1];this.config=Ss(r,t)}_log(t){const{targetLevel:n,targetBizName:r}=this.config,{bizName:s}=this.options;return _s(t,n,s,r)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function rn(e){return new nn(e)}const Os=rn({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Ts={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ne(e,t){function n(s,o,i){if(!(typeof document>"u")){i=ee({},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 a="";for(var f in i)i[f]&&(a+="; "+f,i[f]!==!0&&(a+="="+i[f].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var f=o[a].split("="),d=f.slice(1).join("=");try{var u=decodeURIComponent(f[0]);if(i[u]=e.read(d,u),s===u)break}catch{}}return s?i[s]:i}}return Object.create({set:n,get:r,remove:function(s,o){n(s,"",ee({},o,{expires:-1}))},withAttributes:function(s){return Ne(this.converter,ee({},this.attributes,s))},withConverter:function(s){return Ne(ee({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ze=Ne(Ts,{path:"/"});function As(e,t,n){ze.set(e,t,n)}function xs(e){return ze.get(e)}function Ls(e,t){ze.remove(e,t)}const Cs=Object.freeze(Object.defineProperty({__proto__:null,get:xs,remove:Ls,set:As},Symbol.toStringTag,{value:"Module"}));function Ps(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.target="_blank",n.click()}function sn(e,t=""){const n=new Blob([e]),r=document.createElement("a");r.download=t,r.style.display="none",r.href=URL.createObjectURL(n),r.click(),URL.revokeObjectURL(r.href)}async function vs(e,t=""){return fetch(e).then(async n=>{const r=await n.blob();return sn(r,t),r})}exports.LOCAL_REQUEST_ID=Pe;exports.Logger=nn;exports.Request=Vt;exports.Storage=Yt;exports.VTJ_UTILS_VERSION=on;exports.axios=_;exports.cAF=is;exports.cookie=Cs;exports.createApi=Qt;exports.createApis=ts;exports.createRequest=Gt;exports.downloadBlob=sn;exports.downloadRemoteFile=vs;exports.downloadUrl=Ps;exports.fileToBase64=rs;exports.formDataToJson=ss;exports.getLogger=rn;exports.isClient=k;exports.jsonp=ps;exports.loadScript=bs;exports.logger=Os;exports.rAF=os;exports.request=Xt;exports.storage=as;exports.url=hs;exports.useApi=ns;Object.keys(R).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>R[e]})});
|
|
11
|
+
**//*! #__NO_SIDE_EFFECTS__ */function an(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const cn=Object.prototype.hasOwnProperty,oe=(e,t)=>cn.call(e,t),F=Array.isArray,te=e=>lt(e)==="[object Map]",ln=e=>typeof e=="string",W=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",un=Object.prototype.toString,lt=e=>un.call(e),fn=e=>lt(e).slice(8,-1),Ne=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,M=(e,t)=>!Object.is(e,t);let dn;function hn(e,t=dn){t&&t.active&&t.effects.push(e)}let I;class pn{constructor(t,n,r,s){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,hn(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,dt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(mn(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ht()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=v,n=I;try{return v=!0,I=this,this._runnings++,ze(this),this.fn()}finally{Je(this),this._runnings--,I=n,v=t}}stop(){this.active&&(ze(this),Je(this),this.onStop&&this.onStop(),this.active=!1)}}function mn(e){return e.value}function ze(e){e._trackId++,e._depsLength=0}function Je(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ut(e.deps[t],e);e.deps.length=e._depsLength}}function ut(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let v=!0,_e=0;const ft=[];function dt(){ft.push(v),v=!1}function ht(){const e=ft.pop();v=e===void 0?!0:e}function Fe(){_e++}function Ie(){for(_e--;!_e&&Ee.length;)Ee.shift()()}function pt(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&ut(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ee=[];function mt(e,t,n){Fe();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Ee.push(r.scheduler)))}Ie()}const gt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Re=new WeakMap,D=Symbol(""),Se=Symbol("");function x(e,t,n){if(v&&I){let r=Re.get(e);r||Re.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=gt(()=>r.delete(n))),pt(I,s)}}function N(e,t,n,r,s,o){const i=Re.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&F(e)){const f=Number(r);i.forEach((d,u)=>{(u==="length"||!W(u)&&u>=f)&&a.push(d)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":F(e)?Ne(n)&&a.push(i.get("length")):(a.push(i.get(D)),te(e)&&a.push(i.get(Se)));break;case"delete":F(e)||(a.push(i.get(D)),te(e)&&a.push(i.get(Se)));break;case"set":te(e)&&a.push(i.get(D));break}Fe();for(const f of a)f&&mt(f,4);Ie()}const gn=an("__proto__,__v_isRef,__isVue"),wt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(W)),We=wn();function wn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=w(this);for(let o=0,i=this.length;o<i;o++)x(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(w)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){dt(),Fe();const r=w(this)[t].apply(this,n);return Ie(),ht(),r}}),e}function yn(e){W(e)||(e=String(e));const t=w(this);return x(t,"has",e),t.hasOwnProperty(e)}class yt{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?jn:Et:o?Pn:_t).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=F(t);if(!s){if(i&&oe(We,n))return Reflect.get(We,n,r);if(n==="hasOwnProperty")return yn}const a=Reflect.get(t,n,r);return(W(n)?wt.has(n):gn(n))||(s||x(t,"get",n),o)?a:ae(a)?i&&Ne(n)?a:a.value:ce(a)?s?St(a):Rt(a):a}}class bn extends yt{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const f=ie(o);if(!Tt(r)&&!ie(r)&&(o=w(o),r=w(r)),!F(t)&&ae(o)&&!ae(r))return f?!1:(o.value=r,!0)}const i=F(t)&&Ne(n)?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,r,s);return t===w(s)&&(i?M(r,o)&&N(t,"set",n,r):N(t,"add",n,r)),a}deleteProperty(t,n){const r=oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&N(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!W(n)||!wt.has(n))&&x(t,"has",n),r}ownKeys(t){return x(t,"iterate",F(t)?"length":D),Reflect.ownKeys(t)}}class _n extends yt{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const En=new bn,Rn=new _n,De=e=>e,le=e=>Reflect.getPrototypeOf(e);function G(e,t,n=!1,r=!1){e=e.__v_raw;const s=w(e),o=w(t);n||(M(t,o)&&x(s,"get",t),x(s,"get",o));const{has:i}=le(s),a=r?De:n?Ue:z;if(i.call(s,t))return a(e.get(t));if(i.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function X(e,t=!1){const n=this.__v_raw,r=w(n),s=w(e);return t||(M(e,s)&&x(r,"has",e),x(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Q(e,t=!1){return e=e.__v_raw,!t&&x(w(e),"iterate",D),Reflect.get(e,"size",e)}function Ke(e){e=w(e);const t=w(this);return le(t).has.call(t,e)||(t.add(e),N(t,"add",e,e)),this}function $e(e,t){t=w(t);const n=w(this),{has:r,get:s}=le(n);let o=r.call(n,e);o||(e=w(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?M(t,i)&&N(n,"set",e,t):N(n,"add",e,t),this}function Ve(e){const t=w(this),{has:n,get:r}=le(t);let s=n.call(t,e);s||(e=w(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&N(t,"delete",e,void 0),o}function Ge(){const e=w(this),t=e.size!==0,n=e.clear();return t&&N(e,"clear",void 0,void 0),n}function Y(e,t){return function(r,s){const o=this,i=o.__v_raw,a=w(i),f=t?De:e?Ue:z;return!e&&x(a,"iterate",D),i.forEach((d,u)=>r.call(s,f(d),f(u),o))}}function Z(e,t,n){return function(...r){const s=this.__v_raw,o=w(s),i=te(o),a=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,d=s[e](...r),u=n?De:t?Ue:z;return!t&&x(o,"iterate",f?Se:D),{next(){const{value:l,done:g}=d.next();return g?{value:l,done:g}:{value:a?[u(l[0]),u(l[1])]:u(l),done:g}},[Symbol.iterator](){return this}}}}function P(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sn(){const e={get(o){return G(this,o)},get size(){return Q(this)},has:X,add:Ke,set:$e,delete:Ve,clear:Ge,forEach:Y(!1,!1)},t={get(o){return G(this,o,!1,!0)},get size(){return Q(this)},has:X,add:Ke,set:$e,delete:Ve,clear:Ge,forEach:Y(!1,!0)},n={get(o){return G(this,o,!0)},get size(){return Q(this,!0)},has(o){return X.call(this,o,!0)},add:P("add"),set:P("set"),delete:P("delete"),clear:P("clear"),forEach:Y(!0,!1)},r={get(o){return G(this,o,!0,!0)},get size(){return Q(this,!0)},has(o){return X.call(this,o,!0)},add:P("add"),set:P("set"),delete:P("delete"),clear:P("clear"),forEach:Y(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Z(o,!1,!1),n[o]=Z(o,!0,!1),t[o]=Z(o,!1,!0),r[o]=Z(o,!0,!0)}),[e,n,t,r]}const[On,Tn,An,xn]=Sn();function bt(e,t){const n=t?e?xn:An:e?Tn:On;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,o)}const Cn={get:bt(!1,!1)},Ln={get:bt(!0,!1)},_t=new WeakMap,Pn=new WeakMap,Et=new WeakMap,jn=new WeakMap;function vn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nn(e){return e.__v_skip||!Object.isExtensible(e)?0:vn(fn(e))}function Rt(e){return ie(e)?e:Ot(e,!1,En,Cn,_t)}function St(e){return Ot(e,!0,Rn,Ln,Et)}function Ot(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Nn(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function ie(e){return!!(e&&e.__v_isReadonly)}function Tt(e){return!!(e&&e.__v_isShallow)}function w(e){const t=e&&e.__v_raw;return t?w(t):e}const z=e=>ce(e)?Rt(e):e,Ue=e=>ce(e)?St(e):e;class Fn{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new pn(()=>t(this._value),()=>ne(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=w(this);return(!t._cacheable||t.effect.dirty)&&M(t._value,t._value=t.effect.run())&&ne(t,4),At(t),t.effect._dirtyLevel>=2&&ne(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function At(e){var t;v&&I&&(e=w(e),pt(I,(t=e.dep)!=null?t:e.dep=gt(()=>e.dep=void 0,e instanceof Fn?e:void 0)))}function ne(e,t=4,n,r){e=w(e);const s=e.dep;s&&mt(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function me(e){return In(e,!1)}function In(e,t){return ae(e)?e:new Dn(e,t)}class Dn{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:w(t),this._value=n?t:z(t)}get value(){return At(this),this._value}set value(t){const n=this.__v_isShallow||Tt(t)||ie(t);t=n?t:w(t),M(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:z(t),ne(this,4))}}function xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:Be}=Object,ue=(e=>t=>{const n=Un.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>ue(t)===e),fe=e=>t=>typeof t===e,{isArray:H}=Array,J=fe("undefined");function Bn(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ct=L("ArrayBuffer");function kn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ct(e.buffer),t}const Mn=fe("string"),T=fe("function"),Lt=fe("number"),de=e=>e!==null&&typeof e=="object",Hn=e=>e===!0||e===!1,re=e=>{if(ue(e)!=="object")return!1;const t=Be(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qn=L("Date"),zn=L("File"),Jn=L("Blob"),Wn=L("FileList"),Kn=e=>de(e)&&T(e.pipe),$n=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=ue(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},Vn=L("URLSearchParams"),Gn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(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;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Pt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vt=e=>!J(e)&&e!==jt;function Oe(){const{caseless:e}=vt(this)&&this||{},t={},n=(r,s)=>{const o=e&&Pt(t,s)||s;re(t[o])&&re(r)?t[o]=Oe(t[o],r):re(r)?t[o]=Oe({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&K(arguments[r],n);return t}const Xn=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,o)=>{n&&T(s)?e[o]=xt(s,n):e[o]=s},{allOwnKeys:r}),e),Qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yn=(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)},Zn=(e,t,n,r)=>{let s,o,i;const a={};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))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Be(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},er=(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},tr=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!Lt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Be(Uint8Array)),rr=(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])}},sr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},or=L("HTMLFormElement"),ir=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ar=L("RegExp"),Nt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},cr=e=>{Nt(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(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+"'")})}})},lr=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},ur=()=>{},fr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ge="abcdefghijklmnopqrstuvwxyz",Qe="0123456789",Ft={DIGIT:Qe,ALPHA:ge,ALPHA_DIGIT:ge+ge.toUpperCase()+Qe},dr=(e=16,t=Ft.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function hr(e){return!!(e&&T(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pr=e=>{const t=new Array(10),n=(r,s)=>{if(de(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return K(r,(i,a)=>{const f=n(i,s+1);!J(f)&&(o[a]=f)}),t[s]=void 0,o}}return r};return n(e,0)},mr=L("AsyncFunction"),gr=e=>e&&(de(e)||T(e))&&T(e.then)&&T(e.catch),c={isArray:H,isArrayBuffer:Ct,isBuffer:Bn,isFormData:$n,isArrayBufferView:kn,isString:Mn,isNumber:Lt,isBoolean:Hn,isObject:de,isPlainObject:re,isUndefined:J,isDate:qn,isFile:zn,isBlob:Jn,isRegExp:ar,isFunction:T,isStream:Kn,isURLSearchParams:Vn,isTypedArray:nr,isFileList:Wn,forEach:K,merge:Oe,extend:Xn,trim:Gn,stripBOM:Qn,inherits:Yn,toFlatObject:Zn,kindOf:ue,kindOfTest:L,endsWith:er,toArray:tr,forEachEntry:rr,matchAll:sr,isHTMLForm:or,hasOwnProperty:Xe,hasOwnProp:Xe,reduceDescriptors:Nt,freezeMethods:cr,toObjectSet:lr,toCamelCase:ir,noop:ur,toFiniteNumber:fr,findKey:Pt,global:jt,isContextDefined:vt,ALPHABET:Ft,generateString:dr,isSpecCompliantForm:hr,toJSONObject:pr,isAsyncFn:mr,isThenable:gr};function m(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(m,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 It=m.prototype,Dt={};["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=>{Dt[e]={value:e}});Object.defineProperties(m,Dt);Object.defineProperty(It,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(It);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},a=>a!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const wr=null;function Te(e){return c.isPlainObject(e)||c.isArray(e)}function Ut(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ye(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ut(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function yr(e){return c.isArray(e)&&!e.some(Te)}const br=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,E){return!c.isUndefined(E[p])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!f&&c.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,p,E){let b=h;if(h&&!E&&typeof h=="object"){if(c.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&yr(h)||(c.isFileList(h)||c.endsWith(p,"[]"))&&(b=c.toArray(h)))return p=Ut(p),b.forEach(function(R,pe){!(c.isUndefined(R)||R===null)&&t.append(i===!0?Ye([p],pe,o):i===null?p:p+"[]",d(R))}),!1}return Te(h)?!0:(t.append(Ye(E,p,o),d(h)),!1)}const l=[],g=Object.assign(br,{defaultVisitor:u,convertValue:d,isVisitable:Te});function y(h,p){if(!c.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(h),c.forEach(h,function(b,O){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(O)?O.trim():O,p,g))===!0&&y(b,p?p.concat(O):[O])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ke(e,t){this._pairs=[],e&&he(e,this,t)}const Bt=ke.prototype;Bt.append=function(t,n){this._pairs.push([t,n])};Bt.toString=function(t){const n=t?function(r){return t.call(this,r,Ze)}:Ze;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kt(e,t,n){if(!t)return e;const r=n&&n.encode||_r,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new ke(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class et{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 Mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:ke,Rr=typeof FormData<"u"?FormData:null,Sr=typeof Blob<"u"?Blob:null,Or={isBrowser:!0,classes:{URLSearchParams:Er,FormData:Rr,Blob:Sr},protocols:["http","https","file","blob","url","data"]},Ht=typeof window<"u"&&typeof document<"u",Tr=(e=>Ht&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ar=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ht,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Ar},Symbol.toStringTag,{value:"Module"})),C={...xr,...Or};function Cr(e,t){return he(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 Lr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function qt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Pr(s[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Lr(r),s,n,0)}),n}return null}function jr(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 $={transitional:Mt,adapter:["xhr","http"],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?JSON.stringify(qt(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 a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cr(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return he(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),jr(t)):t}],transformResponse:[function(t){const n=this.transitional||$.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(a){if(i)throw a.name==="SyntaxError"?m.from(a,m.ERR_BAD_RESPONSE,this,null,this.response):a}}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=>{$.headers[e]={}});const vr=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"]),Nr=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
12
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&vr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tt=Symbol("internals");function q(e){return e&&String(e).trim().toLowerCase()}function se(e){return e===!1||e==null?e:c.isArray(e)?e.map(se):String(e)}function Fr(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 Ir=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function we(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 Dr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ur(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 A{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,f,d){const u=q(f);if(!u)throw new Error("header name must be a non-empty string");const l=c.findKey(s,u);(!l||s[l]===void 0||d===!0||d===void 0&&s[l]!==!1)&&(s[l||f]=se(a))}const i=(a,f)=>c.forEach(a,(d,u)=>o(d,u,f));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Ir(t)?i(Nr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=q(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Fr(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=q(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||we(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=q(i),i){const a=c.findKey(r,i);a&&(!n||we(r,r[a],a,n))&&(delete r[a],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||we(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]=se(s),delete n[o];return}const a=t?Dr(o):String(o).trim();a!==o&&delete n[o],n[a]=se(s),r[a]=!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(`
|
|
13
|
+
`)}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[tt]=this[tt]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=q(i);r[a]||(Ur(s,i),r[a]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(A);function ye(e,t){const n=this||$,r=t||n,s=A.from(r.headers);let o=r.data;return c.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function zt(e){return!!(e&&e.__CANCEL__)}function V(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(V,m,{__CANCEL__:!0});function Br(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const kr=C.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.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 Mr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Jt(e,t){return e&&!Mr(t)?Hr(e,t):t}const qr=C.hasStandardBrowserEnv?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 a=c.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function zr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jr(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(f){const d=Date.now(),u=r[o];i||(i=d),n[s]=f,r[s]=d;let l=o,g=0;for(;l!==s;)g+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-i<t)return;const y=u&&d-u;return y?Math.round(g*1e3/y):void 0}}function nt(e,t){let n=0;const r=Jr(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,f=r(a),d=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:f||void 0,estimated:f&&i&&d?(i-o)/f:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const Wr=typeof XMLHttpRequest<"u",Kr=Wr&&function(e){return new Promise(function(n,r){let s=e.data;const o=A.from(e.headers).normalize();let{responseType:i,withXSRFToken:a}=e,f;function d(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}let u;if(c.isFormData(s)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[p,...E]=u?u.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([p||"multipart/form-data",...E].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(p+":"+E))}const g=Jt(e.baseURL,e.url);l.open(e.method.toUpperCase(),kt(g,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function y(){if(!l)return;const p=A.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};Br(function(R){n(R),d()},function(R){r(R),d()},b),l=null}if("onloadend"in l?l.onloadend=y:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(y)},l.onabort=function(){l&&(r(new m("Request aborted",m.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||Mt;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new m(E,b.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,l)),l=null},C.hasStandardBrowserEnv&&(a&&c.isFunction(a)&&(a=a(e)),a||a!==!1&&qr(g))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&kr.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&c.forEach(o.toJSON(),function(E,b){l.setRequestHeader(b,E)}),c.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",nt(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",nt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=p=>{l&&(r(!p||p.type?new V(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));const h=zr(g);if(h&&C.protocols.indexOf(h)===-1){r(new m("Unsupported protocol "+h+":",m.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Ae={http:wr,xhr:Kr};c.forEach(Ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rt=e=>`- ${e}`,$r=e=>c.isFunction(e)||e===null||e===!1,Wt={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!$r(n)&&(r=Ae[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,f])=>`adapter ${a} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
14
|
+
`+o.map(rt).join(`
|
|
15
|
+
`):" "+rt(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ae};function be(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new V(null,e)}function st(e){return be(e),e.headers=A.from(e.headers),e.data=ye.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wt.getAdapter(e.adapter||$.adapter)(e).then(function(r){return be(e),r.data=ye.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return zt(r)||(be(e),r&&r.response&&(r.response.data=ye.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const ot=e=>e instanceof A?{...e}:e;function B(e,t){t=t||{};const n={};function r(d,u,l){return c.isPlainObject(d)&&c.isPlainObject(u)?c.merge.call({caseless:l},d,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function s(d,u,l){if(c.isUndefined(u)){if(!c.isUndefined(d))return r(void 0,d,l)}else return r(d,u,l)}function o(d,u){if(!c.isUndefined(u))return r(void 0,u)}function i(d,u){if(c.isUndefined(u)){if(!c.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function a(d,u,l){if(l in t)return r(d,u);if(l in e)return r(void 0,d)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:a,headers:(d,u)=>s(ot(d),ot(u),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=f[u]||s,g=l(e[u],t[u],u);c.isUndefined(g)&&l!==a||(n[u]=g)}),n}const Kt="1.6.8",Me={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Me[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const it={};Me.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Kt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!it[i]&&(it[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function Vr(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.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 a=e[o],f=a===void 0||i(a,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const xe={assertOptions:Vr,validators:Me},j=xe.validators;class U{constructor(t){this.defaults=t,this.interceptors={request:new et,response:new et}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
16
|
+
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&xe.assertOptions(r,{silentJSONParsing:j.transitional(j.boolean),forcedJSONParsing:j.transitional(j.boolean),clarifyTimeoutError:j.transitional(j.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:xe.assertOptions(s,{encode:j.function,serialize:j.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"],h=>{delete o[h]}),n.headers=A.concat(i,o);const a=[];let f=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(f=f&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,l=0,g;if(!f){const h=[st.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,d),g=h.length,u=Promise.resolve(n);l<g;)u=u.then(h[l++],h[l++]);return u}g=a.length;let y=n;for(l=0;l<g;){const h=a[l++],p=a[l++];try{y=h(y)}catch(E){p.call(this,E);break}}try{u=st.call(this,y)}catch(h){return Promise.reject(h)}for(l=0,g=d.length;l<g;)u=u.then(d[l++],d[l++]);return u}getUri(t){t=B(this.defaults,t);const n=Jt(t.baseURL,t.url);return kt(n,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){U.prototype[t]=function(n,r){return this.request(B(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(B(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}U.prototype[t]=n(),U.prototype[t+"Form"]=n(!0)});class He{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{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(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new V(o,i,a),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 He(function(s){t=s}),cancel:t}}}function Gr(e){return function(n){return e.apply(null,n)}}function Xr(e){return c.isObject(e)&&e.isAxiosError===!0}const Ce={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(Ce).forEach(([e,t])=>{Ce[t]=e});function $t(e){const t=new U(e),n=xt(U.prototype.request,t);return c.extend(n,U.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return $t(B(e,s))},n}const _=$t($);_.Axios=U;_.CanceledError=V;_.CancelToken=He;_.isCancel=zt;_.VERSION=Kt;_.toFormData=he;_.AxiosError=m;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=Gr;_.isAxiosError=Xr;_.mergeConfig=B;_.AxiosHeaders=A;_.formToJSON=e=>qt(c.isHTMLForm(e)?new FormData(e):e);_.getAdapter=Wt.getAdapter;_.HttpStatusCode=Ce;_.default=_;const Qr={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Yr=["put","post","patch"],Le="Local-Request-Id",Zr=100,es=300;class Vt{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(t={}){this.settings=t.settings||{};const n=S.omit(t,["settings"]);this.axios=_.create(S.merge({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},n)),this.setupSkipWarn(this.settings),this.showLoading=S.debounce(this.openLoading.bind(this),Zr),this.showError=S.throttle(this._showError.bind(this),es,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=S.merge(this.settings,t.settings||{});const n=S.omit(t,["settings"]);this.axios.defaults=S.merge(this.axios.defaults,n),this.setupSkipWarn(this.settings)}cancel(t,n="请求已取消"){if(t){const r=this.records[t];if(!r)return;r.source.cancel(n)}else for(const r of Object.values(this.records))r.source.cancel(n)}createHeaders(t,n,r){const s=n.injectHeaders?typeof n.headers=="function"?n.headers(t,r,n):n.headers||{}:{},o={"Content-Type":Qr[n.type||"form"],...r.headers,...s};return n.skipWarn&&(o[Le]=t),o}isJsonType(t){return Object.entries(t).some(([n,r])=>n.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(t,n="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const r=n==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([s,o])=>{r.append(s,o)}),r}createSendData(t,n,r,s){const{type:o,skipWarn:i}=t,{name:a="skipWarn"}=i||{};let{data:f,params:d,method:u="get"}=n;const l=s?{[a]:!0}:{};return Yr.includes(u.toLowerCase())?(f=Object.assign(f||{},l),f=o!=="json"||!this.isJsonType(r)?this.toFormData(f,o):f):d={...f,...d,...l},{data:f,params:d}}createUrl(t){let{url:n,query:r}=t;if(n){r&&(n=S.template(n)(r));try{return S.pathToRegexpCompile(n,{encode:encodeURIComponent})(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",n)}}return n}openLoading(t){const{loading:n,showLoading:r}=t;n&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(t){const{loading:n,hideLoading:r}=t;if(!n)return;this.isLoading=!1;const s=Object.keys(this.records);r&&s.length===0&&(this.isLoading=!1,r())}_showError(t,n){const{failMessage:r,showError:s}=t;if(r&&s){const o=n?.message||n?.msg||"未知错误";s(o,n)}}validResponse(t,n){const{validSuccess:r,validate:s}=t;return r&&s?!!s(n):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},n=!1){const r=S.merge({},this.settings,t.settings||{}),s=S.omit(t,["settings"]),o=S.uuid(!1),i=_.CancelToken.source();this.records[o]={settings:r,config:s,source:i};const a=this.createUrl(s),f=this.createHeaders(o,r,s),{data:d,params:u}=this.createSendData(r,s,f,n);return this.showLoading(r),new Promise((l,g)=>{this.axios({cancelToken:i.token,...s,url:a,headers:f,data:d,params:u}).then(y=>this.isSkipWarnResponse(y)?l(y.promise):this.validResponse(r,y)?l(r.originResponse?y:y.data?.data):(this.showError(r,y.data),g(y.data))).catch(y=>(this.showError(r,y),g(y))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(t,n){const{response:r}=this.axios.interceptors,s=r.use(t,n);return()=>r.eject(s)}useRequest(t,n){const{request:r}=this.axios.interceptors,s=r.use(t,n);return()=>r.eject(s)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:n,executor:r,callback:s,complete:o}=t.skipWarn;this.stopSkipWarn=this.useResponse(i=>{const f=(i.config.headers||{})[Le],d=this.records[f];if(!d)return i;const{data:u}=i;if(!u||typeof u!="object")return i;if(u?.code===n){s&&s(i);const l=new Promise(r).then(()=>this.send({...d.config,settings:d.settings},!0));l.catch(g=>g).finally(()=>{o&&o()}),i.promise=l}return i})}}function Gt(e={}){const t=new Vt(e),n=t.send.bind(t),r=t.cancel.bind(t),s=t.setConfig.bind(t),o=t.useRequest.bind(t),i=t.useResponse.bind(t);return Object.assign(n,{...t,instance:t,send:n,cancel:r,setConfig:s,useRequest:o,useResponse:i})}const Xt=Gt({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Qt(e){const t=typeof e=="string"?{url:e}:e;return(n,r)=>Xt.send(S.merge(t,r||{},{data:n}))}function ts(e){const t={};for(const[n,r]of Object.entries(e))t[n]=Qt(r);return t}function ns(e,t){const n=me(null),r=me(),s=me(!0);return e.then(o=>{n.value=t?t(o):o}).catch(o=>{r.value=o}).finally(()=>{s.value=!1}),{data:n,error:r,loading:s}}const k=typeof window<"u",rs=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=s=>{n(s)}});function ss(e){const t={};return e?(e.forEach((n,r)=>{t[r]=typeof n=="string"?decodeURIComponent(n):n}),t):{}}const os=e=>k?window.requestAnimationFrame(e):setTimeout(e,16),is=e=>k?window.cancelAnimationFrame(e):clearTimeout(e);class Yt{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(t={}){this.types={local:k?window.localStorage:this.caches,session:k?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,n,r={}){const{type:s,expired:o,prefix:i}={...this.options,...r},a=Date.now(),f=i+t,d=this.types[s]||this.caches,u={value:n,timestamp:a,expired:o};d===this.caches?d[f]=u:d.setItem(f,JSON.stringify(u))}get(t,n={}){const{type:r,prefix:s}={...this.options,...n},o=s+t,i=this.types[r]||this.caches;let a;if(i===this.caches)a=i[o];else{const g=i.getItem(o);g&&(a=JSON.parse(g))}if(!a)return null;const{value:f,timestamp:d,expired:u}=a;return u>0&&d+u<Date.now()?(this.remove(t,n),null):f}remove(t,n={}){const{type:r,prefix:s}={...this.options,...n},o=this.types[r]||this.caches,i=s+t;o===this.caches?delete o[i]:o.removeItem(i)}clear(t={}){const{type:n}={...this.options,...t},r=this.types[n]||this.caches;r===this.caches?this.caches={}:r.clear()}}const as=new Yt;var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}};(function(e,t){(function(n,r){r(t,e)})(cs,function(n,r){var s={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function i(d){try{delete window[d]}catch{window[d]=void 0}}function a(d){var u=document.getElementById(d);u&&document.getElementsByTagName("head")[0].removeChild(u)}function f(d){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=d,g=u.timeout||s.timeout,y=u.jsonpCallback||s.jsonpCallback,h=void 0;return new Promise(function(p,E){var b=u.jsonpCallbackFunction||o(),O=y+"_"+b;window[b]=function(pe){p({ok:!0,json:function(){return Promise.resolve(pe)}}),h&&clearTimeout(h),a(O),i(b)},l+=l.indexOf("?")===-1?"?":"&";var R=document.createElement("script");R.setAttribute("src",""+l+y+"="+b),u.charset&&R.setAttribute("charset",u.charset),u.nonce&&R.setAttribute("nonce",u.nonce),u.referrerPolicy&&R.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&R.setAttribute("crossorigin","true"),R.id=O,document.getElementsByTagName("head")[0].appendChild(R),h=setTimeout(function(){E(new Error("JSONP request to "+d+" timed out")),i(b),a(O),window[b]=function(){i(b)}},g),R.onerror=function(){E(new Error("JSONP request to "+d+" failed")),i(b),a(O),h&&clearTimeout(h)}})}r.exports=f})})(Pe,Pe.exports);var ls=Pe.exports;const us=Zt(ls);function fs(e){if(k){const{protocol:t,host:n,pathname:r}=location;return`${t}//${n}${e?r:""}`}else return null}function ds(e=""){const t=e.match(S.rURL);return t?t[0]:""}function en(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,encodeURIComponent(e[n])].join("="));return t.join("&")}function je(e,t,n){const r={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",n=n||"=";let s;const o=new RegExp("(?:^|\\"+t+")([^\\"+n+"\\"+t+"]+)(?:\\"+n+"([^\\"+t+"]*))?","g");for(;(s=o.exec(e))!==null;)s[1]!==e&&(r[decodeURIComponent(s[1])]=decodeURIComponent(s[2]||""));return r}function tn(e,t){t=typeof t=="string"?je(t):t;const n=e.split("?")[0],r=je(e),s=Object.assign({},r,t),o=en(s);return o?[n,o].join("?"):e}const hs=Object.freeze(Object.defineProperty({__proto__:null,append:tn,getCurrentHost:fs,getHost:ds,parse:je,stringify:en},Symbol.toStringTag,{value:"Module"}));async function ps(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=S.template(e)(n||{}));const r=tn(e,n);return await(await us(r,t)).json()}var ms=function(t,n,r){var s=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async="async"in n?!!n.async:!0,o.src=t,n.attrs&&gs(o,n.attrs),n.text&&(o.text=""+n.text);var i="onload"in o?at:ws;i(o,r),o.onload||at(o,r),s.appendChild(o)};function gs(e,t){for(var n in t)e.setAttribute(n,t[n])}function at(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function ws(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const ys=Zt(ms);function bs(e,t={}){return new Promise((n,r)=>{const{library:s}=t;ys(e,t,(o,i)=>{o?r(o):n(s?window[s]:void 0)})})}const ct={debug:-1,log:0,info:0,warn:1,error:2},_s=function(e,t,n,r){return function(...s){if(t&&ct[t]<=ct[e]&&console[e].apply&&(r==="*"||n.startsWith(r)))return console[e].apply(console,Es(s,n))}};function Es(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Rs(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const n=e.split(":");return{targetLevel:n[0],targetBizName:n[1]}}return{targetLevel:e,targetBizName:"*"}}const Ss={level:"warn",bizName:"*"};class nn{config;options;constructor(t){this.options={...Ss,...t};const n=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href)||[])[1];this.config=Rs(r,t)}_log(t){const{targetLevel:n,targetBizName:r}=this.config,{bizName:s}=this.options;return _s(t,n,s,r)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function rn(e){return new nn(e)}const Os=rn({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Ts={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ve(e,t){function n(s,o,i){if(!(typeof document>"u")){i=ee({},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 a="";for(var f in i)i[f]&&(a+="; "+f,i[f]!==!0&&(a+="="+i[f].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var f=o[a].split("="),d=f.slice(1).join("=");try{var u=decodeURIComponent(f[0]);if(i[u]=e.read(d,u),s===u)break}catch{}}return s?i[s]:i}}return Object.create({set:n,get:r,remove:function(s,o){n(s,"",ee({},o,{expires:-1}))},withAttributes:function(s){return ve(this.converter,ee({},this.attributes,s))},withConverter:function(s){return ve(ee({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var qe=ve(Ts,{path:"/"});function As(e,t,n){qe.set(e,t,n)}function xs(e){return qe.get(e)}function Cs(e,t){qe.remove(e,t)}const Ls=Object.freeze(Object.defineProperty({__proto__:null,get:xs,remove:Cs,set:As},Symbol.toStringTag,{value:"Module"}));function Ps(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.target="_blank",n.click()}function sn(e,t=""){const n=new Blob([e]),r=document.createElement("a");r.download=t,r.style.display="none",r.href=URL.createObjectURL(n),r.click(),URL.revokeObjectURL(r.href)}async function js(e,t=""){return fetch(e).then(async n=>{const r=await n.blob();return sn(r,t),r})}exports.LOCAL_REQUEST_ID=Le;exports.Logger=nn;exports.Request=Vt;exports.Storage=Yt;exports.VTJ_UTILS_VERSION=on;exports.axios=_;exports.cAF=is;exports.cookie=Ls;exports.createApi=Qt;exports.createApis=ts;exports.createRequest=Gt;exports.downloadBlob=sn;exports.downloadRemoteFile=js;exports.downloadUrl=Ps;exports.fileToBase64=rs;exports.formDataToJson=ss;exports.getLogger=rn;exports.isClient=k;exports.jsonp=ps;exports.loadScript=bs;exports.logger=Os;exports.rAF=os;exports.request=Xt;exports.storage=as;exports.url=hs;exports.useApi=ns;Object.keys(S).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>S[e]})});
|