UNPKG

jv3-login-jwt

Version:

easy login from assign by route by cdnagroup using vuetify

1,345 lines 65.1 kB
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css?family=Montserrat:400,800";.modal-mask[data-v-c8390a47]{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.modal-wrapper[data-v-c8390a47]{display:table-cell;vertical-align:middle}.modal-container[data-v-c8390a47]{width:300px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif}.modal-header h3[data-v-c8390a47]{margin-top:0;color:#42b983}.modal-footer[data-v-c8390a47]{overflow:hidden}.modal-body[data-v-c8390a47]{margin:20px 0}.modal-default-button[data-v-c8390a47]{float:right}.modal-enter[data-v-c8390a47],.modal-leave[data-v-c8390a47]{opacity:0}.modal-enter .modal-container[data-v-c8390a47],.modal-leave .modal-container[data-v-c8390a47]{-webkit-transform:scale(1.1);transform:scale(1.1)}.jv3-login[data-v-18da528b]{color:#000}.jv3-login .jv3-login-fulid[data-v-18da528b]{background:#f6f5f7;display:flex;justify-content:center;align-items:center;flex-direction:column;font-family:Montserrat,sans-serif;height:100vh;margin:-20px 0}.jv3-login footer.jv3-login-footer[data-v-18da528b]{background-color:#222;color:#fff;font-size:14px;bottom:0;position:fixed;left:0;right:0;text-align:center;z-index:999}.jv3-login footer.jv3-login-footer p[data-v-18da528b]{margin:10px 0}.jv3-login footer.jv3-login-footer i[data-v-18da528b]{color:red}.jv3-login footer.jv3-login-footer a[data-v-18da528b]{color:#3c97bf;text-decoration:none}.jv3-login .container[data-v-18da528b]{background-color:#fff;border-radius:10px;box-shadow:0 14px 28px #00000040,0 10px 10px #00000038;position:relative;overflow:hidden;width:768px;max-width:100%;min-height:340px}.jv3-login .form-container[data-v-18da528b]{position:absolute;top:0;height:100%;transition:all .6s ease-in-out}.jv3-login .sign-in-container[data-v-18da528b]{left:0;width:50%;z-index:2}.jv3-login form[data-v-18da528b]{background-color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 50px;height:100%;text-align:center}.jv3-login input[data-v-18da528b]{color:#000;background-color:#eee;border:none;padding:12px 15px;margin:8px 0;width:100%}.jv3-login button[data-v-18da528b]{border-radius:20px;border:1px solid #ff4b2b;background-color:#ff4b2b;color:#fff;font-size:12px;font-weight:700;padding:12px 45px;letter-spacing:1px;text-transform:uppercase;transition:transform 80ms ease-in}.jv3-login button[data-v-18da528b]:active{transform:scale(.95)}.jv3-login button[data-v-18da528b]:focus{outline:none}.jv3-login .form-group label[data-v-18da528b]{float:left}.jv3-login h1[data-v-18da528b]{font-weight:700;margin:0}.jv3-login h2[data-v-18da528b]{text-align:center}.jv3-login p[data-v-18da528b]{font-size:14px;font-weight:100;line-height:20px;letter-spacing:.5px;margin:20px 0 30px}.jv3-login span[data-v-18da528b]{font-size:12px}.jv3-login a[data-v-18da528b]{color:#333;font-size:14px;text-decoration:none;margin:15px 0}@keyframes show-18da528b{0%,49.99%{opacity:0;z-index:1}50%,to{opacity:1;z-index:5}}.jv3-login .overlay-container[data-v-18da528b]{position:absolute;top:0;left:50%;width:50%;height:100%;overflow:hidden;transition:transform .6s ease-in-out;z-index:100}.jv3-login .container.right-panel-active .overlay-container[data-v-18da528b]{transform:translate(-100%)}.jv3-login .overlay[data-v-18da528b]{background:#ff416c;background:-webkit-linear-gradient(to right,#ff4b2b,#ff416c);background:linear-gradient(to right,#ff4b2b,#ff416c);background-repeat:no-repeat;background-size:cover;background-position:0 0;color:#fff;position:relative;left:-100%;height:100%;width:200%;transform:translate(0);transition:transform .6s ease-in-out}.jv3-login .container.right-panel-active .overlay[data-v-18da528b]{transform:translate(50%)}.jv3-login .overlay-panel[data-v-18da528b]{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 40px;text-align:center;top:0;height:100%;width:50%;transform:translate(0);transition:transform .6s ease-in-out}.jv3-login .overlay-panel h1[data-v-18da528b]{font-weight:700;margin:0;background-color:#ff416c}.jv3-login .overlay-left[data-v-18da528b]{transform:translate(-20%)}.jv3-login .container.right-panel-active .overlay-left[data-v-18da528b]{transform:translate(0)}.jv3-login .overlay-right[data-v-18da528b]{right:0;transform:translate(0)}.jv3-login .container.right-panel-active .overlay-right[data-v-18da528b]{transform:translate(20%)}.jv3-login .social-container[data-v-18da528b]{margin:20px 0}.jv3-login .social-container a[data-v-18da528b]{border:1px solid #dddddd;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;margin:0 5px;height:40px;width:40px}@media only screen and (max-width: 800px){.jv3-login .overlay-container[data-v-18da528b]{display:none}.jv3-login .sign-in-container[data-v-18da528b]{width:100%}}.jv3-login .container.right-panel-active .sign-in-container[data-v-18da528b]{transform:translate(100%)}.jv3-login .sign-up-container[data-v-18da528b]{left:0;width:50%;opacity:0;z-index:1}.jv3-login .container.right-panel-active .sign-up-container[data-v-18da528b]{transform:translate(100%);opacity:1;z-index:5;animation:show-18da528b .6s}.jv3-login .error-feedback[data-v-18da528b]{color:red;font-size:large}.jv3-login .loading[data-v-18da528b]{position:fixed;z-index:999;height:2em;width:2em;overflow:show;margin:auto;top:0;left:0;bottom:0;right:0}.jv3-login .loading[data-v-18da528b]:before{content:"";display:block;position:fixed;top:0;left:0;width:100%;height:100%;background:radial-gradient(#141414cc,#000c);background:-webkit-radial-gradient(rgba(20,20,20,.8),rgba(0,0,0,.8))}.jv3-login .loading[data-v-18da528b]:not(:required){font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.jv3-login .loading[data-v-18da528b]:not(:required):after{content:"";display:block;font-size:10px;width:1em;height:1em;margin-top:-.5em;-webkit-animation:spinner-18da528b .15s infinite linear;-moz-animation:spinner-18da528b .15s infinite linear;-ms-animation:spinner-18da528b .15s infinite linear;-o-animation:spinner-18da528b .15s infinite linear;animation:spinner-18da528b .15s infinite linear;border-radius:.5em;-webkit-box-shadow:rgba(255,255,255,.75) 1.5em 0 0 0,rgba(255,255,255,.75) 1.1em 1.1em 0 0,rgba(255,255,255,.75) 0 1.5em 0 0,rgba(255,255,255,.75) -1.1em 1.1em 0 0,rgba(255,255,255,.75) -1.5em 0 0 0,rgba(255,255,255,.75) -1.1em -1.1em 0 0,rgba(255,255,255,.75) 0 -1.5em 0 0,rgba(255,255,255,.75) 1.1em -1.1em 0 0;box-shadow:#ffffffbf 1.5em 0,#ffffffbf 1.1em 1.1em,#ffffffbf 0 1.5em,#ffffffbf -1.1em 1.1em,#ffffffbf -1.5em 0,#ffffffbf -1.1em -1.1em,#ffffffbf 0 -1.5em,#ffffffbf 1.1em -1.1em}@-webkit-keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.jv3-login .modal-mask[data-v-18da528b]{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.jv3-login .modal-wrapper[data-v-18da528b]{display:table-cell;vertical-align:middle}.jv3-login .modal-container[data-v-18da528b]{width:300px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif}.jv3-login .modal-header h3[data-v-18da528b]{margin-top:0;color:#42b983}.jv3-login .modal-footer[data-v-18da528b]{overflow:hidden}.jv3-login .modal-body[data-v-18da528b]{margin:20px 0}.jv3-login .modal-default-button[data-v-18da528b]{float:right}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); var et = Object.defineProperty; var tt = (t, e, r) => e in t ? et(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; var w = (t, e, r) => tt(t, typeof e != "symbol" ? e + "" : e, r); import { inject as rt } from "vue/dist/vue.esm-bundler.js"; function Le(t, e) { return function() { return t.apply(e, arguments); }; } const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, W = /* @__PURE__ */ ((t) => (e) => { const r = nt.call(e); return t[r] || (t[r] = r.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)), C = (t) => (t = t.toLowerCase(), (e) => W(e) === t), K = (t) => (e) => typeof e === t, { isArray: D } = Array, q = K("undefined"); function st(t) { return t !== null && !q(t) && t.constructor !== null && !q(t.constructor) && A(t.constructor.isBuffer) && t.constructor.isBuffer(t); } const _e = C("ArrayBuffer"); function ot(t) { let e; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && _e(t.buffer), e; } const it = K("string"), A = K("function"), Ue = K("number"), G = (t) => t !== null && typeof t == "object", at = (t) => t === !0 || t === !1, J = (t) => { if (W(t) !== "object") return !1; const e = le(t); return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t); }, ct = C("Date"), ut = C("File"), lt = C("Blob"), ft = C("FileList"), dt = (t) => G(t) && A(t.pipe), ht = (t) => { let e; return t && (typeof FormData == "function" && t instanceof FormData || A(t.append) && ((e = W(t)) === "formdata" || // detect form-data instance e === "object" && A(t.toString) && t.toString() === "[object FormData]")); }, pt = C("URLSearchParams"), [mt, yt, gt, wt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), Et = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); function H(t, e, { allOwnKeys: r = !1 } = {}) { if (t === null || typeof t > "u") return; let n, s; if (typeof t != "object" && (t = [t]), D(t)) for (n = 0, s = t.length; n < s; n++) e.call(null, t[n], n, t); else { const o = r ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length; let c; for (n = 0; n < i; n++) c = o[n], e.call(null, t[c], c, t); } } function Fe(t, e) { e = e.toLowerCase(); const r = Object.keys(t); let n = r.length, s; for (; n-- > 0; ) if (s = r[n], e === s.toLowerCase()) return s; return null; } const F = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Be = (t) => !q(t) && t !== F; function ne() { const { caseless: t } = Be(this) && this || {}, e = {}, r = (n, s) => { const o = t && Fe(e, s) || s; J(e[o]) && J(n) ? e[o] = ne(e[o], n) : J(n) ? e[o] = ne({}, n) : D(n) ? e[o] = n.slice() : e[o] = n; }; for (let n = 0, s = arguments.length; n < s; n++) arguments[n] && H(arguments[n], r); return e; } const bt = (t, e, r, { allOwnKeys: n } = {}) => (H(e, (s, o) => { r && A(s) ? t[o] = Le(s, r) : t[o] = s; }, { allOwnKeys: n }), t), Rt = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), St = (t, e, r, n) => { t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), r && Object.assign(t.prototype, r); }, Tt = (t, e, r, n) => { let s, o, i; const c = {}; if (e = e || {}, t == null) return e; do { for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; ) i = s[o], (!n || n(i, t, e)) && !c[i] && (e[i] = t[i], c[i] = !0); t = r !== !1 && le(t); } while (t && (!r || r(t, e)) && t !== Object.prototype); return e; }, Ot = (t, e, r) => { t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; const n = t.indexOf(e, r); return n !== -1 && n === r; }, At = (t) => { if (!t) return null; if (D(t)) return t; let e = t.length; if (!Ue(e)) return null; const r = new Array(e); for (; e-- > 0; ) r[e] = t[e]; return r; }, xt = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && le(Uint8Array)), Pt = (t, e) => { const n = (t && t[Symbol.iterator]).call(t); let s; for (; (s = n.next()) && !s.done; ) { const o = s.value; e.call(t, o[0], o[1]); } }, Ct = (t, e) => { let r; const n = []; for (; (r = t.exec(e)) !== null; ) n.push(r); return n; }, Nt = C("HTMLFormElement"), Lt = (t) => t.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(r, n, s) { return n.toUpperCase() + s; } ), ye = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), _t = C("RegExp"), ke = (t, e) => { const r = Object.getOwnPropertyDescriptors(t), n = {}; H(r, (s, o) => { let i; (i = e(s, o, t)) !== !1 && (n[o] = i || s); }), Object.defineProperties(t, n); }, Ut = (t) => { ke(t, (e, r) => { if (A(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1; const n = t[r]; if (A(n)) { if (e.enumerable = !1, "writable" in e) { e.writable = !1; return; } e.set || (e.set = () => { throw Error("Can not rewrite read-only method '" + r + "'"); }); } }); }, Ft = (t, e) => { const r = {}, n = (s) => { s.forEach((o) => { r[o] = !0; }); }; return D(t) ? n(t) : n(String(t).split(e)), r; }, Bt = () => { }, kt = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Y = "abcdefghijklmnopqrstuvwxyz", ge = "0123456789", De = { DIGIT: ge, ALPHA: Y, ALPHA_DIGIT: Y + Y.toUpperCase() + ge }, Dt = (t = 16, e = De.ALPHA_DIGIT) => { let r = ""; const { length: n } = e; for (; t--; ) r += e[Math.random() * n | 0]; return r; }; function jt(t) { return !!(t && A(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); } const It = (t) => { const e = new Array(10), r = (n, s) => { if (G(n)) { if (e.indexOf(n) >= 0) return; if (!("toJSON" in n)) { e[s] = n; const o = D(n) ? [] : {}; return H(n, (i, c) => { const f = r(i, s + 1); !q(f) && (o[c] = f); }), e[s] = void 0, o; } } return n; }; return r(t, 0); }, qt = C("AsyncFunction"), Ht = (t) => t && (G(t) || A(t)) && A(t.then) && A(t.catch), je = ((t, e) => t ? setImmediate : e ? ((r, n) => (F.addEventListener("message", ({ source: s, data: o }) => { s === F && o === r && n.length && n.shift()(); }, !1), (s) => { n.push(s), F.postMessage(r, "*"); }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))( typeof setImmediate == "function", A(F.postMessage) ), Mt = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || je, a = { isArray: D, isArrayBuffer: _e, isBuffer: st, isFormData: ht, isArrayBufferView: ot, isString: it, isNumber: Ue, isBoolean: at, isObject: G, isPlainObject: J, isReadableStream: mt, isRequest: yt, isResponse: gt, isHeaders: wt, isUndefined: q, isDate: ct, isFile: ut, isBlob: lt, isRegExp: _t, isFunction: A, isStream: dt, isURLSearchParams: pt, isTypedArray: xt, isFileList: ft, forEach: H, merge: ne, extend: bt, trim: Et, stripBOM: Rt, inherits: St, toFlatObject: Tt, kindOf: W, kindOfTest: C, endsWith: Ot, toArray: At, forEachEntry: Pt, matchAll: Ct, isHTMLForm: Nt, hasOwnProperty: ye, hasOwnProp: ye, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors: ke, freezeMethods: Ut, toObjectSet: Ft, toCamelCase: Lt, noop: Bt, toFiniteNumber: kt, findKey: Fe, global: F, isContextDefined: Be, ALPHABET: De, generateString: Dt, isSpecCompliantForm: jt, toJSONObject: It, isAsyncFn: qt, isThenable: Ht, setImmediate: je, asap: Mt }; function m(t, e, r, n, s) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), s && (this.response = s); } a.inherits(m, Error, { toJSON: function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: a.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; } }); const Ie = m.prototype, qe = {}; [ "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" // eslint-disable-next-line func-names ].forEach((t) => { qe[t] = { value: t }; }); Object.defineProperties(m, qe); Object.defineProperty(Ie, "isAxiosError", { value: !0 }); m.from = (t, e, r, n, s, o) => { const i = Object.create(Ie); return a.toFlatObject(t, i, function(f) { return f !== Error.prototype; }, (c) => c !== "isAxiosError"), m.call(i, t.message, e, r, n, s), i.cause = t, i.name = t.name, o && Object.assign(i, o), i; }; const zt = null; function se(t) { return a.isPlainObject(t) || a.isArray(t); } function He(t) { return a.endsWith(t, "[]") ? t.slice(0, -2) : t; } function we(t, e, r) { return t ? t.concat(e).map(function(s, o) { return s = He(s), !r && o ? "[" + s + "]" : s; }).join(r ? "." : "") : e; } function Jt(t) { return a.isArray(t) && !t.some(se); } const vt = a.toFlatObject(a, {}, null, function(e) { return /^is[A-Z]/.test(e); }); function X(t, e, r) { if (!a.isObject(t)) throw new TypeError("target must be an object"); e = e || new FormData(), r = a.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(y, d) { return !a.isUndefined(d[y]); }); const n = r.metaTokens, s = r.visitor || l, o = r.dots, i = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e); if (!a.isFunction(s)) throw new TypeError("visitor must be a function"); function u(p) { if (p === null) return ""; if (a.isDate(p)) return p.toISOString(); if (!f && a.isBlob(p)) throw new m("Blob is not supported. Use a Buffer instead."); return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; } function l(p, y, d) { let S = p; if (p && !d && typeof p == "object") { if (a.endsWith(y, "{}")) y = n ? y : y.slice(0, -2), p = JSON.stringify(p); else if (a.isArray(p) && Jt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (S = a.toArray(p))) return y = He(y), S.forEach(function(g, x) { !(a.isUndefined(g) || g === null) && e.append( // eslint-disable-next-line no-nested-ternary i === !0 ? we([y], x, o) : i === null ? y : y + "[]", u(g) ); }), !1; } return se(p) ? !0 : (e.append(we(d, y, o), u(p)), !1); } const h = [], b = Object.assign(vt, { defaultVisitor: l, convertValue: u, isVisitable: se }); function R(p, y) { if (!a.isUndefined(p)) { if (h.indexOf(p) !== -1) throw Error("Circular reference detected in " + y.join(".")); h.push(p), a.forEach(p, function(S, O) { (!(a.isUndefined(S) || S === null) && s.call( e, S, a.isString(O) ? O.trim() : O, y, b )) === !0 && R(S, y ? y.concat(O) : [O]); }), h.pop(); } } if (!a.isObject(t)) throw new TypeError("data must be an object"); return R(t), e; } function Ee(t) { const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) { return e[n]; }); } function fe(t, e) { this._pairs = [], t && X(t, this, e); } const Me = fe.prototype; Me.append = function(e, r) { this._pairs.push([e, r]); }; Me.toString = function(e) { const r = e ? function(n) { return e.call(this, n, Ee); } : Ee; return this._pairs.map(function(s) { return r(s[0]) + "=" + r(s[1]); }, "").join("&"); }; function Vt(t) { return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } function ze(t, e, r) { if (!e) return t; const n = r && r.encode || Vt, s = r && r.serialize; let o; if (s ? o = s(e, r) : o = a.isURLSearchParams(e) ? e.toString() : new fe(e, r).toString(n), o) { const i = t.indexOf("#"); i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o; } return t; } class be { constructor() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ use(e, r, n) { return this.handlers.push({ fulfilled: e, rejected: r, synchronous: n ? n.synchronous : !1, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; } /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` * * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise */ eject(e) { this.handlers[e] && (this.handlers[e] = null); } /** * Clear all interceptors from the stack * * @returns {void} */ clear() { this.handlers && (this.handlers = []); } /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor * * @returns {void} */ forEach(e) { a.forEach(this.handlers, function(n) { n !== null && e(n); }); } } const Je = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, $t = typeof URLSearchParams < "u" ? URLSearchParams : fe, Wt = typeof FormData < "u" ? FormData : null, Kt = typeof Blob < "u" ? Blob : null, Gt = { isBrowser: !0, classes: { URLSearchParams: $t, FormData: Wt, Blob: Kt }, protocols: ["http", "https", "file", "blob", "url", "data"] }, de = typeof window < "u" && typeof document < "u", Xt = ((t) => de && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), Qt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zt = de && window.location.href || "http://localhost", Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, hasBrowserEnv: de, hasStandardBrowserEnv: Xt, hasStandardBrowserWebWorkerEnv: Qt, origin: Zt }, Symbol.toStringTag, { value: "Module" })), P = { ...Yt, ...Gt }; function er(t, e) { return X(t, new P.classes.URLSearchParams(), Object.assign({ visitor: function(r, n, s, o) { return P.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments); } }, e)); } function tr(t) { return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]); } function rr(t) { const e = {}, r = Object.keys(t); let n; const s = r.length; let o; for (n = 0; n < s; n++) o = r[n], e[o] = t[o]; return e; } function ve(t) { function e(r, n, s, o) { let i = r[o++]; if (i === "__proto__") return !0; const c = Number.isFinite(+i), f = o >= r.length; return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], n] : s[i] = n, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), e(r, n, s[i], o) && a.isArray(s[i]) && (s[i] = rr(s[i])), !c); } if (a.isFormData(t) && a.isFunction(t.entries)) { const r = {}; return a.forEachEntry(t, (n, s) => { e(tr(n), s, r, 0); }), r; } return null; } function nr(t, e, r) { if (a.isString(t)) try { return (e || JSON.parse)(t), a.trim(t); } catch (n) { if (n.name !== "SyntaxError") throw n; } return (r || JSON.stringify)(t); } const M = { transitional: Je, adapter: ["xhr", "http", "fetch"], transformRequest: [function(e, r) { const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = a.isObject(e); if (o && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e)) return s ? JSON.stringify(ve(e)) : e; if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e)) return e; if (a.isArrayBufferView(e)) return e.buffer; if (a.isURLSearchParams(e)) return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString(); let c; if (o) { if (n.indexOf("application/x-www-form-urlencoded") > -1) return er(e, this.formSerializer).toString(); if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) { const f = this.env && this.env.FormData; return X( c ? { "files[]": e } : e, f && new f(), this.formSerializer ); } } return o || s ? (r.setContentType("application/json", !1), nr(e)) : e; }], transformResponse: [function(e) { const r = this.transitional || M.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json"; if (a.isResponse(e) || a.isReadableStream(e)) return e; if (e && a.isString(e) && (n && !this.responseType || s)) { const i = !(r && r.silentJSONParsing) && s; try { return JSON.parse(e); } catch (c) { if (i) throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c; } } return e; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: P.classes.FormData, Blob: P.classes.Blob }, validateStatus: function(e) { return e >= 200 && e < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { M.headers[t] = {}; }); const sr = a.toObjectSet([ "age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent" ]), or = (t) => { const e = {}; let r, n, s; return t && t.split(` `).forEach(function(i) { s = i.indexOf(":"), r = i.substring(0, s).trim().toLowerCase(), n = i.substring(s + 1).trim(), !(!r || e[r] && sr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n); }), e; }, Re = Symbol("internals"); function I(t) { return t && String(t).trim().toLowerCase(); } function v(t) { return t === !1 || t == null ? t : a.isArray(t) ? t.map(v) : String(t); } function ir(t) { const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let n; for (; n = r.exec(t); ) e[n[1]] = n[2]; return e; } const ar = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()); function ee(t, e, r, n, s) { if (a.isFunction(n)) return n.call(this, e, r); if (s && (e = r), !!a.isString(e)) { if (a.isString(n)) return e.indexOf(n) !== -1; if (a.isRegExp(n)) return n.test(e); } } function cr(t) { return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n); } function ur(t, e) { const r = a.toCamelCase(" " + e); ["get", "set", "has"].forEach((n) => { Object.defineProperty(t, n + r, { value: function(s, o, i) { return this[n].call(this, e, s, o, i); }, configurable: !0 }); }); } class T { constructor(e) { e && this.set(e); } set(e, r, n) { const s = this; function o(c, f, u) { const l = I(f); if (!l) throw new Error("header name must be a non-empty string"); const h = a.findKey(s, l); (!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || f] = v(c)); } const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f)); if (a.isPlainObject(e) || e instanceof this.constructor) i(e, r); else if (a.isString(e) && (e = e.trim()) && !ar(e)) i(or(e), r); else if (a.isHeaders(e)) for (const [c, f] of e.entries()) o(f, c, n); else e != null && o(r, e, n); return this; } get(e, r) { if (e = I(e), e) { const n = a.findKey(this, e); if (n) { const s = this[n]; if (!r) return s; if (r === !0) return ir(s); if (a.isFunction(r)) return r.call(this, s, n); if (a.isRegExp(r)) return r.exec(s); throw new TypeError("parser must be boolean|regexp|function"); } } } has(e, r) { if (e = I(e), e) { const n = a.findKey(this, e); return !!(n && this[n] !== void 0 && (!r || ee(this, this[n], n, r))); } return !1; } delete(e, r) { const n = this; let s = !1; function o(i) { if (i = I(i), i) { const c = a.findKey(n, i); c && (!r || ee(n, n[c], c, r)) && (delete n[c], s = !0); } } return a.isArray(e) ? e.forEach(o) : o(e), s; } clear(e) { const r = Object.keys(this); let n = r.length, s = !1; for (; n--; ) { const o = r[n]; (!e || ee(this, this[o], o, e, !0)) && (delete this[o], s = !0); } return s; } normalize(e) { const r = this, n = {}; return a.forEach(this, (s, o) => { const i = a.findKey(n, o); if (i) { r[i] = v(s), delete r[o]; return; } const c = e ? cr(o) : String(o).trim(); c !== o && delete r[o], r[c] = v(s), n[c] = !0; }), this; } concat(...e) { return this.constructor.concat(this, ...e); } toJSON(e) { const r = /* @__PURE__ */ Object.create(null); return a.forEach(this, (n, s) => { n != null && n !== !1 && (r[s] = e && a.isArray(n) ? n.join(", ") : n); }), r; } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(` `); } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(e) { return e instanceof this ? e : new this(e); } static concat(e, ...r) { const n = new this(e); return r.forEach((s) => n.set(s)), n; } static accessor(e) { const n = (this[Re] = this[Re] = { accessors: {} }).accessors, s = this.prototype; function o(i) { const c = I(i); n[c] || (ur(s, i), n[c] = !0); } return a.isArray(e) ? e.forEach(o) : o(e), this; } } T.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); a.reduceDescriptors(T.prototype, ({ value: t }, e) => { let r = e[0].toUpperCase() + e.slice(1); return { get: () => t, set(n) { this[r] = n; } }; }); a.freezeMethods(T); function te(t, e) { const r = this || M, n = e || r, s = T.from(n.headers); let o = n.data; return a.forEach(t, function(c) { o = c.call(r, o, s.normalize(), e ? e.status : void 0); }), s.normalize(), o; } function Ve(t) { return !!(t && t.__CANCEL__); } function j(t, e, r) { m.call(this, t ?? "canceled", m.ERR_CANCELED, e, r), this.name = "CanceledError"; } a.inherits(j, m, { __CANCEL__: !0 }); function $e(t, e, r) { const n = r.config.validateStatus; !r.status || !n || n(r.status) ? t(r) : e(new m( "Request failed with status code " + r.status, [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r )); } function lr(t) { const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t); return e && e[1] || ""; } function fr(t, e) { t = t || 10; const r = new Array(t), n = new Array(t); let s = 0, o = 0, i; return e = e !== void 0 ? e : 1e3, function(f) { const u = Date.now(), l = n[o]; i || (i = u), r[s] = f, n[s] = u; let h = o, b = 0; for (; h !== s; ) b += r[h++], h = h % t; if (s = (s + 1) % t, s === o && (o = (o + 1) % t), u - i < e) return; const R = l && u - l; return R ? Math.round(b * 1e3 / R) : void 0; }; } function dr(t, e) { let r = 0, n = 1e3 / e, s, o; const i = (u, l = Date.now()) => { r = l, s = null, o && (clearTimeout(o), o = null), t.apply(null, u); }; return [(...u) => { const l = Date.now(), h = l - r; h >= n ? i(u, l) : (s = u, o || (o = setTimeout(() => { o = null, i(s); }, n - h))); }, () => s && i(s)]; } const V = (t, e, r = 3) => { let n = 0; const s = fr(50, 250); return dr((o) => { const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - n, u = s(f), l = i <= c; n = i; const h = { loaded: i, total: c, progress: c ? i / c : void 0, bytes: f, rate: u || void 0, estimated: u && c && l ? (c - i) / u : void 0, event: o, lengthComputable: c != null, [e ? "download" : "upload"]: !0 }; t(h); }, r); }, Se = (t, e) => { const r = t != null; return [(n) => e[0]({ lengthComputable: r, total: t, loaded: n }), e[1]]; }, Te = (t) => (...e) => a.asap(() => t(...e)), hr = P.hasStandardBrowserEnv ? ( // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. function() { const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"); let n; function s(o) { let i = o; return e && (r.setAttribute("href", i), i = r.href), r.setAttribute("href", i), { href: r.href, protocol: r.protocol ? r.protocol.replace(/:$/, "") : "", host: r.host, search: r.search ? r.search.replace(/^\?/, "") : "", hash: r.hash ? r.hash.replace(/^#/, "") : "", hostname: r.hostname, port: r.port, pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname }; } return n = s(window.location.href), function(i) { const c = a.isString(i) ? s(i) : i; return c.protocol === n.protocol && c.host === n.host; }; }() ) : ( // Non standard browser envs (web workers, react-native) lack needed support. /* @__PURE__ */ function() { return function() { return !0; }; }() ), pr = P.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(t, e, r, n, s, o) { const i = [t + "=" + encodeURIComponent(e)]; a.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), a.isString(n) && i.push("path=" + n), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; "); }, read(t) { const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)")); return e ? decodeURIComponent(e[3]) : null; }, remove(t) { this.write(t, "", Date.now() - 864e5); } } ) : ( // Non-standard browser env (web workers, react-native) lack needed support. { write() { }, read() { return null; }, remove() { } } ); function mr(t) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t); } function yr(t, e) { return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t; } function We(t, e) { return t && !mr(e) ? yr(t, e) : e; } const Oe = (t) => t instanceof T ? { ...t } : t; function k(t, e) { e = e || {}; const r = {}; function n(u, l, h) { return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: h }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l; } function s(u, l, h) { if (a.isUndefined(l)) { if (!a.isUndefined(u)) return n(void 0, u, h); } else return n(u, l, h); } function o(u, l) { if (!a.isUndefined(l)) return n(void 0, l); } function i(u, l) { if (a.isUndefined(l)) { if (!a.isUndefined(u)) return n(void 0, u); } else return n(void 0, l); } function c(u, l, h) { if (h in e) return n(u, l); if (h in t) return n(void 0, u); } 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: c, headers: (u, l) => s(Oe(u), Oe(l), !0) }; return a.forEach(Object.keys(Object.assign({}, t, e)), function(l) { const h = f[l] || s, b = h(t[l], e[l], l); a.isUndefined(b) && h !== c || (r[l] = b); }), r; } const Ke = (t) => { const e = k({}, t); let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = e; e.headers = i = T.from(i), e.url = ze(We(e.baseURL, e.url), t.params, t.paramsSerializer), c && i.set( "Authorization", "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")) ); let f; if (a.isFormData(r)) { if (P.hasStandardBrowserEnv || P.hasStandardBrowserWebWorkerEnv) i.setContentType(void 0); else if ((f = i.getContentType()) !== !1) { const [u, ...l] = f ? f.split(";").map((h) => h.trim()).filter(Boolean) : []; i.setContentType([u || "multipart/form-data", ...l].join("; ")); } } if (P.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(e)), n || n !== !1 && hr(e.url))) { const u = s && o && pr.read(o); u && i.set(s, u); } return e; }, gr = typeof XMLHttpRequest < "u", wr = gr && function(t) { return new Promise(function(r, n) { const s = Ke(t); let o = s.data; const i = T.from(s.headers).normalize(); let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, h, b, R, p; function y() { R && R(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l); } let d = new XMLHttpRequest(); d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout; function S() { if (!d) return; const g = T.from( "getAllResponseHeaders" in d && d.getAllResponseHeaders() ), U = { data: !c || c === "text" || c === "json" ? d.responseText : d.response, status: d.status, statusText: d.statusText, headers: g, config: t, request: d }; $e(function(L) { r(L), y(); }, function(L) { n(L), y(); }, U), d = null; } "onloadend" in d ? d.onloadend = S : d.onreadystatechange = function() { !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(S); }, d.onabort = function() { d && (n(new m("Request aborted", m.ECONNABORTED, t, d)), d = null); }, d.onerror = function() { n(new m("Network Error", m.ERR_NETWORK, t, d)), d = null; }, d.ontimeout = function() { let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded"; const U = s.transitional || Je; s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new m( x, U.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED, t, d )), d = null; }, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(x, U) { d.setRequestHeader(U, x); }), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), u && ([b, p] = V(u, !0), d.addEventListener("progress", b)), f && d.upload && ([h, R] = V(f), d.upload.addEventListener("progress", h), d.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (g) => { d && (n(!g || g.type ? new j(null, t, d) : g), d.abort(), d = null); }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l))); const O = lr(s.url); if (O && P.protocols.indexOf(O) === -1) { n(new m("Unsupported protocol " + O + ":", m.ERR_BAD_REQUEST, t)); return; } d.send(o || null); }); }, Er = (t, e) => { let r = new AbortController(), n; const s = function(f) { if (!n) { n = !0, i(); const u = f instanceof Error ? f : this.reason; r.abort(u instanceof m ? u : new j(u instanceof Error ? u.message : u)); } }; let o = e && setTimeout(() => { s(new m(`timeout ${e} of ms exceeded`, m.ETIMEDOUT)); }, e); const i = () => { t && (o && clearTimeout(o), o = null, t.forEach((f) => { f && (f.removeEventListener ? f.removeEventListener("abort", s) : f.unsubscribe(s)); }), t = null); }; t.forEach((f) => f && f.addEventListener && f.addEventListener("abort", s)); const { signal: c } = r; return c.unsubscribe = i, [c, () => { o && clearTimeout(o), o = null; }]; }, br = function* (t, e) { let r = t.byteLength; if (!e || r < e) { yield t; return; } let n = 0, s; for (; n < r; ) s = n + e, yield t.slice(n, s), n = s; }, Rr = async function* (t, e, r) { for await (const n of t) yield* br(ArrayBuffer.isView(n) ? n : await r(String(n)), e); }, Ae = (t, e, r, n, s) => { const o = Rr(t, e, s); let i = 0, c, f = (u) => { c || (c = !0, n && n(u)); }; return new ReadableStream({ async pull(u) { try { const { done: l, value: h } = await o.next(); if (l) { f(), u.close(); return; } let b = h.byteLength; if (r) { let R = i += b; r(R); } u.enqueue(new Uint8Array(h)); } catch (l) { throw f(l), l; } }, cancel(u) { return f(u), o.return(); } }, { highWaterMark: 2 }); }, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ge = Q && typeof ReadableStream == "function", oe = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Xe = (t, ...e) => { try { return !!t(...e); } catch { return !1; } }, Sr = Ge && Xe(() => { let t = !1; const e = new Request(P.origin, { body: new ReadableStream(), method: "POST", get duplex() { return t = !0, "half"; } }).headers.has("Content-Type"); return t && !e; }), xe = 64 * 1024, ie = Ge && Xe(() => a.isReadableStream(new Response("").body)), $ = { stream: ie && ((t) => t.body) }; Q && ((t) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => { !$[e] && ($[e] = a.isFunction(t[e]) ? (r) => r[e]() : (r, n) => { throw new m(`Response type '${e}' is not supported`, m.ERR_NOT_SUPPORT, n); }); }); })(new Response()); const Tr = async (t) => { if (t == null) return 0; if (a.isBlob(t)) return t.size; if (a.isSpecCompliantForm(t)) return (await new Request(t).arrayBuffer()).byteLength; if (a.isArrayBufferView(t) || a.isArrayBuffer(t)) return t.byteLength; if (a.isURLSearchParams(t) && (t = t + ""), a.isString(t)) return (await oe(t)).byteLength; }, Or = async (t, e) => { const r = a.toFiniteNumber(t.getContentLength()); return r ?? Tr(e); }, Ar = Q && (async (t) => { let { url: e, method: r, data: n, signal: s, cancelToken: o, timeout: i, onDownloadProgress: c, onUploadProgress: f, responseType: u, headers: l, withCredentials: h = "same-origin", fetchOptions: b } = Ke(t); u = u ? (u + "").toLowerCase() : "text"; let [R, p] = s || o || i ? Er([s, o], i) : [], y, d; const S = () => { !y && setTimeout(() => { R && R.unsubscribe(); }), y = !0; }; let O; try { if (f && Sr && r !== "get" && r !== "head" && (O = await Or(l, n)) !== 0) { let N = new Request(e, { method: "POST", body: n, duplex: "half" }), L; if (a.isFormData(n) && (L = N.headers.get("content-type")) && l.setContentType(L), N.body) { const [Z, z] = Se( O, V(Te(f)) ); n = Ae(N.body, xe, Z, z, oe); } } a.isString(h) || (h = h ? "include" : "omit"), d = new Request(e, { ...b, signal: R, method: r.toUpperCase(), headers: l.normalize().toJSON(), body: n, duplex: "half", credentials: h }); let g = await fetch(d); const x = ie && (u === "stream" || u === "response"); if (ie && (c || x)) { const N = {}; ["status", "statusText", "headers"].forEach((me) => { N[me] = g[me]; }); const L = a.toFiniteNumber(g.headers.get("content-length")), [Z, z] = c && Se( L, V(Te(c), !0) ) || []; g = new Response( Ae(g.body, xe, Z, () => { z && z(), x && S(); }, oe), N ); } u = u || "text"; let U = await $[a.findKey($, u) || "text"](g, t); return !x && S(), p && p(), await new Promise((N, L) => { $e(N, L, { data: U, headers: T.from(g.headers), status: g.status, statusText: g.statusText, config: t, request: d }); }); } catch (g) { throw S(), g && g.name === "TypeError" && /fetch/i.test(g.message) ? Object.assign( new m("Network Error", m.ERR_NETWORK, t, d), { cause: g.cause || g } ) : m.from(g, g && g.code, t, d); } }), ae = { http: zt, xhr: wr, fetch: Ar }; a.forEach(ae, (t, e) => { if (t) { try { Object.defineProperty(t, "name", { value: e }); } catch { } Object.defineProperty(t, "adapterName", { value: e }); } }); const Pe = (t) => `- ${t}`, xr = (t) => a.isFunction(t) || t === null || t === !1, Qe = { getAdapter: (t) => { t = a.isArray(t) ? t : [t]; const { length: e } = t; let r, n; const s = {}; for (let o = 0; o < e; o++) { r = t[o]; let i; if (n = r, !xr(r) && (n = ae[(i = String(r)).toLowerCase()], n === void 0)) throw new m(`Unknown adapter '${i}'`); if (n) break; s[i || "#" + o] = n; } if (!n) { const o = Object.entries(s).map( ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build") ); let i = e ? o.length > 1 ? `since : ` + o.map(Pe).join(` `) : " " + Pe(o[0]) : "as no adapter specified"; throw new m( "There is no suitable adapter to dispatch the request " + i, "ERR_NOT_SUPPORT" ); } return n; }, adapters: ae }; function re(t) { if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new j(null, t); } function Ce(t) { return re(t), t.headers = T.from(t.headers), t.data = te.call( t, t.transformRequest ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(t.adapter || M.adapter)(t).then(function(n) { return re(t), n.data = te.call( t, t.transformResponse, n ), n.headers = T.from(n.headers), n; }, function(n) { return Ve(n) || (re(t), n && n.response && (n.response.data = te.call( t, t.transformResponse, n.response ), n.response.headers = T.from(n.response.headers))), Promise.reject(n); }); } const Ze = "1.7.4", he = {}; ["object", "boolean", "number", "function", "string",