@vtj/utils 0.8.22 → 0.8.24
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 +3 -3
- package/dist/index.iife.js +20 -20
- package/dist/index.mjs +3 -3
- package/dist/index.umd.js +20 -20
- package/package.json +2 -2
- package/types/request.d.ts +1 -1
- package/types/version.d.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
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.24
|
|
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.24";/**
|
|
8
|
+
* @vue/shared v3.4.27
|
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10
10
|
* @license MIT
|
|
11
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"),yt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(W)),We=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){dt(),Fe();const r=y(this)[t].apply(this,n);return Ie(),ht(),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?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 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&&Ne(n)?a:a.value:ce(a)?s?St(a):Rt(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)&&Ne(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,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=y(e),o=y(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=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 Ke(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 $e(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 Ve(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 Ge(){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?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=y(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 y(e){const t=e&&e.__v_raw;return t?y(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=y(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=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=4,n){e=y(e);const r=e.dep;r&&mt(r,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=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 yr=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 wr(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)&&wr(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 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 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(`
|