@nside/wefa 0.1.0 → 0.2.0
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/{LegalConsent-Cn3qx30k.cjs → LegalConsent-CT1w5kme.cjs} +1 -1
- package/dist/{LegalConsent-pUADprVB.js → LegalConsent-D1MwmijD.js} +2 -2
- package/dist/{LegalDocument-CU8uyoKh.cjs → LegalDocument-BIlRd478.cjs} +14 -14
- package/dist/{LegalDocument-BHtPY9AH.js → LegalDocument-Cg2xX6Mz.js} +4 -4
- package/dist/{apiClient-B6fJs4NI.cjs → apiClient-Bd4jmhT7.cjs} +1 -1
- package/dist/{apiClient-BAzNCKuU.js → apiClient-WXmPkrC5.js} +1 -1
- package/dist/{axios-C7yNV7KF.js → axios-C8xtaJSd.js} +157 -139
- package/dist/{axios-BompFBxL.cjs → axios-_3J2k8TN.cjs} +6 -6
- package/dist/{index-D7KjmN8m.cjs → index-BLnxyq8L.cjs} +1 -1
- package/dist/{index-CeYaMyhs.cjs → index-BZN-ifZE.cjs} +1 -1
- package/dist/{index-yOMKz8lD.cjs → index-CS8kqiJC.cjs} +1 -1
- package/dist/{index-jIUtvXF6.js → index-DIyoXwWo.js} +1 -1
- package/dist/{index--nRVi6aV.js → index-DclCrvhX.js} +1 -1
- package/dist/{index-BVwluHCk.js → index-_75ekX9o.js} +1 -1
- package/dist/{lib-BEVtXpEW.cjs → lib-B0OhMW6t.cjs} +4 -4
- package/dist/{lib-CA1k4S8X.js → lib-I1PMgFxW.js} +17 -14
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +6 -3
- package/dist/lib.js +1 -1
- package/dist/network.cjs +1 -1
- package/dist/network.d.ts +2 -2
- package/dist/network.js +3 -3
- package/package.json +30 -30
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.mdx +182 -108
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.spec.ts +24 -17
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.stories.ts +99 -36
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.vue +18 -10
- package/src/components/TableComponent/TableComponent.spec.ts +0 -1
- package/src/network/typedApiClient.ts +3 -2
- package/src/plugins/legalConsent/views/__tests__/LegalConsent.test.ts +9 -4
- package/src/utils/componentRegistry.ts +0 -1
|
@@ -3,12 +3,12 @@ function ze(e, t) {
|
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString: ht } = Object.prototype, { getPrototypeOf:
|
|
6
|
+
const { toString: ht } = Object.prototype, { getPrototypeOf: be } = Object, { iterator: re, toStringTag: Je } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
|
|
7
7
|
const n = ht.call(t);
|
|
8
8
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array,
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array, H = oe("undefined");
|
|
10
10
|
function V(e) {
|
|
11
|
-
return e !== null && !
|
|
11
|
+
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
13
|
const Ve = P("ArrayBuffer");
|
|
14
14
|
function mt(e) {
|
|
@@ -18,7 +18,7 @@ function mt(e) {
|
|
|
18
18
|
const yt = oe("string"), A = oe("function"), We = oe("number"), W = (e) => e !== null && typeof e == "object", bt = (e) => e === !0 || e === !1, Y = (e) => {
|
|
19
19
|
if (se(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const t =
|
|
21
|
+
const t = be(e);
|
|
22
22
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Je in e) && !(re in e);
|
|
23
23
|
}, wt = (e) => {
|
|
24
24
|
if (!W(e) || V(e))
|
|
@@ -28,7 +28,7 @@ const yt = oe("string"), A = oe("function"), We = oe("number"), W = (e) => e !==
|
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
}, Et = P("Date"), gt = P("File"),
|
|
31
|
+
}, Et = P("Date"), gt = P("File"), St = P("Blob"), Rt = P("FileList"), Ot = (e) => W(e) && A(e.pipe), At = (e) => {
|
|
32
32
|
let t;
|
|
33
33
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
|
|
34
34
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -60,11 +60,11 @@ function Ke(e, t) {
|
|
|
60
60
|
return s;
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ve = (e) => !
|
|
63
|
+
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ve = (e) => !H(e) && e !== k;
|
|
64
64
|
function pe() {
|
|
65
65
|
const { caseless: e, skipUndefined: t } = ve(this) && this || {}, n = {}, r = (s, i) => {
|
|
66
66
|
const o = e && Ke(n, i) || i;
|
|
67
|
-
Y(n[o]) && Y(s) ? n[o] = pe(n[o], s) : Y(s) ? n[o] = pe({}, s) : M(s) ? n[o] = s.slice() : (!t || !
|
|
67
|
+
Y(n[o]) && Y(s) ? n[o] = pe(n[o], s) : Y(s) ? n[o] = pe({}, s) : M(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
|
|
68
68
|
};
|
|
69
69
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
70
70
|
arguments[s] && K(arguments[s], r);
|
|
@@ -83,7 +83,7 @@ const _t = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
|
|
|
83
83
|
do {
|
|
84
84
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
85
85
|
o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
|
|
86
|
-
e = n !== !1 &&
|
|
86
|
+
e = n !== !1 && be(e);
|
|
87
87
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
88
88
|
return t;
|
|
89
89
|
}, Dt = (e, t, n) => {
|
|
@@ -99,20 +99,20 @@ const _t = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
|
|
|
99
99
|
for (; t-- > 0; )
|
|
100
100
|
n[t] = e[t];
|
|
101
101
|
return n;
|
|
102
|
-
}, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
102
|
+
}, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && be(Uint8Array)), qt = (e, t) => {
|
|
103
103
|
const r = (e && e[re]).call(e);
|
|
104
104
|
let s;
|
|
105
105
|
for (; (s = r.next()) && !s.done; ) {
|
|
106
106
|
const i = s.value;
|
|
107
107
|
t.call(e, i[0], i[1]);
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, It = (e, t) => {
|
|
110
110
|
let n;
|
|
111
111
|
const r = [];
|
|
112
112
|
for (; (n = e.exec(t)) !== null; )
|
|
113
113
|
r.push(n);
|
|
114
114
|
return r;
|
|
115
|
-
},
|
|
115
|
+
}, Ht = P("HTMLFormElement"), Mt = (e) => e.toLowerCase().replace(
|
|
116
116
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
117
|
function(n, r, s) {
|
|
118
118
|
return r.toUpperCase() + s;
|
|
@@ -162,7 +162,7 @@ const vt = (e) => {
|
|
|
162
162
|
const i = M(r) ? [] : {};
|
|
163
163
|
return K(r, (o, c) => {
|
|
164
164
|
const d = n(o, s + 1);
|
|
165
|
-
!
|
|
165
|
+
!H(d) && (i[c] = d);
|
|
166
166
|
}), t[s] = void 0, i;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -192,16 +192,16 @@ const vt = (e) => {
|
|
|
192
192
|
isRequest: Ct,
|
|
193
193
|
isResponse: Nt,
|
|
194
194
|
isHeaders: Pt,
|
|
195
|
-
isUndefined:
|
|
195
|
+
isUndefined: H,
|
|
196
196
|
isDate: Et,
|
|
197
197
|
isFile: gt,
|
|
198
|
-
isBlob:
|
|
198
|
+
isBlob: St,
|
|
199
199
|
isRegExp: $t,
|
|
200
200
|
isFunction: A,
|
|
201
201
|
isStream: Ot,
|
|
202
202
|
isURLSearchParams: Tt,
|
|
203
203
|
isTypedArray: jt,
|
|
204
|
-
isFileList:
|
|
204
|
+
isFileList: Rt,
|
|
205
205
|
forEach: K,
|
|
206
206
|
merge: pe,
|
|
207
207
|
extend: _t,
|
|
@@ -214,8 +214,8 @@ const vt = (e) => {
|
|
|
214
214
|
endsWith: Dt,
|
|
215
215
|
toArray: kt,
|
|
216
216
|
forEachEntry: qt,
|
|
217
|
-
matchAll:
|
|
218
|
-
isHTMLForm:
|
|
217
|
+
matchAll: It,
|
|
218
|
+
isHTMLForm: Ht,
|
|
219
219
|
hasOwnProperty: Ce,
|
|
220
220
|
hasOwnProp: Ce,
|
|
221
221
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
@@ -350,7 +350,7 @@ function ie(e, t, n) {
|
|
|
350
350
|
convertValue: f,
|
|
351
351
|
isVisitable: he
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function S(u, m) {
|
|
354
354
|
if (!a.isUndefined(u)) {
|
|
355
355
|
if (h.indexOf(u) !== -1)
|
|
356
356
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -361,13 +361,13 @@ function ie(e, t, n) {
|
|
|
361
361
|
a.isString(x) ? x.trim() : x,
|
|
362
362
|
m,
|
|
363
363
|
b
|
|
364
|
-
)) === !0 &&
|
|
364
|
+
)) === !0 && S(E, m ? m.concat(x) : [x]);
|
|
365
365
|
}), h.pop();
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
if (!a.isObject(e))
|
|
369
369
|
throw new TypeError("data must be an object");
|
|
370
|
-
return
|
|
370
|
+
return S(e), t;
|
|
371
371
|
}
|
|
372
372
|
function Pe(e) {
|
|
373
373
|
const t = {
|
|
@@ -383,10 +383,10 @@ function Pe(e) {
|
|
|
383
383
|
return t[r];
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function we(e, t) {
|
|
387
387
|
this._pairs = [], e && ie(e, this, t);
|
|
388
388
|
}
|
|
389
|
-
const et =
|
|
389
|
+
const et = we.prototype;
|
|
390
390
|
et.append = function(t, n) {
|
|
391
391
|
this._pairs.push([t, n]);
|
|
392
392
|
};
|
|
@@ -410,7 +410,7 @@ function tt(e, t, n) {
|
|
|
410
410
|
});
|
|
411
411
|
const s = n && n.serialize;
|
|
412
412
|
let i;
|
|
413
|
-
if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new
|
|
413
|
+
if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new we(t, n).toString(r), i) {
|
|
414
414
|
const o = e.indexOf("#");
|
|
415
415
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
416
416
|
}
|
|
@@ -441,7 +441,7 @@ class Fe {
|
|
|
441
441
|
*
|
|
442
442
|
* @param {Number} id The ID that was returned by `use`
|
|
443
443
|
*
|
|
444
|
-
* @returns {
|
|
444
|
+
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
eject(t) {
|
|
447
447
|
this.handlers[t] && (this.handlers[t] = null);
|
|
@@ -474,7 +474,7 @@ const nt = {
|
|
|
474
474
|
silentJSONParsing: !0,
|
|
475
475
|
forcedJSONParsing: !0,
|
|
476
476
|
clarifyTimeoutError: !1
|
|
477
|
-
}, rn = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
477
|
+
}, rn = typeof URLSearchParams < "u" ? URLSearchParams : we, sn = typeof FormData < "u" ? FormData : null, on = typeof Blob < "u" ? Blob : null, an = {
|
|
478
478
|
isBrowser: !0,
|
|
479
479
|
classes: {
|
|
480
480
|
URLSearchParams: rn,
|
|
@@ -482,22 +482,22 @@ const nt = {
|
|
|
482
482
|
Blob: on
|
|
483
483
|
},
|
|
484
484
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
485
|
-
},
|
|
486
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", un =
|
|
485
|
+
}, Ee = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, cn = Ee && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), ln = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
486
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", un = Ee && window.location.href || "http://localhost", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
487
487
|
__proto__: null,
|
|
488
|
-
hasBrowserEnv:
|
|
488
|
+
hasBrowserEnv: Ee,
|
|
489
489
|
hasStandardBrowserEnv: cn,
|
|
490
490
|
hasStandardBrowserWebWorkerEnv: ln,
|
|
491
491
|
navigator: me,
|
|
492
492
|
origin: un
|
|
493
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
493
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {
|
|
494
494
|
...fn,
|
|
495
495
|
...an
|
|
496
496
|
};
|
|
497
497
|
function dn(e, t) {
|
|
498
|
-
return ie(e, new
|
|
498
|
+
return ie(e, new R.classes.URLSearchParams(), {
|
|
499
499
|
visitor: function(n, r, s, i) {
|
|
500
|
-
return
|
|
500
|
+
return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
501
501
|
},
|
|
502
502
|
...t
|
|
503
503
|
});
|
|
@@ -592,8 +592,8 @@ const v = {
|
|
|
592
592
|
maxContentLength: -1,
|
|
593
593
|
maxBodyLength: -1,
|
|
594
594
|
env: {
|
|
595
|
-
FormData:
|
|
596
|
-
Blob:
|
|
595
|
+
FormData: R.classes.FormData,
|
|
596
|
+
Blob: R.classes.Blob
|
|
597
597
|
},
|
|
598
598
|
validateStatus: function(t) {
|
|
599
599
|
return t >= 200 && t < 300;
|
|
@@ -661,7 +661,7 @@ function ue(e, t, n, r, s) {
|
|
|
661
661
|
function gn(e) {
|
|
662
662
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Sn(e, t) {
|
|
665
665
|
const n = a.toCamelCase(" " + t);
|
|
666
666
|
["get", "set", "has"].forEach((r) => {
|
|
667
667
|
Object.defineProperty(e, r + n, {
|
|
@@ -793,7 +793,7 @@ let T = class {
|
|
|
793
793
|
}).accessors, s = this.prototype;
|
|
794
794
|
function i(o) {
|
|
795
795
|
const c = J(o);
|
|
796
|
-
r[c] || (
|
|
796
|
+
r[c] || (Sn(s, o), r[c] = !0);
|
|
797
797
|
}
|
|
798
798
|
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
799
799
|
}
|
|
@@ -835,7 +835,7 @@ function ot(e, t, n) {
|
|
|
835
835
|
n
|
|
836
836
|
));
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Rn(e) {
|
|
839
839
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
840
840
|
return t && t[1] || "";
|
|
841
841
|
}
|
|
@@ -851,8 +851,8 @@ function On(e, t) {
|
|
|
851
851
|
b += n[h++], h = h % e;
|
|
852
852
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
|
|
853
853
|
return;
|
|
854
|
-
const
|
|
855
|
-
return
|
|
854
|
+
const S = l && f - l;
|
|
855
|
+
return S ? Math.round(b * 1e3 / S) : void 0;
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
function An(e, t) {
|
|
@@ -893,22 +893,24 @@ const ne = (e, t, n = 3) => {
|
|
|
893
893
|
total: e,
|
|
894
894
|
loaded: r
|
|
895
895
|
}), t[1]];
|
|
896
|
-
}, Le = (e) => (...t) => a.asap(() => e(...t)), Tn =
|
|
897
|
-
new URL(
|
|
898
|
-
|
|
899
|
-
) : () => !0, xn =
|
|
896
|
+
}, Le = (e) => (...t) => a.asap(() => e(...t)), Tn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
897
|
+
new URL(R.origin),
|
|
898
|
+
R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
|
|
899
|
+
) : () => !0, xn = R.hasStandardBrowserEnv ? (
|
|
900
900
|
// Standard browser envs support document.cookie
|
|
901
901
|
{
|
|
902
|
-
write(e, t, n, r, s, i) {
|
|
903
|
-
|
|
904
|
-
|
|
902
|
+
write(e, t, n, r, s, i, o) {
|
|
903
|
+
if (typeof document > "u") return;
|
|
904
|
+
const c = [`${e}=${encodeURIComponent(t)}`];
|
|
905
|
+
a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
|
|
905
906
|
},
|
|
906
907
|
read(e) {
|
|
907
|
-
|
|
908
|
-
|
|
908
|
+
if (typeof document > "u") return null;
|
|
909
|
+
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
910
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
909
911
|
},
|
|
910
912
|
remove(e) {
|
|
911
|
-
this.write(e, "", Date.now() - 864e5);
|
|
913
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
912
914
|
}
|
|
913
915
|
}
|
|
914
916
|
) : (
|
|
@@ -1005,7 +1007,7 @@ const at = (e) => {
|
|
|
1005
1007
|
"Authorization",
|
|
1006
1008
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1007
1009
|
), a.isFormData(n)) {
|
|
1008
|
-
if (
|
|
1010
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
1009
1011
|
o.setContentType(void 0);
|
|
1010
1012
|
else if (a.isFunction(n.getHeaders)) {
|
|
1011
1013
|
const d = n.getHeaders(), f = ["content-type", "content-length"];
|
|
@@ -1014,7 +1016,7 @@ const at = (e) => {
|
|
|
1014
1016
|
});
|
|
1015
1017
|
}
|
|
1016
1018
|
}
|
|
1017
|
-
if (
|
|
1019
|
+
if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Tn(t.url))) {
|
|
1018
1020
|
const d = s && i && xn.read(i);
|
|
1019
1021
|
d && o.set(s, d);
|
|
1020
1022
|
}
|
|
@@ -1024,9 +1026,9 @@ const at = (e) => {
|
|
|
1024
1026
|
const s = at(e);
|
|
1025
1027
|
let i = s.data;
|
|
1026
1028
|
const o = T.from(s.headers).normalize();
|
|
1027
|
-
let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b,
|
|
1029
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, S, u;
|
|
1028
1030
|
function m() {
|
|
1029
|
-
|
|
1031
|
+
S && S(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1030
1032
|
}
|
|
1031
1033
|
let p = new XMLHttpRequest();
|
|
1032
1034
|
p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
|
|
@@ -1067,11 +1069,11 @@ const at = (e) => {
|
|
|
1067
1069
|
)), p = null;
|
|
1068
1070
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(O, N) {
|
|
1069
1071
|
p.setRequestHeader(N, O);
|
|
1070
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h,
|
|
1072
|
+
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, S] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (g) => {
|
|
1071
1073
|
p && (r(!g || g.type ? new $(null, e, p) : g), p.abort(), p = null);
|
|
1072
1074
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1073
|
-
const x =
|
|
1074
|
-
if (x &&
|
|
1075
|
+
const x = Rn(s.url);
|
|
1076
|
+
if (x && R.protocols.indexOf(x) === -1) {
|
|
1075
1077
|
r(new y("Unsupported protocol " + x + ":", y.ERR_BAD_REQUEST, e));
|
|
1076
1078
|
return;
|
|
1077
1079
|
}
|
|
@@ -1163,7 +1165,7 @@ const at = (e) => {
|
|
|
1163
1165
|
}))(a.global), {
|
|
1164
1166
|
ReadableStream: je,
|
|
1165
1167
|
TextEncoder: qe
|
|
1166
|
-
} = a.global,
|
|
1168
|
+
} = a.global, Ie = (e, ...t) => {
|
|
1167
1169
|
try {
|
|
1168
1170
|
return !!e(...t);
|
|
1169
1171
|
} catch {
|
|
@@ -1176,9 +1178,9 @@ const at = (e) => {
|
|
|
1176
1178
|
const { fetch: t, Request: n, Response: r } = e, s = t ? Z(t) : typeof fetch == "function", i = Z(n), o = Z(r);
|
|
1177
1179
|
if (!s)
|
|
1178
1180
|
return !1;
|
|
1179
|
-
const c = s && Z(je), d = s && (typeof qe == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new qe()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c &&
|
|
1181
|
+
const c = s && Z(je), d = s && (typeof qe == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new qe()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && Ie(() => {
|
|
1180
1182
|
let u = !1;
|
|
1181
|
-
const m = new n(
|
|
1183
|
+
const m = new n(R.origin, {
|
|
1182
1184
|
body: new je(),
|
|
1183
1185
|
method: "POST",
|
|
1184
1186
|
get duplex() {
|
|
@@ -1186,7 +1188,7 @@ const at = (e) => {
|
|
|
1186
1188
|
}
|
|
1187
1189
|
}).headers.has("Content-Type");
|
|
1188
1190
|
return u && !m;
|
|
1189
|
-
}), l = o && c &&
|
|
1191
|
+
}), l = o && c && Ie(() => a.isReadableStream(new r("").body)), h = {
|
|
1190
1192
|
stream: l && ((u) => u.body)
|
|
1191
1193
|
};
|
|
1192
1194
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
@@ -1203,7 +1205,7 @@ const at = (e) => {
|
|
|
1203
1205
|
if (a.isBlob(u))
|
|
1204
1206
|
return u.size;
|
|
1205
1207
|
if (a.isSpecCompliantForm(u))
|
|
1206
|
-
return (await new n(
|
|
1208
|
+
return (await new n(R.origin, {
|
|
1207
1209
|
method: "POST",
|
|
1208
1210
|
body: u
|
|
1209
1211
|
}).arrayBuffer()).byteLength;
|
|
@@ -1211,7 +1213,7 @@ const at = (e) => {
|
|
|
1211
1213
|
return u.byteLength;
|
|
1212
1214
|
if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
|
|
1213
1215
|
return (await d(u)).byteLength;
|
|
1214
|
-
},
|
|
1216
|
+
}, S = async (u, m) => {
|
|
1215
1217
|
const p = a.toFiniteNumber(u.getContentLength());
|
|
1216
1218
|
return p ?? b(m);
|
|
1217
1219
|
};
|
|
@@ -1228,8 +1230,8 @@ const at = (e) => {
|
|
|
1228
1230
|
responseType: C,
|
|
1229
1231
|
headers: ce,
|
|
1230
1232
|
withCredentials: X = "same-origin",
|
|
1231
|
-
fetchOptions:
|
|
1232
|
-
} = at(u),
|
|
1233
|
+
fetchOptions: Se
|
|
1234
|
+
} = at(u), Re = t || fetch;
|
|
1233
1235
|
C = C ? (C + "").toLowerCase() : "text";
|
|
1234
1236
|
let G = _n([x, g && g.toAbortSignal()], O), z = null;
|
|
1235
1237
|
const D = G && G.unsubscribe && (() => {
|
|
@@ -1237,13 +1239,13 @@ const at = (e) => {
|
|
|
1237
1239
|
});
|
|
1238
1240
|
let Oe;
|
|
1239
1241
|
try {
|
|
1240
|
-
if (B && f && p !== "get" && p !== "head" && (Oe = await
|
|
1242
|
+
if (B && f && p !== "get" && p !== "head" && (Oe = await S(ce, E)) !== 0) {
|
|
1241
1243
|
let L = new n(m, {
|
|
1242
1244
|
method: "POST",
|
|
1243
1245
|
body: E,
|
|
1244
1246
|
duplex: "half"
|
|
1245
|
-
}),
|
|
1246
|
-
if (a.isFormData(E) && (
|
|
1247
|
+
}), I;
|
|
1248
|
+
if (a.isFormData(E) && (I = L.headers.get("content-type")) && ce.setContentType(I), L.body) {
|
|
1247
1249
|
const [le, Q] = Ue(
|
|
1248
1250
|
Oe,
|
|
1249
1251
|
ne(Le(B))
|
|
@@ -1253,7 +1255,7 @@ const at = (e) => {
|
|
|
1253
1255
|
}
|
|
1254
1256
|
a.isString(X) || (X = X ? "include" : "omit");
|
|
1255
1257
|
const F = i && "credentials" in n.prototype, Ae = {
|
|
1256
|
-
...
|
|
1258
|
+
...Se,
|
|
1257
1259
|
signal: G,
|
|
1258
1260
|
method: p.toUpperCase(),
|
|
1259
1261
|
headers: ce.normalize().toJSON(),
|
|
@@ -1262,15 +1264,15 @@ const at = (e) => {
|
|
|
1262
1264
|
credentials: F ? X : void 0
|
|
1263
1265
|
};
|
|
1264
1266
|
z = i && new n(m, Ae);
|
|
1265
|
-
let U = await (i ?
|
|
1267
|
+
let U = await (i ? Re(z, Se) : Re(m, Ae));
|
|
1266
1268
|
const Te = l && (C === "stream" || C === "response");
|
|
1267
1269
|
if (l && (N || Te && D)) {
|
|
1268
1270
|
const L = {};
|
|
1269
1271
|
["status", "statusText", "headers"].forEach((xe) => {
|
|
1270
1272
|
L[xe] = U[xe];
|
|
1271
1273
|
});
|
|
1272
|
-
const
|
|
1273
|
-
|
|
1274
|
+
const I = a.toFiniteNumber(U.headers.get("content-length")), [le, Q] = N && Ue(
|
|
1275
|
+
I,
|
|
1274
1276
|
ne(Le(N), !0)
|
|
1275
1277
|
) || [];
|
|
1276
1278
|
U = new r(
|
|
@@ -1282,8 +1284,8 @@ const at = (e) => {
|
|
|
1282
1284
|
}
|
|
1283
1285
|
C = C || "text";
|
|
1284
1286
|
let pt = await h[a.findKey(h, C) || "text"](U, u);
|
|
1285
|
-
return !Te && D && D(), await new Promise((L,
|
|
1286
|
-
ot(L,
|
|
1287
|
+
return !Te && D && D(), await new Promise((L, I) => {
|
|
1288
|
+
ot(L, I, {
|
|
1287
1289
|
data: pt,
|
|
1288
1290
|
headers: T.from(U.headers),
|
|
1289
1291
|
status: U.status,
|
|
@@ -1302,7 +1304,7 @@ const at = (e) => {
|
|
|
1302
1304
|
}
|
|
1303
1305
|
};
|
|
1304
1306
|
}, jn = /* @__PURE__ */ new Map(), ct = (e) => {
|
|
1305
|
-
let t = e
|
|
1307
|
+
let t = e && e.env || {};
|
|
1306
1308
|
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1307
1309
|
r,
|
|
1308
1310
|
s,
|
|
@@ -1314,14 +1316,14 @@ const at = (e) => {
|
|
|
1314
1316
|
return f;
|
|
1315
1317
|
};
|
|
1316
1318
|
ct();
|
|
1317
|
-
const
|
|
1319
|
+
const ge = {
|
|
1318
1320
|
http: Yt,
|
|
1319
1321
|
xhr: Fn,
|
|
1320
1322
|
fetch: {
|
|
1321
1323
|
get: ct
|
|
1322
1324
|
}
|
|
1323
1325
|
};
|
|
1324
|
-
a.forEach(
|
|
1326
|
+
a.forEach(ge, (e, t) => {
|
|
1325
1327
|
if (e) {
|
|
1326
1328
|
try {
|
|
1327
1329
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1330,36 +1332,46 @@ a.forEach(ye, (e, t) => {
|
|
|
1330
1332
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1331
1333
|
}
|
|
1332
1334
|
});
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
` + o.map(
|
|
1354
|
-
`) : " " +
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1335
|
+
const He = (e) => `- ${e}`, qn = (e) => a.isFunction(e) || e === null || e === !1;
|
|
1336
|
+
function In(e, t) {
|
|
1337
|
+
e = a.isArray(e) ? e : [e];
|
|
1338
|
+
const { length: n } = e;
|
|
1339
|
+
let r, s;
|
|
1340
|
+
const i = {};
|
|
1341
|
+
for (let o = 0; o < n; o++) {
|
|
1342
|
+
r = e[o];
|
|
1343
|
+
let c;
|
|
1344
|
+
if (s = r, !qn(r) && (s = ge[(c = String(r)).toLowerCase()], s === void 0))
|
|
1345
|
+
throw new y(`Unknown adapter '${c}'`);
|
|
1346
|
+
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1347
|
+
break;
|
|
1348
|
+
i[c || "#" + o] = s;
|
|
1349
|
+
}
|
|
1350
|
+
if (!s) {
|
|
1351
|
+
const o = Object.entries(i).map(
|
|
1352
|
+
([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1353
|
+
);
|
|
1354
|
+
let c = n ? o.length > 1 ? `since :
|
|
1355
|
+
` + o.map(He).join(`
|
|
1356
|
+
`) : " " + He(o[0]) : "as no adapter specified";
|
|
1357
|
+
throw new y(
|
|
1358
|
+
"There is no suitable adapter to dispatch the request " + c,
|
|
1359
|
+
"ERR_NOT_SUPPORT"
|
|
1360
|
+
);
|
|
1361
|
+
}
|
|
1362
|
+
return s;
|
|
1363
|
+
}
|
|
1364
|
+
const lt = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
1367
|
+
* @type {Function}
|
|
1368
|
+
*/
|
|
1369
|
+
getAdapter: In,
|
|
1370
|
+
/**
|
|
1371
|
+
* Exposes all known adapters
|
|
1372
|
+
* @type {Object<string, Function|Object>}
|
|
1373
|
+
*/
|
|
1374
|
+
adapters: ge
|
|
1363
1375
|
};
|
|
1364
1376
|
function de(e) {
|
|
1365
1377
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1383,7 +1395,7 @@ function Me(e) {
|
|
|
1383
1395
|
), r.response.headers = T.from(r.response.headers))), Promise.reject(r);
|
|
1384
1396
|
});
|
|
1385
1397
|
}
|
|
1386
|
-
const ut = "1.
|
|
1398
|
+
const ut = "1.13.1", ae = {};
|
|
1387
1399
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1388
1400
|
ae[e] = function(r) {
|
|
1389
1401
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1507,18 +1519,18 @@ let j = class {
|
|
|
1507
1519
|
return l;
|
|
1508
1520
|
}
|
|
1509
1521
|
b = c.length;
|
|
1510
|
-
let
|
|
1522
|
+
let S = n;
|
|
1511
1523
|
for (; h < b; ) {
|
|
1512
1524
|
const u = c[h++], m = c[h++];
|
|
1513
1525
|
try {
|
|
1514
|
-
|
|
1526
|
+
S = u(S);
|
|
1515
1527
|
} catch (p) {
|
|
1516
1528
|
m.call(this, p);
|
|
1517
1529
|
break;
|
|
1518
1530
|
}
|
|
1519
1531
|
}
|
|
1520
1532
|
try {
|
|
1521
|
-
l = Me.call(this,
|
|
1533
|
+
l = Me.call(this, S);
|
|
1522
1534
|
} catch (u) {
|
|
1523
1535
|
return Promise.reject(u);
|
|
1524
1536
|
}
|
|
@@ -1556,7 +1568,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1556
1568
|
}
|
|
1557
1569
|
j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
|
|
1558
1570
|
});
|
|
1559
|
-
let
|
|
1571
|
+
let Mn = class ft {
|
|
1560
1572
|
constructor(t) {
|
|
1561
1573
|
if (typeof t != "function")
|
|
1562
1574
|
throw new TypeError("executor must be a function.");
|
|
@@ -1629,15 +1641,15 @@ let In = class ft {
|
|
|
1629
1641
|
};
|
|
1630
1642
|
}
|
|
1631
1643
|
};
|
|
1632
|
-
function
|
|
1644
|
+
function $n(e) {
|
|
1633
1645
|
return function(n) {
|
|
1634
1646
|
return e.apply(null, n);
|
|
1635
1647
|
};
|
|
1636
1648
|
}
|
|
1637
|
-
function
|
|
1649
|
+
function zn(e) {
|
|
1638
1650
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1639
1651
|
}
|
|
1640
|
-
const
|
|
1652
|
+
const ye = {
|
|
1641
1653
|
Continue: 100,
|
|
1642
1654
|
SwitchingProtocols: 101,
|
|
1643
1655
|
Processing: 102,
|
|
@@ -1700,10 +1712,16 @@ const be = {
|
|
|
1700
1712
|
InsufficientStorage: 507,
|
|
1701
1713
|
LoopDetected: 508,
|
|
1702
1714
|
NotExtended: 510,
|
|
1703
|
-
NetworkAuthenticationRequired: 511
|
|
1715
|
+
NetworkAuthenticationRequired: 511,
|
|
1716
|
+
WebServerIsDown: 521,
|
|
1717
|
+
ConnectionTimedOut: 522,
|
|
1718
|
+
OriginIsUnreachable: 523,
|
|
1719
|
+
TimeoutOccurred: 524,
|
|
1720
|
+
SslHandshakeFailed: 525,
|
|
1721
|
+
InvalidSslCertificate: 526
|
|
1704
1722
|
};
|
|
1705
|
-
Object.entries(
|
|
1706
|
-
|
|
1723
|
+
Object.entries(ye).forEach(([e, t]) => {
|
|
1724
|
+
ye[t] = e;
|
|
1707
1725
|
});
|
|
1708
1726
|
function dt(e) {
|
|
1709
1727
|
const t = new j(e), n = ze(j.prototype.request, t);
|
|
@@ -1714,7 +1732,7 @@ function dt(e) {
|
|
|
1714
1732
|
const w = dt(v);
|
|
1715
1733
|
w.Axios = j;
|
|
1716
1734
|
w.CanceledError = $;
|
|
1717
|
-
w.CancelToken =
|
|
1735
|
+
w.CancelToken = Mn;
|
|
1718
1736
|
w.isCancel = st;
|
|
1719
1737
|
w.VERSION = ut;
|
|
1720
1738
|
w.toFormData = ie;
|
|
@@ -1723,37 +1741,37 @@ w.Cancel = w.CanceledError;
|
|
|
1723
1741
|
w.all = function(t) {
|
|
1724
1742
|
return Promise.all(t);
|
|
1725
1743
|
};
|
|
1726
|
-
w.spread =
|
|
1727
|
-
w.isAxiosError =
|
|
1744
|
+
w.spread = $n;
|
|
1745
|
+
w.isAxiosError = zn;
|
|
1728
1746
|
w.mergeConfig = q;
|
|
1729
1747
|
w.AxiosHeaders = T;
|
|
1730
1748
|
w.formToJSON = (e) => rt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1731
1749
|
w.getAdapter = lt.getAdapter;
|
|
1732
|
-
w.HttpStatusCode =
|
|
1750
|
+
w.HttpStatusCode = ye;
|
|
1733
1751
|
w.default = w;
|
|
1734
1752
|
const {
|
|
1735
|
-
Axios:
|
|
1736
|
-
AxiosError:
|
|
1737
|
-
CanceledError:
|
|
1738
|
-
isCancel:
|
|
1739
|
-
CancelToken:
|
|
1740
|
-
VERSION:
|
|
1741
|
-
all:
|
|
1742
|
-
Cancel:
|
|
1743
|
-
isAxiosError:
|
|
1744
|
-
spread:
|
|
1745
|
-
toFormData:
|
|
1746
|
-
AxiosHeaders:
|
|
1747
|
-
HttpStatusCode:
|
|
1748
|
-
formToJSON:
|
|
1749
|
-
getAdapter:
|
|
1750
|
-
mergeConfig:
|
|
1751
|
-
} = w,
|
|
1752
|
-
...
|
|
1753
|
+
Axios: Kn,
|
|
1754
|
+
AxiosError: vn,
|
|
1755
|
+
CanceledError: Xn,
|
|
1756
|
+
isCancel: Gn,
|
|
1757
|
+
CancelToken: Qn,
|
|
1758
|
+
VERSION: Zn,
|
|
1759
|
+
all: Yn,
|
|
1760
|
+
Cancel: er,
|
|
1761
|
+
isAxiosError: tr,
|
|
1762
|
+
spread: nr,
|
|
1763
|
+
toFormData: rr,
|
|
1764
|
+
AxiosHeaders: sr,
|
|
1765
|
+
HttpStatusCode: or,
|
|
1766
|
+
formToJSON: ir,
|
|
1767
|
+
getAdapter: ar,
|
|
1768
|
+
mergeConfig: cr
|
|
1769
|
+
} = w, Jn = {}, lr = w.create({
|
|
1770
|
+
...Jn
|
|
1753
1771
|
});
|
|
1754
1772
|
console.warn(
|
|
1755
1773
|
'Attempting to create the axios singleton, but BACKEND_BASE_URL is empty! You need to set it up with axiosInstance.defaults.baseURL = "..."'
|
|
1756
1774
|
);
|
|
1757
1775
|
export {
|
|
1758
|
-
|
|
1776
|
+
lr as a
|
|
1759
1777
|
};
|