media-av 0.0.7 → 0.0.9

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/dist/mediaAV.js CHANGED
@@ -1,7 +1,7 @@
1
- var Jn = Object.defineProperty;
2
- var qn = (t, e, r) => e in t ? Jn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var S = (t, e, r) => (qn(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- function Kn(t, e) {
1
+ var qn = Object.defineProperty;
2
+ var Kn = (t, e, r) => e in t ? qn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var g = (t, e, r) => (Kn(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ function Qn(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const n = e[r];
7
7
  if (typeof n != "string" && !Array.isArray(n)) {
@@ -17,33 +17,33 @@ function Kn(t, e) {
17
17
  }
18
18
  return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
19
19
  }
20
- function Ar(t, e) {
20
+ function _r(t, e) {
21
21
  return function() {
22
22
  return t.apply(e, arguments);
23
23
  };
24
24
  }
25
- const { toString: Qn } = Object.prototype, { getPrototypeOf: Dt } = Object, qe = ((t) => (e) => {
26
- const r = Qn.call(e);
25
+ const { toString: Yn } = Object.prototype, { getPrototypeOf: Dt } = Object, qe = ((t) => (e) => {
26
+ const r = Yn.call(e);
27
27
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
28
- })(/* @__PURE__ */ Object.create(null)), U = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), Ke = (t) => (e) => typeof e === t, { isArray: de } = Array, be = Ke("undefined");
29
- function Yn(t) {
30
- return t !== null && !be(t) && t.constructor !== null && !be(t.constructor) && L(t.constructor.isBuffer) && t.constructor.isBuffer(t);
31
- }
32
- const xr = U("ArrayBuffer");
28
+ })(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), Ke = (t) => (e) => typeof e === t, { isArray: de } = Array, Re = Ke("undefined");
33
29
  function Xn(t) {
30
+ return t !== null && !Re(t) && t.constructor !== null && !Re(t.constructor) && L(t.constructor.isBuffer) && t.constructor.isBuffer(t);
31
+ }
32
+ const xr = B("ArrayBuffer");
33
+ function Zn(t) {
34
34
  let e;
35
35
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && xr(t.buffer), e;
36
36
  }
37
- const Zn = Ke("string"), L = Ke("function"), _r = Ke("number"), Qe = (t) => t !== null && typeof t == "object", ei = (t) => t === !0 || t === !1, De = (t) => {
37
+ const ei = Ke("string"), L = Ke("function"), Dr = Ke("number"), Qe = (t) => t !== null && typeof t == "object", ti = (t) => t === !0 || t === !1, De = (t) => {
38
38
  if (qe(t) !== "object")
39
39
  return !1;
40
40
  const e = Dt(t);
41
41
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
42
- }, ti = U("Date"), ri = U("File"), ni = U("Blob"), ii = U("FileList"), oi = (t) => Qe(t) && L(t.pipe), si = (t) => {
42
+ }, ri = B("Date"), ni = B("File"), ii = B("Blob"), oi = B("FileList"), si = (t) => Qe(t) && L(t.pipe), ai = (t) => {
43
43
  let e;
44
44
  return t && (typeof FormData == "function" && t instanceof FormData || L(t.append) && ((e = qe(t)) === "formdata" || // detect form-data instance
45
45
  e === "object" && L(t.toString) && t.toString() === "[object FormData]"));
46
- }, ai = U("URLSearchParams"), ci = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
46
+ }, ci = B("URLSearchParams"), li = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
47
47
  function Te(t, e, { allOwnKeys: r = !1 } = {}) {
48
48
  if (t === null || typeof t > "u")
49
49
  return;
@@ -58,7 +58,7 @@ function Te(t, e, { allOwnKeys: r = !1 } = {}) {
58
58
  a = o[n], e.call(null, t[a], a, t);
59
59
  }
60
60
  }
61
- function Ir(t, e) {
61
+ function Lr(t, e) {
62
62
  e = e.toLowerCase();
63
63
  const r = Object.keys(t);
64
64
  let n = r.length, i;
@@ -67,23 +67,23 @@ function Ir(t, e) {
67
67
  return i;
68
68
  return null;
69
69
  }
70
- const Dr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Lr = (t) => !be(t) && t !== Dr;
70
+ const kr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Mr = (t) => !Re(t) && t !== kr;
71
71
  function ht() {
72
- const { caseless: t } = Lr(this) && this || {}, e = {}, r = (n, i) => {
73
- const o = t && Ir(e, i) || i;
72
+ const { caseless: t } = Mr(this) && this || {}, e = {}, r = (n, i) => {
73
+ const o = t && Lr(e, i) || i;
74
74
  De(e[o]) && De(n) ? e[o] = ht(e[o], n) : De(n) ? e[o] = ht({}, n) : de(n) ? e[o] = n.slice() : e[o] = n;
75
75
  };
76
76
  for (let n = 0, i = arguments.length; n < i; n++)
77
77
  arguments[n] && Te(arguments[n], r);
78
78
  return e;
79
79
  }
80
- const li = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
81
- r && L(i) ? t[o] = Ar(i, r) : t[o] = i;
82
- }, { allOwnKeys: n }), t), ui = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), fi = (t, e, r, n) => {
80
+ const ui = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
81
+ r && L(i) ? t[o] = _r(i, r) : t[o] = i;
82
+ }, { allOwnKeys: n }), t), fi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), pi = (t, e, r, n) => {
83
83
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
84
84
  value: e.prototype
85
85
  }), r && Object.assign(t.prototype, r);
86
- }, pi = (t, e, r, n) => {
86
+ }, di = (t, e, r, n) => {
87
87
  let i, o, s;
88
88
  const a = {};
89
89
  if (e = e || {}, t == null)
@@ -94,47 +94,47 @@ const li = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
94
94
  t = r !== !1 && Dt(t);
95
95
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
96
96
  return e;
97
- }, di = (t, e, r) => {
97
+ }, hi = (t, e, r) => {
98
98
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
99
99
  const n = t.indexOf(e, r);
100
100
  return n !== -1 && n === r;
101
- }, hi = (t) => {
101
+ }, mi = (t) => {
102
102
  if (!t)
103
103
  return null;
104
104
  if (de(t))
105
105
  return t;
106
106
  let e = t.length;
107
- if (!_r(e))
107
+ if (!Dr(e))
108
108
  return null;
109
109
  const r = new Array(e);
110
110
  for (; e-- > 0; )
111
111
  r[e] = t[e];
112
112
  return r;
113
- }, mi = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Dt(Uint8Array)), yi = (t, e) => {
113
+ }, yi = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Dt(Uint8Array)), gi = (t, e) => {
114
114
  const n = (t && t[Symbol.iterator]).call(t);
115
115
  let i;
116
116
  for (; (i = n.next()) && !i.done; ) {
117
117
  const o = i.value;
118
118
  e.call(t, o[0], o[1]);
119
119
  }
120
- }, gi = (t, e) => {
120
+ }, Si = (t, e) => {
121
121
  let r;
122
122
  const n = [];
123
123
  for (; (r = t.exec(e)) !== null; )
124
124
  n.push(r);
125
125
  return n;
126
- }, Si = U("HTMLFormElement"), vi = (t) => t.toLowerCase().replace(
126
+ }, vi = B("HTMLFormElement"), Ci = (t) => t.toLowerCase().replace(
127
127
  /[-_\s]([a-z\d])(\w*)/g,
128
128
  function(r, n, i) {
129
129
  return n.toUpperCase() + i;
130
130
  }
131
- ), Vt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ci = U("RegExp"), kr = (t, e) => {
131
+ ), Jt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), bi = B("RegExp"), Nr = (t, e) => {
132
132
  const r = Object.getOwnPropertyDescriptors(t), n = {};
133
133
  Te(r, (i, o) => {
134
134
  e(i, o, t) !== !1 && (n[o] = i);
135
135
  }), Object.defineProperties(t, n);
136
136
  }, Ri = (t) => {
137
- kr(t, (e, r) => {
137
+ Nr(t, (e, r) => {
138
138
  if (L(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
139
139
  return !1;
140
140
  const n = t[r];
@@ -148,29 +148,29 @@ const li = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
148
148
  });
149
149
  }
150
150
  });
151
- }, bi = (t, e) => {
151
+ }, Ti = (t, e) => {
152
152
  const r = {}, n = (i) => {
153
153
  i.forEach((o) => {
154
154
  r[o] = !0;
155
155
  });
156
156
  };
157
157
  return de(t) ? n(t) : n(String(t).split(e)), r;
158
- }, Ti = () => {
159
- }, Pi = (t, e) => (t = +t, Number.isFinite(t) ? t : e), et = "abcdefghijklmnopqrstuvwxyz", Wt = "0123456789", Mr = {
160
- DIGIT: Wt,
158
+ }, Ei = () => {
159
+ }, Pi = (t, e) => (t = +t, Number.isFinite(t) ? t : e), et = "abcdefghijklmnopqrstuvwxyz", qt = "0123456789", Fr = {
160
+ DIGIT: qt,
161
161
  ALPHA: et,
162
- ALPHA_DIGIT: et + et.toUpperCase() + Wt
163
- }, Ei = (t = 16, e = Mr.ALPHA_DIGIT) => {
162
+ ALPHA_DIGIT: et + et.toUpperCase() + qt
163
+ }, Oi = (t = 16, e = Fr.ALPHA_DIGIT) => {
164
164
  let r = "";
165
165
  const { length: n } = e;
166
166
  for (; t--; )
167
167
  r += e[Math.random() * n | 0];
168
168
  return r;
169
169
  };
170
- function Oi(t) {
170
+ function Ai(t) {
171
171
  return !!(t && L(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
172
172
  }
173
- const Ai = (t) => {
173
+ const Ii = (t) => {
174
174
  const e = new Array(10), r = (n, i) => {
175
175
  if (Qe(n)) {
176
176
  if (e.indexOf(n) >= 0)
@@ -180,66 +180,66 @@ const Ai = (t) => {
180
180
  const o = de(n) ? [] : {};
181
181
  return Te(n, (s, a) => {
182
182
  const l = r(s, i + 1);
183
- !be(l) && (o[a] = l);
183
+ !Re(l) && (o[a] = l);
184
184
  }), e[i] = void 0, o;
185
185
  }
186
186
  }
187
187
  return n;
188
188
  };
189
189
  return r(t, 0);
190
- }, xi = U("AsyncFunction"), _i = (t) => t && (Qe(t) || L(t)) && L(t.then) && L(t.catch), d = {
190
+ }, _i = B("AsyncFunction"), xi = (t) => t && (Qe(t) || L(t)) && L(t.then) && L(t.catch), d = {
191
191
  isArray: de,
192
192
  isArrayBuffer: xr,
193
- isBuffer: Yn,
194
- isFormData: si,
195
- isArrayBufferView: Xn,
196
- isString: Zn,
197
- isNumber: _r,
198
- isBoolean: ei,
193
+ isBuffer: Xn,
194
+ isFormData: ai,
195
+ isArrayBufferView: Zn,
196
+ isString: ei,
197
+ isNumber: Dr,
198
+ isBoolean: ti,
199
199
  isObject: Qe,
200
200
  isPlainObject: De,
201
- isUndefined: be,
202
- isDate: ti,
203
- isFile: ri,
204
- isBlob: ni,
205
- isRegExp: Ci,
201
+ isUndefined: Re,
202
+ isDate: ri,
203
+ isFile: ni,
204
+ isBlob: ii,
205
+ isRegExp: bi,
206
206
  isFunction: L,
207
- isStream: oi,
208
- isURLSearchParams: ai,
209
- isTypedArray: mi,
210
- isFileList: ii,
207
+ isStream: si,
208
+ isURLSearchParams: ci,
209
+ isTypedArray: yi,
210
+ isFileList: oi,
211
211
  forEach: Te,
212
212
  merge: ht,
213
- extend: li,
214
- trim: ci,
215
- stripBOM: ui,
216
- inherits: fi,
217
- toFlatObject: pi,
213
+ extend: ui,
214
+ trim: li,
215
+ stripBOM: fi,
216
+ inherits: pi,
217
+ toFlatObject: di,
218
218
  kindOf: qe,
219
- kindOfTest: U,
220
- endsWith: di,
221
- toArray: hi,
222
- forEachEntry: yi,
223
- matchAll: gi,
224
- isHTMLForm: Si,
225
- hasOwnProperty: Vt,
226
- hasOwnProp: Vt,
219
+ kindOfTest: B,
220
+ endsWith: hi,
221
+ toArray: mi,
222
+ forEachEntry: gi,
223
+ matchAll: Si,
224
+ isHTMLForm: vi,
225
+ hasOwnProperty: Jt,
226
+ hasOwnProp: Jt,
227
227
  // an alias to avoid ESLint no-prototype-builtins detection
228
- reduceDescriptors: kr,
228
+ reduceDescriptors: Nr,
229
229
  freezeMethods: Ri,
230
- toObjectSet: bi,
231
- toCamelCase: vi,
232
- noop: Ti,
230
+ toObjectSet: Ti,
231
+ toCamelCase: Ci,
232
+ noop: Ei,
233
233
  toFiniteNumber: Pi,
234
- findKey: Ir,
235
- global: Dr,
236
- isContextDefined: Lr,
237
- ALPHABET: Mr,
238
- generateString: Ei,
239
- isSpecCompliantForm: Oi,
240
- toJSONObject: Ai,
241
- isAsyncFn: xi,
242
- isThenable: _i
234
+ findKey: Lr,
235
+ global: kr,
236
+ isContextDefined: Mr,
237
+ ALPHABET: Fr,
238
+ generateString: Oi,
239
+ isSpecCompliantForm: Ai,
240
+ toJSONObject: Ii,
241
+ isAsyncFn: _i,
242
+ isThenable: xi
243
243
  };
244
244
  function C(t, e, r, n, i) {
245
245
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i);
@@ -265,7 +265,7 @@ d.inherits(C, Error, {
265
265
  };
266
266
  }
267
267
  });
268
- const Nr = C.prototype, Fr = {};
268
+ const Ur = C.prototype, Br = {};
269
269
  [
270
270
  "ERR_BAD_OPTION_VALUE",
271
271
  "ERR_BAD_OPTION",
@@ -281,32 +281,32 @@ const Nr = C.prototype, Fr = {};
281
281
  "ERR_INVALID_URL"
282
282
  // eslint-disable-next-line func-names
283
283
  ].forEach((t) => {
284
- Fr[t] = { value: t };
284
+ Br[t] = { value: t };
285
285
  });
286
- Object.defineProperties(C, Fr);
287
- Object.defineProperty(Nr, "isAxiosError", { value: !0 });
286
+ Object.defineProperties(C, Br);
287
+ Object.defineProperty(Ur, "isAxiosError", { value: !0 });
288
288
  C.from = (t, e, r, n, i, o) => {
289
- const s = Object.create(Nr);
289
+ const s = Object.create(Ur);
290
290
  return d.toFlatObject(t, s, function(l) {
291
291
  return l !== Error.prototype;
292
292
  }, (a) => a !== "isAxiosError"), C.call(s, t.message, e, r, n, i), s.cause = t, s.name = t.name, o && Object.assign(s, o), s;
293
293
  };
294
- const Ii = null;
294
+ const Di = null;
295
295
  function mt(t) {
296
296
  return d.isPlainObject(t) || d.isArray(t);
297
297
  }
298
- function Ur(t) {
298
+ function jr(t) {
299
299
  return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
300
300
  }
301
- function Jt(t, e, r) {
301
+ function Kt(t, e, r) {
302
302
  return t ? t.concat(e).map(function(i, o) {
303
- return i = Ur(i), !r && o ? "[" + i + "]" : i;
303
+ return i = jr(i), !r && o ? "[" + i + "]" : i;
304
304
  }).join(r ? "." : "") : e;
305
305
  }
306
- function Di(t) {
306
+ function Li(t) {
307
307
  return d.isArray(t) && !t.some(mt);
308
308
  }
309
- const Li = d.toFlatObject(d, {}, null, function(e) {
309
+ const ki = d.toFlatObject(d, {}, null, function(e) {
310
310
  return /^is[A-Z]/.test(e);
311
311
  });
312
312
  function Ye(t, e, r) {
@@ -316,8 +316,8 @@ function Ye(t, e, r) {
316
316
  metaTokens: !0,
317
317
  dots: !1,
318
318
  indexes: !1
319
- }, !1, function(y, b) {
320
- return !d.isUndefined(b[y]);
319
+ }, !1, function(y, T) {
320
+ return !d.isUndefined(T[y]);
321
321
  });
322
322
  const n = r.metaTokens, i = r.visitor || u, o = r.dots, s = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
323
323
  if (!d.isFunction(i))
@@ -331,23 +331,23 @@ function Ye(t, e, r) {
331
331
  throw new C("Blob is not supported. Use a Buffer instead.");
332
332
  return d.isArrayBuffer(h) || d.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
333
333
  }
334
- function u(h, y, b) {
335
- let g = h;
336
- if (h && !b && typeof h == "object") {
334
+ function u(h, y, T) {
335
+ let S = h;
336
+ if (h && !T && typeof h == "object") {
337
337
  if (d.endsWith(y, "{}"))
338
338
  y = n ? y : y.slice(0, -2), h = JSON.stringify(h);
339
- else if (d.isArray(h) && Di(h) || (d.isFileList(h) || d.endsWith(y, "[]")) && (g = d.toArray(h)))
340
- return y = Ur(y), g.forEach(function(I, G) {
341
- !(d.isUndefined(I) || I === null) && e.append(
339
+ else if (d.isArray(h) && Li(h) || (d.isFileList(h) || d.endsWith(y, "[]")) && (S = d.toArray(h)))
340
+ return y = jr(y), S.forEach(function(x, w) {
341
+ !(d.isUndefined(x) || x === null) && e.append(
342
342
  // eslint-disable-next-line no-nested-ternary
343
- s === !0 ? Jt([y], G, o) : s === null ? y : y + "[]",
344
- c(I)
343
+ s === !0 ? Kt([y], w, o) : s === null ? y : y + "[]",
344
+ c(x)
345
345
  );
346
346
  }), !1;
347
347
  }
348
- return mt(h) ? !0 : (e.append(Jt(b, y, o), c(h)), !1);
348
+ return mt(h) ? !0 : (e.append(Kt(T, y, o), c(h)), !1);
349
349
  }
350
- const f = [], p = Object.assign(Li, {
350
+ const f = [], p = Object.assign(ki, {
351
351
  defaultVisitor: u,
352
352
  convertValue: c,
353
353
  isVisitable: mt
@@ -356,14 +356,14 @@ function Ye(t, e, r) {
356
356
  if (!d.isUndefined(h)) {
357
357
  if (f.indexOf(h) !== -1)
358
358
  throw Error("Circular reference detected in " + y.join("."));
359
- f.push(h), d.forEach(h, function(g, O) {
360
- (!(d.isUndefined(g) || g === null) && i.call(
359
+ f.push(h), d.forEach(h, function(S, A) {
360
+ (!(d.isUndefined(S) || S === null) && i.call(
361
361
  e,
362
- g,
363
- d.isString(O) ? O.trim() : O,
362
+ S,
363
+ d.isString(A) ? A.trim() : A,
364
364
  y,
365
365
  p
366
- )) === !0 && m(g, y ? y.concat(O) : [O]);
366
+ )) === !0 && m(S, y ? y.concat(A) : [A]);
367
367
  }), f.pop();
368
368
  }
369
369
  }
@@ -371,7 +371,7 @@ function Ye(t, e, r) {
371
371
  throw new TypeError("data must be an object");
372
372
  return m(t), e;
373
373
  }
374
- function qt(t) {
374
+ function Qt(t) {
375
375
  const e = {
376
376
  "!": "%21",
377
377
  "'": "%27",
@@ -388,25 +388,25 @@ function qt(t) {
388
388
  function Lt(t, e) {
389
389
  this._pairs = [], t && Ye(t, this, e);
390
390
  }
391
- const jr = Lt.prototype;
392
- jr.append = function(e, r) {
391
+ const $r = Lt.prototype;
392
+ $r.append = function(e, r) {
393
393
  this._pairs.push([e, r]);
394
394
  };
395
- jr.toString = function(e) {
395
+ $r.toString = function(e) {
396
396
  const r = e ? function(n) {
397
- return e.call(this, n, qt);
398
- } : qt;
397
+ return e.call(this, n, Qt);
398
+ } : Qt;
399
399
  return this._pairs.map(function(i) {
400
400
  return r(i[0]) + "=" + r(i[1]);
401
401
  }, "").join("&");
402
402
  };
403
- function ki(t) {
403
+ function Mi(t) {
404
404
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
405
405
  }
406
- function Br(t, e, r) {
406
+ function Hr(t, e, r) {
407
407
  if (!e)
408
408
  return t;
409
- const n = r && r.encode || ki, i = r && r.serialize;
409
+ const n = r && r.encode || Mi, i = r && r.serialize;
410
410
  let o;
411
411
  if (i ? o = i(e, r) : o = d.isURLSearchParams(e) ? e.toString() : new Lt(e, r).toString(n), o) {
412
412
  const s = t.indexOf("#");
@@ -414,7 +414,7 @@ function Br(t, e, r) {
414
414
  }
415
415
  return t;
416
416
  }
417
- class Mi {
417
+ class Ni {
418
418
  constructor() {
419
419
  this.handlers = [];
420
420
  }
@@ -468,36 +468,36 @@ class Mi {
468
468
  });
469
469
  }
470
470
  }
471
- const Kt = Mi, $r = {
471
+ const Yt = Ni, wr = {
472
472
  silentJSONParsing: !0,
473
473
  forcedJSONParsing: !0,
474
474
  clarifyTimeoutError: !1
475
- }, Ni = typeof URLSearchParams < "u" ? URLSearchParams : Lt, Fi = typeof FormData < "u" ? FormData : null, Ui = typeof Blob < "u" ? Blob : null, ji = (() => {
475
+ }, Fi = typeof URLSearchParams < "u" ? URLSearchParams : Lt, Ui = typeof FormData < "u" ? FormData : null, Bi = typeof Blob < "u" ? Blob : null, ji = (() => {
476
476
  let t;
477
477
  return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
478
- })(), Bi = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
479
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), F = {
478
+ })(), $i = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
479
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), U = {
480
480
  isBrowser: !0,
481
481
  classes: {
482
- URLSearchParams: Ni,
483
- FormData: Fi,
484
- Blob: Ui
482
+ URLSearchParams: Fi,
483
+ FormData: Ui,
484
+ Blob: Bi
485
485
  },
486
486
  isStandardBrowserEnv: ji,
487
- isStandardBrowserWebWorkerEnv: Bi,
487
+ isStandardBrowserWebWorkerEnv: $i,
488
488
  protocols: ["http", "https", "file", "blob", "url", "data"]
489
489
  };
490
- function $i(t, e) {
491
- return Ye(t, new F.classes.URLSearchParams(), Object.assign({
490
+ function Hi(t, e) {
491
+ return Ye(t, new U.classes.URLSearchParams(), Object.assign({
492
492
  visitor: function(r, n, i, o) {
493
- return F.isNode && d.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
493
+ return U.isNode && d.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
494
494
  }
495
495
  }, e));
496
496
  }
497
- function Gi(t) {
497
+ function wi(t) {
498
498
  return d.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
499
499
  }
500
- function zi(t) {
500
+ function Gi(t) {
501
501
  const e = {}, r = Object.keys(t);
502
502
  let n;
503
503
  const i = r.length;
@@ -510,20 +510,20 @@ function Gr(t) {
510
510
  function e(r, n, i, o) {
511
511
  let s = r[o++];
512
512
  const a = Number.isFinite(+s), l = o >= r.length;
513
- return s = !s && d.isArray(i) ? i.length : s, l ? (d.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !a) : ((!i[s] || !d.isObject(i[s])) && (i[s] = []), e(r, n, i[s], o) && d.isArray(i[s]) && (i[s] = zi(i[s])), !a);
513
+ return s = !s && d.isArray(i) ? i.length : s, l ? (d.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !a) : ((!i[s] || !d.isObject(i[s])) && (i[s] = []), e(r, n, i[s], o) && d.isArray(i[s]) && (i[s] = Gi(i[s])), !a);
514
514
  }
515
515
  if (d.isFormData(t) && d.isFunction(t.entries)) {
516
516
  const r = {};
517
517
  return d.forEachEntry(t, (n, i) => {
518
- e(Gi(n), i, r, 0);
518
+ e(wi(n), i, r, 0);
519
519
  }), r;
520
520
  }
521
521
  return null;
522
522
  }
523
- const Hi = {
523
+ const zi = {
524
524
  "Content-Type": void 0
525
525
  };
526
- function wi(t, e, r) {
526
+ function Vi(t, e, r) {
527
527
  if (d.isString(t))
528
528
  try {
529
529
  return (e || JSON.parse)(t), d.trim(t);
@@ -534,7 +534,7 @@ function wi(t, e, r) {
534
534
  return (r || JSON.stringify)(t);
535
535
  }
536
536
  const Xe = {
537
- transitional: $r,
537
+ transitional: wr,
538
538
  adapter: ["xhr", "http"],
539
539
  transformRequest: [function(e, r) {
540
540
  const n = r.getContentType() || "", i = n.indexOf("application/json") > -1, o = d.isObject(e);
@@ -549,7 +549,7 @@ const Xe = {
549
549
  let a;
550
550
  if (o) {
551
551
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
552
- return $i(e, this.formSerializer).toString();
552
+ return Hi(e, this.formSerializer).toString();
553
553
  if ((a = d.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
554
554
  const l = this.env && this.env.FormData;
555
555
  return Ye(
@@ -559,7 +559,7 @@ const Xe = {
559
559
  );
560
560
  }
561
561
  }
562
- return o || i ? (r.setContentType("application/json", !1), wi(e)) : e;
562
+ return o || i ? (r.setContentType("application/json", !1), Vi(e)) : e;
563
563
  }],
564
564
  transformResponse: [function(e) {
565
565
  const r = this.transitional || Xe.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json";
@@ -584,8 +584,8 @@ const Xe = {
584
584
  maxContentLength: -1,
585
585
  maxBodyLength: -1,
586
586
  env: {
587
- FormData: F.classes.FormData,
588
- Blob: F.classes.Blob
587
+ FormData: U.classes.FormData,
588
+ Blob: U.classes.Blob
589
589
  },
590
590
  validateStatus: function(e) {
591
591
  return e >= 200 && e < 300;
@@ -600,9 +600,9 @@ d.forEach(["delete", "get", "head"], function(e) {
600
600
  Xe.headers[e] = {};
601
601
  });
602
602
  d.forEach(["post", "put", "patch"], function(e) {
603
- Xe.headers[e] = d.merge(Hi);
603
+ Xe.headers[e] = d.merge(zi);
604
604
  });
605
- const kt = Xe, Vi = d.toObjectSet([
605
+ const kt = Xe, Wi = d.toObjectSet([
606
606
  "age",
607
607
  "authorization",
608
608
  "content-length",
@@ -620,28 +620,28 @@ const kt = Xe, Vi = d.toObjectSet([
620
620
  "referer",
621
621
  "retry-after",
622
622
  "user-agent"
623
- ]), Wi = (t) => {
623
+ ]), Ji = (t) => {
624
624
  const e = {};
625
625
  let r, n, i;
626
626
  return t && t.split(`
627
627
  `).forEach(function(s) {
628
- i = s.indexOf(":"), r = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!r || e[r] && Vi[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
628
+ i = s.indexOf(":"), r = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!r || e[r] && Wi[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
629
629
  }), e;
630
- }, Qt = Symbol("internals");
630
+ }, Xt = Symbol("internals");
631
631
  function ge(t) {
632
632
  return t && String(t).trim().toLowerCase();
633
633
  }
634
634
  function Le(t) {
635
635
  return t === !1 || t == null ? t : d.isArray(t) ? t.map(Le) : String(t);
636
636
  }
637
- function Ji(t) {
637
+ function qi(t) {
638
638
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
639
639
  let n;
640
640
  for (; n = r.exec(t); )
641
641
  e[n[1]] = n[2];
642
642
  return e;
643
643
  }
644
- const qi = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
644
+ const Ki = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
645
645
  function tt(t, e, r, n, i) {
646
646
  if (d.isFunction(n))
647
647
  return n.call(this, e, r);
@@ -652,10 +652,10 @@ function tt(t, e, r, n, i) {
652
652
  return n.test(e);
653
653
  }
654
654
  }
655
- function Ki(t) {
655
+ function Qi(t) {
656
656
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
657
657
  }
658
- function Qi(t, e) {
658
+ function Yi(t, e) {
659
659
  const r = d.toCamelCase(" " + e);
660
660
  ["get", "set", "has"].forEach((n) => {
661
661
  Object.defineProperty(t, n + r, {
@@ -680,7 +680,7 @@ class Ze {
680
680
  (!f || i[f] === void 0 || c === !0 || c === void 0 && i[f] !== !1) && (i[f || l] = Le(a));
681
681
  }
682
682
  const s = (a, l) => d.forEach(a, (c, u) => o(c, u, l));
683
- return d.isPlainObject(e) || e instanceof this.constructor ? s(e, r) : d.isString(e) && (e = e.trim()) && !qi(e) ? s(Wi(e), r) : e != null && o(r, e, n), this;
683
+ return d.isPlainObject(e) || e instanceof this.constructor ? s(e, r) : d.isString(e) && (e = e.trim()) && !Ki(e) ? s(Ji(e), r) : e != null && o(r, e, n), this;
684
684
  }
685
685
  get(e, r) {
686
686
  if (e = ge(e), e) {
@@ -690,7 +690,7 @@ class Ze {
690
690
  if (!r)
691
691
  return i;
692
692
  if (r === !0)
693
- return Ji(i);
693
+ return qi(i);
694
694
  if (d.isFunction(r))
695
695
  return r.call(this, i, n);
696
696
  if (d.isRegExp(r))
@@ -734,7 +734,7 @@ class Ze {
734
734
  r[s] = Le(i), delete r[o];
735
735
  return;
736
736
  }
737
- const a = e ? Ki(o) : String(o).trim();
737
+ const a = e ? Qi(o) : String(o).trim();
738
738
  a !== o && delete r[o], r[a] = Le(i), n[a] = !0;
739
739
  }), this;
740
740
  }
@@ -765,12 +765,12 @@ class Ze {
765
765
  return r.forEach((i) => n.set(i)), n;
766
766
  }
767
767
  static accessor(e) {
768
- const n = (this[Qt] = this[Qt] = {
768
+ const n = (this[Xt] = this[Xt] = {
769
769
  accessors: {}
770
770
  }).accessors, i = this.prototype;
771
771
  function o(s) {
772
772
  const a = ge(s);
773
- n[a] || (Qi(i, s), n[a] = !0);
773
+ n[a] || (Yi(i, s), n[a] = !0);
774
774
  }
775
775
  return d.isArray(e) ? e.forEach(o) : o(e), this;
776
776
  }
@@ -778,9 +778,9 @@ class Ze {
778
778
  Ze.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
779
779
  d.freezeMethods(Ze.prototype);
780
780
  d.freezeMethods(Ze);
781
- const $ = Ze;
781
+ const H = Ze;
782
782
  function rt(t, e) {
783
- const r = this || kt, n = e || r, i = $.from(n.headers);
783
+ const r = this || kt, n = e || r, i = H.from(n.headers);
784
784
  let o = n.data;
785
785
  return d.forEach(t, function(a) {
786
786
  o = a.call(r, o, i.normalize(), e ? e.status : void 0);
@@ -789,13 +789,13 @@ function rt(t, e) {
789
789
  function zr(t) {
790
790
  return !!(t && t.__CANCEL__);
791
791
  }
792
- function Pe(t, e, r) {
792
+ function Ee(t, e, r) {
793
793
  C.call(this, t ?? "canceled", C.ERR_CANCELED, e, r), this.name = "CanceledError";
794
794
  }
795
- d.inherits(Pe, C, {
795
+ d.inherits(Ee, C, {
796
796
  __CANCEL__: !0
797
797
  });
798
- function Yi(t, e, r) {
798
+ function Xi(t, e, r) {
799
799
  const n = r.config.validateStatus;
800
800
  !r.status || !n || n(r.status) ? t(r) : e(new C(
801
801
  "Request failed with status code " + r.status,
@@ -805,7 +805,7 @@ function Yi(t, e, r) {
805
805
  r
806
806
  ));
807
807
  }
808
- const Xi = F.isStandardBrowserEnv ? (
808
+ const Zi = U.isStandardBrowserEnv ? (
809
809
  // Standard browser envs support document.cookie
810
810
  function() {
811
811
  return {
@@ -836,16 +836,16 @@ const Xi = F.isStandardBrowserEnv ? (
836
836
  };
837
837
  }()
838
838
  );
839
- function Zi(t) {
839
+ function eo(t) {
840
840
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
841
841
  }
842
- function eo(t, e) {
842
+ function to(t, e) {
843
843
  return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
844
844
  }
845
- function Hr(t, e) {
846
- return t && !Zi(e) ? eo(t, e) : e;
845
+ function Vr(t, e) {
846
+ return t && !eo(e) ? to(t, e) : e;
847
847
  }
848
- const to = F.isStandardBrowserEnv ? (
848
+ const ro = U.isStandardBrowserEnv ? (
849
849
  // Standard browser envs have full support of the APIs needed to test
850
850
  // whether the request URL is of the same origin as current location.
851
851
  function() {
@@ -877,11 +877,11 @@ const to = F.isStandardBrowserEnv ? (
877
877
  };
878
878
  }()
879
879
  );
880
- function ro(t) {
880
+ function no(t) {
881
881
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
882
882
  return e && e[1] || "";
883
883
  }
884
- function no(t, e) {
884
+ function io(t, e) {
885
885
  t = t || 10;
886
886
  const r = new Array(t), n = new Array(t);
887
887
  let i = 0, o = 0, s;
@@ -897,9 +897,9 @@ function no(t, e) {
897
897
  return m ? Math.round(p * 1e3 / m) : void 0;
898
898
  };
899
899
  }
900
- function Yt(t, e) {
900
+ function Zt(t, e) {
901
901
  let r = 0;
902
- const n = no(50, 250);
902
+ const n = io(50, 250);
903
903
  return (i) => {
904
904
  const o = i.loaded, s = i.lengthComputable ? i.total : void 0, a = o - r, l = n(a), c = o <= s;
905
905
  r = o;
@@ -915,26 +915,26 @@ function Yt(t, e) {
915
915
  u[e ? "download" : "upload"] = !0, t(u);
916
916
  };
917
917
  }
918
- const io = typeof XMLHttpRequest < "u", oo = io && function(t) {
918
+ const oo = typeof XMLHttpRequest < "u", so = oo && function(t) {
919
919
  return new Promise(function(r, n) {
920
920
  let i = t.data;
921
- const o = $.from(t.headers).normalize(), s = t.responseType;
921
+ const o = H.from(t.headers).normalize(), s = t.responseType;
922
922
  let a;
923
923
  function l() {
924
924
  t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
925
925
  }
926
- d.isFormData(i) && (F.isStandardBrowserEnv || F.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
926
+ d.isFormData(i) && (U.isStandardBrowserEnv || U.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
927
927
  let c = new XMLHttpRequest();
928
928
  if (t.auth) {
929
929
  const m = t.auth.username || "", h = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
930
930
  o.set("Authorization", "Basic " + btoa(m + ":" + h));
931
931
  }
932
- const u = Hr(t.baseURL, t.url);
933
- c.open(t.method.toUpperCase(), Br(u, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
932
+ const u = Vr(t.baseURL, t.url);
933
+ c.open(t.method.toUpperCase(), Hr(u, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
934
934
  function f() {
935
935
  if (!c)
936
936
  return;
937
- const m = $.from(
937
+ const m = H.from(
938
938
  "getAllResponseHeaders" in c && c.getAllResponseHeaders()
939
939
  ), y = {
940
940
  data: !s || s === "text" || s === "json" ? c.responseText : c.response,
@@ -944,10 +944,10 @@ const io = typeof XMLHttpRequest < "u", oo = io && function(t) {
944
944
  config: t,
945
945
  request: c
946
946
  };
947
- Yi(function(g) {
948
- r(g), l();
949
- }, function(g) {
950
- n(g), l();
947
+ Xi(function(S) {
948
+ r(S), l();
949
+ }, function(S) {
950
+ n(S), l();
951
951
  }, y), c = null;
952
952
  }
953
953
  if ("onloadend" in c ? c.onloadend = f : c.onreadystatechange = function() {
@@ -958,32 +958,32 @@ const io = typeof XMLHttpRequest < "u", oo = io && function(t) {
958
958
  n(new C("Network Error", C.ERR_NETWORK, t, c)), c = null;
959
959
  }, c.ontimeout = function() {
960
960
  let h = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
961
- const y = t.transitional || $r;
961
+ const y = t.transitional || wr;
962
962
  t.timeoutErrorMessage && (h = t.timeoutErrorMessage), n(new C(
963
963
  h,
964
964
  y.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
965
965
  t,
966
966
  c
967
967
  )), c = null;
968
- }, F.isStandardBrowserEnv) {
969
- const m = (t.withCredentials || to(u)) && t.xsrfCookieName && Xi.read(t.xsrfCookieName);
968
+ }, U.isStandardBrowserEnv) {
969
+ const m = (t.withCredentials || ro(u)) && t.xsrfCookieName && Zi.read(t.xsrfCookieName);
970
970
  m && o.set(t.xsrfHeaderName, m);
971
971
  }
972
972
  i === void 0 && o.setContentType(null), "setRequestHeader" in c && d.forEach(o.toJSON(), function(h, y) {
973
973
  c.setRequestHeader(y, h);
974
- }), d.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), s && s !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", Yt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Yt(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (m) => {
975
- c && (n(!m || m.type ? new Pe(null, t, c) : m), c.abort(), c = null);
974
+ }), d.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), s && s !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", Zt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Zt(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (m) => {
975
+ c && (n(!m || m.type ? new Ee(null, t, c) : m), c.abort(), c = null);
976
976
  }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
977
- const p = ro(u);
978
- if (p && F.protocols.indexOf(p) === -1) {
977
+ const p = no(u);
978
+ if (p && U.protocols.indexOf(p) === -1) {
979
979
  n(new C("Unsupported protocol " + p + ":", C.ERR_BAD_REQUEST, t));
980
980
  return;
981
981
  }
982
982
  c.send(i || null);
983
983
  });
984
984
  }, ke = {
985
- http: Ii,
986
- xhr: oo
985
+ http: Di,
986
+ xhr: so
987
987
  };
988
988
  d.forEach(ke, (t, e) => {
989
989
  if (t) {
@@ -994,7 +994,7 @@ d.forEach(ke, (t, e) => {
994
994
  Object.defineProperty(t, "adapterName", { value: e });
995
995
  }
996
996
  });
997
- const so = {
997
+ const ao = {
998
998
  getAdapter: (t) => {
999
999
  t = d.isArray(t) ? t : [t];
1000
1000
  const { length: e } = t;
@@ -1016,27 +1016,27 @@ const so = {
1016
1016
  };
1017
1017
  function nt(t) {
1018
1018
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1019
- throw new Pe(null, t);
1019
+ throw new Ee(null, t);
1020
1020
  }
1021
- function Xt(t) {
1022
- return nt(t), t.headers = $.from(t.headers), t.data = rt.call(
1021
+ function er(t) {
1022
+ return nt(t), t.headers = H.from(t.headers), t.data = rt.call(
1023
1023
  t,
1024
1024
  t.transformRequest
1025
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), so.getAdapter(t.adapter || kt.adapter)(t).then(function(n) {
1025
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ao.getAdapter(t.adapter || kt.adapter)(t).then(function(n) {
1026
1026
  return nt(t), n.data = rt.call(
1027
1027
  t,
1028
1028
  t.transformResponse,
1029
1029
  n
1030
- ), n.headers = $.from(n.headers), n;
1030
+ ), n.headers = H.from(n.headers), n;
1031
1031
  }, function(n) {
1032
1032
  return zr(n) || (nt(t), n && n.response && (n.response.data = rt.call(
1033
1033
  t,
1034
1034
  t.transformResponse,
1035
1035
  n.response
1036
- ), n.response.headers = $.from(n.response.headers))), Promise.reject(n);
1036
+ ), n.response.headers = H.from(n.response.headers))), Promise.reject(n);
1037
1037
  });
1038
1038
  }
1039
- const Zt = (t) => t instanceof $ ? t.toJSON() : t;
1039
+ const tr = (t) => t instanceof H ? t.toJSON() : t;
1040
1040
  function le(t, e) {
1041
1041
  e = e || {};
1042
1042
  const r = {};
@@ -1095,23 +1095,23 @@ function le(t, e) {
1095
1095
  socketPath: s,
1096
1096
  responseEncoding: s,
1097
1097
  validateStatus: a,
1098
- headers: (c, u) => i(Zt(c), Zt(u), !0)
1098
+ headers: (c, u) => i(tr(c), tr(u), !0)
1099
1099
  };
1100
1100
  return d.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
1101
1101
  const f = l[u] || i, p = f(t[u], e[u], u);
1102
1102
  d.isUndefined(p) && f !== a || (r[u] = p);
1103
1103
  }), r;
1104
1104
  }
1105
- const wr = "1.4.0", Mt = {};
1105
+ const Wr = "1.4.0", Mt = {};
1106
1106
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1107
1107
  Mt[t] = function(n) {
1108
1108
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1109
1109
  };
1110
1110
  });
1111
- const er = {};
1111
+ const rr = {};
1112
1112
  Mt.transitional = function(e, r, n) {
1113
1113
  function i(o, s) {
1114
- return "[Axios v" + wr + "] Transitional option '" + o + "'" + s + (n ? ". " + n : "");
1114
+ return "[Axios v" + Wr + "] Transitional option '" + o + "'" + s + (n ? ". " + n : "");
1115
1115
  }
1116
1116
  return (o, s, a) => {
1117
1117
  if (e === !1)
@@ -1119,7 +1119,7 @@ Mt.transitional = function(e, r, n) {
1119
1119
  i(s, " has been removed" + (r ? " in " + r : "")),
1120
1120
  C.ERR_DEPRECATED
1121
1121
  );
1122
- return r && !er[s] && (er[s] = !0, console.warn(
1122
+ return r && !rr[s] && (rr[s] = !0, console.warn(
1123
1123
  i(
1124
1124
  s,
1125
1125
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -1127,7 +1127,7 @@ Mt.transitional = function(e, r, n) {
1127
1127
  )), e ? e(o, s, a) : !0;
1128
1128
  };
1129
1129
  };
1130
- function ao(t, e, r) {
1130
+ function co(t, e, r) {
1131
1131
  if (typeof t != "object")
1132
1132
  throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
1133
1133
  const n = Object.keys(t);
@@ -1145,14 +1145,14 @@ function ao(t, e, r) {
1145
1145
  }
1146
1146
  }
1147
1147
  const yt = {
1148
- assertOptions: ao,
1148
+ assertOptions: co,
1149
1149
  validators: Mt
1150
- }, H = yt.validators;
1151
- class He {
1150
+ }, z = yt.validators;
1151
+ class Ge {
1152
1152
  constructor(e) {
1153
1153
  this.defaults = e, this.interceptors = {
1154
- request: new Kt(),
1155
- response: new Kt()
1154
+ request: new Yt(),
1155
+ response: new Yt()
1156
1156
  };
1157
1157
  }
1158
1158
  /**
@@ -1167,14 +1167,14 @@ class He {
1167
1167
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = le(this.defaults, r);
1168
1168
  const { transitional: n, paramsSerializer: i, headers: o } = r;
1169
1169
  n !== void 0 && yt.assertOptions(n, {
1170
- silentJSONParsing: H.transitional(H.boolean),
1171
- forcedJSONParsing: H.transitional(H.boolean),
1172
- clarifyTimeoutError: H.transitional(H.boolean)
1170
+ silentJSONParsing: z.transitional(z.boolean),
1171
+ forcedJSONParsing: z.transitional(z.boolean),
1172
+ clarifyTimeoutError: z.transitional(z.boolean)
1173
1173
  }, !1), i != null && (d.isFunction(i) ? r.paramsSerializer = {
1174
1174
  serialize: i
1175
1175
  } : yt.assertOptions(i, {
1176
- encode: H.function,
1177
- serialize: H.function
1176
+ encode: z.function,
1177
+ serialize: z.function
1178
1178
  }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1179
1179
  let s;
1180
1180
  s = o && d.merge(
@@ -1185,7 +1185,7 @@ class He {
1185
1185
  (h) => {
1186
1186
  delete o[h];
1187
1187
  }
1188
- ), r.headers = $.concat(s, o);
1188
+ ), r.headers = H.concat(s, o);
1189
1189
  const a = [];
1190
1190
  let l = !0;
1191
1191
  this.interceptors.request.forEach(function(y) {
@@ -1197,7 +1197,7 @@ class He {
1197
1197
  });
1198
1198
  let u, f = 0, p;
1199
1199
  if (!l) {
1200
- const h = [Xt.bind(this), void 0];
1200
+ const h = [er.bind(this), void 0];
1201
1201
  for (h.unshift.apply(h, a), h.push.apply(h, c), p = h.length, u = Promise.resolve(r); f < p; )
1202
1202
  u = u.then(h[f++], h[f++]);
1203
1203
  return u;
@@ -1208,13 +1208,13 @@ class He {
1208
1208
  const h = a[f++], y = a[f++];
1209
1209
  try {
1210
1210
  m = h(m);
1211
- } catch (b) {
1212
- y.call(this, b);
1211
+ } catch (T) {
1212
+ y.call(this, T);
1213
1213
  break;
1214
1214
  }
1215
1215
  }
1216
1216
  try {
1217
- u = Xt.call(this, m);
1217
+ u = er.call(this, m);
1218
1218
  } catch (h) {
1219
1219
  return Promise.reject(h);
1220
1220
  }
@@ -1224,12 +1224,12 @@ class He {
1224
1224
  }
1225
1225
  getUri(e) {
1226
1226
  e = le(this.defaults, e);
1227
- const r = Hr(e.baseURL, e.url);
1228
- return Br(r, e.params, e.paramsSerializer);
1227
+ const r = Vr(e.baseURL, e.url);
1228
+ return Hr(r, e.params, e.paramsSerializer);
1229
1229
  }
1230
1230
  }
1231
1231
  d.forEach(["delete", "get", "head", "options"], function(e) {
1232
- He.prototype[e] = function(r, n) {
1232
+ Ge.prototype[e] = function(r, n) {
1233
1233
  return this.request(le(n || {}, {
1234
1234
  method: e,
1235
1235
  url: r,
@@ -1250,9 +1250,9 @@ d.forEach(["post", "put", "patch"], function(e) {
1250
1250
  }));
1251
1251
  };
1252
1252
  }
1253
- He.prototype[e] = r(), He.prototype[e + "Form"] = r(!0);
1253
+ Ge.prototype[e] = r(), Ge.prototype[e + "Form"] = r(!0);
1254
1254
  });
1255
- const Me = He;
1255
+ const Me = Ge;
1256
1256
  class Nt {
1257
1257
  constructor(e) {
1258
1258
  if (typeof e != "function")
@@ -1278,7 +1278,7 @@ class Nt {
1278
1278
  n.unsubscribe(o);
1279
1279
  }, s;
1280
1280
  }, e(function(o, s, a) {
1281
- n.reason || (n.reason = new Pe(o, s, a), r(n.reason));
1281
+ n.reason || (n.reason = new Ee(o, s, a), r(n.reason));
1282
1282
  });
1283
1283
  }
1284
1284
  /**
@@ -1321,13 +1321,13 @@ class Nt {
1321
1321
  };
1322
1322
  }
1323
1323
  }
1324
- const co = Nt;
1325
- function lo(t) {
1324
+ const lo = Nt;
1325
+ function uo(t) {
1326
1326
  return function(r) {
1327
1327
  return t.apply(null, r);
1328
1328
  };
1329
1329
  }
1330
- function uo(t) {
1330
+ function fo(t) {
1331
1331
  return d.isObject(t) && t.isAxiosError === !0;
1332
1332
  }
1333
1333
  const gt = {
@@ -1398,37 +1398,37 @@ const gt = {
1398
1398
  Object.entries(gt).forEach(([t, e]) => {
1399
1399
  gt[e] = t;
1400
1400
  });
1401
- const fo = gt;
1402
- function Vr(t) {
1403
- const e = new Me(t), r = Ar(Me.prototype.request, e);
1401
+ const po = gt;
1402
+ function Jr(t) {
1403
+ const e = new Me(t), r = _r(Me.prototype.request, e);
1404
1404
  return d.extend(r, Me.prototype, e, { allOwnKeys: !0 }), d.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1405
- return Vr(le(t, i));
1405
+ return Jr(le(t, i));
1406
1406
  }, r;
1407
1407
  }
1408
- const T = Vr(kt);
1409
- T.Axios = Me;
1410
- T.CanceledError = Pe;
1411
- T.CancelToken = co;
1412
- T.isCancel = zr;
1413
- T.VERSION = wr;
1414
- T.toFormData = Ye;
1415
- T.AxiosError = C;
1416
- T.Cancel = T.CanceledError;
1417
- T.all = function(e) {
1408
+ const E = Jr(kt);
1409
+ E.Axios = Me;
1410
+ E.CanceledError = Ee;
1411
+ E.CancelToken = lo;
1412
+ E.isCancel = zr;
1413
+ E.VERSION = Wr;
1414
+ E.toFormData = Ye;
1415
+ E.AxiosError = C;
1416
+ E.Cancel = E.CanceledError;
1417
+ E.all = function(e) {
1418
1418
  return Promise.all(e);
1419
1419
  };
1420
- T.spread = lo;
1421
- T.isAxiosError = uo;
1422
- T.mergeConfig = le;
1423
- T.AxiosHeaders = $;
1424
- T.formToJSON = (t) => Gr(d.isHTMLForm(t) ? new FormData(t) : t);
1425
- T.HttpStatusCode = fo;
1426
- T.default = T;
1427
- const po = T;
1428
- function Wr(t) {
1420
+ E.spread = uo;
1421
+ E.isAxiosError = fo;
1422
+ E.mergeConfig = le;
1423
+ E.AxiosHeaders = H;
1424
+ E.formToJSON = (t) => Gr(d.isHTMLForm(t) ? new FormData(t) : t);
1425
+ E.HttpStatusCode = po;
1426
+ E.default = E;
1427
+ const ho = E;
1428
+ function qr(t) {
1429
1429
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1430
1430
  }
1431
- function ho(t) {
1431
+ function mo(t) {
1432
1432
  if (t.__esModule)
1433
1433
  return t;
1434
1434
  var e = t.default;
@@ -1449,7 +1449,7 @@ function ho(t) {
1449
1449
  });
1450
1450
  }), r;
1451
1451
  }
1452
- var mo = function() {
1452
+ var yo = function() {
1453
1453
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1454
1454
  return !1;
1455
1455
  if (typeof Symbol.iterator == "symbol")
@@ -1472,16 +1472,16 @@ var mo = function() {
1472
1472
  return !1;
1473
1473
  }
1474
1474
  return !0;
1475
- }, tr = typeof Symbol < "u" && Symbol, yo = mo, go = function() {
1476
- return typeof tr != "function" || typeof Symbol != "function" || typeof tr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
1477
- }, rr = {
1475
+ }, nr = typeof Symbol < "u" && Symbol, go = yo, So = function() {
1476
+ return typeof nr != "function" || typeof Symbol != "function" || typeof nr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : go();
1477
+ }, ir = {
1478
1478
  foo: {}
1479
- }, So = Object, vo = function() {
1480
- return { __proto__: rr }.foo === rr.foo && !({ __proto__: null } instanceof So);
1481
- }, Co = "Function.prototype.bind called on incompatible ", it = Array.prototype.slice, Ro = Object.prototype.toString, bo = "[object Function]", To = function(e) {
1479
+ }, vo = Object, Co = function() {
1480
+ return { __proto__: ir }.foo === ir.foo && !({ __proto__: null } instanceof vo);
1481
+ }, bo = "Function.prototype.bind called on incompatible ", it = Array.prototype.slice, Ro = Object.prototype.toString, To = "[object Function]", Eo = function(e) {
1482
1482
  var r = this;
1483
- if (typeof r != "function" || Ro.call(r) !== bo)
1484
- throw new TypeError(Co + r);
1483
+ if (typeof r != "function" || Ro.call(r) !== To)
1484
+ throw new TypeError(bo + r);
1485
1485
  for (var n = it.call(arguments, 1), i, o = function() {
1486
1486
  if (this instanceof i) {
1487
1487
  var u = r.apply(
@@ -1502,42 +1502,42 @@ var mo = function() {
1502
1502
  c.prototype = r.prototype, i.prototype = new c(), c.prototype = null;
1503
1503
  }
1504
1504
  return i;
1505
- }, Po = To, Ft = Function.prototype.bind || Po, Eo = Ft, Oo = Eo.call(Function.call, Object.prototype.hasOwnProperty), v, ue = SyntaxError, Jr = Function, ae = TypeError, ot = function(t) {
1505
+ }, Po = Eo, Ft = Function.prototype.bind || Po, Oo = Ft, Ao = Oo.call(Function.call, Object.prototype.hasOwnProperty), v, ue = SyntaxError, Kr = Function, ae = TypeError, ot = function(t) {
1506
1506
  try {
1507
- return Jr('"use strict"; return (' + t + ").constructor;")();
1507
+ return Kr('"use strict"; return (' + t + ").constructor;")();
1508
1508
  } catch {
1509
1509
  }
1510
- }, Y = Object.getOwnPropertyDescriptor;
1511
- if (Y)
1510
+ }, X = Object.getOwnPropertyDescriptor;
1511
+ if (X)
1512
1512
  try {
1513
- Y({}, "");
1513
+ X({}, "");
1514
1514
  } catch {
1515
- Y = null;
1515
+ X = null;
1516
1516
  }
1517
1517
  var st = function() {
1518
1518
  throw new ae();
1519
- }, Ao = Y ? function() {
1519
+ }, Io = X ? function() {
1520
1520
  try {
1521
1521
  return arguments.callee, st;
1522
1522
  } catch {
1523
1523
  try {
1524
- return Y(arguments, "callee").get;
1524
+ return X(arguments, "callee").get;
1525
1525
  } catch {
1526
1526
  return st;
1527
1527
  }
1528
1528
  }
1529
- }() : st, ie = go(), xo = vo(), E = Object.getPrototypeOf || (xo ? function(t) {
1529
+ }() : st, oe = So(), _o = Co(), O = Object.getPrototypeOf || (_o ? function(t) {
1530
1530
  return t.__proto__;
1531
- } : null), oe = {}, _o = typeof Uint8Array > "u" || !E ? v : E(Uint8Array), X = {
1531
+ } : null), se = {}, xo = typeof Uint8Array > "u" || !O ? v : O(Uint8Array), Z = {
1532
1532
  "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
1533
1533
  "%Array%": Array,
1534
1534
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
1535
- "%ArrayIteratorPrototype%": ie && E ? E([][Symbol.iterator]()) : v,
1535
+ "%ArrayIteratorPrototype%": oe && O ? O([][Symbol.iterator]()) : v,
1536
1536
  "%AsyncFromSyncIteratorPrototype%": v,
1537
- "%AsyncFunction%": oe,
1538
- "%AsyncGenerator%": oe,
1539
- "%AsyncGeneratorFunction%": oe,
1540
- "%AsyncIteratorPrototype%": oe,
1537
+ "%AsyncFunction%": se,
1538
+ "%AsyncGenerator%": se,
1539
+ "%AsyncGeneratorFunction%": se,
1540
+ "%AsyncIteratorPrototype%": se,
1541
1541
  "%Atomics%": typeof Atomics > "u" ? v : Atomics,
1542
1542
  "%BigInt%": typeof BigInt > "u" ? v : BigInt,
1543
1543
  "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
@@ -1556,17 +1556,17 @@ var st = function() {
1556
1556
  "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
1557
1557
  "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
1558
1558
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
1559
- "%Function%": Jr,
1560
- "%GeneratorFunction%": oe,
1559
+ "%Function%": Kr,
1560
+ "%GeneratorFunction%": se,
1561
1561
  "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
1562
1562
  "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
1563
1563
  "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
1564
1564
  "%isFinite%": isFinite,
1565
1565
  "%isNaN%": isNaN,
1566
- "%IteratorPrototype%": ie && E ? E(E([][Symbol.iterator]())) : v,
1566
+ "%IteratorPrototype%": oe && O ? O(O([][Symbol.iterator]())) : v,
1567
1567
  "%JSON%": typeof JSON == "object" ? JSON : v,
1568
1568
  "%Map%": typeof Map > "u" ? v : Map,
1569
- "%MapIteratorPrototype%": typeof Map > "u" || !ie || !E ? v : E((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1569
+ "%MapIteratorPrototype%": typeof Map > "u" || !oe || !O ? v : O((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1570
1570
  "%Math%": Math,
1571
1571
  "%Number%": Number,
1572
1572
  "%Object%": Object,
@@ -1579,14 +1579,14 @@ var st = function() {
1579
1579
  "%Reflect%": typeof Reflect > "u" ? v : Reflect,
1580
1580
  "%RegExp%": RegExp,
1581
1581
  "%Set%": typeof Set > "u" ? v : Set,
1582
- "%SetIteratorPrototype%": typeof Set > "u" || !ie || !E ? v : E((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1582
+ "%SetIteratorPrototype%": typeof Set > "u" || !oe || !O ? v : O((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1583
1583
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
1584
1584
  "%String%": String,
1585
- "%StringIteratorPrototype%": ie && E ? E(""[Symbol.iterator]()) : v,
1586
- "%Symbol%": ie ? Symbol : v,
1585
+ "%StringIteratorPrototype%": oe && O ? O(""[Symbol.iterator]()) : v,
1586
+ "%Symbol%": oe ? Symbol : v,
1587
1587
  "%SyntaxError%": ue,
1588
- "%ThrowTypeError%": Ao,
1589
- "%TypedArray%": _o,
1588
+ "%ThrowTypeError%": Io,
1589
+ "%TypedArray%": xo,
1590
1590
  "%TypeError%": ae,
1591
1591
  "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1592
1592
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
@@ -1597,14 +1597,14 @@ var st = function() {
1597
1597
  "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1598
1598
  "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet
1599
1599
  };
1600
- if (E)
1600
+ if (O)
1601
1601
  try {
1602
1602
  null.error;
1603
1603
  } catch (t) {
1604
- var Io = E(E(t));
1605
- X["%Error.prototype%"] = Io;
1604
+ var Do = O(O(t));
1605
+ Z["%Error.prototype%"] = Do;
1606
1606
  }
1607
- var Do = function t(e) {
1607
+ var Lo = function t(e) {
1608
1608
  var r;
1609
1609
  if (e === "%AsyncFunction%")
1610
1610
  r = ot("async function () {}");
@@ -1617,10 +1617,10 @@ var Do = function t(e) {
1617
1617
  n && (r = n.prototype);
1618
1618
  } else if (e === "%AsyncIteratorPrototype%") {
1619
1619
  var i = t("%AsyncGenerator%");
1620
- i && E && (r = E(i.prototype));
1620
+ i && O && (r = O(i.prototype));
1621
1621
  }
1622
- return X[e] = r, r;
1623
- }, nr = {
1622
+ return Z[e] = r, r;
1623
+ }, or = {
1624
1624
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1625
1625
  "%ArrayPrototype%": ["Array", "prototype"],
1626
1626
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -1672,21 +1672,21 @@ var Do = function t(e) {
1672
1672
  "%URIErrorPrototype%": ["URIError", "prototype"],
1673
1673
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1674
1674
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1675
- }, Ee = Ft, we = Oo, Lo = Ee.call(Function.call, Array.prototype.concat), ko = Ee.call(Function.apply, Array.prototype.splice), ir = Ee.call(Function.call, String.prototype.replace), Ve = Ee.call(Function.call, String.prototype.slice), Mo = Ee.call(Function.call, RegExp.prototype.exec), No = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Fo = /\\(\\)?/g, Uo = function(e) {
1675
+ }, Pe = Ft, ze = Ao, ko = Pe.call(Function.call, Array.prototype.concat), Mo = Pe.call(Function.apply, Array.prototype.splice), sr = Pe.call(Function.call, String.prototype.replace), Ve = Pe.call(Function.call, String.prototype.slice), No = Pe.call(Function.call, RegExp.prototype.exec), Fo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, Bo = function(e) {
1676
1676
  var r = Ve(e, 0, 1), n = Ve(e, -1);
1677
1677
  if (r === "%" && n !== "%")
1678
1678
  throw new ue("invalid intrinsic syntax, expected closing `%`");
1679
1679
  if (n === "%" && r !== "%")
1680
1680
  throw new ue("invalid intrinsic syntax, expected opening `%`");
1681
1681
  var i = [];
1682
- return ir(e, No, function(o, s, a, l) {
1683
- i[i.length] = a ? ir(l, Fo, "$1") : s || o;
1682
+ return sr(e, Fo, function(o, s, a, l) {
1683
+ i[i.length] = a ? sr(l, Uo, "$1") : s || o;
1684
1684
  }), i;
1685
1685
  }, jo = function(e, r) {
1686
1686
  var n = e, i;
1687
- if (we(nr, n) && (i = nr[n], n = "%" + i[0] + "%"), we(X, n)) {
1688
- var o = X[n];
1689
- if (o === oe && (o = Do(n)), typeof o > "u" && !r)
1687
+ if (ze(or, n) && (i = or[n], n = "%" + i[0] + "%"), ze(Z, n)) {
1688
+ var o = Z[n];
1689
+ if (o === se && (o = Lo(n)), typeof o > "u" && !r)
1690
1690
  throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
1691
1691
  return {
1692
1692
  alias: i,
@@ -1700,32 +1700,32 @@ var Do = function t(e) {
1700
1700
  throw new ae("intrinsic name must be a non-empty string");
1701
1701
  if (arguments.length > 1 && typeof r != "boolean")
1702
1702
  throw new ae('"allowMissing" argument must be a boolean');
1703
- if (Mo(/^%?[^%]*%?$/, e) === null)
1703
+ if (No(/^%?[^%]*%?$/, e) === null)
1704
1704
  throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1705
- var n = Uo(e), i = n.length > 0 ? n[0] : "", o = jo("%" + i + "%", r), s = o.name, a = o.value, l = !1, c = o.alias;
1706
- c && (i = c[0], ko(n, Lo([0, 1], c)));
1705
+ var n = Bo(e), i = n.length > 0 ? n[0] : "", o = jo("%" + i + "%", r), s = o.name, a = o.value, l = !1, c = o.alias;
1706
+ c && (i = c[0], Mo(n, ko([0, 1], c)));
1707
1707
  for (var u = 1, f = !0; u < n.length; u += 1) {
1708
1708
  var p = n[u], m = Ve(p, 0, 1), h = Ve(p, -1);
1709
1709
  if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
1710
1710
  throw new ue("property names with quotes must have matching quotes");
1711
- if ((p === "constructor" || !f) && (l = !0), i += "." + p, s = "%" + i + "%", we(X, s))
1712
- a = X[s];
1711
+ if ((p === "constructor" || !f) && (l = !0), i += "." + p, s = "%" + i + "%", ze(Z, s))
1712
+ a = Z[s];
1713
1713
  else if (a != null) {
1714
1714
  if (!(p in a)) {
1715
1715
  if (!r)
1716
1716
  throw new ae("base intrinsic for " + e + " exists, but the property is not available.");
1717
1717
  return;
1718
1718
  }
1719
- if (Y && u + 1 >= n.length) {
1720
- var y = Y(a, p);
1719
+ if (X && u + 1 >= n.length) {
1720
+ var y = X(a, p);
1721
1721
  f = !!y, f && "get" in y && !("originalValue" in y.get) ? a = y.get : a = a[p];
1722
1722
  } else
1723
- f = we(a, p), a = a[p];
1724
- f && !l && (X[s] = a);
1723
+ f = ze(a, p), a = a[p];
1724
+ f && !l && (Z[s] = a);
1725
1725
  }
1726
1726
  }
1727
1727
  return a;
1728
- }, qr = { exports: {} };
1728
+ }, Qr = { exports: {} };
1729
1729
  (function(t) {
1730
1730
  var e = Ft, r = Ut, n = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), o = r("%Reflect.apply%", !0) || e.call(i, n), s = r("%Object.getOwnPropertyDescriptor%", !0), a = r("%Object.defineProperty%", !0), l = r("%Math.max%");
1731
1731
  if (a)
@@ -1750,43 +1750,43 @@ var Do = function t(e) {
1750
1750
  return o(e, n, arguments);
1751
1751
  };
1752
1752
  a ? a(t.exports, "apply", { value: c }) : t.exports.apply = c;
1753
- })(qr);
1754
- var Bo = qr.exports, Kr = Ut, Qr = Bo, $o = Qr(Kr("String.prototype.indexOf")), Go = function(e, r) {
1755
- var n = Kr(e, !!r);
1756
- return typeof n == "function" && $o(e, ".prototype.") > -1 ? Qr(n) : n;
1753
+ })(Qr);
1754
+ var $o = Qr.exports, Yr = Ut, Xr = $o, Ho = Xr(Yr("String.prototype.indexOf")), wo = function(e, r) {
1755
+ var n = Yr(e, !!r);
1756
+ return typeof n == "function" && Ho(e, ".prototype.") > -1 ? Xr(n) : n;
1757
1757
  };
1758
- const zo = {}, Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1758
+ const Go = {}, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1759
1759
  __proto__: null,
1760
- default: zo
1761
- }, Symbol.toStringTag, { value: "Module" })), wo = /* @__PURE__ */ ho(Ho);
1762
- var jt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, We = jt && at && typeof at.get == "function" ? at.get : null, or = jt && Map.prototype.forEach, Bt = typeof Set == "function" && Set.prototype, ct = Object.getOwnPropertyDescriptor && Bt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Bt && ct && typeof ct.get == "function" ? ct.get : null, sr = Bt && Set.prototype.forEach, Vo = typeof WeakMap == "function" && WeakMap.prototype, ve = Vo ? WeakMap.prototype.has : null, Wo = typeof WeakSet == "function" && WeakSet.prototype, Ce = Wo ? WeakSet.prototype.has : null, Jo = typeof WeakRef == "function" && WeakRef.prototype, ar = Jo ? WeakRef.prototype.deref : null, qo = Boolean.prototype.valueOf, Ko = Object.prototype.toString, Qo = Function.prototype.toString, Yo = String.prototype.match, $t = String.prototype.slice, V = String.prototype.replace, Xo = String.prototype.toUpperCase, cr = String.prototype.toLowerCase, Yr = RegExp.prototype.test, lr = Array.prototype.concat, N = Array.prototype.join, Zo = Array.prototype.slice, ur = Math.floor, St = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, fe = typeof Symbol == "function" && typeof Symbol.iterator == "object", _ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === fe || "symbol") ? Symbol.toStringTag : null, Xr = Object.prototype.propertyIsEnumerable, fr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1760
+ default: Go
1761
+ }, Symbol.toStringTag, { value: "Module" })), Vo = /* @__PURE__ */ mo(zo);
1762
+ var Bt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && Bt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, We = Bt && at && typeof at.get == "function" ? at.get : null, ar = Bt && Map.prototype.forEach, jt = typeof Set == "function" && Set.prototype, ct = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = jt && ct && typeof ct.get == "function" ? ct.get : null, cr = jt && Set.prototype.forEach, Wo = typeof WeakMap == "function" && WeakMap.prototype, ve = Wo ? WeakMap.prototype.has : null, Jo = typeof WeakSet == "function" && WeakSet.prototype, Ce = Jo ? WeakSet.prototype.has : null, qo = typeof WeakRef == "function" && WeakRef.prototype, lr = qo ? WeakRef.prototype.deref : null, Ko = Boolean.prototype.valueOf, Qo = Object.prototype.toString, Yo = Function.prototype.toString, Xo = String.prototype.match, $t = String.prototype.slice, W = String.prototype.replace, Zo = String.prototype.toUpperCase, ur = String.prototype.toLowerCase, Zr = RegExp.prototype.test, fr = Array.prototype.concat, N = Array.prototype.join, es = Array.prototype.slice, pr = Math.floor, St = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, fe = typeof Symbol == "function" && typeof Symbol.iterator == "object", _ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === fe || "symbol") ? Symbol.toStringTag : null, en = Object.prototype.propertyIsEnumerable, dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1763
1763
  return t.__proto__;
1764
1764
  } : null);
1765
- function pr(t, e) {
1766
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Yr.call(/e/, e))
1765
+ function hr(t, e) {
1766
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Zr.call(/e/, e))
1767
1767
  return e;
1768
1768
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1769
1769
  if (typeof t == "number") {
1770
- var n = t < 0 ? -ur(-t) : ur(t);
1770
+ var n = t < 0 ? -pr(-t) : pr(t);
1771
1771
  if (n !== t) {
1772
1772
  var i = String(n), o = $t.call(e, i.length + 1);
1773
- return V.call(i, r, "$&_") + "." + V.call(V.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
1773
+ return W.call(i, r, "$&_") + "." + W.call(W.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
1774
1774
  }
1775
1775
  }
1776
- return V.call(e, r, "$&_");
1776
+ return W.call(e, r, "$&_");
1777
1777
  }
1778
- var Ct = wo, dr = Ct.custom, hr = en(dr) ? dr : null, es = function t(e, r, n, i) {
1778
+ var Ct = Vo, mr = Ct.custom, yr = rn(mr) ? mr : null, ts = function t(e, r, n, i) {
1779
1779
  var o = r || {};
1780
- if (w(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1780
+ if (V(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1781
1781
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
1782
- if (w(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
1782
+ if (V(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
1783
1783
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1784
- var s = w(o, "customInspect") ? o.customInspect : !0;
1784
+ var s = V(o, "customInspect") ? o.customInspect : !0;
1785
1785
  if (typeof s != "boolean" && s !== "symbol")
1786
1786
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1787
- if (w(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
1787
+ if (V(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
1788
1788
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1789
- if (w(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
1789
+ if (V(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
1790
1790
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1791
1791
  var a = o.numericSeparator;
1792
1792
  if (typeof e > "u")
@@ -1796,124 +1796,124 @@ var Ct = wo, dr = Ct.custom, hr = en(dr) ? dr : null, es = function t(e, r, n, i
1796
1796
  if (typeof e == "boolean")
1797
1797
  return e ? "true" : "false";
1798
1798
  if (typeof e == "string")
1799
- return rn(e, o);
1799
+ return on(e, o);
1800
1800
  if (typeof e == "number") {
1801
1801
  if (e === 0)
1802
1802
  return 1 / 0 / e > 0 ? "0" : "-0";
1803
1803
  var l = String(e);
1804
- return a ? pr(e, l) : l;
1804
+ return a ? hr(e, l) : l;
1805
1805
  }
1806
1806
  if (typeof e == "bigint") {
1807
1807
  var c = String(e) + "n";
1808
- return a ? pr(e, c) : c;
1808
+ return a ? hr(e, c) : c;
1809
1809
  }
1810
1810
  var u = typeof o.depth > "u" ? 5 : o.depth;
1811
1811
  if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
1812
- return Rt(e) ? "[Array]" : "[Object]";
1813
- var f = Ss(o, n);
1812
+ return bt(e) ? "[Array]" : "[Object]";
1813
+ var f = vs(o, n);
1814
1814
  if (typeof i > "u")
1815
1815
  i = [];
1816
- else if (tn(i, e) >= 0)
1816
+ else if (nn(i, e) >= 0)
1817
1817
  return "[Circular]";
1818
- function p(j, re, Ae) {
1819
- if (re && (i = Zo.call(i), i.push(re)), Ae) {
1820
- var ne = {
1818
+ function p(j, ne, Ae) {
1819
+ if (ne && (i = es.call(i), i.push(ne)), Ae) {
1820
+ var ie = {
1821
1821
  depth: o.depth
1822
1822
  };
1823
- return w(o, "quoteStyle") && (ne.quoteStyle = o.quoteStyle), t(j, ne, n + 1, i);
1823
+ return V(o, "quoteStyle") && (ie.quoteStyle = o.quoteStyle), t(j, ie, n + 1, i);
1824
1824
  }
1825
1825
  return t(j, o, n + 1, i);
1826
1826
  }
1827
- if (typeof e == "function" && !mr(e)) {
1828
- var m = ls(e), h = xe(e, p);
1827
+ if (typeof e == "function" && !gr(e)) {
1828
+ var m = us(e), h = Ie(e, p);
1829
1829
  return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + N.call(h, ", ") + " }" : "");
1830
1830
  }
1831
- if (en(e)) {
1832
- var y = fe ? V.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
1831
+ if (rn(e)) {
1832
+ var y = fe ? W.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
1833
1833
  return typeof e == "object" && !fe ? Se(y) : y;
1834
1834
  }
1835
- if (ms(e)) {
1836
- for (var b = "<" + cr.call(String(e.nodeName)), g = e.attributes || [], O = 0; O < g.length; O++)
1837
- b += " " + g[O].name + "=" + Zr(ts(g[O].value), "double", o);
1838
- return b += ">", e.childNodes && e.childNodes.length && (b += "..."), b += "</" + cr.call(String(e.nodeName)) + ">", b;
1835
+ if (ys(e)) {
1836
+ for (var T = "<" + ur.call(String(e.nodeName)), S = e.attributes || [], A = 0; A < S.length; A++)
1837
+ T += " " + S[A].name + "=" + tn(rs(S[A].value), "double", o);
1838
+ return T += ">", e.childNodes && e.childNodes.length && (T += "..."), T += "</" + ur.call(String(e.nodeName)) + ">", T;
1839
1839
  }
1840
- if (Rt(e)) {
1840
+ if (bt(e)) {
1841
1841
  if (e.length === 0)
1842
1842
  return "[]";
1843
- var I = xe(e, p);
1844
- return f && !gs(I) ? "[" + bt(I, f) + "]" : "[ " + N.call(I, ", ") + " ]";
1843
+ var x = Ie(e, p);
1844
+ return f && !Ss(x) ? "[" + Rt(x, f) + "]" : "[ " + N.call(x, ", ") + " ]";
1845
1845
  }
1846
- if (ns(e)) {
1847
- var G = xe(e, p);
1848
- return !("cause" in Error.prototype) && "cause" in e && !Xr.call(e, "cause") ? "{ [" + String(e) + "] " + N.call(lr.call("[cause]: " + p(e.cause), G), ", ") + " }" : G.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + N.call(G, ", ") + " }";
1846
+ if (is(e)) {
1847
+ var w = Ie(e, p);
1848
+ return !("cause" in Error.prototype) && "cause" in e && !en.call(e, "cause") ? "{ [" + String(e) + "] " + N.call(fr.call("[cause]: " + p(e.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + N.call(w, ", ") + " }";
1849
1849
  }
1850
1850
  if (typeof e == "object" && s) {
1851
- if (hr && typeof e[hr] == "function" && Ct)
1851
+ if (yr && typeof e[yr] == "function" && Ct)
1852
1852
  return Ct(e, { depth: u - n });
1853
1853
  if (s !== "symbol" && typeof e.inspect == "function")
1854
1854
  return e.inspect();
1855
1855
  }
1856
- if (us(e)) {
1856
+ if (fs(e)) {
1857
1857
  var me = [];
1858
- return or && or.call(e, function(j, re) {
1859
- me.push(p(re, e, !0) + " => " + p(j, e));
1860
- }), yr("Map", We.call(e), me, f);
1858
+ return ar && ar.call(e, function(j, ne) {
1859
+ me.push(p(ne, e, !0) + " => " + p(j, e));
1860
+ }), Sr("Map", We.call(e), me, f);
1861
1861
  }
1862
- if (ds(e)) {
1862
+ if (hs(e)) {
1863
1863
  var Oe = [];
1864
- return sr && sr.call(e, function(j) {
1864
+ return cr && cr.call(e, function(j) {
1865
1865
  Oe.push(p(j, e));
1866
- }), yr("Set", Je.call(e), Oe, f);
1866
+ }), Sr("Set", Je.call(e), Oe, f);
1867
1867
  }
1868
- if (fs(e))
1868
+ if (ps(e))
1869
1869
  return ut("WeakMap");
1870
- if (hs(e))
1870
+ if (ms(e))
1871
1871
  return ut("WeakSet");
1872
- if (ps(e))
1872
+ if (ds(e))
1873
1873
  return ut("WeakRef");
1874
- if (os(e))
1874
+ if (ss(e))
1875
1875
  return Se(p(Number(e)));
1876
- if (as(e))
1876
+ if (cs(e))
1877
1877
  return Se(p(St.call(e)));
1878
- if (ss(e))
1879
- return Se(qo.call(e));
1880
- if (is(e))
1878
+ if (as(e))
1879
+ return Se(Ko.call(e));
1880
+ if (os(e))
1881
1881
  return Se(p(String(e)));
1882
- if (!rs(e) && !mr(e)) {
1883
- var J = xe(e, p), z = fr ? fr(e) === Object.prototype : e instanceof Object || e.constructor === Object, ee = e instanceof Object ? "" : "null prototype", te = !z && _ && Object(e) === e && _ in e ? $t.call(W(e), 8, -1) : ee ? "Object" : "", ye = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = ye + (te || ee ? "[" + N.call(lr.call([], te || [], ee || []), ": ") + "] " : "");
1884
- return J.length === 0 ? k + "{}" : f ? k + "{" + bt(J, f) + "}" : k + "{ " + N.call(J, ", ") + " }";
1882
+ if (!ns(e) && !gr(e)) {
1883
+ var q = Ie(e, p), G = dr ? dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, te = e instanceof Object ? "" : "null prototype", re = !G && _ && Object(e) === e && _ in e ? $t.call(J(e), 8, -1) : te ? "Object" : "", ye = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = ye + (re || te ? "[" + N.call(fr.call([], re || [], te || []), ": ") + "] " : "");
1884
+ return q.length === 0 ? k + "{}" : f ? k + "{" + Rt(q, f) + "}" : k + "{ " + N.call(q, ", ") + " }";
1885
1885
  }
1886
1886
  return String(e);
1887
1887
  };
1888
- function Zr(t, e, r) {
1888
+ function tn(t, e, r) {
1889
1889
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
1890
1890
  return n + t + n;
1891
1891
  }
1892
- function ts(t) {
1893
- return V.call(String(t), /"/g, "&quot;");
1894
- }
1895
- function Rt(t) {
1896
- return W(t) === "[object Array]" && (!_ || !(typeof t == "object" && _ in t));
1897
- }
1898
1892
  function rs(t) {
1899
- return W(t) === "[object Date]" && (!_ || !(typeof t == "object" && _ in t));
1893
+ return W.call(String(t), /"/g, "&quot;");
1900
1894
  }
1901
- function mr(t) {
1902
- return W(t) === "[object RegExp]" && (!_ || !(typeof t == "object" && _ in t));
1895
+ function bt(t) {
1896
+ return J(t) === "[object Array]" && (!_ || !(typeof t == "object" && _ in t));
1903
1897
  }
1904
1898
  function ns(t) {
1905
- return W(t) === "[object Error]" && (!_ || !(typeof t == "object" && _ in t));
1899
+ return J(t) === "[object Date]" && (!_ || !(typeof t == "object" && _ in t));
1900
+ }
1901
+ function gr(t) {
1902
+ return J(t) === "[object RegExp]" && (!_ || !(typeof t == "object" && _ in t));
1906
1903
  }
1907
1904
  function is(t) {
1908
- return W(t) === "[object String]" && (!_ || !(typeof t == "object" && _ in t));
1905
+ return J(t) === "[object Error]" && (!_ || !(typeof t == "object" && _ in t));
1909
1906
  }
1910
1907
  function os(t) {
1911
- return W(t) === "[object Number]" && (!_ || !(typeof t == "object" && _ in t));
1908
+ return J(t) === "[object String]" && (!_ || !(typeof t == "object" && _ in t));
1912
1909
  }
1913
1910
  function ss(t) {
1914
- return W(t) === "[object Boolean]" && (!_ || !(typeof t == "object" && _ in t));
1911
+ return J(t) === "[object Number]" && (!_ || !(typeof t == "object" && _ in t));
1912
+ }
1913
+ function as(t) {
1914
+ return J(t) === "[object Boolean]" && (!_ || !(typeof t == "object" && _ in t));
1915
1915
  }
1916
- function en(t) {
1916
+ function rn(t) {
1917
1917
  if (fe)
1918
1918
  return t && typeof t == "object" && t instanceof Symbol;
1919
1919
  if (typeof t == "symbol")
@@ -1926,7 +1926,7 @@ function en(t) {
1926
1926
  }
1927
1927
  return !1;
1928
1928
  }
1929
- function as(t) {
1929
+ function cs(t) {
1930
1930
  if (!t || typeof t != "object" || !St)
1931
1931
  return !1;
1932
1932
  try {
@@ -1935,22 +1935,22 @@ function as(t) {
1935
1935
  }
1936
1936
  return !1;
1937
1937
  }
1938
- var cs = Object.prototype.hasOwnProperty || function(t) {
1938
+ var ls = Object.prototype.hasOwnProperty || function(t) {
1939
1939
  return t in this;
1940
1940
  };
1941
- function w(t, e) {
1942
- return cs.call(t, e);
1941
+ function V(t, e) {
1942
+ return ls.call(t, e);
1943
1943
  }
1944
- function W(t) {
1945
- return Ko.call(t);
1944
+ function J(t) {
1945
+ return Qo.call(t);
1946
1946
  }
1947
- function ls(t) {
1947
+ function us(t) {
1948
1948
  if (t.name)
1949
1949
  return t.name;
1950
- var e = Yo.call(Qo.call(t), /^function\s*([\w$]+)/);
1950
+ var e = Xo.call(Yo.call(t), /^function\s*([\w$]+)/);
1951
1951
  return e ? e[1] : null;
1952
1952
  }
1953
- function tn(t, e) {
1953
+ function nn(t, e) {
1954
1954
  if (t.indexOf)
1955
1955
  return t.indexOf(e);
1956
1956
  for (var r = 0, n = t.length; r < n; r++)
@@ -1958,7 +1958,7 @@ function tn(t, e) {
1958
1958
  return r;
1959
1959
  return -1;
1960
1960
  }
1961
- function us(t) {
1961
+ function fs(t) {
1962
1962
  if (!We || !t || typeof t != "object")
1963
1963
  return !1;
1964
1964
  try {
@@ -1973,7 +1973,7 @@ function us(t) {
1973
1973
  }
1974
1974
  return !1;
1975
1975
  }
1976
- function fs(t) {
1976
+ function ps(t) {
1977
1977
  if (!ve || !t || typeof t != "object")
1978
1978
  return !1;
1979
1979
  try {
@@ -1988,16 +1988,16 @@ function fs(t) {
1988
1988
  }
1989
1989
  return !1;
1990
1990
  }
1991
- function ps(t) {
1992
- if (!ar || !t || typeof t != "object")
1991
+ function ds(t) {
1992
+ if (!lr || !t || typeof t != "object")
1993
1993
  return !1;
1994
1994
  try {
1995
- return ar.call(t), !0;
1995
+ return lr.call(t), !0;
1996
1996
  } catch {
1997
1997
  }
1998
1998
  return !1;
1999
1999
  }
2000
- function ds(t) {
2000
+ function hs(t) {
2001
2001
  if (!Je || !t || typeof t != "object")
2002
2002
  return !1;
2003
2003
  try {
@@ -2012,7 +2012,7 @@ function ds(t) {
2012
2012
  }
2013
2013
  return !1;
2014
2014
  }
2015
- function hs(t) {
2015
+ function ms(t) {
2016
2016
  if (!Ce || !t || typeof t != "object")
2017
2017
  return !1;
2018
2018
  try {
@@ -2027,18 +2027,18 @@ function hs(t) {
2027
2027
  }
2028
2028
  return !1;
2029
2029
  }
2030
- function ms(t) {
2030
+ function ys(t) {
2031
2031
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2032
2032
  }
2033
- function rn(t, e) {
2033
+ function on(t, e) {
2034
2034
  if (t.length > e.maxStringLength) {
2035
2035
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
2036
- return rn($t.call(t, 0, e.maxStringLength), e) + n;
2036
+ return on($t.call(t, 0, e.maxStringLength), e) + n;
2037
2037
  }
2038
- var i = V.call(V.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ys);
2039
- return Zr(i, "single", e);
2038
+ var i = W.call(W.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, gs);
2039
+ return tn(i, "single", e);
2040
2040
  }
2041
- function ys(t) {
2041
+ function gs(t) {
2042
2042
  var e = t.charCodeAt(0), r = {
2043
2043
  8: "b",
2044
2044
  9: "t",
@@ -2046,7 +2046,7 @@ function ys(t) {
2046
2046
  12: "f",
2047
2047
  13: "r"
2048
2048
  }[e];
2049
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Xo.call(e.toString(16));
2049
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Zo.call(e.toString(16));
2050
2050
  }
2051
2051
  function Se(t) {
2052
2052
  return "Object(" + t + ")";
@@ -2054,18 +2054,18 @@ function Se(t) {
2054
2054
  function ut(t) {
2055
2055
  return t + " { ? }";
2056
2056
  }
2057
- function yr(t, e, r, n) {
2058
- var i = n ? bt(r, n) : N.call(r, ", ");
2057
+ function Sr(t, e, r, n) {
2058
+ var i = n ? Rt(r, n) : N.call(r, ", ");
2059
2059
  return t + " (" + e + ") {" + i + "}";
2060
2060
  }
2061
- function gs(t) {
2061
+ function Ss(t) {
2062
2062
  for (var e = 0; e < t.length; e++)
2063
- if (tn(t[e], `
2063
+ if (nn(t[e], `
2064
2064
  `) >= 0)
2065
2065
  return !1;
2066
2066
  return !0;
2067
2067
  }
2068
- function Ss(t, e) {
2068
+ function vs(t, e) {
2069
2069
  var r;
2070
2070
  if (t.indent === " ")
2071
2071
  r = " ";
@@ -2078,7 +2078,7 @@ function Ss(t, e) {
2078
2078
  prev: N.call(Array(e + 1), r)
2079
2079
  };
2080
2080
  }
2081
- function bt(t, e) {
2081
+ function Rt(t, e) {
2082
2082
  if (t.length === 0)
2083
2083
  return "";
2084
2084
  var r = `
@@ -2086,12 +2086,12 @@ function bt(t, e) {
2086
2086
  return r + N.call(t, "," + r) + `
2087
2087
  ` + e.prev;
2088
2088
  }
2089
- function xe(t, e) {
2090
- var r = Rt(t), n = [];
2089
+ function Ie(t, e) {
2090
+ var r = bt(t), n = [];
2091
2091
  if (r) {
2092
2092
  n.length = t.length;
2093
2093
  for (var i = 0; i < t.length; i++)
2094
- n[i] = w(t, i) ? e(t[i], t) : "";
2094
+ n[i] = V(t, i) ? e(t[i], t) : "";
2095
2095
  }
2096
2096
  var o = typeof lt == "function" ? lt(t) : [], s;
2097
2097
  if (fe) {
@@ -2100,69 +2100,69 @@ function xe(t, e) {
2100
2100
  s["$" + o[a]] = o[a];
2101
2101
  }
2102
2102
  for (var l in t)
2103
- w(t, l) && (r && String(Number(l)) === l && l < t.length || fe && s["$" + l] instanceof Symbol || (Yr.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
2103
+ V(t, l) && (r && String(Number(l)) === l && l < t.length || fe && s["$" + l] instanceof Symbol || (Zr.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
2104
2104
  if (typeof lt == "function")
2105
2105
  for (var c = 0; c < o.length; c++)
2106
- Xr.call(t, o[c]) && n.push("[" + e(o[c]) + "]: " + e(t[o[c]], t));
2106
+ en.call(t, o[c]) && n.push("[" + e(o[c]) + "]: " + e(t[o[c]], t));
2107
2107
  return n;
2108
2108
  }
2109
- var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0), Ie = Gt("%Map%", !0), Rs = he("WeakMap.prototype.get", !0), bs = he("WeakMap.prototype.set", !0), Ts = he("WeakMap.prototype.has", !0), Ps = he("Map.prototype.get", !0), Es = he("Map.prototype.set", !0), Os = he("Map.prototype.has", !0), zt = function(t, e) {
2109
+ var Ht = Ut, he = wo, Cs = ts, bs = Ht("%TypeError%"), _e = Ht("%WeakMap%", !0), xe = Ht("%Map%", !0), Rs = he("WeakMap.prototype.get", !0), Ts = he("WeakMap.prototype.set", !0), Es = he("WeakMap.prototype.has", !0), Ps = he("Map.prototype.get", !0), Os = he("Map.prototype.set", !0), As = he("Map.prototype.has", !0), wt = function(t, e) {
2110
2110
  for (var r = t, n; (n = r.next) !== null; r = n)
2111
2111
  if (n.key === e)
2112
2112
  return r.next = n.next, n.next = t.next, t.next = n, n;
2113
- }, As = function(t, e) {
2114
- var r = zt(t, e);
2113
+ }, Is = function(t, e) {
2114
+ var r = wt(t, e);
2115
2115
  return r && r.value;
2116
- }, xs = function(t, e, r) {
2117
- var n = zt(t, e);
2116
+ }, _s = function(t, e, r) {
2117
+ var n = wt(t, e);
2118
2118
  n ? n.value = r : t.next = {
2119
2119
  // eslint-disable-line no-param-reassign
2120
2120
  key: e,
2121
2121
  next: t.next,
2122
2122
  value: r
2123
2123
  };
2124
- }, _s = function(t, e) {
2125
- return !!zt(t, e);
2126
- }, Is = function() {
2124
+ }, xs = function(t, e) {
2125
+ return !!wt(t, e);
2126
+ }, Ds = function() {
2127
2127
  var e, r, n, i = {
2128
2128
  assert: function(o) {
2129
2129
  if (!i.has(o))
2130
- throw new Cs("Side channel does not contain " + vs(o));
2130
+ throw new bs("Side channel does not contain " + Cs(o));
2131
2131
  },
2132
2132
  get: function(o) {
2133
2133
  if (_e && o && (typeof o == "object" || typeof o == "function")) {
2134
2134
  if (e)
2135
2135
  return Rs(e, o);
2136
- } else if (Ie) {
2136
+ } else if (xe) {
2137
2137
  if (r)
2138
2138
  return Ps(r, o);
2139
2139
  } else if (n)
2140
- return As(n, o);
2140
+ return Is(n, o);
2141
2141
  },
2142
2142
  has: function(o) {
2143
2143
  if (_e && o && (typeof o == "object" || typeof o == "function")) {
2144
2144
  if (e)
2145
- return Ts(e, o);
2146
- } else if (Ie) {
2145
+ return Es(e, o);
2146
+ } else if (xe) {
2147
2147
  if (r)
2148
- return Os(r, o);
2148
+ return As(r, o);
2149
2149
  } else if (n)
2150
- return _s(n, o);
2150
+ return xs(n, o);
2151
2151
  return !1;
2152
2152
  },
2153
2153
  set: function(o, s) {
2154
- _e && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new _e()), bs(e, o, s)) : Ie ? (r || (r = new Ie()), Es(r, o, s)) : (n || (n = { key: {}, next: null }), xs(n, o, s));
2154
+ _e && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new _e()), Ts(e, o, s)) : xe ? (r || (r = new xe()), Os(r, o, s)) : (n || (n = { key: {}, next: null }), _s(n, o, s));
2155
2155
  }
2156
2156
  };
2157
2157
  return i;
2158
- }, Ds = String.prototype.replace, Ls = /%20/g, ft = {
2158
+ }, Ls = String.prototype.replace, ks = /%20/g, ft = {
2159
2159
  RFC1738: "RFC1738",
2160
2160
  RFC3986: "RFC3986"
2161
- }, Ht = {
2161
+ }, Gt = {
2162
2162
  default: ft.RFC3986,
2163
2163
  formatters: {
2164
2164
  RFC1738: function(t) {
2165
- return Ds.call(t, Ls, "+");
2165
+ return Ls.call(t, ks, "+");
2166
2166
  },
2167
2167
  RFC3986: function(t) {
2168
2168
  return String(t);
@@ -2170,28 +2170,28 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2170
2170
  },
2171
2171
  RFC1738: ft.RFC1738,
2172
2172
  RFC3986: ft.RFC3986
2173
- }, ks = Ht, pt = Object.prototype.hasOwnProperty, Q = Array.isArray, M = function() {
2173
+ }, Ms = Gt, pt = Object.prototype.hasOwnProperty, Y = Array.isArray, M = function() {
2174
2174
  for (var t = [], e = 0; e < 256; ++e)
2175
2175
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2176
2176
  return t;
2177
- }(), Ms = function(e) {
2177
+ }(), Ns = function(e) {
2178
2178
  for (; e.length > 1; ) {
2179
2179
  var r = e.pop(), n = r.obj[r.prop];
2180
- if (Q(n)) {
2180
+ if (Y(n)) {
2181
2181
  for (var i = [], o = 0; o < n.length; ++o)
2182
2182
  typeof n[o] < "u" && i.push(n[o]);
2183
2183
  r.obj[r.prop] = i;
2184
2184
  }
2185
2185
  }
2186
- }, nn = function(e, r) {
2186
+ }, sn = function(e, r) {
2187
2187
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < e.length; ++i)
2188
2188
  typeof e[i] < "u" && (n[i] = e[i]);
2189
2189
  return n;
2190
- }, Ns = function t(e, r, n) {
2190
+ }, Fs = function t(e, r, n) {
2191
2191
  if (!r)
2192
2192
  return e;
2193
2193
  if (typeof r != "object") {
2194
- if (Q(e))
2194
+ if (Y(e))
2195
2195
  e.push(r);
2196
2196
  else if (e && typeof e == "object")
2197
2197
  (n && (n.plainObjects || n.allowPrototypes) || !pt.call(Object.prototype, r)) && (e[r] = !0);
@@ -2202,7 +2202,7 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2202
2202
  if (!e || typeof e != "object")
2203
2203
  return [e].concat(r);
2204
2204
  var i = e;
2205
- return Q(e) && !Q(r) && (i = nn(e, n)), Q(e) && Q(r) ? (r.forEach(function(o, s) {
2205
+ return Y(e) && !Y(r) && (i = sn(e, n)), Y(e) && Y(r) ? (r.forEach(function(o, s) {
2206
2206
  if (pt.call(e, s)) {
2207
2207
  var a = e[s];
2208
2208
  a && typeof a == "object" && o && typeof o == "object" ? e[s] = t(a, o, n) : e.push(o);
@@ -2212,11 +2212,11 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2212
2212
  var a = r[s];
2213
2213
  return pt.call(o, s) ? o[s] = t(o[s], a, n) : o[s] = a, o;
2214
2214
  }, i);
2215
- }, Fs = function(e, r) {
2215
+ }, Us = function(e, r) {
2216
2216
  return Object.keys(r).reduce(function(n, i) {
2217
2217
  return n[i] = r[i], n;
2218
2218
  }, e);
2219
- }, Us = function(t, e, r) {
2219
+ }, Bs = function(t, e, r) {
2220
2220
  var n = t.replace(/\+/g, " ");
2221
2221
  if (r === "iso-8859-1")
2222
2222
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -2235,7 +2235,7 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2235
2235
  });
2236
2236
  for (var a = "", l = 0; l < s.length; ++l) {
2237
2237
  var c = s.charCodeAt(l);
2238
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === ks.RFC1738 && (c === 40 || c === 41)) {
2238
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === Ms.RFC1738 && (c === 40 || c === 41)) {
2239
2239
  a += s.charAt(l);
2240
2240
  continue;
2241
2241
  }
@@ -2254,38 +2254,38 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2254
2254
  l += 1, c = 65536 + ((c & 1023) << 10 | s.charCodeAt(l) & 1023), a += M[240 | c >> 18] + M[128 | c >> 12 & 63] + M[128 | c >> 6 & 63] + M[128 | c & 63];
2255
2255
  }
2256
2256
  return a;
2257
- }, Bs = function(e) {
2257
+ }, $s = function(e) {
2258
2258
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], i = 0; i < r.length; ++i)
2259
2259
  for (var o = r[i], s = o.obj[o.prop], a = Object.keys(s), l = 0; l < a.length; ++l) {
2260
2260
  var c = a[l], u = s[c];
2261
2261
  typeof u == "object" && u !== null && n.indexOf(u) === -1 && (r.push({ obj: s, prop: c }), n.push(u));
2262
2262
  }
2263
- return Ms(r), e;
2264
- }, $s = function(e) {
2263
+ return Ns(r), e;
2264
+ }, Hs = function(e) {
2265
2265
  return Object.prototype.toString.call(e) === "[object RegExp]";
2266
- }, Gs = function(e) {
2266
+ }, ws = function(e) {
2267
2267
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2268
- }, zs = function(e, r) {
2268
+ }, Gs = function(e, r) {
2269
2269
  return [].concat(e, r);
2270
- }, Hs = function(e, r) {
2271
- if (Q(e)) {
2270
+ }, zs = function(e, r) {
2271
+ if (Y(e)) {
2272
2272
  for (var n = [], i = 0; i < e.length; i += 1)
2273
2273
  n.push(r(e[i]));
2274
2274
  return n;
2275
2275
  }
2276
2276
  return r(e);
2277
- }, on = {
2278
- arrayToObject: nn,
2279
- assign: Fs,
2280
- combine: zs,
2281
- compact: Bs,
2282
- decode: Us,
2277
+ }, an = {
2278
+ arrayToObject: sn,
2279
+ assign: Us,
2280
+ combine: Gs,
2281
+ compact: $s,
2282
+ decode: Bs,
2283
2283
  encode: js,
2284
- isBuffer: Gs,
2285
- isRegExp: $s,
2286
- maybeMap: Hs,
2287
- merge: Ns
2288
- }, sn = Is, Ne = on, Re = Ht, ws = Object.prototype.hasOwnProperty, gr = {
2284
+ isBuffer: ws,
2285
+ isRegExp: Hs,
2286
+ maybeMap: zs,
2287
+ merge: Fs
2288
+ }, cn = Ds, Ne = an, be = Gt, Vs = Object.prototype.hasOwnProperty, vr = {
2289
2289
  brackets: function(e) {
2290
2290
  return e + "[]";
2291
2291
  },
@@ -2296,9 +2296,9 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2296
2296
  repeat: function(e) {
2297
2297
  return e;
2298
2298
  }
2299
- }, B = Array.isArray, Vs = Array.prototype.push, an = function(t, e) {
2300
- Vs.apply(t, B(e) ? e : [e]);
2301
- }, Ws = Date.prototype.toISOString, Sr = Re.default, A = {
2299
+ }, $ = Array.isArray, Ws = Array.prototype.push, ln = function(t, e) {
2300
+ Ws.apply(t, $(e) ? e : [e]);
2301
+ }, Js = Date.prototype.toISOString, Cr = be.default, I = {
2302
2302
  addQueryPrefix: !1,
2303
2303
  allowDots: !1,
2304
2304
  charset: "utf-8",
@@ -2307,67 +2307,67 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2307
2307
  encode: !0,
2308
2308
  encoder: Ne.encode,
2309
2309
  encodeValuesOnly: !1,
2310
- format: Sr,
2311
- formatter: Re.formatters[Sr],
2310
+ format: Cr,
2311
+ formatter: be.formatters[Cr],
2312
2312
  // deprecated
2313
2313
  indices: !1,
2314
2314
  serializeDate: function(e) {
2315
- return Ws.call(e);
2315
+ return Js.call(e);
2316
2316
  },
2317
2317
  skipNulls: !1,
2318
2318
  strictNullHandling: !1
2319
- }, Js = function(e) {
2319
+ }, qs = function(e) {
2320
2320
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2321
- }, dt = {}, qs = function t(e, r, n, i, o, s, a, l, c, u, f, p, m, h, y, b) {
2322
- for (var g = e, O = b, I = 0, G = !1; (O = O.get(dt)) !== void 0 && !G; ) {
2323
- var me = O.get(e);
2324
- if (I += 1, typeof me < "u") {
2325
- if (me === I)
2321
+ }, dt = {}, Ks = function t(e, r, n, i, o, s, a, l, c, u, f, p, m, h, y, T) {
2322
+ for (var S = e, A = T, x = 0, w = !1; (A = A.get(dt)) !== void 0 && !w; ) {
2323
+ var me = A.get(e);
2324
+ if (x += 1, typeof me < "u") {
2325
+ if (me === x)
2326
2326
  throw new RangeError("Cyclic object value");
2327
- G = !0;
2327
+ w = !0;
2328
2328
  }
2329
- typeof O.get(dt) > "u" && (I = 0);
2329
+ typeof A.get(dt) > "u" && (x = 0);
2330
2330
  }
2331
- if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = f(g) : n === "comma" && B(g) && (g = Ne.maybeMap(g, function(ne) {
2332
- return ne instanceof Date ? f(ne) : ne;
2333
- })), g === null) {
2331
+ if (typeof l == "function" ? S = l(r, S) : S instanceof Date ? S = f(S) : n === "comma" && $(S) && (S = Ne.maybeMap(S, function(ie) {
2332
+ return ie instanceof Date ? f(ie) : ie;
2333
+ })), S === null) {
2334
2334
  if (o)
2335
- return a && !h ? a(r, A.encoder, y, "key", p) : r;
2336
- g = "";
2335
+ return a && !h ? a(r, I.encoder, y, "key", p) : r;
2336
+ S = "";
2337
2337
  }
2338
- if (Js(g) || Ne.isBuffer(g)) {
2338
+ if (qs(S) || Ne.isBuffer(S)) {
2339
2339
  if (a) {
2340
- var Oe = h ? r : a(r, A.encoder, y, "key", p);
2341
- return [m(Oe) + "=" + m(a(g, A.encoder, y, "value", p))];
2340
+ var Oe = h ? r : a(r, I.encoder, y, "key", p);
2341
+ return [m(Oe) + "=" + m(a(S, I.encoder, y, "value", p))];
2342
2342
  }
2343
- return [m(r) + "=" + m(String(g))];
2344
- }
2345
- var J = [];
2346
- if (typeof g > "u")
2347
- return J;
2348
- var z;
2349
- if (n === "comma" && B(g))
2350
- h && a && (g = Ne.maybeMap(g, a)), z = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2351
- else if (B(l))
2352
- z = l;
2343
+ return [m(r) + "=" + m(String(S))];
2344
+ }
2345
+ var q = [];
2346
+ if (typeof S > "u")
2347
+ return q;
2348
+ var G;
2349
+ if (n === "comma" && $(S))
2350
+ h && a && (S = Ne.maybeMap(S, a)), G = [{ value: S.length > 0 ? S.join(",") || null : void 0 }];
2351
+ else if ($(l))
2352
+ G = l;
2353
2353
  else {
2354
- var ee = Object.keys(g);
2355
- z = c ? ee.sort(c) : ee;
2354
+ var te = Object.keys(S);
2355
+ G = c ? te.sort(c) : te;
2356
2356
  }
2357
- for (var te = i && B(g) && g.length === 1 ? r + "[]" : r, ye = 0; ye < z.length; ++ye) {
2358
- var k = z[ye], j = typeof k == "object" && typeof k.value < "u" ? k.value : g[k];
2357
+ for (var re = i && $(S) && S.length === 1 ? r + "[]" : r, ye = 0; ye < G.length; ++ye) {
2358
+ var k = G[ye], j = typeof k == "object" && typeof k.value < "u" ? k.value : S[k];
2359
2359
  if (!(s && j === null)) {
2360
- var re = B(g) ? typeof n == "function" ? n(te, k) : te : te + (u ? "." + k : "[" + k + "]");
2361
- b.set(e, I);
2362
- var Ae = sn();
2363
- Ae.set(dt, b), an(J, t(
2360
+ var ne = $(S) ? typeof n == "function" ? n(re, k) : re : re + (u ? "." + k : "[" + k + "]");
2361
+ T.set(e, x);
2362
+ var Ae = cn();
2363
+ Ae.set(dt, T), ln(q, t(
2364
2364
  j,
2365
- re,
2365
+ ne,
2366
2366
  n,
2367
2367
  i,
2368
2368
  o,
2369
2369
  s,
2370
- n === "comma" && h && B(g) ? null : a,
2370
+ n === "comma" && h && $(S) ? null : a,
2371
2371
  l,
2372
2372
  c,
2373
2373
  u,
@@ -2380,55 +2380,55 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2380
2380
  ));
2381
2381
  }
2382
2382
  }
2383
- return J;
2384
- }, Ks = function(e) {
2383
+ return q;
2384
+ }, Qs = function(e) {
2385
2385
  if (!e)
2386
- return A;
2386
+ return I;
2387
2387
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2388
2388
  throw new TypeError("Encoder has to be a function.");
2389
- var r = e.charset || A.charset;
2389
+ var r = e.charset || I.charset;
2390
2390
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2391
2391
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2392
- var n = Re.default;
2392
+ var n = be.default;
2393
2393
  if (typeof e.format < "u") {
2394
- if (!ws.call(Re.formatters, e.format))
2394
+ if (!Vs.call(be.formatters, e.format))
2395
2395
  throw new TypeError("Unknown format option provided.");
2396
2396
  n = e.format;
2397
2397
  }
2398
- var i = Re.formatters[n], o = A.filter;
2399
- return (typeof e.filter == "function" || B(e.filter)) && (o = e.filter), {
2400
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : A.addQueryPrefix,
2401
- allowDots: typeof e.allowDots > "u" ? A.allowDots : !!e.allowDots,
2398
+ var i = be.formatters[n], o = I.filter;
2399
+ return (typeof e.filter == "function" || $(e.filter)) && (o = e.filter), {
2400
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : I.addQueryPrefix,
2401
+ allowDots: typeof e.allowDots > "u" ? I.allowDots : !!e.allowDots,
2402
2402
  charset: r,
2403
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
2404
- delimiter: typeof e.delimiter > "u" ? A.delimiter : e.delimiter,
2405
- encode: typeof e.encode == "boolean" ? e.encode : A.encode,
2406
- encoder: typeof e.encoder == "function" ? e.encoder : A.encoder,
2407
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : A.encodeValuesOnly,
2403
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : I.charsetSentinel,
2404
+ delimiter: typeof e.delimiter > "u" ? I.delimiter : e.delimiter,
2405
+ encode: typeof e.encode == "boolean" ? e.encode : I.encode,
2406
+ encoder: typeof e.encoder == "function" ? e.encoder : I.encoder,
2407
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : I.encodeValuesOnly,
2408
2408
  filter: o,
2409
2409
  format: n,
2410
2410
  formatter: i,
2411
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : A.serializeDate,
2412
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : A.skipNulls,
2411
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : I.serializeDate,
2412
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : I.skipNulls,
2413
2413
  sort: typeof e.sort == "function" ? e.sort : null,
2414
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling
2414
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling
2415
2415
  };
2416
- }, Qs = function(t, e) {
2417
- var r = t, n = Ks(e), i, o;
2418
- typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : B(n.filter) && (o = n.filter, i = o);
2416
+ }, Ys = function(t, e) {
2417
+ var r = t, n = Qs(e), i, o;
2418
+ typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : $(n.filter) && (o = n.filter, i = o);
2419
2419
  var s = [];
2420
2420
  if (typeof r != "object" || r === null)
2421
2421
  return "";
2422
2422
  var a;
2423
- e && e.arrayFormat in gr ? a = e.arrayFormat : e && "indices" in e ? a = e.indices ? "indices" : "repeat" : a = "indices";
2424
- var l = gr[a];
2423
+ e && e.arrayFormat in vr ? a = e.arrayFormat : e && "indices" in e ? a = e.indices ? "indices" : "repeat" : a = "indices";
2424
+ var l = vr[a];
2425
2425
  if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2426
2426
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2427
2427
  var c = l === "comma" && e && e.commaRoundTrip;
2428
2428
  i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
2429
- for (var u = sn(), f = 0; f < i.length; ++f) {
2429
+ for (var u = cn(), f = 0; f < i.length; ++f) {
2430
2430
  var p = i[f];
2431
- n.skipNulls && r[p] === null || an(s, qs(
2431
+ n.skipNulls && r[p] === null || ln(s, Ks(
2432
2432
  r[p],
2433
2433
  p,
2434
2434
  l,
@@ -2449,7 +2449,7 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2449
2449
  }
2450
2450
  var m = s.join(n.delimiter), h = n.addQueryPrefix === !0 ? "?" : "";
2451
2451
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), m.length > 0 ? h + m : "";
2452
- }, pe = on, Tt = Object.prototype.hasOwnProperty, Ys = Array.isArray, P = {
2452
+ }, pe = an, Tt = Object.prototype.hasOwnProperty, Xs = Array.isArray, P = {
2453
2453
  allowDots: !1,
2454
2454
  allowPrototypes: !1,
2455
2455
  allowSparse: !1,
@@ -2466,30 +2466,30 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2466
2466
  parseArrays: !0,
2467
2467
  plainObjects: !1,
2468
2468
  strictNullHandling: !1
2469
- }, Xs = function(t) {
2469
+ }, Zs = function(t) {
2470
2470
  return t.replace(/&#(\d+);/g, function(e, r) {
2471
2471
  return String.fromCharCode(parseInt(r, 10));
2472
2472
  });
2473
- }, cn = function(t, e) {
2473
+ }, un = function(t, e) {
2474
2474
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2475
- }, Zs = "utf8=%26%2310003%3B", ea = "utf8=%E2%9C%93", ta = function(e, r) {
2475
+ }, ea = "utf8=%26%2310003%3B", ta = "utf8=%E2%9C%93", ra = function(e, r) {
2476
2476
  var n = { __proto__: null }, i = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, s = i.split(r.delimiter, o), a = -1, l, c = r.charset;
2477
2477
  if (r.charsetSentinel)
2478
2478
  for (l = 0; l < s.length; ++l)
2479
- s[l].indexOf("utf8=") === 0 && (s[l] === ea ? c = "utf-8" : s[l] === Zs && (c = "iso-8859-1"), a = l, l = s.length);
2479
+ s[l].indexOf("utf8=") === 0 && (s[l] === ta ? c = "utf-8" : s[l] === ea && (c = "iso-8859-1"), a = l, l = s.length);
2480
2480
  for (l = 0; l < s.length; ++l)
2481
2481
  if (l !== a) {
2482
2482
  var u = s[l], f = u.indexOf("]="), p = f === -1 ? u.indexOf("=") : f + 1, m, h;
2483
2483
  p === -1 ? (m = r.decoder(u, P.decoder, c, "key"), h = r.strictNullHandling ? null : "") : (m = r.decoder(u.slice(0, p), P.decoder, c, "key"), h = pe.maybeMap(
2484
- cn(u.slice(p + 1), r),
2484
+ un(u.slice(p + 1), r),
2485
2485
  function(y) {
2486
2486
  return r.decoder(y, P.decoder, c, "value");
2487
2487
  }
2488
- )), h && r.interpretNumericEntities && c === "iso-8859-1" && (h = Xs(h)), u.indexOf("[]=") > -1 && (h = Ys(h) ? [h] : h), Tt.call(n, m) ? n[m] = pe.combine(n[m], h) : n[m] = h;
2488
+ )), h && r.interpretNumericEntities && c === "iso-8859-1" && (h = Zs(h)), u.indexOf("[]=") > -1 && (h = Xs(h) ? [h] : h), Tt.call(n, m) ? n[m] = pe.combine(n[m], h) : n[m] = h;
2489
2489
  }
2490
2490
  return n;
2491
- }, ra = function(t, e, r, n) {
2492
- for (var i = n ? e : cn(e, r), o = t.length - 1; o >= 0; --o) {
2491
+ }, na = function(t, e, r, n) {
2492
+ for (var i = n ? e : un(e, r), o = t.length - 1; o >= 0; --o) {
2493
2493
  var s, a = t[o];
2494
2494
  if (a === "[]" && r.parseArrays)
2495
2495
  s = [].concat(i);
@@ -2501,7 +2501,7 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2501
2501
  i = s;
2502
2502
  }
2503
2503
  return i;
2504
- }, na = function(e, r, n, i) {
2504
+ }, ia = function(e, r, n, i) {
2505
2505
  if (e) {
2506
2506
  var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, s = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, l = n.depth > 0 && s.exec(o), c = l ? o.slice(0, l.index) : o, u = [];
2507
2507
  if (c) {
@@ -2514,9 +2514,9 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2514
2514
  return;
2515
2515
  u.push(l[1]);
2516
2516
  }
2517
- return l && u.push("[" + o.slice(l.index) + "]"), ra(u, r, n, i);
2517
+ return l && u.push("[" + o.slice(l.index) + "]"), na(u, r, n, i);
2518
2518
  }
2519
- }, ia = function(e) {
2519
+ }, oa = function(e) {
2520
2520
  if (!e)
2521
2521
  return P;
2522
2522
  if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
@@ -2543,25 +2543,25 @@ var Gt = Ut, he = Go, vs = es, Cs = Gt("%TypeError%"), _e = Gt("%WeakMap%", !0),
2543
2543
  plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : P.plainObjects,
2544
2544
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : P.strictNullHandling
2545
2545
  };
2546
- }, oa = function(t, e) {
2547
- var r = ia(e);
2546
+ }, sa = function(t, e) {
2547
+ var r = oa(e);
2548
2548
  if (t === "" || t === null || typeof t > "u")
2549
2549
  return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2550
- for (var n = typeof t == "string" ? ta(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), s = 0; s < o.length; ++s) {
2551
- var a = o[s], l = na(a, n[a], r, typeof t == "string");
2550
+ for (var n = typeof t == "string" ? ra(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), s = 0; s < o.length; ++s) {
2551
+ var a = o[s], l = ia(a, n[a], r, typeof t == "string");
2552
2552
  i = pe.merge(i, l, r);
2553
2553
  }
2554
2554
  return r.allowSparse === !0 ? i : pe.compact(i);
2555
- }, sa = Qs, aa = oa, ca = Ht, la = {
2556
- formats: ca,
2557
- parse: aa,
2558
- stringify: sa
2555
+ }, aa = Ys, ca = sa, la = Gt, ua = {
2556
+ formats: la,
2557
+ parse: ca,
2558
+ stringify: aa
2559
2559
  };
2560
- const ua = /* @__PURE__ */ Wr(la);
2561
- class ln {
2560
+ const fa = /* @__PURE__ */ qr(ua);
2561
+ class fn {
2562
2562
  constructor(e) {
2563
- S(this, "axiosInstance");
2564
- this.axiosInstance = po.create({
2563
+ g(this, "axiosInstance");
2564
+ this.axiosInstance = ho.create({
2565
2565
  baseURL: e,
2566
2566
  timeout: 12e4
2567
2567
  });
@@ -2575,7 +2575,7 @@ class ln {
2575
2575
  return new Promise((i, o) => {
2576
2576
  r && (n ? n.params = r : n = {
2577
2577
  params: r
2578
- }), n && (n.paramsSerializer = { serialize: (s, a) => ua.stringify(s, { indices: !1 }) }), this.axiosInstance.get(e, n ?? {}).then(({ data: s }) => i(s)).catch((s) => o(s));
2578
+ }), n && (n.paramsSerializer = { serialize: (s, a) => fa.stringify(s, { indices: !1 }) }), this.axiosInstance.get(e, n ?? {}).then(({ data: s }) => i(s)).catch((s) => o(s));
2579
2579
  });
2580
2580
  }
2581
2581
  Post(e, r, n) {
@@ -2596,7 +2596,7 @@ class ln {
2596
2596
  });
2597
2597
  }
2598
2598
  }
2599
- class fa {
2599
+ class pa {
2600
2600
  onAddLocalStream(e) {
2601
2601
  console.debug("onAddLocalStream:", e);
2602
2602
  }
@@ -2610,13 +2610,13 @@ class fa {
2610
2610
  console.debug("onStartSuccess:", e);
2611
2611
  }
2612
2612
  }
2613
- var x = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.AUDIO = 1] = "AUDIO", t[t.VIDEO = 2] = "VIDEO", t[t.RTSP_PULL = 3] = "RTSP_PULL", t))(x || {}), q = /* @__PURE__ */ ((t) => (t.FRONT_FACING = "user", t.BACK_FACING = "environment", t))(q || {});
2614
- let un = !0, fn = !0;
2613
+ var b = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.AUDIO = 1] = "AUDIO", t[t.VIDEO = 2] = "VIDEO", t[t.RTSP_PULL = 3] = "RTSP_PULL", t[t.AUDIO_PUSH = 4] = "AUDIO_PUSH", t[t.VIDEO_PUSH = 5] = "VIDEO_PUSH", t))(b || {}), K = /* @__PURE__ */ ((t) => (t.FRONT_FACING = "user", t.BACK_FACING = "environment", t))(K || {});
2614
+ let pn = !0, dn = !0;
2615
2615
  function Fe(t, e, r) {
2616
2616
  const n = t.match(e);
2617
2617
  return n && n.length >= r && parseInt(n[r], 10);
2618
2618
  }
2619
- function Z(t, e, r) {
2619
+ function ee(t, e, r) {
2620
2620
  if (!t.RTCPeerConnection)
2621
2621
  return;
2622
2622
  const n = t.RTCPeerConnection.prototype, i = n.addEventListener;
@@ -2660,23 +2660,23 @@ function Z(t, e, r) {
2660
2660
  configurable: !0
2661
2661
  });
2662
2662
  }
2663
- function pa(t) {
2664
- return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (un = t, t ? "adapter.js logging disabled" : "adapter.js logging enabled");
2665
- }
2666
2663
  function da(t) {
2667
- return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (fn = !t, "adapter.js deprecation warnings " + (t ? "disabled" : "enabled"));
2664
+ return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (pn = t, t ? "adapter.js logging disabled" : "adapter.js logging enabled");
2668
2665
  }
2669
- function pn() {
2666
+ function ha(t) {
2667
+ return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (dn = !t, "adapter.js deprecation warnings " + (t ? "disabled" : "enabled"));
2668
+ }
2669
+ function hn() {
2670
2670
  if (typeof window == "object") {
2671
- if (un)
2671
+ if (pn)
2672
2672
  return;
2673
2673
  typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
2674
2674
  }
2675
2675
  }
2676
- function wt(t, e) {
2677
- fn && console.warn(t + " is deprecated, please use " + e + " instead.");
2676
+ function zt(t, e) {
2677
+ dn && console.warn(t + " is deprecated, please use " + e + " instead.");
2678
2678
  }
2679
- function ha(t) {
2679
+ function ma(t) {
2680
2680
  const e = { browser: null, version: null };
2681
2681
  if (typeof t > "u" || !t.navigator || !t.navigator.userAgent)
2682
2682
  return e.browser = "Not a browser.", e;
@@ -2703,23 +2703,23 @@ function ha(t) {
2703
2703
  return e.browser = "Not a supported browser.", e;
2704
2704
  return e;
2705
2705
  }
2706
- function vr(t) {
2706
+ function br(t) {
2707
2707
  return Object.prototype.toString.call(t) === "[object Object]";
2708
2708
  }
2709
- function dn(t) {
2710
- return vr(t) ? Object.keys(t).reduce(function(e, r) {
2711
- const n = vr(t[r]), i = n ? dn(t[r]) : t[r], o = n && !Object.keys(i).length;
2709
+ function mn(t) {
2710
+ return br(t) ? Object.keys(t).reduce(function(e, r) {
2711
+ const n = br(t[r]), i = n ? mn(t[r]) : t[r], o = n && !Object.keys(i).length;
2712
2712
  return i === void 0 || o ? e : Object.assign(e, { [r]: i });
2713
2713
  }, {}) : t;
2714
2714
  }
2715
- function Pt(t, e, r) {
2715
+ function Et(t, e, r) {
2716
2716
  !e || r.has(e.id) || (r.set(e.id, e), Object.keys(e).forEach((n) => {
2717
- n.endsWith("Id") ? Pt(t, t.get(e[n]), r) : n.endsWith("Ids") && e[n].forEach((i) => {
2718
- Pt(t, t.get(i), r);
2717
+ n.endsWith("Id") ? Et(t, t.get(e[n]), r) : n.endsWith("Ids") && e[n].forEach((i) => {
2718
+ Et(t, t.get(i), r);
2719
2719
  });
2720
2720
  }));
2721
2721
  }
2722
- function Cr(t, e, r) {
2722
+ function Rr(t, e, r) {
2723
2723
  const n = r ? "outbound-rtp" : "inbound-rtp", i = /* @__PURE__ */ new Map();
2724
2724
  if (e === null)
2725
2725
  return i;
@@ -2728,12 +2728,12 @@ function Cr(t, e, r) {
2728
2728
  s.type === "track" && s.trackIdentifier === e.id && o.push(s);
2729
2729
  }), o.forEach((s) => {
2730
2730
  t.forEach((a) => {
2731
- a.type === n && a.trackId === s.id && Pt(t, a, i);
2731
+ a.type === n && a.trackId === s.id && Et(t, a, i);
2732
2732
  });
2733
2733
  }), i;
2734
2734
  }
2735
- const Rr = pn;
2736
- function hn(t, e) {
2735
+ const Tr = hn;
2736
+ function yn(t, e) {
2737
2737
  const r = t && t.navigator;
2738
2738
  if (!r.mediaDevices)
2739
2739
  return;
@@ -2778,12 +2778,12 @@ function hn(t, e) {
2778
2778
  return r.mediaDevices.enumerateDevices().then((p) => {
2779
2779
  p = p.filter((h) => h.kind === "videoinput");
2780
2780
  let m = p.find((h) => f.some((y) => h.label.toLowerCase().includes(y)));
2781
- return !m && p.length && f.includes("back") && (m = p[p.length - 1]), m && (a.video.deviceId = c.exact ? { exact: m.deviceId } : { ideal: m.deviceId }), a.video = n(a.video), Rr("chrome: " + JSON.stringify(a)), l(a);
2781
+ return !m && p.length && f.includes("back") && (m = p[p.length - 1]), m && (a.video.deviceId = c.exact ? { exact: m.deviceId } : { ideal: m.deviceId }), a.video = n(a.video), Tr("chrome: " + JSON.stringify(a)), l(a);
2782
2782
  });
2783
2783
  }
2784
2784
  a.video = n(a.video);
2785
2785
  }
2786
- return Rr("chrome: " + JSON.stringify(a)), l(a);
2786
+ return Tr("chrome: " + JSON.stringify(a)), l(a);
2787
2787
  }, o = function(a) {
2788
2788
  return e.version >= 64 ? a : {
2789
2789
  name: {
@@ -2825,7 +2825,7 @@ function hn(t, e) {
2825
2825
  };
2826
2826
  }
2827
2827
  }
2828
- function ma(t, e) {
2828
+ function ya(t, e) {
2829
2829
  if (!(t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices) && t.navigator.mediaDevices) {
2830
2830
  if (typeof e != "function") {
2831
2831
  console.error("shimGetDisplayMedia: getSourceId argument is not a function");
@@ -2845,10 +2845,10 @@ function ma(t, e) {
2845
2845
  };
2846
2846
  }
2847
2847
  }
2848
- function mn(t) {
2848
+ function gn(t) {
2849
2849
  t.MediaStream = t.MediaStream || t.webkitMediaStream;
2850
2850
  }
2851
- function yn(t) {
2851
+ function Sn(t) {
2852
2852
  if (typeof t == "object" && t.RTCPeerConnection && !("ontrack" in t.RTCPeerConnection.prototype)) {
2853
2853
  Object.defineProperty(t.RTCPeerConnection.prototype, "ontrack", {
2854
2854
  get() {
@@ -2877,13 +2877,13 @@ function yn(t) {
2877
2877
  }, this.addEventListener("addstream", this._ontrackpoly)), e.apply(this, arguments);
2878
2878
  };
2879
2879
  } else
2880
- Z(t, "track", (e) => (e.transceiver || Object.defineProperty(
2880
+ ee(t, "track", (e) => (e.transceiver || Object.defineProperty(
2881
2881
  e,
2882
2882
  "transceiver",
2883
2883
  { value: { receiver: e.receiver } }
2884
2884
  ), e));
2885
2885
  }
2886
- function gn(t) {
2886
+ function vn(t) {
2887
2887
  if (typeof t == "object" && t.RTCPeerConnection && !("getSenders" in t.RTCPeerConnection.prototype) && "createDTMFSender" in t.RTCPeerConnection.prototype) {
2888
2888
  const e = function(i, o) {
2889
2889
  return {
@@ -2935,7 +2935,7 @@ function gn(t) {
2935
2935
  });
2936
2936
  }
2937
2937
  }
2938
- function Sn(t) {
2938
+ function Cn(t) {
2939
2939
  if (!t.RTCPeerConnection)
2940
2940
  return;
2941
2941
  const e = t.RTCPeerConnection.prototype.getStats;
@@ -2982,7 +2982,7 @@ function Sn(t) {
2982
2982
  }).then(i, o);
2983
2983
  };
2984
2984
  }
2985
- function vn(t) {
2985
+ function bn(t) {
2986
2986
  if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender && t.RTCRtpReceiver))
2987
2987
  return;
2988
2988
  if (!("getStats" in t.RTCRtpSender.prototype)) {
@@ -3002,7 +3002,7 @@ function vn(t) {
3002
3002
  * send a track with the same id as sender.track as
3003
3003
  * it is not possible to identify the RTCRtpSender.
3004
3004
  */
3005
- Cr(s, o.track, !0)
3005
+ Rr(s, o.track, !0)
3006
3006
  ));
3007
3007
  };
3008
3008
  }
@@ -3011,9 +3011,9 @@ function vn(t) {
3011
3011
  r && (t.RTCPeerConnection.prototype.getReceivers = function() {
3012
3012
  const i = r.apply(this, []);
3013
3013
  return i.forEach((o) => o._pc = this), i;
3014
- }), Z(t, "track", (n) => (n.receiver._pc = n.srcElement, n)), t.RTCRtpReceiver.prototype.getStats = function() {
3014
+ }), ee(t, "track", (n) => (n.receiver._pc = n.srcElement, n)), t.RTCRtpReceiver.prototype.getStats = function() {
3015
3015
  const i = this;
3016
- return this._pc.getStats().then((o) => Cr(o, i.track, !1));
3016
+ return this._pc.getStats().then((o) => Rr(o, i.track, !1));
3017
3017
  };
3018
3018
  }
3019
3019
  if (!("getStats" in t.RTCRtpSender.prototype && "getStats" in t.RTCRtpReceiver.prototype))
@@ -3036,7 +3036,7 @@ function vn(t) {
3036
3036
  return e.apply(this, arguments);
3037
3037
  };
3038
3038
  }
3039
- function Cn(t) {
3039
+ function Rn(t) {
3040
3040
  t.RTCPeerConnection.prototype.getLocalStreams = function() {
3041
3041
  return this._shimmedLocalStreams = this._shimmedLocalStreams || {}, Object.keys(this._shimmedLocalStreams).map((s) => this._shimmedLocalStreams[s][0]);
3042
3042
  };
@@ -3074,11 +3074,11 @@ function Cn(t) {
3074
3074
  }), i.apply(this, arguments);
3075
3075
  };
3076
3076
  }
3077
- function Rn(t, e) {
3077
+ function Tn(t, e) {
3078
3078
  if (!t.RTCPeerConnection)
3079
3079
  return;
3080
3080
  if (t.RTCPeerConnection.prototype.addTrack && e.version >= 65)
3081
- return Cn(t);
3081
+ return Rn(t);
3082
3082
  const r = t.RTCPeerConnection.prototype.getLocalStreams;
3083
3083
  t.RTCPeerConnection.prototype.getLocalStreams = function() {
3084
3084
  const u = r.apply(this);
@@ -3209,7 +3209,7 @@ function Rn(t, e) {
3209
3209
  }), p && (p.getTracks().length === 1 ? this.removeStream(this._reverseStreams[p.id]) : p.removeTrack(u.track), this.dispatchEvent(new Event("negotiationneeded")));
3210
3210
  };
3211
3211
  }
3212
- function Et(t, e) {
3212
+ function Pt(t, e) {
3213
3213
  !t.RTCPeerConnection && t.webkitRTCPeerConnection && (t.RTCPeerConnection = t.webkitRTCPeerConnection), t.RTCPeerConnection && e.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function(r) {
3214
3214
  const n = t.RTCPeerConnection.prototype[r], i = { [r]() {
3215
3215
  return arguments[0] = new (r === "addIceCandidate" ? t.RTCIceCandidate : t.RTCSessionDescription)(arguments[0]), n.apply(this, arguments);
@@ -3217,31 +3217,31 @@ function Et(t, e) {
3217
3217
  t.RTCPeerConnection.prototype[r] = i[r];
3218
3218
  });
3219
3219
  }
3220
- function bn(t, e) {
3221
- Z(t, "negotiationneeded", (r) => {
3220
+ function En(t, e) {
3221
+ ee(t, "negotiationneeded", (r) => {
3222
3222
  const n = r.target;
3223
3223
  if (!((e.version < 72 || n.getConfiguration && n.getConfiguration().sdpSemantics === "plan-b") && n.signalingState !== "stable"))
3224
3224
  return r;
3225
3225
  });
3226
3226
  }
3227
- const br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3227
+ const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3228
3228
  __proto__: null,
3229
- fixNegotiationNeeded: bn,
3230
- shimAddTrackRemoveTrack: Rn,
3231
- shimAddTrackRemoveTrackWithNative: Cn,
3232
- shimGetDisplayMedia: ma,
3233
- shimGetSendersWithDtmf: gn,
3234
- shimGetStats: Sn,
3235
- shimGetUserMedia: hn,
3236
- shimMediaStream: mn,
3237
- shimOnTrack: yn,
3238
- shimPeerConnection: Et,
3239
- shimSenderReceiverGetStats: vn
3229
+ fixNegotiationNeeded: En,
3230
+ shimAddTrackRemoveTrack: Tn,
3231
+ shimAddTrackRemoveTrackWithNative: Rn,
3232
+ shimGetDisplayMedia: ya,
3233
+ shimGetSendersWithDtmf: vn,
3234
+ shimGetStats: Cn,
3235
+ shimGetUserMedia: yn,
3236
+ shimMediaStream: gn,
3237
+ shimOnTrack: Sn,
3238
+ shimPeerConnection: Pt,
3239
+ shimSenderReceiverGetStats: bn
3240
3240
  }, Symbol.toStringTag, { value: "Module" }));
3241
- function Tn(t, e) {
3241
+ function Pn(t, e) {
3242
3242
  const r = t && t.navigator, n = t && t.MediaStreamTrack;
3243
3243
  if (r.getUserMedia = function(i, o, s) {
3244
- wt(
3244
+ zt(
3245
3245
  "navigator.getUserMedia",
3246
3246
  "navigator.mediaDevices.getUserMedia"
3247
3247
  ), r.mediaDevices.getUserMedia(i).then(o, s);
@@ -3266,7 +3266,7 @@ function Tn(t, e) {
3266
3266
  }
3267
3267
  }
3268
3268
  }
3269
- function ya(t, e) {
3269
+ function ga(t, e) {
3270
3270
  t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices || t.navigator.mediaDevices && (t.navigator.mediaDevices.getDisplayMedia = function(n) {
3271
3271
  if (!(n && n.video)) {
3272
3272
  const i = new DOMException("getDisplayMedia without video constraints is undefined");
@@ -3275,7 +3275,7 @@ function ya(t, e) {
3275
3275
  return n.video === !0 ? n.video = { mediaSource: e } : n.video.mediaSource = e, t.navigator.mediaDevices.getUserMedia(n);
3276
3276
  });
3277
3277
  }
3278
- function Pn(t) {
3278
+ function On(t) {
3279
3279
  typeof t == "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", {
3280
3280
  get() {
3281
3281
  return { receiver: this.receiver };
@@ -3319,7 +3319,7 @@ function Ot(t, e) {
3319
3319
  }).then(s, a);
3320
3320
  };
3321
3321
  }
3322
- function En(t) {
3322
+ function An(t) {
3323
3323
  if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender) || t.RTCRtpSender && "getStats" in t.RTCRtpSender.prototype)
3324
3324
  return;
3325
3325
  const e = t.RTCPeerConnection.prototype.getSenders;
@@ -3335,20 +3335,20 @@ function En(t) {
3335
3335
  return this.track ? this._pc.getStats(this.track) : Promise.resolve(/* @__PURE__ */ new Map());
3336
3336
  };
3337
3337
  }
3338
- function On(t) {
3338
+ function In(t) {
3339
3339
  if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender) || t.RTCRtpSender && "getStats" in t.RTCRtpReceiver.prototype)
3340
3340
  return;
3341
3341
  const e = t.RTCPeerConnection.prototype.getReceivers;
3342
3342
  e && (t.RTCPeerConnection.prototype.getReceivers = function() {
3343
3343
  const n = e.apply(this, []);
3344
3344
  return n.forEach((i) => i._pc = this), n;
3345
- }), Z(t, "track", (r) => (r.receiver._pc = r.srcElement, r)), t.RTCRtpReceiver.prototype.getStats = function() {
3345
+ }), ee(t, "track", (r) => (r.receiver._pc = r.srcElement, r)), t.RTCRtpReceiver.prototype.getStats = function() {
3346
3346
  return this._pc.getStats(this.track);
3347
3347
  };
3348
3348
  }
3349
- function An(t) {
3349
+ function _n(t) {
3350
3350
  !t.RTCPeerConnection || "removeStream" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.removeStream = function(r) {
3351
- wt("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
3351
+ zt("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
3352
3352
  n.track && r.getTracks().includes(n.track) && this.removeTrack(n);
3353
3353
  });
3354
3354
  });
@@ -3356,7 +3356,7 @@ function An(t) {
3356
3356
  function xn(t) {
3357
3357
  t.DataChannel && !t.RTCDataChannel && (t.RTCDataChannel = t.DataChannel);
3358
3358
  }
3359
- function _n(t) {
3359
+ function Dn(t) {
3360
3360
  if (!(typeof t == "object" && t.RTCPeerConnection))
3361
3361
  return;
3362
3362
  const e = t.RTCPeerConnection.prototype.addTransceiver;
@@ -3388,7 +3388,7 @@ function _n(t) {
3388
3388
  return o;
3389
3389
  });
3390
3390
  }
3391
- function In(t) {
3391
+ function Ln(t) {
3392
3392
  if (!(typeof t == "object" && t.RTCRtpSender))
3393
3393
  return;
3394
3394
  const e = t.RTCRtpSender.prototype.getParameters;
@@ -3397,7 +3397,7 @@ function In(t) {
3397
3397
  return "encodings" in n || (n.encodings = [].concat(this.sendEncodings || [{}])), n;
3398
3398
  });
3399
3399
  }
3400
- function Dn(t) {
3400
+ function kn(t) {
3401
3401
  if (!(typeof t == "object" && t.RTCPeerConnection))
3402
3402
  return;
3403
3403
  const e = t.RTCPeerConnection.prototype.createOffer;
@@ -3407,7 +3407,7 @@ function Dn(t) {
3407
3407
  }) : e.apply(this, arguments);
3408
3408
  };
3409
3409
  }
3410
- function Ln(t) {
3410
+ function Mn(t) {
3411
3411
  if (!(typeof t == "object" && t.RTCPeerConnection))
3412
3412
  return;
3413
3413
  const e = t.RTCPeerConnection.prototype.createAnswer;
@@ -3417,22 +3417,22 @@ function Ln(t) {
3417
3417
  }) : e.apply(this, arguments);
3418
3418
  };
3419
3419
  }
3420
- const Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3420
+ const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3421
3421
  __proto__: null,
3422
- shimAddTransceiver: _n,
3423
- shimCreateAnswer: Ln,
3424
- shimCreateOffer: Dn,
3425
- shimGetDisplayMedia: ya,
3426
- shimGetParameters: In,
3427
- shimGetUserMedia: Tn,
3428
- shimOnTrack: Pn,
3422
+ shimAddTransceiver: Dn,
3423
+ shimCreateAnswer: Mn,
3424
+ shimCreateOffer: kn,
3425
+ shimGetDisplayMedia: ga,
3426
+ shimGetParameters: Ln,
3427
+ shimGetUserMedia: Pn,
3428
+ shimOnTrack: On,
3429
3429
  shimPeerConnection: Ot,
3430
3430
  shimRTCDataChannel: xn,
3431
- shimReceiverGetStats: On,
3432
- shimRemoveStream: An,
3433
- shimSenderGetStats: En
3431
+ shimReceiverGetStats: In,
3432
+ shimRemoveStream: _n,
3433
+ shimSenderGetStats: An
3434
3434
  }, Symbol.toStringTag, { value: "Module" }));
3435
- function kn(t) {
3435
+ function Nn(t) {
3436
3436
  if (!(typeof t != "object" || !t.RTCPeerConnection)) {
3437
3437
  if ("getLocalStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getLocalStreams = function() {
3438
3438
  return this._localStreams || (this._localStreams = []), this._localStreams;
@@ -3467,7 +3467,7 @@ function kn(t) {
3467
3467
  });
3468
3468
  }
3469
3469
  }
3470
- function Mn(t) {
3470
+ function Fn(t) {
3471
3471
  if (!(typeof t != "object" || !t.RTCPeerConnection) && ("getRemoteStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getRemoteStreams = function() {
3472
3472
  return this._remoteStreams ? this._remoteStreams : [];
3473
3473
  }), !("onaddstream" in t.RTCPeerConnection.prototype))) {
@@ -3502,7 +3502,7 @@ function Mn(t) {
3502
3502
  };
3503
3503
  }
3504
3504
  }
3505
- function Nn(t) {
3505
+ function Un(t) {
3506
3506
  if (typeof t != "object" || !t.RTCPeerConnection)
3507
3507
  return;
3508
3508
  const e = t.RTCPeerConnection.prototype, r = e.createOffer, n = e.createAnswer, i = e.setLocalDescription, o = e.setRemoteDescription, s = e.addIceCandidate;
@@ -3525,24 +3525,24 @@ function Nn(t) {
3525
3525
  return u ? (f.then(c, u), Promise.resolve()) : f;
3526
3526
  }, e.addIceCandidate = a;
3527
3527
  }
3528
- function Fn(t) {
3528
+ function Bn(t) {
3529
3529
  const e = t && t.navigator;
3530
3530
  if (e.mediaDevices && e.mediaDevices.getUserMedia) {
3531
3531
  const r = e.mediaDevices, n = r.getUserMedia.bind(r);
3532
- e.mediaDevices.getUserMedia = (i) => n(Un(i));
3532
+ e.mediaDevices.getUserMedia = (i) => n(jn(i));
3533
3533
  }
3534
3534
  !e.getUserMedia && e.mediaDevices && e.mediaDevices.getUserMedia && (e.getUserMedia = (function(n, i, o) {
3535
3535
  e.mediaDevices.getUserMedia(n).then(i, o);
3536
3536
  }).bind(e));
3537
3537
  }
3538
- function Un(t) {
3538
+ function jn(t) {
3539
3539
  return t && t.video !== void 0 ? Object.assign(
3540
3540
  {},
3541
3541
  t,
3542
- { video: dn(t.video) }
3542
+ { video: mn(t.video) }
3543
3543
  ) : t;
3544
3544
  }
3545
- function jn(t) {
3545
+ function $n(t) {
3546
3546
  if (!t.RTCPeerConnection)
3547
3547
  return;
3548
3548
  const e = t.RTCPeerConnection;
@@ -3551,7 +3551,7 @@ function jn(t) {
3551
3551
  const o = [];
3552
3552
  for (let s = 0; s < n.iceServers.length; s++) {
3553
3553
  let a = n.iceServers[s];
3554
- a.urls === void 0 && a.url ? (wt("RTCIceServer.url", "RTCIceServer.urls"), a = JSON.parse(JSON.stringify(a)), a.urls = a.url, delete a.url, o.push(a)) : o.push(n.iceServers[s]);
3554
+ a.urls === void 0 && a.url ? (zt("RTCIceServer.url", "RTCIceServer.urls"), a = JSON.parse(JSON.stringify(a)), a.urls = a.url, delete a.url, o.push(a)) : o.push(n.iceServers[s]);
3555
3555
  }
3556
3556
  n.iceServers = o;
3557
3557
  }
@@ -3562,14 +3562,14 @@ function jn(t) {
3562
3562
  }
3563
3563
  });
3564
3564
  }
3565
- function Bn(t) {
3565
+ function Hn(t) {
3566
3566
  typeof t == "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", {
3567
3567
  get() {
3568
3568
  return { receiver: this.receiver };
3569
3569
  }
3570
3570
  });
3571
3571
  }
3572
- function $n(t) {
3572
+ function wn(t) {
3573
3573
  const e = t.RTCPeerConnection.prototype.createOffer;
3574
3574
  t.RTCPeerConnection.prototype.createOffer = function(n) {
3575
3575
  if (n) {
@@ -3585,17 +3585,17 @@ function $n(t) {
3585
3585
  function Gn(t) {
3586
3586
  typeof t != "object" || t.AudioContext || (t.AudioContext = t.webkitAudioContext);
3587
3587
  }
3588
- const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3588
+ const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3589
3589
  __proto__: null,
3590
3590
  shimAudioContext: Gn,
3591
- shimCallbacksAPI: Nn,
3592
- shimConstraints: Un,
3593
- shimCreateOfferLegacy: $n,
3594
- shimGetUserMedia: Fn,
3595
- shimLocalStreamsAPI: kn,
3596
- shimRTCIceServerUrls: jn,
3597
- shimRemoteStreamsAPI: Mn,
3598
- shimTrackEventTransceiver: Bn
3591
+ shimCallbacksAPI: Un,
3592
+ shimConstraints: jn,
3593
+ shimCreateOfferLegacy: wn,
3594
+ shimGetUserMedia: Bn,
3595
+ shimLocalStreamsAPI: Nn,
3596
+ shimRTCIceServerUrls: $n,
3597
+ shimRemoteStreamsAPI: Fn,
3598
+ shimTrackEventTransceiver: Hn
3599
3599
  }, Symbol.toStringTag, { value: "Module" }));
3600
3600
  var zn = { exports: {} };
3601
3601
  (function(t) {
@@ -3985,11 +3985,11 @@ t=0 0\r
3985
3985
  return !0;
3986
3986
  }, t.exports = e;
3987
3987
  })(zn);
3988
- var Hn = zn.exports;
3989
- const ce = /* @__PURE__ */ Wr(Hn), ga = /* @__PURE__ */ Kn({
3988
+ var Vn = zn.exports;
3989
+ const ce = /* @__PURE__ */ qr(Vn), Sa = /* @__PURE__ */ Qn({
3990
3990
  __proto__: null,
3991
3991
  default: ce
3992
- }, [Hn]);
3992
+ }, [Vn]);
3993
3993
  function Ue(t) {
3994
3994
  if (!t.RTCIceCandidate || t.RTCIceCandidate && "foundation" in t.RTCIceCandidate.prototype)
3995
3995
  return;
@@ -4013,13 +4013,13 @@ function Ue(t) {
4013
4013
  }, i;
4014
4014
  }
4015
4015
  return new e(n);
4016
- }, t.RTCIceCandidate.prototype = e.prototype, Z(t, "icecandidate", (r) => (r.candidate && Object.defineProperty(r, "candidate", {
4016
+ }, t.RTCIceCandidate.prototype = e.prototype, ee(t, "icecandidate", (r) => (r.candidate && Object.defineProperty(r, "candidate", {
4017
4017
  value: new t.RTCIceCandidate(r.candidate),
4018
4018
  writable: "false"
4019
4019
  }), r));
4020
4020
  }
4021
4021
  function At(t) {
4022
- !t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype || Z(t, "icecandidate", (e) => {
4022
+ !t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype || ee(t, "icecandidate", (e) => {
4023
4023
  if (e.candidate) {
4024
4024
  const r = ce.parseCandidate(e.candidate.candidate);
4025
4025
  r.type === "relay" && (e.candidate.relayProtocol = {
@@ -4031,7 +4031,7 @@ function At(t) {
4031
4031
  return e;
4032
4032
  });
4033
4033
  }
4034
- function je(t, e) {
4034
+ function Be(t, e) {
4035
4035
  if (!t.RTCPeerConnection)
4036
4036
  return;
4037
4037
  "sctp" in t.RTCPeerConnection.prototype || Object.defineProperty(t.RTCPeerConnection.prototype, "sctp", {
@@ -4090,7 +4090,7 @@ function je(t, e) {
4090
4090
  return s.apply(this, arguments);
4091
4091
  };
4092
4092
  }
4093
- function Be(t) {
4093
+ function je(t) {
4094
4094
  if (!(t.RTCPeerConnection && "createDataChannel" in t.RTCPeerConnection.prototype))
4095
4095
  return;
4096
4096
  function e(n, i) {
@@ -4106,9 +4106,9 @@ function Be(t) {
4106
4106
  t.RTCPeerConnection.prototype.createDataChannel = function() {
4107
4107
  const i = r.apply(this, arguments);
4108
4108
  return e(i, this), i;
4109
- }, Z(t, "datachannel", (n) => (e(n.channel, n.target), n));
4109
+ }, ee(t, "datachannel", (n) => (e(n.channel, n.target), n));
4110
4110
  }
4111
- function xt(t) {
4111
+ function It(t) {
4112
4112
  if (!t.RTCPeerConnection || "connectionState" in t.RTCPeerConnection.prototype)
4113
4113
  return;
4114
4114
  const e = t.RTCPeerConnection.prototype;
@@ -4180,7 +4180,7 @@ function $e(t, e) {
4180
4180
  return arguments[0] ? (e.browser === "chrome" && e.version < 78 || e.browser === "firefox" && e.version < 68 || e.browser === "safari") && arguments[0] && arguments[0].candidate === "" ? Promise.resolve() : r.apply(this, arguments) : (arguments[1] && arguments[1].apply(null), Promise.resolve());
4181
4181
  });
4182
4182
  }
4183
- function Ge(t, e) {
4183
+ function He(t, e) {
4184
4184
  if (!(t.RTCPeerConnection && t.RTCPeerConnection.prototype))
4185
4185
  return;
4186
4186
  const r = t.RTCPeerConnection.prototype.setLocalDescription;
@@ -4202,48 +4202,48 @@ function Ge(t, e) {
4202
4202
  return i.sdp || i.type !== "offer" && i.type !== "answer" ? r.apply(this, [i]) : (i.type === "offer" ? this.createOffer : this.createAnswer).apply(this).then((s) => r.apply(this, [s]));
4203
4203
  });
4204
4204
  }
4205
- const Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4205
+ const va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4206
4206
  __proto__: null,
4207
4207
  removeExtmapAllowMixed: _t,
4208
4208
  shimAddIceCandidateNullOrEmpty: $e,
4209
- shimConnectionState: xt,
4210
- shimMaxMessageSize: je,
4211
- shimParameterlessSetLocalDescription: Ge,
4209
+ shimConnectionState: It,
4210
+ shimMaxMessageSize: Be,
4211
+ shimParameterlessSetLocalDescription: He,
4212
4212
  shimRTCIceCandidate: Ue,
4213
4213
  shimRTCIceCandidateRelayProtocol: At,
4214
- shimSendThrowTypeError: Be
4214
+ shimSendThrowTypeError: je
4215
4215
  }, Symbol.toStringTag, { value: "Module" }));
4216
- function va({ window: t } = {}, e = {
4216
+ function Ca({ window: t } = {}, e = {
4217
4217
  shimChrome: !0,
4218
4218
  shimFirefox: !0,
4219
4219
  shimSafari: !0
4220
4220
  }) {
4221
- const r = pn, n = ha(t), i = {
4221
+ const r = hn, n = ma(t), i = {
4222
4222
  browserDetails: n,
4223
- commonShim: Sa,
4223
+ commonShim: va,
4224
4224
  extractVersion: Fe,
4225
- disableLog: pa,
4226
- disableWarnings: da,
4225
+ disableLog: da,
4226
+ disableWarnings: ha,
4227
4227
  // Expose sdp as a convenience. For production apps include directly.
4228
- sdp: ga
4228
+ sdp: Sa
4229
4229
  };
4230
4230
  switch (n.browser) {
4231
4231
  case "chrome":
4232
- if (!br || !Et || !e.shimChrome)
4232
+ if (!Er || !Pt || !e.shimChrome)
4233
4233
  return r("Chrome shim is not included in this adapter release."), i;
4234
4234
  if (n.version === null)
4235
4235
  return r("Chrome shim can not determine version, not shimming."), i;
4236
- r("adapter.js shimming chrome."), i.browserShim = br, $e(t, n), Ge(t), hn(t, n), mn(t), Et(t, n), yn(t), Rn(t, n), gn(t), Sn(t), vn(t), bn(t, n), Ue(t), At(t), xt(t), je(t, n), Be(t), _t(t, n);
4236
+ r("adapter.js shimming chrome."), i.browserShim = Er, $e(t, n), He(t), yn(t, n), gn(t), Pt(t, n), Sn(t), Tn(t, n), vn(t), Cn(t), bn(t), En(t, n), Ue(t), At(t), It(t), Be(t, n), je(t), _t(t, n);
4237
4237
  break;
4238
4238
  case "firefox":
4239
- if (!Tr || !Ot || !e.shimFirefox)
4239
+ if (!Pr || !Ot || !e.shimFirefox)
4240
4240
  return r("Firefox shim is not included in this adapter release."), i;
4241
- r("adapter.js shimming firefox."), i.browserShim = Tr, $e(t, n), Ge(t), Tn(t, n), Ot(t, n), Pn(t), An(t), En(t), On(t), xn(t), _n(t), In(t), Dn(t), Ln(t), Ue(t), xt(t), je(t, n), Be(t);
4241
+ r("adapter.js shimming firefox."), i.browserShim = Pr, $e(t, n), He(t), Pn(t, n), Ot(t, n), On(t), _n(t), An(t), In(t), xn(t), Dn(t), Ln(t), kn(t), Mn(t), Ue(t), It(t), Be(t, n), je(t);
4242
4242
  break;
4243
4243
  case "safari":
4244
- if (!Pr || !e.shimSafari)
4244
+ if (!Or || !e.shimSafari)
4245
4245
  return r("Safari shim is not included in this adapter release."), i;
4246
- r("adapter.js shimming safari."), i.browserShim = Pr, $e(t, n), Ge(t), jn(t), $n(t), Nn(t), kn(t), Mn(t), Bn(t), Fn(t), Gn(t), Ue(t), At(t), je(t, n), Be(t), _t(t, n);
4246
+ r("adapter.js shimming safari."), i.browserShim = Or, $e(t, n), He(t), $n(t), wn(t), Un(t), Nn(t), Fn(t), Hn(t), Bn(t), Gn(t), Ue(t), At(t), Be(t, n), je(t), _t(t, n);
4247
4247
  break;
4248
4248
  default:
4249
4249
  r("Unsupported browser!");
@@ -4251,35 +4251,35 @@ function va({ window: t } = {}, e = {
4251
4251
  }
4252
4252
  return i;
4253
4253
  }
4254
- const Er = va({ window: typeof window > "u" ? void 0 : window });
4255
- class wn {
4254
+ const Ar = Ca({ window: typeof window > "u" ? void 0 : window });
4255
+ class Vt {
4256
4256
  constructor(e) {
4257
4257
  // private config: RTCConfiguration = { iceServers: [] }
4258
- S(this, "peerConnection");
4258
+ g(this, "peerConnection");
4259
4259
  // 定时发送数据,和后台保活的定时句柄
4260
4260
  // private interval ?: number
4261
- S(this, "sessionListener", new fa());
4261
+ g(this, "sessionListener", new pa());
4262
4262
  // 呼叫方向
4263
- S(this, "isCallOut", !1);
4263
+ g(this, "isCallOut", !1);
4264
4264
  // 会话类型
4265
- S(this, "sessionType", x.UNKNOWN);
4265
+ g(this, "sessionType", b.UNKNOWN);
4266
4266
  // 本地媒体流
4267
- S(this, "localStream");
4267
+ g(this, "localStream");
4268
4268
  // 对端媒体流
4269
- S(this, "remoteStream");
4269
+ g(this, "remoteStream");
4270
4270
  // 数据通道
4271
4271
  // private dataChannel ?: RTCDataChannel
4272
4272
  // 是否设置了对端sdp
4273
- S(this, "hasSetRemoteSdp", !1);
4273
+ g(this, "hasSetRemoteSdp", !1);
4274
4274
  // 前置摄像头 "user", 后置摄像头 "environment"
4275
- S(this, "facingMode", q.FRONT_FACING);
4275
+ g(this, "facingMode", K.FRONT_FACING);
4276
4276
  // 摄像头切换中
4277
- S(this, "facingChanging", !1);
4277
+ g(this, "facingChanging", !1);
4278
4278
  // 是否闭麦
4279
- S(this, "muted", !1);
4279
+ g(this, "muted", !1);
4280
4280
  // 是否打开本地摄像头
4281
- S(this, "openCamera", !1);
4282
- this.sessionType = e, console.debug(Er.browserDetails.browser + " " + Er.browserDetails.version);
4281
+ g(this, "openCamera", !1);
4282
+ this.sessionType = e, console.debug(Ar.browserDetails.browser + " " + Ar.browserDetails.version);
4283
4283
  }
4284
4284
  /**
4285
4285
  * 设置监听
@@ -4299,7 +4299,7 @@ class wn {
4299
4299
  this.error(new Error("start failed, remoteSdp is null."));
4300
4300
  return;
4301
4301
  }
4302
- switch (this.isCallOut = e, this.hasSetRemoteSdp = !1, this.facingMode = q.FRONT_FACING, this.facingChanging = !1, this.muted = !1, this.peerConnection = new RTCPeerConnection({ iceServers: [] }), this.peerConnection.onnegotiationneeded = () => {
4302
+ switch (this.isCallOut = e, this.hasSetRemoteSdp = !1, this.facingMode = K.FRONT_FACING, this.facingChanging = !1, this.muted = !1, this.peerConnection = new RTCPeerConnection({ iceServers: [] }), this.peerConnection.onnegotiationneeded = () => {
4303
4303
  e ? this.peerConnection.createOffer().then((n) => {
4304
4304
  this.peerConnection.setLocalDescription(n).then(() => {
4305
4305
  }).catch((i) => {
@@ -4335,11 +4335,13 @@ class wn {
4335
4335
  var i, o, s, a, l;
4336
4336
  console.debug("oniceconnectionstatechange", (i = this.peerConnection) == null ? void 0 : i.iceConnectionState), (((o = this.peerConnection) == null ? void 0 : o.iceConnectionState) == "completed" || ((s = this.peerConnection) == null ? void 0 : s.iceConnectionState) == "disconnected" || ((a = this.peerConnection) == null ? void 0 : a.iceConnectionState) == "failed" || ((l = this.peerConnection) == null ? void 0 : l.iceConnectionState) == "closed") && (this.stop(), this.sessionListener.onError(new Error("session closed.")));
4337
4337
  }, this.sessionType) {
4338
- case x.RTSP_PULL:
4338
+ case b.RTSP_PULL:
4339
4339
  this.addTransceivers();
4340
4340
  break;
4341
- case x.VIDEO:
4342
- case x.AUDIO:
4341
+ case b.VIDEO:
4342
+ case b.AUDIO:
4343
+ case b.AUDIO_PUSH:
4344
+ case b.VIDEO_PUSH:
4343
4345
  this.gotLocalMedia();
4344
4346
  break;
4345
4347
  default:
@@ -4382,7 +4384,7 @@ class wn {
4382
4384
  */
4383
4385
  changeFacing() {
4384
4386
  return new Promise((e, r) => {
4385
- if (this.sessionType !== x.VIDEO) {
4387
+ if (this.sessionType !== b.VIDEO && this.sessionType !== b.VIDEO_PUSH) {
4386
4388
  r(new Error("not video call"));
4387
4389
  return;
4388
4390
  }
@@ -4430,21 +4432,23 @@ class wn {
4430
4432
  }
4431
4433
  addTransceivers() {
4432
4434
  this.peerConnection.addTransceiver("audio", {
4433
- direction: "sendrecv"
4435
+ direction: "recvonly"
4434
4436
  }), this.peerConnection.addTransceiver("video", {
4435
- direction: "sendrecv"
4437
+ direction: "recvonly"
4436
4438
  });
4437
4439
  }
4438
4440
  gotLocalMedia() {
4439
4441
  let e;
4440
4442
  switch (this.sessionType) {
4441
- case x.AUDIO:
4443
+ case b.AUDIO:
4444
+ case b.AUDIO_PUSH:
4442
4445
  e = {
4443
4446
  audio: { echoCancellation: !0, noiseSuppression: !0 },
4444
4447
  video: !1
4445
4448
  };
4446
4449
  break;
4447
- case x.VIDEO:
4450
+ case b.VIDEO:
4451
+ case b.VIDEO_PUSH:
4448
4452
  e = {
4449
4453
  audio: { echoCancellation: !0, noiseSuppression: !0 },
4450
4454
  video: { height: { exact: 720 }, width: { exact: 1280 } }
@@ -4461,13 +4465,25 @@ class wn {
4461
4465
  }) : this.error(new Error("Browser does not support WebRTC"));
4462
4466
  }
4463
4467
  getMediaSuccess(e) {
4464
- this.localStream = e, this.sessionType === x.VIDEO && this.sessionListener.onAddLocalStream(e), e.getTracks().forEach((r) => {
4465
- this.peerConnection.addTrack(r, e);
4468
+ this.localStream = e, (this.sessionType === b.VIDEO || this.sessionType === b.VIDEO_PUSH) && this.sessionListener.onAddLocalStream(e), e.getTracks().forEach((r) => {
4469
+ switch (this.sessionType) {
4470
+ case b.VIDEO:
4471
+ case b.AUDIO:
4472
+ this.peerConnection.addTrack(r, e);
4473
+ break;
4474
+ case b.AUDIO_PUSH:
4475
+ case b.VIDEO_PUSH:
4476
+ this.peerConnection.addTransceiver(r, { direction: "sendonly", streams: [e] });
4477
+ break;
4478
+ }
4466
4479
  }), this.muted = !1;
4467
4480
  }
4468
4481
  getMediaFailed(e) {
4469
- if (this.sessionType === x.VIDEO) {
4470
- console.error("get video media failed. maybe not found camera.", e), this.sessionType = x.AUDIO, this.gotLocalMedia();
4482
+ if (this.sessionType === b.VIDEO) {
4483
+ console.error("get video media failed. maybe not found camera.", e), this.sessionType = b.AUDIO, this.gotLocalMedia();
4484
+ return;
4485
+ } else if (this.sessionType === b.VIDEO_PUSH) {
4486
+ console.error("get video media failed. maybe not found camera.", e), this.sessionType = b.AUDIO_PUSH, this.gotLocalMedia();
4471
4487
  return;
4472
4488
  }
4473
4489
  this.error(e);
@@ -4504,7 +4520,7 @@ class wn {
4504
4520
  changeCameraLocalMedia() {
4505
4521
  return new Promise((e, r) => {
4506
4522
  let n;
4507
- if (this.facingMode === q.FRONT_FACING ? n = {
4523
+ if (this.facingMode === K.FRONT_FACING ? n = {
4508
4524
  audio: { echoCancellation: !0, noiseSuppression: !0 },
4509
4525
  video: { height: { exact: 1280 }, width: { exact: 720 }, facingMode: "environment" }
4510
4526
  } : n = {
@@ -4538,13 +4554,13 @@ class wn {
4538
4554
  }).catch((n) => {
4539
4555
  console.log(n);
4540
4556
  });
4541
- }), this.facingMode === q.FRONT_FACING ? this.facingMode = q.BACK_FACING : this.facingMode = q.FRONT_FACING, this.facingChanging = !1;
4557
+ }), this.facingMode === K.FRONT_FACING ? this.facingMode = K.BACK_FACING : this.facingMode = K.FRONT_FACING, this.facingChanging = !1;
4542
4558
  }
4543
4559
  changeCameraFailed(e) {
4544
4560
  console.log(e), this.facingChanging = !1;
4545
4561
  }
4546
4562
  }
4547
- class Ca {
4563
+ class ba {
4548
4564
  onAddRemoteStream(e) {
4549
4565
  console.debug("onAddRemoteStream:", e);
4550
4566
  }
@@ -4552,14 +4568,14 @@ class Ca {
4552
4568
  console.debug("onError:", e);
4553
4569
  }
4554
4570
  }
4555
- class Ra {
4571
+ class Wn {
4556
4572
  constructor(e, r) {
4557
- S(this, "url");
4558
- S(this, "offerSdp");
4573
+ g(this, "url");
4574
+ g(this, "offerSdp");
4559
4575
  this.url = e, this.offerSdp = r;
4560
4576
  }
4561
4577
  }
4562
- const ba = "/media-server/video-play/webrtc";
4578
+ const Ra = "/media-server/video-play/webrtc";
4563
4579
  class Ta {
4564
4580
  /**
4565
4581
  *
@@ -4567,10 +4583,10 @@ class Ta {
4567
4583
  * @param httpClient{HttpClient} 发起请求的http客户端
4568
4584
  */
4569
4585
  constructor(e, r) {
4570
- S(this, "rtspUrl");
4571
- S(this, "webrtcSession", new wn(x.RTSP_PULL));
4572
- S(this, "sessionListener", new Ca());
4573
- S(this, "httpClient");
4586
+ g(this, "rtspUrl");
4587
+ g(this, "webrtcSession", new Vt(b.RTSP_PULL));
4588
+ g(this, "sessionListener", new ba());
4589
+ g(this, "httpClient");
4574
4590
  this.rtspUrl = e, this.httpClient = r, this.webrtcSession.setListener(this);
4575
4591
  }
4576
4592
  setRtspPullSessionListener(e) {
@@ -4592,30 +4608,30 @@ class Ta {
4592
4608
  this.sessionListener.onError(e);
4593
4609
  }
4594
4610
  onStartSuccess(e) {
4595
- console.debug("rtsp offer", e), this.httpClient.Post(ba, new Ra(this.rtspUrl, e.sdp ?? "")).then((r) => {
4596
- var n, i;
4611
+ console.debug("rtsp offer:", e.sdp), this.httpClient.Post(Ra, new Wn(this.rtspUrl, e.sdp ?? "")).then((r) => {
4612
+ var n, i, o, s;
4597
4613
  if (r.code != 200) {
4598
4614
  this.stop(), this.sessionListener.onError(new Error(r.message));
4599
4615
  return;
4600
4616
  }
4601
- console.debug("rtsp answer", r.data), this.webrtcSession.setRemoteSdp(((n = r.data) == null ? void 0 : n.sdp) ?? ""), this.webrtcSession.addRemoteCandidate(((i = r.data) == null ? void 0 : i.candidateList) ?? []);
4617
+ console.debug("rtsp answer", (n = r.data) == null ? void 0 : n.sdp), console.debug("rtsp answer", (i = r.data) == null ? void 0 : i.candidateList), this.webrtcSession.setRemoteSdp(((o = r.data) == null ? void 0 : o.sdp) ?? ""), this.webrtcSession.addRemoteCandidate(((s = r.data) == null ? void 0 : s.candidateList) ?? []);
4602
4618
  }).catch((r) => {
4603
4619
  this.stop(), this.sessionListener.onError(r);
4604
4620
  });
4605
4621
  }
4606
4622
  }
4607
- var R = /* @__PURE__ */ ((t) => (t[t.OFFLINE = -1] = "OFFLINE", t[t.IDLE = 0] = "IDLE", t[t.TRY = 1] = "TRY", t[t.RING = 2] = "RING", t[t.TALK = 3] = "TALK", t))(R || {}), se = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(se || {}), ze = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(ze || {}), K = /* @__PURE__ */ ((t) => (t.IN = "in", t.OUT = "out", t))(K || {}), D = /* @__PURE__ */ ((t) => (t.LOGIN = "login", t.LOGOUT = "logout", t.Invite = "invite", t.RING = "ring", t.ANSWER = "answer", t.HANGUP = "hangup", t.DTMF = "dtmf", t))(D || {});
4608
- function Or() {
4623
+ var R = /* @__PURE__ */ ((t) => (t[t.OFFLINE = -1] = "OFFLINE", t[t.IDLE = 0] = "IDLE", t[t.TRY = 1] = "TRY", t[t.RING = 2] = "RING", t[t.TALK = 3] = "TALK", t))(R || {}), F = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(F || {}), we = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(we || {}), Q = /* @__PURE__ */ ((t) => (t.IN = "in", t.OUT = "out", t))(Q || {}), D = /* @__PURE__ */ ((t) => (t.LOGIN = "login", t.LOGOUT = "logout", t.Invite = "invite", t.RING = "ring", t.ANSWER = "answer", t.HANGUP = "hangup", t.DTMF = "dtmf", t))(D || {});
4624
+ function Ir() {
4609
4625
  try {
4610
4626
  return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
4611
4627
  } catch {
4612
4628
  return !1;
4613
4629
  }
4614
4630
  }
4615
- function Pa() {
4616
- return "browser-" + Ea() + Oa(6);
4617
- }
4618
4631
  function Ea() {
4632
+ return "browser-" + Pa() + Oa(6);
4633
+ }
4634
+ function Pa() {
4619
4635
  let t = /* @__PURE__ */ new Date();
4620
4636
  return `${t.getFullYear()}${t.getMonth()}${t.getDate()}${t.getHours()}${t.getMinutes()}${t.getSeconds()}`;
4621
4637
  }
@@ -4665,13 +4681,13 @@ function Oa(t) {
4665
4681
  }
4666
4682
  class Aa {
4667
4683
  constructor(e, r, n) {
4668
- S(this, "tel");
4669
- S(this, "mediaType");
4670
- S(this, "callMode");
4684
+ g(this, "tel");
4685
+ g(this, "mediaType");
4686
+ g(this, "callMode");
4671
4687
  this.tel = e, this.callMode = n, this.mediaType = r;
4672
4688
  }
4673
4689
  }
4674
- class xa {
4690
+ class Ia {
4675
4691
  onAddLocalStream(e) {
4676
4692
  console.debug("onAddLocalStream:", e);
4677
4693
  }
@@ -4702,24 +4718,24 @@ class xa {
4702
4718
  }
4703
4719
  class _a {
4704
4720
  constructor(e, r) {
4705
- S(this, "tel", "");
4706
- S(this, "status", R.OFFLINE);
4707
- S(this, "mediaType", se.AUDIO);
4708
- S(this, "callMode", ze.FULL);
4709
- S(this, "callDirect", K.OUT);
4710
- S(this, "called", "");
4711
- S(this, "callId");
4712
- S(this, "remoteSdp");
4713
- S(this, "candidate");
4714
- S(this, "ringBackTone", new Audio("sound/ringbacktone.wav"));
4715
- S(this, "ringtone", new Audio("sound/ringtone.wav"));
4716
- S(this, "dtmfAudio", new Audio("sound/dtmf.wav"));
4717
- S(this, "ws");
4718
- S(this, "wsConnected", !1);
4719
- S(this, "closeBySelf", !1);
4720
- S(this, "webrtcSession");
4721
- S(this, "sessionListener", new xa());
4722
- S(this, "wsUrl");
4721
+ g(this, "tel", "");
4722
+ g(this, "status", R.OFFLINE);
4723
+ g(this, "mediaType", F.AUDIO);
4724
+ g(this, "callMode", we.FULL);
4725
+ g(this, "callDirect", Q.OUT);
4726
+ g(this, "called", "");
4727
+ g(this, "callId");
4728
+ g(this, "remoteSdp");
4729
+ g(this, "candidate");
4730
+ g(this, "ringBackTone", new Audio("sound/ringbacktone.wav"));
4731
+ g(this, "ringtone", new Audio("sound/ringtone.wav"));
4732
+ g(this, "dtmfAudio", new Audio("sound/dtmf.wav"));
4733
+ g(this, "ws");
4734
+ g(this, "wsConnected", !1);
4735
+ g(this, "closeBySelf", !1);
4736
+ g(this, "webrtcSession");
4737
+ g(this, "sessionListener", new Ia());
4738
+ g(this, "wsUrl");
4723
4739
  this.tel = r ?? "", this.wsUrl = e, this.ringBackTone.loop = !0, this.ringtone.loop = !0;
4724
4740
  }
4725
4741
  setCallSessionListener(e) {
@@ -4728,7 +4744,7 @@ class _a {
4728
4744
  init() {
4729
4745
  this.websocketInit(this.wsUrl);
4730
4746
  }
4731
- makeCall(e, r = se.AUDIO, n = ze.FULL) {
4747
+ makeCall(e, r = F.AUDIO, n = we.FULL) {
4732
4748
  var i;
4733
4749
  try {
4734
4750
  if (this.status == R.OFFLINE) {
@@ -4739,11 +4755,11 @@ class _a {
4739
4755
  console.debug("Another call is currently in progress"), this.sessionListener.onError(new Error("Another call is currently in progress"));
4740
4756
  return;
4741
4757
  }
4742
- if (!Or()) {
4758
+ if (!Ir()) {
4743
4759
  console.debug("Browser does not support WEBRTC"), this.sessionListener.onError(new Error("Browser does not support WEBRTC"));
4744
4760
  return;
4745
4761
  }
4746
- this.mediaType = r, this.callMode = n, this.called = e, this.callDirect = K.OUT, this.callId = Pa(), this.webrtcCreate(se.VIDEO == r ? x.VIDEO : x.AUDIO), (i = this.webrtcSession) == null || i.start(!0), this.status = R.TRY;
4762
+ this.mediaType = r, this.callMode = n, this.called = e, this.callDirect = Q.OUT, this.callId = Ea(), this.webrtcCreate(F.VIDEO == r ? b.VIDEO : b.AUDIO), (i = this.webrtcSession) == null || i.start(!0), this.status = R.TRY;
4747
4763
  } catch (o) {
4748
4764
  this.status = R.IDLE, this.sessionListener.onError(new Error("" + o));
4749
4765
  }
@@ -4754,14 +4770,14 @@ class _a {
4754
4770
  console.debug("session is not ring state");
4755
4771
  return;
4756
4772
  }
4757
- if (this.callDirect != K.IN) {
4773
+ if (this.callDirect != Q.IN) {
4758
4774
  console.debug("session is call out, not allow answer");
4759
4775
  return;
4760
4776
  }
4761
- this.webrtcCreate(se.VIDEO == this.mediaType ? x.VIDEO : x.AUDIO), (e = this.webrtcSession) == null || e.start(!1, this.remoteSdp);
4777
+ this.webrtcCreate(F.VIDEO == this.mediaType ? b.VIDEO : b.AUDIO), (e = this.webrtcSession) == null || e.start(!1, this.remoteSdp);
4762
4778
  }
4763
4779
  hangup() {
4764
- this.status <= R.IDLE || (this.status == R.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect == K.IN ? this.sendHangup(this.callId ?? "", 488) : this.sendHangup(this.callId ?? "", 801), this.close());
4780
+ this.status <= R.IDLE || (this.status == R.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect == Q.IN ? this.sendHangup(this.callId ?? "", 488) : this.sendHangup(this.callId ?? "", 801), this.close());
4765
4781
  }
4766
4782
  dtmf(e) {
4767
4783
  return this.status !== R.TALK ? !1 : (this.sendDtmf(e), !0);
@@ -4918,7 +4934,7 @@ class _a {
4918
4934
  console.debug("receive invite, but callId is null.");
4919
4935
  return;
4920
4936
  }
4921
- if (!Or()) {
4937
+ if (!Ir()) {
4922
4938
  console.debug("receive invite, but unsupported webrtc."), this.sendHangup(e.callId, 803);
4923
4939
  return;
4924
4940
  }
@@ -4926,9 +4942,9 @@ class _a {
4926
4942
  e.callId != this.callId && (console.debug("receive invite, but busy."), this.sendHangup(e.callId, 486));
4927
4943
  return;
4928
4944
  }
4929
- this.callId = e.callId, this.mediaType = e.mediaType ?? se.AUDIO, this.callMode = e.callMode ?? ze.FULL, this.called = e.from ?? "", this.callDirect = K.IN, this.remoteSdp = e.sdp, this.candidate = e.candidate, this.sessionListener.onNewCall(new Aa(this.called, this.mediaType, this.callMode)), this.sendRing(), this.ringtone.currentTime = 0, this.ringtone.play().then(() => {
4945
+ this.callId = e.callId, this.mediaType = e.mediaType ?? F.AUDIO, this.callMode = e.callMode ?? we.FULL, this.called = e.from ?? "", this.callDirect = Q.IN, this.remoteSdp = e.sdp, this.candidate = e.candidate, this.sendRing(), this.ringtone.currentTime = 0, this.ringtone.play().then(() => {
4930
4946
  }).catch(() => {
4931
- });
4947
+ }), this.sessionListener.onNewCall(new Aa(this.called, this.mediaType, this.callMode));
4932
4948
  }
4933
4949
  ringHandler(e) {
4934
4950
  var r;
@@ -4948,7 +4964,7 @@ class _a {
4948
4964
  }
4949
4965
  /************************ WebrtcSession ***********************************/
4950
4966
  webrtcCreate(e) {
4951
- this.webrtcClose(), this.webrtcSession = new wn(e), this.webrtcSession.setListener(this);
4967
+ this.webrtcClose(), this.webrtcSession = new Vt(e), this.webrtcSession.setListener(this);
4952
4968
  }
4953
4969
  webrtcClose() {
4954
4970
  var e;
@@ -4962,29 +4978,88 @@ class _a {
4962
4978
  this.sessionListener.onAddRemoteStream(e);
4963
4979
  }
4964
4980
  onError(e) {
4965
- this.close(), this.callDirect == K.OUT && this.hangup(), this.sessionListener.onError(e);
4981
+ this.close(), this.callDirect == Q.OUT && this.hangup(), this.sessionListener.onError(e);
4966
4982
  }
4967
4983
  onStartSuccess(e) {
4968
4984
  var r;
4969
4985
  e.type == "answer" ? (this.sendAnswer(e.sdp ?? ""), (r = this.webrtcSession) == null || r.addRemoteCandidate(this.candidate ?? [])) : e.type == "offer" && this.sendInvite(e.sdp ?? "");
4970
4986
  }
4971
4987
  }
4972
- let Vn = new ln("/"), Wn = "/media-server/ws/voip", It = new URL((location.protocol == "https:" ? "wss://" : "ws://") + location.host + Wn);
4973
- function Da(t) {
4974
- Vn = new ln(t);
4975
- }
4976
- function La(t) {
4977
- return new Ta(t, Vn);
4988
+ class xa {
4989
+ onError(e) {
4990
+ console.debug("onError:", e);
4991
+ }
4992
+ onAddLocalStream(e) {
4993
+ console.debug("onAddLocalStream:", e);
4994
+ }
4978
4995
  }
4979
- function ka(t) {
4980
- It = new URL(t), It.pathname = Wn;
4996
+ const Da = "/media-server/broadcast/webrtc";
4997
+ class La {
4998
+ /**
4999
+ *
5000
+ * @param tel{string} 广播的号码
5001
+ * @param httpClient{HttpClient} 发起请求的http客户端
5002
+ * @param mediaType 媒体类型
5003
+ */
5004
+ constructor(e, r, n) {
5005
+ g(this, "tel");
5006
+ g(this, "mediaType");
5007
+ g(this, "webrtcSession");
5008
+ g(this, "sessionListener", new xa());
5009
+ g(this, "httpClient");
5010
+ this.tel = e, this.httpClient = r, this.mediaType = n === F.VIDEO ? F.VIDEO : F.AUDIO, this.webrtcSession = new Vt(n == F.VIDEO ? b.VIDEO_PUSH : b.AUDIO_PUSH), this.webrtcSession.setListener(this);
5011
+ }
5012
+ setBroadcastSessionListener(e) {
5013
+ this.sessionListener = e;
5014
+ }
5015
+ start() {
5016
+ this.webrtcSession.start(!0);
5017
+ }
5018
+ stop() {
5019
+ this.webrtcSession.stop();
5020
+ }
5021
+ /************************** WebrtcSessionListener ***************************/
5022
+ onAddLocalStream(e) {
5023
+ this.sessionListener.onAddLocalStream(e);
5024
+ }
5025
+ onAddRemoteStream(e) {
5026
+ }
5027
+ onError(e) {
5028
+ this.sessionListener.onError(e);
5029
+ }
5030
+ onStartSuccess(e) {
5031
+ console.debug("offer:", e.sdp), this.httpClient.Post(Da, new Wn(this.tel, e.sdp ?? "")).then((r) => {
5032
+ var n, i, o;
5033
+ if (r.code != 200) {
5034
+ this.stop(), this.sessionListener.onError(new Error(r.message));
5035
+ return;
5036
+ }
5037
+ console.debug("answer", (n = r.data) == null ? void 0 : n.sdp), this.webrtcSession.setRemoteSdp(((i = r.data) == null ? void 0 : i.sdp) ?? ""), this.webrtcSession.addRemoteCandidate(((o = r.data) == null ? void 0 : o.candidateList) ?? []);
5038
+ }).catch((r) => {
5039
+ this.stop(), this.sessionListener.onError(r);
5040
+ });
5041
+ }
4981
5042
  }
5043
+ let Wt = new fn("/"), Jn = "/media-server/ws/voip", xt = new URL((location.protocol == "https:" ? "wss://" : "ws://") + location.host + Jn);
4982
5044
  function Ma(t) {
4983
- return new _a(It.toString(), t);
5045
+ Wt = new fn(t);
5046
+ }
5047
+ function Na(t) {
5048
+ return new Ta(t, Wt);
5049
+ }
5050
+ function Fa(t, e) {
5051
+ return new La(t, Wt, e);
5052
+ }
5053
+ function Ua(t) {
5054
+ xt = new URL(t), xt.pathname = Jn;
5055
+ }
5056
+ function Ba(t) {
5057
+ return new _a(xt.toString(), t);
4984
5058
  }
4985
5059
  export {
4986
- Ma as createCallSession,
4987
- La as createRtspPullSession,
4988
- Da as videoModuleInit,
4989
- ka as voipModuleInit
5060
+ Fa as createBroadcastSession,
5061
+ Ba as createCallSession,
5062
+ Na as createRtspPullSession,
5063
+ Ma as videoModuleInit,
5064
+ Ua as voipModuleInit
4990
5065
  };