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