@webdock/sdk 1.0.1 → 1.0.5
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/package.json +10 -9
- package/dist/account.d.ts +0 -30
- package/dist/account.d.ts.map +0 -1
- package/dist/account.test.d.ts +0 -2
- package/dist/account.test.d.ts.map +0 -1
- package/dist/events.d.ts +0 -38
- package/dist/events.d.ts.map +0 -1
- package/dist/events.test.d.ts +0 -2
- package/dist/events.test.d.ts.map +0 -1
- package/dist/hooks.d.ts +0 -65
- package/dist/hooks.d.ts.map +0 -1
- package/dist/hooks.test.d.ts +0 -2
- package/dist/hooks.test.d.ts.map +0 -1
- package/dist/images.d.ts +0 -24
- package/dist/images.d.ts.map +0 -1
- package/dist/images.test.d.ts +0 -2
- package/dist/images.test.d.ts.map +0 -1
- package/dist/index.cjs +0 -9
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -48
- package/dist/index.d.ts.map +0 -1
- package/dist/index.mjs +0 -3964
- package/dist/index.mjs.map +0 -1
- package/dist/locations.d.ts +0 -26
- package/dist/locations.d.ts.map +0 -1
- package/dist/locations.test.d.ts +0 -2
- package/dist/locations.test.d.ts.map +0 -1
- package/dist/operation.d.ts +0 -31
- package/dist/operation.d.ts.map +0 -1
- package/dist/profiles.d.ts +0 -37
- package/dist/profiles.d.ts.map +0 -1
- package/dist/profiles.test.d.ts +0 -2
- package/dist/profiles.test.d.ts.map +0 -1
- package/dist/scripts.d.ts +0 -122
- package/dist/scripts.d.ts.map +0 -1
- package/dist/scripts.test.d.ts +0 -2
- package/dist/scripts.test.d.ts.map +0 -1
- package/dist/servers.d.ts +0 -200
- package/dist/servers.d.ts.map +0 -1
- package/dist/servers.test.d.ts +0 -2
- package/dist/servers.test.d.ts.map +0 -1
- package/dist/shellusers.d.ts +0 -87
- package/dist/shellusers.d.ts.map +0 -1
- package/dist/shellusers.test.d.ts +0 -2
- package/dist/shellusers.test.d.ts.map +0 -1
- package/dist/snapshots.d.ts +0 -51
- package/dist/snapshots.d.ts.map +0 -1
- package/dist/snapshots.test.d.ts +0 -2
- package/dist/snapshots.test.d.ts.map +0 -1
- package/dist/sshkeys.d.ts +0 -27
- package/dist/sshkeys.d.ts.map +0 -1
- package/dist/testUtils.d.ts +0 -5
- package/dist/testUtils.d.ts.map +0 -1
- package/dist/utils/req.d.ts +0 -3
- package/dist/utils/req.d.ts.map +0 -1
package/dist/index.mjs
DELETED
|
@@ -1,3964 +0,0 @@
|
|
|
1
|
-
import kt from "fs";
|
|
2
|
-
import It from "path";
|
|
3
|
-
import Ct from "os";
|
|
4
|
-
import Dt from "crypto";
|
|
5
|
-
function qt(e, r) {
|
|
6
|
-
for (var t = 0; t < r.length; t++) {
|
|
7
|
-
const n = r[t];
|
|
8
|
-
if (typeof n != "string" && !Array.isArray(n)) {
|
|
9
|
-
for (const o in n)
|
|
10
|
-
if (o !== "default" && !(o in e)) {
|
|
11
|
-
const s = Object.getOwnPropertyDescriptor(n, o);
|
|
12
|
-
s && Object.defineProperty(e, o, s.get ? s : {
|
|
13
|
-
enumerable: !0,
|
|
14
|
-
get: () => n[o]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
-
}
|
|
21
|
-
var dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
22
|
-
function Nt(e) {
|
|
23
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
24
|
-
}
|
|
25
|
-
var Y = { exports: {} };
|
|
26
|
-
const jt = "17.2.1", Ut = {
|
|
27
|
-
version: jt
|
|
28
|
-
};
|
|
29
|
-
var fr;
|
|
30
|
-
function Lt() {
|
|
31
|
-
if (fr) return Y.exports;
|
|
32
|
-
fr = 1;
|
|
33
|
-
const e = kt, r = It, t = Ct, n = Dt, s = Ut.version, i = [
|
|
34
|
-
"🔐 encrypt with Dotenvx: https://dotenvx.com",
|
|
35
|
-
"🔐 prevent committing .env to code: https://dotenvx.com/precommit",
|
|
36
|
-
"🔐 prevent building .env in docker: https://dotenvx.com/prebuild",
|
|
37
|
-
"📡 observe env with Radar: https://dotenvx.com/radar",
|
|
38
|
-
"📡 auto-backup env with Radar: https://dotenvx.com/radar",
|
|
39
|
-
"📡 version env with Radar: https://dotenvx.com/radar",
|
|
40
|
-
"🛠️ run anywhere with `dotenvx run -- yourcommand`",
|
|
41
|
-
"⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
|
|
42
|
-
"⚙️ enable debug logging with { debug: true }",
|
|
43
|
-
"⚙️ override existing env vars with { override: true }",
|
|
44
|
-
"⚙️ suppress all logs with { quiet: true }",
|
|
45
|
-
"⚙️ write to custom object with { processEnv: myObject }",
|
|
46
|
-
"⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"
|
|
47
|
-
];
|
|
48
|
-
function a() {
|
|
49
|
-
return i[Math.floor(Math.random() * i.length)];
|
|
50
|
-
}
|
|
51
|
-
function m(v) {
|
|
52
|
-
return typeof v == "string" ? !["false", "0", "no", "off", ""].includes(v.toLowerCase()) : !!v;
|
|
53
|
-
}
|
|
54
|
-
function p() {
|
|
55
|
-
return process.stdout.isTTY;
|
|
56
|
-
}
|
|
57
|
-
function f(v) {
|
|
58
|
-
return p() ? `\x1B[2m${v}\x1B[0m` : v;
|
|
59
|
-
}
|
|
60
|
-
const b = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
61
|
-
function w(v) {
|
|
62
|
-
const R = {};
|
|
63
|
-
let u = v.toString();
|
|
64
|
-
u = u.replace(/\r\n?/mg, `
|
|
65
|
-
`);
|
|
66
|
-
let l;
|
|
67
|
-
for (; (l = b.exec(u)) != null; ) {
|
|
68
|
-
const h = l[1];
|
|
69
|
-
let y = l[2] || "";
|
|
70
|
-
y = y.trim();
|
|
71
|
-
const d = y[0];
|
|
72
|
-
y = y.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), d === '"' && (y = y.replace(/\\n/g, `
|
|
73
|
-
`), y = y.replace(/\\r/g, "\r")), R[h] = y;
|
|
74
|
-
}
|
|
75
|
-
return R;
|
|
76
|
-
}
|
|
77
|
-
function I(v) {
|
|
78
|
-
v = v || {};
|
|
79
|
-
const R = q(v);
|
|
80
|
-
v.path = R;
|
|
81
|
-
const u = L.configDotenv(v);
|
|
82
|
-
if (!u.parsed) {
|
|
83
|
-
const d = new Error(`MISSING_DATA: Cannot parse ${R} for an unknown reason`);
|
|
84
|
-
throw d.code = "MISSING_DATA", d;
|
|
85
|
-
}
|
|
86
|
-
const l = C(v).split(","), h = l.length;
|
|
87
|
-
let y;
|
|
88
|
-
for (let d = 0; d < h; d++)
|
|
89
|
-
try {
|
|
90
|
-
const S = l[d].trim(), T = D(u, S);
|
|
91
|
-
y = L.decrypt(T.ciphertext, T.key);
|
|
92
|
-
break;
|
|
93
|
-
} catch (S) {
|
|
94
|
-
if (d + 1 >= h)
|
|
95
|
-
throw S;
|
|
96
|
-
}
|
|
97
|
-
return L.parse(y);
|
|
98
|
-
}
|
|
99
|
-
function g(v) {
|
|
100
|
-
console.error(`[dotenv@${s}][WARN] ${v}`);
|
|
101
|
-
}
|
|
102
|
-
function _(v) {
|
|
103
|
-
console.log(`[dotenv@${s}][DEBUG] ${v}`);
|
|
104
|
-
}
|
|
105
|
-
function E(v) {
|
|
106
|
-
console.log(`[dotenv@${s}] ${v}`);
|
|
107
|
-
}
|
|
108
|
-
function C(v) {
|
|
109
|
-
return v && v.DOTENV_KEY && v.DOTENV_KEY.length > 0 ? v.DOTENV_KEY : process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0 ? process.env.DOTENV_KEY : "";
|
|
110
|
-
}
|
|
111
|
-
function D(v, R) {
|
|
112
|
-
let u;
|
|
113
|
-
try {
|
|
114
|
-
u = new URL(R);
|
|
115
|
-
} catch (S) {
|
|
116
|
-
if (S.code === "ERR_INVALID_URL") {
|
|
117
|
-
const T = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
118
|
-
throw T.code = "INVALID_DOTENV_KEY", T;
|
|
119
|
-
}
|
|
120
|
-
throw S;
|
|
121
|
-
}
|
|
122
|
-
const l = u.password;
|
|
123
|
-
if (!l) {
|
|
124
|
-
const S = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
125
|
-
throw S.code = "INVALID_DOTENV_KEY", S;
|
|
126
|
-
}
|
|
127
|
-
const h = u.searchParams.get("environment");
|
|
128
|
-
if (!h) {
|
|
129
|
-
const S = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
130
|
-
throw S.code = "INVALID_DOTENV_KEY", S;
|
|
131
|
-
}
|
|
132
|
-
const y = `DOTENV_VAULT_${h.toUpperCase()}`, d = v.parsed[y];
|
|
133
|
-
if (!d) {
|
|
134
|
-
const S = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${y} in your .env.vault file.`);
|
|
135
|
-
throw S.code = "NOT_FOUND_DOTENV_ENVIRONMENT", S;
|
|
136
|
-
}
|
|
137
|
-
return { ciphertext: d, key: l };
|
|
138
|
-
}
|
|
139
|
-
function q(v) {
|
|
140
|
-
let R = null;
|
|
141
|
-
if (v && v.path && v.path.length > 0)
|
|
142
|
-
if (Array.isArray(v.path))
|
|
143
|
-
for (const u of v.path)
|
|
144
|
-
e.existsSync(u) && (R = u.endsWith(".vault") ? u : `${u}.vault`);
|
|
145
|
-
else
|
|
146
|
-
R = v.path.endsWith(".vault") ? v.path : `${v.path}.vault`;
|
|
147
|
-
else
|
|
148
|
-
R = r.resolve(process.cwd(), ".env.vault");
|
|
149
|
-
return e.existsSync(R) ? R : null;
|
|
150
|
-
}
|
|
151
|
-
function M(v) {
|
|
152
|
-
return v[0] === "~" ? r.join(t.homedir(), v.slice(1)) : v;
|
|
153
|
-
}
|
|
154
|
-
function j(v) {
|
|
155
|
-
const R = m(process.env.DOTENV_CONFIG_DEBUG || v && v.debug), u = m(process.env.DOTENV_CONFIG_QUIET || v && v.quiet);
|
|
156
|
-
(R || !u) && E("Loading env from encrypted .env.vault");
|
|
157
|
-
const l = L._parseVault(v);
|
|
158
|
-
let h = process.env;
|
|
159
|
-
return v && v.processEnv != null && (h = v.processEnv), L.populate(h, l, v), { parsed: l };
|
|
160
|
-
}
|
|
161
|
-
function G(v) {
|
|
162
|
-
const R = r.resolve(process.cwd(), ".env");
|
|
163
|
-
let u = "utf8", l = process.env;
|
|
164
|
-
v && v.processEnv != null && (l = v.processEnv);
|
|
165
|
-
let h = m(l.DOTENV_CONFIG_DEBUG || v && v.debug), y = m(l.DOTENV_CONFIG_QUIET || v && v.quiet);
|
|
166
|
-
v && v.encoding ? u = v.encoding : h && _("No encoding is specified. UTF-8 is used by default");
|
|
167
|
-
let d = [R];
|
|
168
|
-
if (v && v.path)
|
|
169
|
-
if (!Array.isArray(v.path))
|
|
170
|
-
d = [M(v.path)];
|
|
171
|
-
else {
|
|
172
|
-
d = [];
|
|
173
|
-
for (const k of v.path)
|
|
174
|
-
d.push(M(k));
|
|
175
|
-
}
|
|
176
|
-
let S;
|
|
177
|
-
const T = {};
|
|
178
|
-
for (const k of d)
|
|
179
|
-
try {
|
|
180
|
-
const O = L.parse(e.readFileSync(k, { encoding: u }));
|
|
181
|
-
L.populate(T, O, v);
|
|
182
|
-
} catch (O) {
|
|
183
|
-
h && _(`Failed to load ${k} ${O.message}`), S = O;
|
|
184
|
-
}
|
|
185
|
-
const N = L.populate(l, T, v);
|
|
186
|
-
if (h = m(l.DOTENV_CONFIG_DEBUG || h), y = m(l.DOTENV_CONFIG_QUIET || y), h || !y) {
|
|
187
|
-
const k = Object.keys(N).length, O = [];
|
|
188
|
-
for (const U of d)
|
|
189
|
-
try {
|
|
190
|
-
const B = r.relative(process.cwd(), U);
|
|
191
|
-
O.push(B);
|
|
192
|
-
} catch (B) {
|
|
193
|
-
h && _(`Failed to load ${U} ${B.message}`), S = B;
|
|
194
|
-
}
|
|
195
|
-
E(`injecting env (${k}) from ${O.join(",")} ${f(`-- tip: ${a()}`)}`);
|
|
196
|
-
}
|
|
197
|
-
return S ? { parsed: T, error: S } : { parsed: T };
|
|
198
|
-
}
|
|
199
|
-
function W(v) {
|
|
200
|
-
if (C(v).length === 0)
|
|
201
|
-
return L.configDotenv(v);
|
|
202
|
-
const R = q(v);
|
|
203
|
-
return R ? L._configVault(v) : (g(`You set DOTENV_KEY but you are missing a .env.vault file at ${R}. Did you forget to build it?`), L.configDotenv(v));
|
|
204
|
-
}
|
|
205
|
-
function X(v, R) {
|
|
206
|
-
const u = Buffer.from(R.slice(-64), "hex");
|
|
207
|
-
let l = Buffer.from(v, "base64");
|
|
208
|
-
const h = l.subarray(0, 12), y = l.subarray(-16);
|
|
209
|
-
l = l.subarray(12, -16);
|
|
210
|
-
try {
|
|
211
|
-
const d = n.createDecipheriv("aes-256-gcm", u, h);
|
|
212
|
-
return d.setAuthTag(y), `${d.update(l)}${d.final()}`;
|
|
213
|
-
} catch (d) {
|
|
214
|
-
const S = d instanceof RangeError, T = d.message === "Invalid key length", N = d.message === "Unsupported state or unable to authenticate data";
|
|
215
|
-
if (S || T) {
|
|
216
|
-
const k = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
217
|
-
throw k.code = "INVALID_DOTENV_KEY", k;
|
|
218
|
-
} else if (N) {
|
|
219
|
-
const k = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
220
|
-
throw k.code = "DECRYPTION_FAILED", k;
|
|
221
|
-
} else
|
|
222
|
-
throw d;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
function ee(v, R, u = {}) {
|
|
226
|
-
const l = !!(u && u.debug), h = !!(u && u.override), y = {};
|
|
227
|
-
if (typeof R != "object") {
|
|
228
|
-
const d = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
229
|
-
throw d.code = "OBJECT_REQUIRED", d;
|
|
230
|
-
}
|
|
231
|
-
for (const d of Object.keys(R))
|
|
232
|
-
Object.prototype.hasOwnProperty.call(v, d) ? (h === !0 && (v[d] = R[d], y[d] = R[d]), l && _(h === !0 ? `"${d}" is already defined and WAS overwritten` : `"${d}" is already defined and was NOT overwritten`)) : (v[d] = R[d], y[d] = R[d]);
|
|
233
|
-
return y;
|
|
234
|
-
}
|
|
235
|
-
const L = {
|
|
236
|
-
configDotenv: G,
|
|
237
|
-
_configVault: j,
|
|
238
|
-
_parseVault: I,
|
|
239
|
-
config: W,
|
|
240
|
-
decrypt: X,
|
|
241
|
-
parse: w,
|
|
242
|
-
populate: ee
|
|
243
|
-
};
|
|
244
|
-
return Y.exports.configDotenv = L.configDotenv, Y.exports._configVault = L._configVault, Y.exports._parseVault = L._parseVault, Y.exports.config = L.config, Y.exports.decrypt = L.decrypt, Y.exports.parse = L.parse, Y.exports.populate = L.populate, Y.exports = L, Y.exports;
|
|
245
|
-
}
|
|
246
|
-
var Ft = Lt();
|
|
247
|
-
function rt(e, r) {
|
|
248
|
-
return function() {
|
|
249
|
-
return e.apply(r, arguments);
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
const { toString: Bt } = Object.prototype, { getPrototypeOf: cr } = Object, { iterator: Le, toStringTag: tt } = Symbol, Fe = /* @__PURE__ */ ((e) => (r) => {
|
|
253
|
-
const t = Bt.call(r);
|
|
254
|
-
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
255
|
-
})(/* @__PURE__ */ Object.create(null)), J = (e) => (e = e.toLowerCase(), (r) => Fe(r) === e), Be = (e) => (r) => typeof r === e, { isArray: ie } = Array, Pe = Be("undefined");
|
|
256
|
-
function we(e) {
|
|
257
|
-
return e !== null && !Pe(e) && e.constructor !== null && !Pe(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
258
|
-
}
|
|
259
|
-
const nt = J("ArrayBuffer");
|
|
260
|
-
function $t(e) {
|
|
261
|
-
let r;
|
|
262
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && nt(e.buffer), r;
|
|
263
|
-
}
|
|
264
|
-
const Mt = Be("string"), V = Be("function"), ot = Be("number"), Ae = (e) => e !== null && typeof e == "object", Ht = (e) => e === !0 || e === !1, De = (e) => {
|
|
265
|
-
if (Fe(e) !== "object")
|
|
266
|
-
return !1;
|
|
267
|
-
const r = cr(e);
|
|
268
|
-
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(tt in e) && !(Le in e);
|
|
269
|
-
}, xt = (e) => {
|
|
270
|
-
if (!Ae(e) || we(e))
|
|
271
|
-
return !1;
|
|
272
|
-
try {
|
|
273
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
274
|
-
} catch {
|
|
275
|
-
return !1;
|
|
276
|
-
}
|
|
277
|
-
}, Gt = J("Date"), Vt = J("File"), Kt = J("Blob"), zt = J("FileList"), Wt = (e) => Ae(e) && V(e.pipe), Jt = (e) => {
|
|
278
|
-
let r;
|
|
279
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((r = Fe(e)) === "formdata" || // detect form-data instance
|
|
280
|
-
r === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
281
|
-
}, Xt = J("URLSearchParams"), [Yt, Qt, Zt, en] = ["ReadableStream", "Request", "Response", "Headers"].map(J), rn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
282
|
-
function Re(e, r, { allOwnKeys: t = !1 } = {}) {
|
|
283
|
-
if (e === null || typeof e > "u")
|
|
284
|
-
return;
|
|
285
|
-
let n, o;
|
|
286
|
-
if (typeof e != "object" && (e = [e]), ie(e))
|
|
287
|
-
for (n = 0, o = e.length; n < o; n++)
|
|
288
|
-
r.call(null, e[n], n, e);
|
|
289
|
-
else {
|
|
290
|
-
if (we(e))
|
|
291
|
-
return;
|
|
292
|
-
const s = t ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
293
|
-
let a;
|
|
294
|
-
for (n = 0; n < i; n++)
|
|
295
|
-
a = s[n], r.call(null, e[a], a, e);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
function st(e, r) {
|
|
299
|
-
if (we(e))
|
|
300
|
-
return null;
|
|
301
|
-
r = r.toLowerCase();
|
|
302
|
-
const t = Object.keys(e);
|
|
303
|
-
let n = t.length, o;
|
|
304
|
-
for (; n-- > 0; )
|
|
305
|
-
if (o = t[n], r === o.toLowerCase())
|
|
306
|
-
return o;
|
|
307
|
-
return null;
|
|
308
|
-
}
|
|
309
|
-
const ne = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, it = (e) => !Pe(e) && e !== ne;
|
|
310
|
-
function tr() {
|
|
311
|
-
const { caseless: e } = it(this) && this || {}, r = {}, t = (n, o) => {
|
|
312
|
-
const s = e && st(r, o) || o;
|
|
313
|
-
De(r[s]) && De(n) ? r[s] = tr(r[s], n) : De(n) ? r[s] = tr({}, n) : ie(n) ? r[s] = n.slice() : r[s] = n;
|
|
314
|
-
};
|
|
315
|
-
for (let n = 0, o = arguments.length; n < o; n++)
|
|
316
|
-
arguments[n] && Re(arguments[n], t);
|
|
317
|
-
return r;
|
|
318
|
-
}
|
|
319
|
-
const tn = (e, r, t, { allOwnKeys: n } = {}) => (Re(r, (o, s) => {
|
|
320
|
-
t && V(o) ? e[s] = rt(o, t) : e[s] = o;
|
|
321
|
-
}, { allOwnKeys: n }), e), nn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), on = (e, r, t, n) => {
|
|
322
|
-
e.prototype = Object.create(r.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
323
|
-
value: r.prototype
|
|
324
|
-
}), t && Object.assign(e.prototype, t);
|
|
325
|
-
}, sn = (e, r, t, n) => {
|
|
326
|
-
let o, s, i;
|
|
327
|
-
const a = {};
|
|
328
|
-
if (r = r || {}, e == null) return r;
|
|
329
|
-
do {
|
|
330
|
-
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
331
|
-
i = o[s], (!n || n(i, e, r)) && !a[i] && (r[i] = e[i], a[i] = !0);
|
|
332
|
-
e = t !== !1 && cr(e);
|
|
333
|
-
} while (e && (!t || t(e, r)) && e !== Object.prototype);
|
|
334
|
-
return r;
|
|
335
|
-
}, an = (e, r, t) => {
|
|
336
|
-
e = String(e), (t === void 0 || t > e.length) && (t = e.length), t -= r.length;
|
|
337
|
-
const n = e.indexOf(r, t);
|
|
338
|
-
return n !== -1 && n === t;
|
|
339
|
-
}, cn = (e) => {
|
|
340
|
-
if (!e) return null;
|
|
341
|
-
if (ie(e)) return e;
|
|
342
|
-
let r = e.length;
|
|
343
|
-
if (!ot(r)) return null;
|
|
344
|
-
const t = new Array(r);
|
|
345
|
-
for (; r-- > 0; )
|
|
346
|
-
t[r] = e[r];
|
|
347
|
-
return t;
|
|
348
|
-
}, un = /* @__PURE__ */ ((e) => (r) => e && r instanceof e)(typeof Uint8Array < "u" && cr(Uint8Array)), ln = (e, r) => {
|
|
349
|
-
const n = (e && e[Le]).call(e);
|
|
350
|
-
let o;
|
|
351
|
-
for (; (o = n.next()) && !o.done; ) {
|
|
352
|
-
const s = o.value;
|
|
353
|
-
r.call(e, s[0], s[1]);
|
|
354
|
-
}
|
|
355
|
-
}, dn = (e, r) => {
|
|
356
|
-
let t;
|
|
357
|
-
const n = [];
|
|
358
|
-
for (; (t = e.exec(r)) !== null; )
|
|
359
|
-
n.push(t);
|
|
360
|
-
return n;
|
|
361
|
-
}, fn = J("HTMLFormElement"), pn = (e) => e.toLowerCase().replace(
|
|
362
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
363
|
-
function(t, n, o) {
|
|
364
|
-
return n.toUpperCase() + o;
|
|
365
|
-
}
|
|
366
|
-
), pr = (({ hasOwnProperty: e }) => (r, t) => e.call(r, t))(Object.prototype), hn = J("RegExp"), at = (e, r) => {
|
|
367
|
-
const t = Object.getOwnPropertyDescriptors(e), n = {};
|
|
368
|
-
Re(t, (o, s) => {
|
|
369
|
-
let i;
|
|
370
|
-
(i = r(o, s, e)) !== !1 && (n[s] = i || o);
|
|
371
|
-
}), Object.defineProperties(e, n);
|
|
372
|
-
}, vn = (e) => {
|
|
373
|
-
at(e, (r, t) => {
|
|
374
|
-
if (V(e) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
375
|
-
return !1;
|
|
376
|
-
const n = e[t];
|
|
377
|
-
if (V(n)) {
|
|
378
|
-
if (r.enumerable = !1, "writable" in r) {
|
|
379
|
-
r.writable = !1;
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
r.set || (r.set = () => {
|
|
383
|
-
throw Error("Can not rewrite read-only method '" + t + "'");
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
}, Sn = (e, r) => {
|
|
388
|
-
const t = {}, n = (o) => {
|
|
389
|
-
o.forEach((s) => {
|
|
390
|
-
t[s] = !0;
|
|
391
|
-
});
|
|
392
|
-
};
|
|
393
|
-
return ie(e) ? n(e) : n(String(e).split(r)), t;
|
|
394
|
-
}, mn = () => {
|
|
395
|
-
}, yn = (e, r) => e != null && Number.isFinite(e = +e) ? e : r;
|
|
396
|
-
function bn(e) {
|
|
397
|
-
return !!(e && V(e.append) && e[tt] === "FormData" && e[Le]);
|
|
398
|
-
}
|
|
399
|
-
const gn = (e) => {
|
|
400
|
-
const r = new Array(10), t = (n, o) => {
|
|
401
|
-
if (Ae(n)) {
|
|
402
|
-
if (r.indexOf(n) >= 0)
|
|
403
|
-
return;
|
|
404
|
-
if (we(n))
|
|
405
|
-
return n;
|
|
406
|
-
if (!("toJSON" in n)) {
|
|
407
|
-
r[o] = n;
|
|
408
|
-
const s = ie(n) ? [] : {};
|
|
409
|
-
return Re(n, (i, a) => {
|
|
410
|
-
const m = t(i, o + 1);
|
|
411
|
-
!Pe(m) && (s[a] = m);
|
|
412
|
-
}), r[o] = void 0, s;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
return n;
|
|
416
|
-
};
|
|
417
|
-
return t(e, 0);
|
|
418
|
-
}, En = J("AsyncFunction"), On = (e) => e && (Ae(e) || V(e)) && V(e.then) && V(e.catch), ct = ((e, r) => e ? setImmediate : r ? ((t, n) => (ne.addEventListener("message", ({ source: o, data: s }) => {
|
|
419
|
-
o === ne && s === t && n.length && n.shift()();
|
|
420
|
-
}, !1), (o) => {
|
|
421
|
-
n.push(o), ne.postMessage(t, "*");
|
|
422
|
-
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
423
|
-
typeof setImmediate == "function",
|
|
424
|
-
V(ne.postMessage)
|
|
425
|
-
), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(ne) : typeof process < "u" && process.nextTick || ct, Tn = (e) => e != null && V(e[Le]), c = {
|
|
426
|
-
isArray: ie,
|
|
427
|
-
isArrayBuffer: nt,
|
|
428
|
-
isBuffer: we,
|
|
429
|
-
isFormData: Jt,
|
|
430
|
-
isArrayBufferView: $t,
|
|
431
|
-
isString: Mt,
|
|
432
|
-
isNumber: ot,
|
|
433
|
-
isBoolean: Ht,
|
|
434
|
-
isObject: Ae,
|
|
435
|
-
isPlainObject: De,
|
|
436
|
-
isEmptyObject: xt,
|
|
437
|
-
isReadableStream: Yt,
|
|
438
|
-
isRequest: Qt,
|
|
439
|
-
isResponse: Zt,
|
|
440
|
-
isHeaders: en,
|
|
441
|
-
isUndefined: Pe,
|
|
442
|
-
isDate: Gt,
|
|
443
|
-
isFile: Vt,
|
|
444
|
-
isBlob: Kt,
|
|
445
|
-
isRegExp: hn,
|
|
446
|
-
isFunction: V,
|
|
447
|
-
isStream: Wt,
|
|
448
|
-
isURLSearchParams: Xt,
|
|
449
|
-
isTypedArray: un,
|
|
450
|
-
isFileList: zt,
|
|
451
|
-
forEach: Re,
|
|
452
|
-
merge: tr,
|
|
453
|
-
extend: tn,
|
|
454
|
-
trim: rn,
|
|
455
|
-
stripBOM: nn,
|
|
456
|
-
inherits: on,
|
|
457
|
-
toFlatObject: sn,
|
|
458
|
-
kindOf: Fe,
|
|
459
|
-
kindOfTest: J,
|
|
460
|
-
endsWith: an,
|
|
461
|
-
toArray: cn,
|
|
462
|
-
forEachEntry: ln,
|
|
463
|
-
matchAll: dn,
|
|
464
|
-
isHTMLForm: fn,
|
|
465
|
-
hasOwnProperty: pr,
|
|
466
|
-
hasOwnProp: pr,
|
|
467
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
468
|
-
reduceDescriptors: at,
|
|
469
|
-
freezeMethods: vn,
|
|
470
|
-
toObjectSet: Sn,
|
|
471
|
-
toCamelCase: pn,
|
|
472
|
-
noop: mn,
|
|
473
|
-
toFiniteNumber: yn,
|
|
474
|
-
findKey: st,
|
|
475
|
-
global: ne,
|
|
476
|
-
isContextDefined: it,
|
|
477
|
-
isSpecCompliantForm: bn,
|
|
478
|
-
toJSONObject: gn,
|
|
479
|
-
isAsyncFn: En,
|
|
480
|
-
isThenable: On,
|
|
481
|
-
setImmediate: ct,
|
|
482
|
-
asap: _n,
|
|
483
|
-
isIterable: Tn
|
|
484
|
-
};
|
|
485
|
-
function A(e, r, t, n, o) {
|
|
486
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", r && (this.code = r), t && (this.config = t), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
487
|
-
}
|
|
488
|
-
c.inherits(A, Error, {
|
|
489
|
-
toJSON: function() {
|
|
490
|
-
return {
|
|
491
|
-
// Standard
|
|
492
|
-
message: this.message,
|
|
493
|
-
name: this.name,
|
|
494
|
-
// Microsoft
|
|
495
|
-
description: this.description,
|
|
496
|
-
number: this.number,
|
|
497
|
-
// Mozilla
|
|
498
|
-
fileName: this.fileName,
|
|
499
|
-
lineNumber: this.lineNumber,
|
|
500
|
-
columnNumber: this.columnNumber,
|
|
501
|
-
stack: this.stack,
|
|
502
|
-
// Axios
|
|
503
|
-
config: c.toJSONObject(this.config),
|
|
504
|
-
code: this.code,
|
|
505
|
-
status: this.status
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
const ut = A.prototype, lt = {};
|
|
510
|
-
[
|
|
511
|
-
"ERR_BAD_OPTION_VALUE",
|
|
512
|
-
"ERR_BAD_OPTION",
|
|
513
|
-
"ECONNABORTED",
|
|
514
|
-
"ETIMEDOUT",
|
|
515
|
-
"ERR_NETWORK",
|
|
516
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
517
|
-
"ERR_DEPRECATED",
|
|
518
|
-
"ERR_BAD_RESPONSE",
|
|
519
|
-
"ERR_BAD_REQUEST",
|
|
520
|
-
"ERR_CANCELED",
|
|
521
|
-
"ERR_NOT_SUPPORT",
|
|
522
|
-
"ERR_INVALID_URL"
|
|
523
|
-
// eslint-disable-next-line func-names
|
|
524
|
-
].forEach((e) => {
|
|
525
|
-
lt[e] = { value: e };
|
|
526
|
-
});
|
|
527
|
-
Object.defineProperties(A, lt);
|
|
528
|
-
Object.defineProperty(ut, "isAxiosError", { value: !0 });
|
|
529
|
-
A.from = (e, r, t, n, o, s) => {
|
|
530
|
-
const i = Object.create(ut);
|
|
531
|
-
return c.toFlatObject(e, i, function(m) {
|
|
532
|
-
return m !== Error.prototype;
|
|
533
|
-
}, (a) => a !== "isAxiosError"), A.call(i, e.message, r, t, n, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
534
|
-
};
|
|
535
|
-
const Pn = null;
|
|
536
|
-
function nr(e) {
|
|
537
|
-
return c.isPlainObject(e) || c.isArray(e);
|
|
538
|
-
}
|
|
539
|
-
function dt(e) {
|
|
540
|
-
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
541
|
-
}
|
|
542
|
-
function hr(e, r, t) {
|
|
543
|
-
return e ? e.concat(r).map(function(o, s) {
|
|
544
|
-
return o = dt(o), !t && s ? "[" + o + "]" : o;
|
|
545
|
-
}).join(t ? "." : "") : r;
|
|
546
|
-
}
|
|
547
|
-
function wn(e) {
|
|
548
|
-
return c.isArray(e) && !e.some(nr);
|
|
549
|
-
}
|
|
550
|
-
const An = c.toFlatObject(c, {}, null, function(r) {
|
|
551
|
-
return /^is[A-Z]/.test(r);
|
|
552
|
-
});
|
|
553
|
-
function $e(e, r, t) {
|
|
554
|
-
if (!c.isObject(e))
|
|
555
|
-
throw new TypeError("target must be an object");
|
|
556
|
-
r = r || new FormData(), t = c.toFlatObject(t, {
|
|
557
|
-
metaTokens: !0,
|
|
558
|
-
dots: !1,
|
|
559
|
-
indexes: !1
|
|
560
|
-
}, !1, function(_, E) {
|
|
561
|
-
return !c.isUndefined(E[_]);
|
|
562
|
-
});
|
|
563
|
-
const n = t.metaTokens, o = t.visitor || f, s = t.dots, i = t.indexes, m = (t.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(r);
|
|
564
|
-
if (!c.isFunction(o))
|
|
565
|
-
throw new TypeError("visitor must be a function");
|
|
566
|
-
function p(g) {
|
|
567
|
-
if (g === null) return "";
|
|
568
|
-
if (c.isDate(g))
|
|
569
|
-
return g.toISOString();
|
|
570
|
-
if (c.isBoolean(g))
|
|
571
|
-
return g.toString();
|
|
572
|
-
if (!m && c.isBlob(g))
|
|
573
|
-
throw new A("Blob is not supported. Use a Buffer instead.");
|
|
574
|
-
return c.isArrayBuffer(g) || c.isTypedArray(g) ? m && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
575
|
-
}
|
|
576
|
-
function f(g, _, E) {
|
|
577
|
-
let C = g;
|
|
578
|
-
if (g && !E && typeof g == "object") {
|
|
579
|
-
if (c.endsWith(_, "{}"))
|
|
580
|
-
_ = n ? _ : _.slice(0, -2), g = JSON.stringify(g);
|
|
581
|
-
else if (c.isArray(g) && wn(g) || (c.isFileList(g) || c.endsWith(_, "[]")) && (C = c.toArray(g)))
|
|
582
|
-
return _ = dt(_), C.forEach(function(q, M) {
|
|
583
|
-
!(c.isUndefined(q) || q === null) && r.append(
|
|
584
|
-
// eslint-disable-next-line no-nested-ternary
|
|
585
|
-
i === !0 ? hr([_], M, s) : i === null ? _ : _ + "[]",
|
|
586
|
-
p(q)
|
|
587
|
-
);
|
|
588
|
-
}), !1;
|
|
589
|
-
}
|
|
590
|
-
return nr(g) ? !0 : (r.append(hr(E, _, s), p(g)), !1);
|
|
591
|
-
}
|
|
592
|
-
const b = [], w = Object.assign(An, {
|
|
593
|
-
defaultVisitor: f,
|
|
594
|
-
convertValue: p,
|
|
595
|
-
isVisitable: nr
|
|
596
|
-
});
|
|
597
|
-
function I(g, _) {
|
|
598
|
-
if (!c.isUndefined(g)) {
|
|
599
|
-
if (b.indexOf(g) !== -1)
|
|
600
|
-
throw Error("Circular reference detected in " + _.join("."));
|
|
601
|
-
b.push(g), c.forEach(g, function(C, D) {
|
|
602
|
-
(!(c.isUndefined(C) || C === null) && o.call(
|
|
603
|
-
r,
|
|
604
|
-
C,
|
|
605
|
-
c.isString(D) ? D.trim() : D,
|
|
606
|
-
_,
|
|
607
|
-
w
|
|
608
|
-
)) === !0 && I(C, _ ? _.concat(D) : [D]);
|
|
609
|
-
}), b.pop();
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
if (!c.isObject(e))
|
|
613
|
-
throw new TypeError("data must be an object");
|
|
614
|
-
return I(e), r;
|
|
615
|
-
}
|
|
616
|
-
function vr(e) {
|
|
617
|
-
const r = {
|
|
618
|
-
"!": "%21",
|
|
619
|
-
"'": "%27",
|
|
620
|
-
"(": "%28",
|
|
621
|
-
")": "%29",
|
|
622
|
-
"~": "%7E",
|
|
623
|
-
"%20": "+",
|
|
624
|
-
"%00": "\0"
|
|
625
|
-
};
|
|
626
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
627
|
-
return r[n];
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
function ur(e, r) {
|
|
631
|
-
this._pairs = [], e && $e(e, this, r);
|
|
632
|
-
}
|
|
633
|
-
const ft = ur.prototype;
|
|
634
|
-
ft.append = function(r, t) {
|
|
635
|
-
this._pairs.push([r, t]);
|
|
636
|
-
};
|
|
637
|
-
ft.toString = function(r) {
|
|
638
|
-
const t = r ? function(n) {
|
|
639
|
-
return r.call(this, n, vr);
|
|
640
|
-
} : vr;
|
|
641
|
-
return this._pairs.map(function(o) {
|
|
642
|
-
return t(o[0]) + "=" + t(o[1]);
|
|
643
|
-
}, "").join("&");
|
|
644
|
-
};
|
|
645
|
-
function Rn(e) {
|
|
646
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
647
|
-
}
|
|
648
|
-
function pt(e, r, t) {
|
|
649
|
-
if (!r)
|
|
650
|
-
return e;
|
|
651
|
-
const n = t && t.encode || Rn;
|
|
652
|
-
c.isFunction(t) && (t = {
|
|
653
|
-
serialize: t
|
|
654
|
-
});
|
|
655
|
-
const o = t && t.serialize;
|
|
656
|
-
let s;
|
|
657
|
-
if (o ? s = o(r, t) : s = c.isURLSearchParams(r) ? r.toString() : new ur(r, t).toString(n), s) {
|
|
658
|
-
const i = e.indexOf("#");
|
|
659
|
-
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
660
|
-
}
|
|
661
|
-
return e;
|
|
662
|
-
}
|
|
663
|
-
class Sr {
|
|
664
|
-
constructor() {
|
|
665
|
-
this.handlers = [];
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Add a new interceptor to the stack
|
|
669
|
-
*
|
|
670
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
671
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
672
|
-
*
|
|
673
|
-
* @return {Number} An ID used to remove interceptor later
|
|
674
|
-
*/
|
|
675
|
-
use(r, t, n) {
|
|
676
|
-
return this.handlers.push({
|
|
677
|
-
fulfilled: r,
|
|
678
|
-
rejected: t,
|
|
679
|
-
synchronous: n ? n.synchronous : !1,
|
|
680
|
-
runWhen: n ? n.runWhen : null
|
|
681
|
-
}), this.handlers.length - 1;
|
|
682
|
-
}
|
|
683
|
-
/**
|
|
684
|
-
* Remove an interceptor from the stack
|
|
685
|
-
*
|
|
686
|
-
* @param {Number} id The ID that was returned by `use`
|
|
687
|
-
*
|
|
688
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
689
|
-
*/
|
|
690
|
-
eject(r) {
|
|
691
|
-
this.handlers[r] && (this.handlers[r] = null);
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* Clear all interceptors from the stack
|
|
695
|
-
*
|
|
696
|
-
* @returns {void}
|
|
697
|
-
*/
|
|
698
|
-
clear() {
|
|
699
|
-
this.handlers && (this.handlers = []);
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* Iterate over all the registered interceptors
|
|
703
|
-
*
|
|
704
|
-
* This method is particularly useful for skipping over any
|
|
705
|
-
* interceptors that may have become `null` calling `eject`.
|
|
706
|
-
*
|
|
707
|
-
* @param {Function} fn The function to call for each interceptor
|
|
708
|
-
*
|
|
709
|
-
* @returns {void}
|
|
710
|
-
*/
|
|
711
|
-
forEach(r) {
|
|
712
|
-
c.forEach(this.handlers, function(n) {
|
|
713
|
-
n !== null && r(n);
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
const ht = {
|
|
718
|
-
silentJSONParsing: !0,
|
|
719
|
-
forcedJSONParsing: !0,
|
|
720
|
-
clarifyTimeoutError: !1
|
|
721
|
-
}, kn = typeof URLSearchParams < "u" ? URLSearchParams : ur, In = typeof FormData < "u" ? FormData : null, Cn = typeof Blob < "u" ? Blob : null, Dn = {
|
|
722
|
-
isBrowser: !0,
|
|
723
|
-
classes: {
|
|
724
|
-
URLSearchParams: kn,
|
|
725
|
-
FormData: In,
|
|
726
|
-
Blob: Cn
|
|
727
|
-
},
|
|
728
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
729
|
-
}, lr = typeof window < "u" && typeof document < "u", or = typeof navigator == "object" && navigator || void 0, qn = lr && (!or || ["ReactNative", "NativeScript", "NS"].indexOf(or.product) < 0), Nn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
730
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jn = lr && window.location.href || "http://localhost", Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
731
|
-
__proto__: null,
|
|
732
|
-
hasBrowserEnv: lr,
|
|
733
|
-
hasStandardBrowserEnv: qn,
|
|
734
|
-
hasStandardBrowserWebWorkerEnv: Nn,
|
|
735
|
-
navigator: or,
|
|
736
|
-
origin: jn
|
|
737
|
-
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
738
|
-
...Un,
|
|
739
|
-
...Dn
|
|
740
|
-
};
|
|
741
|
-
function Ln(e, r) {
|
|
742
|
-
return $e(e, new H.classes.URLSearchParams(), {
|
|
743
|
-
visitor: function(t, n, o, s) {
|
|
744
|
-
return H.isNode && c.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
745
|
-
},
|
|
746
|
-
...r
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
function Fn(e) {
|
|
750
|
-
return c.matchAll(/\w+|\[(\w*)]/g, e).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
|
|
751
|
-
}
|
|
752
|
-
function Bn(e) {
|
|
753
|
-
const r = {}, t = Object.keys(e);
|
|
754
|
-
let n;
|
|
755
|
-
const o = t.length;
|
|
756
|
-
let s;
|
|
757
|
-
for (n = 0; n < o; n++)
|
|
758
|
-
s = t[n], r[s] = e[s];
|
|
759
|
-
return r;
|
|
760
|
-
}
|
|
761
|
-
function vt(e) {
|
|
762
|
-
function r(t, n, o, s) {
|
|
763
|
-
let i = t[s++];
|
|
764
|
-
if (i === "__proto__") return !0;
|
|
765
|
-
const a = Number.isFinite(+i), m = s >= t.length;
|
|
766
|
-
return i = !i && c.isArray(o) ? o.length : i, m ? (c.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), r(t, n, o[i], s) && c.isArray(o[i]) && (o[i] = Bn(o[i])), !a);
|
|
767
|
-
}
|
|
768
|
-
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
769
|
-
const t = {};
|
|
770
|
-
return c.forEachEntry(e, (n, o) => {
|
|
771
|
-
r(Fn(n), o, t, 0);
|
|
772
|
-
}), t;
|
|
773
|
-
}
|
|
774
|
-
return null;
|
|
775
|
-
}
|
|
776
|
-
function $n(e, r, t) {
|
|
777
|
-
if (c.isString(e))
|
|
778
|
-
try {
|
|
779
|
-
return (r || JSON.parse)(e), c.trim(e);
|
|
780
|
-
} catch (n) {
|
|
781
|
-
if (n.name !== "SyntaxError")
|
|
782
|
-
throw n;
|
|
783
|
-
}
|
|
784
|
-
return (t || JSON.stringify)(e);
|
|
785
|
-
}
|
|
786
|
-
const ke = {
|
|
787
|
-
transitional: ht,
|
|
788
|
-
adapter: ["xhr", "http", "fetch"],
|
|
789
|
-
transformRequest: [function(r, t) {
|
|
790
|
-
const n = t.getContentType() || "", o = n.indexOf("application/json") > -1, s = c.isObject(r);
|
|
791
|
-
if (s && c.isHTMLForm(r) && (r = new FormData(r)), c.isFormData(r))
|
|
792
|
-
return o ? JSON.stringify(vt(r)) : r;
|
|
793
|
-
if (c.isArrayBuffer(r) || c.isBuffer(r) || c.isStream(r) || c.isFile(r) || c.isBlob(r) || c.isReadableStream(r))
|
|
794
|
-
return r;
|
|
795
|
-
if (c.isArrayBufferView(r))
|
|
796
|
-
return r.buffer;
|
|
797
|
-
if (c.isURLSearchParams(r))
|
|
798
|
-
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
|
|
799
|
-
let a;
|
|
800
|
-
if (s) {
|
|
801
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
802
|
-
return Ln(r, this.formSerializer).toString();
|
|
803
|
-
if ((a = c.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
804
|
-
const m = this.env && this.env.FormData;
|
|
805
|
-
return $e(
|
|
806
|
-
a ? { "files[]": r } : r,
|
|
807
|
-
m && new m(),
|
|
808
|
-
this.formSerializer
|
|
809
|
-
);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
return s || o ? (t.setContentType("application/json", !1), $n(r)) : r;
|
|
813
|
-
}],
|
|
814
|
-
transformResponse: [function(r) {
|
|
815
|
-
const t = this.transitional || ke.transitional, n = t && t.forcedJSONParsing, o = this.responseType === "json";
|
|
816
|
-
if (c.isResponse(r) || c.isReadableStream(r))
|
|
817
|
-
return r;
|
|
818
|
-
if (r && c.isString(r) && (n && !this.responseType || o)) {
|
|
819
|
-
const i = !(t && t.silentJSONParsing) && o;
|
|
820
|
-
try {
|
|
821
|
-
return JSON.parse(r);
|
|
822
|
-
} catch (a) {
|
|
823
|
-
if (i)
|
|
824
|
-
throw a.name === "SyntaxError" ? A.from(a, A.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
return r;
|
|
828
|
-
}],
|
|
829
|
-
/**
|
|
830
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
831
|
-
* timeout is not created.
|
|
832
|
-
*/
|
|
833
|
-
timeout: 0,
|
|
834
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
835
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
836
|
-
maxContentLength: -1,
|
|
837
|
-
maxBodyLength: -1,
|
|
838
|
-
env: {
|
|
839
|
-
FormData: H.classes.FormData,
|
|
840
|
-
Blob: H.classes.Blob
|
|
841
|
-
},
|
|
842
|
-
validateStatus: function(r) {
|
|
843
|
-
return r >= 200 && r < 300;
|
|
844
|
-
},
|
|
845
|
-
headers: {
|
|
846
|
-
common: {
|
|
847
|
-
Accept: "application/json, text/plain, */*",
|
|
848
|
-
"Content-Type": void 0
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
853
|
-
ke.headers[e] = {};
|
|
854
|
-
});
|
|
855
|
-
const Mn = c.toObjectSet([
|
|
856
|
-
"age",
|
|
857
|
-
"authorization",
|
|
858
|
-
"content-length",
|
|
859
|
-
"content-type",
|
|
860
|
-
"etag",
|
|
861
|
-
"expires",
|
|
862
|
-
"from",
|
|
863
|
-
"host",
|
|
864
|
-
"if-modified-since",
|
|
865
|
-
"if-unmodified-since",
|
|
866
|
-
"last-modified",
|
|
867
|
-
"location",
|
|
868
|
-
"max-forwards",
|
|
869
|
-
"proxy-authorization",
|
|
870
|
-
"referer",
|
|
871
|
-
"retry-after",
|
|
872
|
-
"user-agent"
|
|
873
|
-
]), Hn = (e) => {
|
|
874
|
-
const r = {};
|
|
875
|
-
let t, n, o;
|
|
876
|
-
return e && e.split(`
|
|
877
|
-
`).forEach(function(i) {
|
|
878
|
-
o = i.indexOf(":"), t = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!t || r[t] && Mn[t]) && (t === "set-cookie" ? r[t] ? r[t].push(n) : r[t] = [n] : r[t] = r[t] ? r[t] + ", " + n : n);
|
|
879
|
-
}), r;
|
|
880
|
-
}, mr = Symbol("internals");
|
|
881
|
-
function ue(e) {
|
|
882
|
-
return e && String(e).trim().toLowerCase();
|
|
883
|
-
}
|
|
884
|
-
function qe(e) {
|
|
885
|
-
return e === !1 || e == null ? e : c.isArray(e) ? e.map(qe) : String(e);
|
|
886
|
-
}
|
|
887
|
-
function xn(e) {
|
|
888
|
-
const r = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
889
|
-
let n;
|
|
890
|
-
for (; n = t.exec(e); )
|
|
891
|
-
r[n[1]] = n[2];
|
|
892
|
-
return r;
|
|
893
|
-
}
|
|
894
|
-
const Gn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
895
|
-
function xe(e, r, t, n, o) {
|
|
896
|
-
if (c.isFunction(n))
|
|
897
|
-
return n.call(this, r, t);
|
|
898
|
-
if (o && (r = t), !!c.isString(r)) {
|
|
899
|
-
if (c.isString(n))
|
|
900
|
-
return r.indexOf(n) !== -1;
|
|
901
|
-
if (c.isRegExp(n))
|
|
902
|
-
return n.test(r);
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
function Vn(e) {
|
|
906
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, t, n) => t.toUpperCase() + n);
|
|
907
|
-
}
|
|
908
|
-
function Kn(e, r) {
|
|
909
|
-
const t = c.toCamelCase(" " + r);
|
|
910
|
-
["get", "set", "has"].forEach((n) => {
|
|
911
|
-
Object.defineProperty(e, n + t, {
|
|
912
|
-
value: function(o, s, i) {
|
|
913
|
-
return this[n].call(this, r, o, s, i);
|
|
914
|
-
},
|
|
915
|
-
configurable: !0
|
|
916
|
-
});
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
let K = class {
|
|
920
|
-
constructor(r) {
|
|
921
|
-
r && this.set(r);
|
|
922
|
-
}
|
|
923
|
-
set(r, t, n) {
|
|
924
|
-
const o = this;
|
|
925
|
-
function s(a, m, p) {
|
|
926
|
-
const f = ue(m);
|
|
927
|
-
if (!f)
|
|
928
|
-
throw new Error("header name must be a non-empty string");
|
|
929
|
-
const b = c.findKey(o, f);
|
|
930
|
-
(!b || o[b] === void 0 || p === !0 || p === void 0 && o[b] !== !1) && (o[b || m] = qe(a));
|
|
931
|
-
}
|
|
932
|
-
const i = (a, m) => c.forEach(a, (p, f) => s(p, f, m));
|
|
933
|
-
if (c.isPlainObject(r) || r instanceof this.constructor)
|
|
934
|
-
i(r, t);
|
|
935
|
-
else if (c.isString(r) && (r = r.trim()) && !Gn(r))
|
|
936
|
-
i(Hn(r), t);
|
|
937
|
-
else if (c.isObject(r) && c.isIterable(r)) {
|
|
938
|
-
let a = {}, m, p;
|
|
939
|
-
for (const f of r) {
|
|
940
|
-
if (!c.isArray(f))
|
|
941
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
942
|
-
a[p = f[0]] = (m = a[p]) ? c.isArray(m) ? [...m, f[1]] : [m, f[1]] : f[1];
|
|
943
|
-
}
|
|
944
|
-
i(a, t);
|
|
945
|
-
} else
|
|
946
|
-
r != null && s(t, r, n);
|
|
947
|
-
return this;
|
|
948
|
-
}
|
|
949
|
-
get(r, t) {
|
|
950
|
-
if (r = ue(r), r) {
|
|
951
|
-
const n = c.findKey(this, r);
|
|
952
|
-
if (n) {
|
|
953
|
-
const o = this[n];
|
|
954
|
-
if (!t)
|
|
955
|
-
return o;
|
|
956
|
-
if (t === !0)
|
|
957
|
-
return xn(o);
|
|
958
|
-
if (c.isFunction(t))
|
|
959
|
-
return t.call(this, o, n);
|
|
960
|
-
if (c.isRegExp(t))
|
|
961
|
-
return t.exec(o);
|
|
962
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
has(r, t) {
|
|
967
|
-
if (r = ue(r), r) {
|
|
968
|
-
const n = c.findKey(this, r);
|
|
969
|
-
return !!(n && this[n] !== void 0 && (!t || xe(this, this[n], n, t)));
|
|
970
|
-
}
|
|
971
|
-
return !1;
|
|
972
|
-
}
|
|
973
|
-
delete(r, t) {
|
|
974
|
-
const n = this;
|
|
975
|
-
let o = !1;
|
|
976
|
-
function s(i) {
|
|
977
|
-
if (i = ue(i), i) {
|
|
978
|
-
const a = c.findKey(n, i);
|
|
979
|
-
a && (!t || xe(n, n[a], a, t)) && (delete n[a], o = !0);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
return c.isArray(r) ? r.forEach(s) : s(r), o;
|
|
983
|
-
}
|
|
984
|
-
clear(r) {
|
|
985
|
-
const t = Object.keys(this);
|
|
986
|
-
let n = t.length, o = !1;
|
|
987
|
-
for (; n--; ) {
|
|
988
|
-
const s = t[n];
|
|
989
|
-
(!r || xe(this, this[s], s, r, !0)) && (delete this[s], o = !0);
|
|
990
|
-
}
|
|
991
|
-
return o;
|
|
992
|
-
}
|
|
993
|
-
normalize(r) {
|
|
994
|
-
const t = this, n = {};
|
|
995
|
-
return c.forEach(this, (o, s) => {
|
|
996
|
-
const i = c.findKey(n, s);
|
|
997
|
-
if (i) {
|
|
998
|
-
t[i] = qe(o), delete t[s];
|
|
999
|
-
return;
|
|
1000
|
-
}
|
|
1001
|
-
const a = r ? Vn(s) : String(s).trim();
|
|
1002
|
-
a !== s && delete t[s], t[a] = qe(o), n[a] = !0;
|
|
1003
|
-
}), this;
|
|
1004
|
-
}
|
|
1005
|
-
concat(...r) {
|
|
1006
|
-
return this.constructor.concat(this, ...r);
|
|
1007
|
-
}
|
|
1008
|
-
toJSON(r) {
|
|
1009
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
1010
|
-
return c.forEach(this, (n, o) => {
|
|
1011
|
-
n != null && n !== !1 && (t[o] = r && c.isArray(n) ? n.join(", ") : n);
|
|
1012
|
-
}), t;
|
|
1013
|
-
}
|
|
1014
|
-
[Symbol.iterator]() {
|
|
1015
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1016
|
-
}
|
|
1017
|
-
toString() {
|
|
1018
|
-
return Object.entries(this.toJSON()).map(([r, t]) => r + ": " + t).join(`
|
|
1019
|
-
`);
|
|
1020
|
-
}
|
|
1021
|
-
getSetCookie() {
|
|
1022
|
-
return this.get("set-cookie") || [];
|
|
1023
|
-
}
|
|
1024
|
-
get [Symbol.toStringTag]() {
|
|
1025
|
-
return "AxiosHeaders";
|
|
1026
|
-
}
|
|
1027
|
-
static from(r) {
|
|
1028
|
-
return r instanceof this ? r : new this(r);
|
|
1029
|
-
}
|
|
1030
|
-
static concat(r, ...t) {
|
|
1031
|
-
const n = new this(r);
|
|
1032
|
-
return t.forEach((o) => n.set(o)), n;
|
|
1033
|
-
}
|
|
1034
|
-
static accessor(r) {
|
|
1035
|
-
const n = (this[mr] = this[mr] = {
|
|
1036
|
-
accessors: {}
|
|
1037
|
-
}).accessors, o = this.prototype;
|
|
1038
|
-
function s(i) {
|
|
1039
|
-
const a = ue(i);
|
|
1040
|
-
n[a] || (Kn(o, i), n[a] = !0);
|
|
1041
|
-
}
|
|
1042
|
-
return c.isArray(r) ? r.forEach(s) : s(r), this;
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
K.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1046
|
-
c.reduceDescriptors(K.prototype, ({ value: e }, r) => {
|
|
1047
|
-
let t = r[0].toUpperCase() + r.slice(1);
|
|
1048
|
-
return {
|
|
1049
|
-
get: () => e,
|
|
1050
|
-
set(n) {
|
|
1051
|
-
this[t] = n;
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
});
|
|
1055
|
-
c.freezeMethods(K);
|
|
1056
|
-
function Ge(e, r) {
|
|
1057
|
-
const t = this || ke, n = r || t, o = K.from(n.headers);
|
|
1058
|
-
let s = n.data;
|
|
1059
|
-
return c.forEach(e, function(a) {
|
|
1060
|
-
s = a.call(t, s, o.normalize(), r ? r.status : void 0);
|
|
1061
|
-
}), o.normalize(), s;
|
|
1062
|
-
}
|
|
1063
|
-
function St(e) {
|
|
1064
|
-
return !!(e && e.__CANCEL__);
|
|
1065
|
-
}
|
|
1066
|
-
function ae(e, r, t) {
|
|
1067
|
-
A.call(this, e ?? "canceled", A.ERR_CANCELED, r, t), this.name = "CanceledError";
|
|
1068
|
-
}
|
|
1069
|
-
c.inherits(ae, A, {
|
|
1070
|
-
__CANCEL__: !0
|
|
1071
|
-
});
|
|
1072
|
-
function mt(e, r, t) {
|
|
1073
|
-
const n = t.config.validateStatus;
|
|
1074
|
-
!t.status || !n || n(t.status) ? e(t) : r(new A(
|
|
1075
|
-
"Request failed with status code " + t.status,
|
|
1076
|
-
[A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
|
|
1077
|
-
t.config,
|
|
1078
|
-
t.request,
|
|
1079
|
-
t
|
|
1080
|
-
));
|
|
1081
|
-
}
|
|
1082
|
-
function zn(e) {
|
|
1083
|
-
const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1084
|
-
return r && r[1] || "";
|
|
1085
|
-
}
|
|
1086
|
-
function Wn(e, r) {
|
|
1087
|
-
e = e || 10;
|
|
1088
|
-
const t = new Array(e), n = new Array(e);
|
|
1089
|
-
let o = 0, s = 0, i;
|
|
1090
|
-
return r = r !== void 0 ? r : 1e3, function(m) {
|
|
1091
|
-
const p = Date.now(), f = n[s];
|
|
1092
|
-
i || (i = p), t[o] = m, n[o] = p;
|
|
1093
|
-
let b = s, w = 0;
|
|
1094
|
-
for (; b !== o; )
|
|
1095
|
-
w += t[b++], b = b % e;
|
|
1096
|
-
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), p - i < r)
|
|
1097
|
-
return;
|
|
1098
|
-
const I = f && p - f;
|
|
1099
|
-
return I ? Math.round(w * 1e3 / I) : void 0;
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
function Jn(e, r) {
|
|
1103
|
-
let t = 0, n = 1e3 / r, o, s;
|
|
1104
|
-
const i = (p, f = Date.now()) => {
|
|
1105
|
-
t = f, o = null, s && (clearTimeout(s), s = null), e(...p);
|
|
1106
|
-
};
|
|
1107
|
-
return [(...p) => {
|
|
1108
|
-
const f = Date.now(), b = f - t;
|
|
1109
|
-
b >= n ? i(p, f) : (o = p, s || (s = setTimeout(() => {
|
|
1110
|
-
s = null, i(o);
|
|
1111
|
-
}, n - b)));
|
|
1112
|
-
}, () => o && i(o)];
|
|
1113
|
-
}
|
|
1114
|
-
const je = (e, r, t = 3) => {
|
|
1115
|
-
let n = 0;
|
|
1116
|
-
const o = Wn(50, 250);
|
|
1117
|
-
return Jn((s) => {
|
|
1118
|
-
const i = s.loaded, a = s.lengthComputable ? s.total : void 0, m = i - n, p = o(m), f = i <= a;
|
|
1119
|
-
n = i;
|
|
1120
|
-
const b = {
|
|
1121
|
-
loaded: i,
|
|
1122
|
-
total: a,
|
|
1123
|
-
progress: a ? i / a : void 0,
|
|
1124
|
-
bytes: m,
|
|
1125
|
-
rate: p || void 0,
|
|
1126
|
-
estimated: p && a && f ? (a - i) / p : void 0,
|
|
1127
|
-
event: s,
|
|
1128
|
-
lengthComputable: a != null,
|
|
1129
|
-
[r ? "download" : "upload"]: !0
|
|
1130
|
-
};
|
|
1131
|
-
e(b);
|
|
1132
|
-
}, t);
|
|
1133
|
-
}, yr = (e, r) => {
|
|
1134
|
-
const t = e != null;
|
|
1135
|
-
return [(n) => r[0]({
|
|
1136
|
-
lengthComputable: t,
|
|
1137
|
-
total: e,
|
|
1138
|
-
loaded: n
|
|
1139
|
-
}), r[1]];
|
|
1140
|
-
}, br = (e) => (...r) => c.asap(() => e(...r)), Xn = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, r) => (t) => (t = new URL(t, H.origin), e.protocol === t.protocol && e.host === t.host && (r || e.port === t.port)))(
|
|
1141
|
-
new URL(H.origin),
|
|
1142
|
-
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
1143
|
-
) : () => !0, Yn = H.hasStandardBrowserEnv ? (
|
|
1144
|
-
// Standard browser envs support document.cookie
|
|
1145
|
-
{
|
|
1146
|
-
write(e, r, t, n, o, s) {
|
|
1147
|
-
const i = [e + "=" + encodeURIComponent(r)];
|
|
1148
|
-
c.isNumber(t) && i.push("expires=" + new Date(t).toGMTString()), c.isString(n) && i.push("path=" + n), c.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
1149
|
-
},
|
|
1150
|
-
read(e) {
|
|
1151
|
-
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
1152
|
-
return r ? decodeURIComponent(r[3]) : null;
|
|
1153
|
-
},
|
|
1154
|
-
remove(e) {
|
|
1155
|
-
this.write(e, "", Date.now() - 864e5);
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
) : (
|
|
1159
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1160
|
-
{
|
|
1161
|
-
write() {
|
|
1162
|
-
},
|
|
1163
|
-
read() {
|
|
1164
|
-
return null;
|
|
1165
|
-
},
|
|
1166
|
-
remove() {
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
);
|
|
1170
|
-
function Qn(e) {
|
|
1171
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1172
|
-
}
|
|
1173
|
-
function Zn(e, r) {
|
|
1174
|
-
return r ? e.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : e;
|
|
1175
|
-
}
|
|
1176
|
-
function yt(e, r, t) {
|
|
1177
|
-
let n = !Qn(r);
|
|
1178
|
-
return e && (n || t == !1) ? Zn(e, r) : r;
|
|
1179
|
-
}
|
|
1180
|
-
const gr = (e) => e instanceof K ? { ...e } : e;
|
|
1181
|
-
function se(e, r) {
|
|
1182
|
-
r = r || {};
|
|
1183
|
-
const t = {};
|
|
1184
|
-
function n(p, f, b, w) {
|
|
1185
|
-
return c.isPlainObject(p) && c.isPlainObject(f) ? c.merge.call({ caseless: w }, p, f) : c.isPlainObject(f) ? c.merge({}, f) : c.isArray(f) ? f.slice() : f;
|
|
1186
|
-
}
|
|
1187
|
-
function o(p, f, b, w) {
|
|
1188
|
-
if (c.isUndefined(f)) {
|
|
1189
|
-
if (!c.isUndefined(p))
|
|
1190
|
-
return n(void 0, p, b, w);
|
|
1191
|
-
} else return n(p, f, b, w);
|
|
1192
|
-
}
|
|
1193
|
-
function s(p, f) {
|
|
1194
|
-
if (!c.isUndefined(f))
|
|
1195
|
-
return n(void 0, f);
|
|
1196
|
-
}
|
|
1197
|
-
function i(p, f) {
|
|
1198
|
-
if (c.isUndefined(f)) {
|
|
1199
|
-
if (!c.isUndefined(p))
|
|
1200
|
-
return n(void 0, p);
|
|
1201
|
-
} else return n(void 0, f);
|
|
1202
|
-
}
|
|
1203
|
-
function a(p, f, b) {
|
|
1204
|
-
if (b in r)
|
|
1205
|
-
return n(p, f);
|
|
1206
|
-
if (b in e)
|
|
1207
|
-
return n(void 0, p);
|
|
1208
|
-
}
|
|
1209
|
-
const m = {
|
|
1210
|
-
url: s,
|
|
1211
|
-
method: s,
|
|
1212
|
-
data: s,
|
|
1213
|
-
baseURL: i,
|
|
1214
|
-
transformRequest: i,
|
|
1215
|
-
transformResponse: i,
|
|
1216
|
-
paramsSerializer: i,
|
|
1217
|
-
timeout: i,
|
|
1218
|
-
timeoutMessage: i,
|
|
1219
|
-
withCredentials: i,
|
|
1220
|
-
withXSRFToken: i,
|
|
1221
|
-
adapter: i,
|
|
1222
|
-
responseType: i,
|
|
1223
|
-
xsrfCookieName: i,
|
|
1224
|
-
xsrfHeaderName: i,
|
|
1225
|
-
onUploadProgress: i,
|
|
1226
|
-
onDownloadProgress: i,
|
|
1227
|
-
decompress: i,
|
|
1228
|
-
maxContentLength: i,
|
|
1229
|
-
maxBodyLength: i,
|
|
1230
|
-
beforeRedirect: i,
|
|
1231
|
-
transport: i,
|
|
1232
|
-
httpAgent: i,
|
|
1233
|
-
httpsAgent: i,
|
|
1234
|
-
cancelToken: i,
|
|
1235
|
-
socketPath: i,
|
|
1236
|
-
responseEncoding: i,
|
|
1237
|
-
validateStatus: a,
|
|
1238
|
-
headers: (p, f, b) => o(gr(p), gr(f), b, !0)
|
|
1239
|
-
};
|
|
1240
|
-
return c.forEach(Object.keys({ ...e, ...r }), function(f) {
|
|
1241
|
-
const b = m[f] || o, w = b(e[f], r[f], f);
|
|
1242
|
-
c.isUndefined(w) && b !== a || (t[f] = w);
|
|
1243
|
-
}), t;
|
|
1244
|
-
}
|
|
1245
|
-
const bt = (e) => {
|
|
1246
|
-
const r = se({}, e);
|
|
1247
|
-
let { data: t, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = r;
|
|
1248
|
-
r.headers = i = K.from(i), r.url = pt(yt(r.baseURL, r.url, r.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1249
|
-
"Authorization",
|
|
1250
|
-
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1251
|
-
);
|
|
1252
|
-
let m;
|
|
1253
|
-
if (c.isFormData(t)) {
|
|
1254
|
-
if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
|
|
1255
|
-
i.setContentType(void 0);
|
|
1256
|
-
else if ((m = i.getContentType()) !== !1) {
|
|
1257
|
-
const [p, ...f] = m ? m.split(";").map((b) => b.trim()).filter(Boolean) : [];
|
|
1258
|
-
i.setContentType([p || "multipart/form-data", ...f].join("; "));
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
if (H.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(r)), n || n !== !1 && Xn(r.url))) {
|
|
1262
|
-
const p = o && s && Yn.read(s);
|
|
1263
|
-
p && i.set(o, p);
|
|
1264
|
-
}
|
|
1265
|
-
return r;
|
|
1266
|
-
}, eo = typeof XMLHttpRequest < "u", ro = eo && function(e) {
|
|
1267
|
-
return new Promise(function(t, n) {
|
|
1268
|
-
const o = bt(e);
|
|
1269
|
-
let s = o.data;
|
|
1270
|
-
const i = K.from(o.headers).normalize();
|
|
1271
|
-
let { responseType: a, onUploadProgress: m, onDownloadProgress: p } = o, f, b, w, I, g;
|
|
1272
|
-
function _() {
|
|
1273
|
-
I && I(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
1274
|
-
}
|
|
1275
|
-
let E = new XMLHttpRequest();
|
|
1276
|
-
E.open(o.method.toUpperCase(), o.url, !0), E.timeout = o.timeout;
|
|
1277
|
-
function C() {
|
|
1278
|
-
if (!E)
|
|
1279
|
-
return;
|
|
1280
|
-
const q = K.from(
|
|
1281
|
-
"getAllResponseHeaders" in E && E.getAllResponseHeaders()
|
|
1282
|
-
), j = {
|
|
1283
|
-
data: !a || a === "text" || a === "json" ? E.responseText : E.response,
|
|
1284
|
-
status: E.status,
|
|
1285
|
-
statusText: E.statusText,
|
|
1286
|
-
headers: q,
|
|
1287
|
-
config: e,
|
|
1288
|
-
request: E
|
|
1289
|
-
};
|
|
1290
|
-
mt(function(W) {
|
|
1291
|
-
t(W), _();
|
|
1292
|
-
}, function(W) {
|
|
1293
|
-
n(W), _();
|
|
1294
|
-
}, j), E = null;
|
|
1295
|
-
}
|
|
1296
|
-
"onloadend" in E ? E.onloadend = C : E.onreadystatechange = function() {
|
|
1297
|
-
!E || E.readyState !== 4 || E.status === 0 && !(E.responseURL && E.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
1298
|
-
}, E.onabort = function() {
|
|
1299
|
-
E && (n(new A("Request aborted", A.ECONNABORTED, e, E)), E = null);
|
|
1300
|
-
}, E.onerror = function() {
|
|
1301
|
-
n(new A("Network Error", A.ERR_NETWORK, e, E)), E = null;
|
|
1302
|
-
}, E.ontimeout = function() {
|
|
1303
|
-
let M = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1304
|
-
const j = o.transitional || ht;
|
|
1305
|
-
o.timeoutErrorMessage && (M = o.timeoutErrorMessage), n(new A(
|
|
1306
|
-
M,
|
|
1307
|
-
j.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
|
|
1308
|
-
e,
|
|
1309
|
-
E
|
|
1310
|
-
)), E = null;
|
|
1311
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in E && c.forEach(i.toJSON(), function(M, j) {
|
|
1312
|
-
E.setRequestHeader(j, M);
|
|
1313
|
-
}), c.isUndefined(o.withCredentials) || (E.withCredentials = !!o.withCredentials), a && a !== "json" && (E.responseType = o.responseType), p && ([w, g] = je(p, !0), E.addEventListener("progress", w)), m && E.upload && ([b, I] = je(m), E.upload.addEventListener("progress", b), E.upload.addEventListener("loadend", I)), (o.cancelToken || o.signal) && (f = (q) => {
|
|
1314
|
-
E && (n(!q || q.type ? new ae(null, e, E) : q), E.abort(), E = null);
|
|
1315
|
-
}, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
|
|
1316
|
-
const D = zn(o.url);
|
|
1317
|
-
if (D && H.protocols.indexOf(D) === -1) {
|
|
1318
|
-
n(new A("Unsupported protocol " + D + ":", A.ERR_BAD_REQUEST, e));
|
|
1319
|
-
return;
|
|
1320
|
-
}
|
|
1321
|
-
E.send(s || null);
|
|
1322
|
-
});
|
|
1323
|
-
}, to = (e, r) => {
|
|
1324
|
-
const { length: t } = e = e ? e.filter(Boolean) : [];
|
|
1325
|
-
if (r || t) {
|
|
1326
|
-
let n = new AbortController(), o;
|
|
1327
|
-
const s = function(p) {
|
|
1328
|
-
if (!o) {
|
|
1329
|
-
o = !0, a();
|
|
1330
|
-
const f = p instanceof Error ? p : this.reason;
|
|
1331
|
-
n.abort(f instanceof A ? f : new ae(f instanceof Error ? f.message : f));
|
|
1332
|
-
}
|
|
1333
|
-
};
|
|
1334
|
-
let i = r && setTimeout(() => {
|
|
1335
|
-
i = null, s(new A(`timeout ${r} of ms exceeded`, A.ETIMEDOUT));
|
|
1336
|
-
}, r);
|
|
1337
|
-
const a = () => {
|
|
1338
|
-
e && (i && clearTimeout(i), i = null, e.forEach((p) => {
|
|
1339
|
-
p.unsubscribe ? p.unsubscribe(s) : p.removeEventListener("abort", s);
|
|
1340
|
-
}), e = null);
|
|
1341
|
-
};
|
|
1342
|
-
e.forEach((p) => p.addEventListener("abort", s));
|
|
1343
|
-
const { signal: m } = n;
|
|
1344
|
-
return m.unsubscribe = () => c.asap(a), m;
|
|
1345
|
-
}
|
|
1346
|
-
}, no = function* (e, r) {
|
|
1347
|
-
let t = e.byteLength;
|
|
1348
|
-
if (t < r) {
|
|
1349
|
-
yield e;
|
|
1350
|
-
return;
|
|
1351
|
-
}
|
|
1352
|
-
let n = 0, o;
|
|
1353
|
-
for (; n < t; )
|
|
1354
|
-
o = n + r, yield e.slice(n, o), n = o;
|
|
1355
|
-
}, oo = async function* (e, r) {
|
|
1356
|
-
for await (const t of so(e))
|
|
1357
|
-
yield* no(t, r);
|
|
1358
|
-
}, so = async function* (e) {
|
|
1359
|
-
if (e[Symbol.asyncIterator]) {
|
|
1360
|
-
yield* e;
|
|
1361
|
-
return;
|
|
1362
|
-
}
|
|
1363
|
-
const r = e.getReader();
|
|
1364
|
-
try {
|
|
1365
|
-
for (; ; ) {
|
|
1366
|
-
const { done: t, value: n } = await r.read();
|
|
1367
|
-
if (t)
|
|
1368
|
-
break;
|
|
1369
|
-
yield n;
|
|
1370
|
-
}
|
|
1371
|
-
} finally {
|
|
1372
|
-
await r.cancel();
|
|
1373
|
-
}
|
|
1374
|
-
}, Er = (e, r, t, n) => {
|
|
1375
|
-
const o = oo(e, r);
|
|
1376
|
-
let s = 0, i, a = (m) => {
|
|
1377
|
-
i || (i = !0, n && n(m));
|
|
1378
|
-
};
|
|
1379
|
-
return new ReadableStream({
|
|
1380
|
-
async pull(m) {
|
|
1381
|
-
try {
|
|
1382
|
-
const { done: p, value: f } = await o.next();
|
|
1383
|
-
if (p) {
|
|
1384
|
-
a(), m.close();
|
|
1385
|
-
return;
|
|
1386
|
-
}
|
|
1387
|
-
let b = f.byteLength;
|
|
1388
|
-
if (t) {
|
|
1389
|
-
let w = s += b;
|
|
1390
|
-
t(w);
|
|
1391
|
-
}
|
|
1392
|
-
m.enqueue(new Uint8Array(f));
|
|
1393
|
-
} catch (p) {
|
|
1394
|
-
throw a(p), p;
|
|
1395
|
-
}
|
|
1396
|
-
},
|
|
1397
|
-
cancel(m) {
|
|
1398
|
-
return a(m), o.return();
|
|
1399
|
-
}
|
|
1400
|
-
}, {
|
|
1401
|
-
highWaterMark: 2
|
|
1402
|
-
});
|
|
1403
|
-
}, Me = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", gt = Me && typeof ReadableStream == "function", io = Me && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (r) => e.encode(r))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Et = (e, ...r) => {
|
|
1404
|
-
try {
|
|
1405
|
-
return !!e(...r);
|
|
1406
|
-
} catch {
|
|
1407
|
-
return !1;
|
|
1408
|
-
}
|
|
1409
|
-
}, ao = gt && Et(() => {
|
|
1410
|
-
let e = !1;
|
|
1411
|
-
const r = new Request(H.origin, {
|
|
1412
|
-
body: new ReadableStream(),
|
|
1413
|
-
method: "POST",
|
|
1414
|
-
get duplex() {
|
|
1415
|
-
return e = !0, "half";
|
|
1416
|
-
}
|
|
1417
|
-
}).headers.has("Content-Type");
|
|
1418
|
-
return e && !r;
|
|
1419
|
-
}), Or = 64 * 1024, sr = gt && Et(() => c.isReadableStream(new Response("").body)), Ue = {
|
|
1420
|
-
stream: sr && ((e) => e.body)
|
|
1421
|
-
};
|
|
1422
|
-
Me && ((e) => {
|
|
1423
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((r) => {
|
|
1424
|
-
!Ue[r] && (Ue[r] = c.isFunction(e[r]) ? (t) => t[r]() : (t, n) => {
|
|
1425
|
-
throw new A(`Response type '${r}' is not supported`, A.ERR_NOT_SUPPORT, n);
|
|
1426
|
-
});
|
|
1427
|
-
});
|
|
1428
|
-
})(new Response());
|
|
1429
|
-
const co = async (e) => {
|
|
1430
|
-
if (e == null)
|
|
1431
|
-
return 0;
|
|
1432
|
-
if (c.isBlob(e))
|
|
1433
|
-
return e.size;
|
|
1434
|
-
if (c.isSpecCompliantForm(e))
|
|
1435
|
-
return (await new Request(H.origin, {
|
|
1436
|
-
method: "POST",
|
|
1437
|
-
body: e
|
|
1438
|
-
}).arrayBuffer()).byteLength;
|
|
1439
|
-
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
1440
|
-
return e.byteLength;
|
|
1441
|
-
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
1442
|
-
return (await io(e)).byteLength;
|
|
1443
|
-
}, uo = async (e, r) => {
|
|
1444
|
-
const t = c.toFiniteNumber(e.getContentLength());
|
|
1445
|
-
return t ?? co(r);
|
|
1446
|
-
}, lo = Me && (async (e) => {
|
|
1447
|
-
let {
|
|
1448
|
-
url: r,
|
|
1449
|
-
method: t,
|
|
1450
|
-
data: n,
|
|
1451
|
-
signal: o,
|
|
1452
|
-
cancelToken: s,
|
|
1453
|
-
timeout: i,
|
|
1454
|
-
onDownloadProgress: a,
|
|
1455
|
-
onUploadProgress: m,
|
|
1456
|
-
responseType: p,
|
|
1457
|
-
headers: f,
|
|
1458
|
-
withCredentials: b = "same-origin",
|
|
1459
|
-
fetchOptions: w
|
|
1460
|
-
} = bt(e);
|
|
1461
|
-
p = p ? (p + "").toLowerCase() : "text";
|
|
1462
|
-
let I = to([o, s && s.toAbortSignal()], i), g;
|
|
1463
|
-
const _ = I && I.unsubscribe && (() => {
|
|
1464
|
-
I.unsubscribe();
|
|
1465
|
-
});
|
|
1466
|
-
let E;
|
|
1467
|
-
try {
|
|
1468
|
-
if (m && ao && t !== "get" && t !== "head" && (E = await uo(f, n)) !== 0) {
|
|
1469
|
-
let j = new Request(r, {
|
|
1470
|
-
method: "POST",
|
|
1471
|
-
body: n,
|
|
1472
|
-
duplex: "half"
|
|
1473
|
-
}), G;
|
|
1474
|
-
if (c.isFormData(n) && (G = j.headers.get("content-type")) && f.setContentType(G), j.body) {
|
|
1475
|
-
const [W, X] = yr(
|
|
1476
|
-
E,
|
|
1477
|
-
je(br(m))
|
|
1478
|
-
);
|
|
1479
|
-
n = Er(j.body, Or, W, X);
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
c.isString(b) || (b = b ? "include" : "omit");
|
|
1483
|
-
const C = "credentials" in Request.prototype;
|
|
1484
|
-
g = new Request(r, {
|
|
1485
|
-
...w,
|
|
1486
|
-
signal: I,
|
|
1487
|
-
method: t.toUpperCase(),
|
|
1488
|
-
headers: f.normalize().toJSON(),
|
|
1489
|
-
body: n,
|
|
1490
|
-
duplex: "half",
|
|
1491
|
-
credentials: C ? b : void 0
|
|
1492
|
-
});
|
|
1493
|
-
let D = await fetch(g, w);
|
|
1494
|
-
const q = sr && (p === "stream" || p === "response");
|
|
1495
|
-
if (sr && (a || q && _)) {
|
|
1496
|
-
const j = {};
|
|
1497
|
-
["status", "statusText", "headers"].forEach((ee) => {
|
|
1498
|
-
j[ee] = D[ee];
|
|
1499
|
-
});
|
|
1500
|
-
const G = c.toFiniteNumber(D.headers.get("content-length")), [W, X] = a && yr(
|
|
1501
|
-
G,
|
|
1502
|
-
je(br(a), !0)
|
|
1503
|
-
) || [];
|
|
1504
|
-
D = new Response(
|
|
1505
|
-
Er(D.body, Or, W, () => {
|
|
1506
|
-
X && X(), _ && _();
|
|
1507
|
-
}),
|
|
1508
|
-
j
|
|
1509
|
-
);
|
|
1510
|
-
}
|
|
1511
|
-
p = p || "text";
|
|
1512
|
-
let M = await Ue[c.findKey(Ue, p) || "text"](D, e);
|
|
1513
|
-
return !q && _ && _(), await new Promise((j, G) => {
|
|
1514
|
-
mt(j, G, {
|
|
1515
|
-
data: M,
|
|
1516
|
-
headers: K.from(D.headers),
|
|
1517
|
-
status: D.status,
|
|
1518
|
-
statusText: D.statusText,
|
|
1519
|
-
config: e,
|
|
1520
|
-
request: g
|
|
1521
|
-
});
|
|
1522
|
-
});
|
|
1523
|
-
} catch (C) {
|
|
1524
|
-
throw _ && _(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
|
|
1525
|
-
new A("Network Error", A.ERR_NETWORK, e, g),
|
|
1526
|
-
{
|
|
1527
|
-
cause: C.cause || C
|
|
1528
|
-
}
|
|
1529
|
-
) : A.from(C, C && C.code, e, g);
|
|
1530
|
-
}
|
|
1531
|
-
}), ir = {
|
|
1532
|
-
http: Pn,
|
|
1533
|
-
xhr: ro,
|
|
1534
|
-
fetch: lo
|
|
1535
|
-
};
|
|
1536
|
-
c.forEach(ir, (e, r) => {
|
|
1537
|
-
if (e) {
|
|
1538
|
-
try {
|
|
1539
|
-
Object.defineProperty(e, "name", { value: r });
|
|
1540
|
-
} catch {
|
|
1541
|
-
}
|
|
1542
|
-
Object.defineProperty(e, "adapterName", { value: r });
|
|
1543
|
-
}
|
|
1544
|
-
});
|
|
1545
|
-
const _r = (e) => `- ${e}`, fo = (e) => c.isFunction(e) || e === null || e === !1, Ot = {
|
|
1546
|
-
getAdapter: (e) => {
|
|
1547
|
-
e = c.isArray(e) ? e : [e];
|
|
1548
|
-
const { length: r } = e;
|
|
1549
|
-
let t, n;
|
|
1550
|
-
const o = {};
|
|
1551
|
-
for (let s = 0; s < r; s++) {
|
|
1552
|
-
t = e[s];
|
|
1553
|
-
let i;
|
|
1554
|
-
if (n = t, !fo(t) && (n = ir[(i = String(t)).toLowerCase()], n === void 0))
|
|
1555
|
-
throw new A(`Unknown adapter '${i}'`);
|
|
1556
|
-
if (n)
|
|
1557
|
-
break;
|
|
1558
|
-
o[i || "#" + s] = n;
|
|
1559
|
-
}
|
|
1560
|
-
if (!n) {
|
|
1561
|
-
const s = Object.entries(o).map(
|
|
1562
|
-
([a, m]) => `adapter ${a} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1563
|
-
);
|
|
1564
|
-
let i = r ? s.length > 1 ? `since :
|
|
1565
|
-
` + s.map(_r).join(`
|
|
1566
|
-
`) : " " + _r(s[0]) : "as no adapter specified";
|
|
1567
|
-
throw new A(
|
|
1568
|
-
"There is no suitable adapter to dispatch the request " + i,
|
|
1569
|
-
"ERR_NOT_SUPPORT"
|
|
1570
|
-
);
|
|
1571
|
-
}
|
|
1572
|
-
return n;
|
|
1573
|
-
},
|
|
1574
|
-
adapters: ir
|
|
1575
|
-
};
|
|
1576
|
-
function Ve(e) {
|
|
1577
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1578
|
-
throw new ae(null, e);
|
|
1579
|
-
}
|
|
1580
|
-
function Tr(e) {
|
|
1581
|
-
return Ve(e), e.headers = K.from(e.headers), e.data = Ge.call(
|
|
1582
|
-
e,
|
|
1583
|
-
e.transformRequest
|
|
1584
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ot.getAdapter(e.adapter || ke.adapter)(e).then(function(n) {
|
|
1585
|
-
return Ve(e), n.data = Ge.call(
|
|
1586
|
-
e,
|
|
1587
|
-
e.transformResponse,
|
|
1588
|
-
n
|
|
1589
|
-
), n.headers = K.from(n.headers), n;
|
|
1590
|
-
}, function(n) {
|
|
1591
|
-
return St(n) || (Ve(e), n && n.response && (n.response.data = Ge.call(
|
|
1592
|
-
e,
|
|
1593
|
-
e.transformResponse,
|
|
1594
|
-
n.response
|
|
1595
|
-
), n.response.headers = K.from(n.response.headers))), Promise.reject(n);
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
const _t = "1.11.0", He = {};
|
|
1599
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, r) => {
|
|
1600
|
-
He[e] = function(n) {
|
|
1601
|
-
return typeof n === e || "a" + (r < 1 ? "n " : " ") + e;
|
|
1602
|
-
};
|
|
1603
|
-
});
|
|
1604
|
-
const Pr = {};
|
|
1605
|
-
He.transitional = function(r, t, n) {
|
|
1606
|
-
function o(s, i) {
|
|
1607
|
-
return "[Axios v" + _t + "] Transitional option '" + s + "'" + i + (n ? ". " + n : "");
|
|
1608
|
-
}
|
|
1609
|
-
return (s, i, a) => {
|
|
1610
|
-
if (r === !1)
|
|
1611
|
-
throw new A(
|
|
1612
|
-
o(i, " has been removed" + (t ? " in " + t : "")),
|
|
1613
|
-
A.ERR_DEPRECATED
|
|
1614
|
-
);
|
|
1615
|
-
return t && !Pr[i] && (Pr[i] = !0, console.warn(
|
|
1616
|
-
o(
|
|
1617
|
-
i,
|
|
1618
|
-
" has been deprecated since v" + t + " and will be removed in the near future"
|
|
1619
|
-
)
|
|
1620
|
-
)), r ? r(s, i, a) : !0;
|
|
1621
|
-
};
|
|
1622
|
-
};
|
|
1623
|
-
He.spelling = function(r) {
|
|
1624
|
-
return (t, n) => (console.warn(`${n} is likely a misspelling of ${r}`), !0);
|
|
1625
|
-
};
|
|
1626
|
-
function po(e, r, t) {
|
|
1627
|
-
if (typeof e != "object")
|
|
1628
|
-
throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
|
|
1629
|
-
const n = Object.keys(e);
|
|
1630
|
-
let o = n.length;
|
|
1631
|
-
for (; o-- > 0; ) {
|
|
1632
|
-
const s = n[o], i = r[s];
|
|
1633
|
-
if (i) {
|
|
1634
|
-
const a = e[s], m = a === void 0 || i(a, s, e);
|
|
1635
|
-
if (m !== !0)
|
|
1636
|
-
throw new A("option " + s + " must be " + m, A.ERR_BAD_OPTION_VALUE);
|
|
1637
|
-
continue;
|
|
1638
|
-
}
|
|
1639
|
-
if (t !== !0)
|
|
1640
|
-
throw new A("Unknown option " + s, A.ERR_BAD_OPTION);
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
const Ne = {
|
|
1644
|
-
assertOptions: po,
|
|
1645
|
-
validators: He
|
|
1646
|
-
}, Q = Ne.validators;
|
|
1647
|
-
let oe = class {
|
|
1648
|
-
constructor(r) {
|
|
1649
|
-
this.defaults = r || {}, this.interceptors = {
|
|
1650
|
-
request: new Sr(),
|
|
1651
|
-
response: new Sr()
|
|
1652
|
-
};
|
|
1653
|
-
}
|
|
1654
|
-
/**
|
|
1655
|
-
* Dispatch a request
|
|
1656
|
-
*
|
|
1657
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1658
|
-
* @param {?Object} config
|
|
1659
|
-
*
|
|
1660
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1661
|
-
*/
|
|
1662
|
-
async request(r, t) {
|
|
1663
|
-
try {
|
|
1664
|
-
return await this._request(r, t);
|
|
1665
|
-
} catch (n) {
|
|
1666
|
-
if (n instanceof Error) {
|
|
1667
|
-
let o = {};
|
|
1668
|
-
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
1669
|
-
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1670
|
-
try {
|
|
1671
|
-
n.stack ? s && !String(n.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1672
|
-
` + s) : n.stack = s;
|
|
1673
|
-
} catch {
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
throw n;
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
_request(r, t) {
|
|
1680
|
-
typeof r == "string" ? (t = t || {}, t.url = r) : t = r || {}, t = se(this.defaults, t);
|
|
1681
|
-
const { transitional: n, paramsSerializer: o, headers: s } = t;
|
|
1682
|
-
n !== void 0 && Ne.assertOptions(n, {
|
|
1683
|
-
silentJSONParsing: Q.transitional(Q.boolean),
|
|
1684
|
-
forcedJSONParsing: Q.transitional(Q.boolean),
|
|
1685
|
-
clarifyTimeoutError: Q.transitional(Q.boolean)
|
|
1686
|
-
}, !1), o != null && (c.isFunction(o) ? t.paramsSerializer = {
|
|
1687
|
-
serialize: o
|
|
1688
|
-
} : Ne.assertOptions(o, {
|
|
1689
|
-
encode: Q.function,
|
|
1690
|
-
serialize: Q.function
|
|
1691
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), Ne.assertOptions(t, {
|
|
1692
|
-
baseUrl: Q.spelling("baseURL"),
|
|
1693
|
-
withXsrfToken: Q.spelling("withXSRFToken")
|
|
1694
|
-
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1695
|
-
let i = s && c.merge(
|
|
1696
|
-
s.common,
|
|
1697
|
-
s[t.method]
|
|
1698
|
-
);
|
|
1699
|
-
s && c.forEach(
|
|
1700
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1701
|
-
(g) => {
|
|
1702
|
-
delete s[g];
|
|
1703
|
-
}
|
|
1704
|
-
), t.headers = K.concat(i, s);
|
|
1705
|
-
const a = [];
|
|
1706
|
-
let m = !0;
|
|
1707
|
-
this.interceptors.request.forEach(function(_) {
|
|
1708
|
-
typeof _.runWhen == "function" && _.runWhen(t) === !1 || (m = m && _.synchronous, a.unshift(_.fulfilled, _.rejected));
|
|
1709
|
-
});
|
|
1710
|
-
const p = [];
|
|
1711
|
-
this.interceptors.response.forEach(function(_) {
|
|
1712
|
-
p.push(_.fulfilled, _.rejected);
|
|
1713
|
-
});
|
|
1714
|
-
let f, b = 0, w;
|
|
1715
|
-
if (!m) {
|
|
1716
|
-
const g = [Tr.bind(this), void 0];
|
|
1717
|
-
for (g.unshift(...a), g.push(...p), w = g.length, f = Promise.resolve(t); b < w; )
|
|
1718
|
-
f = f.then(g[b++], g[b++]);
|
|
1719
|
-
return f;
|
|
1720
|
-
}
|
|
1721
|
-
w = a.length;
|
|
1722
|
-
let I = t;
|
|
1723
|
-
for (b = 0; b < w; ) {
|
|
1724
|
-
const g = a[b++], _ = a[b++];
|
|
1725
|
-
try {
|
|
1726
|
-
I = g(I);
|
|
1727
|
-
} catch (E) {
|
|
1728
|
-
_.call(this, E);
|
|
1729
|
-
break;
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
try {
|
|
1733
|
-
f = Tr.call(this, I);
|
|
1734
|
-
} catch (g) {
|
|
1735
|
-
return Promise.reject(g);
|
|
1736
|
-
}
|
|
1737
|
-
for (b = 0, w = p.length; b < w; )
|
|
1738
|
-
f = f.then(p[b++], p[b++]);
|
|
1739
|
-
return f;
|
|
1740
|
-
}
|
|
1741
|
-
getUri(r) {
|
|
1742
|
-
r = se(this.defaults, r);
|
|
1743
|
-
const t = yt(r.baseURL, r.url, r.allowAbsoluteUrls);
|
|
1744
|
-
return pt(t, r.params, r.paramsSerializer);
|
|
1745
|
-
}
|
|
1746
|
-
};
|
|
1747
|
-
c.forEach(["delete", "get", "head", "options"], function(r) {
|
|
1748
|
-
oe.prototype[r] = function(t, n) {
|
|
1749
|
-
return this.request(se(n || {}, {
|
|
1750
|
-
method: r,
|
|
1751
|
-
url: t,
|
|
1752
|
-
data: (n || {}).data
|
|
1753
|
-
}));
|
|
1754
|
-
};
|
|
1755
|
-
});
|
|
1756
|
-
c.forEach(["post", "put", "patch"], function(r) {
|
|
1757
|
-
function t(n) {
|
|
1758
|
-
return function(s, i, a) {
|
|
1759
|
-
return this.request(se(a || {}, {
|
|
1760
|
-
method: r,
|
|
1761
|
-
headers: n ? {
|
|
1762
|
-
"Content-Type": "multipart/form-data"
|
|
1763
|
-
} : {},
|
|
1764
|
-
url: s,
|
|
1765
|
-
data: i
|
|
1766
|
-
}));
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1769
|
-
oe.prototype[r] = t(), oe.prototype[r + "Form"] = t(!0);
|
|
1770
|
-
});
|
|
1771
|
-
let ho = class Tt {
|
|
1772
|
-
constructor(r) {
|
|
1773
|
-
if (typeof r != "function")
|
|
1774
|
-
throw new TypeError("executor must be a function.");
|
|
1775
|
-
let t;
|
|
1776
|
-
this.promise = new Promise(function(s) {
|
|
1777
|
-
t = s;
|
|
1778
|
-
});
|
|
1779
|
-
const n = this;
|
|
1780
|
-
this.promise.then((o) => {
|
|
1781
|
-
if (!n._listeners) return;
|
|
1782
|
-
let s = n._listeners.length;
|
|
1783
|
-
for (; s-- > 0; )
|
|
1784
|
-
n._listeners[s](o);
|
|
1785
|
-
n._listeners = null;
|
|
1786
|
-
}), this.promise.then = (o) => {
|
|
1787
|
-
let s;
|
|
1788
|
-
const i = new Promise((a) => {
|
|
1789
|
-
n.subscribe(a), s = a;
|
|
1790
|
-
}).then(o);
|
|
1791
|
-
return i.cancel = function() {
|
|
1792
|
-
n.unsubscribe(s);
|
|
1793
|
-
}, i;
|
|
1794
|
-
}, r(function(s, i, a) {
|
|
1795
|
-
n.reason || (n.reason = new ae(s, i, a), t(n.reason));
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
/**
|
|
1799
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1800
|
-
*/
|
|
1801
|
-
throwIfRequested() {
|
|
1802
|
-
if (this.reason)
|
|
1803
|
-
throw this.reason;
|
|
1804
|
-
}
|
|
1805
|
-
/**
|
|
1806
|
-
* Subscribe to the cancel signal
|
|
1807
|
-
*/
|
|
1808
|
-
subscribe(r) {
|
|
1809
|
-
if (this.reason) {
|
|
1810
|
-
r(this.reason);
|
|
1811
|
-
return;
|
|
1812
|
-
}
|
|
1813
|
-
this._listeners ? this._listeners.push(r) : this._listeners = [r];
|
|
1814
|
-
}
|
|
1815
|
-
/**
|
|
1816
|
-
* Unsubscribe from the cancel signal
|
|
1817
|
-
*/
|
|
1818
|
-
unsubscribe(r) {
|
|
1819
|
-
if (!this._listeners)
|
|
1820
|
-
return;
|
|
1821
|
-
const t = this._listeners.indexOf(r);
|
|
1822
|
-
t !== -1 && this._listeners.splice(t, 1);
|
|
1823
|
-
}
|
|
1824
|
-
toAbortSignal() {
|
|
1825
|
-
const r = new AbortController(), t = (n) => {
|
|
1826
|
-
r.abort(n);
|
|
1827
|
-
};
|
|
1828
|
-
return this.subscribe(t), r.signal.unsubscribe = () => this.unsubscribe(t), r.signal;
|
|
1829
|
-
}
|
|
1830
|
-
/**
|
|
1831
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1832
|
-
* cancels the `CancelToken`.
|
|
1833
|
-
*/
|
|
1834
|
-
static source() {
|
|
1835
|
-
let r;
|
|
1836
|
-
return {
|
|
1837
|
-
token: new Tt(function(o) {
|
|
1838
|
-
r = o;
|
|
1839
|
-
}),
|
|
1840
|
-
cancel: r
|
|
1841
|
-
};
|
|
1842
|
-
}
|
|
1843
|
-
};
|
|
1844
|
-
function vo(e) {
|
|
1845
|
-
return function(t) {
|
|
1846
|
-
return e.apply(null, t);
|
|
1847
|
-
};
|
|
1848
|
-
}
|
|
1849
|
-
function So(e) {
|
|
1850
|
-
return c.isObject(e) && e.isAxiosError === !0;
|
|
1851
|
-
}
|
|
1852
|
-
const ar = {
|
|
1853
|
-
Continue: 100,
|
|
1854
|
-
SwitchingProtocols: 101,
|
|
1855
|
-
Processing: 102,
|
|
1856
|
-
EarlyHints: 103,
|
|
1857
|
-
Ok: 200,
|
|
1858
|
-
Created: 201,
|
|
1859
|
-
Accepted: 202,
|
|
1860
|
-
NonAuthoritativeInformation: 203,
|
|
1861
|
-
NoContent: 204,
|
|
1862
|
-
ResetContent: 205,
|
|
1863
|
-
PartialContent: 206,
|
|
1864
|
-
MultiStatus: 207,
|
|
1865
|
-
AlreadyReported: 208,
|
|
1866
|
-
ImUsed: 226,
|
|
1867
|
-
MultipleChoices: 300,
|
|
1868
|
-
MovedPermanently: 301,
|
|
1869
|
-
Found: 302,
|
|
1870
|
-
SeeOther: 303,
|
|
1871
|
-
NotModified: 304,
|
|
1872
|
-
UseProxy: 305,
|
|
1873
|
-
Unused: 306,
|
|
1874
|
-
TemporaryRedirect: 307,
|
|
1875
|
-
PermanentRedirect: 308,
|
|
1876
|
-
BadRequest: 400,
|
|
1877
|
-
Unauthorized: 401,
|
|
1878
|
-
PaymentRequired: 402,
|
|
1879
|
-
Forbidden: 403,
|
|
1880
|
-
NotFound: 404,
|
|
1881
|
-
MethodNotAllowed: 405,
|
|
1882
|
-
NotAcceptable: 406,
|
|
1883
|
-
ProxyAuthenticationRequired: 407,
|
|
1884
|
-
RequestTimeout: 408,
|
|
1885
|
-
Conflict: 409,
|
|
1886
|
-
Gone: 410,
|
|
1887
|
-
LengthRequired: 411,
|
|
1888
|
-
PreconditionFailed: 412,
|
|
1889
|
-
PayloadTooLarge: 413,
|
|
1890
|
-
UriTooLong: 414,
|
|
1891
|
-
UnsupportedMediaType: 415,
|
|
1892
|
-
RangeNotSatisfiable: 416,
|
|
1893
|
-
ExpectationFailed: 417,
|
|
1894
|
-
ImATeapot: 418,
|
|
1895
|
-
MisdirectedRequest: 421,
|
|
1896
|
-
UnprocessableEntity: 422,
|
|
1897
|
-
Locked: 423,
|
|
1898
|
-
FailedDependency: 424,
|
|
1899
|
-
TooEarly: 425,
|
|
1900
|
-
UpgradeRequired: 426,
|
|
1901
|
-
PreconditionRequired: 428,
|
|
1902
|
-
TooManyRequests: 429,
|
|
1903
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1904
|
-
UnavailableForLegalReasons: 451,
|
|
1905
|
-
InternalServerError: 500,
|
|
1906
|
-
NotImplemented: 501,
|
|
1907
|
-
BadGateway: 502,
|
|
1908
|
-
ServiceUnavailable: 503,
|
|
1909
|
-
GatewayTimeout: 504,
|
|
1910
|
-
HttpVersionNotSupported: 505,
|
|
1911
|
-
VariantAlsoNegotiates: 506,
|
|
1912
|
-
InsufficientStorage: 507,
|
|
1913
|
-
LoopDetected: 508,
|
|
1914
|
-
NotExtended: 510,
|
|
1915
|
-
NetworkAuthenticationRequired: 511
|
|
1916
|
-
};
|
|
1917
|
-
Object.entries(ar).forEach(([e, r]) => {
|
|
1918
|
-
ar[r] = e;
|
|
1919
|
-
});
|
|
1920
|
-
function Pt(e) {
|
|
1921
|
-
const r = new oe(e), t = rt(oe.prototype.request, r);
|
|
1922
|
-
return c.extend(t, oe.prototype, r, { allOwnKeys: !0 }), c.extend(t, r, null, { allOwnKeys: !0 }), t.create = function(o) {
|
|
1923
|
-
return Pt(se(e, o));
|
|
1924
|
-
}, t;
|
|
1925
|
-
}
|
|
1926
|
-
const F = Pt(ke);
|
|
1927
|
-
F.Axios = oe;
|
|
1928
|
-
F.CanceledError = ae;
|
|
1929
|
-
F.CancelToken = ho;
|
|
1930
|
-
F.isCancel = St;
|
|
1931
|
-
F.VERSION = _t;
|
|
1932
|
-
F.toFormData = $e;
|
|
1933
|
-
F.AxiosError = A;
|
|
1934
|
-
F.Cancel = F.CanceledError;
|
|
1935
|
-
F.all = function(r) {
|
|
1936
|
-
return Promise.all(r);
|
|
1937
|
-
};
|
|
1938
|
-
F.spread = vo;
|
|
1939
|
-
F.isAxiosError = So;
|
|
1940
|
-
F.mergeConfig = se;
|
|
1941
|
-
F.AxiosHeaders = K;
|
|
1942
|
-
F.formToJSON = (e) => vt(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1943
|
-
F.getAdapter = Ot.getAdapter;
|
|
1944
|
-
F.HttpStatusCode = ar;
|
|
1945
|
-
F.default = F;
|
|
1946
|
-
const {
|
|
1947
|
-
Axios: cs,
|
|
1948
|
-
AxiosError: us,
|
|
1949
|
-
CanceledError: ls,
|
|
1950
|
-
isCancel: ds,
|
|
1951
|
-
CancelToken: fs,
|
|
1952
|
-
VERSION: ps,
|
|
1953
|
-
all: hs,
|
|
1954
|
-
Cancel: vs,
|
|
1955
|
-
isAxiosError: Ss,
|
|
1956
|
-
spread: ms,
|
|
1957
|
-
toFormData: ys,
|
|
1958
|
-
AxiosHeaders: bs,
|
|
1959
|
-
HttpStatusCode: gs,
|
|
1960
|
-
formToJSON: Es,
|
|
1961
|
-
getAdapter: Os,
|
|
1962
|
-
mergeConfig: _s
|
|
1963
|
-
} = F;
|
|
1964
|
-
async function P(e) {
|
|
1965
|
-
var r, t, n;
|
|
1966
|
-
try {
|
|
1967
|
-
let o = e.endpoint;
|
|
1968
|
-
o.startsWith("/") || (o = "/" + o);
|
|
1969
|
-
const s = await F({
|
|
1970
|
-
url: `https://api.webdock.io/v1${o}`,
|
|
1971
|
-
method: e.method,
|
|
1972
|
-
headers: {
|
|
1973
|
-
Authorization: `Bearer ${e.token}`,
|
|
1974
|
-
"Content-Type": "application/json",
|
|
1975
|
-
"Cache-Control": "no-cache, no-store, must-revalidate"
|
|
1976
|
-
},
|
|
1977
|
-
data: e.body,
|
|
1978
|
-
family: 4
|
|
1979
|
-
}), i = {};
|
|
1980
|
-
return (e.headers ?? []).forEach((a) => {
|
|
1981
|
-
var m;
|
|
1982
|
-
a && (i[a] = (m = s.headers) == null ? void 0 : m[a ?? ""]);
|
|
1983
|
-
}), {
|
|
1984
|
-
success: !0,
|
|
1985
|
-
response: {
|
|
1986
|
-
body: s.data,
|
|
1987
|
-
headers: i
|
|
1988
|
-
}
|
|
1989
|
-
};
|
|
1990
|
-
} catch (o) {
|
|
1991
|
-
const s = o;
|
|
1992
|
-
return {
|
|
1993
|
-
success: !1,
|
|
1994
|
-
error: ((t = (r = s.response) == null ? void 0 : r.data) == null ? void 0 : t.message) ?? "Unknown error",
|
|
1995
|
-
errorType: s.response ? "server" : "network",
|
|
1996
|
-
code: ((n = s.response) == null ? void 0 : n.status) || 0
|
|
1997
|
-
};
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
class mo {
|
|
2001
|
-
constructor(r) {
|
|
2002
|
-
this.parent = r;
|
|
2003
|
-
}
|
|
2004
|
-
async info() {
|
|
2005
|
-
return await P({
|
|
2006
|
-
token: this.parent.string_token,
|
|
2007
|
-
endpoint: "/account/accountInformation",
|
|
2008
|
-
headers: [],
|
|
2009
|
-
method: "GET"
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
class yo {
|
|
2014
|
-
constructor(r) {
|
|
2015
|
-
this.parent = r;
|
|
2016
|
-
}
|
|
2017
|
-
async list({ page: r = 1, limit: t = 10, type: n = "" }) {
|
|
2018
|
-
let o = "/events";
|
|
2019
|
-
const s = [];
|
|
2020
|
-
return r && s.push(`page=${r}`), t && s.push(`per_page=${t}`), n && s.push(`eventType=${n}`), s.length > 0 && (o += `?${s.join("&")}`), await P({
|
|
2021
|
-
token: this.parent.string_token,
|
|
2022
|
-
endpoint: o,
|
|
2023
|
-
headers: ["x-total-count"],
|
|
2024
|
-
method: "GET"
|
|
2025
|
-
});
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
class bo {
|
|
2029
|
-
constructor(r) {
|
|
2030
|
-
this.parent = r;
|
|
2031
|
-
}
|
|
2032
|
-
async getById({
|
|
2033
|
-
id: r
|
|
2034
|
-
}) {
|
|
2035
|
-
return await P(
|
|
2036
|
-
{
|
|
2037
|
-
endpoint: `hooks/${r}`,
|
|
2038
|
-
method: "GET",
|
|
2039
|
-
token: this.parent.string_token
|
|
2040
|
-
}
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
async create({
|
|
2044
|
-
callbackUrl: r,
|
|
2045
|
-
eventType: t,
|
|
2046
|
-
callbackId: n
|
|
2047
|
-
}) {
|
|
2048
|
-
return await P(
|
|
2049
|
-
{
|
|
2050
|
-
endpoint: "/hooks",
|
|
2051
|
-
method: "POST",
|
|
2052
|
-
token: this.parent.string_token,
|
|
2053
|
-
body: {
|
|
2054
|
-
callbackUrl: r,
|
|
2055
|
-
callbackId: n,
|
|
2056
|
-
eventType: t
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
);
|
|
2060
|
-
}
|
|
2061
|
-
async deleteById({ id: r }) {
|
|
2062
|
-
return await P(
|
|
2063
|
-
{
|
|
2064
|
-
endpoint: `hooks/${r}`,
|
|
2065
|
-
method: "DELETE",
|
|
2066
|
-
token: this.parent.string_token
|
|
2067
|
-
}
|
|
2068
|
-
);
|
|
2069
|
-
}
|
|
2070
|
-
async list() {
|
|
2071
|
-
return await P(
|
|
2072
|
-
{
|
|
2073
|
-
token: this.parent.string_token,
|
|
2074
|
-
endpoint: "/hooks",
|
|
2075
|
-
method: "GET"
|
|
2076
|
-
}
|
|
2077
|
-
);
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
class go {
|
|
2081
|
-
constructor(r) {
|
|
2082
|
-
this.parent = r;
|
|
2083
|
-
}
|
|
2084
|
-
async list() {
|
|
2085
|
-
return await P({
|
|
2086
|
-
token: this.parent.string_token,
|
|
2087
|
-
endpoint: "/images",
|
|
2088
|
-
headers: [],
|
|
2089
|
-
method: "GET"
|
|
2090
|
-
});
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
class Eo {
|
|
2094
|
-
constructor(r) {
|
|
2095
|
-
this.parent = r;
|
|
2096
|
-
}
|
|
2097
|
-
async list() {
|
|
2098
|
-
return await P({
|
|
2099
|
-
token: this.parent.string_token,
|
|
2100
|
-
endpoint: "/locations",
|
|
2101
|
-
method: "GET"
|
|
2102
|
-
});
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
class Oo {
|
|
2106
|
-
constructor(r) {
|
|
2107
|
-
this.parent = r;
|
|
2108
|
-
}
|
|
2109
|
-
async list({
|
|
2110
|
-
locationId: r = "dk",
|
|
2111
|
-
profileSlug: t = ""
|
|
2112
|
-
}) {
|
|
2113
|
-
const n = await P({
|
|
2114
|
-
token: this.parent.string_token,
|
|
2115
|
-
endpoint: `/profiles?locationId=${r}&profileSlug=${t}`,
|
|
2116
|
-
method: "GET"
|
|
2117
|
-
});
|
|
2118
|
-
return n.success == !0 && !(n.response.body instanceof Array) && (n.response.body = [n.response.body]), n;
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
class _o {
|
|
2122
|
-
constructor(r) {
|
|
2123
|
-
this.parent = r;
|
|
2124
|
-
}
|
|
2125
|
-
create({ content: r, filename: t, name: n }) {
|
|
2126
|
-
return P(
|
|
2127
|
-
{
|
|
2128
|
-
token: this.parent.string_token,
|
|
2129
|
-
endpoint: "/account/scripts",
|
|
2130
|
-
method: "POST",
|
|
2131
|
-
body: {
|
|
2132
|
-
content: r,
|
|
2133
|
-
filename: t,
|
|
2134
|
-
name: n
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
);
|
|
2138
|
-
}
|
|
2139
|
-
createOnServer({
|
|
2140
|
-
scriptId: r,
|
|
2141
|
-
path: t,
|
|
2142
|
-
makeScriptExecutable: n,
|
|
2143
|
-
executeImmediately: o,
|
|
2144
|
-
serverSlug: s
|
|
2145
|
-
}) {
|
|
2146
|
-
return P(
|
|
2147
|
-
{
|
|
2148
|
-
token: this.parent.string_token,
|
|
2149
|
-
endpoint: `/servers/${s}/scripts`,
|
|
2150
|
-
method: "POST",
|
|
2151
|
-
body: {
|
|
2152
|
-
scriptId: r,
|
|
2153
|
-
path: t,
|
|
2154
|
-
makeScriptExecutable: n,
|
|
2155
|
-
executeImmediately: o
|
|
2156
|
-
},
|
|
2157
|
-
headers: ["x-callback-id"]
|
|
2158
|
-
}
|
|
2159
|
-
);
|
|
2160
|
-
}
|
|
2161
|
-
delete({ id: r }) {
|
|
2162
|
-
return P(
|
|
2163
|
-
{
|
|
2164
|
-
token: this.parent.string_token,
|
|
2165
|
-
endpoint: `/account/scripts/${r}`,
|
|
2166
|
-
method: "DELETE"
|
|
2167
|
-
}
|
|
2168
|
-
);
|
|
2169
|
-
}
|
|
2170
|
-
deleteScriptFromServer({ serverSlug: r, scriptId: t }) {
|
|
2171
|
-
return P(
|
|
2172
|
-
{
|
|
2173
|
-
token: this.parent.string_token,
|
|
2174
|
-
endpoint: `/servers/${r}/scripts/${t}`,
|
|
2175
|
-
method: "DELETE"
|
|
2176
|
-
}
|
|
2177
|
-
);
|
|
2178
|
-
}
|
|
2179
|
-
executeOnServer({ serverSlug: r, scriptID: t }) {
|
|
2180
|
-
return P(
|
|
2181
|
-
{
|
|
2182
|
-
token: this.parent.string_token,
|
|
2183
|
-
endpoint: `/servers/${r}/scripts/${t}/execute`,
|
|
2184
|
-
method: "POST",
|
|
2185
|
-
headers: ["x-callback-id"]
|
|
2186
|
-
}
|
|
2187
|
-
);
|
|
2188
|
-
}
|
|
2189
|
-
getById({ scriptId: r }) {
|
|
2190
|
-
return P(
|
|
2191
|
-
{
|
|
2192
|
-
token: this.parent.string_token,
|
|
2193
|
-
endpoint: `/account/scripts/${r}`,
|
|
2194
|
-
method: "GET"
|
|
2195
|
-
}
|
|
2196
|
-
);
|
|
2197
|
-
}
|
|
2198
|
-
list(r) {
|
|
2199
|
-
return P({
|
|
2200
|
-
token: this.parent.string_token,
|
|
2201
|
-
endpoint: "/account/scripts",
|
|
2202
|
-
method: "GET"
|
|
2203
|
-
});
|
|
2204
|
-
}
|
|
2205
|
-
listOnServer({ serverSlug: r }) {
|
|
2206
|
-
return P(
|
|
2207
|
-
{
|
|
2208
|
-
token: this.parent.string_token,
|
|
2209
|
-
endpoint: `/servers/${r}/scripts`,
|
|
2210
|
-
method: "GET"
|
|
2211
|
-
}
|
|
2212
|
-
);
|
|
2213
|
-
}
|
|
2214
|
-
update({
|
|
2215
|
-
id: r,
|
|
2216
|
-
name: t,
|
|
2217
|
-
filename: n,
|
|
2218
|
-
content: o
|
|
2219
|
-
}) {
|
|
2220
|
-
return P(
|
|
2221
|
-
{
|
|
2222
|
-
token: this.parent.string_token,
|
|
2223
|
-
endpoint: `/account/scripts/${r}`,
|
|
2224
|
-
method: "PATCH",
|
|
2225
|
-
body: {
|
|
2226
|
-
name: t,
|
|
2227
|
-
filename: n,
|
|
2228
|
-
content: o
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
);
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
class To {
|
|
2235
|
-
constructor(r) {
|
|
2236
|
-
this.parent = r;
|
|
2237
|
-
}
|
|
2238
|
-
create({
|
|
2239
|
-
name: r,
|
|
2240
|
-
locationId: t,
|
|
2241
|
-
profileSlug: n,
|
|
2242
|
-
imageSlug: o,
|
|
2243
|
-
virtualization: s,
|
|
2244
|
-
slug: i,
|
|
2245
|
-
snapshotId: a
|
|
2246
|
-
}) {
|
|
2247
|
-
return P(
|
|
2248
|
-
{
|
|
2249
|
-
token: this.parent.string_token,
|
|
2250
|
-
endpoint: "/servers",
|
|
2251
|
-
method: "POST",
|
|
2252
|
-
body: {
|
|
2253
|
-
name: r,
|
|
2254
|
-
locationId: t,
|
|
2255
|
-
profileSlug: n,
|
|
2256
|
-
imageSlug: o,
|
|
2257
|
-
virtualization: s,
|
|
2258
|
-
slug: i,
|
|
2259
|
-
snapshotId: a
|
|
2260
|
-
},
|
|
2261
|
-
headers: ["x-callback-id"]
|
|
2262
|
-
}
|
|
2263
|
-
);
|
|
2264
|
-
}
|
|
2265
|
-
delete({ serverSlug: r }) {
|
|
2266
|
-
return P(
|
|
2267
|
-
{
|
|
2268
|
-
token: this.parent.string_token,
|
|
2269
|
-
endpoint: `/servers/${r}`,
|
|
2270
|
-
method: "DELETE",
|
|
2271
|
-
headers: ["x-callback-id"]
|
|
2272
|
-
}
|
|
2273
|
-
);
|
|
2274
|
-
}
|
|
2275
|
-
fetchFile({
|
|
2276
|
-
path: r,
|
|
2277
|
-
slug: t
|
|
2278
|
-
}) {
|
|
2279
|
-
return P(
|
|
2280
|
-
{
|
|
2281
|
-
endpoint: `servers/${t}/fetchFile`,
|
|
2282
|
-
method: "POST",
|
|
2283
|
-
token: this.parent.string_token,
|
|
2284
|
-
body: {
|
|
2285
|
-
filePath: r
|
|
2286
|
-
},
|
|
2287
|
-
headers: ["x-callback-id"]
|
|
2288
|
-
}
|
|
2289
|
-
);
|
|
2290
|
-
}
|
|
2291
|
-
getBySlug({ serverSlang: r }) {
|
|
2292
|
-
return P({
|
|
2293
|
-
token: this.parent.string_token,
|
|
2294
|
-
endpoint: `/servers/${r}`,
|
|
2295
|
-
method: "GET"
|
|
2296
|
-
});
|
|
2297
|
-
}
|
|
2298
|
-
list() {
|
|
2299
|
-
return P({
|
|
2300
|
-
token: this.parent.string_token,
|
|
2301
|
-
endpoint: "/servers",
|
|
2302
|
-
method: "GET"
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
metrics({ now: r, serverSlug: t }) {
|
|
2306
|
-
return P(
|
|
2307
|
-
{
|
|
2308
|
-
endpoint: `servers/${t}/metrics${r ? "/now" : ""}`,
|
|
2309
|
-
method: "GET",
|
|
2310
|
-
token: this.parent.string_token
|
|
2311
|
-
}
|
|
2312
|
-
);
|
|
2313
|
-
}
|
|
2314
|
-
reboot({
|
|
2315
|
-
serverSlug: r
|
|
2316
|
-
}) {
|
|
2317
|
-
return P(
|
|
2318
|
-
{
|
|
2319
|
-
token: this.parent.string_token,
|
|
2320
|
-
endpoint: `/servers/${r}/actions/reboot`,
|
|
2321
|
-
method: "POST",
|
|
2322
|
-
headers: ["x-callback-id"]
|
|
2323
|
-
}
|
|
2324
|
-
);
|
|
2325
|
-
}
|
|
2326
|
-
reinstall({ imageSlug: r, serverSlug: t }) {
|
|
2327
|
-
return P(
|
|
2328
|
-
{
|
|
2329
|
-
token: this.parent.string_token,
|
|
2330
|
-
endpoint: `/servers/${t}/actions/reinstall`,
|
|
2331
|
-
method: "POST",
|
|
2332
|
-
body: {
|
|
2333
|
-
imageSlug: r
|
|
2334
|
-
},
|
|
2335
|
-
headers: ["x-callback-id"]
|
|
2336
|
-
}
|
|
2337
|
-
);
|
|
2338
|
-
}
|
|
2339
|
-
resize({ serverSlug: r, profileSlug: t }) {
|
|
2340
|
-
return P({
|
|
2341
|
-
token: this.parent.string_token,
|
|
2342
|
-
endpoint: `/servers/${r}/actions/resize`,
|
|
2343
|
-
method: "POST",
|
|
2344
|
-
body: { profileSlug: t },
|
|
2345
|
-
headers: ["x-callback-id"]
|
|
2346
|
-
});
|
|
2347
|
-
}
|
|
2348
|
-
resizeDryRun({ serverSlug: r, profileSlug: t }) {
|
|
2349
|
-
return P({
|
|
2350
|
-
token: this.parent.string_token,
|
|
2351
|
-
endpoint: `/servers/${r}/actions/resize/dryrun`,
|
|
2352
|
-
method: "POST",
|
|
2353
|
-
body: { profileSlug: t }
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
start({ serverSlug: r }) {
|
|
2357
|
-
return P({
|
|
2358
|
-
token: this.parent.string_token,
|
|
2359
|
-
endpoint: `/servers/${r}/actions/start`,
|
|
2360
|
-
method: "POST",
|
|
2361
|
-
headers: ["x-callback-id"]
|
|
2362
|
-
});
|
|
2363
|
-
}
|
|
2364
|
-
stop({ serverSlug: r }) {
|
|
2365
|
-
return P({
|
|
2366
|
-
token: this.parent.string_token,
|
|
2367
|
-
endpoint: `/servers/${r}/actions/stop`,
|
|
2368
|
-
method: "POST",
|
|
2369
|
-
headers: ["x-callback-id"]
|
|
2370
|
-
});
|
|
2371
|
-
}
|
|
2372
|
-
archive({ serverSlug: r }) {
|
|
2373
|
-
return P({
|
|
2374
|
-
token: this.parent.string_token,
|
|
2375
|
-
endpoint: `/servers/${r}/actions/suspend`,
|
|
2376
|
-
method: "POST",
|
|
2377
|
-
headers: ["x-callback-id"]
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
update({ serverSlug: r, nextActionDate: t, name: n, description: o, notes: s }) {
|
|
2381
|
-
return P({
|
|
2382
|
-
token: this.parent.string_token,
|
|
2383
|
-
endpoint: `/servers/${r}`,
|
|
2384
|
-
method: "PATCH",
|
|
2385
|
-
body: { nextActionDate: t, name: n, description: o, notes: s }
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
}
|
|
2389
|
-
class Po {
|
|
2390
|
-
constructor(r) {
|
|
2391
|
-
this.parent = r;
|
|
2392
|
-
}
|
|
2393
|
-
create({ serverSlug: r, username: t, password: n, group: o, shell: s, publicKeys: i }) {
|
|
2394
|
-
return P({
|
|
2395
|
-
token: this.parent.string_token,
|
|
2396
|
-
endpoint: `servers/${r}/shellUsers`,
|
|
2397
|
-
method: "POST",
|
|
2398
|
-
body: {
|
|
2399
|
-
username: t,
|
|
2400
|
-
password: n,
|
|
2401
|
-
group: o,
|
|
2402
|
-
shell: s,
|
|
2403
|
-
publicKeys: i ?? []
|
|
2404
|
-
},
|
|
2405
|
-
headers: ["x-callback-id"]
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
delete({ serverSlug: r, userId: t }) {
|
|
2409
|
-
return P({
|
|
2410
|
-
token: this.parent.string_token,
|
|
2411
|
-
endpoint: `servers/${r}/shellUsers/${t}`,
|
|
2412
|
-
method: "DELETE",
|
|
2413
|
-
headers: ["x-callback-id"]
|
|
2414
|
-
});
|
|
2415
|
-
}
|
|
2416
|
-
list({ serverSlug: r }) {
|
|
2417
|
-
return P({
|
|
2418
|
-
token: this.parent.string_token,
|
|
2419
|
-
endpoint: `/servers/${r}/shellUsers`,
|
|
2420
|
-
method: "GET"
|
|
2421
|
-
});
|
|
2422
|
-
}
|
|
2423
|
-
edit({ slug: r, id: t, keys: n }) {
|
|
2424
|
-
return P({
|
|
2425
|
-
endpoint: `servers/${r}/shellUsers/${t}`,
|
|
2426
|
-
method: "PATCH",
|
|
2427
|
-
body: {
|
|
2428
|
-
publicKeys: n
|
|
2429
|
-
},
|
|
2430
|
-
headers: ["x-callback-id"],
|
|
2431
|
-
token: this.parent.string_token
|
|
2432
|
-
});
|
|
2433
|
-
}
|
|
2434
|
-
websshToken({ serverSlug: r, username: t }) {
|
|
2435
|
-
return P(
|
|
2436
|
-
{
|
|
2437
|
-
endpoint: `servers/${r}/shellUsers/WebsshToken`,
|
|
2438
|
-
method: "POST",
|
|
2439
|
-
token: this.parent.string_token,
|
|
2440
|
-
body: {
|
|
2441
|
-
username: t
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
);
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2447
|
-
class wo {
|
|
2448
|
-
constructor(r) {
|
|
2449
|
-
this.parent = r;
|
|
2450
|
-
}
|
|
2451
|
-
create({ name: r, publicKey: t }) {
|
|
2452
|
-
return P({
|
|
2453
|
-
token: this.parent.string_token,
|
|
2454
|
-
endpoint: "/account/publicKeys",
|
|
2455
|
-
method: "POST",
|
|
2456
|
-
body: {
|
|
2457
|
-
name: r,
|
|
2458
|
-
publicKey: t
|
|
2459
|
-
}
|
|
2460
|
-
});
|
|
2461
|
-
}
|
|
2462
|
-
delete({ id: r }) {
|
|
2463
|
-
return P({
|
|
2464
|
-
token: this.parent.string_token,
|
|
2465
|
-
endpoint: `/account/publicKeys/${r}`,
|
|
2466
|
-
method: "DELETE"
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
list() {
|
|
2470
|
-
return P({
|
|
2471
|
-
token: this.parent.string_token,
|
|
2472
|
-
endpoint: "/account/publicKeys",
|
|
2473
|
-
method: "GET"
|
|
2474
|
-
});
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
class Ao {
|
|
2478
|
-
constructor(r) {
|
|
2479
|
-
this.parent = r;
|
|
2480
|
-
}
|
|
2481
|
-
create({
|
|
2482
|
-
serverSlug: r,
|
|
2483
|
-
name: t
|
|
2484
|
-
}) {
|
|
2485
|
-
return P({
|
|
2486
|
-
token: this.parent.string_token,
|
|
2487
|
-
endpoint: `/servers/${r}/snapshots`,
|
|
2488
|
-
method: "POST",
|
|
2489
|
-
body: {
|
|
2490
|
-
name: t
|
|
2491
|
-
},
|
|
2492
|
-
headers: ["x-callback-id"]
|
|
2493
|
-
});
|
|
2494
|
-
}
|
|
2495
|
-
list({
|
|
2496
|
-
serverSlug: r
|
|
2497
|
-
}) {
|
|
2498
|
-
return P({
|
|
2499
|
-
token: this.parent.string_token,
|
|
2500
|
-
endpoint: `/servers/${r}/snapshots`,
|
|
2501
|
-
method: "GET"
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
delete({
|
|
2505
|
-
serverSlug: r,
|
|
2506
|
-
snapshotId: t
|
|
2507
|
-
}) {
|
|
2508
|
-
return P({
|
|
2509
|
-
token: this.parent.string_token,
|
|
2510
|
-
endpoint: `/servers/${r}/snapshots/${t}`,
|
|
2511
|
-
method: "DELETE",
|
|
2512
|
-
headers: ["x-callback-id"]
|
|
2513
|
-
});
|
|
2514
|
-
}
|
|
2515
|
-
restore({
|
|
2516
|
-
serverSlug: r,
|
|
2517
|
-
snapshotId: t
|
|
2518
|
-
}) {
|
|
2519
|
-
return P({
|
|
2520
|
-
token: this.parent.string_token,
|
|
2521
|
-
endpoint: `/servers/${r}/actions/restore`,
|
|
2522
|
-
method: "POST",
|
|
2523
|
-
headers: ["x-callback-id"],
|
|
2524
|
-
body: {
|
|
2525
|
-
snapshotId: t
|
|
2526
|
-
}
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
var Ke = {}, te = {}, wr;
|
|
2531
|
-
function wt() {
|
|
2532
|
-
if (wr) return te;
|
|
2533
|
-
wr = 1;
|
|
2534
|
-
var e = te && te.__extends || /* @__PURE__ */ (function() {
|
|
2535
|
-
var t = function(n, o) {
|
|
2536
|
-
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, i) {
|
|
2537
|
-
s.__proto__ = i;
|
|
2538
|
-
} || function(s, i) {
|
|
2539
|
-
for (var a in i) Object.prototype.hasOwnProperty.call(i, a) && (s[a] = i[a]);
|
|
2540
|
-
}, t(n, o);
|
|
2541
|
-
};
|
|
2542
|
-
return function(n, o) {
|
|
2543
|
-
if (typeof o != "function" && o !== null)
|
|
2544
|
-
throw new TypeError("Class extends value " + String(o) + " is not a constructor or null");
|
|
2545
|
-
t(n, o);
|
|
2546
|
-
function s() {
|
|
2547
|
-
this.constructor = n;
|
|
2548
|
-
}
|
|
2549
|
-
n.prototype = o === null ? Object.create(o) : (s.prototype = o.prototype, new s());
|
|
2550
|
-
};
|
|
2551
|
-
})();
|
|
2552
|
-
Object.defineProperty(te, "__esModule", { value: !0 }), te.ApiError = void 0;
|
|
2553
|
-
var r = (
|
|
2554
|
-
/** @class */
|
|
2555
|
-
(function(t) {
|
|
2556
|
-
e(n, t);
|
|
2557
|
-
function n(o, s, i) {
|
|
2558
|
-
var a = t.call(this, i) || this;
|
|
2559
|
-
return a.name = "ApiError", a.url = s.url, a.status = s.status, a.statusText = s.statusText, a.body = s.body, a.request = o, a;
|
|
2560
|
-
}
|
|
2561
|
-
return n;
|
|
2562
|
-
})(Error)
|
|
2563
|
-
);
|
|
2564
|
-
return te.ApiError = r, te;
|
|
2565
|
-
}
|
|
2566
|
-
var Z = {}, Ar;
|
|
2567
|
-
function At() {
|
|
2568
|
-
if (Ar) return Z;
|
|
2569
|
-
Ar = 1;
|
|
2570
|
-
var e = Z && Z.__extends || /* @__PURE__ */ (function() {
|
|
2571
|
-
var n = function(o, s) {
|
|
2572
|
-
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, a) {
|
|
2573
|
-
i.__proto__ = a;
|
|
2574
|
-
} || function(i, a) {
|
|
2575
|
-
for (var m in a) Object.prototype.hasOwnProperty.call(a, m) && (i[m] = a[m]);
|
|
2576
|
-
}, n(o, s);
|
|
2577
|
-
};
|
|
2578
|
-
return function(o, s) {
|
|
2579
|
-
if (typeof s != "function" && s !== null)
|
|
2580
|
-
throw new TypeError("Class extends value " + String(s) + " is not a constructor or null");
|
|
2581
|
-
n(o, s);
|
|
2582
|
-
function i() {
|
|
2583
|
-
this.constructor = o;
|
|
2584
|
-
}
|
|
2585
|
-
o.prototype = s === null ? Object.create(s) : (i.prototype = s.prototype, new i());
|
|
2586
|
-
};
|
|
2587
|
-
})();
|
|
2588
|
-
Object.defineProperty(Z, "__esModule", { value: !0 }), Z.CancelablePromise = Z.CancelError = void 0;
|
|
2589
|
-
var r = (
|
|
2590
|
-
/** @class */
|
|
2591
|
-
(function(n) {
|
|
2592
|
-
e(o, n);
|
|
2593
|
-
function o(s) {
|
|
2594
|
-
var i = n.call(this, s) || this;
|
|
2595
|
-
return i.name = "CancelError", i;
|
|
2596
|
-
}
|
|
2597
|
-
return Object.defineProperty(o.prototype, "isCancelled", {
|
|
2598
|
-
get: function() {
|
|
2599
|
-
return !0;
|
|
2600
|
-
},
|
|
2601
|
-
enumerable: !1,
|
|
2602
|
-
configurable: !0
|
|
2603
|
-
}), o;
|
|
2604
|
-
})(Error)
|
|
2605
|
-
);
|
|
2606
|
-
Z.CancelError = r;
|
|
2607
|
-
var t = (
|
|
2608
|
-
/** @class */
|
|
2609
|
-
(function() {
|
|
2610
|
-
function n(o) {
|
|
2611
|
-
var s = this;
|
|
2612
|
-
this._isResolved = !1, this._isRejected = !1, this._isCancelled = !1, this._cancelHandlers = [], this._promise = new Promise(function(i, a) {
|
|
2613
|
-
s._resolve = i, s._reject = a;
|
|
2614
|
-
var m = function(b) {
|
|
2615
|
-
var w;
|
|
2616
|
-
s._isResolved || s._isRejected || s._isCancelled || (s._isResolved = !0, (w = s._resolve) === null || w === void 0 || w.call(s, b));
|
|
2617
|
-
}, p = function(b) {
|
|
2618
|
-
var w;
|
|
2619
|
-
s._isResolved || s._isRejected || s._isCancelled || (s._isRejected = !0, (w = s._reject) === null || w === void 0 || w.call(s, b));
|
|
2620
|
-
}, f = function(b) {
|
|
2621
|
-
s._isResolved || s._isRejected || s._isCancelled || s._cancelHandlers.push(b);
|
|
2622
|
-
};
|
|
2623
|
-
return Object.defineProperty(f, "isResolved", {
|
|
2624
|
-
get: function() {
|
|
2625
|
-
return s._isResolved;
|
|
2626
|
-
}
|
|
2627
|
-
}), Object.defineProperty(f, "isRejected", {
|
|
2628
|
-
get: function() {
|
|
2629
|
-
return s._isRejected;
|
|
2630
|
-
}
|
|
2631
|
-
}), Object.defineProperty(f, "isCancelled", {
|
|
2632
|
-
get: function() {
|
|
2633
|
-
return s._isCancelled;
|
|
2634
|
-
}
|
|
2635
|
-
}), o(m, p, f);
|
|
2636
|
-
});
|
|
2637
|
-
}
|
|
2638
|
-
return n.prototype.then = function(o, s) {
|
|
2639
|
-
return this._promise.then(o, s);
|
|
2640
|
-
}, n.prototype.catch = function(o) {
|
|
2641
|
-
return this._promise.catch(o);
|
|
2642
|
-
}, n.prototype.finally = function(o) {
|
|
2643
|
-
return this._promise.finally(o);
|
|
2644
|
-
}, n.prototype.cancel = function() {
|
|
2645
|
-
var o;
|
|
2646
|
-
if (!(this._isResolved || this._isRejected || this._isCancelled)) {
|
|
2647
|
-
if (this._isCancelled = !0, this._cancelHandlers.length)
|
|
2648
|
-
try {
|
|
2649
|
-
for (var s = 0, i = this._cancelHandlers; s < i.length; s++) {
|
|
2650
|
-
var a = i[s];
|
|
2651
|
-
a();
|
|
2652
|
-
}
|
|
2653
|
-
} catch (m) {
|
|
2654
|
-
console.warn("Cancellation threw an error", m);
|
|
2655
|
-
return;
|
|
2656
|
-
}
|
|
2657
|
-
this._cancelHandlers.length = 0, (o = this._reject) === null || o === void 0 || o.call(this, new r("Request aborted"));
|
|
2658
|
-
}
|
|
2659
|
-
}, Object.defineProperty(n.prototype, "isCancelled", {
|
|
2660
|
-
get: function() {
|
|
2661
|
-
return this._isCancelled;
|
|
2662
|
-
},
|
|
2663
|
-
enumerable: !1,
|
|
2664
|
-
configurable: !0
|
|
2665
|
-
}), n;
|
|
2666
|
-
})()
|
|
2667
|
-
);
|
|
2668
|
-
return Z.CancelablePromise = t, Z;
|
|
2669
|
-
}
|
|
2670
|
-
var le = {}, Rr;
|
|
2671
|
-
function x() {
|
|
2672
|
-
return Rr || (Rr = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.OpenAPI = void 0, le.OpenAPI = {
|
|
2673
|
-
BASE: "https://api.webdock.io/v1",
|
|
2674
|
-
VERSION: "1.0.1",
|
|
2675
|
-
WITH_CREDENTIALS: !1,
|
|
2676
|
-
CREDENTIALS: "include",
|
|
2677
|
-
TOKEN: void 0,
|
|
2678
|
-
USERNAME: void 0,
|
|
2679
|
-
PASSWORD: void 0,
|
|
2680
|
-
HEADERS: void 0,
|
|
2681
|
-
ENCODE_PATH: void 0
|
|
2682
|
-
}), le;
|
|
2683
|
-
}
|
|
2684
|
-
var ze = {}, kr;
|
|
2685
|
-
function Ro() {
|
|
2686
|
-
return kr || (kr = 1, (function(e) {
|
|
2687
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.CreateEventHookModelDTO = void 0, (function(r) {
|
|
2688
|
-
(function(t) {
|
|
2689
|
-
t.PROVISION = "provision", t.RESTORE_SERVER = "restore-server", t.CHANGE_PROFILE = "change-profile", t.SET_STATE = "set-state", t.DELETE = "delete", t.BACKUP = "backup", t.SET_HOSTNAMES = "set-hostnames", t.UPDATE_WEBROOT = "update-webroot", t.SETUP_SSL = "setup-ssl", t.INSTALL_WORDPRESS = "install-wordpress", t.MANAGE_WORDPRESS = "manage-wordpress", t.MANAGE_SHELLUSER = "manage-shelluser", t.MANAGE_KEYS = "manage-keys", t.TOGGLE_PASSWORDAUTH = "toggle-passwordauth", t.MANAGE_MYSQL = "manage-mysql", t.MANAGE_DBUSER = "manage-dbuser", t.MANAGE_FTPUSER = "manage-ftpuser", t.SET_PHP_SETTINGS = "set-php-settings", t.CRONJOB = "cronjob", t.PULL_FILE = "pull-file", t.PUSH_FILE = "push-file", t.DELETE_FILE = "delete-file", t.EXECUTE_FILE = "execute-file";
|
|
2690
|
-
})(r.eventType || (r.eventType = {}));
|
|
2691
|
-
})(e.CreateEventHookModelDTO || (e.CreateEventHookModelDTO = {}));
|
|
2692
|
-
})(ze)), ze;
|
|
2693
|
-
}
|
|
2694
|
-
var We = {}, Ir;
|
|
2695
|
-
function ko() {
|
|
2696
|
-
return Ir || (Ir = 1, (function(e) {
|
|
2697
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.EventLogDTO = void 0, (function(r) {
|
|
2698
|
-
(function(t) {
|
|
2699
|
-
t.WAITING = "waiting", t.WORKING = "working", t.FINISHED = "finished", t.ERROR = "error";
|
|
2700
|
-
})(r.status || (r.status = {}));
|
|
2701
|
-
})(e.EventLogDTO || (e.EventLogDTO = {}));
|
|
2702
|
-
})(We)), We;
|
|
2703
|
-
}
|
|
2704
|
-
var Je = {}, Cr;
|
|
2705
|
-
function Io() {
|
|
2706
|
-
return Cr || (Cr = 1, (function(e) {
|
|
2707
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.Ping = void 0, (function(r) {
|
|
2708
|
-
(function(t) {
|
|
2709
|
-
t.ROCKS = "rocks";
|
|
2710
|
-
})(r.webdock || (r.webdock = {}));
|
|
2711
|
-
})(e.Ping || (e.Ping = {}));
|
|
2712
|
-
})(Je)), Je;
|
|
2713
|
-
}
|
|
2714
|
-
var Xe = {}, Dr;
|
|
2715
|
-
function Co() {
|
|
2716
|
-
return Dr || (Dr = 1, (function(e) {
|
|
2717
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.PostServerModelDTO = void 0, (function(r) {
|
|
2718
|
-
(function(t) {
|
|
2719
|
-
t.CONTAINER = "container", t.KVM = "kvm";
|
|
2720
|
-
})(r.virtualization || (r.virtualization = {}));
|
|
2721
|
-
})(e.PostServerModelDTO || (e.PostServerModelDTO = {}));
|
|
2722
|
-
})(Xe)), Xe;
|
|
2723
|
-
}
|
|
2724
|
-
var Ye = {}, qr;
|
|
2725
|
-
function Do() {
|
|
2726
|
-
return qr || (qr = 1, (function(e) {
|
|
2727
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.PriceDTO = void 0, (function(r) {
|
|
2728
|
-
(function(t) {
|
|
2729
|
-
t.EUR = "EUR", t.DKK = "DKK", t.USD = "USD";
|
|
2730
|
-
})(r.currency || (r.currency = {}));
|
|
2731
|
-
})(e.PriceDTO || (e.PriceDTO = {}));
|
|
2732
|
-
})(Ye)), Ye;
|
|
2733
|
-
}
|
|
2734
|
-
var Qe = {}, Nr;
|
|
2735
|
-
function qo() {
|
|
2736
|
-
return Nr || (Nr = 1, (function(e) {
|
|
2737
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ServerDTO = void 0, (function(r) {
|
|
2738
|
-
(function(t) {
|
|
2739
|
-
t.PROVISIONING = "provisioning", t.RUNNING = "running", t.STOPPED = "stopped", t.ERROR = "error", t.REBOOTING = "rebooting", t.STARTING = "starting", t.STOPPING = "stopping", t.REINSTALLING = "reinstalling";
|
|
2740
|
-
})(r.status || (r.status = {})), (function(t) {
|
|
2741
|
-
t.CONTAINER = "container", t.KVM = "kvm";
|
|
2742
|
-
})(r.virtualization || (r.virtualization = {})), (function(t) {
|
|
2743
|
-
t.APACHE = "Apache", t.NGINX = "Nginx", t.NONE = "None";
|
|
2744
|
-
})(r.webServer || (r.webServer = {}));
|
|
2745
|
-
})(e.ServerDTO || (e.ServerDTO = {}));
|
|
2746
|
-
})(Qe)), Qe;
|
|
2747
|
-
}
|
|
2748
|
-
var Ze = {}, jr;
|
|
2749
|
-
function No() {
|
|
2750
|
-
return jr || (jr = 1, (function(e) {
|
|
2751
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ServerImageDTO = void 0, (function(r) {
|
|
2752
|
-
(function(t) {
|
|
2753
|
-
t.APACHE = "Apache", t.NGINX = "Nginx";
|
|
2754
|
-
})(r.webServer || (r.webServer = {}));
|
|
2755
|
-
})(e.ServerImageDTO || (e.ServerImageDTO = {}));
|
|
2756
|
-
})(Ze)), Ze;
|
|
2757
|
-
}
|
|
2758
|
-
var er = {}, Ur;
|
|
2759
|
-
function jo() {
|
|
2760
|
-
return Ur || (Ur = 1, (function(e) {
|
|
2761
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.SnapshotDTO = void 0, (function(r) {
|
|
2762
|
-
(function(t) {
|
|
2763
|
-
t.DAILY = "daily", t.WEEKLY = "weekly", t.MONTHLY = "monthly";
|
|
2764
|
-
})(r.type || (r.type = {})), (function(t) {
|
|
2765
|
-
t.CONTAINER = "container", t.KVM = "kvm";
|
|
2766
|
-
})(r.virtualization || (r.virtualization = {}));
|
|
2767
|
-
})(e.SnapshotDTO || (e.SnapshotDTO = {}));
|
|
2768
|
-
})(er)), er;
|
|
2769
|
-
}
|
|
2770
|
-
var de = {}, $ = {}, rr, Lr;
|
|
2771
|
-
function Uo() {
|
|
2772
|
-
return Lr || (Lr = 1, rr = typeof self == "object" ? self.FormData : window.FormData), rr;
|
|
2773
|
-
}
|
|
2774
|
-
var Ce = { exports: {} }, Fr;
|
|
2775
|
-
function Lo() {
|
|
2776
|
-
return Fr || (Fr = 1, (function(e, r) {
|
|
2777
|
-
var t = function() {
|
|
2778
|
-
if (typeof self < "u")
|
|
2779
|
-
return self;
|
|
2780
|
-
if (typeof window < "u")
|
|
2781
|
-
return window;
|
|
2782
|
-
if (typeof dr < "u")
|
|
2783
|
-
return dr;
|
|
2784
|
-
throw new Error("unable to locate global object");
|
|
2785
|
-
}, n = t();
|
|
2786
|
-
e.exports = r = n.fetch, n.fetch && (r.default = n.fetch.bind(n)), r.Headers = n.Headers, r.Request = n.Request, r.Response = n.Response;
|
|
2787
|
-
})(Ce, Ce.exports)), Ce.exports;
|
|
2788
|
-
}
|
|
2789
|
-
var Br;
|
|
2790
|
-
function z() {
|
|
2791
|
-
return Br || (Br = 1, (function(e) {
|
|
2792
|
-
var r = $ && $.__assign || function() {
|
|
2793
|
-
return r = Object.assign || function(u) {
|
|
2794
|
-
for (var l, h = 1, y = arguments.length; h < y; h++) {
|
|
2795
|
-
l = arguments[h];
|
|
2796
|
-
for (var d in l) Object.prototype.hasOwnProperty.call(l, d) && (u[d] = l[d]);
|
|
2797
|
-
}
|
|
2798
|
-
return u;
|
|
2799
|
-
}, r.apply(this, arguments);
|
|
2800
|
-
}, t = $ && $.__createBinding || (Object.create ? (function(u, l, h, y) {
|
|
2801
|
-
y === void 0 && (y = h);
|
|
2802
|
-
var d = Object.getOwnPropertyDescriptor(l, h);
|
|
2803
|
-
(!d || ("get" in d ? !l.__esModule : d.writable || d.configurable)) && (d = { enumerable: !0, get: function() {
|
|
2804
|
-
return l[h];
|
|
2805
|
-
} }), Object.defineProperty(u, y, d);
|
|
2806
|
-
}) : (function(u, l, h, y) {
|
|
2807
|
-
y === void 0 && (y = h), u[y] = l[h];
|
|
2808
|
-
})), n = $ && $.__setModuleDefault || (Object.create ? (function(u, l) {
|
|
2809
|
-
Object.defineProperty(u, "default", { enumerable: !0, value: l });
|
|
2810
|
-
}) : function(u, l) {
|
|
2811
|
-
u.default = l;
|
|
2812
|
-
}), o = $ && $.__importStar || function(u) {
|
|
2813
|
-
if (u && u.__esModule) return u;
|
|
2814
|
-
var l = {};
|
|
2815
|
-
if (u != null) for (var h in u) h !== "default" && Object.prototype.hasOwnProperty.call(u, h) && t(l, u, h);
|
|
2816
|
-
return n(l, u), l;
|
|
2817
|
-
}, s = $ && $.__awaiter || function(u, l, h, y) {
|
|
2818
|
-
function d(S) {
|
|
2819
|
-
return S instanceof h ? S : new h(function(T) {
|
|
2820
|
-
T(S);
|
|
2821
|
-
});
|
|
2822
|
-
}
|
|
2823
|
-
return new (h || (h = Promise))(function(S, T) {
|
|
2824
|
-
function N(U) {
|
|
2825
|
-
try {
|
|
2826
|
-
O(y.next(U));
|
|
2827
|
-
} catch (B) {
|
|
2828
|
-
T(B);
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
function k(U) {
|
|
2832
|
-
try {
|
|
2833
|
-
O(y.throw(U));
|
|
2834
|
-
} catch (B) {
|
|
2835
|
-
T(B);
|
|
2836
|
-
}
|
|
2837
|
-
}
|
|
2838
|
-
function O(U) {
|
|
2839
|
-
U.done ? S(U.value) : d(U.value).then(N, k);
|
|
2840
|
-
}
|
|
2841
|
-
O((y = y.apply(u, l || [])).next());
|
|
2842
|
-
});
|
|
2843
|
-
}, i = $ && $.__generator || function(u, l) {
|
|
2844
|
-
var h = { label: 0, sent: function() {
|
|
2845
|
-
if (S[0] & 1) throw S[1];
|
|
2846
|
-
return S[1];
|
|
2847
|
-
}, trys: [], ops: [] }, y, d, S, T;
|
|
2848
|
-
return T = { next: N(0), throw: N(1), return: N(2) }, typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
|
2849
|
-
return this;
|
|
2850
|
-
}), T;
|
|
2851
|
-
function N(O) {
|
|
2852
|
-
return function(U) {
|
|
2853
|
-
return k([O, U]);
|
|
2854
|
-
};
|
|
2855
|
-
}
|
|
2856
|
-
function k(O) {
|
|
2857
|
-
if (y) throw new TypeError("Generator is already executing.");
|
|
2858
|
-
for (; T && (T = 0, O[0] && (h = 0)), h; ) try {
|
|
2859
|
-
if (y = 1, d && (S = O[0] & 2 ? d.return : O[0] ? d.throw || ((S = d.return) && S.call(d), 0) : d.next) && !(S = S.call(d, O[1])).done) return S;
|
|
2860
|
-
switch (d = 0, S && (O = [O[0] & 2, S.value]), O[0]) {
|
|
2861
|
-
case 0:
|
|
2862
|
-
case 1:
|
|
2863
|
-
S = O;
|
|
2864
|
-
break;
|
|
2865
|
-
case 4:
|
|
2866
|
-
return h.label++, { value: O[1], done: !1 };
|
|
2867
|
-
case 5:
|
|
2868
|
-
h.label++, d = O[1], O = [0];
|
|
2869
|
-
continue;
|
|
2870
|
-
case 7:
|
|
2871
|
-
O = h.ops.pop(), h.trys.pop();
|
|
2872
|
-
continue;
|
|
2873
|
-
default:
|
|
2874
|
-
if (S = h.trys, !(S = S.length > 0 && S[S.length - 1]) && (O[0] === 6 || O[0] === 2)) {
|
|
2875
|
-
h = 0;
|
|
2876
|
-
continue;
|
|
2877
|
-
}
|
|
2878
|
-
if (O[0] === 3 && (!S || O[1] > S[0] && O[1] < S[3])) {
|
|
2879
|
-
h.label = O[1];
|
|
2880
|
-
break;
|
|
2881
|
-
}
|
|
2882
|
-
if (O[0] === 6 && h.label < S[1]) {
|
|
2883
|
-
h.label = S[1], S = O;
|
|
2884
|
-
break;
|
|
2885
|
-
}
|
|
2886
|
-
if (S && h.label < S[2]) {
|
|
2887
|
-
h.label = S[2], h.ops.push(O);
|
|
2888
|
-
break;
|
|
2889
|
-
}
|
|
2890
|
-
S[2] && h.ops.pop(), h.trys.pop();
|
|
2891
|
-
continue;
|
|
2892
|
-
}
|
|
2893
|
-
O = l.call(u, h);
|
|
2894
|
-
} catch (U) {
|
|
2895
|
-
O = [6, U], d = 0;
|
|
2896
|
-
} finally {
|
|
2897
|
-
y = S = 0;
|
|
2898
|
-
}
|
|
2899
|
-
if (O[0] & 5) throw O[1];
|
|
2900
|
-
return { value: O[0] ? O[1] : void 0, done: !0 };
|
|
2901
|
-
}
|
|
2902
|
-
}, a = $ && $.__importDefault || function(u) {
|
|
2903
|
-
return u && u.__esModule ? u : { default: u };
|
|
2904
|
-
};
|
|
2905
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.request = e.sendRequest = void 0;
|
|
2906
|
-
var m = a(Uo()), p = o(Lo()), f = wt(), b = At(), w = function(u) {
|
|
2907
|
-
return u != null;
|
|
2908
|
-
}, I = function(u) {
|
|
2909
|
-
return typeof u == "string";
|
|
2910
|
-
}, g = function(u) {
|
|
2911
|
-
return I(u) && u !== "";
|
|
2912
|
-
}, _ = function(u) {
|
|
2913
|
-
return typeof u == "object" && typeof u.type == "string" && typeof u.stream == "function" && typeof u.arrayBuffer == "function" && typeof u.constructor == "function" && typeof u.constructor.name == "string" && /^(Blob|File)$/.test(u.constructor.name) && /^(Blob|File)$/.test(u[Symbol.toStringTag]);
|
|
2914
|
-
}, E = function(u) {
|
|
2915
|
-
return u instanceof m.default;
|
|
2916
|
-
}, C = function(u) {
|
|
2917
|
-
try {
|
|
2918
|
-
return btoa(u);
|
|
2919
|
-
} catch {
|
|
2920
|
-
return Buffer.from(u).toString("base64");
|
|
2921
|
-
}
|
|
2922
|
-
}, D = function(u) {
|
|
2923
|
-
var l = [], h = function(d, S) {
|
|
2924
|
-
l.push("".concat(encodeURIComponent(d), "=").concat(encodeURIComponent(String(S))));
|
|
2925
|
-
}, y = function(d, S) {
|
|
2926
|
-
w(S) && (Array.isArray(S) ? S.forEach(function(T) {
|
|
2927
|
-
y(d, T);
|
|
2928
|
-
}) : typeof S == "object" ? Object.entries(S).forEach(function(T) {
|
|
2929
|
-
var N = T[0], k = T[1];
|
|
2930
|
-
y("".concat(d, "[").concat(N, "]"), k);
|
|
2931
|
-
}) : h(d, S));
|
|
2932
|
-
};
|
|
2933
|
-
return Object.entries(u).forEach(function(d) {
|
|
2934
|
-
var S = d[0], T = d[1];
|
|
2935
|
-
y(S, T);
|
|
2936
|
-
}), l.length > 0 ? "?".concat(l.join("&")) : "";
|
|
2937
|
-
}, q = function(u, l) {
|
|
2938
|
-
var h = u.ENCODE_PATH || encodeURI, y = l.url.replace("{api-version}", u.VERSION).replace(/{(.*?)}/g, function(S, T) {
|
|
2939
|
-
var N;
|
|
2940
|
-
return !((N = l.path) === null || N === void 0) && N.hasOwnProperty(T) ? h(String(l.path[T])) : S;
|
|
2941
|
-
}), d = "".concat(u.BASE).concat(y);
|
|
2942
|
-
return l.query ? "".concat(d).concat(D(l.query)) : d;
|
|
2943
|
-
}, M = function(u) {
|
|
2944
|
-
if (u.formData) {
|
|
2945
|
-
var l = new m.default(), h = function(y, d) {
|
|
2946
|
-
I(d) || _(d) ? l.append(y, d) : l.append(y, JSON.stringify(d));
|
|
2947
|
-
};
|
|
2948
|
-
return Object.entries(u.formData).filter(function(y) {
|
|
2949
|
-
y[0];
|
|
2950
|
-
var d = y[1];
|
|
2951
|
-
return w(d);
|
|
2952
|
-
}).forEach(function(y) {
|
|
2953
|
-
var d = y[0], S = y[1];
|
|
2954
|
-
Array.isArray(S) ? S.forEach(function(T) {
|
|
2955
|
-
return h(d, T);
|
|
2956
|
-
}) : h(d, S);
|
|
2957
|
-
}), l;
|
|
2958
|
-
}
|
|
2959
|
-
}, j = function(u, l) {
|
|
2960
|
-
return s(void 0, void 0, void 0, function() {
|
|
2961
|
-
return i(this, function(h) {
|
|
2962
|
-
return typeof l == "function" ? [2, l(u)] : [2, l];
|
|
2963
|
-
});
|
|
2964
|
-
});
|
|
2965
|
-
}, G = function(u, l) {
|
|
2966
|
-
return s(void 0, void 0, void 0, function() {
|
|
2967
|
-
var h, y, d, S, T, N;
|
|
2968
|
-
return i(this, function(k) {
|
|
2969
|
-
switch (k.label) {
|
|
2970
|
-
case 0:
|
|
2971
|
-
return [4, j(l, u.TOKEN)];
|
|
2972
|
-
case 1:
|
|
2973
|
-
return h = k.sent(), [4, j(l, u.USERNAME)];
|
|
2974
|
-
case 2:
|
|
2975
|
-
return y = k.sent(), [4, j(l, u.PASSWORD)];
|
|
2976
|
-
case 3:
|
|
2977
|
-
return d = k.sent(), [4, j(l, u.HEADERS)];
|
|
2978
|
-
case 4:
|
|
2979
|
-
return S = k.sent(), T = Object.entries(r(r({ Accept: "application/json" }, S), l.headers)).filter(function(O) {
|
|
2980
|
-
O[0];
|
|
2981
|
-
var U = O[1];
|
|
2982
|
-
return w(U);
|
|
2983
|
-
}).reduce(function(O, U) {
|
|
2984
|
-
var B, ce = U[0], Ie = U[1];
|
|
2985
|
-
return r(r({}, O), (B = {}, B[ce] = String(Ie), B));
|
|
2986
|
-
}, {}), g(h) && (T.Authorization = "Bearer ".concat(h)), g(y) && g(d) && (N = C("".concat(y, ":").concat(d)), T.Authorization = "Basic ".concat(N)), l.body && (l.mediaType ? T["Content-Type"] = l.mediaType : _(l.body) ? T["Content-Type"] = "application/octet-stream" : I(l.body) ? T["Content-Type"] = "text/plain" : E(l.body) || (T["Content-Type"] = "application/json")), [2, new p.Headers(T)];
|
|
2987
|
-
}
|
|
2988
|
-
});
|
|
2989
|
-
});
|
|
2990
|
-
}, W = function(u) {
|
|
2991
|
-
var l;
|
|
2992
|
-
if (u.body)
|
|
2993
|
-
return !((l = u.mediaType) === null || l === void 0) && l.includes("/json") ? JSON.stringify(u.body) : I(u.body) || _(u.body) || E(u.body) ? u.body : JSON.stringify(u.body);
|
|
2994
|
-
}, X = function(u, l, h, y, d, S) {
|
|
2995
|
-
return s(void 0, void 0, void 0, function() {
|
|
2996
|
-
var T, N;
|
|
2997
|
-
return i(this, function(k) {
|
|
2998
|
-
switch (k.label) {
|
|
2999
|
-
case 0:
|
|
3000
|
-
return T = new AbortController(), N = {
|
|
3001
|
-
headers: d,
|
|
3002
|
-
method: u.method,
|
|
3003
|
-
body: h ?? y,
|
|
3004
|
-
signal: T.signal
|
|
3005
|
-
}, S(function() {
|
|
3006
|
-
return T.abort();
|
|
3007
|
-
}), [4, (0, p.default)(l, N)];
|
|
3008
|
-
case 1:
|
|
3009
|
-
return [2, k.sent()];
|
|
3010
|
-
}
|
|
3011
|
-
});
|
|
3012
|
-
});
|
|
3013
|
-
};
|
|
3014
|
-
e.sendRequest = X;
|
|
3015
|
-
var ee = function(u, l) {
|
|
3016
|
-
if (l) {
|
|
3017
|
-
var h = u.headers.get(l);
|
|
3018
|
-
if (I(h))
|
|
3019
|
-
return h;
|
|
3020
|
-
}
|
|
3021
|
-
}, L = function(u) {
|
|
3022
|
-
return s(void 0, void 0, void 0, function() {
|
|
3023
|
-
var l, h, y;
|
|
3024
|
-
return i(this, function(d) {
|
|
3025
|
-
switch (d.label) {
|
|
3026
|
-
case 0:
|
|
3027
|
-
if (u.status === 204) return [3, 7];
|
|
3028
|
-
d.label = 1;
|
|
3029
|
-
case 1:
|
|
3030
|
-
return d.trys.push([1, 6, , 7]), l = u.headers.get("Content-Type"), l ? (h = l.toLowerCase().startsWith("application/json"), h ? [4, u.json()] : [3, 3]) : [3, 5];
|
|
3031
|
-
case 2:
|
|
3032
|
-
return [2, d.sent()];
|
|
3033
|
-
case 3:
|
|
3034
|
-
return [4, u.text()];
|
|
3035
|
-
case 4:
|
|
3036
|
-
return [2, d.sent()];
|
|
3037
|
-
case 5:
|
|
3038
|
-
return [3, 7];
|
|
3039
|
-
case 6:
|
|
3040
|
-
return y = d.sent(), console.error(y), [3, 7];
|
|
3041
|
-
case 7:
|
|
3042
|
-
return [2, void 0];
|
|
3043
|
-
}
|
|
3044
|
-
});
|
|
3045
|
-
});
|
|
3046
|
-
}, v = function(u, l) {
|
|
3047
|
-
var h = r({ 400: "Bad Request", 401: "Unauthorized", 403: "Forbidden", 404: "Not Found", 500: "Internal Server Error", 502: "Bad Gateway", 503: "Service Unavailable" }, u.errors), y = h[l.status];
|
|
3048
|
-
if (y)
|
|
3049
|
-
throw new f.ApiError(u, l, y);
|
|
3050
|
-
if (!l.ok)
|
|
3051
|
-
throw new f.ApiError(u, l, "Generic Error");
|
|
3052
|
-
}, R = function(u, l) {
|
|
3053
|
-
return new b.CancelablePromise(function(h, y, d) {
|
|
3054
|
-
return s(void 0, void 0, void 0, function() {
|
|
3055
|
-
var S, T, N, k, O, U, B, ce, Ie;
|
|
3056
|
-
return i(this, function(re) {
|
|
3057
|
-
switch (re.label) {
|
|
3058
|
-
case 0:
|
|
3059
|
-
return re.trys.push([0, 5, , 6]), S = q(u, l), T = M(l), N = W(l), [4, G(u, l)];
|
|
3060
|
-
case 1:
|
|
3061
|
-
return k = re.sent(), d.isCancelled ? [3, 4] : [4, (0, e.sendRequest)(l, S, N, T, k, d)];
|
|
3062
|
-
case 2:
|
|
3063
|
-
return O = re.sent(), [4, L(O)];
|
|
3064
|
-
case 3:
|
|
3065
|
-
U = re.sent(), B = ee(O, l.responseHeader), ce = {
|
|
3066
|
-
url: S,
|
|
3067
|
-
ok: O.ok,
|
|
3068
|
-
status: O.status,
|
|
3069
|
-
statusText: O.statusText,
|
|
3070
|
-
body: B ?? U
|
|
3071
|
-
}, v(l, ce), h(ce.body), re.label = 4;
|
|
3072
|
-
case 4:
|
|
3073
|
-
return [3, 6];
|
|
3074
|
-
case 5:
|
|
3075
|
-
return Ie = re.sent(), y(Ie), [3, 6];
|
|
3076
|
-
case 6:
|
|
3077
|
-
return [
|
|
3078
|
-
2
|
|
3079
|
-
/*return*/
|
|
3080
|
-
];
|
|
3081
|
-
}
|
|
3082
|
-
});
|
|
3083
|
-
});
|
|
3084
|
-
});
|
|
3085
|
-
};
|
|
3086
|
-
e.request = R;
|
|
3087
|
-
})($)), $;
|
|
3088
|
-
}
|
|
3089
|
-
var $r;
|
|
3090
|
-
function Fo() {
|
|
3091
|
-
if ($r) return de;
|
|
3092
|
-
$r = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.AccountInformationService = void 0;
|
|
3093
|
-
var e = x(), r = z(), t = (
|
|
3094
|
-
/** @class */
|
|
3095
|
-
(function() {
|
|
3096
|
-
function n() {
|
|
3097
|
-
}
|
|
3098
|
-
return n.getAccountInformation = function() {
|
|
3099
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3100
|
-
method: "GET",
|
|
3101
|
-
url: "/account/accountInformation"
|
|
3102
|
-
});
|
|
3103
|
-
}, n;
|
|
3104
|
-
})()
|
|
3105
|
-
);
|
|
3106
|
-
return de.AccountInformationService = t, de;
|
|
3107
|
-
}
|
|
3108
|
-
var fe = {}, Mr;
|
|
3109
|
-
function Bo() {
|
|
3110
|
-
if (Mr) return fe;
|
|
3111
|
-
Mr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.AccountScriptsFilesService = void 0;
|
|
3112
|
-
var e = x(), r = z(), t = (
|
|
3113
|
-
/** @class */
|
|
3114
|
-
(function() {
|
|
3115
|
-
function n() {
|
|
3116
|
-
}
|
|
3117
|
-
return n.getUserScripts = function() {
|
|
3118
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3119
|
-
method: "GET",
|
|
3120
|
-
url: "/account/scripts"
|
|
3121
|
-
});
|
|
3122
|
-
}, n.createUserScript = function(o) {
|
|
3123
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3124
|
-
method: "POST",
|
|
3125
|
-
url: "/account/scripts",
|
|
3126
|
-
body: o,
|
|
3127
|
-
mediaType: "application/json",
|
|
3128
|
-
errors: {
|
|
3129
|
-
400: "Bad request"
|
|
3130
|
-
}
|
|
3131
|
-
});
|
|
3132
|
-
}, n.getUserScriptById = function(o) {
|
|
3133
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3134
|
-
method: "GET",
|
|
3135
|
-
url: "/account/scripts/{scriptId}",
|
|
3136
|
-
path: {
|
|
3137
|
-
scriptId: o
|
|
3138
|
-
},
|
|
3139
|
-
errors: {
|
|
3140
|
-
404: "Script not found"
|
|
3141
|
-
}
|
|
3142
|
-
});
|
|
3143
|
-
}, n.deleteUserScript = function(o) {
|
|
3144
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3145
|
-
method: "DELETE",
|
|
3146
|
-
url: "/account/scripts/{scriptId}",
|
|
3147
|
-
path: {
|
|
3148
|
-
scriptId: o
|
|
3149
|
-
},
|
|
3150
|
-
errors: {
|
|
3151
|
-
404: "Script not found"
|
|
3152
|
-
}
|
|
3153
|
-
});
|
|
3154
|
-
}, n.patchUserScript = function(o, s) {
|
|
3155
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3156
|
-
method: "PATCH",
|
|
3157
|
-
url: "/account/scripts/{scriptId}",
|
|
3158
|
-
path: {
|
|
3159
|
-
scriptId: o
|
|
3160
|
-
},
|
|
3161
|
-
body: s,
|
|
3162
|
-
mediaType: "application/json",
|
|
3163
|
-
errors: {
|
|
3164
|
-
400: "Bad request",
|
|
3165
|
-
404: "Script not found"
|
|
3166
|
-
}
|
|
3167
|
-
});
|
|
3168
|
-
}, n;
|
|
3169
|
-
})()
|
|
3170
|
-
);
|
|
3171
|
-
return fe.AccountScriptsFilesService = t, fe;
|
|
3172
|
-
}
|
|
3173
|
-
var pe = {}, Hr;
|
|
3174
|
-
function $o() {
|
|
3175
|
-
if (Hr) return pe;
|
|
3176
|
-
Hr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.EventCallbacksHooksService = void 0;
|
|
3177
|
-
var e = x(), r = z(), t = (
|
|
3178
|
-
/** @class */
|
|
3179
|
-
(function() {
|
|
3180
|
-
function n() {
|
|
3181
|
-
}
|
|
3182
|
-
return n.eventCallbacksHooks = function() {
|
|
3183
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3184
|
-
method: "GET",
|
|
3185
|
-
url: "/hooks"
|
|
3186
|
-
});
|
|
3187
|
-
}, n.creteHook = function(o) {
|
|
3188
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3189
|
-
method: "POST",
|
|
3190
|
-
url: "/hooks",
|
|
3191
|
-
body: o,
|
|
3192
|
-
mediaType: "application/json",
|
|
3193
|
-
errors: {
|
|
3194
|
-
400: "Bad request"
|
|
3195
|
-
}
|
|
3196
|
-
});
|
|
3197
|
-
}, n.getHookById = function(o) {
|
|
3198
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3199
|
-
method: "GET",
|
|
3200
|
-
url: "/hooks/{hookId}",
|
|
3201
|
-
path: {
|
|
3202
|
-
hookId: o
|
|
3203
|
-
},
|
|
3204
|
-
errors: {
|
|
3205
|
-
400: "Bad request",
|
|
3206
|
-
404: "Hook not found"
|
|
3207
|
-
}
|
|
3208
|
-
});
|
|
3209
|
-
}, n.deleteHookById = function(o) {
|
|
3210
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3211
|
-
method: "DELETE",
|
|
3212
|
-
url: "/hooks/{hookId}",
|
|
3213
|
-
path: {
|
|
3214
|
-
hookId: o
|
|
3215
|
-
},
|
|
3216
|
-
errors: {
|
|
3217
|
-
404: "Hook not found"
|
|
3218
|
-
}
|
|
3219
|
-
});
|
|
3220
|
-
}, n;
|
|
3221
|
-
})()
|
|
3222
|
-
);
|
|
3223
|
-
return pe.EventCallbacksHooksService = t, pe;
|
|
3224
|
-
}
|
|
3225
|
-
var he = {}, xr;
|
|
3226
|
-
function Mo() {
|
|
3227
|
-
if (xr) return he;
|
|
3228
|
-
xr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.PingService = void 0;
|
|
3229
|
-
var e = x(), r = z(), t = (
|
|
3230
|
-
/** @class */
|
|
3231
|
-
(function() {
|
|
3232
|
-
function n() {
|
|
3233
|
-
}
|
|
3234
|
-
return n.getPing = function() {
|
|
3235
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3236
|
-
method: "GET",
|
|
3237
|
-
url: "/ping"
|
|
3238
|
-
});
|
|
3239
|
-
}, n;
|
|
3240
|
-
})()
|
|
3241
|
-
);
|
|
3242
|
-
return he.PingService = t, he;
|
|
3243
|
-
}
|
|
3244
|
-
var ve = {}, Gr;
|
|
3245
|
-
function Ho() {
|
|
3246
|
-
if (Gr) return ve;
|
|
3247
|
-
Gr = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.PollForEventsService = void 0;
|
|
3248
|
-
var e = x(), r = z(), t = (
|
|
3249
|
-
/** @class */
|
|
3250
|
-
(function() {
|
|
3251
|
-
function n() {
|
|
3252
|
-
}
|
|
3253
|
-
return n.getEvents = function(o, s, i, a) {
|
|
3254
|
-
return i === void 0 && (i = 1), a === void 0 && (a = 10), (0, r.request)(e.OpenAPI, {
|
|
3255
|
-
method: "GET",
|
|
3256
|
-
url: "/events",
|
|
3257
|
-
query: {
|
|
3258
|
-
callbackId: o,
|
|
3259
|
-
eventType: s,
|
|
3260
|
-
page: i,
|
|
3261
|
-
per_page: a
|
|
3262
|
-
},
|
|
3263
|
-
errors: {
|
|
3264
|
-
400: "Bad request"
|
|
3265
|
-
}
|
|
3266
|
-
});
|
|
3267
|
-
}, n;
|
|
3268
|
-
})()
|
|
3269
|
-
);
|
|
3270
|
-
return ve.PollForEventsService = t, ve;
|
|
3271
|
-
}
|
|
3272
|
-
var Se = {}, Vr;
|
|
3273
|
-
function xo() {
|
|
3274
|
-
if (Vr) return Se;
|
|
3275
|
-
Vr = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.PublicKeysService = void 0;
|
|
3276
|
-
var e = x(), r = z(), t = (
|
|
3277
|
-
/** @class */
|
|
3278
|
-
(function() {
|
|
3279
|
-
function n() {
|
|
3280
|
-
}
|
|
3281
|
-
return n.getPublicKeys = function() {
|
|
3282
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3283
|
-
method: "GET",
|
|
3284
|
-
url: "/account/publicKeys"
|
|
3285
|
-
});
|
|
3286
|
-
}, n.postPublicKeys = function(o) {
|
|
3287
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3288
|
-
method: "POST",
|
|
3289
|
-
url: "/account/publicKeys",
|
|
3290
|
-
body: o,
|
|
3291
|
-
mediaType: "application/json",
|
|
3292
|
-
errors: {
|
|
3293
|
-
400: "Bad request"
|
|
3294
|
-
}
|
|
3295
|
-
});
|
|
3296
|
-
}, n.deletePublicKey = function(o) {
|
|
3297
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3298
|
-
method: "DELETE",
|
|
3299
|
-
url: "/account/publicKeys/{id}",
|
|
3300
|
-
path: {
|
|
3301
|
-
id: o
|
|
3302
|
-
},
|
|
3303
|
-
errors: {
|
|
3304
|
-
404: "PublicKey not found"
|
|
3305
|
-
}
|
|
3306
|
-
});
|
|
3307
|
-
}, n;
|
|
3308
|
-
})()
|
|
3309
|
-
);
|
|
3310
|
-
return Se.PublicKeysService = t, Se;
|
|
3311
|
-
}
|
|
3312
|
-
var me = {}, Kr;
|
|
3313
|
-
function Go() {
|
|
3314
|
-
if (Kr) return me;
|
|
3315
|
-
Kr = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.ScriptLibraryService = void 0;
|
|
3316
|
-
var e = x(), r = z(), t = (
|
|
3317
|
-
/** @class */
|
|
3318
|
-
(function() {
|
|
3319
|
-
function n() {
|
|
3320
|
-
}
|
|
3321
|
-
return n.getScripts = function() {
|
|
3322
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3323
|
-
method: "GET",
|
|
3324
|
-
url: "/scripts"
|
|
3325
|
-
});
|
|
3326
|
-
}, n;
|
|
3327
|
-
})()
|
|
3328
|
-
);
|
|
3329
|
-
return me.ScriptLibraryService = t, me;
|
|
3330
|
-
}
|
|
3331
|
-
var ye = {}, zr;
|
|
3332
|
-
function Vo() {
|
|
3333
|
-
if (zr) return ye;
|
|
3334
|
-
zr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.ServerActionsService = void 0;
|
|
3335
|
-
var e = x(), r = z(), t = (
|
|
3336
|
-
/** @class */
|
|
3337
|
-
(function() {
|
|
3338
|
-
function n() {
|
|
3339
|
-
}
|
|
3340
|
-
return n.startServer = function(o) {
|
|
3341
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3342
|
-
method: "POST",
|
|
3343
|
-
url: "/servers/{serverSlug}/actions/start",
|
|
3344
|
-
path: {
|
|
3345
|
-
serverSlug: o
|
|
3346
|
-
},
|
|
3347
|
-
responseHeader: "X-Callback-ID",
|
|
3348
|
-
errors: {
|
|
3349
|
-
400: "Bad request",
|
|
3350
|
-
404: "Server not found"
|
|
3351
|
-
}
|
|
3352
|
-
});
|
|
3353
|
-
}, n.stopServer = function(o) {
|
|
3354
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3355
|
-
method: "POST",
|
|
3356
|
-
url: "/servers/{serverSlug}/actions/stop",
|
|
3357
|
-
path: {
|
|
3358
|
-
serverSlug: o
|
|
3359
|
-
},
|
|
3360
|
-
responseHeader: "X-Callback-ID",
|
|
3361
|
-
errors: {
|
|
3362
|
-
400: "Bad request",
|
|
3363
|
-
404: "Server not found"
|
|
3364
|
-
}
|
|
3365
|
-
});
|
|
3366
|
-
}, n.rebootServer = function(o) {
|
|
3367
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3368
|
-
method: "POST",
|
|
3369
|
-
url: "/servers/{serverSlug}/actions/reboot",
|
|
3370
|
-
path: {
|
|
3371
|
-
serverSlug: o
|
|
3372
|
-
},
|
|
3373
|
-
responseHeader: "X-Callback-ID",
|
|
3374
|
-
errors: {
|
|
3375
|
-
400: "Bad request",
|
|
3376
|
-
404: "Server not found"
|
|
3377
|
-
}
|
|
3378
|
-
});
|
|
3379
|
-
}, n.suspendServer = function(o) {
|
|
3380
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3381
|
-
method: "POST",
|
|
3382
|
-
url: "/servers/{serverSlug}/actions/suspend",
|
|
3383
|
-
path: {
|
|
3384
|
-
serverSlug: o
|
|
3385
|
-
},
|
|
3386
|
-
responseHeader: "X-Callback-ID",
|
|
3387
|
-
errors: {
|
|
3388
|
-
400: "Bad request",
|
|
3389
|
-
404: "Server not found"
|
|
3390
|
-
}
|
|
3391
|
-
});
|
|
3392
|
-
}, n.reinstallServer = function(o, s) {
|
|
3393
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3394
|
-
method: "POST",
|
|
3395
|
-
url: "/servers/{serverSlug}/actions/reinstall",
|
|
3396
|
-
path: {
|
|
3397
|
-
serverSlug: o
|
|
3398
|
-
},
|
|
3399
|
-
body: s,
|
|
3400
|
-
mediaType: "application/json",
|
|
3401
|
-
responseHeader: "X-Callback-ID",
|
|
3402
|
-
errors: {
|
|
3403
|
-
400: "Bad request",
|
|
3404
|
-
404: "Server not found"
|
|
3405
|
-
}
|
|
3406
|
-
});
|
|
3407
|
-
}, n.createServerSnapshot = function(o, s) {
|
|
3408
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3409
|
-
method: "POST",
|
|
3410
|
-
url: "/servers/{serverSlug}/actions/snapshot",
|
|
3411
|
-
path: {
|
|
3412
|
-
serverSlug: o
|
|
3413
|
-
},
|
|
3414
|
-
body: s,
|
|
3415
|
-
mediaType: "application/json",
|
|
3416
|
-
errors: {
|
|
3417
|
-
400: "Bad request",
|
|
3418
|
-
404: "Server not found"
|
|
3419
|
-
}
|
|
3420
|
-
});
|
|
3421
|
-
}, n.restoreServerToSnapshot = function(o, s) {
|
|
3422
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3423
|
-
method: "POST",
|
|
3424
|
-
url: "/servers/{serverSlug}/actions/restore",
|
|
3425
|
-
path: {
|
|
3426
|
-
serverSlug: o
|
|
3427
|
-
},
|
|
3428
|
-
body: s,
|
|
3429
|
-
mediaType: "application/json",
|
|
3430
|
-
responseHeader: "X-Callback-ID",
|
|
3431
|
-
errors: {
|
|
3432
|
-
400: "Bad request",
|
|
3433
|
-
404: "Server or snapshot not found"
|
|
3434
|
-
}
|
|
3435
|
-
});
|
|
3436
|
-
}, n.resizeDryRun = function(o, s) {
|
|
3437
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3438
|
-
method: "POST",
|
|
3439
|
-
url: "/servers/{serverSlug}/actions/resize/dryrun",
|
|
3440
|
-
path: {
|
|
3441
|
-
serverSlug: o
|
|
3442
|
-
},
|
|
3443
|
-
body: s,
|
|
3444
|
-
mediaType: "application/json",
|
|
3445
|
-
errors: {
|
|
3446
|
-
400: "Bad request",
|
|
3447
|
-
404: "Server not found"
|
|
3448
|
-
}
|
|
3449
|
-
});
|
|
3450
|
-
}, n.resizeServer = function(o, s) {
|
|
3451
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3452
|
-
method: "POST",
|
|
3453
|
-
url: "/servers/{serverSlug}/actions/resize",
|
|
3454
|
-
path: {
|
|
3455
|
-
serverSlug: o
|
|
3456
|
-
},
|
|
3457
|
-
body: s,
|
|
3458
|
-
mediaType: "application/json",
|
|
3459
|
-
responseHeader: "X-Callback-ID",
|
|
3460
|
-
errors: {
|
|
3461
|
-
400: "Bad request",
|
|
3462
|
-
404: "Server not found"
|
|
3463
|
-
}
|
|
3464
|
-
});
|
|
3465
|
-
}, n;
|
|
3466
|
-
})()
|
|
3467
|
-
);
|
|
3468
|
-
return ye.ServerActionsService = t, ye;
|
|
3469
|
-
}
|
|
3470
|
-
var be = {}, Wr;
|
|
3471
|
-
function Ko() {
|
|
3472
|
-
if (Wr) return be;
|
|
3473
|
-
Wr = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.ServerConfigurationsService = void 0;
|
|
3474
|
-
var e = x(), r = z(), t = (
|
|
3475
|
-
/** @class */
|
|
3476
|
-
(function() {
|
|
3477
|
-
function n() {
|
|
3478
|
-
}
|
|
3479
|
-
return n.getServersLocations = function() {
|
|
3480
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3481
|
-
method: "GET",
|
|
3482
|
-
url: "/locations"
|
|
3483
|
-
});
|
|
3484
|
-
}, n.getServersProfiles = function(o) {
|
|
3485
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3486
|
-
method: "GET",
|
|
3487
|
-
url: "/profiles",
|
|
3488
|
-
query: {
|
|
3489
|
-
locationId: o
|
|
3490
|
-
}
|
|
3491
|
-
});
|
|
3492
|
-
}, n.getServersImages = function() {
|
|
3493
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3494
|
-
method: "GET",
|
|
3495
|
-
url: "/images"
|
|
3496
|
-
});
|
|
3497
|
-
}, n;
|
|
3498
|
-
})()
|
|
3499
|
-
);
|
|
3500
|
-
return be.ServerConfigurationsService = t, be;
|
|
3501
|
-
}
|
|
3502
|
-
var ge = {}, Jr;
|
|
3503
|
-
function zo() {
|
|
3504
|
-
if (Jr) return ge;
|
|
3505
|
-
Jr = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.ServerMetricsService = void 0;
|
|
3506
|
-
var e = x(), r = z(), t = (
|
|
3507
|
-
/** @class */
|
|
3508
|
-
(function() {
|
|
3509
|
-
function n() {
|
|
3510
|
-
}
|
|
3511
|
-
return n.getServerMetrics = function(o) {
|
|
3512
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3513
|
-
method: "GET",
|
|
3514
|
-
url: "/servers/{serverSlug}/metrics",
|
|
3515
|
-
path: {
|
|
3516
|
-
serverSlug: o
|
|
3517
|
-
},
|
|
3518
|
-
errors: {
|
|
3519
|
-
404: "Server not found"
|
|
3520
|
-
}
|
|
3521
|
-
});
|
|
3522
|
-
}, n.getInstantMetrics = function(o) {
|
|
3523
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3524
|
-
method: "GET",
|
|
3525
|
-
url: "/servers/{serverSlug}/metrics/now",
|
|
3526
|
-
path: {
|
|
3527
|
-
serverSlug: o
|
|
3528
|
-
},
|
|
3529
|
-
errors: {
|
|
3530
|
-
404: "Server not found"
|
|
3531
|
-
}
|
|
3532
|
-
});
|
|
3533
|
-
}, n;
|
|
3534
|
-
})()
|
|
3535
|
-
);
|
|
3536
|
-
return ge.ServerMetricsService = t, ge;
|
|
3537
|
-
}
|
|
3538
|
-
var Ee = {}, Xr;
|
|
3539
|
-
function Wo() {
|
|
3540
|
-
if (Xr) return Ee;
|
|
3541
|
-
Xr = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.ServersService = void 0;
|
|
3542
|
-
var e = x(), r = z(), t = (
|
|
3543
|
-
/** @class */
|
|
3544
|
-
(function() {
|
|
3545
|
-
function n() {
|
|
3546
|
-
}
|
|
3547
|
-
return n.getServers = function(o) {
|
|
3548
|
-
return o === void 0 && (o = "all"), (0, r.request)(e.OpenAPI, {
|
|
3549
|
-
method: "GET",
|
|
3550
|
-
url: "/servers",
|
|
3551
|
-
query: {
|
|
3552
|
-
status: o
|
|
3553
|
-
}
|
|
3554
|
-
});
|
|
3555
|
-
}, n.createServer = function(o) {
|
|
3556
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3557
|
-
method: "POST",
|
|
3558
|
-
url: "/servers",
|
|
3559
|
-
body: o,
|
|
3560
|
-
mediaType: "application/json",
|
|
3561
|
-
errors: {
|
|
3562
|
-
400: "Bad Request"
|
|
3563
|
-
}
|
|
3564
|
-
});
|
|
3565
|
-
}, n.getServerBySlug = function(o) {
|
|
3566
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3567
|
-
method: "GET",
|
|
3568
|
-
url: "/servers/{serverSlug}",
|
|
3569
|
-
path: {
|
|
3570
|
-
serverSlug: o
|
|
3571
|
-
},
|
|
3572
|
-
errors: {
|
|
3573
|
-
404: "Server not found"
|
|
3574
|
-
}
|
|
3575
|
-
});
|
|
3576
|
-
}, n.deleteServer = function(o) {
|
|
3577
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3578
|
-
method: "DELETE",
|
|
3579
|
-
url: "/servers/{serverSlug}",
|
|
3580
|
-
path: {
|
|
3581
|
-
serverSlug: o
|
|
3582
|
-
},
|
|
3583
|
-
responseHeader: "X-Callback-ID",
|
|
3584
|
-
errors: {
|
|
3585
|
-
404: "Server not found"
|
|
3586
|
-
}
|
|
3587
|
-
});
|
|
3588
|
-
}, n.patchServer = function(o, s) {
|
|
3589
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3590
|
-
method: "PATCH",
|
|
3591
|
-
url: "/servers/{serverSlug}",
|
|
3592
|
-
path: {
|
|
3593
|
-
serverSlug: o
|
|
3594
|
-
},
|
|
3595
|
-
body: s,
|
|
3596
|
-
mediaType: "application/json",
|
|
3597
|
-
errors: {
|
|
3598
|
-
404: "Server not found"
|
|
3599
|
-
}
|
|
3600
|
-
});
|
|
3601
|
-
}, n;
|
|
3602
|
-
})()
|
|
3603
|
-
);
|
|
3604
|
-
return Ee.ServersService = t, Ee;
|
|
3605
|
-
}
|
|
3606
|
-
var Oe = {}, Yr;
|
|
3607
|
-
function Jo() {
|
|
3608
|
-
if (Yr) return Oe;
|
|
3609
|
-
Yr = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.ServerScriptsFilesService = void 0;
|
|
3610
|
-
var e = x(), r = z(), t = (
|
|
3611
|
-
/** @class */
|
|
3612
|
-
(function() {
|
|
3613
|
-
function n() {
|
|
3614
|
-
}
|
|
3615
|
-
return n.getServerScripts = function(o) {
|
|
3616
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3617
|
-
method: "GET",
|
|
3618
|
-
url: "/servers/{serverSlug}/scripts",
|
|
3619
|
-
path: {
|
|
3620
|
-
serverSlug: o
|
|
3621
|
-
},
|
|
3622
|
-
errors: {
|
|
3623
|
-
404: "Server not found"
|
|
3624
|
-
}
|
|
3625
|
-
});
|
|
3626
|
-
}, n.createServerScript = function(o, s) {
|
|
3627
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3628
|
-
method: "POST",
|
|
3629
|
-
url: "/servers/{serverSlug}/scripts",
|
|
3630
|
-
path: {
|
|
3631
|
-
serverSlug: o
|
|
3632
|
-
},
|
|
3633
|
-
body: s,
|
|
3634
|
-
mediaType: "application/json",
|
|
3635
|
-
errors: {
|
|
3636
|
-
400: "Bad request",
|
|
3637
|
-
404: "Server or script not found"
|
|
3638
|
-
}
|
|
3639
|
-
});
|
|
3640
|
-
}, n.getServerScriptById = function(o, s) {
|
|
3641
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3642
|
-
method: "GET",
|
|
3643
|
-
url: "/servers/{serverSlug}/scripts/{scriptId}",
|
|
3644
|
-
path: {
|
|
3645
|
-
serverSlug: o,
|
|
3646
|
-
scriptId: s
|
|
3647
|
-
},
|
|
3648
|
-
errors: {
|
|
3649
|
-
404: "Server not found"
|
|
3650
|
-
}
|
|
3651
|
-
});
|
|
3652
|
-
}, n.deleteServerScriptById = function(o, s) {
|
|
3653
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3654
|
-
method: "DELETE",
|
|
3655
|
-
url: "/servers/{serverSlug}/scripts/{scriptId}",
|
|
3656
|
-
path: {
|
|
3657
|
-
serverSlug: o,
|
|
3658
|
-
scriptId: s
|
|
3659
|
-
},
|
|
3660
|
-
responseHeader: "X-Callback-ID",
|
|
3661
|
-
errors: {
|
|
3662
|
-
404: "Server or script not found"
|
|
3663
|
-
}
|
|
3664
|
-
});
|
|
3665
|
-
}, n.executeServerScript = function(o, s) {
|
|
3666
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3667
|
-
method: "POST",
|
|
3668
|
-
url: "/servers/{serverSlug}/scripts/{scriptId}/execute",
|
|
3669
|
-
path: {
|
|
3670
|
-
serverSlug: o,
|
|
3671
|
-
scriptId: s
|
|
3672
|
-
},
|
|
3673
|
-
responseHeader: "X-Callback-ID",
|
|
3674
|
-
errors: {
|
|
3675
|
-
404: "Server or script not found"
|
|
3676
|
-
}
|
|
3677
|
-
});
|
|
3678
|
-
}, n.fetchServerFile = function(o, s) {
|
|
3679
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3680
|
-
method: "POST",
|
|
3681
|
-
url: "/servers/{serverSlug}/fetchFile",
|
|
3682
|
-
path: {
|
|
3683
|
-
serverSlug: o
|
|
3684
|
-
},
|
|
3685
|
-
body: s,
|
|
3686
|
-
mediaType: "application/json",
|
|
3687
|
-
responseHeader: "X-Callback-ID",
|
|
3688
|
-
errors: {
|
|
3689
|
-
404: "Server not found"
|
|
3690
|
-
}
|
|
3691
|
-
});
|
|
3692
|
-
}, n;
|
|
3693
|
-
})()
|
|
3694
|
-
);
|
|
3695
|
-
return Oe.ServerScriptsFilesService = t, Oe;
|
|
3696
|
-
}
|
|
3697
|
-
var _e = {}, Qr;
|
|
3698
|
-
function Xo() {
|
|
3699
|
-
if (Qr) return _e;
|
|
3700
|
-
Qr = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.ServerSnapshotsService = void 0;
|
|
3701
|
-
var e = x(), r = z(), t = (
|
|
3702
|
-
/** @class */
|
|
3703
|
-
(function() {
|
|
3704
|
-
function n() {
|
|
3705
|
-
}
|
|
3706
|
-
return n.getServerSnapshots = function(o) {
|
|
3707
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3708
|
-
method: "GET",
|
|
3709
|
-
url: "/servers/{serverSlug}/snapshots",
|
|
3710
|
-
path: {
|
|
3711
|
-
serverSlug: o
|
|
3712
|
-
},
|
|
3713
|
-
errors: {
|
|
3714
|
-
404: "Server not found"
|
|
3715
|
-
}
|
|
3716
|
-
});
|
|
3717
|
-
}, n.createSnapshot = function(o, s) {
|
|
3718
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3719
|
-
method: "POST",
|
|
3720
|
-
url: "/servers/{serverSlug}/snapshots",
|
|
3721
|
-
path: {
|
|
3722
|
-
serverSlug: o
|
|
3723
|
-
},
|
|
3724
|
-
body: s,
|
|
3725
|
-
mediaType: "application/json",
|
|
3726
|
-
errors: {
|
|
3727
|
-
400: "Bad Request"
|
|
3728
|
-
}
|
|
3729
|
-
});
|
|
3730
|
-
}, n.getServerSnapshotById = function(o, s) {
|
|
3731
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3732
|
-
method: "GET",
|
|
3733
|
-
url: "/servers/{serverSlug}/snapshots/{snapshotId}",
|
|
3734
|
-
path: {
|
|
3735
|
-
serverSlug: o,
|
|
3736
|
-
snapshotId: s
|
|
3737
|
-
},
|
|
3738
|
-
errors: {
|
|
3739
|
-
404: "Server or snapshot not found"
|
|
3740
|
-
}
|
|
3741
|
-
});
|
|
3742
|
-
}, n.deleteServerSnapshotById = function(o, s) {
|
|
3743
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3744
|
-
method: "DELETE",
|
|
3745
|
-
url: "/servers/{serverSlug}/snapshots/{snapshotId}",
|
|
3746
|
-
path: {
|
|
3747
|
-
serverSlug: o,
|
|
3748
|
-
snapshotId: s
|
|
3749
|
-
},
|
|
3750
|
-
responseHeader: "X-Callback-ID",
|
|
3751
|
-
errors: {
|
|
3752
|
-
404: "Server or snapshot not found"
|
|
3753
|
-
}
|
|
3754
|
-
});
|
|
3755
|
-
}, n;
|
|
3756
|
-
})()
|
|
3757
|
-
);
|
|
3758
|
-
return _e.ServerSnapshotsService = t, _e;
|
|
3759
|
-
}
|
|
3760
|
-
var Te = {}, Zr;
|
|
3761
|
-
function Yo() {
|
|
3762
|
-
if (Zr) return Te;
|
|
3763
|
-
Zr = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.ShellUsersService = void 0;
|
|
3764
|
-
var e = x(), r = z(), t = (
|
|
3765
|
-
/** @class */
|
|
3766
|
-
(function() {
|
|
3767
|
-
function n() {
|
|
3768
|
-
}
|
|
3769
|
-
return n.getServerShellUsers = function(o) {
|
|
3770
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3771
|
-
method: "GET",
|
|
3772
|
-
url: "/servers/{serverSlug}/shellUsers",
|
|
3773
|
-
path: {
|
|
3774
|
-
serverSlug: o
|
|
3775
|
-
},
|
|
3776
|
-
errors: {
|
|
3777
|
-
404: "Server not found"
|
|
3778
|
-
}
|
|
3779
|
-
});
|
|
3780
|
-
}, n.postServerShellUsers = function(o, s) {
|
|
3781
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3782
|
-
method: "POST",
|
|
3783
|
-
url: "/servers/{serverSlug}/shellUsers",
|
|
3784
|
-
path: {
|
|
3785
|
-
serverSlug: o
|
|
3786
|
-
},
|
|
3787
|
-
body: s,
|
|
3788
|
-
mediaType: "application/json",
|
|
3789
|
-
errors: {
|
|
3790
|
-
400: "Bad request",
|
|
3791
|
-
404: "Server not found"
|
|
3792
|
-
}
|
|
3793
|
-
});
|
|
3794
|
-
}, n.deleteShellUser = function(o, s) {
|
|
3795
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3796
|
-
method: "DELETE",
|
|
3797
|
-
url: "/servers/{serverSlug}/shellUsers/{shellUserId}",
|
|
3798
|
-
path: {
|
|
3799
|
-
serverSlug: o,
|
|
3800
|
-
shellUserId: s
|
|
3801
|
-
},
|
|
3802
|
-
responseHeader: "X-Callback-ID",
|
|
3803
|
-
errors: {
|
|
3804
|
-
404: "Server or shell user not found"
|
|
3805
|
-
}
|
|
3806
|
-
});
|
|
3807
|
-
}, n.patchServerShellUsers = function(o, s, i) {
|
|
3808
|
-
return (0, r.request)(e.OpenAPI, {
|
|
3809
|
-
method: "PATCH",
|
|
3810
|
-
url: "/servers/{serverSlug}/shellUsers/{shellUserId}",
|
|
3811
|
-
path: {
|
|
3812
|
-
serverSlug: o,
|
|
3813
|
-
shellUserId: s
|
|
3814
|
-
},
|
|
3815
|
-
body: i,
|
|
3816
|
-
mediaType: "application/json",
|
|
3817
|
-
errors: {
|
|
3818
|
-
400: "Bad request",
|
|
3819
|
-
404: "Server or shell user not found"
|
|
3820
|
-
}
|
|
3821
|
-
});
|
|
3822
|
-
}, n;
|
|
3823
|
-
})()
|
|
3824
|
-
);
|
|
3825
|
-
return Te.ShellUsersService = t, Te;
|
|
3826
|
-
}
|
|
3827
|
-
var et;
|
|
3828
|
-
function Qo() {
|
|
3829
|
-
return et || (et = 1, (function(e) {
|
|
3830
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ShellUsersService = e.ServerSnapshotsService = e.ServerScriptsFilesService = e.ServersService = e.ServerMetricsService = e.ServerConfigurationsService = e.ServerActionsService = e.ScriptLibraryService = e.PublicKeysService = e.PollForEventsService = e.PingService = e.EventCallbacksHooksService = e.AccountScriptsFilesService = e.AccountInformationService = e.SnapshotDTO = e.ServerImageDTO = e.ServerDTO = e.PriceDTO = e.PostServerModelDTO = e.Ping = e.EventLogDTO = e.CreateEventHookModelDTO = e.OpenAPI = e.CancelError = e.CancelablePromise = e.ApiError = void 0;
|
|
3831
|
-
var r = wt();
|
|
3832
|
-
Object.defineProperty(e, "ApiError", { enumerable: !0, get: function() {
|
|
3833
|
-
return r.ApiError;
|
|
3834
|
-
} });
|
|
3835
|
-
var t = At();
|
|
3836
|
-
Object.defineProperty(e, "CancelablePromise", { enumerable: !0, get: function() {
|
|
3837
|
-
return t.CancelablePromise;
|
|
3838
|
-
} }), Object.defineProperty(e, "CancelError", { enumerable: !0, get: function() {
|
|
3839
|
-
return t.CancelError;
|
|
3840
|
-
} });
|
|
3841
|
-
var n = x();
|
|
3842
|
-
Object.defineProperty(e, "OpenAPI", { enumerable: !0, get: function() {
|
|
3843
|
-
return n.OpenAPI;
|
|
3844
|
-
} });
|
|
3845
|
-
var o = Ro();
|
|
3846
|
-
Object.defineProperty(e, "CreateEventHookModelDTO", { enumerable: !0, get: function() {
|
|
3847
|
-
return o.CreateEventHookModelDTO;
|
|
3848
|
-
} });
|
|
3849
|
-
var s = ko();
|
|
3850
|
-
Object.defineProperty(e, "EventLogDTO", { enumerable: !0, get: function() {
|
|
3851
|
-
return s.EventLogDTO;
|
|
3852
|
-
} });
|
|
3853
|
-
var i = Io();
|
|
3854
|
-
Object.defineProperty(e, "Ping", { enumerable: !0, get: function() {
|
|
3855
|
-
return i.Ping;
|
|
3856
|
-
} });
|
|
3857
|
-
var a = Co();
|
|
3858
|
-
Object.defineProperty(e, "PostServerModelDTO", { enumerable: !0, get: function() {
|
|
3859
|
-
return a.PostServerModelDTO;
|
|
3860
|
-
} });
|
|
3861
|
-
var m = Do();
|
|
3862
|
-
Object.defineProperty(e, "PriceDTO", { enumerable: !0, get: function() {
|
|
3863
|
-
return m.PriceDTO;
|
|
3864
|
-
} });
|
|
3865
|
-
var p = qo();
|
|
3866
|
-
Object.defineProperty(e, "ServerDTO", { enumerable: !0, get: function() {
|
|
3867
|
-
return p.ServerDTO;
|
|
3868
|
-
} });
|
|
3869
|
-
var f = No();
|
|
3870
|
-
Object.defineProperty(e, "ServerImageDTO", { enumerable: !0, get: function() {
|
|
3871
|
-
return f.ServerImageDTO;
|
|
3872
|
-
} });
|
|
3873
|
-
var b = jo();
|
|
3874
|
-
Object.defineProperty(e, "SnapshotDTO", { enumerable: !0, get: function() {
|
|
3875
|
-
return b.SnapshotDTO;
|
|
3876
|
-
} });
|
|
3877
|
-
var w = Fo();
|
|
3878
|
-
Object.defineProperty(e, "AccountInformationService", { enumerable: !0, get: function() {
|
|
3879
|
-
return w.AccountInformationService;
|
|
3880
|
-
} });
|
|
3881
|
-
var I = Bo();
|
|
3882
|
-
Object.defineProperty(e, "AccountScriptsFilesService", { enumerable: !0, get: function() {
|
|
3883
|
-
return I.AccountScriptsFilesService;
|
|
3884
|
-
} });
|
|
3885
|
-
var g = $o();
|
|
3886
|
-
Object.defineProperty(e, "EventCallbacksHooksService", { enumerable: !0, get: function() {
|
|
3887
|
-
return g.EventCallbacksHooksService;
|
|
3888
|
-
} });
|
|
3889
|
-
var _ = Mo();
|
|
3890
|
-
Object.defineProperty(e, "PingService", { enumerable: !0, get: function() {
|
|
3891
|
-
return _.PingService;
|
|
3892
|
-
} });
|
|
3893
|
-
var E = Ho();
|
|
3894
|
-
Object.defineProperty(e, "PollForEventsService", { enumerable: !0, get: function() {
|
|
3895
|
-
return E.PollForEventsService;
|
|
3896
|
-
} });
|
|
3897
|
-
var C = xo();
|
|
3898
|
-
Object.defineProperty(e, "PublicKeysService", { enumerable: !0, get: function() {
|
|
3899
|
-
return C.PublicKeysService;
|
|
3900
|
-
} });
|
|
3901
|
-
var D = Go();
|
|
3902
|
-
Object.defineProperty(e, "ScriptLibraryService", { enumerable: !0, get: function() {
|
|
3903
|
-
return D.ScriptLibraryService;
|
|
3904
|
-
} });
|
|
3905
|
-
var q = Vo();
|
|
3906
|
-
Object.defineProperty(e, "ServerActionsService", { enumerable: !0, get: function() {
|
|
3907
|
-
return q.ServerActionsService;
|
|
3908
|
-
} });
|
|
3909
|
-
var M = Ko();
|
|
3910
|
-
Object.defineProperty(e, "ServerConfigurationsService", { enumerable: !0, get: function() {
|
|
3911
|
-
return M.ServerConfigurationsService;
|
|
3912
|
-
} });
|
|
3913
|
-
var j = zo();
|
|
3914
|
-
Object.defineProperty(e, "ServerMetricsService", { enumerable: !0, get: function() {
|
|
3915
|
-
return j.ServerMetricsService;
|
|
3916
|
-
} });
|
|
3917
|
-
var G = Wo();
|
|
3918
|
-
Object.defineProperty(e, "ServersService", { enumerable: !0, get: function() {
|
|
3919
|
-
return G.ServersService;
|
|
3920
|
-
} });
|
|
3921
|
-
var W = Jo();
|
|
3922
|
-
Object.defineProperty(e, "ServerScriptsFilesService", { enumerable: !0, get: function() {
|
|
3923
|
-
return W.ServerScriptsFilesService;
|
|
3924
|
-
} });
|
|
3925
|
-
var X = Xo();
|
|
3926
|
-
Object.defineProperty(e, "ServerSnapshotsService", { enumerable: !0, get: function() {
|
|
3927
|
-
return X.ServerSnapshotsService;
|
|
3928
|
-
} });
|
|
3929
|
-
var ee = Yo();
|
|
3930
|
-
Object.defineProperty(e, "ShellUsersService", { enumerable: !0, get: function() {
|
|
3931
|
-
return ee.ShellUsersService;
|
|
3932
|
-
} });
|
|
3933
|
-
})(Ke)), Ke;
|
|
3934
|
-
}
|
|
3935
|
-
var Rt = Qo();
|
|
3936
|
-
const Zo = /* @__PURE__ */ Nt(Rt), es = /* @__PURE__ */ qt({
|
|
3937
|
-
__proto__: null,
|
|
3938
|
-
default: Zo
|
|
3939
|
-
}, [Rt]);
|
|
3940
|
-
class rs {
|
|
3941
|
-
constructor(r) {
|
|
3942
|
-
this.parent = r;
|
|
3943
|
-
}
|
|
3944
|
-
async fetch(r) {
|
|
3945
|
-
return await P({
|
|
3946
|
-
token: this.parent.string_token,
|
|
3947
|
-
endpoint: `/events?callbackId=${r}`,
|
|
3948
|
-
log: !1,
|
|
3949
|
-
method: "GET"
|
|
3950
|
-
});
|
|
3951
|
-
}
|
|
3952
|
-
}
|
|
3953
|
-
Ft.config();
|
|
3954
|
-
const Ts = es;
|
|
3955
|
-
class Ps {
|
|
3956
|
-
constructor(r) {
|
|
3957
|
-
this.string_token = r, this.account = new mo(this), this.images = new go(this), this.profiles = new Oo(this), this.events = new yo(this), this.hooks = new bo(this), this.location = new Eo(this), this.scripts = new _o(this), this.servers = new To(this), this.shellUsers = new Po(this), this.sshkeys = new wo(this), this.snapshots = new Ao(this), this.operation = new rs(this);
|
|
3958
|
-
}
|
|
3959
|
-
}
|
|
3960
|
-
export {
|
|
3961
|
-
Ps as Webdock,
|
|
3962
|
-
Ts as oldWebdock
|
|
3963
|
-
};
|
|
3964
|
-
//# sourceMappingURL=index.mjs.map
|