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