@iankibetsh/vue-streamline 0.0.0 → 0.0.2

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.
@@ -0,0 +1,1715 @@
1
+ import { inject as me } from "vue";
2
+ function Fe(e, t) {
3
+ return function() {
4
+ return e.apply(t, arguments);
5
+ };
6
+ }
7
+ const { toString: et } = Object.prototype, { getPrototypeOf: ue } = Object, v = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = et.call(t);
9
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => v(t) === e), W = (e) => (t) => typeof t === e, { isArray: U } = Array, q = W("undefined");
11
+ function tt(e) {
12
+ return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
+ }
14
+ const Le = C("ArrayBuffer");
15
+ function nt(e) {
16
+ let t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Le(e.buffer), t;
18
+ }
19
+ const rt = W("string"), T = W("function"), _e = W("number"), K = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, z = (e) => {
20
+ if (v(e) !== "object")
21
+ return !1;
22
+ const t = ue(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
24
+ }, ot = C("Date"), it = C("File"), at = C("Blob"), ct = C("FileList"), ut = (e) => K(e) && T(e.pipe), lt = (e) => {
25
+ let t;
26
+ return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = v(e)) === "formdata" || // detect form-data instance
27
+ t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
28
+ }, ft = C("URLSearchParams"), [dt, pt, ht, mt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
+ function H(e, t, { allOwnKeys: n = !1 } = {}) {
30
+ if (e === null || typeof e > "u")
31
+ return;
32
+ let r, s;
33
+ if (typeof e != "object" && (e = [e]), U(e))
34
+ for (r = 0, s = e.length; r < s; r++)
35
+ t.call(null, e[r], r, e);
36
+ else {
37
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
38
+ let c;
39
+ for (r = 0; r < i; r++)
40
+ c = o[r], t.call(null, e[c], c, e);
41
+ }
42
+ }
43
+ function De(e, t) {
44
+ t = t.toLowerCase();
45
+ const n = Object.keys(e);
46
+ let r = n.length, s;
47
+ for (; r-- > 0; )
48
+ if (s = n[r], t === s.toLowerCase())
49
+ return s;
50
+ return null;
51
+ }
52
+ const _ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Be = (e) => !q(e) && e !== _;
53
+ function ne() {
54
+ const { caseless: e } = Be(this) && this || {}, t = {}, n = (r, s) => {
55
+ const o = e && De(t, s) || s;
56
+ z(t[o]) && z(r) ? t[o] = ne(t[o], r) : z(r) ? t[o] = ne({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
57
+ };
58
+ for (let r = 0, s = arguments.length; r < s; r++)
59
+ arguments[r] && H(arguments[r], n);
60
+ return t;
61
+ }
62
+ const wt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
63
+ n && T(s) ? e[o] = Fe(s, n) : e[o] = s;
64
+ }, { allOwnKeys: r }), e), bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
65
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
66
+ value: t.prototype
67
+ }), n && Object.assign(e.prototype, n);
68
+ }, Rt = (e, t, n, r) => {
69
+ let s, o, i;
70
+ const c = {};
71
+ if (t = t || {}, e == null) return t;
72
+ do {
73
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
74
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
75
+ e = n !== !1 && ue(e);
76
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
77
+ return t;
78
+ }, St = (e, t, n) => {
79
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
80
+ const r = e.indexOf(t, n);
81
+ return r !== -1 && r === n;
82
+ }, gt = (e) => {
83
+ if (!e) return null;
84
+ if (U(e)) return e;
85
+ let t = e.length;
86
+ if (!_e(t)) return null;
87
+ const n = new Array(t);
88
+ for (; t-- > 0; )
89
+ n[t] = e[t];
90
+ return n;
91
+ }, Ot = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), Tt = (e, t) => {
92
+ const r = (e && e[Symbol.iterator]).call(e);
93
+ let s;
94
+ for (; (s = r.next()) && !s.done; ) {
95
+ const o = s.value;
96
+ t.call(e, o[0], o[1]);
97
+ }
98
+ }, At = (e, t) => {
99
+ let n;
100
+ const r = [];
101
+ for (; (n = e.exec(t)) !== null; )
102
+ r.push(n);
103
+ return r;
104
+ }, xt = C("HTMLFormElement"), Ct = (e) => e.toLowerCase().replace(
105
+ /[-_\s]([a-z\d])(\w*)/g,
106
+ function(n, r, s) {
107
+ return r.toUpperCase() + s;
108
+ }
109
+ ), ye = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = C("RegExp"), Ue = (e, t) => {
110
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
111
+ H(n, (s, o) => {
112
+ let i;
113
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
114
+ }), Object.defineProperties(e, r);
115
+ }, Pt = (e) => {
116
+ Ue(e, (t, n) => {
117
+ if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
118
+ return !1;
119
+ const r = e[n];
120
+ if (T(r)) {
121
+ if (t.enumerable = !1, "writable" in t) {
122
+ t.writable = !1;
123
+ return;
124
+ }
125
+ t.set || (t.set = () => {
126
+ throw Error("Can not rewrite read-only method '" + n + "'");
127
+ });
128
+ }
129
+ });
130
+ }, Ft = (e, t) => {
131
+ const n = {}, r = (s) => {
132
+ s.forEach((o) => {
133
+ n[o] = !0;
134
+ });
135
+ };
136
+ return U(e) ? r(e) : r(String(e).split(t)), n;
137
+ }, Lt = () => {
138
+ }, _t = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", we = "0123456789", ke = {
139
+ DIGIT: we,
140
+ ALPHA: Z,
141
+ ALPHA_DIGIT: Z + Z.toUpperCase() + we
142
+ }, Dt = (e = 16, t = ke.ALPHA_DIGIT) => {
143
+ let n = "";
144
+ const { length: r } = t;
145
+ for (; e--; )
146
+ n += t[Math.random() * r | 0];
147
+ return n;
148
+ };
149
+ function Bt(e) {
150
+ return !!(e && T(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
151
+ }
152
+ const Ut = (e) => {
153
+ const t = new Array(10), n = (r, s) => {
154
+ if (K(r)) {
155
+ if (t.indexOf(r) >= 0)
156
+ return;
157
+ if (!("toJSON" in r)) {
158
+ t[s] = r;
159
+ const o = U(r) ? [] : {};
160
+ return H(r, (i, c) => {
161
+ const f = n(i, s + 1);
162
+ !q(f) && (o[c] = f);
163
+ }), t[s] = void 0, o;
164
+ }
165
+ }
166
+ return r;
167
+ };
168
+ return n(e, 0);
169
+ }, kt = C("AsyncFunction"), jt = (e) => e && (K(e) || T(e)) && T(e.then) && T(e.catch), je = ((e, t) => e ? setImmediate : t ? ((n, r) => (_.addEventListener("message", ({ source: s, data: o }) => {
170
+ s === _ && o === n && r.length && r.shift()();
171
+ }, !1), (s) => {
172
+ r.push(s), _.postMessage(n, "*");
173
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
174
+ typeof setImmediate == "function",
175
+ T(_.postMessage)
176
+ ), qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(_) : typeof process < "u" && process.nextTick || je, a = {
177
+ isArray: U,
178
+ isArrayBuffer: Le,
179
+ isBuffer: tt,
180
+ isFormData: lt,
181
+ isArrayBufferView: nt,
182
+ isString: rt,
183
+ isNumber: _e,
184
+ isBoolean: st,
185
+ isObject: K,
186
+ isPlainObject: z,
187
+ isReadableStream: dt,
188
+ isRequest: pt,
189
+ isResponse: ht,
190
+ isHeaders: mt,
191
+ isUndefined: q,
192
+ isDate: ot,
193
+ isFile: it,
194
+ isBlob: at,
195
+ isRegExp: Nt,
196
+ isFunction: T,
197
+ isStream: ut,
198
+ isURLSearchParams: ft,
199
+ isTypedArray: Ot,
200
+ isFileList: ct,
201
+ forEach: H,
202
+ merge: ne,
203
+ extend: wt,
204
+ trim: yt,
205
+ stripBOM: bt,
206
+ inherits: Et,
207
+ toFlatObject: Rt,
208
+ kindOf: v,
209
+ kindOfTest: C,
210
+ endsWith: St,
211
+ toArray: gt,
212
+ forEachEntry: Tt,
213
+ matchAll: At,
214
+ isHTMLForm: xt,
215
+ hasOwnProperty: ye,
216
+ hasOwnProp: ye,
217
+ // an alias to avoid ESLint no-prototype-builtins detection
218
+ reduceDescriptors: Ue,
219
+ freezeMethods: Pt,
220
+ toObjectSet: Ft,
221
+ toCamelCase: Ct,
222
+ noop: Lt,
223
+ toFiniteNumber: _t,
224
+ findKey: De,
225
+ global: _,
226
+ isContextDefined: Be,
227
+ ALPHABET: ke,
228
+ generateString: Dt,
229
+ isSpecCompliantForm: Bt,
230
+ toJSONObject: Ut,
231
+ isAsyncFn: kt,
232
+ isThenable: jt,
233
+ setImmediate: je,
234
+ asap: qt
235
+ };
236
+ function m(e, t, n, r, s) {
237
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
238
+ }
239
+ a.inherits(m, Error, {
240
+ toJSON: function() {
241
+ return {
242
+ // Standard
243
+ message: this.message,
244
+ name: this.name,
245
+ // Microsoft
246
+ description: this.description,
247
+ number: this.number,
248
+ // Mozilla
249
+ fileName: this.fileName,
250
+ lineNumber: this.lineNumber,
251
+ columnNumber: this.columnNumber,
252
+ stack: this.stack,
253
+ // Axios
254
+ config: a.toJSONObject(this.config),
255
+ code: this.code,
256
+ status: this.response && this.response.status ? this.response.status : null
257
+ };
258
+ }
259
+ });
260
+ const qe = m.prototype, He = {};
261
+ [
262
+ "ERR_BAD_OPTION_VALUE",
263
+ "ERR_BAD_OPTION",
264
+ "ECONNABORTED",
265
+ "ETIMEDOUT",
266
+ "ERR_NETWORK",
267
+ "ERR_FR_TOO_MANY_REDIRECTS",
268
+ "ERR_DEPRECATED",
269
+ "ERR_BAD_RESPONSE",
270
+ "ERR_BAD_REQUEST",
271
+ "ERR_CANCELED",
272
+ "ERR_NOT_SUPPORT",
273
+ "ERR_INVALID_URL"
274
+ // eslint-disable-next-line func-names
275
+ ].forEach((e) => {
276
+ He[e] = { value: e };
277
+ });
278
+ Object.defineProperties(m, He);
279
+ Object.defineProperty(qe, "isAxiosError", { value: !0 });
280
+ m.from = (e, t, n, r, s, o) => {
281
+ const i = Object.create(qe);
282
+ return a.toFlatObject(e, i, function(f) {
283
+ return f !== Error.prototype;
284
+ }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
285
+ };
286
+ const Ht = null;
287
+ function re(e) {
288
+ return a.isPlainObject(e) || a.isArray(e);
289
+ }
290
+ function Ie(e) {
291
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
292
+ }
293
+ function be(e, t, n) {
294
+ return e ? e.concat(t).map(function(s, o) {
295
+ return s = Ie(s), !n && o ? "[" + s + "]" : s;
296
+ }).join(n ? "." : "") : t;
297
+ }
298
+ function It(e) {
299
+ return a.isArray(e) && !e.some(re);
300
+ }
301
+ const Mt = a.toFlatObject(a, {}, null, function(t) {
302
+ return /^is[A-Z]/.test(t);
303
+ });
304
+ function G(e, t, n) {
305
+ if (!a.isObject(e))
306
+ throw new TypeError("target must be an object");
307
+ t = t || new FormData(), n = a.toFlatObject(n, {
308
+ metaTokens: !0,
309
+ dots: !1,
310
+ indexes: !1
311
+ }, !1, function(y, d) {
312
+ return !a.isUndefined(d[y]);
313
+ });
314
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
315
+ if (!a.isFunction(s))
316
+ throw new TypeError("visitor must be a function");
317
+ function u(h) {
318
+ if (h === null) return "";
319
+ if (a.isDate(h))
320
+ return h.toISOString();
321
+ if (!f && a.isBlob(h))
322
+ throw new m("Blob is not supported. Use a Buffer instead.");
323
+ return a.isArrayBuffer(h) || a.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
324
+ }
325
+ function l(h, y, d) {
326
+ let S = h;
327
+ if (h && !d && typeof h == "object") {
328
+ if (a.endsWith(y, "{}"))
329
+ y = r ? y : y.slice(0, -2), h = JSON.stringify(h);
330
+ else if (a.isArray(h) && It(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (S = a.toArray(h)))
331
+ return y = Ie(y), S.forEach(function(w, A) {
332
+ !(a.isUndefined(w) || w === null) && t.append(
333
+ // eslint-disable-next-line no-nested-ternary
334
+ i === !0 ? be([y], A, o) : i === null ? y : y + "[]",
335
+ u(w)
336
+ );
337
+ }), !1;
338
+ }
339
+ return re(h) ? !0 : (t.append(be(d, y, o), u(h)), !1);
340
+ }
341
+ const p = [], b = Object.assign(Mt, {
342
+ defaultVisitor: l,
343
+ convertValue: u,
344
+ isVisitable: re
345
+ });
346
+ function E(h, y) {
347
+ if (!a.isUndefined(h)) {
348
+ if (p.indexOf(h) !== -1)
349
+ throw Error("Circular reference detected in " + y.join("."));
350
+ p.push(h), a.forEach(h, function(S, O) {
351
+ (!(a.isUndefined(S) || S === null) && s.call(
352
+ t,
353
+ S,
354
+ a.isString(O) ? O.trim() : O,
355
+ y,
356
+ b
357
+ )) === !0 && E(S, y ? y.concat(O) : [O]);
358
+ }), p.pop();
359
+ }
360
+ }
361
+ if (!a.isObject(e))
362
+ throw new TypeError("data must be an object");
363
+ return E(e), t;
364
+ }
365
+ function Ee(e) {
366
+ const t = {
367
+ "!": "%21",
368
+ "'": "%27",
369
+ "(": "%28",
370
+ ")": "%29",
371
+ "~": "%7E",
372
+ "%20": "+",
373
+ "%00": "\0"
374
+ };
375
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
376
+ return t[r];
377
+ });
378
+ }
379
+ function le(e, t) {
380
+ this._pairs = [], e && G(e, this, t);
381
+ }
382
+ const Me = le.prototype;
383
+ Me.append = function(t, n) {
384
+ this._pairs.push([t, n]);
385
+ };
386
+ Me.toString = function(t) {
387
+ const n = t ? function(r) {
388
+ return t.call(this, r, Ee);
389
+ } : Ee;
390
+ return this._pairs.map(function(s) {
391
+ return n(s[0]) + "=" + n(s[1]);
392
+ }, "").join("&");
393
+ };
394
+ function zt(e) {
395
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
396
+ }
397
+ function ze(e, t, n) {
398
+ if (!t)
399
+ return e;
400
+ const r = n && n.encode || zt, s = n && n.serialize;
401
+ let o;
402
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new le(t, n).toString(r), o) {
403
+ const i = e.indexOf("#");
404
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
405
+ }
406
+ return e;
407
+ }
408
+ class Re {
409
+ constructor() {
410
+ this.handlers = [];
411
+ }
412
+ /**
413
+ * Add a new interceptor to the stack
414
+ *
415
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
416
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
417
+ *
418
+ * @return {Number} An ID used to remove interceptor later
419
+ */
420
+ use(t, n, r) {
421
+ return this.handlers.push({
422
+ fulfilled: t,
423
+ rejected: n,
424
+ synchronous: r ? r.synchronous : !1,
425
+ runWhen: r ? r.runWhen : null
426
+ }), this.handlers.length - 1;
427
+ }
428
+ /**
429
+ * Remove an interceptor from the stack
430
+ *
431
+ * @param {Number} id The ID that was returned by `use`
432
+ *
433
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
434
+ */
435
+ eject(t) {
436
+ this.handlers[t] && (this.handlers[t] = null);
437
+ }
438
+ /**
439
+ * Clear all interceptors from the stack
440
+ *
441
+ * @returns {void}
442
+ */
443
+ clear() {
444
+ this.handlers && (this.handlers = []);
445
+ }
446
+ /**
447
+ * Iterate over all the registered interceptors
448
+ *
449
+ * This method is particularly useful for skipping over any
450
+ * interceptors that may have become `null` calling `eject`.
451
+ *
452
+ * @param {Function} fn The function to call for each interceptor
453
+ *
454
+ * @returns {void}
455
+ */
456
+ forEach(t) {
457
+ a.forEach(this.handlers, function(r) {
458
+ r !== null && t(r);
459
+ });
460
+ }
461
+ }
462
+ const Je = {
463
+ silentJSONParsing: !0,
464
+ forcedJSONParsing: !0,
465
+ clarifyTimeoutError: !1
466
+ }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : le, Vt = typeof FormData < "u" ? FormData : null, $t = typeof Blob < "u" ? Blob : null, vt = {
467
+ isBrowser: !0,
468
+ classes: {
469
+ URLSearchParams: Jt,
470
+ FormData: Vt,
471
+ Blob: $t
472
+ },
473
+ protocols: ["http", "https", "file", "blob", "url", "data"]
474
+ }, fe = typeof window < "u" && typeof document < "u", Wt = ((e) => fe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Kt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
475
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = fe && window.location.href || "http://localhost", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
476
+ __proto__: null,
477
+ hasBrowserEnv: fe,
478
+ hasStandardBrowserEnv: Wt,
479
+ hasStandardBrowserWebWorkerEnv: Kt,
480
+ origin: Gt
481
+ }, Symbol.toStringTag, { value: "Module" })), x = {
482
+ ...Xt,
483
+ ...vt
484
+ };
485
+ function Qt(e, t) {
486
+ return G(e, new x.classes.URLSearchParams(), Object.assign({
487
+ visitor: function(n, r, s, o) {
488
+ return x.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
489
+ }
490
+ }, t));
491
+ }
492
+ function Zt(e) {
493
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
494
+ }
495
+ function Yt(e) {
496
+ const t = {}, n = Object.keys(e);
497
+ let r;
498
+ const s = n.length;
499
+ let o;
500
+ for (r = 0; r < s; r++)
501
+ o = n[r], t[o] = e[o];
502
+ return t;
503
+ }
504
+ function Ve(e) {
505
+ function t(n, r, s, o) {
506
+ let i = n[o++];
507
+ if (i === "__proto__") return !0;
508
+ const c = Number.isFinite(+i), f = o >= n.length;
509
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Yt(s[i])), !c);
510
+ }
511
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
512
+ const n = {};
513
+ return a.forEachEntry(e, (r, s) => {
514
+ t(Zt(r), s, n, 0);
515
+ }), n;
516
+ }
517
+ return null;
518
+ }
519
+ function en(e, t, n) {
520
+ if (a.isString(e))
521
+ try {
522
+ return (t || JSON.parse)(e), a.trim(e);
523
+ } catch (r) {
524
+ if (r.name !== "SyntaxError")
525
+ throw r;
526
+ }
527
+ return (n || JSON.stringify)(e);
528
+ }
529
+ const I = {
530
+ transitional: Je,
531
+ adapter: ["xhr", "http", "fetch"],
532
+ transformRequest: [function(t, n) {
533
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
534
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
535
+ return s ? JSON.stringify(Ve(t)) : t;
536
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
537
+ return t;
538
+ if (a.isArrayBufferView(t))
539
+ return t.buffer;
540
+ if (a.isURLSearchParams(t))
541
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
542
+ let c;
543
+ if (o) {
544
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
545
+ return Qt(t, this.formSerializer).toString();
546
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
547
+ const f = this.env && this.env.FormData;
548
+ return G(
549
+ c ? { "files[]": t } : t,
550
+ f && new f(),
551
+ this.formSerializer
552
+ );
553
+ }
554
+ }
555
+ return o || s ? (n.setContentType("application/json", !1), en(t)) : t;
556
+ }],
557
+ transformResponse: [function(t) {
558
+ const n = this.transitional || I.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
559
+ if (a.isResponse(t) || a.isReadableStream(t))
560
+ return t;
561
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
562
+ const i = !(n && n.silentJSONParsing) && s;
563
+ try {
564
+ return JSON.parse(t);
565
+ } catch (c) {
566
+ if (i)
567
+ throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
568
+ }
569
+ }
570
+ return t;
571
+ }],
572
+ /**
573
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
574
+ * timeout is not created.
575
+ */
576
+ timeout: 0,
577
+ xsrfCookieName: "XSRF-TOKEN",
578
+ xsrfHeaderName: "X-XSRF-TOKEN",
579
+ maxContentLength: -1,
580
+ maxBodyLength: -1,
581
+ env: {
582
+ FormData: x.classes.FormData,
583
+ Blob: x.classes.Blob
584
+ },
585
+ validateStatus: function(t) {
586
+ return t >= 200 && t < 300;
587
+ },
588
+ headers: {
589
+ common: {
590
+ Accept: "application/json, text/plain, */*",
591
+ "Content-Type": void 0
592
+ }
593
+ }
594
+ };
595
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
596
+ I.headers[e] = {};
597
+ });
598
+ const tn = a.toObjectSet([
599
+ "age",
600
+ "authorization",
601
+ "content-length",
602
+ "content-type",
603
+ "etag",
604
+ "expires",
605
+ "from",
606
+ "host",
607
+ "if-modified-since",
608
+ "if-unmodified-since",
609
+ "last-modified",
610
+ "location",
611
+ "max-forwards",
612
+ "proxy-authorization",
613
+ "referer",
614
+ "retry-after",
615
+ "user-agent"
616
+ ]), nn = (e) => {
617
+ const t = {};
618
+ let n, r, s;
619
+ return e && e.split(`
620
+ `).forEach(function(i) {
621
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && tn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
622
+ }), t;
623
+ }, Se = Symbol("internals");
624
+ function j(e) {
625
+ return e && String(e).trim().toLowerCase();
626
+ }
627
+ function J(e) {
628
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
629
+ }
630
+ function rn(e) {
631
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
632
+ let r;
633
+ for (; r = n.exec(e); )
634
+ t[r[1]] = r[2];
635
+ return t;
636
+ }
637
+ const sn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
638
+ function Y(e, t, n, r, s) {
639
+ if (a.isFunction(r))
640
+ return r.call(this, t, n);
641
+ if (s && (t = n), !!a.isString(t)) {
642
+ if (a.isString(r))
643
+ return t.indexOf(r) !== -1;
644
+ if (a.isRegExp(r))
645
+ return r.test(t);
646
+ }
647
+ }
648
+ function on(e) {
649
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
650
+ }
651
+ function an(e, t) {
652
+ const n = a.toCamelCase(" " + t);
653
+ ["get", "set", "has"].forEach((r) => {
654
+ Object.defineProperty(e, r + n, {
655
+ value: function(s, o, i) {
656
+ return this[r].call(this, t, s, o, i);
657
+ },
658
+ configurable: !0
659
+ });
660
+ });
661
+ }
662
+ class g {
663
+ constructor(t) {
664
+ t && this.set(t);
665
+ }
666
+ set(t, n, r) {
667
+ const s = this;
668
+ function o(c, f, u) {
669
+ const l = j(f);
670
+ if (!l)
671
+ throw new Error("header name must be a non-empty string");
672
+ const p = a.findKey(s, l);
673
+ (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = J(c));
674
+ }
675
+ const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
676
+ if (a.isPlainObject(t) || t instanceof this.constructor)
677
+ i(t, n);
678
+ else if (a.isString(t) && (t = t.trim()) && !sn(t))
679
+ i(nn(t), n);
680
+ else if (a.isHeaders(t))
681
+ for (const [c, f] of t.entries())
682
+ o(f, c, r);
683
+ else
684
+ t != null && o(n, t, r);
685
+ return this;
686
+ }
687
+ get(t, n) {
688
+ if (t = j(t), t) {
689
+ const r = a.findKey(this, t);
690
+ if (r) {
691
+ const s = this[r];
692
+ if (!n)
693
+ return s;
694
+ if (n === !0)
695
+ return rn(s);
696
+ if (a.isFunction(n))
697
+ return n.call(this, s, r);
698
+ if (a.isRegExp(n))
699
+ return n.exec(s);
700
+ throw new TypeError("parser must be boolean|regexp|function");
701
+ }
702
+ }
703
+ }
704
+ has(t, n) {
705
+ if (t = j(t), t) {
706
+ const r = a.findKey(this, t);
707
+ return !!(r && this[r] !== void 0 && (!n || Y(this, this[r], r, n)));
708
+ }
709
+ return !1;
710
+ }
711
+ delete(t, n) {
712
+ const r = this;
713
+ let s = !1;
714
+ function o(i) {
715
+ if (i = j(i), i) {
716
+ const c = a.findKey(r, i);
717
+ c && (!n || Y(r, r[c], c, n)) && (delete r[c], s = !0);
718
+ }
719
+ }
720
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
721
+ }
722
+ clear(t) {
723
+ const n = Object.keys(this);
724
+ let r = n.length, s = !1;
725
+ for (; r--; ) {
726
+ const o = n[r];
727
+ (!t || Y(this, this[o], o, t, !0)) && (delete this[o], s = !0);
728
+ }
729
+ return s;
730
+ }
731
+ normalize(t) {
732
+ const n = this, r = {};
733
+ return a.forEach(this, (s, o) => {
734
+ const i = a.findKey(r, o);
735
+ if (i) {
736
+ n[i] = J(s), delete n[o];
737
+ return;
738
+ }
739
+ const c = t ? on(o) : String(o).trim();
740
+ c !== o && delete n[o], n[c] = J(s), r[c] = !0;
741
+ }), this;
742
+ }
743
+ concat(...t) {
744
+ return this.constructor.concat(this, ...t);
745
+ }
746
+ toJSON(t) {
747
+ const n = /* @__PURE__ */ Object.create(null);
748
+ return a.forEach(this, (r, s) => {
749
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
750
+ }), n;
751
+ }
752
+ [Symbol.iterator]() {
753
+ return Object.entries(this.toJSON())[Symbol.iterator]();
754
+ }
755
+ toString() {
756
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
757
+ `);
758
+ }
759
+ get [Symbol.toStringTag]() {
760
+ return "AxiosHeaders";
761
+ }
762
+ static from(t) {
763
+ return t instanceof this ? t : new this(t);
764
+ }
765
+ static concat(t, ...n) {
766
+ const r = new this(t);
767
+ return n.forEach((s) => r.set(s)), r;
768
+ }
769
+ static accessor(t) {
770
+ const r = (this[Se] = this[Se] = {
771
+ accessors: {}
772
+ }).accessors, s = this.prototype;
773
+ function o(i) {
774
+ const c = j(i);
775
+ r[c] || (an(s, i), r[c] = !0);
776
+ }
777
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
778
+ }
779
+ }
780
+ g.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
781
+ a.reduceDescriptors(g.prototype, ({ value: e }, t) => {
782
+ let n = t[0].toUpperCase() + t.slice(1);
783
+ return {
784
+ get: () => e,
785
+ set(r) {
786
+ this[n] = r;
787
+ }
788
+ };
789
+ });
790
+ a.freezeMethods(g);
791
+ function ee(e, t) {
792
+ const n = this || I, r = t || n, s = g.from(r.headers);
793
+ let o = r.data;
794
+ return a.forEach(e, function(c) {
795
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
796
+ }), s.normalize(), o;
797
+ }
798
+ function $e(e) {
799
+ return !!(e && e.__CANCEL__);
800
+ }
801
+ function k(e, t, n) {
802
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
803
+ }
804
+ a.inherits(k, m, {
805
+ __CANCEL__: !0
806
+ });
807
+ function ve(e, t, n) {
808
+ const r = n.config.validateStatus;
809
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
810
+ "Request failed with status code " + n.status,
811
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
812
+ n.config,
813
+ n.request,
814
+ n
815
+ ));
816
+ }
817
+ function cn(e) {
818
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
819
+ return t && t[1] || "";
820
+ }
821
+ function un(e, t) {
822
+ e = e || 10;
823
+ const n = new Array(e), r = new Array(e);
824
+ let s = 0, o = 0, i;
825
+ return t = t !== void 0 ? t : 1e3, function(f) {
826
+ const u = Date.now(), l = r[o];
827
+ i || (i = u), n[s] = f, r[s] = u;
828
+ let p = o, b = 0;
829
+ for (; p !== s; )
830
+ b += n[p++], p = p % e;
831
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
832
+ return;
833
+ const E = l && u - l;
834
+ return E ? Math.round(b * 1e3 / E) : void 0;
835
+ };
836
+ }
837
+ function ln(e, t) {
838
+ let n = 0, r = 1e3 / t, s, o;
839
+ const i = (u, l = Date.now()) => {
840
+ n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
841
+ };
842
+ return [(...u) => {
843
+ const l = Date.now(), p = l - n;
844
+ p >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
845
+ o = null, i(s);
846
+ }, r - p)));
847
+ }, () => s && i(s)];
848
+ }
849
+ const V = (e, t, n = 3) => {
850
+ let r = 0;
851
+ const s = un(50, 250);
852
+ return ln((o) => {
853
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
854
+ r = i;
855
+ const p = {
856
+ loaded: i,
857
+ total: c,
858
+ progress: c ? i / c : void 0,
859
+ bytes: f,
860
+ rate: u || void 0,
861
+ estimated: u && c && l ? (c - i) / u : void 0,
862
+ event: o,
863
+ lengthComputable: c != null,
864
+ [t ? "download" : "upload"]: !0
865
+ };
866
+ e(p);
867
+ }, n);
868
+ }, ge = (e, t) => {
869
+ const n = e != null;
870
+ return [(r) => t[0]({
871
+ lengthComputable: n,
872
+ total: e,
873
+ loaded: r
874
+ }), t[1]];
875
+ }, Oe = (e) => (...t) => a.asap(() => e(...t)), fn = x.hasStandardBrowserEnv ? (
876
+ // Standard browser envs have full support of the APIs needed to test
877
+ // whether the request URL is of the same origin as current location.
878
+ function() {
879
+ const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
880
+ let r;
881
+ function s(o) {
882
+ let i = o;
883
+ return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
884
+ href: n.href,
885
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
886
+ host: n.host,
887
+ search: n.search ? n.search.replace(/^\?/, "") : "",
888
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
889
+ hostname: n.hostname,
890
+ port: n.port,
891
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
892
+ };
893
+ }
894
+ return r = s(window.location.href), function(i) {
895
+ const c = a.isString(i) ? s(i) : i;
896
+ return c.protocol === r.protocol && c.host === r.host;
897
+ };
898
+ }()
899
+ ) : (
900
+ // Non standard browser envs (web workers, react-native) lack needed support.
901
+ /* @__PURE__ */ function() {
902
+ return function() {
903
+ return !0;
904
+ };
905
+ }()
906
+ ), dn = x.hasStandardBrowserEnv ? (
907
+ // Standard browser envs support document.cookie
908
+ {
909
+ write(e, t, n, r, s, o) {
910
+ const i = [e + "=" + encodeURIComponent(t)];
911
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
912
+ },
913
+ read(e) {
914
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
915
+ return t ? decodeURIComponent(t[3]) : null;
916
+ },
917
+ remove(e) {
918
+ this.write(e, "", Date.now() - 864e5);
919
+ }
920
+ }
921
+ ) : (
922
+ // Non-standard browser env (web workers, react-native) lack needed support.
923
+ {
924
+ write() {
925
+ },
926
+ read() {
927
+ return null;
928
+ },
929
+ remove() {
930
+ }
931
+ }
932
+ );
933
+ function pn(e) {
934
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
935
+ }
936
+ function hn(e, t) {
937
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
938
+ }
939
+ function We(e, t) {
940
+ return e && !pn(t) ? hn(e, t) : t;
941
+ }
942
+ const Te = (e) => e instanceof g ? { ...e } : e;
943
+ function B(e, t) {
944
+ t = t || {};
945
+ const n = {};
946
+ function r(u, l, p) {
947
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: p }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
948
+ }
949
+ function s(u, l, p) {
950
+ if (a.isUndefined(l)) {
951
+ if (!a.isUndefined(u))
952
+ return r(void 0, u, p);
953
+ } else return r(u, l, p);
954
+ }
955
+ function o(u, l) {
956
+ if (!a.isUndefined(l))
957
+ return r(void 0, l);
958
+ }
959
+ function i(u, l) {
960
+ if (a.isUndefined(l)) {
961
+ if (!a.isUndefined(u))
962
+ return r(void 0, u);
963
+ } else return r(void 0, l);
964
+ }
965
+ function c(u, l, p) {
966
+ if (p in t)
967
+ return r(u, l);
968
+ if (p in e)
969
+ return r(void 0, u);
970
+ }
971
+ const f = {
972
+ url: o,
973
+ method: o,
974
+ data: o,
975
+ baseURL: i,
976
+ transformRequest: i,
977
+ transformResponse: i,
978
+ paramsSerializer: i,
979
+ timeout: i,
980
+ timeoutMessage: i,
981
+ withCredentials: i,
982
+ withXSRFToken: i,
983
+ adapter: i,
984
+ responseType: i,
985
+ xsrfCookieName: i,
986
+ xsrfHeaderName: i,
987
+ onUploadProgress: i,
988
+ onDownloadProgress: i,
989
+ decompress: i,
990
+ maxContentLength: i,
991
+ maxBodyLength: i,
992
+ beforeRedirect: i,
993
+ transport: i,
994
+ httpAgent: i,
995
+ httpsAgent: i,
996
+ cancelToken: i,
997
+ socketPath: i,
998
+ responseEncoding: i,
999
+ validateStatus: c,
1000
+ headers: (u, l) => s(Te(u), Te(l), !0)
1001
+ };
1002
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1003
+ const p = f[l] || s, b = p(e[l], t[l], l);
1004
+ a.isUndefined(b) && p !== c || (n[l] = b);
1005
+ }), n;
1006
+ }
1007
+ const Ke = (e) => {
1008
+ const t = B({}, e);
1009
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
1010
+ t.headers = i = g.from(i), t.url = ze(We(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
1011
+ "Authorization",
1012
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1013
+ );
1014
+ let f;
1015
+ if (a.isFormData(n)) {
1016
+ if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
1017
+ i.setContentType(void 0);
1018
+ else if ((f = i.getContentType()) !== !1) {
1019
+ const [u, ...l] = f ? f.split(";").map((p) => p.trim()).filter(Boolean) : [];
1020
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1021
+ }
1022
+ }
1023
+ if (x.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fn(t.url))) {
1024
+ const u = s && o && dn.read(o);
1025
+ u && i.set(s, u);
1026
+ }
1027
+ return t;
1028
+ }, mn = typeof XMLHttpRequest < "u", yn = mn && function(e) {
1029
+ return new Promise(function(n, r) {
1030
+ const s = Ke(e);
1031
+ let o = s.data;
1032
+ const i = g.from(s.headers).normalize();
1033
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, p, b, E, h;
1034
+ function y() {
1035
+ E && E(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1036
+ }
1037
+ let d = new XMLHttpRequest();
1038
+ d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
1039
+ function S() {
1040
+ if (!d)
1041
+ return;
1042
+ const w = g.from(
1043
+ "getAllResponseHeaders" in d && d.getAllResponseHeaders()
1044
+ ), L = {
1045
+ data: !c || c === "text" || c === "json" ? d.responseText : d.response,
1046
+ status: d.status,
1047
+ statusText: d.statusText,
1048
+ headers: w,
1049
+ config: e,
1050
+ request: d
1051
+ };
1052
+ ve(function(P) {
1053
+ n(P), y();
1054
+ }, function(P) {
1055
+ r(P), y();
1056
+ }, L), d = null;
1057
+ }
1058
+ "onloadend" in d ? d.onloadend = S : d.onreadystatechange = function() {
1059
+ !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(S);
1060
+ }, d.onabort = function() {
1061
+ d && (r(new m("Request aborted", m.ECONNABORTED, e, d)), d = null);
1062
+ }, d.onerror = function() {
1063
+ r(new m("Network Error", m.ERR_NETWORK, e, d)), d = null;
1064
+ }, d.ontimeout = function() {
1065
+ let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1066
+ const L = s.transitional || Je;
1067
+ s.timeoutErrorMessage && (A = s.timeoutErrorMessage), r(new m(
1068
+ A,
1069
+ L.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1070
+ e,
1071
+ d
1072
+ )), d = null;
1073
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(A, L) {
1074
+ d.setRequestHeader(L, A);
1075
+ }), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), u && ([b, h] = V(u, !0), d.addEventListener("progress", b)), f && d.upload && ([p, E] = V(f), d.upload.addEventListener("progress", p), d.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (w) => {
1076
+ d && (r(!w || w.type ? new k(null, e, d) : w), d.abort(), d = null);
1077
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1078
+ const O = cn(s.url);
1079
+ if (O && x.protocols.indexOf(O) === -1) {
1080
+ r(new m("Unsupported protocol " + O + ":", m.ERR_BAD_REQUEST, e));
1081
+ return;
1082
+ }
1083
+ d.send(o || null);
1084
+ });
1085
+ }, wn = (e, t) => {
1086
+ let n = new AbortController(), r;
1087
+ const s = function(f) {
1088
+ if (!r) {
1089
+ r = !0, i();
1090
+ const u = f instanceof Error ? f : this.reason;
1091
+ n.abort(u instanceof m ? u : new k(u instanceof Error ? u.message : u));
1092
+ }
1093
+ };
1094
+ let o = t && setTimeout(() => {
1095
+ s(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1096
+ }, t);
1097
+ const i = () => {
1098
+ e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1099
+ f && (f.removeEventListener ? f.removeEventListener("abort", s) : f.unsubscribe(s));
1100
+ }), e = null);
1101
+ };
1102
+ e.forEach((f) => f && f.addEventListener && f.addEventListener("abort", s));
1103
+ const { signal: c } = n;
1104
+ return c.unsubscribe = i, [c, () => {
1105
+ o && clearTimeout(o), o = null;
1106
+ }];
1107
+ }, bn = function* (e, t) {
1108
+ let n = e.byteLength;
1109
+ if (!t || n < t) {
1110
+ yield e;
1111
+ return;
1112
+ }
1113
+ let r = 0, s;
1114
+ for (; r < n; )
1115
+ s = r + t, yield e.slice(r, s), r = s;
1116
+ }, En = async function* (e, t, n) {
1117
+ for await (const r of e)
1118
+ yield* bn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
1119
+ }, Ae = (e, t, n, r, s) => {
1120
+ const o = En(e, t, s);
1121
+ let i = 0, c, f = (u) => {
1122
+ c || (c = !0, r && r(u));
1123
+ };
1124
+ return new ReadableStream({
1125
+ async pull(u) {
1126
+ try {
1127
+ const { done: l, value: p } = await o.next();
1128
+ if (l) {
1129
+ f(), u.close();
1130
+ return;
1131
+ }
1132
+ let b = p.byteLength;
1133
+ if (n) {
1134
+ let E = i += b;
1135
+ n(E);
1136
+ }
1137
+ u.enqueue(new Uint8Array(p));
1138
+ } catch (l) {
1139
+ throw f(l), l;
1140
+ }
1141
+ },
1142
+ cancel(u) {
1143
+ return f(u), o.return();
1144
+ }
1145
+ }, {
1146
+ highWaterMark: 2
1147
+ });
1148
+ }, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ge = X && typeof ReadableStream == "function", se = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Xe = (e, ...t) => {
1149
+ try {
1150
+ return !!e(...t);
1151
+ } catch {
1152
+ return !1;
1153
+ }
1154
+ }, Rn = Ge && Xe(() => {
1155
+ let e = !1;
1156
+ const t = new Request(x.origin, {
1157
+ body: new ReadableStream(),
1158
+ method: "POST",
1159
+ get duplex() {
1160
+ return e = !0, "half";
1161
+ }
1162
+ }).headers.has("Content-Type");
1163
+ return e && !t;
1164
+ }), xe = 64 * 1024, oe = Ge && Xe(() => a.isReadableStream(new Response("").body)), $ = {
1165
+ stream: oe && ((e) => e.body)
1166
+ };
1167
+ X && ((e) => {
1168
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1169
+ !$[t] && ($[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1170
+ throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1171
+ });
1172
+ });
1173
+ })(new Response());
1174
+ const Sn = async (e) => {
1175
+ if (e == null)
1176
+ return 0;
1177
+ if (a.isBlob(e))
1178
+ return e.size;
1179
+ if (a.isSpecCompliantForm(e))
1180
+ return (await new Request(e).arrayBuffer()).byteLength;
1181
+ if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1182
+ return e.byteLength;
1183
+ if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1184
+ return (await se(e)).byteLength;
1185
+ }, gn = async (e, t) => {
1186
+ const n = a.toFiniteNumber(e.getContentLength());
1187
+ return n ?? Sn(t);
1188
+ }, On = X && (async (e) => {
1189
+ let {
1190
+ url: t,
1191
+ method: n,
1192
+ data: r,
1193
+ signal: s,
1194
+ cancelToken: o,
1195
+ timeout: i,
1196
+ onDownloadProgress: c,
1197
+ onUploadProgress: f,
1198
+ responseType: u,
1199
+ headers: l,
1200
+ withCredentials: p = "same-origin",
1201
+ fetchOptions: b
1202
+ } = Ke(e);
1203
+ u = u ? (u + "").toLowerCase() : "text";
1204
+ let [E, h] = s || o || i ? wn([s, o], i) : [], y, d;
1205
+ const S = () => {
1206
+ !y && setTimeout(() => {
1207
+ E && E.unsubscribe();
1208
+ }), y = !0;
1209
+ };
1210
+ let O;
1211
+ try {
1212
+ if (f && Rn && n !== "get" && n !== "head" && (O = await gn(l, r)) !== 0) {
1213
+ let N = new Request(t, {
1214
+ method: "POST",
1215
+ body: r,
1216
+ duplex: "half"
1217
+ }), P;
1218
+ if (a.isFormData(r) && (P = N.headers.get("content-type")) && l.setContentType(P), N.body) {
1219
+ const [Q, M] = ge(
1220
+ O,
1221
+ V(Oe(f))
1222
+ );
1223
+ r = Ae(N.body, xe, Q, M, se);
1224
+ }
1225
+ }
1226
+ a.isString(p) || (p = p ? "include" : "omit"), d = new Request(t, {
1227
+ ...b,
1228
+ signal: E,
1229
+ method: n.toUpperCase(),
1230
+ headers: l.normalize().toJSON(),
1231
+ body: r,
1232
+ duplex: "half",
1233
+ credentials: p
1234
+ });
1235
+ let w = await fetch(d);
1236
+ const A = oe && (u === "stream" || u === "response");
1237
+ if (oe && (c || A)) {
1238
+ const N = {};
1239
+ ["status", "statusText", "headers"].forEach((he) => {
1240
+ N[he] = w[he];
1241
+ });
1242
+ const P = a.toFiniteNumber(w.headers.get("content-length")), [Q, M] = c && ge(
1243
+ P,
1244
+ V(Oe(c), !0)
1245
+ ) || [];
1246
+ w = new Response(
1247
+ Ae(w.body, xe, Q, () => {
1248
+ M && M(), A && S();
1249
+ }, se),
1250
+ N
1251
+ );
1252
+ }
1253
+ u = u || "text";
1254
+ let L = await $[a.findKey($, u) || "text"](w, e);
1255
+ return !A && S(), h && h(), await new Promise((N, P) => {
1256
+ ve(N, P, {
1257
+ data: L,
1258
+ headers: g.from(w.headers),
1259
+ status: w.status,
1260
+ statusText: w.statusText,
1261
+ config: e,
1262
+ request: d
1263
+ });
1264
+ });
1265
+ } catch (w) {
1266
+ throw S(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
1267
+ new m("Network Error", m.ERR_NETWORK, e, d),
1268
+ {
1269
+ cause: w.cause || w
1270
+ }
1271
+ ) : m.from(w, w && w.code, e, d);
1272
+ }
1273
+ }), ie = {
1274
+ http: Ht,
1275
+ xhr: yn,
1276
+ fetch: On
1277
+ };
1278
+ a.forEach(ie, (e, t) => {
1279
+ if (e) {
1280
+ try {
1281
+ Object.defineProperty(e, "name", { value: t });
1282
+ } catch {
1283
+ }
1284
+ Object.defineProperty(e, "adapterName", { value: t });
1285
+ }
1286
+ });
1287
+ const Ce = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !1, Qe = {
1288
+ getAdapter: (e) => {
1289
+ e = a.isArray(e) ? e : [e];
1290
+ const { length: t } = e;
1291
+ let n, r;
1292
+ const s = {};
1293
+ for (let o = 0; o < t; o++) {
1294
+ n = e[o];
1295
+ let i;
1296
+ if (r = n, !Tn(n) && (r = ie[(i = String(n)).toLowerCase()], r === void 0))
1297
+ throw new m(`Unknown adapter '${i}'`);
1298
+ if (r)
1299
+ break;
1300
+ s[i || "#" + o] = r;
1301
+ }
1302
+ if (!r) {
1303
+ const o = Object.entries(s).map(
1304
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1305
+ );
1306
+ let i = t ? o.length > 1 ? `since :
1307
+ ` + o.map(Ce).join(`
1308
+ `) : " " + Ce(o[0]) : "as no adapter specified";
1309
+ throw new m(
1310
+ "There is no suitable adapter to dispatch the request " + i,
1311
+ "ERR_NOT_SUPPORT"
1312
+ );
1313
+ }
1314
+ return r;
1315
+ },
1316
+ adapters: ie
1317
+ };
1318
+ function te(e) {
1319
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1320
+ throw new k(null, e);
1321
+ }
1322
+ function Ne(e) {
1323
+ return te(e), e.headers = g.from(e.headers), e.data = ee.call(
1324
+ e,
1325
+ e.transformRequest
1326
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(e.adapter || I.adapter)(e).then(function(r) {
1327
+ return te(e), r.data = ee.call(
1328
+ e,
1329
+ e.transformResponse,
1330
+ r
1331
+ ), r.headers = g.from(r.headers), r;
1332
+ }, function(r) {
1333
+ return $e(r) || (te(e), r && r.response && (r.response.data = ee.call(
1334
+ e,
1335
+ e.transformResponse,
1336
+ r.response
1337
+ ), r.response.headers = g.from(r.response.headers))), Promise.reject(r);
1338
+ });
1339
+ }
1340
+ const Ze = "1.7.4", de = {};
1341
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1342
+ de[e] = function(r) {
1343
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1344
+ };
1345
+ });
1346
+ const Pe = {};
1347
+ de.transitional = function(t, n, r) {
1348
+ function s(o, i) {
1349
+ return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1350
+ }
1351
+ return (o, i, c) => {
1352
+ if (t === !1)
1353
+ throw new m(
1354
+ s(i, " has been removed" + (n ? " in " + n : "")),
1355
+ m.ERR_DEPRECATED
1356
+ );
1357
+ return n && !Pe[i] && (Pe[i] = !0, console.warn(
1358
+ s(
1359
+ i,
1360
+ " has been deprecated since v" + n + " and will be removed in the near future"
1361
+ )
1362
+ )), t ? t(o, i, c) : !0;
1363
+ };
1364
+ };
1365
+ function An(e, t, n) {
1366
+ if (typeof e != "object")
1367
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1368
+ const r = Object.keys(e);
1369
+ let s = r.length;
1370
+ for (; s-- > 0; ) {
1371
+ const o = r[s], i = t[o];
1372
+ if (i) {
1373
+ const c = e[o], f = c === void 0 || i(c, o, e);
1374
+ if (f !== !0)
1375
+ throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1376
+ continue;
1377
+ }
1378
+ if (n !== !0)
1379
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1380
+ }
1381
+ }
1382
+ const ae = {
1383
+ assertOptions: An,
1384
+ validators: de
1385
+ }, F = ae.validators;
1386
+ class D {
1387
+ constructor(t) {
1388
+ this.defaults = t, this.interceptors = {
1389
+ request: new Re(),
1390
+ response: new Re()
1391
+ };
1392
+ }
1393
+ /**
1394
+ * Dispatch a request
1395
+ *
1396
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1397
+ * @param {?Object} config
1398
+ *
1399
+ * @returns {Promise} The Promise to be fulfilled
1400
+ */
1401
+ async request(t, n) {
1402
+ try {
1403
+ return await this._request(t, n);
1404
+ } catch (r) {
1405
+ if (r instanceof Error) {
1406
+ let s;
1407
+ Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1408
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1409
+ try {
1410
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1411
+ ` + o) : r.stack = o;
1412
+ } catch {
1413
+ }
1414
+ }
1415
+ throw r;
1416
+ }
1417
+ }
1418
+ _request(t, n) {
1419
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
1420
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1421
+ r !== void 0 && ae.assertOptions(r, {
1422
+ silentJSONParsing: F.transitional(F.boolean),
1423
+ forcedJSONParsing: F.transitional(F.boolean),
1424
+ clarifyTimeoutError: F.transitional(F.boolean)
1425
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1426
+ serialize: s
1427
+ } : ae.assertOptions(s, {
1428
+ encode: F.function,
1429
+ serialize: F.function
1430
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1431
+ let i = o && a.merge(
1432
+ o.common,
1433
+ o[n.method]
1434
+ );
1435
+ o && a.forEach(
1436
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1437
+ (h) => {
1438
+ delete o[h];
1439
+ }
1440
+ ), n.headers = g.concat(i, o);
1441
+ const c = [];
1442
+ let f = !0;
1443
+ this.interceptors.request.forEach(function(y) {
1444
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1445
+ });
1446
+ const u = [];
1447
+ this.interceptors.response.forEach(function(y) {
1448
+ u.push(y.fulfilled, y.rejected);
1449
+ });
1450
+ let l, p = 0, b;
1451
+ if (!f) {
1452
+ const h = [Ne.bind(this), void 0];
1453
+ for (h.unshift.apply(h, c), h.push.apply(h, u), b = h.length, l = Promise.resolve(n); p < b; )
1454
+ l = l.then(h[p++], h[p++]);
1455
+ return l;
1456
+ }
1457
+ b = c.length;
1458
+ let E = n;
1459
+ for (p = 0; p < b; ) {
1460
+ const h = c[p++], y = c[p++];
1461
+ try {
1462
+ E = h(E);
1463
+ } catch (d) {
1464
+ y.call(this, d);
1465
+ break;
1466
+ }
1467
+ }
1468
+ try {
1469
+ l = Ne.call(this, E);
1470
+ } catch (h) {
1471
+ return Promise.reject(h);
1472
+ }
1473
+ for (p = 0, b = u.length; p < b; )
1474
+ l = l.then(u[p++], u[p++]);
1475
+ return l;
1476
+ }
1477
+ getUri(t) {
1478
+ t = B(this.defaults, t);
1479
+ const n = We(t.baseURL, t.url);
1480
+ return ze(n, t.params, t.paramsSerializer);
1481
+ }
1482
+ }
1483
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1484
+ D.prototype[t] = function(n, r) {
1485
+ return this.request(B(r || {}, {
1486
+ method: t,
1487
+ url: n,
1488
+ data: (r || {}).data
1489
+ }));
1490
+ };
1491
+ });
1492
+ a.forEach(["post", "put", "patch"], function(t) {
1493
+ function n(r) {
1494
+ return function(o, i, c) {
1495
+ return this.request(B(c || {}, {
1496
+ method: t,
1497
+ headers: r ? {
1498
+ "Content-Type": "multipart/form-data"
1499
+ } : {},
1500
+ url: o,
1501
+ data: i
1502
+ }));
1503
+ };
1504
+ }
1505
+ D.prototype[t] = n(), D.prototype[t + "Form"] = n(!0);
1506
+ });
1507
+ class pe {
1508
+ constructor(t) {
1509
+ if (typeof t != "function")
1510
+ throw new TypeError("executor must be a function.");
1511
+ let n;
1512
+ this.promise = new Promise(function(o) {
1513
+ n = o;
1514
+ });
1515
+ const r = this;
1516
+ this.promise.then((s) => {
1517
+ if (!r._listeners) return;
1518
+ let o = r._listeners.length;
1519
+ for (; o-- > 0; )
1520
+ r._listeners[o](s);
1521
+ r._listeners = null;
1522
+ }), this.promise.then = (s) => {
1523
+ let o;
1524
+ const i = new Promise((c) => {
1525
+ r.subscribe(c), o = c;
1526
+ }).then(s);
1527
+ return i.cancel = function() {
1528
+ r.unsubscribe(o);
1529
+ }, i;
1530
+ }, t(function(o, i, c) {
1531
+ r.reason || (r.reason = new k(o, i, c), n(r.reason));
1532
+ });
1533
+ }
1534
+ /**
1535
+ * Throws a `CanceledError` if cancellation has been requested.
1536
+ */
1537
+ throwIfRequested() {
1538
+ if (this.reason)
1539
+ throw this.reason;
1540
+ }
1541
+ /**
1542
+ * Subscribe to the cancel signal
1543
+ */
1544
+ subscribe(t) {
1545
+ if (this.reason) {
1546
+ t(this.reason);
1547
+ return;
1548
+ }
1549
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1550
+ }
1551
+ /**
1552
+ * Unsubscribe from the cancel signal
1553
+ */
1554
+ unsubscribe(t) {
1555
+ if (!this._listeners)
1556
+ return;
1557
+ const n = this._listeners.indexOf(t);
1558
+ n !== -1 && this._listeners.splice(n, 1);
1559
+ }
1560
+ /**
1561
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1562
+ * cancels the `CancelToken`.
1563
+ */
1564
+ static source() {
1565
+ let t;
1566
+ return {
1567
+ token: new pe(function(s) {
1568
+ t = s;
1569
+ }),
1570
+ cancel: t
1571
+ };
1572
+ }
1573
+ }
1574
+ function xn(e) {
1575
+ return function(n) {
1576
+ return e.apply(null, n);
1577
+ };
1578
+ }
1579
+ function Cn(e) {
1580
+ return a.isObject(e) && e.isAxiosError === !0;
1581
+ }
1582
+ const ce = {
1583
+ Continue: 100,
1584
+ SwitchingProtocols: 101,
1585
+ Processing: 102,
1586
+ EarlyHints: 103,
1587
+ Ok: 200,
1588
+ Created: 201,
1589
+ Accepted: 202,
1590
+ NonAuthoritativeInformation: 203,
1591
+ NoContent: 204,
1592
+ ResetContent: 205,
1593
+ PartialContent: 206,
1594
+ MultiStatus: 207,
1595
+ AlreadyReported: 208,
1596
+ ImUsed: 226,
1597
+ MultipleChoices: 300,
1598
+ MovedPermanently: 301,
1599
+ Found: 302,
1600
+ SeeOther: 303,
1601
+ NotModified: 304,
1602
+ UseProxy: 305,
1603
+ Unused: 306,
1604
+ TemporaryRedirect: 307,
1605
+ PermanentRedirect: 308,
1606
+ BadRequest: 400,
1607
+ Unauthorized: 401,
1608
+ PaymentRequired: 402,
1609
+ Forbidden: 403,
1610
+ NotFound: 404,
1611
+ MethodNotAllowed: 405,
1612
+ NotAcceptable: 406,
1613
+ ProxyAuthenticationRequired: 407,
1614
+ RequestTimeout: 408,
1615
+ Conflict: 409,
1616
+ Gone: 410,
1617
+ LengthRequired: 411,
1618
+ PreconditionFailed: 412,
1619
+ PayloadTooLarge: 413,
1620
+ UriTooLong: 414,
1621
+ UnsupportedMediaType: 415,
1622
+ RangeNotSatisfiable: 416,
1623
+ ExpectationFailed: 417,
1624
+ ImATeapot: 418,
1625
+ MisdirectedRequest: 421,
1626
+ UnprocessableEntity: 422,
1627
+ Locked: 423,
1628
+ FailedDependency: 424,
1629
+ TooEarly: 425,
1630
+ UpgradeRequired: 426,
1631
+ PreconditionRequired: 428,
1632
+ TooManyRequests: 429,
1633
+ RequestHeaderFieldsTooLarge: 431,
1634
+ UnavailableForLegalReasons: 451,
1635
+ InternalServerError: 500,
1636
+ NotImplemented: 501,
1637
+ BadGateway: 502,
1638
+ ServiceUnavailable: 503,
1639
+ GatewayTimeout: 504,
1640
+ HttpVersionNotSupported: 505,
1641
+ VariantAlsoNegotiates: 506,
1642
+ InsufficientStorage: 507,
1643
+ LoopDetected: 508,
1644
+ NotExtended: 510,
1645
+ NetworkAuthenticationRequired: 511
1646
+ };
1647
+ Object.entries(ce).forEach(([e, t]) => {
1648
+ ce[t] = e;
1649
+ });
1650
+ function Ye(e) {
1651
+ const t = new D(e), n = Fe(D.prototype.request, t);
1652
+ return a.extend(n, D.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1653
+ return Ye(B(e, s));
1654
+ }, n;
1655
+ }
1656
+ const R = Ye(I);
1657
+ R.Axios = D;
1658
+ R.CanceledError = k;
1659
+ R.CancelToken = pe;
1660
+ R.isCancel = $e;
1661
+ R.VERSION = Ze;
1662
+ R.toFormData = G;
1663
+ R.AxiosError = m;
1664
+ R.Cancel = R.CanceledError;
1665
+ R.all = function(t) {
1666
+ return Promise.all(t);
1667
+ };
1668
+ R.spread = xn;
1669
+ R.isAxiosError = Cn;
1670
+ R.mergeConfig = B;
1671
+ R.AxiosHeaders = g;
1672
+ R.formToJSON = (e) => Ve(a.isHTMLForm(e) ? new FormData(e) : e);
1673
+ R.getAdapter = Qe.getAdapter;
1674
+ R.HttpStatusCode = ce;
1675
+ R.default = R;
1676
+ const Pn = (e) => {
1677
+ let t = {};
1678
+ const n = me("streamlineUrl"), r = me("streamlineHeaders"), s = new Proxy({}, {
1679
+ get(o, i) {
1680
+ return o[i] ? o[i] : (...c) => {
1681
+ if (["setFormData", "setData"].includes(i))
1682
+ return t = c[0], s;
1683
+ const u = {
1684
+ headers: {
1685
+ ...r
1686
+ }
1687
+ }, l = R.create({
1688
+ baseURL: n,
1689
+ headers: {
1690
+ ...u.headers
1691
+ }
1692
+ });
1693
+ return window.streamlineAxios = l, l.post("/", {
1694
+ action: i,
1695
+ stream: e,
1696
+ ...t,
1697
+ params: {
1698
+ ...c
1699
+ }
1700
+ });
1701
+ };
1702
+ }
1703
+ });
1704
+ return {
1705
+ service: s
1706
+ };
1707
+ }, Fn = {
1708
+ install(e, t) {
1709
+ e.provide("streamlineUrl", t.streamlineUrl), e.provide("streamlineHeaders", t.streamlineHeaders);
1710
+ }
1711
+ };
1712
+ export {
1713
+ Fn as streamLine,
1714
+ Pn as useStreamline
1715
+ };