@ezpaarse-project/ezreeport-sdk-js 1.0.0-beta.5 → 1.0.0-beta.6
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/README.md +19 -752
- package/dist/browser/ezreeport-sdk-js.mjs +529 -495
- package/dist/browser/ezreeport-sdk-js.mjs.map +1 -1
- package/dist/browser/ezreeport-sdk-js.umd.js +3 -3
- package/dist/browser/ezreeport-sdk-js.umd.js.map +1 -1
- package/dist/node/package.json +7 -9
- package/dist/node/src/index.js +3 -2
- package/dist/node/src/index.js.map +1 -1
- package/dist/node/src/modules/auth.js.map +1 -1
- package/dist/node/src/modules/crons.js +12 -8
- package/dist/node/src/modules/crons.js.map +1 -1
- package/dist/node/src/modules/queues.js +23 -12
- package/dist/node/src/modules/queues.js.map +1 -1
- package/dist/node/src/modules/reports.js +10 -9
- package/dist/node/src/modules/reports.js.map +1 -1
- package/dist/node/src/modules/tasks.base.js.map +1 -1
- package/dist/node/src/modules/tasks.js +59 -21
- package/dist/node/src/modules/tasks.js.map +1 -1
- package/dist/node/src/modules/tasks.public.js +3 -1
- package/dist/node/src/modules/tasks.public.js.map +1 -1
- package/dist/node/{modules/history.js → src/modules/tasksActivity.js} +13 -11
- package/dist/node/src/modules/tasksActivity.js.map +1 -0
- package/dist/node/src/modules/tasksActivity.public.js +6 -0
- package/dist/node/src/modules/tasksActivity.public.js.map +1 -0
- package/dist/node/src/modules/templates.js +23 -22
- package/dist/node/src/modules/templates.js.map +1 -1
- package/dist/types/{index.d.ts → src/index.d.ts} +5 -2
- package/dist/types/{lib → src/lib}/promises.d.ts +1 -0
- package/dist/types/{modules → src/modules}/crons.d.ts +8 -8
- package/dist/types/{modules → src/modules}/queues.d.ts +12 -12
- package/dist/types/{modules → src/modules}/reports.d.ts +15 -14
- package/dist/types/{modules → src/modules}/tasks.d.ts +65 -23
- package/dist/types/src/modules/tasks.public.d.ts +2 -0
- package/dist/types/src/modules/tasksActivity.d.ts +38 -0
- package/dist/types/src/modules/tasksActivity.public.d.ts +5 -0
- package/dist/types/{modules → src/modules}/templates.d.ts +37 -21
- package/package.json +12 -10
- package/dist/node/index.js +0 -38
- package/dist/node/index.js.map +0 -1
- package/dist/node/lib/axios.js +0 -91
- package/dist/node/lib/axios.js.map +0 -1
- package/dist/node/lib/promises.js +0 -26
- package/dist/node/lib/promises.js.map +0 -1
- package/dist/node/lib/utils.js +0 -24
- package/dist/node/lib/utils.js.map +0 -1
- package/dist/node/modules/auth.js +0 -61
- package/dist/node/modules/auth.js.map +0 -1
- package/dist/node/modules/crons.js +0 -105
- package/dist/node/modules/crons.js.map +0 -1
- package/dist/node/modules/health.js +0 -52
- package/dist/node/modules/health.js.map +0 -1
- package/dist/node/modules/history.js.map +0 -1
- package/dist/node/modules/institutions.js +0 -61
- package/dist/node/modules/institutions.js.map +0 -1
- package/dist/node/modules/queues.js +0 -128
- package/dist/node/modules/queues.js.map +0 -1
- package/dist/node/modules/reports.js +0 -261
- package/dist/node/modules/reports.js.map +0 -1
- package/dist/node/modules/setup.js +0 -35
- package/dist/node/modules/setup.js.map +0 -1
- package/dist/node/modules/tasks.js +0 -187
- package/dist/node/modules/tasks.js.map +0 -1
- package/dist/node/modules/templates.js +0 -28
- package/dist/node/modules/templates.js.map +0 -1
- package/dist/types/modules/institutions.d.ts +0 -56
- package/dist/types/modules/tasks.public.d.ts +0 -2
- /package/dist/types/{lib → src/lib}/axios.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/utils.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/auth.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/auth.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/crons.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/health.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/health.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/history.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/history.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/namespaces.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/namespaces.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/queues.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/reports.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/setup.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/setup.public.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/tasks.base.d.ts +0 -0
- /package/dist/types/{modules → src/modules}/templates.public.d.ts +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _t(e) {
|
|
2
2
|
if (e === null || e === !0 || e === !1)
|
|
3
3
|
return NaN;
|
|
4
4
|
var t = Number(e);
|
|
5
5
|
return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Ot(e, t) {
|
|
8
8
|
if (t.length < e)
|
|
9
9
|
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
11
|
+
var Fe = 6e4, ke = 36e5;
|
|
12
|
+
function b(e, t) {
|
|
13
13
|
var n;
|
|
14
|
-
|
|
15
|
-
var r =
|
|
14
|
+
Ot(1, arguments);
|
|
15
|
+
var r = _t((n = t == null ? void 0 : t.additionalDigits) !== null && n !== void 0 ? n : 2);
|
|
16
16
|
if (r !== 2 && r !== 1 && r !== 0)
|
|
17
17
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
18
18
|
if (!(typeof e == "string" || Object.prototype.toString.call(e) === "[object String]"))
|
|
19
19
|
return /* @__PURE__ */ new Date(NaN);
|
|
20
|
-
var s =
|
|
20
|
+
var s = Ct(e), o;
|
|
21
21
|
if (s.date) {
|
|
22
22
|
var i = Pt(s.date, r);
|
|
23
23
|
o = Dt(i.restDateString, i.year);
|
|
@@ -40,8 +40,8 @@ var q = {
|
|
|
40
40
|
dateTimeDelimiter: /[T ]/,
|
|
41
41
|
timeZoneDelimiter: /[Z ]/i,
|
|
42
42
|
timezone: /([Z+-].*)$/
|
|
43
|
-
},
|
|
44
|
-
function
|
|
43
|
+
}, Lt = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Nt = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, xt = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
44
|
+
function Ct(e) {
|
|
45
45
|
var t = {}, n = e.split(q.dateTimeDelimiter), r;
|
|
46
46
|
if (n.length > 2)
|
|
47
47
|
return t;
|
|
@@ -67,24 +67,24 @@ function Pt(e, t) {
|
|
|
67
67
|
function Dt(e, t) {
|
|
68
68
|
if (t === null)
|
|
69
69
|
return /* @__PURE__ */ new Date(NaN);
|
|
70
|
-
var n = e.match(
|
|
70
|
+
var n = e.match(Lt);
|
|
71
71
|
if (!n)
|
|
72
72
|
return /* @__PURE__ */ new Date(NaN);
|
|
73
|
-
var r = !!n[4], s =
|
|
73
|
+
var r = !!n[4], s = k(n[1]), o = k(n[2]) - 1, i = k(n[3]), c = k(n[4]), f = k(n[5]) - 1;
|
|
74
74
|
if (r)
|
|
75
|
-
return Mt(t, c, f) ?
|
|
75
|
+
return Mt(t, c, f) ? kt(t, c, f) : /* @__PURE__ */ new Date(NaN);
|
|
76
76
|
var u = /* @__PURE__ */ new Date(0);
|
|
77
|
-
return !
|
|
77
|
+
return !jt(t, o, i) || !Bt(t, s) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, o, Math.max(s, i)), u);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function k(e) {
|
|
80
80
|
return e ? parseInt(e) : 1;
|
|
81
81
|
}
|
|
82
82
|
function $t(e) {
|
|
83
|
-
var t = e.match(
|
|
83
|
+
var t = e.match(Nt);
|
|
84
84
|
if (!t)
|
|
85
85
|
return NaN;
|
|
86
86
|
var n = se(t[1]), r = se(t[2]), s = se(t[3]);
|
|
87
|
-
return
|
|
87
|
+
return zt(n, r, s) ? n * ke + r * Fe + s * 1e3 : NaN;
|
|
88
88
|
}
|
|
89
89
|
function se(e) {
|
|
90
90
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
@@ -92,32 +92,32 @@ function se(e) {
|
|
|
92
92
|
function Ft(e) {
|
|
93
93
|
if (e === "Z")
|
|
94
94
|
return 0;
|
|
95
|
-
var t = e.match(
|
|
95
|
+
var t = e.match(xt);
|
|
96
96
|
if (!t)
|
|
97
97
|
return 0;
|
|
98
98
|
var n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), s = t[3] && parseInt(t[3]) || 0;
|
|
99
|
-
return Ht(r, s) ? n * (r *
|
|
99
|
+
return Ht(r, s) ? n * (r * ke + s * Fe) : NaN;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function kt(e, t, n) {
|
|
102
102
|
var r = /* @__PURE__ */ new Date(0);
|
|
103
103
|
r.setUTCFullYear(e, 0, 4);
|
|
104
104
|
var s = r.getUTCDay() || 7, o = (t - 1) * 7 + n + 1 - s;
|
|
105
105
|
return r.setUTCDate(r.getUTCDate() + o), r;
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
107
|
+
var Ut = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
108
|
+
function Ue(e) {
|
|
109
109
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return t >= 0 && t <= 11 && n >= 1 && n <= (
|
|
111
|
+
function jt(e, t, n) {
|
|
112
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (Ut[t] || (Ue(e) ? 29 : 28));
|
|
113
113
|
}
|
|
114
114
|
function Bt(e, t) {
|
|
115
|
-
return t >= 1 && t <= (
|
|
115
|
+
return t >= 1 && t <= (Ue(e) ? 366 : 365);
|
|
116
116
|
}
|
|
117
117
|
function Mt(e, t, n) {
|
|
118
118
|
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function zt(e, t, n) {
|
|
121
121
|
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
122
122
|
}
|
|
123
123
|
function Ht(e, t) {
|
|
@@ -128,29 +128,29 @@ function je(e, t) {
|
|
|
128
128
|
return e.apply(t, arguments);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
const { toString:
|
|
132
|
-
const n =
|
|
131
|
+
const { toString: It } = Object.prototype, { getPrototypeOf: pe } = Object, Q = ((e) => (t) => {
|
|
132
|
+
const n = It.call(t);
|
|
133
133
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
134
|
-
})(/* @__PURE__ */ Object.create(null)), R = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Z = (e) => (t) => typeof t === e, { isArray: D } = Array,
|
|
134
|
+
})(/* @__PURE__ */ Object.create(null)), R = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Z = (e) => (t) => typeof t === e, { isArray: D } = Array, j = Z("undefined");
|
|
135
135
|
function qt(e) {
|
|
136
|
-
return e !== null && !
|
|
136
|
+
return e !== null && !j(e) && e.constructor !== null && !j(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const Be = R("ArrayBuffer");
|
|
139
139
|
function Jt(e) {
|
|
140
140
|
let t;
|
|
141
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
141
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Be(e.buffer), t;
|
|
142
142
|
}
|
|
143
|
-
const Wt = Z("string"),
|
|
143
|
+
const Wt = Z("string"), A = Z("function"), Me = Z("number"), X = (e) => e !== null && typeof e == "object", Kt = (e) => e === !0 || e === !1, J = (e) => {
|
|
144
144
|
if (Q(e) !== "object")
|
|
145
145
|
return !1;
|
|
146
146
|
const t = pe(e);
|
|
147
147
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
148
|
-
}, Vt = R("Date"), Yt = R("File"), Gt = R("Blob"), Qt = R("FileList"), Zt = (e) => X(e) &&
|
|
148
|
+
}, Vt = R("Date"), Yt = R("File"), Gt = R("Blob"), Qt = R("FileList"), Zt = (e) => X(e) && A(e.pipe), Xt = (e) => {
|
|
149
149
|
let t;
|
|
150
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
151
|
-
t === "object" &&
|
|
150
|
+
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Q(e)) === "formdata" || // detect form-data instance
|
|
151
|
+
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
152
152
|
}, en = R("URLSearchParams"), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
153
|
-
function
|
|
153
|
+
function B(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
154
154
|
if (e === null || typeof e > "u")
|
|
155
155
|
return;
|
|
156
156
|
let r, s;
|
|
@@ -164,7 +164,7 @@ function U(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
164
164
|
c = o[r], t.call(null, e[c], c, e);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ze(e, t) {
|
|
168
168
|
t = t.toLowerCase();
|
|
169
169
|
const n = Object.keys(e);
|
|
170
170
|
let r = n.length, s;
|
|
@@ -173,18 +173,18 @@ function Be(e, t) {
|
|
|
173
173
|
return s;
|
|
174
174
|
return null;
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const He = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ie = (e) => !j(e) && e !== He;
|
|
177
177
|
function ue() {
|
|
178
178
|
const { caseless: e } = Ie(this) && this || {}, t = {}, n = (r, s) => {
|
|
179
|
-
const o = e &&
|
|
179
|
+
const o = e && ze(t, s) || s;
|
|
180
180
|
J(t[o]) && J(r) ? t[o] = ue(t[o], r) : J(r) ? t[o] = ue({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
|
|
181
181
|
};
|
|
182
182
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
183
|
-
arguments[r] &&
|
|
183
|
+
arguments[r] && B(arguments[r], n);
|
|
184
184
|
return t;
|
|
185
185
|
}
|
|
186
|
-
const nn = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
187
|
-
n &&
|
|
186
|
+
const nn = (e, t, n, { allOwnKeys: r } = {}) => (B(t, (s, o) => {
|
|
187
|
+
n && A(s) ? e[o] = je(s, n) : e[o] = s;
|
|
188
188
|
}, { allOwnKeys: r }), e), rn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sn = (e, t, n, r) => {
|
|
189
189
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
190
190
|
value: t.prototype
|
|
@@ -210,7 +210,7 @@ const nn = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
|
|
|
210
210
|
if (D(e))
|
|
211
211
|
return e;
|
|
212
212
|
let t = e.length;
|
|
213
|
-
if (!
|
|
213
|
+
if (!Me(t))
|
|
214
214
|
return null;
|
|
215
215
|
const n = new Array(t);
|
|
216
216
|
for (; t-- > 0; )
|
|
@@ -234,17 +234,17 @@ const nn = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
|
|
|
234
234
|
function(n, r, s) {
|
|
235
235
|
return r.toUpperCase() + s;
|
|
236
236
|
}
|
|
237
|
-
),
|
|
237
|
+
), Te = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), hn = R("RegExp"), qe = (e, t) => {
|
|
238
238
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
239
|
-
|
|
239
|
+
B(n, (s, o) => {
|
|
240
240
|
t(s, o, e) !== !1 && (r[o] = s);
|
|
241
241
|
}), Object.defineProperties(e, r);
|
|
242
242
|
}, mn = (e) => {
|
|
243
|
-
|
|
244
|
-
if (
|
|
243
|
+
qe(e, (t, n) => {
|
|
244
|
+
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
245
245
|
return !1;
|
|
246
246
|
const r = e[n];
|
|
247
|
-
if (
|
|
247
|
+
if (A(r)) {
|
|
248
248
|
if (t.enumerable = !1, "writable" in t) {
|
|
249
249
|
t.writable = !1;
|
|
250
250
|
return;
|
|
@@ -262,11 +262,11 @@ const nn = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
|
|
|
262
262
|
};
|
|
263
263
|
return D(e) ? r(e) : r(String(e).split(t)), n;
|
|
264
264
|
}, wn = () => {
|
|
265
|
-
},
|
|
266
|
-
DIGIT:
|
|
265
|
+
}, gn = (e, t) => (e = +e, Number.isFinite(e) ? e : t), oe = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789", Je = {
|
|
266
|
+
DIGIT: Se,
|
|
267
267
|
ALPHA: oe,
|
|
268
|
-
ALPHA_DIGIT: oe + oe.toUpperCase() +
|
|
269
|
-
},
|
|
268
|
+
ALPHA_DIGIT: oe + oe.toUpperCase() + Se
|
|
269
|
+
}, bn = (e = 16, t = Je.ALPHA_DIGIT) => {
|
|
270
270
|
let n = "";
|
|
271
271
|
const { length: r } = t;
|
|
272
272
|
for (; e--; )
|
|
@@ -274,7 +274,7 @@ const nn = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
|
|
|
274
274
|
return n;
|
|
275
275
|
};
|
|
276
276
|
function En(e) {
|
|
277
|
-
return !!(e &&
|
|
277
|
+
return !!(e && A(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
278
278
|
}
|
|
279
279
|
const vn = (e) => {
|
|
280
280
|
const t = new Array(10), n = (r, s) => {
|
|
@@ -284,37 +284,37 @@ const vn = (e) => {
|
|
|
284
284
|
if (!("toJSON" in r)) {
|
|
285
285
|
t[s] = r;
|
|
286
286
|
const o = D(r) ? [] : {};
|
|
287
|
-
return
|
|
287
|
+
return B(r, (i, c) => {
|
|
288
288
|
const f = n(i, s + 1);
|
|
289
|
-
!
|
|
289
|
+
!j(f) && (o[c] = f);
|
|
290
290
|
}), t[s] = void 0, o;
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
return r;
|
|
294
294
|
};
|
|
295
295
|
return n(e, 0);
|
|
296
|
-
},
|
|
296
|
+
}, An = R("AsyncFunction"), Tn = (e) => e && (X(e) || A(e)) && A(e.then) && A(e.catch), a = {
|
|
297
297
|
isArray: D,
|
|
298
|
-
isArrayBuffer:
|
|
298
|
+
isArrayBuffer: Be,
|
|
299
299
|
isBuffer: qt,
|
|
300
300
|
isFormData: Xt,
|
|
301
301
|
isArrayBufferView: Jt,
|
|
302
302
|
isString: Wt,
|
|
303
|
-
isNumber:
|
|
303
|
+
isNumber: Me,
|
|
304
304
|
isBoolean: Kt,
|
|
305
305
|
isObject: X,
|
|
306
306
|
isPlainObject: J,
|
|
307
|
-
isUndefined:
|
|
307
|
+
isUndefined: j,
|
|
308
308
|
isDate: Vt,
|
|
309
309
|
isFile: Yt,
|
|
310
310
|
isBlob: Gt,
|
|
311
311
|
isRegExp: hn,
|
|
312
|
-
isFunction:
|
|
312
|
+
isFunction: A,
|
|
313
313
|
isStream: Zt,
|
|
314
314
|
isURLSearchParams: en,
|
|
315
315
|
isTypedArray: un,
|
|
316
316
|
isFileList: Qt,
|
|
317
|
-
forEach:
|
|
317
|
+
forEach: B,
|
|
318
318
|
merge: ue,
|
|
319
319
|
extend: nn,
|
|
320
320
|
trim: tn,
|
|
@@ -328,24 +328,24 @@ const vn = (e) => {
|
|
|
328
328
|
forEachEntry: ln,
|
|
329
329
|
matchAll: fn,
|
|
330
330
|
isHTMLForm: dn,
|
|
331
|
-
hasOwnProperty:
|
|
332
|
-
hasOwnProp:
|
|
331
|
+
hasOwnProperty: Te,
|
|
332
|
+
hasOwnProp: Te,
|
|
333
333
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
334
|
-
reduceDescriptors:
|
|
334
|
+
reduceDescriptors: qe,
|
|
335
335
|
freezeMethods: mn,
|
|
336
336
|
toObjectSet: yn,
|
|
337
337
|
toCamelCase: pn,
|
|
338
338
|
noop: wn,
|
|
339
|
-
toFiniteNumber:
|
|
340
|
-
findKey:
|
|
341
|
-
global:
|
|
339
|
+
toFiniteNumber: gn,
|
|
340
|
+
findKey: ze,
|
|
341
|
+
global: He,
|
|
342
342
|
isContextDefined: Ie,
|
|
343
|
-
ALPHABET:
|
|
344
|
-
generateString:
|
|
343
|
+
ALPHABET: Je,
|
|
344
|
+
generateString: bn,
|
|
345
345
|
isSpecCompliantForm: En,
|
|
346
346
|
toJSONObject: vn,
|
|
347
|
-
isAsyncFn:
|
|
348
|
-
isThenable:
|
|
347
|
+
isAsyncFn: An,
|
|
348
|
+
isThenable: Tn
|
|
349
349
|
};
|
|
350
350
|
function y(e, t, n, r, s) {
|
|
351
351
|
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);
|
|
@@ -371,7 +371,7 @@ a.inherits(y, Error, {
|
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
const
|
|
374
|
+
const We = y.prototype, Ke = {};
|
|
375
375
|
[
|
|
376
376
|
"ERR_BAD_OPTION_VALUE",
|
|
377
377
|
"ERR_BAD_OPTION",
|
|
@@ -387,12 +387,12 @@ const qe = y.prototype, Je = {};
|
|
|
387
387
|
"ERR_INVALID_URL"
|
|
388
388
|
// eslint-disable-next-line func-names
|
|
389
389
|
].forEach((e) => {
|
|
390
|
-
|
|
390
|
+
Ke[e] = { value: e };
|
|
391
391
|
});
|
|
392
|
-
Object.defineProperties(y,
|
|
393
|
-
Object.defineProperty(
|
|
392
|
+
Object.defineProperties(y, Ke);
|
|
393
|
+
Object.defineProperty(We, "isAxiosError", { value: !0 });
|
|
394
394
|
y.from = (e, t, n, r, s, o) => {
|
|
395
|
-
const i = Object.create(
|
|
395
|
+
const i = Object.create(We);
|
|
396
396
|
return a.toFlatObject(e, i, function(f) {
|
|
397
397
|
return f !== Error.prototype;
|
|
398
398
|
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
@@ -401,18 +401,18 @@ const Sn = null;
|
|
|
401
401
|
function le(e) {
|
|
402
402
|
return a.isPlainObject(e) || a.isArray(e);
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ve(e) {
|
|
405
405
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Re(e, t, n) {
|
|
408
408
|
return e ? e.concat(t).map(function(s, o) {
|
|
409
|
-
return s =
|
|
409
|
+
return s = Ve(s), !n && o ? "[" + s + "]" : s;
|
|
410
410
|
}).join(n ? "." : "") : t;
|
|
411
411
|
}
|
|
412
412
|
function Rn(e) {
|
|
413
413
|
return a.isArray(e) && !e.some(le);
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const _n = a.toFlatObject(a, {}, null, function(t) {
|
|
416
416
|
return /^is[A-Z]/.test(t);
|
|
417
417
|
});
|
|
418
418
|
function ee(e, t, n) {
|
|
@@ -422,8 +422,8 @@ function ee(e, t, n) {
|
|
|
422
422
|
metaTokens: !0,
|
|
423
423
|
dots: !1,
|
|
424
424
|
indexes: !1
|
|
425
|
-
}, !1, function(
|
|
426
|
-
return !a.isUndefined(
|
|
425
|
+
}, !1, function(m, _) {
|
|
426
|
+
return !a.isUndefined(_[m]);
|
|
427
427
|
});
|
|
428
428
|
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
429
429
|
if (!a.isFunction(s))
|
|
@@ -437,47 +437,47 @@ function ee(e, t, n) {
|
|
|
437
437
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
438
438
|
return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
439
439
|
}
|
|
440
|
-
function l(d,
|
|
441
|
-
let
|
|
442
|
-
if (d && !
|
|
443
|
-
if (a.endsWith(
|
|
444
|
-
|
|
445
|
-
else if (a.isArray(d) && Rn(d) || (a.isFileList(d) || a.endsWith(
|
|
446
|
-
return
|
|
447
|
-
!(a.isUndefined(
|
|
440
|
+
function l(d, m, _) {
|
|
441
|
+
let T = d;
|
|
442
|
+
if (d && !_ && typeof d == "object") {
|
|
443
|
+
if (a.endsWith(m, "{}"))
|
|
444
|
+
m = r ? m : m.slice(0, -2), d = JSON.stringify(d);
|
|
445
|
+
else if (a.isArray(d) && Rn(d) || (a.isFileList(d) || a.endsWith(m, "[]")) && (T = a.toArray(d)))
|
|
446
|
+
return m = Ve(m), T.forEach(function(I, Rt) {
|
|
447
|
+
!(a.isUndefined(I) || I === null) && t.append(
|
|
448
448
|
// eslint-disable-next-line no-nested-ternary
|
|
449
|
-
i === !0 ?
|
|
450
|
-
u(
|
|
449
|
+
i === !0 ? Re([m], Rt, o) : i === null ? m : m + "[]",
|
|
450
|
+
u(I)
|
|
451
451
|
);
|
|
452
452
|
}), !1;
|
|
453
453
|
}
|
|
454
|
-
return le(d) ? !0 : (t.append(
|
|
454
|
+
return le(d) ? !0 : (t.append(Re(_, m, o), u(d)), !1);
|
|
455
455
|
}
|
|
456
|
-
const p = [], v = Object.assign(
|
|
456
|
+
const p = [], v = Object.assign(_n, {
|
|
457
457
|
defaultVisitor: l,
|
|
458
458
|
convertValue: u,
|
|
459
459
|
isVisitable: le
|
|
460
460
|
});
|
|
461
|
-
function
|
|
461
|
+
function g(d, m) {
|
|
462
462
|
if (!a.isUndefined(d)) {
|
|
463
463
|
if (p.indexOf(d) !== -1)
|
|
464
|
-
throw Error("Circular reference detected in " +
|
|
465
|
-
p.push(d), a.forEach(d, function(
|
|
466
|
-
(!(a.isUndefined(
|
|
464
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
465
|
+
p.push(d), a.forEach(d, function(T, x) {
|
|
466
|
+
(!(a.isUndefined(T) || T === null) && s.call(
|
|
467
467
|
t,
|
|
468
|
-
|
|
469
|
-
a.isString(
|
|
470
|
-
|
|
468
|
+
T,
|
|
469
|
+
a.isString(x) ? x.trim() : x,
|
|
470
|
+
m,
|
|
471
471
|
v
|
|
472
|
-
)) === !0 &&
|
|
472
|
+
)) === !0 && g(T, m ? m.concat(x) : [x]);
|
|
473
473
|
}), p.pop();
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
if (!a.isObject(e))
|
|
477
477
|
throw new TypeError("data must be an object");
|
|
478
|
-
return
|
|
478
|
+
return g(e), t;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function _e(e) {
|
|
481
481
|
const t = {
|
|
482
482
|
"!": "%21",
|
|
483
483
|
"'": "%27",
|
|
@@ -494,25 +494,25 @@ function Se(e) {
|
|
|
494
494
|
function he(e, t) {
|
|
495
495
|
this._pairs = [], e && ee(e, this, t);
|
|
496
496
|
}
|
|
497
|
-
const
|
|
498
|
-
|
|
497
|
+
const Ye = he.prototype;
|
|
498
|
+
Ye.append = function(t, n) {
|
|
499
499
|
this._pairs.push([t, n]);
|
|
500
500
|
};
|
|
501
|
-
|
|
501
|
+
Ye.toString = function(t) {
|
|
502
502
|
const n = t ? function(r) {
|
|
503
|
-
return t.call(this, r,
|
|
504
|
-
} :
|
|
503
|
+
return t.call(this, r, _e);
|
|
504
|
+
} : _e;
|
|
505
505
|
return this._pairs.map(function(s) {
|
|
506
506
|
return n(s[0]) + "=" + n(s[1]);
|
|
507
507
|
}, "").join("&");
|
|
508
508
|
};
|
|
509
|
-
function
|
|
509
|
+
function On(e) {
|
|
510
510
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ge(e, t, n) {
|
|
513
513
|
if (!t)
|
|
514
514
|
return e;
|
|
515
|
-
const r = n && n.encode ||
|
|
515
|
+
const r = n && n.encode || On, s = n && n.serialize;
|
|
516
516
|
let o;
|
|
517
517
|
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new he(t, n).toString(r), o) {
|
|
518
518
|
const i = e.indexOf("#");
|
|
@@ -520,7 +520,7 @@ function Ve(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
return e;
|
|
522
522
|
}
|
|
523
|
-
class
|
|
523
|
+
class Ln {
|
|
524
524
|
constructor() {
|
|
525
525
|
this.handlers = [];
|
|
526
526
|
}
|
|
@@ -574,20 +574,20 @@ class Nn {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const Oe = Ln, Qe = {
|
|
578
578
|
silentJSONParsing: !0,
|
|
579
579
|
forcedJSONParsing: !0,
|
|
580
580
|
clarifyTimeoutError: !1
|
|
581
|
-
},
|
|
581
|
+
}, Nn = typeof URLSearchParams < "u" ? URLSearchParams : he, xn = typeof FormData < "u" ? FormData : null, Cn = typeof Blob < "u" ? Blob : null, Pn = (() => {
|
|
582
582
|
let e;
|
|
583
583
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
584
584
|
})(), Dn = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
585
585
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), S = {
|
|
586
586
|
isBrowser: !0,
|
|
587
587
|
classes: {
|
|
588
|
-
URLSearchParams:
|
|
589
|
-
FormData:
|
|
590
|
-
Blob:
|
|
588
|
+
URLSearchParams: Nn,
|
|
589
|
+
FormData: xn,
|
|
590
|
+
Blob: Cn
|
|
591
591
|
},
|
|
592
592
|
isStandardBrowserEnv: Pn,
|
|
593
593
|
isStandardBrowserWebWorkerEnv: Dn,
|
|
@@ -603,7 +603,7 @@ function $n(e, t) {
|
|
|
603
603
|
function Fn(e) {
|
|
604
604
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function kn(e) {
|
|
607
607
|
const t = {}, n = Object.keys(e);
|
|
608
608
|
let r;
|
|
609
609
|
const s = n.length;
|
|
@@ -612,11 +612,11 @@ function jn(e) {
|
|
|
612
612
|
o = n[r], t[o] = e[o];
|
|
613
613
|
return t;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Ze(e) {
|
|
616
616
|
function t(n, r, s, o) {
|
|
617
617
|
let i = n[o++];
|
|
618
618
|
const c = Number.isFinite(+i), f = o >= n.length;
|
|
619
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] =
|
|
619
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = kn(s[i])), !c);
|
|
620
620
|
}
|
|
621
621
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
622
622
|
const n = {};
|
|
@@ -626,10 +626,10 @@ function Ge(e) {
|
|
|
626
626
|
}
|
|
627
627
|
return null;
|
|
628
628
|
}
|
|
629
|
-
const
|
|
629
|
+
const Un = {
|
|
630
630
|
"Content-Type": void 0
|
|
631
631
|
};
|
|
632
|
-
function
|
|
632
|
+
function jn(e, t, n) {
|
|
633
633
|
if (a.isString(e))
|
|
634
634
|
try {
|
|
635
635
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -640,12 +640,12 @@ function Un(e, t, n) {
|
|
|
640
640
|
return (n || JSON.stringify)(e);
|
|
641
641
|
}
|
|
642
642
|
const te = {
|
|
643
|
-
transitional:
|
|
643
|
+
transitional: Qe,
|
|
644
644
|
adapter: ["xhr", "http"],
|
|
645
645
|
transformRequest: [function(t, n) {
|
|
646
646
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
647
647
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
648
|
-
return s && s ? JSON.stringify(
|
|
648
|
+
return s && s ? JSON.stringify(Ze(t)) : t;
|
|
649
649
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
650
650
|
return t;
|
|
651
651
|
if (a.isArrayBufferView(t))
|
|
@@ -665,7 +665,7 @@ const te = {
|
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
668
|
+
return o || s ? (n.setContentType("application/json", !1), jn(t)) : t;
|
|
669
669
|
}],
|
|
670
670
|
transformResponse: [function(t) {
|
|
671
671
|
const n = this.transitional || te.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -706,7 +706,7 @@ a.forEach(["delete", "get", "head"], function(t) {
|
|
|
706
706
|
te.headers[t] = {};
|
|
707
707
|
});
|
|
708
708
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
709
|
-
te.headers[t] = a.merge(
|
|
709
|
+
te.headers[t] = a.merge(Un);
|
|
710
710
|
});
|
|
711
711
|
const me = te, Bn = a.toObjectSet([
|
|
712
712
|
"age",
|
|
@@ -733,14 +733,14 @@ const me = te, Bn = a.toObjectSet([
|
|
|
733
733
|
`).forEach(function(i) {
|
|
734
734
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Bn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
735
735
|
}), t;
|
|
736
|
-
},
|
|
737
|
-
function
|
|
736
|
+
}, Le = Symbol("internals");
|
|
737
|
+
function U(e) {
|
|
738
738
|
return e && String(e).trim().toLowerCase();
|
|
739
739
|
}
|
|
740
740
|
function W(e) {
|
|
741
741
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(W) : String(e);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function zn(e) {
|
|
744
744
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
745
745
|
let r;
|
|
746
746
|
for (; r = n.exec(e); )
|
|
@@ -758,7 +758,7 @@ function ie(e, t, n, r, s) {
|
|
|
758
758
|
return r.test(t);
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function In(e) {
|
|
762
762
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
763
763
|
}
|
|
764
764
|
function qn(e, t) {
|
|
@@ -779,7 +779,7 @@ let ne = class {
|
|
|
779
779
|
set(t, n, r) {
|
|
780
780
|
const s = this;
|
|
781
781
|
function o(c, f, u) {
|
|
782
|
-
const l =
|
|
782
|
+
const l = U(f);
|
|
783
783
|
if (!l)
|
|
784
784
|
throw new Error("header name must be a non-empty string");
|
|
785
785
|
const p = a.findKey(s, l);
|
|
@@ -789,14 +789,14 @@ let ne = class {
|
|
|
789
789
|
return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Hn(t) ? i(Mn(t), n) : t != null && o(n, t, r), this;
|
|
790
790
|
}
|
|
791
791
|
get(t, n) {
|
|
792
|
-
if (t =
|
|
792
|
+
if (t = U(t), t) {
|
|
793
793
|
const r = a.findKey(this, t);
|
|
794
794
|
if (r) {
|
|
795
795
|
const s = this[r];
|
|
796
796
|
if (!n)
|
|
797
797
|
return s;
|
|
798
798
|
if (n === !0)
|
|
799
|
-
return
|
|
799
|
+
return zn(s);
|
|
800
800
|
if (a.isFunction(n))
|
|
801
801
|
return n.call(this, s, r);
|
|
802
802
|
if (a.isRegExp(n))
|
|
@@ -806,7 +806,7 @@ let ne = class {
|
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
has(t, n) {
|
|
809
|
-
if (t =
|
|
809
|
+
if (t = U(t), t) {
|
|
810
810
|
const r = a.findKey(this, t);
|
|
811
811
|
return !!(r && this[r] !== void 0 && (!n || ie(this, this[r], r, n)));
|
|
812
812
|
}
|
|
@@ -816,7 +816,7 @@ let ne = class {
|
|
|
816
816
|
const r = this;
|
|
817
817
|
let s = !1;
|
|
818
818
|
function o(i) {
|
|
819
|
-
if (i =
|
|
819
|
+
if (i = U(i), i) {
|
|
820
820
|
const c = a.findKey(r, i);
|
|
821
821
|
c && (!n || ie(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
822
822
|
}
|
|
@@ -840,7 +840,7 @@ let ne = class {
|
|
|
840
840
|
n[i] = W(s), delete n[o];
|
|
841
841
|
return;
|
|
842
842
|
}
|
|
843
|
-
const c = t ?
|
|
843
|
+
const c = t ? In(o) : String(o).trim();
|
|
844
844
|
c !== o && delete n[o], n[c] = W(s), r[c] = !0;
|
|
845
845
|
}), this;
|
|
846
846
|
}
|
|
@@ -871,11 +871,11 @@ let ne = class {
|
|
|
871
871
|
return n.forEach((s) => r.set(s)), r;
|
|
872
872
|
}
|
|
873
873
|
static accessor(t) {
|
|
874
|
-
const r = (this[
|
|
874
|
+
const r = (this[Le] = this[Le] = {
|
|
875
875
|
accessors: {}
|
|
876
876
|
}).accessors, s = this.prototype;
|
|
877
877
|
function o(i) {
|
|
878
|
-
const c =
|
|
878
|
+
const c = U(i);
|
|
879
879
|
r[c] || (qn(s, i), r[c] = !0);
|
|
880
880
|
}
|
|
881
881
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -884,21 +884,21 @@ let ne = class {
|
|
|
884
884
|
ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
885
885
|
a.freezeMethods(ne.prototype);
|
|
886
886
|
a.freezeMethods(ne);
|
|
887
|
-
const
|
|
887
|
+
const L = ne;
|
|
888
888
|
function ae(e, t) {
|
|
889
|
-
const n = this || me, r = t || n, s =
|
|
889
|
+
const n = this || me, r = t || n, s = L.from(r.headers);
|
|
890
890
|
let o = r.data;
|
|
891
891
|
return a.forEach(e, function(c) {
|
|
892
892
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
893
893
|
}), s.normalize(), o;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Xe(e) {
|
|
896
896
|
return !!(e && e.__CANCEL__);
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function M(e, t, n) {
|
|
899
899
|
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
900
900
|
}
|
|
901
|
-
a.inherits(
|
|
901
|
+
a.inherits(M, y, {
|
|
902
902
|
__CANCEL__: !0
|
|
903
903
|
});
|
|
904
904
|
function Jn(e, t, n) {
|
|
@@ -948,7 +948,7 @@ function Kn(e) {
|
|
|
948
948
|
function Vn(e, t) {
|
|
949
949
|
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function et(e, t) {
|
|
952
952
|
return e && !Kn(t) ? Vn(e, t) : t;
|
|
953
953
|
}
|
|
954
954
|
const Yn = S.isStandardBrowserEnv ? (
|
|
@@ -999,11 +999,11 @@ function Qn(e, t) {
|
|
|
999
999
|
v += n[p++], p = p % e;
|
|
1000
1000
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
1001
1001
|
return;
|
|
1002
|
-
const
|
|
1003
|
-
return
|
|
1002
|
+
const g = l && u - l;
|
|
1003
|
+
return g ? Math.round(v * 1e3 / g) : void 0;
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Ne(e, t) {
|
|
1007
1007
|
let n = 0;
|
|
1008
1008
|
const r = Qn(50, 250);
|
|
1009
1009
|
return (s) => {
|
|
@@ -1024,7 +1024,7 @@ function _e(e, t) {
|
|
|
1024
1024
|
const Zn = typeof XMLHttpRequest < "u", Xn = Zn && function(e) {
|
|
1025
1025
|
return new Promise(function(n, r) {
|
|
1026
1026
|
let s = e.data;
|
|
1027
|
-
const o =
|
|
1027
|
+
const o = L.from(e.headers).normalize(), i = e.responseType;
|
|
1028
1028
|
let c;
|
|
1029
1029
|
function f() {
|
|
1030
1030
|
e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
|
|
@@ -1032,29 +1032,29 @@ const Zn = typeof XMLHttpRequest < "u", Xn = Zn && function(e) {
|
|
|
1032
1032
|
a.isFormData(s) && (S.isStandardBrowserEnv || S.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
|
|
1033
1033
|
let u = new XMLHttpRequest();
|
|
1034
1034
|
if (e.auth) {
|
|
1035
|
-
const
|
|
1036
|
-
o.set("Authorization", "Basic " + btoa(
|
|
1035
|
+
const g = e.auth.username || "", d = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
1036
|
+
o.set("Authorization", "Basic " + btoa(g + ":" + d));
|
|
1037
1037
|
}
|
|
1038
|
-
const l =
|
|
1039
|
-
u.open(e.method.toUpperCase(),
|
|
1038
|
+
const l = et(e.baseURL, e.url);
|
|
1039
|
+
u.open(e.method.toUpperCase(), Ge(l, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
|
|
1040
1040
|
function p() {
|
|
1041
1041
|
if (!u)
|
|
1042
1042
|
return;
|
|
1043
|
-
const
|
|
1043
|
+
const g = L.from(
|
|
1044
1044
|
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
1045
|
-
),
|
|
1045
|
+
), m = {
|
|
1046
1046
|
data: !i || i === "text" || i === "json" ? u.responseText : u.response,
|
|
1047
1047
|
status: u.status,
|
|
1048
1048
|
statusText: u.statusText,
|
|
1049
|
-
headers:
|
|
1049
|
+
headers: g,
|
|
1050
1050
|
config: e,
|
|
1051
1051
|
request: u
|
|
1052
1052
|
};
|
|
1053
|
-
Jn(function(
|
|
1054
|
-
n(
|
|
1055
|
-
}, function(
|
|
1056
|
-
r(
|
|
1057
|
-
},
|
|
1053
|
+
Jn(function(T) {
|
|
1054
|
+
n(T), f();
|
|
1055
|
+
}, function(T) {
|
|
1056
|
+
r(T), f();
|
|
1057
|
+
}, m), u = null;
|
|
1058
1058
|
}
|
|
1059
1059
|
if ("onloadend" in u ? u.onloadend = p : u.onreadystatechange = function() {
|
|
1060
1060
|
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(p);
|
|
@@ -1064,21 +1064,21 @@ const Zn = typeof XMLHttpRequest < "u", Xn = Zn && function(e) {
|
|
|
1064
1064
|
r(new y("Network Error", y.ERR_NETWORK, e, u)), u = null;
|
|
1065
1065
|
}, u.ontimeout = function() {
|
|
1066
1066
|
let d = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
1067
|
-
const
|
|
1067
|
+
const m = e.transitional || Qe;
|
|
1068
1068
|
e.timeoutErrorMessage && (d = e.timeoutErrorMessage), r(new y(
|
|
1069
1069
|
d,
|
|
1070
|
-
|
|
1070
|
+
m.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1071
1071
|
e,
|
|
1072
1072
|
u
|
|
1073
1073
|
)), u = null;
|
|
1074
1074
|
}, S.isStandardBrowserEnv) {
|
|
1075
|
-
const
|
|
1076
|
-
|
|
1075
|
+
const g = (e.withCredentials || Yn(l)) && e.xsrfCookieName && Wn.read(e.xsrfCookieName);
|
|
1076
|
+
g && o.set(e.xsrfHeaderName, g);
|
|
1077
1077
|
}
|
|
1078
|
-
s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(d,
|
|
1079
|
-
u.setRequestHeader(
|
|
1080
|
-
}), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress",
|
|
1081
|
-
u && (r(!
|
|
1078
|
+
s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(d, m) {
|
|
1079
|
+
u.setRequestHeader(m, d);
|
|
1080
|
+
}), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Ne(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Ne(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (g) => {
|
|
1081
|
+
u && (r(!g || g.type ? new M(null, e, u) : g), u.abort(), u = null);
|
|
1082
1082
|
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
|
|
1083
1083
|
const v = Gn(l);
|
|
1084
1084
|
if (v && S.protocols.indexOf(v) === -1) {
|
|
@@ -1122,10 +1122,10 @@ const er = {
|
|
|
1122
1122
|
};
|
|
1123
1123
|
function ce(e) {
|
|
1124
1124
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1125
|
-
throw new
|
|
1125
|
+
throw new M(null, e);
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return ce(e), e.headers =
|
|
1127
|
+
function xe(e) {
|
|
1128
|
+
return ce(e), e.headers = L.from(e.headers), e.data = ae.call(
|
|
1129
1129
|
e,
|
|
1130
1130
|
e.transformRequest
|
|
1131
1131
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), er.getAdapter(e.adapter || me.adapter)(e).then(function(r) {
|
|
@@ -1133,16 +1133,16 @@ function Ne(e) {
|
|
|
1133
1133
|
e,
|
|
1134
1134
|
e.transformResponse,
|
|
1135
1135
|
r
|
|
1136
|
-
), r.headers =
|
|
1136
|
+
), r.headers = L.from(r.headers), r;
|
|
1137
1137
|
}, function(r) {
|
|
1138
|
-
return
|
|
1138
|
+
return Xe(r) || (ce(e), r && r.response && (r.response.data = ae.call(
|
|
1139
1139
|
e,
|
|
1140
1140
|
e.transformResponse,
|
|
1141
1141
|
r.response
|
|
1142
|
-
), r.response.headers =
|
|
1142
|
+
), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const Ce = (e) => e instanceof L ? e.toJSON() : e;
|
|
1146
1146
|
function P(e, t) {
|
|
1147
1147
|
t = t || {};
|
|
1148
1148
|
const n = {};
|
|
@@ -1201,23 +1201,23 @@ function P(e, t) {
|
|
|
1201
1201
|
socketPath: i,
|
|
1202
1202
|
responseEncoding: i,
|
|
1203
1203
|
validateStatus: c,
|
|
1204
|
-
headers: (u, l) => s(
|
|
1204
|
+
headers: (u, l) => s(Ce(u), Ce(l), !0)
|
|
1205
1205
|
};
|
|
1206
1206
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1207
1207
|
const p = f[l] || s, v = p(e[l], t[l], l);
|
|
1208
1208
|
a.isUndefined(v) && p !== c || (n[l] = v);
|
|
1209
1209
|
}), n;
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1211
|
+
const tt = "1.4.0", ye = {};
|
|
1212
1212
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1213
1213
|
ye[e] = function(r) {
|
|
1214
1214
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1215
1215
|
};
|
|
1216
1216
|
});
|
|
1217
|
-
const
|
|
1217
|
+
const Pe = {};
|
|
1218
1218
|
ye.transitional = function(t, n, r) {
|
|
1219
1219
|
function s(o, i) {
|
|
1220
|
-
return "[Axios v" +
|
|
1220
|
+
return "[Axios v" + tt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1221
1221
|
}
|
|
1222
1222
|
return (o, i, c) => {
|
|
1223
1223
|
if (t === !1)
|
|
@@ -1225,7 +1225,7 @@ ye.transitional = function(t, n, r) {
|
|
|
1225
1225
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1226
1226
|
y.ERR_DEPRECATED
|
|
1227
1227
|
);
|
|
1228
|
-
return n && !
|
|
1228
|
+
return n && !Pe[i] && (Pe[i] = !0, console.warn(
|
|
1229
1229
|
s(
|
|
1230
1230
|
i,
|
|
1231
1231
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1253,12 +1253,12 @@ function tr(e, t, n) {
|
|
|
1253
1253
|
const fe = {
|
|
1254
1254
|
assertOptions: tr,
|
|
1255
1255
|
validators: ye
|
|
1256
|
-
},
|
|
1256
|
+
}, N = fe.validators;
|
|
1257
1257
|
let G = class {
|
|
1258
1258
|
constructor(t) {
|
|
1259
1259
|
this.defaults = t, this.interceptors = {
|
|
1260
|
-
request: new
|
|
1261
|
-
response: new
|
|
1260
|
+
request: new Oe(),
|
|
1261
|
+
response: new Oe()
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
1264
|
/**
|
|
@@ -1273,14 +1273,14 @@ let G = class {
|
|
|
1273
1273
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = P(this.defaults, n);
|
|
1274
1274
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1275
1275
|
r !== void 0 && fe.assertOptions(r, {
|
|
1276
|
-
silentJSONParsing:
|
|
1277
|
-
forcedJSONParsing:
|
|
1278
|
-
clarifyTimeoutError:
|
|
1276
|
+
silentJSONParsing: N.transitional(N.boolean),
|
|
1277
|
+
forcedJSONParsing: N.transitional(N.boolean),
|
|
1278
|
+
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1279
1279
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1280
1280
|
serialize: s
|
|
1281
1281
|
} : fe.assertOptions(s, {
|
|
1282
|
-
encode:
|
|
1283
|
-
serialize:
|
|
1282
|
+
encode: N.function,
|
|
1283
|
+
serialize: N.function
|
|
1284
1284
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1285
1285
|
let i;
|
|
1286
1286
|
i = o && a.merge(
|
|
@@ -1291,36 +1291,36 @@ let G = class {
|
|
|
1291
1291
|
(d) => {
|
|
1292
1292
|
delete o[d];
|
|
1293
1293
|
}
|
|
1294
|
-
), n.headers =
|
|
1294
|
+
), n.headers = L.concat(i, o);
|
|
1295
1295
|
const c = [];
|
|
1296
1296
|
let f = !0;
|
|
1297
|
-
this.interceptors.request.forEach(function(
|
|
1298
|
-
typeof
|
|
1297
|
+
this.interceptors.request.forEach(function(m) {
|
|
1298
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
1299
1299
|
});
|
|
1300
1300
|
const u = [];
|
|
1301
|
-
this.interceptors.response.forEach(function(
|
|
1302
|
-
u.push(
|
|
1301
|
+
this.interceptors.response.forEach(function(m) {
|
|
1302
|
+
u.push(m.fulfilled, m.rejected);
|
|
1303
1303
|
});
|
|
1304
1304
|
let l, p = 0, v;
|
|
1305
1305
|
if (!f) {
|
|
1306
|
-
const d = [
|
|
1306
|
+
const d = [xe.bind(this), void 0];
|
|
1307
1307
|
for (d.unshift.apply(d, c), d.push.apply(d, u), v = d.length, l = Promise.resolve(n); p < v; )
|
|
1308
1308
|
l = l.then(d[p++], d[p++]);
|
|
1309
1309
|
return l;
|
|
1310
1310
|
}
|
|
1311
1311
|
v = c.length;
|
|
1312
|
-
let
|
|
1312
|
+
let g = n;
|
|
1313
1313
|
for (p = 0; p < v; ) {
|
|
1314
|
-
const d = c[p++],
|
|
1314
|
+
const d = c[p++], m = c[p++];
|
|
1315
1315
|
try {
|
|
1316
|
-
|
|
1317
|
-
} catch (
|
|
1318
|
-
|
|
1316
|
+
g = d(g);
|
|
1317
|
+
} catch (_) {
|
|
1318
|
+
m.call(this, _);
|
|
1319
1319
|
break;
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
try {
|
|
1323
|
-
l =
|
|
1323
|
+
l = xe.call(this, g);
|
|
1324
1324
|
} catch (d) {
|
|
1325
1325
|
return Promise.reject(d);
|
|
1326
1326
|
}
|
|
@@ -1330,8 +1330,8 @@ let G = class {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
getUri(t) {
|
|
1332
1332
|
t = P(this.defaults, t);
|
|
1333
|
-
const n =
|
|
1334
|
-
return
|
|
1333
|
+
const n = et(t.baseURL, t.url);
|
|
1334
|
+
return Ge(n, t.params, t.paramsSerializer);
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
1337
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1359,7 +1359,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1359
1359
|
G.prototype[t] = n(), G.prototype[t + "Form"] = n(!0);
|
|
1360
1360
|
});
|
|
1361
1361
|
const V = G;
|
|
1362
|
-
let nr = class
|
|
1362
|
+
let nr = class nt {
|
|
1363
1363
|
constructor(t) {
|
|
1364
1364
|
if (typeof t != "function")
|
|
1365
1365
|
throw new TypeError("executor must be a function.");
|
|
@@ -1384,7 +1384,7 @@ let nr = class et {
|
|
|
1384
1384
|
r.unsubscribe(o);
|
|
1385
1385
|
}, i;
|
|
1386
1386
|
}, t(function(o, i, c) {
|
|
1387
|
-
r.reason || (r.reason = new
|
|
1387
|
+
r.reason || (r.reason = new M(o, i, c), n(r.reason));
|
|
1388
1388
|
});
|
|
1389
1389
|
}
|
|
1390
1390
|
/**
|
|
@@ -1420,7 +1420,7 @@ let nr = class et {
|
|
|
1420
1420
|
static source() {
|
|
1421
1421
|
let t;
|
|
1422
1422
|
return {
|
|
1423
|
-
token: new
|
|
1423
|
+
token: new nt(function(s) {
|
|
1424
1424
|
t = s;
|
|
1425
1425
|
}),
|
|
1426
1426
|
cancel: t
|
|
@@ -1505,18 +1505,18 @@ Object.entries(de).forEach(([e, t]) => {
|
|
|
1505
1505
|
de[t] = e;
|
|
1506
1506
|
});
|
|
1507
1507
|
const ir = de;
|
|
1508
|
-
function
|
|
1508
|
+
function rt(e) {
|
|
1509
1509
|
const t = new V(e), n = je(V.prototype.request, t);
|
|
1510
1510
|
return a.extend(n, V.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1511
|
-
return
|
|
1511
|
+
return rt(P(e, s));
|
|
1512
1512
|
}, n;
|
|
1513
1513
|
}
|
|
1514
|
-
const E =
|
|
1514
|
+
const E = rt(me);
|
|
1515
1515
|
E.Axios = V;
|
|
1516
|
-
E.CanceledError =
|
|
1516
|
+
E.CanceledError = M;
|
|
1517
1517
|
E.CancelToken = rr;
|
|
1518
|
-
E.isCancel =
|
|
1519
|
-
E.VERSION =
|
|
1518
|
+
E.isCancel = Xe;
|
|
1519
|
+
E.VERSION = tt;
|
|
1520
1520
|
E.toFormData = ee;
|
|
1521
1521
|
E.AxiosError = y;
|
|
1522
1522
|
E.Cancel = E.CanceledError;
|
|
@@ -1526,29 +1526,29 @@ E.all = function(t) {
|
|
|
1526
1526
|
E.spread = sr;
|
|
1527
1527
|
E.isAxiosError = or;
|
|
1528
1528
|
E.mergeConfig = P;
|
|
1529
|
-
E.AxiosHeaders =
|
|
1530
|
-
E.formToJSON = (e) =>
|
|
1529
|
+
E.AxiosHeaders = L;
|
|
1530
|
+
E.formToJSON = (e) => Ze(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1531
1531
|
E.HttpStatusCode = ir;
|
|
1532
1532
|
E.default = E;
|
|
1533
|
-
const
|
|
1534
|
-
Axios:
|
|
1533
|
+
const st = E, {
|
|
1534
|
+
Axios: ps,
|
|
1535
1535
|
AxiosError: ar,
|
|
1536
|
-
CanceledError:
|
|
1537
|
-
isCancel:
|
|
1538
|
-
CancelToken:
|
|
1539
|
-
VERSION:
|
|
1540
|
-
all:
|
|
1541
|
-
Cancel:
|
|
1542
|
-
isAxiosError:
|
|
1543
|
-
spread:
|
|
1544
|
-
toFormData:
|
|
1545
|
-
AxiosHeaders:
|
|
1546
|
-
HttpStatusCode:
|
|
1547
|
-
formToJSON:
|
|
1548
|
-
mergeConfig:
|
|
1549
|
-
} =
|
|
1536
|
+
CanceledError: hs,
|
|
1537
|
+
isCancel: ms,
|
|
1538
|
+
CancelToken: ys,
|
|
1539
|
+
VERSION: ws,
|
|
1540
|
+
all: gs,
|
|
1541
|
+
Cancel: bs,
|
|
1542
|
+
isAxiosError: Es,
|
|
1543
|
+
spread: vs,
|
|
1544
|
+
toFormData: As,
|
|
1545
|
+
AxiosHeaders: Ts,
|
|
1546
|
+
HttpStatusCode: Ss,
|
|
1547
|
+
formToJSON: Rs,
|
|
1548
|
+
mergeConfig: _s
|
|
1549
|
+
} = st, ot = st.create({}), O = async (e, ...t) => {
|
|
1550
1550
|
try {
|
|
1551
|
-
return await
|
|
1551
|
+
return await ot[e](...t);
|
|
1552
1552
|
} catch (n) {
|
|
1553
1553
|
if (!(n instanceof ar) || !n.response)
|
|
1554
1554
|
throw n;
|
|
@@ -1576,131 +1576,131 @@ const nt = E, {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
throw s = `${n.code} (${r.status}) - ${s}: ${r.data.content.message}`, new Error(s);
|
|
1578
1578
|
}
|
|
1579
|
-
},
|
|
1580
|
-
|
|
1579
|
+
}, h = Object.assign(
|
|
1580
|
+
ot,
|
|
1581
1581
|
{
|
|
1582
|
-
$get: async (...e) => (await
|
|
1583
|
-
$post: async (...e) => (await
|
|
1584
|
-
$put: async (...e) => (await
|
|
1585
|
-
$patch: async (...e) => (await
|
|
1586
|
-
$delete: async (...e) => (await
|
|
1582
|
+
$get: async (...e) => (await O("get", ...e)).data,
|
|
1583
|
+
$post: async (...e) => (await O("post", ...e)).data,
|
|
1584
|
+
$put: async (...e) => (await O("put", ...e)).data,
|
|
1585
|
+
$patch: async (...e) => (await O("patch", ...e)).data,
|
|
1586
|
+
$delete: async (...e) => (await O("delete", ...e)).data
|
|
1587
1587
|
}
|
|
1588
|
-
),
|
|
1588
|
+
), it = (e) => ({
|
|
1589
1589
|
...e,
|
|
1590
|
-
createdAt:
|
|
1591
|
-
updatedAt: e.updatedAt ?
|
|
1590
|
+
createdAt: b(e.createdAt),
|
|
1591
|
+
updatedAt: e.updatedAt ? b(e.updatedAt) : void 0
|
|
1592
1592
|
}), cr = (e) => ({
|
|
1593
1593
|
...e,
|
|
1594
|
-
namespace:
|
|
1595
|
-
createdAt:
|
|
1596
|
-
updatedAt: e.updatedAt ?
|
|
1594
|
+
namespace: it(e.namespace),
|
|
1595
|
+
createdAt: b(e.createdAt),
|
|
1596
|
+
updatedAt: e.updatedAt ? b(e.updatedAt) : void 0
|
|
1597
1597
|
}), ur = (e) => ({
|
|
1598
1598
|
...e,
|
|
1599
1599
|
memberships: e.memberships.map(cr),
|
|
1600
|
-
createdAt:
|
|
1601
|
-
updatedAt: e.updatedAt ?
|
|
1602
|
-
}),
|
|
1603
|
-
|
|
1604
|
-
},
|
|
1605
|
-
|
|
1606
|
-
},
|
|
1607
|
-
const e =
|
|
1600
|
+
createdAt: b(e.createdAt),
|
|
1601
|
+
updatedAt: e.updatedAt ? b(e.updatedAt) : void 0
|
|
1602
|
+
}), at = (e) => {
|
|
1603
|
+
h.defaults.headers.common.authorization = `Bearer ${e}`;
|
|
1604
|
+
}, ct = () => {
|
|
1605
|
+
h.defaults.headers.common.authorization = void 0;
|
|
1606
|
+
}, ut = () => {
|
|
1607
|
+
const e = h.defaults.headers.common.authorization;
|
|
1608
1608
|
if (!e || typeof e != "string")
|
|
1609
1609
|
return !1;
|
|
1610
1610
|
const [, t] = e.split("Bearer ");
|
|
1611
1611
|
return !!t;
|
|
1612
1612
|
}, lr = async () => {
|
|
1613
|
-
const { content: e, ...t } = await
|
|
1613
|
+
const { content: e, ...t } = await h.$get("/me");
|
|
1614
1614
|
return {
|
|
1615
1615
|
...t,
|
|
1616
1616
|
content: ur(e)
|
|
1617
1617
|
};
|
|
1618
|
-
}, fr = () =>
|
|
1618
|
+
}, fr = () => h.$get("/me/permissions"), dr = () => h.$get("/me/namespaces"), Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1619
1619
|
__proto__: null,
|
|
1620
1620
|
getCurrentNamespaces: dr,
|
|
1621
1621
|
getCurrentPermissions: fr,
|
|
1622
1622
|
getCurrentUser: lr,
|
|
1623
|
-
isLogged:
|
|
1624
|
-
login:
|
|
1625
|
-
logout:
|
|
1626
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1623
|
+
isLogged: ut,
|
|
1624
|
+
login: at,
|
|
1625
|
+
logout: ct
|
|
1626
|
+
}, Symbol.toStringTag, { value: "Module" })), z = (e) => ({
|
|
1627
1627
|
...e,
|
|
1628
|
-
nextRun: e.nextRun ?
|
|
1629
|
-
lastRun: e.lastRun ?
|
|
1628
|
+
nextRun: e.nextRun ? b(e.nextRun) : void 0,
|
|
1629
|
+
lastRun: e.lastRun ? b(e.lastRun) : void 0
|
|
1630
1630
|
}), pr = async () => {
|
|
1631
|
-
const { content: e, ...t } = await
|
|
1631
|
+
const { content: e, ...t } = await h.$get("/crons");
|
|
1632
1632
|
return {
|
|
1633
1633
|
...t,
|
|
1634
|
-
content: e.map(
|
|
1634
|
+
content: e.map(z)
|
|
1635
1635
|
};
|
|
1636
1636
|
}, hr = async (e) => {
|
|
1637
|
-
const { content:
|
|
1637
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await h.$get(`/crons/${t}`);
|
|
1638
1638
|
return {
|
|
1639
|
-
...
|
|
1640
|
-
content:
|
|
1639
|
+
...r,
|
|
1640
|
+
content: z(n)
|
|
1641
1641
|
};
|
|
1642
1642
|
}, mr = async (e) => {
|
|
1643
|
-
const { content:
|
|
1643
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await h.$put(`/crons/${t}/start`);
|
|
1644
1644
|
return {
|
|
1645
|
-
...
|
|
1646
|
-
content:
|
|
1645
|
+
...r,
|
|
1646
|
+
content: z(n)
|
|
1647
1647
|
};
|
|
1648
1648
|
}, yr = async (e) => {
|
|
1649
|
-
const { content:
|
|
1649
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await h.$put(`/crons/${t}/stop`);
|
|
1650
1650
|
return {
|
|
1651
|
-
...
|
|
1652
|
-
content:
|
|
1651
|
+
...r,
|
|
1652
|
+
content: z(n)
|
|
1653
1653
|
};
|
|
1654
1654
|
}, wr = async (e) => {
|
|
1655
|
-
const { content:
|
|
1655
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await h.$post(`/crons/${t}/force`);
|
|
1656
1656
|
return {
|
|
1657
|
-
...
|
|
1658
|
-
content:
|
|
1657
|
+
...r,
|
|
1658
|
+
content: z(n)
|
|
1659
1659
|
};
|
|
1660
|
-
},
|
|
1660
|
+
}, Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1661
1661
|
__proto__: null,
|
|
1662
1662
|
forceCron: wr,
|
|
1663
1663
|
getAllCrons: pr,
|
|
1664
1664
|
getCron: hr,
|
|
1665
1665
|
startCron: mr,
|
|
1666
1666
|
stopCron: yr
|
|
1667
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1668
|
-
const { content: { current: e } } = await
|
|
1669
|
-
return
|
|
1670
|
-
},
|
|
1667
|
+
}, Symbol.toStringTag, { value: "Module" })), lt = () => h.$get("/health"), gr = () => h.$get("/health/all"), ft = (e) => h.$get(`/health/${e}`), br = async () => {
|
|
1668
|
+
const { content: { current: e } } = await lt();
|
|
1669
|
+
return ft(e);
|
|
1670
|
+
}, Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1671
1671
|
__proto__: null,
|
|
1672
|
-
checkAllConnectedService:
|
|
1673
|
-
checkConnectedService:
|
|
1674
|
-
checkCurrentService:
|
|
1675
|
-
getAllConnectedServices:
|
|
1672
|
+
checkAllConnectedService: gr,
|
|
1673
|
+
checkConnectedService: ft,
|
|
1674
|
+
checkCurrentService: br,
|
|
1675
|
+
getAllConnectedServices: lt
|
|
1676
1676
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1677
|
-
var
|
|
1678
|
-
const
|
|
1677
|
+
var dt = /* @__PURE__ */ ((e) => (e.DAILY = "DAILY", e.WEEKLY = "WEEKLY", e.MONTHLY = "MONTHLY", e.QUARTERLY = "QUARTERLY", e.BIENNIAL = "BIENNIAL", e.YEARLY = "YEARLY", e))(dt || {});
|
|
1678
|
+
const we = (e) => ({
|
|
1679
1679
|
...e,
|
|
1680
|
-
nextRun:
|
|
1681
|
-
lastRun: e.lastRun ?
|
|
1682
|
-
createdAt:
|
|
1683
|
-
updatedAt: e.updatedAt ?
|
|
1684
|
-
}),
|
|
1685
|
-
const { namespace: t, ...n } = e, { namespaceId: r, ...s } =
|
|
1680
|
+
nextRun: b(e.nextRun),
|
|
1681
|
+
lastRun: e.lastRun ? b(e.lastRun) : void 0,
|
|
1682
|
+
createdAt: b(e.createdAt),
|
|
1683
|
+
updatedAt: e.updatedAt ? b(e.updatedAt) : void 0
|
|
1684
|
+
}), pt = (e) => {
|
|
1685
|
+
const { namespace: t, ...n } = e, { namespaceId: r, ...s } = we({
|
|
1686
1686
|
namespaceId: t.id,
|
|
1687
1687
|
...n
|
|
1688
1688
|
});
|
|
1689
1689
|
return {
|
|
1690
1690
|
...s,
|
|
1691
|
-
namespace:
|
|
1691
|
+
namespace: it(t)
|
|
1692
1692
|
};
|
|
1693
1693
|
}, Er = (e) => ({
|
|
1694
1694
|
...e,
|
|
1695
|
-
createdAt:
|
|
1695
|
+
createdAt: b(e.createdAt)
|
|
1696
1696
|
}), vr = (e) => ({
|
|
1697
1697
|
...e,
|
|
1698
|
-
task:
|
|
1699
|
-
createdAt:
|
|
1700
|
-
}),
|
|
1701
|
-
const { data: { content: n, ...r } } = await
|
|
1698
|
+
task: pt(e.task),
|
|
1699
|
+
createdAt: b(e.createdAt)
|
|
1700
|
+
}), Ar = async (e, t) => {
|
|
1701
|
+
const { data: { content: n, ...r } } = await O(
|
|
1702
1702
|
"get",
|
|
1703
|
-
"/
|
|
1703
|
+
"/tasks-activity",
|
|
1704
1704
|
{
|
|
1705
1705
|
params: {
|
|
1706
1706
|
namespaces: t,
|
|
@@ -1712,64 +1712,70 @@ const ft = (e) => ({
|
|
|
1712
1712
|
...r,
|
|
1713
1713
|
content: n.map(vr)
|
|
1714
1714
|
};
|
|
1715
|
-
},
|
|
1715
|
+
}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1716
1716
|
__proto__: null,
|
|
1717
|
-
getAllEntries:
|
|
1718
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1717
|
+
getAllEntries: Ar
|
|
1718
|
+
}, Symbol.toStringTag, { value: "Module" })), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1719
1719
|
__proto__: null
|
|
1720
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1720
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = (e) => ({
|
|
1721
1721
|
...e,
|
|
1722
|
-
added:
|
|
1723
|
-
started: e.started ?
|
|
1724
|
-
ended: e.ended ?
|
|
1725
|
-
}),
|
|
1726
|
-
const
|
|
1722
|
+
added: b(e.added),
|
|
1723
|
+
started: e.started ? b(e.started) : void 0,
|
|
1724
|
+
ended: e.ended ? b(e.ended) : void 0
|
|
1725
|
+
}), Tr = () => h.$get("/queues"), Sr = async (e) => {
|
|
1726
|
+
const t = typeof e == "string" ? e : e.name;
|
|
1727
|
+
return h.$put(`/queues/${t}/pause`);
|
|
1728
|
+
}, Rr = async (e) => {
|
|
1729
|
+
const t = typeof e == "string" ? e : e.name;
|
|
1730
|
+
return h.$put(`/queues/${t}/resume`);
|
|
1731
|
+
}, _r = async (e, t) => {
|
|
1732
|
+
const n = typeof e == "string" ? e : e.name, { data: { content: r, ...s } } = await O(
|
|
1727
1733
|
"get",
|
|
1728
|
-
`/queues/${
|
|
1734
|
+
`/queues/${n}/jobs`,
|
|
1729
1735
|
{
|
|
1730
1736
|
params: t
|
|
1731
1737
|
}
|
|
1732
1738
|
);
|
|
1733
1739
|
return {
|
|
1734
|
-
...
|
|
1735
|
-
content:
|
|
1740
|
+
...s,
|
|
1741
|
+
content: r.map(ge)
|
|
1736
1742
|
};
|
|
1737
|
-
},
|
|
1738
|
-
const { content:
|
|
1743
|
+
}, H = async (e, t, n) => {
|
|
1744
|
+
const r = typeof e == "string" ? e : e.name, s = typeof t == "string" || typeof t == "number" ? t : t.id, { content: o, ...i } = await h.$get(`/queues/${r}/jobs/${s}`, { params: { namespaces: n } });
|
|
1739
1745
|
return {
|
|
1740
|
-
...
|
|
1741
|
-
content:
|
|
1746
|
+
...i,
|
|
1747
|
+
content: ge(o)
|
|
1742
1748
|
};
|
|
1743
|
-
},
|
|
1744
|
-
const { content:
|
|
1749
|
+
}, Or = async (e, t, n) => {
|
|
1750
|
+
const r = typeof e == "string" ? e : e.name, s = typeof t == "string" || typeof t == "number" ? t : t.id, { content: o, ...i } = await h.$post(`/queues/${r}/jobs/${s}/retry`, { params: { namespaces: n } });
|
|
1745
1751
|
return {
|
|
1746
|
-
...
|
|
1747
|
-
content:
|
|
1752
|
+
...i,
|
|
1753
|
+
content: ge(o)
|
|
1748
1754
|
};
|
|
1749
|
-
},
|
|
1755
|
+
}, Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1750
1756
|
__proto__: null,
|
|
1751
|
-
getAllQueues:
|
|
1752
|
-
getJob:
|
|
1753
|
-
getQueueJobs:
|
|
1757
|
+
getAllQueues: Tr,
|
|
1758
|
+
getJob: H,
|
|
1759
|
+
getQueueJobs: _r,
|
|
1754
1760
|
pauseQueue: Sr,
|
|
1755
1761
|
resumeQueue: Rr,
|
|
1756
|
-
retryJob:
|
|
1762
|
+
retryJob: Or
|
|
1757
1763
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1758
|
-
function
|
|
1764
|
+
function Lr(e) {
|
|
1759
1765
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1760
1766
|
}
|
|
1761
|
-
var be = { exports: {} },
|
|
1767
|
+
var be = { exports: {} }, C = typeof Reflect == "object" ? Reflect : null, De = C && typeof C.apply == "function" ? C.apply : function(t, n, r) {
|
|
1762
1768
|
return Function.prototype.apply.call(t, n, r);
|
|
1763
1769
|
}, Y;
|
|
1764
|
-
|
|
1770
|
+
C && typeof C.ownKeys == "function" ? Y = C.ownKeys : Object.getOwnPropertySymbols ? Y = function(t) {
|
|
1765
1771
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
1766
1772
|
} : Y = function(t) {
|
|
1767
1773
|
return Object.getOwnPropertyNames(t);
|
|
1768
1774
|
};
|
|
1769
|
-
function
|
|
1775
|
+
function Nr(e) {
|
|
1770
1776
|
console && console.warn && console.warn(e);
|
|
1771
1777
|
}
|
|
1772
|
-
var
|
|
1778
|
+
var ht = Number.isNaN || function(t) {
|
|
1773
1779
|
return t !== t;
|
|
1774
1780
|
};
|
|
1775
1781
|
function w() {
|
|
@@ -1781,7 +1787,7 @@ w.EventEmitter = w;
|
|
|
1781
1787
|
w.prototype._events = void 0;
|
|
1782
1788
|
w.prototype._eventsCount = 0;
|
|
1783
1789
|
w.prototype._maxListeners = void 0;
|
|
1784
|
-
var
|
|
1790
|
+
var $e = 10;
|
|
1785
1791
|
function re(e) {
|
|
1786
1792
|
if (typeof e != "function")
|
|
1787
1793
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
|
|
@@ -1789,27 +1795,27 @@ function re(e) {
|
|
|
1789
1795
|
Object.defineProperty(w, "defaultMaxListeners", {
|
|
1790
1796
|
enumerable: !0,
|
|
1791
1797
|
get: function() {
|
|
1792
|
-
return
|
|
1798
|
+
return $e;
|
|
1793
1799
|
},
|
|
1794
1800
|
set: function(e) {
|
|
1795
|
-
if (typeof e != "number" || e < 0 ||
|
|
1801
|
+
if (typeof e != "number" || e < 0 || ht(e))
|
|
1796
1802
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
1797
|
-
|
|
1803
|
+
$e = e;
|
|
1798
1804
|
}
|
|
1799
1805
|
});
|
|
1800
1806
|
w.init = function() {
|
|
1801
1807
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1802
1808
|
};
|
|
1803
1809
|
w.prototype.setMaxListeners = function(t) {
|
|
1804
|
-
if (typeof t != "number" || t < 0 ||
|
|
1810
|
+
if (typeof t != "number" || t < 0 || ht(t))
|
|
1805
1811
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
1806
1812
|
return this._maxListeners = t, this;
|
|
1807
1813
|
};
|
|
1808
|
-
function
|
|
1814
|
+
function mt(e) {
|
|
1809
1815
|
return e._maxListeners === void 0 ? w.defaultMaxListeners : e._maxListeners;
|
|
1810
1816
|
}
|
|
1811
1817
|
w.prototype.getMaxListeners = function() {
|
|
1812
|
-
return
|
|
1818
|
+
return mt(this);
|
|
1813
1819
|
};
|
|
1814
1820
|
w.prototype.emit = function(t) {
|
|
1815
1821
|
for (var n = [], r = 1; r < arguments.length; r++)
|
|
@@ -1830,13 +1836,13 @@ w.prototype.emit = function(t) {
|
|
|
1830
1836
|
if (f === void 0)
|
|
1831
1837
|
return !1;
|
|
1832
1838
|
if (typeof f == "function")
|
|
1833
|
-
|
|
1839
|
+
De(f, this, n);
|
|
1834
1840
|
else
|
|
1835
|
-
for (var u = f.length, l =
|
|
1836
|
-
|
|
1841
|
+
for (var u = f.length, l = Et(f, u), r = 0; r < u; ++r)
|
|
1842
|
+
De(l[r], this, n);
|
|
1837
1843
|
return !0;
|
|
1838
1844
|
};
|
|
1839
|
-
function
|
|
1845
|
+
function yt(e, t, n, r) {
|
|
1840
1846
|
var s, o, i;
|
|
1841
1847
|
if (re(n), o = e._events, o === void 0 ? (o = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (o.newListener !== void 0 && (e.emit(
|
|
1842
1848
|
"newListener",
|
|
@@ -1844,33 +1850,33 @@ function mt(e, t, n, r) {
|
|
|
1844
1850
|
n.listener ? n.listener : n
|
|
1845
1851
|
), o = e._events), i = o[t]), i === void 0)
|
|
1846
1852
|
i = o[t] = n, ++e._eventsCount;
|
|
1847
|
-
else if (typeof i == "function" ? i = o[t] = r ? [n, i] : [i, n] : r ? i.unshift(n) : i.push(n), s =
|
|
1853
|
+
else if (typeof i == "function" ? i = o[t] = r ? [n, i] : [i, n] : r ? i.unshift(n) : i.push(n), s = mt(e), s > 0 && i.length > s && !i.warned) {
|
|
1848
1854
|
i.warned = !0;
|
|
1849
1855
|
var c = new Error("Possible EventEmitter memory leak detected. " + i.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1850
|
-
c.name = "MaxListenersExceededWarning", c.emitter = e, c.type = t, c.count = i.length,
|
|
1856
|
+
c.name = "MaxListenersExceededWarning", c.emitter = e, c.type = t, c.count = i.length, Nr(c);
|
|
1851
1857
|
}
|
|
1852
1858
|
return e;
|
|
1853
1859
|
}
|
|
1854
1860
|
w.prototype.addListener = function(t, n) {
|
|
1855
|
-
return
|
|
1861
|
+
return yt(this, t, n, !1);
|
|
1856
1862
|
};
|
|
1857
1863
|
w.prototype.on = w.prototype.addListener;
|
|
1858
1864
|
w.prototype.prependListener = function(t, n) {
|
|
1859
|
-
return
|
|
1865
|
+
return yt(this, t, n, !0);
|
|
1860
1866
|
};
|
|
1861
|
-
function
|
|
1867
|
+
function xr() {
|
|
1862
1868
|
if (!this.fired)
|
|
1863
1869
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
1864
1870
|
}
|
|
1865
|
-
function
|
|
1866
|
-
var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, s =
|
|
1871
|
+
function wt(e, t, n) {
|
|
1872
|
+
var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, s = xr.bind(r);
|
|
1867
1873
|
return s.listener = n, r.wrapFn = s, s;
|
|
1868
1874
|
}
|
|
1869
1875
|
w.prototype.once = function(t, n) {
|
|
1870
|
-
return re(n), this.on(t,
|
|
1876
|
+
return re(n), this.on(t, wt(this, t, n)), this;
|
|
1871
1877
|
};
|
|
1872
1878
|
w.prototype.prependOnceListener = function(t, n) {
|
|
1873
|
-
return re(n), this.prependListener(t,
|
|
1879
|
+
return re(n), this.prependListener(t, wt(this, t, n)), this;
|
|
1874
1880
|
};
|
|
1875
1881
|
w.prototype.removeListener = function(t, n) {
|
|
1876
1882
|
var r, s, o, i, c;
|
|
@@ -1888,7 +1894,7 @@ w.prototype.removeListener = function(t, n) {
|
|
|
1888
1894
|
}
|
|
1889
1895
|
if (o < 0)
|
|
1890
1896
|
return this;
|
|
1891
|
-
o === 0 ? r.shift() :
|
|
1897
|
+
o === 0 ? r.shift() : Cr(r, o), r.length === 1 && (s[t] = r[0]), s.removeListener !== void 0 && this.emit("removeListener", t, c || n);
|
|
1892
1898
|
}
|
|
1893
1899
|
return this;
|
|
1894
1900
|
};
|
|
@@ -1912,18 +1918,18 @@ w.prototype.removeAllListeners = function(t) {
|
|
|
1912
1918
|
this.removeListener(t, n[s]);
|
|
1913
1919
|
return this;
|
|
1914
1920
|
};
|
|
1915
|
-
function
|
|
1921
|
+
function gt(e, t, n) {
|
|
1916
1922
|
var r = e._events;
|
|
1917
1923
|
if (r === void 0)
|
|
1918
1924
|
return [];
|
|
1919
1925
|
var s = r[t];
|
|
1920
|
-
return s === void 0 ? [] : typeof s == "function" ? n ? [s.listener || s] : [s] : n ? Pr(s) :
|
|
1926
|
+
return s === void 0 ? [] : typeof s == "function" ? n ? [s.listener || s] : [s] : n ? Pr(s) : Et(s, s.length);
|
|
1921
1927
|
}
|
|
1922
1928
|
w.prototype.listeners = function(t) {
|
|
1923
|
-
return
|
|
1929
|
+
return gt(this, t, !0);
|
|
1924
1930
|
};
|
|
1925
1931
|
w.prototype.rawListeners = function(t) {
|
|
1926
|
-
return
|
|
1932
|
+
return gt(this, t, !1);
|
|
1927
1933
|
};
|
|
1928
1934
|
w.listenerCount = function(e, t) {
|
|
1929
1935
|
return typeof e.listenerCount == "function" ? e.listenerCount(t) : bt.call(e, t);
|
|
@@ -1943,12 +1949,12 @@ function bt(e) {
|
|
|
1943
1949
|
w.prototype.eventNames = function() {
|
|
1944
1950
|
return this._eventsCount > 0 ? Y(this._events) : [];
|
|
1945
1951
|
};
|
|
1946
|
-
function
|
|
1952
|
+
function Et(e, t) {
|
|
1947
1953
|
for (var n = new Array(t), r = 0; r < t; ++r)
|
|
1948
1954
|
n[r] = e[r];
|
|
1949
1955
|
return n;
|
|
1950
1956
|
}
|
|
1951
|
-
function
|
|
1957
|
+
function Cr(e, t) {
|
|
1952
1958
|
for (; t + 1 < e.length; t++)
|
|
1953
1959
|
e[t] = e[t + 1];
|
|
1954
1960
|
e.pop();
|
|
@@ -1966,13 +1972,13 @@ function Dr(e, t) {
|
|
|
1966
1972
|
function o() {
|
|
1967
1973
|
typeof e.removeListener == "function" && e.removeListener("error", s), n([].slice.call(arguments));
|
|
1968
1974
|
}
|
|
1969
|
-
|
|
1975
|
+
vt(e, t, o, { once: !0 }), t !== "error" && $r(e, s, { once: !0 });
|
|
1970
1976
|
});
|
|
1971
1977
|
}
|
|
1972
1978
|
function $r(e, t, n) {
|
|
1973
|
-
typeof e.on == "function" &&
|
|
1979
|
+
typeof e.on == "function" && vt(e, "error", t, n);
|
|
1974
1980
|
}
|
|
1975
|
-
function
|
|
1981
|
+
function vt(e, t, n, r) {
|
|
1976
1982
|
if (typeof e.on == "function")
|
|
1977
1983
|
r.once ? e.once(t, n) : e.on(t, n);
|
|
1978
1984
|
else if (typeof e.addEventListener == "function")
|
|
@@ -1983,7 +1989,7 @@ function Et(e, t, n, r) {
|
|
|
1983
1989
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
1984
1990
|
}
|
|
1985
1991
|
var Fr = be.exports;
|
|
1986
|
-
const
|
|
1992
|
+
const kr = /* @__PURE__ */ Lr(Fr), Ur = (e, t = new kr()) => {
|
|
1987
1993
|
const n = {
|
|
1988
1994
|
emit: (o, ...i) => (t.emit(o.toString(), ...i), n)
|
|
1989
1995
|
}, r = e(n), s = Object.assign(
|
|
@@ -1995,38 +2001,39 @@ const jr = /* @__PURE__ */ Nr(Fr), kr = (e, t = new jr()) => {
|
|
|
1995
2001
|
}
|
|
1996
2002
|
);
|
|
1997
2003
|
return s;
|
|
1998
|
-
},
|
|
2004
|
+
}, jr = (e) => new Promise(
|
|
1999
2005
|
(t) => {
|
|
2000
2006
|
setTimeout(t, e);
|
|
2001
2007
|
}
|
|
2002
2008
|
), Br = (e) => ({
|
|
2003
|
-
start:
|
|
2004
|
-
end:
|
|
2009
|
+
start: b(e.start),
|
|
2010
|
+
end: b(e.end)
|
|
2005
2011
|
}), Mr = (e) => ({
|
|
2006
2012
|
...e,
|
|
2007
|
-
createdAt:
|
|
2008
|
-
destroyAt:
|
|
2013
|
+
createdAt: b(e.createdAt),
|
|
2014
|
+
destroyAt: b(e.destroyAt),
|
|
2009
2015
|
period: e.period ? Br(e.period) : void 0
|
|
2010
|
-
}),
|
|
2016
|
+
}), Ee = (e) => ({
|
|
2011
2017
|
...e,
|
|
2012
2018
|
detail: Mr(e.detail)
|
|
2013
|
-
}),
|
|
2014
|
-
var
|
|
2015
|
-
|
|
2016
|
-
|
|
2019
|
+
}), At = (e, t, n) => {
|
|
2020
|
+
var s, o;
|
|
2021
|
+
const r = typeof e == "string" ? e : e.id;
|
|
2022
|
+
return h.$post(
|
|
2023
|
+
`/tasks/${r}/run`,
|
|
2017
2024
|
null,
|
|
2018
2025
|
{
|
|
2019
2026
|
params: {
|
|
2020
2027
|
test_emails: t == null ? void 0 : t.testEmails,
|
|
2021
|
-
period_start: (
|
|
2022
|
-
period_end: (
|
|
2028
|
+
period_start: (s = t == null ? void 0 : t.period) == null ? void 0 : s.start,
|
|
2029
|
+
period_end: (o = t == null ? void 0 : t.period) == null ? void 0 : o.end,
|
|
2023
2030
|
namespaces: n
|
|
2024
2031
|
}
|
|
2025
2032
|
}
|
|
2026
2033
|
);
|
|
2027
|
-
},
|
|
2034
|
+
}, zr = (...e) => Ur(
|
|
2028
2035
|
async (t) => {
|
|
2029
|
-
const { content: { id: n, queue: r } } = await
|
|
2036
|
+
const { content: { id: n, queue: r } } = await At(...e);
|
|
2030
2037
|
t.emit("started", { id: n, queue: r });
|
|
2031
2038
|
let s;
|
|
2032
2039
|
do {
|
|
@@ -2038,25 +2045,25 @@ const jr = /* @__PURE__ */ Nr(Fr), kr = (e, t = new jr()) => {
|
|
|
2038
2045
|
}
|
|
2039
2046
|
// FIXME: What if param order changes ?
|
|
2040
2047
|
// eslint-disable-next-line no-await-in-loop
|
|
2041
|
-
} = await
|
|
2048
|
+
} = await H(r, n, e[2]);
|
|
2042
2049
|
s = { progress: o, status: i, result: c }, t.emit("progress", { progress: o, status: i });
|
|
2043
2050
|
let f = 1e3;
|
|
2044
|
-
s.status === "active" && (f = 250), await
|
|
2051
|
+
s.status === "active" && (f = 250), await jr(f);
|
|
2045
2052
|
} while (["completed", "failed", "stuck"].includes(s.status) === !1);
|
|
2046
2053
|
if (!s.result)
|
|
2047
2054
|
throw new Error("Generation failed with weird error");
|
|
2048
|
-
return
|
|
2055
|
+
return Ee(s.result);
|
|
2049
2056
|
}
|
|
2050
|
-
), $ = async (e, t, n) => (await
|
|
2057
|
+
), $ = async (e, t, n) => (await O(
|
|
2051
2058
|
"get",
|
|
2052
2059
|
`/reports/${e}`,
|
|
2053
2060
|
{
|
|
2054
2061
|
responseType: n,
|
|
2055
2062
|
params: { namespaces: t }
|
|
2056
2063
|
}
|
|
2057
|
-
)).data, Hr = (e, t, n, r = "pdf") => $(`${e}.rep.${r}`, t, n),
|
|
2064
|
+
)).data, Hr = (e, t, n, r = "pdf") => $(`${e}.rep.${r}`, t, n), Ir = async (e, t, n, r) => {
|
|
2058
2065
|
var o;
|
|
2059
|
-
const { content: { result: s } } = await
|
|
2066
|
+
const { content: { result: s } } = await H(
|
|
2060
2067
|
e,
|
|
2061
2068
|
t,
|
|
2062
2069
|
n
|
|
@@ -2066,10 +2073,10 @@ const jr = /* @__PURE__ */ Nr(Fr), kr = (e, t = new jr()) => {
|
|
|
2066
2073
|
return $(((o = s.detail) == null ? void 0 : o.files.report) ?? "", n, r);
|
|
2067
2074
|
}, qr = async (e, t, n) => {
|
|
2068
2075
|
const r = await $(`${e}.det.json`, t, n);
|
|
2069
|
-
return !n || n === "json" ?
|
|
2076
|
+
return !n || n === "json" ? Ee(r) : r;
|
|
2070
2077
|
}, Jr = async (e, t, n, r) => {
|
|
2071
2078
|
var i;
|
|
2072
|
-
const { content: { result: s } } = await
|
|
2079
|
+
const { content: { result: s } } = await H(
|
|
2073
2080
|
e,
|
|
2074
2081
|
t,
|
|
2075
2082
|
n
|
|
@@ -2077,10 +2084,10 @@ const jr = /* @__PURE__ */ Nr(Fr), kr = (e, t = new jr()) => {
|
|
|
2077
2084
|
if (!s)
|
|
2078
2085
|
throw new Error("Job have no result");
|
|
2079
2086
|
const o = await $(((i = s.detail) == null ? void 0 : i.files.detail) ?? "", n, r);
|
|
2080
|
-
return !r || r === "json" ?
|
|
2087
|
+
return !r || r === "json" ? Ee(o) : o;
|
|
2081
2088
|
}, Wr = (e, t, n) => $(`${e}.deb.json`, t, n), Kr = async (e, t, n, r) => {
|
|
2082
2089
|
var o;
|
|
2083
|
-
const { content: { result: s } } = await
|
|
2090
|
+
const { content: { result: s } } = await H(
|
|
2084
2091
|
e,
|
|
2085
2092
|
t,
|
|
2086
2093
|
n
|
|
@@ -2088,43 +2095,89 @@ const jr = /* @__PURE__ */ Nr(Fr), kr = (e, t = new jr()) => {
|
|
|
2088
2095
|
if (!s)
|
|
2089
2096
|
throw new Error("Job have no result");
|
|
2090
2097
|
return $(((o = s.detail) == null ? void 0 : o.files.debug) ?? "", n, r);
|
|
2091
|
-
},
|
|
2098
|
+
}, Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2092
2099
|
__proto__: null,
|
|
2093
2100
|
getReportDebugByJob: Kr,
|
|
2094
2101
|
getReportDebugByName: Wr,
|
|
2095
2102
|
getReportDetailByJob: Jr,
|
|
2096
2103
|
getReportDetailByName: qr,
|
|
2097
|
-
getReportFileByJob:
|
|
2104
|
+
getReportFileByJob: Ir,
|
|
2098
2105
|
getReportFileByName: Hr,
|
|
2099
|
-
startAndListenGeneration:
|
|
2100
|
-
startGeneration:
|
|
2106
|
+
startAndListenGeneration: zr,
|
|
2107
|
+
startGeneration: At
|
|
2101
2108
|
}, Symbol.toStringTag, { value: "Module" })), Vr = (e) => {
|
|
2102
|
-
|
|
2109
|
+
h.defaults.baseURL = e;
|
|
2103
2110
|
}, Yr = () => {
|
|
2104
|
-
|
|
2105
|
-
}, Gr = () => !!
|
|
2111
|
+
h.defaults.baseURL = void 0;
|
|
2112
|
+
}, Gr = () => !!h.defaults.baseURL, $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2106
2113
|
__proto__: null,
|
|
2107
|
-
isLogged:
|
|
2114
|
+
isLogged: ut,
|
|
2108
2115
|
isURLset: Gr,
|
|
2109
|
-
login:
|
|
2110
|
-
logout:
|
|
2116
|
+
login: at,
|
|
2117
|
+
logout: ct,
|
|
2111
2118
|
setURL: Vr,
|
|
2112
2119
|
unsetURL: Yr
|
|
2113
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2120
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = (e) => ({
|
|
2121
|
+
...e,
|
|
2122
|
+
createdAt: b(e.createdAt),
|
|
2123
|
+
updatedAt: e.updatedAt ? b(e.updatedAt) : void 0
|
|
2124
|
+
}), Ae = (e) => {
|
|
2125
|
+
const { body: t, tasks: n, ...r } = e;
|
|
2126
|
+
return {
|
|
2127
|
+
...ve(r),
|
|
2128
|
+
tasks: n.map(we),
|
|
2129
|
+
body: t
|
|
2130
|
+
};
|
|
2131
|
+
}, Qr = async () => {
|
|
2132
|
+
const { content: e, ...t } = await h.$get("/templates");
|
|
2133
|
+
return {
|
|
2134
|
+
...t,
|
|
2135
|
+
content: e.map(ve)
|
|
2136
|
+
};
|
|
2137
|
+
}, Zr = async (e) => {
|
|
2138
|
+
const t = typeof e == "string" ? e : e.id, { content: n, ...r } = await h.$get(`/templates/${t}`);
|
|
2139
|
+
return {
|
|
2140
|
+
...r,
|
|
2141
|
+
content: Ae(n)
|
|
2142
|
+
};
|
|
2143
|
+
}, Xr = async (e) => {
|
|
2144
|
+
const { content: t, ...n } = await h.$post(
|
|
2145
|
+
"/templates",
|
|
2146
|
+
e
|
|
2147
|
+
);
|
|
2148
|
+
return {
|
|
2149
|
+
...n,
|
|
2150
|
+
content: Ae(t)
|
|
2151
|
+
};
|
|
2152
|
+
}, Tt = async (e) => {
|
|
2153
|
+
const { id: t, ...n } = e, { content: r, ...s } = await h.$put(
|
|
2154
|
+
`/templates/${t}`,
|
|
2155
|
+
n
|
|
2156
|
+
);
|
|
2157
|
+
return {
|
|
2158
|
+
...s,
|
|
2159
|
+
content: Ae(r)
|
|
2160
|
+
};
|
|
2161
|
+
}, es = Tt, ts = async (e) => {
|
|
2162
|
+
const t = typeof e == "string" ? e : e.id;
|
|
2163
|
+
await h.$delete(`/templates/${t}`);
|
|
2164
|
+
}, F = (e) => {
|
|
2114
2165
|
const {
|
|
2115
|
-
|
|
2166
|
+
activity: t,
|
|
2116
2167
|
template: n,
|
|
2117
2168
|
targets: r,
|
|
2118
|
-
|
|
2169
|
+
extends: s,
|
|
2170
|
+
...o
|
|
2119
2171
|
} = e;
|
|
2120
2172
|
return {
|
|
2121
|
-
...
|
|
2122
|
-
|
|
2173
|
+
...pt(o),
|
|
2174
|
+
extends: ve(s),
|
|
2175
|
+
activity: t.map(Er),
|
|
2123
2176
|
template: n,
|
|
2124
2177
|
targets: r
|
|
2125
2178
|
};
|
|
2126
|
-
},
|
|
2127
|
-
const { data: { content: n, ...r } } = await
|
|
2179
|
+
}, ns = async (e, t) => {
|
|
2180
|
+
const { data: { content: n, ...r } } = await O(
|
|
2128
2181
|
"get",
|
|
2129
2182
|
"/tasks",
|
|
2130
2183
|
{
|
|
@@ -2136,129 +2189,110 @@ const jr = /* @__PURE__ */ Nr(Fr), kr = (e, t = new jr()) => {
|
|
|
2136
2189
|
);
|
|
2137
2190
|
return {
|
|
2138
2191
|
...r,
|
|
2139
|
-
content: n.map(
|
|
2192
|
+
content: n.map(({ tags: s, ...o }) => ({
|
|
2193
|
+
tags: s,
|
|
2194
|
+
...we(o)
|
|
2195
|
+
}))
|
|
2140
2196
|
};
|
|
2141
|
-
},
|
|
2142
|
-
const { content: n, ...r } = await
|
|
2197
|
+
}, rs = async (e, t) => {
|
|
2198
|
+
const { content: n, ...r } = await h.$post(
|
|
2143
2199
|
"/tasks",
|
|
2144
2200
|
e,
|
|
2145
2201
|
{ params: { namespaces: t } }
|
|
2146
2202
|
);
|
|
2147
2203
|
return {
|
|
2148
2204
|
...r,
|
|
2149
|
-
content:
|
|
2205
|
+
content: F(n)
|
|
2150
2206
|
};
|
|
2151
|
-
},
|
|
2152
|
-
const { content:
|
|
2207
|
+
}, ss = async (e, t) => {
|
|
2208
|
+
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await h.$get(`/tasks/${n}`, { params: { namespaces: t } });
|
|
2153
2209
|
return {
|
|
2154
|
-
...
|
|
2155
|
-
content:
|
|
2210
|
+
...s,
|
|
2211
|
+
content: F(r)
|
|
2156
2212
|
};
|
|
2157
|
-
},
|
|
2158
|
-
const {
|
|
2159
|
-
`/tasks/${
|
|
2160
|
-
|
|
2161
|
-
{ params: { namespaces:
|
|
2213
|
+
}, St = async (e, t) => {
|
|
2214
|
+
const { id: n, ...r } = e, { content: s, ...o } = await h.$put(
|
|
2215
|
+
`/tasks/${n}`,
|
|
2216
|
+
r,
|
|
2217
|
+
{ params: { namespaces: t } }
|
|
2162
2218
|
);
|
|
2163
2219
|
return {
|
|
2164
|
-
...
|
|
2165
|
-
content:
|
|
2220
|
+
...o,
|
|
2221
|
+
content: F(s)
|
|
2166
2222
|
};
|
|
2167
|
-
},
|
|
2168
|
-
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
|
|
2223
|
+
}, os = St, is = async (e, t) => {
|
|
2224
|
+
const n = typeof e == "string" ? e : e.id;
|
|
2225
|
+
await h.$delete(`/tasks/${n}`, { params: { namespaces: t } });
|
|
2226
|
+
}, as = async (e, t) => {
|
|
2227
|
+
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await h.$put(
|
|
2228
|
+
`/tasks/${n}/enable`,
|
|
2172
2229
|
void 0,
|
|
2173
2230
|
{ params: { namespaces: t } }
|
|
2174
2231
|
);
|
|
2175
2232
|
return {
|
|
2176
|
-
...
|
|
2177
|
-
content:
|
|
2233
|
+
...s,
|
|
2234
|
+
content: F(r)
|
|
2178
2235
|
};
|
|
2179
|
-
},
|
|
2180
|
-
const { content:
|
|
2181
|
-
`/tasks/${
|
|
2236
|
+
}, cs = async (e, t) => {
|
|
2237
|
+
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await h.$put(
|
|
2238
|
+
`/tasks/${n}/disable`,
|
|
2182
2239
|
void 0,
|
|
2183
2240
|
{ params: { namespaces: t } }
|
|
2184
2241
|
);
|
|
2185
2242
|
return {
|
|
2186
|
-
...
|
|
2187
|
-
content:
|
|
2188
|
-
};
|
|
2189
|
-
}, Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2190
|
-
__proto__: null,
|
|
2191
|
-
Recurrence: lt,
|
|
2192
|
-
createTask: Zr,
|
|
2193
|
-
deleteTask: ts,
|
|
2194
|
-
disableTask: rs,
|
|
2195
|
-
enableTask: ns,
|
|
2196
|
-
getAllTasks: Qr,
|
|
2197
|
-
getTask: Xr,
|
|
2198
|
-
updateTask: es,
|
|
2199
|
-
upsertTask: Ot
|
|
2200
|
-
}, Symbol.toStringTag, { value: "Module" })), At = (e) => ({
|
|
2201
|
-
...e,
|
|
2202
|
-
createdAt: g(e.createdAt),
|
|
2203
|
-
updatedAt: e.updatedAt ? g(e.updatedAt) : void 0
|
|
2204
|
-
}), Ee = (e) => {
|
|
2205
|
-
const { body: t, ...n } = e;
|
|
2206
|
-
return {
|
|
2207
|
-
...At(n),
|
|
2208
|
-
body: t
|
|
2209
|
-
};
|
|
2210
|
-
}, ss = async () => {
|
|
2211
|
-
const { content: e, ...t } = await m.$get("/templates");
|
|
2212
|
-
return {
|
|
2213
|
-
...t,
|
|
2214
|
-
content: e.map(At)
|
|
2215
|
-
};
|
|
2216
|
-
}, os = async (e) => {
|
|
2217
|
-
const { content: t, ...n } = await m.$get(`/templates/${e}`);
|
|
2218
|
-
return {
|
|
2219
|
-
...n,
|
|
2220
|
-
content: Ee(t)
|
|
2243
|
+
...s,
|
|
2244
|
+
content: F(r)
|
|
2221
2245
|
};
|
|
2222
|
-
},
|
|
2223
|
-
const { content:
|
|
2224
|
-
|
|
2225
|
-
|
|
2246
|
+
}, us = async (e, t, n) => {
|
|
2247
|
+
const r = typeof e == "string" ? e : e.id, s = typeof t == "string" ? t : t.id, { content: o, ...i } = await h.$put(
|
|
2248
|
+
`/tasks/${r}/link/${s}`,
|
|
2249
|
+
void 0,
|
|
2250
|
+
{ params: { namespaces: n } }
|
|
2226
2251
|
);
|
|
2227
2252
|
return {
|
|
2228
|
-
...
|
|
2229
|
-
content:
|
|
2253
|
+
...i,
|
|
2254
|
+
content: F(o)
|
|
2230
2255
|
};
|
|
2231
|
-
},
|
|
2232
|
-
const
|
|
2233
|
-
|
|
2234
|
-
|
|
2256
|
+
}, ls = async (e, t, n) => {
|
|
2257
|
+
const r = typeof e == "string" ? e : e.id, s = typeof t == "string" ? t : t.id;
|
|
2258
|
+
await h.$delete(
|
|
2259
|
+
`/tasks/${r}/link/${s}`,
|
|
2260
|
+
{ params: { namespaces: n } }
|
|
2235
2261
|
);
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2262
|
+
}, Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2263
|
+
__proto__: null,
|
|
2264
|
+
Recurrence: dt,
|
|
2265
|
+
createTask: rs,
|
|
2266
|
+
deleteTask: is,
|
|
2267
|
+
disableTask: cs,
|
|
2268
|
+
enableTask: as,
|
|
2269
|
+
getAllTasks: ns,
|
|
2270
|
+
getTask: ss,
|
|
2271
|
+
linkTaskToTemplate: us,
|
|
2272
|
+
unlinkTaskToTemplate: ls,
|
|
2273
|
+
updateTask: os,
|
|
2274
|
+
upsertTask: St
|
|
2275
|
+
}, Symbol.toStringTag, { value: "Module" })), ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2243
2276
|
__proto__: null,
|
|
2244
|
-
createTemplate:
|
|
2245
|
-
deleteTemplate:
|
|
2246
|
-
getAllTemplates:
|
|
2247
|
-
getTemplate:
|
|
2248
|
-
updateTemplate:
|
|
2249
|
-
upsertTemplate:
|
|
2250
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2277
|
+
createTemplate: Xr,
|
|
2278
|
+
deleteTemplate: ts,
|
|
2279
|
+
getAllTemplates: Qr,
|
|
2280
|
+
getTemplate: Zr,
|
|
2281
|
+
updateTemplate: es,
|
|
2282
|
+
upsertTemplate: Tt
|
|
2283
|
+
}, Symbol.toStringTag, { value: "Module" })), Us = "1.0.0-beta.5";
|
|
2251
2284
|
export {
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2285
|
+
Os as auth,
|
|
2286
|
+
Ls as crons,
|
|
2287
|
+
Ns as health,
|
|
2288
|
+
xs as history,
|
|
2289
|
+
Cs as namespaces,
|
|
2290
|
+
Ps as queues,
|
|
2291
|
+
Ds as reports,
|
|
2292
|
+
$s as setup,
|
|
2293
|
+
Fs as tasks,
|
|
2294
|
+
xs as tasksActivity,
|
|
2295
|
+
ks as templates,
|
|
2296
|
+
Us as version
|
|
2263
2297
|
};
|
|
2264
2298
|
//# sourceMappingURL=ezreeport-sdk-js.mjs.map
|