frappe-react-sdk 1.6.0 → 1.7.1

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.
@@ -1,8 +1,8 @@
1
- var ei = Object.defineProperty;
2
- var ti = (n, e, t) => e in n ? ei(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var Ye = (n, e, t) => (ti(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import Ze, { createContext as $r, useContext as ye, useEffect as pt, useLayoutEffect as ni, useRef as pe, useMemo as jn, useCallback as $, useDebugValue as Wr, useState as J } from "react";
5
- var H = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ln = {}, gt = {}, Tt = {}, Te = H && H.__assign || function() {
1
+ var oi = Object.defineProperty;
2
+ var ai = (n, e, t) => e in n ? oi(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var Ye = (n, e, t) => (ai(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import et, { createContext as zr, useContext as he, useMemo as St, useRef as fe, createElement as ci, useEffect as pt, useLayoutEffect as ui, useCallback as $, useDebugValue as Jr, useState as J } from "react";
5
+ var H = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, dn = {}, gt = {}, xt = {}, Te = H && H.__assign || function() {
6
6
  return Te = Object.assign || function(n) {
7
7
  for (var e, t = 1, r = arguments.length; t < r; t++) {
8
8
  e = arguments[t];
@@ -11,7 +11,7 @@ var H = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
11
11
  }
12
12
  return n;
13
13
  }, Te.apply(this, arguments);
14
- }, Lt = H && H.__awaiter || function(n, e, t, r) {
14
+ }, Nt = H && H.__awaiter || function(n, e, t, r) {
15
15
  function s(i) {
16
16
  return i instanceof t ? i : new t(function(o) {
17
17
  o(i);
@@ -37,7 +37,7 @@ var H = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
37
37
  }
38
38
  a((r = r.apply(n, e || [])).next());
39
39
  });
40
- }, kt = H && H.__generator || function(n, e) {
40
+ }, Pt = H && H.__generator || function(n, e) {
41
41
  var t = { label: 0, sent: function() {
42
42
  if (i[0] & 1)
43
43
  throw i[1];
@@ -102,16 +102,16 @@ var H = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
102
102
  return { value: a[0] ? a[1] : void 0, done: !0 };
103
103
  }
104
104
  };
105
- Object.defineProperty(Tt, "__esModule", { value: !0 });
106
- Tt.FrappeCall = void 0;
107
- var ri = function() {
105
+ Object.defineProperty(xt, "__esModule", { value: !0 });
106
+ xt.FrappeCall = void 0;
107
+ var li = function() {
108
108
  function n(e, t, r, s, i) {
109
109
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
110
110
  }
111
111
  return n.prototype.get = function(e, t) {
112
- return Lt(this, void 0, void 0, function() {
112
+ return Nt(this, void 0, void 0, function() {
113
113
  var r;
114
- return kt(this, function(s) {
114
+ return Pt(this, function(s) {
115
115
  return r = new URLSearchParams(), t && Object.entries(t).forEach(function(i) {
116
116
  var o = i[0], c = i[1];
117
117
  if (c != null) {
@@ -129,8 +129,8 @@ var ri = function() {
129
129
  });
130
130
  });
131
131
  }, n.prototype.post = function(e, t) {
132
- return Lt(this, void 0, void 0, function() {
133
- return kt(this, function(r) {
132
+ return Nt(this, void 0, void 0, function() {
133
+ return Pt(this, function(r) {
134
134
  return [2, this.axios.post("/api/method/".concat(e), Te({}, t)).then(function(s) {
135
135
  return s.data;
136
136
  }).catch(function(s) {
@@ -140,8 +140,8 @@ var ri = function() {
140
140
  });
141
141
  });
142
142
  }, n.prototype.put = function(e, t) {
143
- return Lt(this, void 0, void 0, function() {
144
- return kt(this, function(r) {
143
+ return Nt(this, void 0, void 0, function() {
144
+ return Pt(this, function(r) {
145
145
  return [2, this.axios.put("/api/method/".concat(e), Te({}, t)).then(function(s) {
146
146
  return s.data;
147
147
  }).catch(function(s) {
@@ -151,8 +151,8 @@ var ri = function() {
151
151
  });
152
152
  });
153
153
  }, n.prototype.delete = function(e, t) {
154
- return Lt(this, void 0, void 0, function() {
155
- return kt(this, function(r) {
154
+ return Nt(this, void 0, void 0, function() {
155
+ return Pt(this, function(r) {
156
156
  return [2, this.axios.delete("/api/method/".concat(e), { params: t }).then(function(s) {
157
157
  return s.data;
158
158
  }).catch(function(s) {
@@ -163,8 +163,8 @@ var ri = function() {
163
163
  });
164
164
  }, n;
165
165
  }();
166
- Tt.FrappeCall = ri;
167
- var Ot = {}, oe = H && H.__assign || function() {
166
+ xt.FrappeCall = li;
167
+ var Ct = {}, oe = H && H.__assign || function() {
168
168
  return oe = Object.assign || function(n) {
169
169
  for (var e, t = 1, r = arguments.length; t < r; t++) {
170
170
  e = arguments[t];
@@ -173,7 +173,7 @@ var Ot = {}, oe = H && H.__assign || function() {
173
173
  }
174
174
  return n;
175
175
  }, oe.apply(this, arguments);
176
- }, st = H && H.__awaiter || function(n, e, t, r) {
176
+ }, it = H && H.__awaiter || function(n, e, t, r) {
177
177
  function s(i) {
178
178
  return i instanceof t ? i : new t(function(o) {
179
179
  o(i);
@@ -199,7 +199,7 @@ var Ot = {}, oe = H && H.__assign || function() {
199
199
  }
200
200
  a((r = r.apply(n, e || [])).next());
201
201
  });
202
- }, it = H && H.__generator || function(n, e) {
202
+ }, ot = H && H.__generator || function(n, e) {
203
203
  var t = { label: 0, sent: function() {
204
204
  if (i[0] & 1)
205
205
  throw i[1];
@@ -264,15 +264,15 @@ var Ot = {}, oe = H && H.__assign || function() {
264
264
  return { value: a[0] ? a[1] : void 0, done: !0 };
265
265
  }
266
266
  };
267
- Object.defineProperty(Ot, "__esModule", { value: !0 });
268
- Ot.FrappeDB = void 0;
269
- var si = function() {
267
+ Object.defineProperty(Ct, "__esModule", { value: !0 });
268
+ Ct.FrappeDB = void 0;
269
+ var fi = function() {
270
270
  function n(e, t, r, s, i) {
271
271
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
272
272
  }
273
273
  return n.prototype.getDoc = function(e, t) {
274
- return t === void 0 && (t = ""), st(this, void 0, void 0, function() {
275
- return it(this, function(r) {
274
+ return t === void 0 && (t = ""), it(this, void 0, void 0, function() {
275
+ return ot(this, function(r) {
276
276
  return [2, this.axios.get("/api/resource/".concat(e, "/").concat(encodeURIComponent(t))).then(function(s) {
277
277
  return s.data.data;
278
278
  }).catch(function(s) {
@@ -283,9 +283,9 @@ var si = function() {
283
283
  });
284
284
  }, n.prototype.getDocList = function(e, t) {
285
285
  var r;
286
- return st(this, void 0, void 0, function() {
286
+ return it(this, void 0, void 0, function() {
287
287
  var s, i, o, c, l, a, h, f, w, g, m;
288
- return it(this, function(p) {
288
+ return ot(this, function(p) {
289
289
  return s = {}, t && (i = t.fields, o = t.filters, c = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, w = t.asDict, g = w === void 0 ? !0 : w, m = l ? "".concat(String(l == null ? void 0 : l.field), " ").concat((r = l == null ? void 0 : l.order) !== null && r !== void 0 ? r : "asc") : "", s = {
290
290
  fields: i ? JSON.stringify(i) : void 0,
291
291
  filters: o ? JSON.stringify(o) : void 0,
@@ -298,14 +298,14 @@ var si = function() {
298
298
  }), [2, this.axios.get("/api/resource/".concat(e), { params: s }).then(function(x) {
299
299
  return x.data.data;
300
300
  }).catch(function(x) {
301
- var y, A;
302
- throw oe(oe({}, x.response.data), { httpStatus: x.response.status, httpStatusText: x.response.statusText, message: "There was an error while fetching the documents.", exception: (A = (y = x.response.data.exception) !== null && y !== void 0 ? y : x.response.data.exc_type) !== null && A !== void 0 ? A : "" });
301
+ var y, C;
302
+ throw oe(oe({}, x.response.data), { httpStatus: x.response.status, httpStatusText: x.response.statusText, message: "There was an error while fetching the documents.", exception: (C = (y = x.response.data.exception) !== null && y !== void 0 ? y : x.response.data.exc_type) !== null && C !== void 0 ? C : "" });
303
303
  })];
304
304
  });
305
305
  });
306
306
  }, n.prototype.createDoc = function(e, t) {
307
- return st(this, void 0, void 0, function() {
308
- return it(this, function(r) {
307
+ return it(this, void 0, void 0, function() {
308
+ return ot(this, function(r) {
309
309
  return [2, this.axios.post("/api/resource/".concat(e), oe({}, t)).then(function(s) {
310
310
  return s.data.data;
311
311
  }).catch(function(s) {
@@ -315,8 +315,8 @@ var si = function() {
315
315
  });
316
316
  });
317
317
  }, n.prototype.updateDoc = function(e, t, r) {
318
- return st(this, void 0, void 0, function() {
319
- return it(this, function(s) {
318
+ return it(this, void 0, void 0, function() {
319
+ return ot(this, function(s) {
320
320
  return [2, this.axios.put("/api/resource/".concat(e, "/").concat(t && encodeURIComponent(t)), oe({}, r)).then(function(i) {
321
321
  return i.data.data;
322
322
  }).catch(function(i) {
@@ -326,8 +326,8 @@ var si = function() {
326
326
  });
327
327
  });
328
328
  }, n.prototype.deleteDoc = function(e, t) {
329
- return st(this, void 0, void 0, function() {
330
- return it(this, function(r) {
329
+ return it(this, void 0, void 0, function() {
330
+ return ot(this, function(r) {
331
331
  return [2, this.axios.delete("/api/resource/".concat(e, "/").concat(t && encodeURIComponent(t))).then(function(s) {
332
332
  return s.data;
333
333
  }).catch(function(s) {
@@ -337,9 +337,9 @@ var si = function() {
337
337
  });
338
338
  });
339
339
  }, n.prototype.getCount = function(e, t, r, s) {
340
- return r === void 0 && (r = !1), s === void 0 && (s = !1), st(this, void 0, void 0, function() {
340
+ return r === void 0 && (r = !1), s === void 0 && (s = !1), it(this, void 0, void 0, function() {
341
341
  var i;
342
- return it(this, function(o) {
342
+ return ot(this, function(o) {
343
343
  return i = {
344
344
  doctype: e,
345
345
  filters: []
@@ -352,9 +352,9 @@ var si = function() {
352
352
  });
353
353
  });
354
354
  }, n.prototype.getLastDoc = function(e, t) {
355
- return st(this, void 0, void 0, function() {
355
+ return it(this, void 0, void 0, function() {
356
356
  var r, s;
357
- return it(this, function(i) {
357
+ return ot(this, function(i) {
358
358
  switch (i.label) {
359
359
  case 0:
360
360
  return r = {
@@ -370,35 +370,35 @@ var si = function() {
370
370
  });
371
371
  }, n;
372
372
  }();
373
- Ot.FrappeDB = si;
374
- var xt = {}, at = {};
375
- function Hr(n, e) {
373
+ Ct.FrappeDB = fi;
374
+ var At = {}, at = {};
375
+ function Kr(n, e) {
376
376
  return function() {
377
377
  return n.apply(e, arguments);
378
378
  };
379
379
  }
380
- const { toString: ii } = Object.prototype, { getPrototypeOf: Mn } = Object, Gt = ((n) => (e) => {
381
- const t = ii.call(e);
380
+ const { toString: hi } = Object.prototype, { getPrototypeOf: Wn } = Object, Qt = ((n) => (e) => {
381
+ const t = hi.call(e);
382
382
  return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
383
- })(/* @__PURE__ */ Object.create(null)), Ue = (n) => (n = n.toLowerCase(), (e) => Gt(e) === n), Xt = (n) => (e) => typeof e === n, { isArray: yt } = Array, Rt = Xt("undefined");
384
- function oi(n) {
385
- return n !== null && !Rt(n) && n.constructor !== null && !Rt(n.constructor) && xe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
383
+ })(/* @__PURE__ */ Object.create(null)), Ve = (n) => (n = n.toLowerCase(), (e) => Qt(e) === n), Zt = (n) => (e) => typeof e === n, { isArray: yt } = Array, Tt = Zt("undefined");
384
+ function di(n) {
385
+ return n !== null && !Tt(n) && n.constructor !== null && !Tt(n.constructor) && xe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
386
386
  }
387
- const zr = Ue("ArrayBuffer");
388
- function ai(n) {
387
+ const Yr = Ve("ArrayBuffer");
388
+ function pi(n) {
389
389
  let e;
390
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && zr(n.buffer), e;
390
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && Yr(n.buffer), e;
391
391
  }
392
- const ci = Xt("string"), xe = Xt("function"), Jr = Xt("number"), Qt = (n) => n !== null && typeof n == "object", ui = (n) => n === !0 || n === !1, jt = (n) => {
393
- if (Gt(n) !== "object")
392
+ const yi = Zt("string"), xe = Zt("function"), Gr = Zt("number"), en = (n) => n !== null && typeof n == "object", mi = (n) => n === !0 || n === !1, $t = (n) => {
393
+ if (Qt(n) !== "object")
394
394
  return !1;
395
- const e = Mn(n);
395
+ const e = Wn(n);
396
396
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
397
- }, li = Ue("Date"), fi = Ue("File"), hi = Ue("Blob"), di = Ue("FileList"), pi = (n) => Qt(n) && xe(n.pipe), yi = (n) => {
397
+ }, gi = Ve("Date"), vi = Ve("File"), wi = Ve("Blob"), bi = Ve("FileList"), _i = (n) => en(n) && xe(n.pipe), Ei = (n) => {
398
398
  let e;
399
- return n && (typeof FormData == "function" && n instanceof FormData || xe(n.append) && ((e = Gt(n)) === "formdata" || e === "object" && xe(n.toString) && n.toString() === "[object FormData]"));
400
- }, mi = Ue("URLSearchParams"), gi = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
401
- function At(n, e, { allOwnKeys: t = !1 } = {}) {
399
+ return n && (typeof FormData == "function" && n instanceof FormData || xe(n.append) && ((e = Qt(n)) === "formdata" || e === "object" && xe(n.toString) && n.toString() === "[object FormData]"));
400
+ }, Ri = Ve("URLSearchParams"), Si = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
401
+ function Dt(n, e, { allOwnKeys: t = !1 } = {}) {
402
402
  if (n === null || typeof n > "u")
403
403
  return;
404
404
  let r, s;
@@ -412,7 +412,7 @@ function At(n, e, { allOwnKeys: t = !1 } = {}) {
412
412
  c = i[r], e.call(null, n[c], c, n);
413
413
  }
414
414
  }
415
- function Kr(n, e) {
415
+ function Xr(n, e) {
416
416
  e = e.toLowerCase();
417
417
  const t = Object.keys(n);
418
418
  let r = t.length, s;
@@ -421,23 +421,23 @@ function Kr(n, e) {
421
421
  return s;
422
422
  return null;
423
423
  }
424
- const Yr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : H)(), Gr = (n) => !Rt(n) && n !== Yr;
425
- function Tn() {
426
- const { caseless: n } = Gr(this) && this || {}, e = {}, t = (r, s) => {
427
- const i = n && Kr(e, s) || s;
428
- jt(e[i]) && jt(r) ? e[i] = Tn(e[i], r) : jt(r) ? e[i] = Tn({}, r) : yt(r) ? e[i] = r.slice() : e[i] = r;
424
+ const Qr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : H)(), Zr = (n) => !Tt(n) && n !== Qr;
425
+ function xn() {
426
+ const { caseless: n } = Zr(this) && this || {}, e = {}, t = (r, s) => {
427
+ const i = n && Xr(e, s) || s;
428
+ $t(e[i]) && $t(r) ? e[i] = xn(e[i], r) : $t(r) ? e[i] = xn({}, r) : yt(r) ? e[i] = r.slice() : e[i] = r;
429
429
  };
430
430
  for (let r = 0, s = arguments.length; r < s; r++)
431
- arguments[r] && At(arguments[r], t);
431
+ arguments[r] && Dt(arguments[r], t);
432
432
  return e;
433
433
  }
434
- const vi = (n, e, t, { allOwnKeys: r } = {}) => (At(e, (s, i) => {
435
- t && xe(s) ? n[i] = Hr(s, t) : n[i] = s;
436
- }, { allOwnKeys: r }), n), wi = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), bi = (n, e, t, r) => {
434
+ const Ti = (n, e, t, { allOwnKeys: r } = {}) => (Dt(e, (s, i) => {
435
+ t && xe(s) ? n[i] = Kr(s, t) : n[i] = s;
436
+ }, { allOwnKeys: r }), n), Oi = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), xi = (n, e, t, r) => {
437
437
  n.prototype = Object.create(e.prototype, r), n.prototype.constructor = n, Object.defineProperty(n, "super", {
438
438
  value: e.prototype
439
439
  }), t && Object.assign(n.prototype, t);
440
- }, _i = (n, e, t, r) => {
440
+ }, Ci = (n, e, t, r) => {
441
441
  let s, i, o;
442
442
  const c = {};
443
443
  if (e = e || {}, n == null)
@@ -445,51 +445,51 @@ const vi = (n, e, t, { allOwnKeys: r } = {}) => (At(e, (s, i) => {
445
445
  do {
446
446
  for (s = Object.getOwnPropertyNames(n), i = s.length; i-- > 0; )
447
447
  o = s[i], (!r || r(o, n, e)) && !c[o] && (e[o] = n[o], c[o] = !0);
448
- n = t !== !1 && Mn(n);
448
+ n = t !== !1 && Wn(n);
449
449
  } while (n && (!t || t(n, e)) && n !== Object.prototype);
450
450
  return e;
451
- }, Ei = (n, e, t) => {
451
+ }, Ai = (n, e, t) => {
452
452
  n = String(n), (t === void 0 || t > n.length) && (t = n.length), t -= e.length;
453
453
  const r = n.indexOf(e, t);
454
454
  return r !== -1 && r === t;
455
- }, Ri = (n) => {
455
+ }, Di = (n) => {
456
456
  if (!n)
457
457
  return null;
458
458
  if (yt(n))
459
459
  return n;
460
460
  let e = n.length;
461
- if (!Jr(e))
461
+ if (!Gr(e))
462
462
  return null;
463
463
  const t = new Array(e);
464
464
  for (; e-- > 0; )
465
465
  t[e] = n[e];
466
466
  return t;
467
- }, Si = ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Mn(Uint8Array)), Ti = (n, e) => {
467
+ }, Li = ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Wn(Uint8Array)), ki = (n, e) => {
468
468
  const r = (n && n[Symbol.iterator]).call(n);
469
469
  let s;
470
470
  for (; (s = r.next()) && !s.done; ) {
471
471
  const i = s.value;
472
472
  e.call(n, i[0], i[1]);
473
473
  }
474
- }, Oi = (n, e) => {
474
+ }, Ni = (n, e) => {
475
475
  let t;
476
476
  const r = [];
477
477
  for (; (t = n.exec(e)) !== null; )
478
478
  r.push(t);
479
479
  return r;
480
- }, xi = Ue("HTMLFormElement"), Ai = (n) => n.toLowerCase().replace(
480
+ }, Pi = Ve("HTMLFormElement"), Fi = (n) => n.toLowerCase().replace(
481
481
  /[-_\s]([a-z\d])(\w*)/g,
482
482
  function(t, r, s) {
483
483
  return r.toUpperCase() + s;
484
484
  }
485
- ), hr = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), Ci = Ue("RegExp"), Xr = (n, e) => {
485
+ ), pr = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), Bi = Ve("RegExp"), es = (n, e) => {
486
486
  const t = Object.getOwnPropertyDescriptors(n), r = {};
487
- At(t, (s, i) => {
487
+ Dt(t, (s, i) => {
488
488
  let o;
489
489
  (o = e(s, i, n)) !== !1 && (r[i] = o || s);
490
490
  }), Object.defineProperties(n, r);
491
- }, Di = (n) => {
492
- Xr(n, (e, t) => {
491
+ }, Ii = (n) => {
492
+ es(n, (e, t) => {
493
493
  if (xe(n) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
494
494
  return !1;
495
495
  const r = n[t];
@@ -503,98 +503,98 @@ const vi = (n, e, t, { allOwnKeys: r } = {}) => (At(e, (s, i) => {
503
503
  });
504
504
  }
505
505
  });
506
- }, Li = (n, e) => {
506
+ }, Ui = (n, e) => {
507
507
  const t = {}, r = (s) => {
508
508
  s.forEach((i) => {
509
509
  t[i] = !0;
510
510
  });
511
511
  };
512
512
  return yt(n) ? r(n) : r(String(n).split(e)), t;
513
- }, ki = () => {
514
- }, Ni = (n, e) => (n = +n, Number.isFinite(n) ? n : e), fn = "abcdefghijklmnopqrstuvwxyz", dr = "0123456789", Qr = {
515
- DIGIT: dr,
516
- ALPHA: fn,
517
- ALPHA_DIGIT: fn + fn.toUpperCase() + dr
518
- }, Pi = (n = 16, e = Qr.ALPHA_DIGIT) => {
513
+ }, Vi = () => {
514
+ }, qi = (n, e) => (n = +n, Number.isFinite(n) ? n : e), pn = "abcdefghijklmnopqrstuvwxyz", yr = "0123456789", ts = {
515
+ DIGIT: yr,
516
+ ALPHA: pn,
517
+ ALPHA_DIGIT: pn + pn.toUpperCase() + yr
518
+ }, ji = (n = 16, e = ts.ALPHA_DIGIT) => {
519
519
  let t = "";
520
520
  const { length: r } = e;
521
521
  for (; n--; )
522
522
  t += e[Math.random() * r | 0];
523
523
  return t;
524
524
  };
525
- function Fi(n) {
525
+ function Mi(n) {
526
526
  return !!(n && xe(n.append) && n[Symbol.toStringTag] === "FormData" && n[Symbol.iterator]);
527
527
  }
528
- const Bi = (n) => {
528
+ const $i = (n) => {
529
529
  const e = new Array(10), t = (r, s) => {
530
- if (Qt(r)) {
530
+ if (en(r)) {
531
531
  if (e.indexOf(r) >= 0)
532
532
  return;
533
533
  if (!("toJSON" in r)) {
534
534
  e[s] = r;
535
535
  const i = yt(r) ? [] : {};
536
- return At(r, (o, c) => {
536
+ return Dt(r, (o, c) => {
537
537
  const l = t(o, s + 1);
538
- !Rt(l) && (i[c] = l);
538
+ !Tt(l) && (i[c] = l);
539
539
  }), e[s] = void 0, i;
540
540
  }
541
541
  }
542
542
  return r;
543
543
  };
544
544
  return t(n, 0);
545
- }, Ii = Ue("AsyncFunction"), Ui = (n) => n && (Qt(n) || xe(n)) && xe(n.then) && xe(n.catch);
545
+ }, Wi = Ve("AsyncFunction"), Hi = (n) => n && (en(n) || xe(n)) && xe(n.then) && xe(n.catch);
546
546
  var d = {
547
547
  isArray: yt,
548
- isArrayBuffer: zr,
549
- isBuffer: oi,
550
- isFormData: yi,
551
- isArrayBufferView: ai,
552
- isString: ci,
553
- isNumber: Jr,
554
- isBoolean: ui,
555
- isObject: Qt,
556
- isPlainObject: jt,
557
- isUndefined: Rt,
558
- isDate: li,
559
- isFile: fi,
560
- isBlob: hi,
561
- isRegExp: Ci,
548
+ isArrayBuffer: Yr,
549
+ isBuffer: di,
550
+ isFormData: Ei,
551
+ isArrayBufferView: pi,
552
+ isString: yi,
553
+ isNumber: Gr,
554
+ isBoolean: mi,
555
+ isObject: en,
556
+ isPlainObject: $t,
557
+ isUndefined: Tt,
558
+ isDate: gi,
559
+ isFile: vi,
560
+ isBlob: wi,
561
+ isRegExp: Bi,
562
562
  isFunction: xe,
563
- isStream: pi,
564
- isURLSearchParams: mi,
565
- isTypedArray: Si,
566
- isFileList: di,
567
- forEach: At,
568
- merge: Tn,
569
- extend: vi,
570
- trim: gi,
571
- stripBOM: wi,
572
- inherits: bi,
573
- toFlatObject: _i,
574
- kindOf: Gt,
575
- kindOfTest: Ue,
576
- endsWith: Ei,
577
- toArray: Ri,
578
- forEachEntry: Ti,
579
- matchAll: Oi,
580
- isHTMLForm: xi,
581
- hasOwnProperty: hr,
582
- hasOwnProp: hr,
583
- reduceDescriptors: Xr,
584
- freezeMethods: Di,
585
- toObjectSet: Li,
586
- toCamelCase: Ai,
587
- noop: ki,
588
- toFiniteNumber: Ni,
589
- findKey: Kr,
590
- global: Yr,
591
- isContextDefined: Gr,
592
- ALPHABET: Qr,
593
- generateString: Pi,
594
- isSpecCompliantForm: Fi,
595
- toJSONObject: Bi,
596
- isAsyncFn: Ii,
597
- isThenable: Ui
563
+ isStream: _i,
564
+ isURLSearchParams: Ri,
565
+ isTypedArray: Li,
566
+ isFileList: bi,
567
+ forEach: Dt,
568
+ merge: xn,
569
+ extend: Ti,
570
+ trim: Si,
571
+ stripBOM: Oi,
572
+ inherits: xi,
573
+ toFlatObject: Ci,
574
+ kindOf: Qt,
575
+ kindOfTest: Ve,
576
+ endsWith: Ai,
577
+ toArray: Di,
578
+ forEachEntry: ki,
579
+ matchAll: Ni,
580
+ isHTMLForm: Pi,
581
+ hasOwnProperty: pr,
582
+ hasOwnProp: pr,
583
+ reduceDescriptors: es,
584
+ freezeMethods: Ii,
585
+ toObjectSet: Ui,
586
+ toCamelCase: Fi,
587
+ noop: Vi,
588
+ toFiniteNumber: qi,
589
+ findKey: Xr,
590
+ global: Qr,
591
+ isContextDefined: Zr,
592
+ ALPHABET: ts,
593
+ generateString: ji,
594
+ isSpecCompliantForm: Mi,
595
+ toJSONObject: $i,
596
+ isAsyncFn: Wi,
597
+ isThenable: Hi
598
598
  };
599
599
  function q(n, e, t, r, s) {
600
600
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = n, this.name = "AxiosError", e && (this.code = e), t && (this.config = t), r && (this.request = r), s && (this.response = s);
@@ -616,7 +616,7 @@ d.inherits(q, Error, {
616
616
  };
617
617
  }
618
618
  });
619
- const Zr = q.prototype, es = {};
619
+ const ns = q.prototype, rs = {};
620
620
  [
621
621
  "ERR_BAD_OPTION_VALUE",
622
622
  "ERR_BAD_OPTION",
@@ -631,35 +631,35 @@ const Zr = q.prototype, es = {};
631
631
  "ERR_NOT_SUPPORT",
632
632
  "ERR_INVALID_URL"
633
633
  ].forEach((n) => {
634
- es[n] = { value: n };
634
+ rs[n] = { value: n };
635
635
  });
636
- Object.defineProperties(q, es);
637
- Object.defineProperty(Zr, "isAxiosError", { value: !0 });
636
+ Object.defineProperties(q, rs);
637
+ Object.defineProperty(ns, "isAxiosError", { value: !0 });
638
638
  q.from = (n, e, t, r, s, i) => {
639
- const o = Object.create(Zr);
639
+ const o = Object.create(ns);
640
640
  return d.toFlatObject(n, o, function(l) {
641
641
  return l !== Error.prototype;
642
642
  }, (c) => c !== "isAxiosError"), q.call(o, n.message, e, t, r, s), o.cause = n, o.name = n.name, i && Object.assign(o, i), o;
643
643
  };
644
- var Vi = null;
645
- function On(n) {
644
+ var zi = null;
645
+ function Cn(n) {
646
646
  return d.isPlainObject(n) || d.isArray(n);
647
647
  }
648
- function ts(n) {
648
+ function ss(n) {
649
649
  return d.endsWith(n, "[]") ? n.slice(0, -2) : n;
650
650
  }
651
- function pr(n, e, t) {
651
+ function mr(n, e, t) {
652
652
  return n ? n.concat(e).map(function(s, i) {
653
- return s = ts(s), !t && i ? "[" + s + "]" : s;
653
+ return s = ss(s), !t && i ? "[" + s + "]" : s;
654
654
  }).join(t ? "." : "") : e;
655
655
  }
656
- function qi(n) {
657
- return d.isArray(n) && !n.some(On);
656
+ function Ji(n) {
657
+ return d.isArray(n) && !n.some(Cn);
658
658
  }
659
- const ji = d.toFlatObject(d, {}, null, function(e) {
659
+ const Ki = d.toFlatObject(d, {}, null, function(e) {
660
660
  return /^is[A-Z]/.test(e);
661
661
  });
662
- function Zt(n, e, t) {
662
+ function tn(n, e, t) {
663
663
  if (!d.isObject(n))
664
664
  throw new TypeError("target must be an object");
665
665
  e = e || new FormData(), t = d.toFlatObject(t, {
@@ -686,33 +686,33 @@ function Zt(n, e, t) {
686
686
  if (m && !x && typeof m == "object") {
687
687
  if (d.endsWith(p, "{}"))
688
688
  p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
689
- else if (d.isArray(m) && qi(m) || (d.isFileList(m) || d.endsWith(p, "[]")) && (y = d.toArray(m)))
690
- return p = ts(p), y.forEach(function(D, C) {
689
+ else if (d.isArray(m) && Ji(m) || (d.isFileList(m) || d.endsWith(p, "[]")) && (y = d.toArray(m)))
690
+ return p = ss(p), y.forEach(function(D, A) {
691
691
  !(d.isUndefined(D) || D === null) && e.append(
692
- o === !0 ? pr([p], C, i) : o === null ? p : p + "[]",
692
+ o === !0 ? mr([p], A, i) : o === null ? p : p + "[]",
693
693
  a(D)
694
694
  );
695
695
  }), !1;
696
696
  }
697
- return On(m) ? !0 : (e.append(pr(x, p, i), a(m)), !1);
697
+ return Cn(m) ? !0 : (e.append(mr(x, p, i), a(m)), !1);
698
698
  }
699
- const f = [], w = Object.assign(ji, {
699
+ const f = [], w = Object.assign(Ki, {
700
700
  defaultVisitor: h,
701
701
  convertValue: a,
702
- isVisitable: On
702
+ isVisitable: Cn
703
703
  });
704
704
  function g(m, p) {
705
705
  if (!d.isUndefined(m)) {
706
706
  if (f.indexOf(m) !== -1)
707
707
  throw Error("Circular reference detected in " + p.join("."));
708
- f.push(m), d.forEach(m, function(y, A) {
708
+ f.push(m), d.forEach(m, function(y, C) {
709
709
  (!(d.isUndefined(y) || y === null) && s.call(
710
710
  e,
711
711
  y,
712
- d.isString(A) ? A.trim() : A,
712
+ d.isString(C) ? C.trim() : C,
713
713
  p,
714
714
  w
715
- )) === !0 && g(y, p ? p.concat(A) : [A]);
715
+ )) === !0 && g(y, p ? p.concat(C) : [C]);
716
716
  }), f.pop();
717
717
  }
718
718
  }
@@ -720,7 +720,7 @@ function Zt(n, e, t) {
720
720
  throw new TypeError("data must be an object");
721
721
  return g(n), e;
722
722
  }
723
- function yr(n) {
723
+ function gr(n) {
724
724
  const e = {
725
725
  "!": "%21",
726
726
  "'": "%27",
@@ -734,36 +734,36 @@ function yr(n) {
734
734
  return e[r];
735
735
  });
736
736
  }
737
- function $n(n, e) {
738
- this._pairs = [], n && Zt(n, this, e);
737
+ function Hn(n, e) {
738
+ this._pairs = [], n && tn(n, this, e);
739
739
  }
740
- const ns = $n.prototype;
741
- ns.append = function(e, t) {
740
+ const is = Hn.prototype;
741
+ is.append = function(e, t) {
742
742
  this._pairs.push([e, t]);
743
743
  };
744
- ns.toString = function(e) {
744
+ is.toString = function(e) {
745
745
  const t = e ? function(r) {
746
- return e.call(this, r, yr);
747
- } : yr;
746
+ return e.call(this, r, gr);
747
+ } : gr;
748
748
  return this._pairs.map(function(s) {
749
749
  return t(s[0]) + "=" + t(s[1]);
750
750
  }, "").join("&");
751
751
  };
752
- function Mi(n) {
752
+ function Yi(n) {
753
753
  return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
754
754
  }
755
- function rs(n, e, t) {
755
+ function os(n, e, t) {
756
756
  if (!e)
757
757
  return n;
758
- const r = t && t.encode || Mi, s = t && t.serialize;
758
+ const r = t && t.encode || Yi, s = t && t.serialize;
759
759
  let i;
760
- if (s ? i = s(e, t) : i = d.isURLSearchParams(e) ? e.toString() : new $n(e, t).toString(r), i) {
760
+ if (s ? i = s(e, t) : i = d.isURLSearchParams(e) ? e.toString() : new Hn(e, t).toString(r), i) {
761
761
  const o = n.indexOf("#");
762
762
  o !== -1 && (n = n.slice(0, o)), n += (n.indexOf("?") === -1 ? "?" : "&") + i;
763
763
  }
764
764
  return n;
765
765
  }
766
- class $i {
766
+ class Gi {
767
767
  constructor() {
768
768
  this.handlers = [];
769
769
  }
@@ -787,40 +787,40 @@ class $i {
787
787
  });
788
788
  }
789
789
  }
790
- var mr = $i, ss = {
790
+ var vr = Gi, as = {
791
791
  silentJSONParsing: !0,
792
792
  forcedJSONParsing: !0,
793
793
  clarifyTimeoutError: !1
794
- }, Wi = typeof URLSearchParams < "u" ? URLSearchParams : $n, Hi = typeof FormData < "u" ? FormData : null, zi = typeof Blob < "u" ? Blob : null, Ji = {
794
+ }, Xi = typeof URLSearchParams < "u" ? URLSearchParams : Hn, Qi = typeof FormData < "u" ? FormData : null, Zi = typeof Blob < "u" ? Blob : null, eo = {
795
795
  isBrowser: !0,
796
796
  classes: {
797
- URLSearchParams: Wi,
798
- FormData: Hi,
799
- Blob: zi
797
+ URLSearchParams: Xi,
798
+ FormData: Qi,
799
+ Blob: Zi
800
800
  },
801
801
  protocols: ["http", "https", "file", "blob", "url", "data"]
802
802
  };
803
- const is = typeof window < "u" && typeof document < "u", Ki = ((n) => is && ["ReactNative", "NativeScript", "NS"].indexOf(n) < 0)(typeof navigator < "u" && navigator.product), Yi = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")();
804
- var Gi = /* @__PURE__ */ Object.freeze({
803
+ const cs = typeof window < "u" && typeof document < "u", to = ((n) => cs && ["ReactNative", "NativeScript", "NS"].indexOf(n) < 0)(typeof navigator < "u" && navigator.product), no = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")();
804
+ var ro = /* @__PURE__ */ Object.freeze({
805
805
  __proto__: null,
806
- hasBrowserEnv: is,
807
- hasStandardBrowserWebWorkerEnv: Yi,
808
- hasStandardBrowserEnv: Ki
806
+ hasBrowserEnv: cs,
807
+ hasStandardBrowserWebWorkerEnv: no,
808
+ hasStandardBrowserEnv: to
809
809
  }), Fe = {
810
- ...Gi,
811
- ...Ji
810
+ ...ro,
811
+ ...eo
812
812
  };
813
- function Xi(n, e) {
814
- return Zt(n, new Fe.classes.URLSearchParams(), Object.assign({
813
+ function so(n, e) {
814
+ return tn(n, new Fe.classes.URLSearchParams(), Object.assign({
815
815
  visitor: function(t, r, s, i) {
816
816
  return Fe.isNode && d.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
817
817
  }
818
818
  }, e));
819
819
  }
820
- function Qi(n) {
820
+ function io(n) {
821
821
  return d.matchAll(/\w+|\[(\w*)]/g, n).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
822
822
  }
823
- function Zi(n) {
823
+ function oo(n) {
824
824
  const e = {}, t = Object.keys(n);
825
825
  let r;
826
826
  const s = t.length;
@@ -829,23 +829,23 @@ function Zi(n) {
829
829
  i = t[r], e[i] = n[i];
830
830
  return e;
831
831
  }
832
- function os(n) {
832
+ function us(n) {
833
833
  function e(t, r, s, i) {
834
834
  let o = t[i++];
835
835
  if (o === "__proto__")
836
836
  return !0;
837
837
  const c = Number.isFinite(+o), l = i >= t.length;
838
- return o = !o && d.isArray(s) ? s.length : o, l ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(t, r, s[o], i) && d.isArray(s[o]) && (s[o] = Zi(s[o])), !c);
838
+ return o = !o && d.isArray(s) ? s.length : o, l ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(t, r, s[o], i) && d.isArray(s[o]) && (s[o] = oo(s[o])), !c);
839
839
  }
840
840
  if (d.isFormData(n) && d.isFunction(n.entries)) {
841
841
  const t = {};
842
842
  return d.forEachEntry(n, (r, s) => {
843
- e(Qi(r), s, t, 0);
843
+ e(io(r), s, t, 0);
844
844
  }), t;
845
845
  }
846
846
  return null;
847
847
  }
848
- function eo(n, e, t) {
848
+ function ao(n, e, t) {
849
849
  if (d.isString(n))
850
850
  try {
851
851
  return (e || JSON.parse)(n), d.trim(n);
@@ -855,13 +855,13 @@ function eo(n, e, t) {
855
855
  }
856
856
  return (t || JSON.stringify)(n);
857
857
  }
858
- const Wn = {
859
- transitional: ss,
858
+ const zn = {
859
+ transitional: as,
860
860
  adapter: ["xhr", "http"],
861
861
  transformRequest: [function(e, t) {
862
862
  const r = t.getContentType() || "", s = r.indexOf("application/json") > -1, i = d.isObject(e);
863
863
  if (i && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e))
864
- return s ? JSON.stringify(os(e)) : e;
864
+ return s ? JSON.stringify(us(e)) : e;
865
865
  if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e))
866
866
  return e;
867
867
  if (d.isArrayBufferView(e))
@@ -871,20 +871,20 @@ const Wn = {
871
871
  let c;
872
872
  if (i) {
873
873
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
874
- return Xi(e, this.formSerializer).toString();
874
+ return so(e, this.formSerializer).toString();
875
875
  if ((c = d.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
876
876
  const l = this.env && this.env.FormData;
877
- return Zt(
877
+ return tn(
878
878
  c ? { "files[]": e } : e,
879
879
  l && new l(),
880
880
  this.formSerializer
881
881
  );
882
882
  }
883
883
  }
884
- return i || s ? (t.setContentType("application/json", !1), eo(e)) : e;
884
+ return i || s ? (t.setContentType("application/json", !1), ao(e)) : e;
885
885
  }],
886
886
  transformResponse: [function(e) {
887
- const t = this.transitional || Wn.transitional, r = t && t.forcedJSONParsing, s = this.responseType === "json";
887
+ const t = this.transitional || zn.transitional, r = t && t.forcedJSONParsing, s = this.responseType === "json";
888
888
  if (e && d.isString(e) && (r && !this.responseType || s)) {
889
889
  const o = !(t && t.silentJSONParsing) && s;
890
890
  try {
@@ -916,10 +916,10 @@ const Wn = {
916
916
  }
917
917
  };
918
918
  d.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
919
- Wn.headers[n] = {};
919
+ zn.headers[n] = {};
920
920
  });
921
- var Hn = Wn;
922
- const to = d.toObjectSet([
921
+ var Jn = zn;
922
+ const co = d.toObjectSet([
923
923
  "age",
924
924
  "authorization",
925
925
  "content-length",
@@ -938,30 +938,30 @@ const to = d.toObjectSet([
938
938
  "retry-after",
939
939
  "user-agent"
940
940
  ]);
941
- var no = (n) => {
941
+ var uo = (n) => {
942
942
  const e = {};
943
943
  let t, r, s;
944
944
  return n && n.split(`
945
945
  `).forEach(function(o) {
946
- s = o.indexOf(":"), t = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!t || e[t] && to[t]) && (t === "set-cookie" ? e[t] ? e[t].push(r) : e[t] = [r] : e[t] = e[t] ? e[t] + ", " + r : r);
946
+ s = o.indexOf(":"), t = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!t || e[t] && co[t]) && (t === "set-cookie" ? e[t] ? e[t].push(r) : e[t] = [r] : e[t] = e[t] ? e[t] + ", " + r : r);
947
947
  }), e;
948
948
  };
949
- const gr = Symbol("internals");
949
+ const wr = Symbol("internals");
950
950
  function vt(n) {
951
951
  return n && String(n).trim().toLowerCase();
952
952
  }
953
- function Mt(n) {
954
- return n === !1 || n == null ? n : d.isArray(n) ? n.map(Mt) : String(n);
953
+ function Wt(n) {
954
+ return n === !1 || n == null ? n : d.isArray(n) ? n.map(Wt) : String(n);
955
955
  }
956
- function ro(n) {
956
+ function lo(n) {
957
957
  const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
958
958
  let r;
959
959
  for (; r = t.exec(n); )
960
960
  e[r[1]] = r[2];
961
961
  return e;
962
962
  }
963
- const so = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
964
- function hn(n, e, t, r, s) {
963
+ const fo = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
964
+ function yn(n, e, t, r, s) {
965
965
  if (d.isFunction(r))
966
966
  return r.call(this, e, t);
967
967
  if (s && (e = t), !!d.isString(e)) {
@@ -971,10 +971,10 @@ function hn(n, e, t, r, s) {
971
971
  return r.test(e);
972
972
  }
973
973
  }
974
- function io(n) {
974
+ function ho(n) {
975
975
  return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, r) => t.toUpperCase() + r);
976
976
  }
977
- function oo(n, e) {
977
+ function po(n, e) {
978
978
  const t = d.toCamelCase(" " + e);
979
979
  ["get", "set", "has"].forEach((r) => {
980
980
  Object.defineProperty(n, r + t, {
@@ -985,7 +985,7 @@ function oo(n, e) {
985
985
  });
986
986
  });
987
987
  }
988
- class en {
988
+ class nn {
989
989
  constructor(e) {
990
990
  e && this.set(e);
991
991
  }
@@ -996,10 +996,10 @@ class en {
996
996
  if (!h)
997
997
  throw new Error("header name must be a non-empty string");
998
998
  const f = d.findKey(s, h);
999
- (!f || s[f] === void 0 || a === !0 || a === void 0 && s[f] !== !1) && (s[f || l] = Mt(c));
999
+ (!f || s[f] === void 0 || a === !0 || a === void 0 && s[f] !== !1) && (s[f || l] = Wt(c));
1000
1000
  }
1001
1001
  const o = (c, l) => d.forEach(c, (a, h) => i(a, h, l));
1002
- return d.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : d.isString(e) && (e = e.trim()) && !so(e) ? o(no(e), t) : e != null && i(t, e, r), this;
1002
+ return d.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : d.isString(e) && (e = e.trim()) && !fo(e) ? o(uo(e), t) : e != null && i(t, e, r), this;
1003
1003
  }
1004
1004
  get(e, t) {
1005
1005
  if (e = vt(e), e) {
@@ -1009,7 +1009,7 @@ class en {
1009
1009
  if (!t)
1010
1010
  return s;
1011
1011
  if (t === !0)
1012
- return ro(s);
1012
+ return lo(s);
1013
1013
  if (d.isFunction(t))
1014
1014
  return t.call(this, s, r);
1015
1015
  if (d.isRegExp(t))
@@ -1021,7 +1021,7 @@ class en {
1021
1021
  has(e, t) {
1022
1022
  if (e = vt(e), e) {
1023
1023
  const r = d.findKey(this, e);
1024
- return !!(r && this[r] !== void 0 && (!t || hn(this, this[r], r, t)));
1024
+ return !!(r && this[r] !== void 0 && (!t || yn(this, this[r], r, t)));
1025
1025
  }
1026
1026
  return !1;
1027
1027
  }
@@ -1031,7 +1031,7 @@ class en {
1031
1031
  function i(o) {
1032
1032
  if (o = vt(o), o) {
1033
1033
  const c = d.findKey(r, o);
1034
- c && (!t || hn(r, r[c], c, t)) && (delete r[c], s = !0);
1034
+ c && (!t || yn(r, r[c], c, t)) && (delete r[c], s = !0);
1035
1035
  }
1036
1036
  }
1037
1037
  return d.isArray(e) ? e.forEach(i) : i(e), s;
@@ -1041,7 +1041,7 @@ class en {
1041
1041
  let r = t.length, s = !1;
1042
1042
  for (; r--; ) {
1043
1043
  const i = t[r];
1044
- (!e || hn(this, this[i], i, e, !0)) && (delete this[i], s = !0);
1044
+ (!e || yn(this, this[i], i, e, !0)) && (delete this[i], s = !0);
1045
1045
  }
1046
1046
  return s;
1047
1047
  }
@@ -1050,11 +1050,11 @@ class en {
1050
1050
  return d.forEach(this, (s, i) => {
1051
1051
  const o = d.findKey(r, i);
1052
1052
  if (o) {
1053
- t[o] = Mt(s), delete t[i];
1053
+ t[o] = Wt(s), delete t[i];
1054
1054
  return;
1055
1055
  }
1056
- const c = e ? io(i) : String(i).trim();
1057
- c !== i && delete t[i], t[c] = Mt(s), r[c] = !0;
1056
+ const c = e ? ho(i) : String(i).trim();
1057
+ c !== i && delete t[i], t[c] = Wt(s), r[c] = !0;
1058
1058
  }), this;
1059
1059
  }
1060
1060
  concat(...e) {
@@ -1084,18 +1084,18 @@ class en {
1084
1084
  return t.forEach((s) => r.set(s)), r;
1085
1085
  }
1086
1086
  static accessor(e) {
1087
- const r = (this[gr] = this[gr] = {
1087
+ const r = (this[wr] = this[wr] = {
1088
1088
  accessors: {}
1089
1089
  }).accessors, s = this.prototype;
1090
1090
  function i(o) {
1091
1091
  const c = vt(o);
1092
- r[c] || (oo(s, o), r[c] = !0);
1092
+ r[c] || (po(s, o), r[c] = !0);
1093
1093
  }
1094
1094
  return d.isArray(e) ? e.forEach(i) : i(e), this;
1095
1095
  }
1096
1096
  }
1097
- en.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1098
- d.reduceDescriptors(en.prototype, ({ value: n }, e) => {
1097
+ nn.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1098
+ d.reduceDescriptors(nn.prototype, ({ value: n }, e) => {
1099
1099
  let t = e[0].toUpperCase() + e.slice(1);
1100
1100
  return {
1101
1101
  get: () => n,
@@ -1104,25 +1104,25 @@ d.reduceDescriptors(en.prototype, ({ value: n }, e) => {
1104
1104
  }
1105
1105
  };
1106
1106
  });
1107
- d.freezeMethods(en);
1108
- var He = en;
1109
- function dn(n, e) {
1110
- const t = this || Hn, r = e || t, s = He.from(r.headers);
1107
+ d.freezeMethods(nn);
1108
+ var ze = nn;
1109
+ function mn(n, e) {
1110
+ const t = this || Jn, r = e || t, s = ze.from(r.headers);
1111
1111
  let i = r.data;
1112
1112
  return d.forEach(n, function(c) {
1113
1113
  i = c.call(t, i, s.normalize(), e ? e.status : void 0);
1114
1114
  }), s.normalize(), i;
1115
1115
  }
1116
- function as(n) {
1116
+ function ls(n) {
1117
1117
  return !!(n && n.__CANCEL__);
1118
1118
  }
1119
- function Ct(n, e, t) {
1119
+ function Lt(n, e, t) {
1120
1120
  q.call(this, n == null ? "canceled" : n, q.ERR_CANCELED, e, t), this.name = "CanceledError";
1121
1121
  }
1122
- d.inherits(Ct, q, {
1122
+ d.inherits(Lt, q, {
1123
1123
  __CANCEL__: !0
1124
1124
  });
1125
- function ao(n, e, t) {
1125
+ function yo(n, e, t) {
1126
1126
  const r = t.config.validateStatus;
1127
1127
  !t.status || !r || r(t.status) ? n(t) : e(new q(
1128
1128
  "Request failed with status code " + t.status,
@@ -1132,7 +1132,7 @@ function ao(n, e, t) {
1132
1132
  t
1133
1133
  ));
1134
1134
  }
1135
- var co = Fe.hasStandardBrowserEnv ? {
1135
+ var mo = Fe.hasStandardBrowserEnv ? {
1136
1136
  write(n, e, t, r, s, i) {
1137
1137
  const o = [n + "=" + encodeURIComponent(e)];
1138
1138
  d.isNumber(t) && o.push("expires=" + new Date(t).toGMTString()), d.isString(r) && o.push("path=" + r), d.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
@@ -1153,16 +1153,16 @@ var co = Fe.hasStandardBrowserEnv ? {
1153
1153
  remove() {
1154
1154
  }
1155
1155
  };
1156
- function uo(n) {
1156
+ function go(n) {
1157
1157
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);
1158
1158
  }
1159
- function lo(n, e) {
1159
+ function vo(n, e) {
1160
1160
  return e ? n.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : n;
1161
1161
  }
1162
- function cs(n, e) {
1163
- return n && !uo(e) ? lo(n, e) : e;
1162
+ function fs(n, e) {
1163
+ return n && !go(e) ? vo(n, e) : e;
1164
1164
  }
1165
- var fo = Fe.hasStandardBrowserEnv ? function() {
1165
+ var wo = Fe.hasStandardBrowserEnv ? function() {
1166
1166
  const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a");
1167
1167
  let r;
1168
1168
  function s(i) {
@@ -1187,11 +1187,11 @@ var fo = Fe.hasStandardBrowserEnv ? function() {
1187
1187
  return !0;
1188
1188
  };
1189
1189
  }();
1190
- function ho(n) {
1190
+ function bo(n) {
1191
1191
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(n);
1192
1192
  return e && e[1] || "";
1193
1193
  }
1194
- function po(n, e) {
1194
+ function _o(n, e) {
1195
1195
  n = n || 10;
1196
1196
  const t = new Array(n), r = new Array(n);
1197
1197
  let s = 0, i = 0, o;
@@ -1207,9 +1207,9 @@ function po(n, e) {
1207
1207
  return g ? Math.round(w * 1e3 / g) : void 0;
1208
1208
  };
1209
1209
  }
1210
- function vr(n, e) {
1210
+ function br(n, e) {
1211
1211
  let t = 0;
1212
- const r = po(50, 250);
1212
+ const r = _o(50, 250);
1213
1213
  return (s) => {
1214
1214
  const i = s.loaded, o = s.lengthComputable ? s.total : void 0, c = i - t, l = r(c), a = i <= o;
1215
1215
  t = i;
@@ -1225,11 +1225,11 @@ function vr(n, e) {
1225
1225
  h[e ? "download" : "upload"] = !0, n(h);
1226
1226
  };
1227
1227
  }
1228
- const yo = typeof XMLHttpRequest < "u";
1229
- var mo = yo && function(n) {
1228
+ const Eo = typeof XMLHttpRequest < "u";
1229
+ var Ro = Eo && function(n) {
1230
1230
  return new Promise(function(t, r) {
1231
1231
  let s = n.data;
1232
- const i = He.from(n.headers).normalize();
1232
+ const i = ze.from(n.headers).normalize();
1233
1233
  let { responseType: o, withXSRFToken: c } = n, l;
1234
1234
  function a() {
1235
1235
  n.cancelToken && n.cancelToken.unsubscribe(l), n.signal && n.signal.removeEventListener("abort", l);
@@ -1248,12 +1248,12 @@ var mo = yo && function(n) {
1248
1248
  const p = n.auth.username || "", x = n.auth.password ? unescape(encodeURIComponent(n.auth.password)) : "";
1249
1249
  i.set("Authorization", "Basic " + btoa(p + ":" + x));
1250
1250
  }
1251
- const w = cs(n.baseURL, n.url);
1252
- f.open(n.method.toUpperCase(), rs(w, n.params, n.paramsSerializer), !0), f.timeout = n.timeout;
1251
+ const w = fs(n.baseURL, n.url);
1252
+ f.open(n.method.toUpperCase(), os(w, n.params, n.paramsSerializer), !0), f.timeout = n.timeout;
1253
1253
  function g() {
1254
1254
  if (!f)
1255
1255
  return;
1256
- const p = He.from(
1256
+ const p = ze.from(
1257
1257
  "getAllResponseHeaders" in f && f.getAllResponseHeaders()
1258
1258
  ), y = {
1259
1259
  data: !o || o === "text" || o === "json" ? f.responseText : f.response,
@@ -1263,7 +1263,7 @@ var mo = yo && function(n) {
1263
1263
  config: n,
1264
1264
  request: f
1265
1265
  };
1266
- ao(function(D) {
1266
+ yo(function(D) {
1267
1267
  t(D), a();
1268
1268
  }, function(D) {
1269
1269
  r(D), a();
@@ -1277,23 +1277,23 @@ var mo = yo && function(n) {
1277
1277
  r(new q("Network Error", q.ERR_NETWORK, n, f)), f = null;
1278
1278
  }, f.ontimeout = function() {
1279
1279
  let x = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1280
- const y = n.transitional || ss;
1280
+ const y = n.transitional || as;
1281
1281
  n.timeoutErrorMessage && (x = n.timeoutErrorMessage), r(new q(
1282
1282
  x,
1283
1283
  y.clarifyTimeoutError ? q.ETIMEDOUT : q.ECONNABORTED,
1284
1284
  n,
1285
1285
  f
1286
1286
  )), f = null;
1287
- }, Fe.hasStandardBrowserEnv && (c && d.isFunction(c) && (c = c(n)), c || c !== !1 && fo(w))) {
1288
- const p = n.xsrfHeaderName && n.xsrfCookieName && co.read(n.xsrfCookieName);
1287
+ }, Fe.hasStandardBrowserEnv && (c && d.isFunction(c) && (c = c(n)), c || c !== !1 && wo(w))) {
1288
+ const p = n.xsrfHeaderName && n.xsrfCookieName && mo.read(n.xsrfCookieName);
1289
1289
  p && i.set(n.xsrfHeaderName, p);
1290
1290
  }
1291
1291
  s === void 0 && i.setContentType(null), "setRequestHeader" in f && d.forEach(i.toJSON(), function(x, y) {
1292
1292
  f.setRequestHeader(y, x);
1293
- }), d.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), o && o !== "json" && (f.responseType = n.responseType), typeof n.onDownloadProgress == "function" && f.addEventListener("progress", vr(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", vr(n.onUploadProgress)), (n.cancelToken || n.signal) && (l = (p) => {
1294
- !f || (r(!p || p.type ? new Ct(null, n, f) : p), f.abort(), f = null);
1293
+ }), d.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), o && o !== "json" && (f.responseType = n.responseType), typeof n.onDownloadProgress == "function" && f.addEventListener("progress", br(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", br(n.onUploadProgress)), (n.cancelToken || n.signal) && (l = (p) => {
1294
+ !f || (r(!p || p.type ? new Lt(null, n, f) : p), f.abort(), f = null);
1295
1295
  }, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l)));
1296
- const m = ho(w);
1296
+ const m = bo(w);
1297
1297
  if (m && Fe.protocols.indexOf(m) === -1) {
1298
1298
  r(new q("Unsupported protocol " + m + ":", q.ERR_BAD_REQUEST, n));
1299
1299
  return;
@@ -1301,11 +1301,11 @@ var mo = yo && function(n) {
1301
1301
  f.send(s || null);
1302
1302
  });
1303
1303
  };
1304
- const xn = {
1305
- http: Vi,
1306
- xhr: mo
1304
+ const An = {
1305
+ http: zi,
1306
+ xhr: Ro
1307
1307
  };
1308
- d.forEach(xn, (n, e) => {
1308
+ d.forEach(An, (n, e) => {
1309
1309
  if (n) {
1310
1310
  try {
1311
1311
  Object.defineProperty(n, "name", { value: e });
@@ -1314,8 +1314,8 @@ d.forEach(xn, (n, e) => {
1314
1314
  Object.defineProperty(n, "adapterName", { value: e });
1315
1315
  }
1316
1316
  });
1317
- const wr = (n) => `- ${n}`, go = (n) => d.isFunction(n) || n === null || n === !1;
1318
- var us = {
1317
+ const _r = (n) => `- ${n}`, So = (n) => d.isFunction(n) || n === null || n === !1;
1318
+ var hs = {
1319
1319
  getAdapter: (n) => {
1320
1320
  n = d.isArray(n) ? n : [n];
1321
1321
  const { length: e } = n;
@@ -1324,7 +1324,7 @@ var us = {
1324
1324
  for (let i = 0; i < e; i++) {
1325
1325
  t = n[i];
1326
1326
  let o;
1327
- if (r = t, !go(t) && (r = xn[(o = String(t)).toLowerCase()], r === void 0))
1327
+ if (r = t, !So(t) && (r = An[(o = String(t)).toLowerCase()], r === void 0))
1328
1328
  throw new q(`Unknown adapter '${o}'`);
1329
1329
  if (r)
1330
1330
  break;
@@ -1335,8 +1335,8 @@ var us = {
1335
1335
  ([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1336
1336
  );
1337
1337
  let o = e ? i.length > 1 ? `since :
1338
- ` + i.map(wr).join(`
1339
- `) : " " + wr(i[0]) : "as no adapter specified";
1338
+ ` + i.map(_r).join(`
1339
+ `) : " " + _r(i[0]) : "as no adapter specified";
1340
1340
  throw new q(
1341
1341
  "There is no suitable adapter to dispatch the request " + o,
1342
1342
  "ERR_NOT_SUPPORT"
@@ -1344,31 +1344,31 @@ var us = {
1344
1344
  }
1345
1345
  return r;
1346
1346
  },
1347
- adapters: xn
1347
+ adapters: An
1348
1348
  };
1349
- function pn(n) {
1349
+ function gn(n) {
1350
1350
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
1351
- throw new Ct(null, n);
1351
+ throw new Lt(null, n);
1352
1352
  }
1353
- function br(n) {
1354
- return pn(n), n.headers = He.from(n.headers), n.data = dn.call(
1353
+ function Er(n) {
1354
+ return gn(n), n.headers = ze.from(n.headers), n.data = mn.call(
1355
1355
  n,
1356
1356
  n.transformRequest
1357
- ), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), us.getAdapter(n.adapter || Hn.adapter)(n).then(function(r) {
1358
- return pn(n), r.data = dn.call(
1357
+ ), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), hs.getAdapter(n.adapter || Jn.adapter)(n).then(function(r) {
1358
+ return gn(n), r.data = mn.call(
1359
1359
  n,
1360
1360
  n.transformResponse,
1361
1361
  r
1362
- ), r.headers = He.from(r.headers), r;
1362
+ ), r.headers = ze.from(r.headers), r;
1363
1363
  }, function(r) {
1364
- return as(r) || (pn(n), r && r.response && (r.response.data = dn.call(
1364
+ return ls(r) || (gn(n), r && r.response && (r.response.data = mn.call(
1365
1365
  n,
1366
1366
  n.transformResponse,
1367
1367
  r.response
1368
- ), r.response.headers = He.from(r.response.headers))), Promise.reject(r);
1368
+ ), r.response.headers = ze.from(r.response.headers))), Promise.reject(r);
1369
1369
  });
1370
1370
  }
1371
- const _r = (n) => n instanceof He ? n.toJSON() : n;
1371
+ const Rr = (n) => n instanceof ze ? n.toJSON() : n;
1372
1372
  function dt(n, e) {
1373
1373
  e = e || {};
1374
1374
  const t = {};
@@ -1428,23 +1428,23 @@ function dt(n, e) {
1428
1428
  socketPath: o,
1429
1429
  responseEncoding: o,
1430
1430
  validateStatus: c,
1431
- headers: (a, h) => s(_r(a), _r(h), !0)
1431
+ headers: (a, h) => s(Rr(a), Rr(h), !0)
1432
1432
  };
1433
1433
  return d.forEach(Object.keys(Object.assign({}, n, e)), function(h) {
1434
1434
  const f = l[h] || s, w = f(n[h], e[h], h);
1435
1435
  d.isUndefined(w) && f !== c || (t[h] = w);
1436
1436
  }), t;
1437
1437
  }
1438
- const ls = "1.6.7", zn = {};
1438
+ const ds = "1.6.7", Kn = {};
1439
1439
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
1440
- zn[n] = function(r) {
1440
+ Kn[n] = function(r) {
1441
1441
  return typeof r === n || "a" + (e < 1 ? "n " : " ") + n;
1442
1442
  };
1443
1443
  });
1444
- const Er = {};
1445
- zn.transitional = function(e, t, r) {
1444
+ const Sr = {};
1445
+ Kn.transitional = function(e, t, r) {
1446
1446
  function s(i, o) {
1447
- return "[Axios v" + ls + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1447
+ return "[Axios v" + ds + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1448
1448
  }
1449
1449
  return (i, o, c) => {
1450
1450
  if (e === !1)
@@ -1452,7 +1452,7 @@ zn.transitional = function(e, t, r) {
1452
1452
  s(o, " has been removed" + (t ? " in " + t : "")),
1453
1453
  q.ERR_DEPRECATED
1454
1454
  );
1455
- return t && !Er[o] && (Er[o] = !0, console.warn(
1455
+ return t && !Sr[o] && (Sr[o] = !0, console.warn(
1456
1456
  s(
1457
1457
  o,
1458
1458
  " has been deprecated since v" + t + " and will be removed in the near future"
@@ -1460,7 +1460,7 @@ zn.transitional = function(e, t, r) {
1460
1460
  )), e ? e(i, o, c) : !0;
1461
1461
  };
1462
1462
  };
1463
- function vo(n, e, t) {
1463
+ function To(n, e, t) {
1464
1464
  if (typeof n != "object")
1465
1465
  throw new q("options must be an object", q.ERR_BAD_OPTION_VALUE);
1466
1466
  const r = Object.keys(n);
@@ -1477,16 +1477,16 @@ function vo(n, e, t) {
1477
1477
  throw new q("Unknown option " + i, q.ERR_BAD_OPTION);
1478
1478
  }
1479
1479
  }
1480
- var An = {
1481
- assertOptions: vo,
1482
- validators: zn
1480
+ var Dn = {
1481
+ assertOptions: To,
1482
+ validators: Kn
1483
1483
  };
1484
- const Ge = An.validators;
1485
- class Jt {
1484
+ const Ge = Dn.validators;
1485
+ class Yt {
1486
1486
  constructor(e) {
1487
1487
  this.defaults = e, this.interceptors = {
1488
- request: new mr(),
1489
- response: new mr()
1488
+ request: new vr(),
1489
+ response: new vr()
1490
1490
  };
1491
1491
  }
1492
1492
  async request(e, t) {
@@ -1506,13 +1506,13 @@ class Jt {
1506
1506
  _request(e, t) {
1507
1507
  typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = dt(this.defaults, t);
1508
1508
  const { transitional: r, paramsSerializer: s, headers: i } = t;
1509
- r !== void 0 && An.assertOptions(r, {
1509
+ r !== void 0 && Dn.assertOptions(r, {
1510
1510
  silentJSONParsing: Ge.transitional(Ge.boolean),
1511
1511
  forcedJSONParsing: Ge.transitional(Ge.boolean),
1512
1512
  clarifyTimeoutError: Ge.transitional(Ge.boolean)
1513
1513
  }, !1), s != null && (d.isFunction(s) ? t.paramsSerializer = {
1514
1514
  serialize: s
1515
- } : An.assertOptions(s, {
1515
+ } : Dn.assertOptions(s, {
1516
1516
  encode: Ge.function,
1517
1517
  serialize: Ge.function
1518
1518
  }, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase();
@@ -1525,7 +1525,7 @@ class Jt {
1525
1525
  (m) => {
1526
1526
  delete i[m];
1527
1527
  }
1528
- ), t.headers = He.concat(o, i);
1528
+ ), t.headers = ze.concat(o, i);
1529
1529
  const c = [];
1530
1530
  let l = !0;
1531
1531
  this.interceptors.request.forEach(function(p) {
@@ -1537,7 +1537,7 @@ class Jt {
1537
1537
  });
1538
1538
  let h, f = 0, w;
1539
1539
  if (!l) {
1540
- const m = [br.bind(this), void 0];
1540
+ const m = [Er.bind(this), void 0];
1541
1541
  for (m.unshift.apply(m, c), m.push.apply(m, a), w = m.length, h = Promise.resolve(t); f < w; )
1542
1542
  h = h.then(m[f++], m[f++]);
1543
1543
  return h;
@@ -1554,7 +1554,7 @@ class Jt {
1554
1554
  }
1555
1555
  }
1556
1556
  try {
1557
- h = br.call(this, g);
1557
+ h = Er.call(this, g);
1558
1558
  } catch (m) {
1559
1559
  return Promise.reject(m);
1560
1560
  }
@@ -1564,12 +1564,12 @@ class Jt {
1564
1564
  }
1565
1565
  getUri(e) {
1566
1566
  e = dt(this.defaults, e);
1567
- const t = cs(e.baseURL, e.url);
1568
- return rs(t, e.params, e.paramsSerializer);
1567
+ const t = fs(e.baseURL, e.url);
1568
+ return os(t, e.params, e.paramsSerializer);
1569
1569
  }
1570
1570
  }
1571
1571
  d.forEach(["delete", "get", "head", "options"], function(e) {
1572
- Jt.prototype[e] = function(t, r) {
1572
+ Yt.prototype[e] = function(t, r) {
1573
1573
  return this.request(dt(r || {}, {
1574
1574
  method: e,
1575
1575
  url: t,
@@ -1590,10 +1590,10 @@ d.forEach(["post", "put", "patch"], function(e) {
1590
1590
  }));
1591
1591
  };
1592
1592
  }
1593
- Jt.prototype[e] = t(), Jt.prototype[e + "Form"] = t(!0);
1593
+ Yt.prototype[e] = t(), Yt.prototype[e + "Form"] = t(!0);
1594
1594
  });
1595
- var $t = Jt;
1596
- class Jn {
1595
+ var Ht = Yt;
1596
+ class Yn {
1597
1597
  constructor(e) {
1598
1598
  if (typeof e != "function")
1599
1599
  throw new TypeError("executor must be a function.");
@@ -1618,7 +1618,7 @@ class Jn {
1618
1618
  r.unsubscribe(i);
1619
1619
  }, o;
1620
1620
  }, e(function(i, o, c) {
1621
- r.reason || (r.reason = new Ct(i, o, c), t(r.reason));
1621
+ r.reason || (r.reason = new Lt(i, o, c), t(r.reason));
1622
1622
  });
1623
1623
  }
1624
1624
  throwIfRequested() {
@@ -1641,23 +1641,23 @@ class Jn {
1641
1641
  static source() {
1642
1642
  let e;
1643
1643
  return {
1644
- token: new Jn(function(s) {
1644
+ token: new Yn(function(s) {
1645
1645
  e = s;
1646
1646
  }),
1647
1647
  cancel: e
1648
1648
  };
1649
1649
  }
1650
1650
  }
1651
- var wo = Jn;
1652
- function bo(n) {
1651
+ var Oo = Yn;
1652
+ function xo(n) {
1653
1653
  return function(t) {
1654
1654
  return n.apply(null, t);
1655
1655
  };
1656
1656
  }
1657
- function _o(n) {
1657
+ function Co(n) {
1658
1658
  return d.isObject(n) && n.isAxiosError === !0;
1659
1659
  }
1660
- const Cn = {
1660
+ const Ln = {
1661
1661
  Continue: 100,
1662
1662
  SwitchingProtocols: 101,
1663
1663
  Processing: 102,
@@ -1722,49 +1722,49 @@ const Cn = {
1722
1722
  NotExtended: 510,
1723
1723
  NetworkAuthenticationRequired: 511
1724
1724
  };
1725
- Object.entries(Cn).forEach(([n, e]) => {
1726
- Cn[e] = n;
1725
+ Object.entries(Ln).forEach(([n, e]) => {
1726
+ Ln[e] = n;
1727
1727
  });
1728
- var Eo = Cn;
1729
- function fs(n) {
1730
- const e = new $t(n), t = Hr($t.prototype.request, e);
1731
- return d.extend(t, $t.prototype, e, { allOwnKeys: !0 }), d.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(s) {
1732
- return fs(dt(n, s));
1728
+ var Ao = Ln;
1729
+ function ps(n) {
1730
+ const e = new Ht(n), t = Kr(Ht.prototype.request, e);
1731
+ return d.extend(t, Ht.prototype, e, { allOwnKeys: !0 }), d.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(s) {
1732
+ return ps(dt(n, s));
1733
1733
  }, t;
1734
1734
  }
1735
- const ce = fs(Hn);
1736
- ce.Axios = $t;
1737
- ce.CanceledError = Ct;
1738
- ce.CancelToken = wo;
1739
- ce.isCancel = as;
1740
- ce.VERSION = ls;
1741
- ce.toFormData = Zt;
1742
- ce.AxiosError = q;
1743
- ce.Cancel = ce.CanceledError;
1744
- ce.all = function(e) {
1735
+ const ue = ps(Jn);
1736
+ ue.Axios = Ht;
1737
+ ue.CanceledError = Lt;
1738
+ ue.CancelToken = Oo;
1739
+ ue.isCancel = ls;
1740
+ ue.VERSION = ds;
1741
+ ue.toFormData = tn;
1742
+ ue.AxiosError = q;
1743
+ ue.Cancel = ue.CanceledError;
1744
+ ue.all = function(e) {
1745
1745
  return Promise.all(e);
1746
1746
  };
1747
- ce.spread = bo;
1748
- ce.isAxiosError = _o;
1749
- ce.mergeConfig = dt;
1750
- ce.AxiosHeaders = He;
1751
- ce.formToJSON = (n) => os(d.isHTMLForm(n) ? new FormData(n) : n);
1752
- ce.getAdapter = us.getAdapter;
1753
- ce.HttpStatusCode = Eo;
1754
- ce.default = ce;
1755
- var Ro = ce;
1747
+ ue.spread = xo;
1748
+ ue.isAxiosError = Co;
1749
+ ue.mergeConfig = dt;
1750
+ ue.AxiosHeaders = ze;
1751
+ ue.formToJSON = (n) => us(d.isHTMLForm(n) ? new FormData(n) : n);
1752
+ ue.getAdapter = hs.getAdapter;
1753
+ ue.HttpStatusCode = Ao;
1754
+ ue.default = ue;
1755
+ var Do = ue;
1756
1756
  Object.defineProperty(at, "__esModule", { value: !0 });
1757
1757
  at.getRequestHeaders = at.getAxiosClient = void 0;
1758
- var So = Ro;
1759
- function To(n, e, t, r) {
1760
- return So.default.create({
1758
+ var Lo = Do;
1759
+ function ko(n, e, t, r) {
1760
+ return Lo.default.create({
1761
1761
  baseURL: n,
1762
- headers: hs(e, r, t),
1762
+ headers: ys(e, r, t),
1763
1763
  withCredentials: !0
1764
1764
  });
1765
1765
  }
1766
- at.getAxiosClient = To;
1767
- function hs(n, e, t) {
1766
+ at.getAxiosClient = ko;
1767
+ function ys(n, e, t) {
1768
1768
  n === void 0 && (n = !1);
1769
1769
  var r = {
1770
1770
  Accept: "application/json",
@@ -1772,7 +1772,7 @@ function hs(n, e, t) {
1772
1772
  };
1773
1773
  return n && e && t && (r.Authorization = "".concat(e, " ").concat(t())), typeof window < "u" && typeof document < "u" && (window.location && (r["X-Frappe-Site-Name"] = window.location.hostname), window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (r["X-Frappe-CSRF-Token"] = window.csrf_token)), r;
1774
1774
  }
1775
- at.getRequestHeaders = hs;
1775
+ at.getRequestHeaders = ys;
1776
1776
  var ht = H && H.__assign || function() {
1777
1777
  return ht = Object.assign || function(n) {
1778
1778
  for (var e, t = 1, r = arguments.length; t < r; t++) {
@@ -1782,7 +1782,7 @@ var ht = H && H.__assign || function() {
1782
1782
  }
1783
1783
  return n;
1784
1784
  }, ht.apply(this, arguments);
1785
- }, Oo = H && H.__awaiter || function(n, e, t, r) {
1785
+ }, No = H && H.__awaiter || function(n, e, t, r) {
1786
1786
  function s(i) {
1787
1787
  return i instanceof t ? i : new t(function(o) {
1788
1788
  o(i);
@@ -1808,7 +1808,7 @@ var ht = H && H.__assign || function() {
1808
1808
  }
1809
1809
  a((r = r.apply(n, e || [])).next());
1810
1810
  });
1811
- }, xo = H && H.__generator || function(n, e) {
1811
+ }, Po = H && H.__generator || function(n, e) {
1812
1812
  var t = { label: 0, sent: function() {
1813
1813
  if (i[0] & 1)
1814
1814
  throw i[1];
@@ -1873,16 +1873,16 @@ var ht = H && H.__assign || function() {
1873
1873
  return { value: a[0] ? a[1] : void 0, done: !0 };
1874
1874
  }
1875
1875
  };
1876
- Object.defineProperty(xt, "__esModule", { value: !0 });
1877
- xt.FrappeFileUpload = void 0;
1878
- var Ao = at, Co = function() {
1876
+ Object.defineProperty(At, "__esModule", { value: !0 });
1877
+ At.FrappeFileUpload = void 0;
1878
+ var Fo = at, Bo = function() {
1879
1879
  function n(e, t, r, s, i) {
1880
1880
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
1881
1881
  }
1882
1882
  return n.prototype.uploadFile = function(e, t, r, s) {
1883
- return s === void 0 && (s = "upload_file"), Oo(this, void 0, void 0, function() {
1883
+ return s === void 0 && (s = "upload_file"), No(this, void 0, void 0, function() {
1884
1884
  var i, o, c, l, a, h, f, w;
1885
- return xo(this, function(g) {
1885
+ return Po(this, function(g) {
1886
1886
  return i = new FormData(), e && i.append("file", e, e.name), o = t.isPrivate, c = t.folder, l = t.file_url, a = t.doctype, h = t.docname, f = t.fieldname, w = t.otherData, o && i.append("is_private", "1"), c && i.append("folder", c), l && i.append("file_url", l), a && h && (i.append("doctype", a), i.append("docname", h), f && i.append("fieldname", f)), w && Object.keys(w).forEach(function(m) {
1887
1887
  var p = w[m];
1888
1888
  i.append(m, p);
@@ -1890,7 +1890,7 @@ var Ao = at, Co = function() {
1890
1890
  onUploadProgress: function(m) {
1891
1891
  r && r(m.loaded, m.total, m);
1892
1892
  },
1893
- headers: ht(ht({}, (0, Ao.getRequestHeaders)(this.useToken, this.tokenType, this.token)), { "Content-Type": "multipart/form-data" })
1893
+ headers: ht(ht({}, (0, Fo.getRequestHeaders)(this.useToken, this.tokenType, this.token)), { "Content-Type": "multipart/form-data" })
1894
1894
  }).catch(function(m) {
1895
1895
  var p, x;
1896
1896
  throw ht(ht({}, m.response.data), { httpStatus: m.response.status, httpStatusText: m.response.statusText, message: (p = m.response.data.message) !== null && p !== void 0 ? p : "There was an error while uploading the file.", exception: (x = m.response.data.exception) !== null && x !== void 0 ? x : "" });
@@ -1899,13 +1899,13 @@ var Ao = at, Co = function() {
1899
1899
  });
1900
1900
  }, n;
1901
1901
  }();
1902
- xt.FrappeFileUpload = Co;
1903
- var Rr;
1904
- function Do() {
1905
- if (Rr)
1902
+ At.FrappeFileUpload = Bo;
1903
+ var Tr;
1904
+ function Io() {
1905
+ if (Tr)
1906
1906
  return gt;
1907
- Rr = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.FrappeApp = void 0;
1908
- var n = ds(), e = Tt, t = Ot, r = xt, s = at, i = function() {
1907
+ Tr = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.FrappeApp = void 0;
1908
+ var n = ms(), e = xt, t = Ct, r = At, s = at, i = function() {
1909
1909
  function o(c, l, a) {
1910
1910
  var h, f;
1911
1911
  this.url = c, this.name = a != null ? a : "FrappeApp", this.useToken = (h = l == null ? void 0 : l.useToken) !== null && h !== void 0 ? h : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (f = l == null ? void 0 : l.type) !== null && f !== void 0 ? f : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
@@ -1922,7 +1922,7 @@ function Do() {
1922
1922
  }();
1923
1923
  return gt.FrappeApp = i, gt;
1924
1924
  }
1925
- var tn = {}, Ne = H && H.__assign || function() {
1925
+ var rn = {}, Ne = H && H.__assign || function() {
1926
1926
  return Ne = Object.assign || function(n) {
1927
1927
  for (var e, t = 1, r = arguments.length; t < r; t++) {
1928
1928
  e = arguments[t];
@@ -1931,7 +1931,7 @@ var tn = {}, Ne = H && H.__assign || function() {
1931
1931
  }
1932
1932
  return n;
1933
1933
  }, Ne.apply(this, arguments);
1934
- }, Nt = H && H.__awaiter || function(n, e, t, r) {
1934
+ }, Ft = H && H.__awaiter || function(n, e, t, r) {
1935
1935
  function s(i) {
1936
1936
  return i instanceof t ? i : new t(function(o) {
1937
1937
  o(i);
@@ -1957,7 +1957,7 @@ var tn = {}, Ne = H && H.__assign || function() {
1957
1957
  }
1958
1958
  a((r = r.apply(n, e || [])).next());
1959
1959
  });
1960
- }, Pt = H && H.__generator || function(n, e) {
1960
+ }, Bt = H && H.__generator || function(n, e) {
1961
1961
  var t = { label: 0, sent: function() {
1962
1962
  if (i[0] & 1)
1963
1963
  throw i[1];
@@ -2022,15 +2022,15 @@ var tn = {}, Ne = H && H.__assign || function() {
2022
2022
  return { value: a[0] ? a[1] : void 0, done: !0 };
2023
2023
  }
2024
2024
  };
2025
- Object.defineProperty(tn, "__esModule", { value: !0 });
2026
- tn.FrappeAuth = void 0;
2027
- var Lo = function() {
2025
+ Object.defineProperty(rn, "__esModule", { value: !0 });
2026
+ rn.FrappeAuth = void 0;
2027
+ var Uo = function() {
2028
2028
  function n(e, t, r, s, i) {
2029
2029
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
2030
2030
  }
2031
2031
  return n.prototype.loginWithUsernamePassword = function(e) {
2032
- return Nt(this, void 0, void 0, function() {
2033
- return Pt(this, function(t) {
2032
+ return Ft(this, void 0, void 0, function() {
2033
+ return Bt(this, function(t) {
2034
2034
  return [2, this.axios.post("/api/method/login", {
2035
2035
  usr: e.username,
2036
2036
  pwd: e.password,
@@ -2046,8 +2046,8 @@ var Lo = function() {
2046
2046
  });
2047
2047
  });
2048
2048
  }, n.prototype.getLoggedInUser = function() {
2049
- return Nt(this, void 0, void 0, function() {
2050
- return Pt(this, function(e) {
2049
+ return Ft(this, void 0, void 0, function() {
2050
+ return Bt(this, function(e) {
2051
2051
  return [2, this.axios.get("/api/method/frappe.auth.get_logged_user").then(function(t) {
2052
2052
  return t.data.message;
2053
2053
  }).catch(function(t) {
@@ -2057,8 +2057,8 @@ var Lo = function() {
2057
2057
  });
2058
2058
  });
2059
2059
  }, n.prototype.logout = function() {
2060
- return Nt(this, void 0, void 0, function() {
2061
- return Pt(this, function(e) {
2060
+ return Ft(this, void 0, void 0, function() {
2061
+ return Bt(this, function(e) {
2062
2062
  return [2, this.axios.post("/api/method/logout", {}).then(function() {
2063
2063
  }).catch(function(t) {
2064
2064
  var r, s;
@@ -2067,8 +2067,8 @@ var Lo = function() {
2067
2067
  });
2068
2068
  });
2069
2069
  }, n.prototype.forgetPassword = function(e) {
2070
- return Nt(this, void 0, void 0, function() {
2071
- return Pt(this, function(t) {
2070
+ return Ft(this, void 0, void 0, function() {
2071
+ return Bt(this, function(t) {
2072
2072
  return [2, this.axios.post("/", {
2073
2073
  cmd: "frappe.core.doctype.user.user.reset_password",
2074
2074
  user: e
@@ -2081,10 +2081,10 @@ var Lo = function() {
2081
2081
  });
2082
2082
  }, n;
2083
2083
  }();
2084
- tn.FrappeAuth = Lo;
2085
- var Sr;
2086
- function ds() {
2087
- return Sr || (Sr = 1, function(n) {
2084
+ rn.FrappeAuth = Uo;
2085
+ var Or;
2086
+ function ms() {
2087
+ return Or || (Or = 1, function(n) {
2088
2088
  var e = H && H.__createBinding || (Object.create ? function(r, s, i, o) {
2089
2089
  o === void 0 && (o = i);
2090
2090
  var c = Object.getOwnPropertyDescriptor(s, i);
@@ -2097,10 +2097,10 @@ function ds() {
2097
2097
  for (var i in r)
2098
2098
  i !== "default" && !Object.prototype.hasOwnProperty.call(s, i) && e(s, r, i);
2099
2099
  };
2100
- Object.defineProperty(n, "__esModule", { value: !0 }), t(Do(), n), t(tn, n), t(Ot, n), t(xt, n), t(Tt, n);
2101
- }(ln)), ln;
2100
+ Object.defineProperty(n, "__esModule", { value: !0 }), t(Io(), n), t(rn, n), t(Ct, n), t(At, n), t(xt, n);
2101
+ }(dn)), dn;
2102
2102
  }
2103
- var ko = ds(), nn = { exports: {} }, yn = {};
2103
+ var Vo = ms(), sn = { exports: {} }, vn = {};
2104
2104
  /**
2105
2105
  * @license React
2106
2106
  * use-sync-external-store-shim.production.min.js
@@ -2110,12 +2110,12 @@ var ko = ds(), nn = { exports: {} }, yn = {};
2110
2110
  * This source code is licensed under the MIT license found in the
2111
2111
  * LICENSE file in the root directory of this source tree.
2112
2112
  */
2113
- var Tr;
2114
- function No() {
2115
- if (Tr)
2116
- return yn;
2117
- Tr = 1;
2118
- var n = Ze;
2113
+ var xr;
2114
+ function qo() {
2115
+ if (xr)
2116
+ return vn;
2117
+ xr = 1;
2118
+ var n = et;
2119
2119
  function e(f, w) {
2120
2120
  return f === w && (f !== 0 || 1 / f === 1 / w) || f !== f && w !== w;
2121
2121
  }
@@ -2144,9 +2144,9 @@ function No() {
2144
2144
  return w();
2145
2145
  }
2146
2146
  var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : c;
2147
- return yn.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, yn;
2147
+ return vn.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, vn;
2148
2148
  }
2149
- var mn = {};
2149
+ var wn = {};
2150
2150
  /**
2151
2151
  * @license React
2152
2152
  * use-sync-external-store-shim.development.js
@@ -2156,50 +2156,50 @@ var mn = {};
2156
2156
  * This source code is licensed under the MIT license found in the
2157
2157
  * LICENSE file in the root directory of this source tree.
2158
2158
  */
2159
- var Or;
2160
- function Po() {
2161
- return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
2159
+ var Cr;
2160
+ function jo() {
2161
+ return Cr || (Cr = 1, process.env.NODE_ENV !== "production" && function() {
2162
2162
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2163
- var n = Ze, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2163
+ var n = et, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2164
2164
  function t(D) {
2165
2165
  {
2166
- for (var C = arguments.length, L = new Array(C > 1 ? C - 1 : 0), k = 1; k < C; k++)
2166
+ for (var A = arguments.length, L = new Array(A > 1 ? A - 1 : 0), k = 1; k < A; k++)
2167
2167
  L[k - 1] = arguments[k];
2168
2168
  r("error", D, L);
2169
2169
  }
2170
2170
  }
2171
- function r(D, C, L) {
2171
+ function r(D, A, L) {
2172
2172
  {
2173
2173
  var k = e.ReactDebugCurrentFrame, se = k.getStackAddendum();
2174
- se !== "" && (C += "%s", L = L.concat([se]));
2174
+ se !== "" && (A += "%s", L = L.concat([se]));
2175
2175
  var _ = L.map(function(j) {
2176
2176
  return String(j);
2177
2177
  });
2178
- _.unshift("Warning: " + C), Function.prototype.apply.call(console[D], console, _);
2178
+ _.unshift("Warning: " + A), Function.prototype.apply.call(console[D], console, _);
2179
2179
  }
2180
2180
  }
2181
- function s(D, C) {
2182
- return D === C && (D !== 0 || 1 / D === 1 / C) || D !== D && C !== C;
2181
+ function s(D, A) {
2182
+ return D === A && (D !== 0 || 1 / D === 1 / A) || D !== D && A !== A;
2183
2183
  }
2184
2184
  var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, h = !1, f = !1;
2185
- function w(D, C, L) {
2185
+ function w(D, A, L) {
2186
2186
  h || n.startTransition !== void 0 && (h = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
2187
- var k = C();
2187
+ var k = A();
2188
2188
  if (!f) {
2189
- var se = C();
2189
+ var se = A();
2190
2190
  i(k, se) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
2191
2191
  }
2192
2192
  var _ = o({
2193
2193
  inst: {
2194
2194
  value: k,
2195
- getSnapshot: C
2195
+ getSnapshot: A
2196
2196
  }
2197
2197
  }), j = _[0].inst, N = _[1];
2198
2198
  return l(function() {
2199
- j.value = k, j.getSnapshot = C, g(j) && N({
2199
+ j.value = k, j.getSnapshot = A, g(j) && N({
2200
2200
  inst: j
2201
2201
  });
2202
- }, [D, k, C]), c(function() {
2202
+ }, [D, k, A]), c(function() {
2203
2203
  g(j) && N({
2204
2204
  inst: j
2205
2205
  });
@@ -2212,119 +2212,119 @@ function Po() {
2212
2212
  }, [D]), a(k), k;
2213
2213
  }
2214
2214
  function g(D) {
2215
- var C = D.getSnapshot, L = D.value;
2215
+ var A = D.getSnapshot, L = D.value;
2216
2216
  try {
2217
- var k = C();
2217
+ var k = A();
2218
2218
  return !i(L, k);
2219
2219
  } catch {
2220
2220
  return !0;
2221
2221
  }
2222
2222
  }
2223
- function m(D, C, L) {
2224
- return C();
2223
+ function m(D, A, L) {
2224
+ return A();
2225
2225
  }
2226
- var p = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", x = !p, y = x ? m : w, A = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : y;
2227
- mn.useSyncExternalStore = A, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2228
- }()), mn;
2226
+ var p = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", x = !p, y = x ? m : w, C = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : y;
2227
+ wn.useSyncExternalStore = C, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2228
+ }()), wn;
2229
2229
  }
2230
2230
  (function(n) {
2231
- process.env.NODE_ENV === "production" ? n.exports = No() : n.exports = Po();
2232
- })(nn);
2231
+ process.env.NODE_ENV === "production" ? n.exports = qo() : n.exports = jo();
2232
+ })(sn);
2233
2233
  const Qe = () => {
2234
- }, ue = Qe(), gn = Object, E = (n) => n === ue, _e = (n) => typeof n == "function", ze = (n, e) => ({
2234
+ }, ae = Qe(), Rt = Object, E = (n) => n === ae, be = (n) => typeof n == "function", Ie = (n, e) => ({
2235
2235
  ...n,
2236
2236
  ...e
2237
- }), Fo = (n) => _e(n.then), Ft = /* @__PURE__ */ new WeakMap();
2238
- let Bo = 0;
2239
- const St = (n) => {
2237
+ }), Mo = (n) => be(n.then), It = /* @__PURE__ */ new WeakMap();
2238
+ let $o = 0;
2239
+ const Ot = (n) => {
2240
2240
  const e = typeof n, t = n && n.constructor, r = t == Date;
2241
2241
  let s, i;
2242
- if (gn(n) === n && !r && t != RegExp) {
2243
- if (s = Ft.get(n), s)
2242
+ if (Rt(n) === n && !r && t != RegExp) {
2243
+ if (s = It.get(n), s)
2244
2244
  return s;
2245
- if (s = ++Bo + "~", Ft.set(n, s), t == Array) {
2245
+ if (s = ++$o + "~", It.set(n, s), t == Array) {
2246
2246
  for (s = "@", i = 0; i < n.length; i++)
2247
- s += St(n[i]) + ",";
2248
- Ft.set(n, s);
2247
+ s += Ot(n[i]) + ",";
2248
+ It.set(n, s);
2249
2249
  }
2250
- if (t == gn) {
2250
+ if (t == Rt) {
2251
2251
  s = "#";
2252
- const o = gn.keys(n).sort();
2252
+ const o = Rt.keys(n).sort();
2253
2253
  for (; !E(i = o.pop()); )
2254
- E(n[i]) || (s += i + ":" + St(n[i]) + ",");
2255
- Ft.set(n, s);
2254
+ E(n[i]) || (s += i + ":" + Ot(n[i]) + ",");
2255
+ It.set(n, s);
2256
2256
  }
2257
2257
  } else
2258
2258
  s = r ? n.toJSON() : e == "symbol" ? n.toString() : e == "string" ? JSON.stringify(n) : "" + n;
2259
2259
  return s;
2260
- }, De = /* @__PURE__ */ new WeakMap(), vn = {}, Bt = {}, Kn = "undefined", rn = typeof window != Kn, Dn = typeof document != Kn, Io = () => rn && typeof window.requestAnimationFrame != Kn, We = (n, e) => {
2260
+ }, De = /* @__PURE__ */ new WeakMap(), bn = {}, Ut = {}, Gn = "undefined", on = typeof window != Gn, kn = typeof document != Gn, Wo = () => on && typeof window.requestAnimationFrame != Gn, He = (n, e) => {
2261
2261
  const t = De.get(n);
2262
2262
  return [
2263
- () => !E(e) && n.get(e) || vn,
2263
+ () => !E(e) && n.get(e) || bn,
2264
2264
  (r) => {
2265
2265
  if (!E(e)) {
2266
2266
  const s = n.get(e);
2267
- e in Bt || (Bt[e] = s), t[5](e, ze(s, r), s || vn);
2267
+ e in Ut || (Ut[e] = s), t[5](e, Ie(s, r), s || bn);
2268
2268
  }
2269
2269
  },
2270
2270
  t[6],
2271
- () => !E(e) && e in Bt ? Bt[e] : !E(e) && n.get(e) || vn
2271
+ () => !E(e) && e in Ut ? Ut[e] : !E(e) && n.get(e) || bn
2272
2272
  ];
2273
2273
  };
2274
- let Ln = !0;
2275
- const Uo = () => Ln, [kn, Nn] = rn && window.addEventListener ? [
2274
+ let Nn = !0;
2275
+ const Ho = () => Nn, [Pn, Fn] = on && window.addEventListener ? [
2276
2276
  window.addEventListener.bind(window),
2277
2277
  window.removeEventListener.bind(window)
2278
2278
  ] : [
2279
2279
  Qe,
2280
2280
  Qe
2281
- ], Vo = () => {
2282
- const n = Dn && document.visibilityState;
2281
+ ], zo = () => {
2282
+ const n = kn && document.visibilityState;
2283
2283
  return E(n) || n !== "hidden";
2284
- }, qo = (n) => (Dn && document.addEventListener("visibilitychange", n), kn("focus", n), () => {
2285
- Dn && document.removeEventListener("visibilitychange", n), Nn("focus", n);
2286
- }), jo = (n) => {
2284
+ }, Jo = (n) => (kn && document.addEventListener("visibilitychange", n), Pn("focus", n), () => {
2285
+ kn && document.removeEventListener("visibilitychange", n), Fn("focus", n);
2286
+ }), Ko = (n) => {
2287
2287
  const e = () => {
2288
- Ln = !0, n();
2288
+ Nn = !0, n();
2289
2289
  }, t = () => {
2290
- Ln = !1;
2290
+ Nn = !1;
2291
2291
  };
2292
- return kn("online", e), kn("offline", t), () => {
2293
- Nn("online", e), Nn("offline", t);
2292
+ return Pn("online", e), Pn("offline", t), () => {
2293
+ Fn("online", e), Fn("offline", t);
2294
2294
  };
2295
- }, Mo = {
2296
- isOnline: Uo,
2297
- isVisible: Vo
2298
- }, $o = {
2299
- initFocus: qo,
2300
- initReconnect: jo
2301
- }, Kt = !Ze.useId, ct = !rn || "Deno" in window, ps = (n) => Io() ? window.requestAnimationFrame(n) : setTimeout(n, 1), ot = ct ? pt : ni, wn = typeof navigator < "u" && navigator.connection, xr = !ct && wn && ([
2295
+ }, Yo = {
2296
+ isOnline: Ho,
2297
+ isVisible: zo
2298
+ }, Go = {
2299
+ initFocus: Jo,
2300
+ initReconnect: Ko
2301
+ }, Gt = !et.useId, ct = !on || "Deno" in window, gs = (n) => Wo() ? window.requestAnimationFrame(n) : setTimeout(n, 1), Ze = ct ? pt : ui, _n = typeof navigator < "u" && navigator.connection, Ar = !ct && _n && ([
2302
2302
  "slow-2g",
2303
2303
  "2g"
2304
- ].includes(wn.effectiveType) || wn.saveData), ut = (n) => {
2305
- if (_e(n))
2304
+ ].includes(_n.effectiveType) || _n.saveData), ut = (n) => {
2305
+ if (be(n))
2306
2306
  try {
2307
2307
  n = n();
2308
2308
  } catch {
2309
2309
  n = "";
2310
2310
  }
2311
2311
  const e = n;
2312
- return n = typeof n == "string" ? n : (Array.isArray(n) ? n.length : n) ? St(n) : "", [
2312
+ return n = typeof n == "string" ? n : (Array.isArray(n) ? n.length : n) ? Ot(n) : "", [
2313
2313
  n,
2314
2314
  e
2315
2315
  ];
2316
2316
  };
2317
- let Wo = 0;
2318
- const Yt = () => ++Wo, ys = 0, ms = 1, gs = 2, Ho = 3;
2317
+ let Xo = 0;
2318
+ const Xt = () => ++Xo, vs = 0, ws = 1, bs = 2, Qo = 3;
2319
2319
  var Pe = {
2320
2320
  __proto__: null,
2321
- ERROR_REVALIDATE_EVENT: Ho,
2322
- FOCUS_EVENT: ys,
2323
- MUTATE_EVENT: gs,
2324
- RECONNECT_EVENT: ms
2321
+ ERROR_REVALIDATE_EVENT: Qo,
2322
+ FOCUS_EVENT: vs,
2323
+ MUTATE_EVENT: bs,
2324
+ RECONNECT_EVENT: ws
2325
2325
  };
2326
- async function Yn(...n) {
2327
- const [e, t, r, s] = n, i = ze({
2326
+ async function Xn(...n) {
2327
+ const [e, t, r, s] = n, i = Ie({
2328
2328
  populateCache: !0,
2329
2329
  throwOnError: !0
2330
2330
  }, typeof s == "boolean" ? {
@@ -2334,7 +2334,7 @@ async function Yn(...n) {
2334
2334
  const c = i.rollbackOnError;
2335
2335
  let l = i.optimisticData;
2336
2336
  const a = (w) => typeof c == "function" ? c(w) : c !== !1, h = i.throwOnError;
2337
- if (_e(t)) {
2337
+ if (be(t)) {
2338
2338
  const w = t, g = [], m = e.keys();
2339
2339
  for (const p of m)
2340
2340
  !/^\$(inf|sub)\$/.test(p) && w(e.get(p)._k) && g.push(p);
@@ -2345,29 +2345,29 @@ async function Yn(...n) {
2345
2345
  const [g] = ut(w);
2346
2346
  if (!g)
2347
2347
  return;
2348
- const [m, p] = We(e, g), [x, y, A, D] = De.get(e), C = () => {
2348
+ const [m, p] = He(e, g), [x, y, C, D] = De.get(e), A = () => {
2349
2349
  const z = x[g];
2350
- return (_e(i.revalidate) ? i.revalidate(m().data, w) : i.revalidate !== !1) && (delete A[g], delete D[g], z && z[0]) ? z[0](gs).then(() => m().data) : m().data;
2350
+ return (be(i.revalidate) ? i.revalidate(m().data, w) : i.revalidate !== !1) && (delete C[g], delete D[g], z && z[0]) ? z[0](bs).then(() => m().data) : m().data;
2351
2351
  };
2352
2352
  if (n.length < 3)
2353
- return C();
2353
+ return A();
2354
2354
  let L = r, k;
2355
- const se = Yt();
2355
+ const se = Xt();
2356
2356
  y[g] = [
2357
2357
  se,
2358
2358
  0
2359
2359
  ];
2360
- const _ = !E(l), j = m(), N = j.data, Q = j._c, fe = E(Q) ? N : Q;
2361
- if (_ && (l = _e(l) ? l(fe, N) : l, p({
2360
+ const _ = !E(l), j = m(), N = j.data, Q = j._c, de = E(Q) ? N : Q;
2361
+ if (_ && (l = be(l) ? l(de, N) : l, p({
2362
2362
  data: l,
2363
- _c: fe
2364
- })), _e(L))
2363
+ _c: de
2364
+ })), be(L))
2365
2365
  try {
2366
- L = L(fe);
2366
+ L = L(de);
2367
2367
  } catch (z) {
2368
2368
  k = z;
2369
2369
  }
2370
- if (L && Fo(L))
2370
+ if (L && Mo(L))
2371
2371
  if (L = await L.catch((z) => {
2372
2372
  k = z;
2373
2373
  }), se !== y[g][0]) {
@@ -2376,26 +2376,26 @@ async function Yn(...n) {
2376
2376
  return L;
2377
2377
  } else
2378
2378
  k && _ && a(k) && (o = !0, p({
2379
- data: fe,
2380
- _c: ue
2379
+ data: de,
2380
+ _c: ae
2381
2381
  }));
2382
2382
  if (o && !k)
2383
- if (_e(o)) {
2384
- const z = o(L, fe);
2383
+ if (be(o)) {
2384
+ const z = o(L, de);
2385
2385
  p({
2386
2386
  data: z,
2387
- error: ue,
2388
- _c: ue
2387
+ error: ae,
2388
+ _c: ae
2389
2389
  });
2390
2390
  } else
2391
2391
  p({
2392
2392
  data: L,
2393
- error: ue,
2394
- _c: ue
2393
+ error: ae,
2394
+ _c: ae
2395
2395
  });
2396
- if (y[g][1] = Yt(), Promise.resolve(C()).then(() => {
2396
+ if (y[g][1] = Xt(), Promise.resolve(A()).then(() => {
2397
2397
  p({
2398
- _c: ue
2398
+ _c: ae
2399
2399
  });
2400
2400
  }), k) {
2401
2401
  if (h)
@@ -2405,12 +2405,12 @@ async function Yn(...n) {
2405
2405
  return L;
2406
2406
  }
2407
2407
  }
2408
- const Ar = (n, e) => {
2408
+ const Dr = (n, e) => {
2409
2409
  for (const t in n)
2410
2410
  n[t][0] && n[t][0](e);
2411
- }, zo = (n, e) => {
2411
+ }, _s = (n, e) => {
2412
2412
  if (!De.has(n)) {
2413
- const t = ze($o, e), r = {}, s = Yn.bind(ue, n);
2413
+ const t = Ie(Go, e), r = {}, s = Xn.bind(ae, n);
2414
2414
  let i = Qe;
2415
2415
  const o = {}, c = (h, f) => {
2416
2416
  const w = o[h] || [];
@@ -2431,7 +2431,7 @@ const Ar = (n, e) => {
2431
2431
  l,
2432
2432
  c
2433
2433
  ]), !ct)) {
2434
- const h = t.initFocus(setTimeout.bind(ue, Ar.bind(ue, r, ys))), f = t.initReconnect(setTimeout.bind(ue, Ar.bind(ue, r, ms)));
2434
+ const h = t.initFocus(setTimeout.bind(ae, Dr.bind(ae, r, vs))), f = t.initReconnect(setTimeout.bind(ae, Dr.bind(ae, r, ws)));
2435
2435
  i = () => {
2436
2436
  h && h(), f && f(), De.delete(n);
2437
2437
  };
@@ -2448,41 +2448,59 @@ const Ar = (n, e) => {
2448
2448
  n,
2449
2449
  De.get(n)[4]
2450
2450
  ];
2451
- }, Jo = (n, e, t, r, s) => {
2451
+ }, Zo = (n, e, t, r, s) => {
2452
2452
  const i = t.errorRetryCount, o = s.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
2453
2453
  !E(i) && o > i || setTimeout(r, c, s);
2454
- }, Ko = (n, e) => St(n) == St(e), [Gn, Yo] = zo(/* @__PURE__ */ new Map()), Go = ze(
2454
+ }, ea = (n, e) => Ot(n) == Ot(e), [an, ta] = _s(/* @__PURE__ */ new Map()), Qn = Ie(
2455
2455
  {
2456
2456
  onLoadingSlow: Qe,
2457
2457
  onSuccess: Qe,
2458
2458
  onError: Qe,
2459
- onErrorRetry: Jo,
2459
+ onErrorRetry: Zo,
2460
2460
  onDiscarded: Qe,
2461
2461
  revalidateOnFocus: !0,
2462
2462
  revalidateOnReconnect: !0,
2463
2463
  revalidateIfStale: !0,
2464
2464
  shouldRetryOnError: !0,
2465
- errorRetryInterval: xr ? 1e4 : 5e3,
2465
+ errorRetryInterval: Ar ? 1e4 : 5e3,
2466
2466
  focusThrottleInterval: 5 * 1e3,
2467
2467
  dedupingInterval: 2 * 1e3,
2468
- loadingTimeout: xr ? 5e3 : 3e3,
2469
- compare: Ko,
2468
+ loadingTimeout: Ar ? 5e3 : 3e3,
2469
+ compare: ea,
2470
2470
  isPaused: () => !1,
2471
- cache: Gn,
2472
- mutate: Yo,
2471
+ cache: an,
2472
+ mutate: ta,
2473
2473
  fallback: {}
2474
2474
  },
2475
- Mo
2476
- ), Xo = (n, e) => {
2477
- const t = ze(n, e);
2475
+ Yo
2476
+ ), Es = (n, e) => {
2477
+ const t = Ie(n, e);
2478
2478
  if (e) {
2479
2479
  const { use: r, fallback: s } = n, { use: i, fallback: o } = e;
2480
- r && i && (t.use = r.concat(i)), s && o && (t.fallback = ze(s, o));
2480
+ r && i && (t.use = r.concat(i)), s && o && (t.fallback = Ie(s, o));
2481
2481
  }
2482
2482
  return t;
2483
- }, Qo = $r({}), vs = "$inf$", ws = rn && window.__SWR_DEVTOOLS_USE__, Zo = ws ? window.__SWR_DEVTOOLS_USE__ : [], ea = () => {
2484
- ws && (window.__SWR_DEVTOOLS_REACT__ = Ze);
2485
- }, bs = (n) => _e(n[1]) ? [
2483
+ }, Bn = zr({}), Rs = (n) => {
2484
+ const { value: e } = n, t = he(Bn), r = be(e), s = St(() => r ? e(t) : e, [
2485
+ r,
2486
+ t,
2487
+ e
2488
+ ]), i = St(() => r ? s : Es(t, s), [
2489
+ r,
2490
+ t,
2491
+ s
2492
+ ]), o = s && s.provider, c = fe(ae);
2493
+ o && !c.current && (c.current = _s(o(i.cache || an), s));
2494
+ const l = c.current;
2495
+ return l && (i.cache = l[0], i.mutate = l[1]), Ze(() => {
2496
+ if (l)
2497
+ return l[2] && l[2](), l[3];
2498
+ }, []), ci(Bn.Provider, Ie(n, {
2499
+ value: i
2500
+ }));
2501
+ }, Ss = "$inf$", Ts = on && window.__SWR_DEVTOOLS_USE__, na = Ts ? window.__SWR_DEVTOOLS_USE__ : [], ra = () => {
2502
+ Ts && (window.__SWR_DEVTOOLS_REACT__ = et);
2503
+ }, Os = (n) => be(n[1]) ? [
2486
2504
  n[0],
2487
2505
  n[1],
2488
2506
  n[2] || {}
@@ -2490,34 +2508,34 @@ const Ar = (n, e) => {
2490
2508
  n[0],
2491
2509
  null,
2492
2510
  (n[1] === null ? n[2] : n[1]) || {}
2493
- ], ta = () => ze(Go, ye(Qo)), na = (n) => (e, t, r) => n(e, t && ((...i) => {
2494
- const [o] = ut(e), [, , , c] = De.get(Gn);
2495
- if (o.startsWith(vs))
2511
+ ], sa = () => Ie(Qn, he(Bn)), ia = (n) => (e, t, r) => n(e, t && ((...i) => {
2512
+ const [o] = ut(e), [, , , c] = De.get(an);
2513
+ if (o.startsWith(Ss))
2496
2514
  return t(...i);
2497
2515
  const l = c[o];
2498
2516
  return E(l) ? t(...i) : (delete c[o], l);
2499
- }), r), ra = Zo.concat(na), _s = (n) => function(...t) {
2500
- const r = ta(), [s, i, o] = bs(t), c = Xo(r, o);
2517
+ }), r), oa = na.concat(ia), xs = (n) => function(...t) {
2518
+ const r = sa(), [s, i, o] = Os(t), c = Es(r, o);
2501
2519
  let l = n;
2502
- const { use: a } = c, h = (a || []).concat(ra);
2520
+ const { use: a } = c, h = (a || []).concat(oa);
2503
2521
  for (let f = h.length; f--; )
2504
2522
  l = h[f](l);
2505
2523
  return l(s, i || c.fetcher || null, c);
2506
- }, Es = (n, e, t) => {
2524
+ }, Cs = (n, e, t) => {
2507
2525
  const r = e[n] || (e[n] = []);
2508
2526
  return r.push(t), () => {
2509
2527
  const s = r.indexOf(t);
2510
2528
  s >= 0 && (r[s] = r[r.length - 1], r.pop());
2511
2529
  };
2512
- }, sa = (n, e) => (...t) => {
2513
- const [r, s, i] = bs(t), o = (i.use || []).concat(e);
2530
+ }, aa = (n, e) => (...t) => {
2531
+ const [r, s, i] = Os(t), o = (i.use || []).concat(e);
2514
2532
  return n(r, s, {
2515
2533
  ...i,
2516
2534
  use: o
2517
2535
  });
2518
2536
  };
2519
- ea();
2520
- const Cr = Ze.use || ((n) => {
2537
+ ra();
2538
+ const Lr = et.use || ((n) => {
2521
2539
  if (n.status === "pending")
2522
2540
  throw n;
2523
2541
  if (n.status === "fulfilled")
@@ -2527,10 +2545,10 @@ const Cr = Ze.use || ((n) => {
2527
2545
  }, (e) => {
2528
2546
  n.status = "rejected", n.reason = e;
2529
2547
  }), n);
2530
- }), bn = {
2548
+ }), En = {
2531
2549
  dedupe: !0
2532
- }, ia = (n, e, t) => {
2533
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: w } = t, [g, m, p, x] = De.get(r), [y, A] = ut(n), D = pe(!1), C = pe(!1), L = pe(y), k = pe(e), se = pe(t), _ = () => se.current, j = () => _().isVisible() && _().isOnline(), [N, Q, fe, z] = We(r, y), W = pe({}).current, ge = E(o) ? t.fallback[y] : o, be = (R, S) => {
2550
+ }, ca = (n, e, t) => {
2551
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: w } = t, [g, m, p, x] = De.get(r), [y, C] = ut(n), D = fe(!1), A = fe(!1), L = fe(y), k = fe(e), se = fe(t), _ = () => se.current, j = () => _().isVisible() && _().isOnline(), [N, Q, de, z] = He(r, y), W = fe({}).current, ge = E(o) ? t.fallback[y] : o, _e = (R, S) => {
2534
2552
  for (const I in W) {
2535
2553
  const T = I;
2536
2554
  if (T === "data") {
@@ -2540,95 +2558,95 @@ const Cr = Ze.use || ((n) => {
2540
2558
  return !1;
2541
2559
  }
2542
2560
  return !0;
2543
- }, Z = jn(() => {
2561
+ }, Z = St(() => {
2544
2562
  const R = (() => !y || !e ? !1 : E(c) ? _().isPaused() || i ? !1 : E(l) ? !0 : l : c)(), S = (F) => {
2545
- const ne = ze(F);
2563
+ const ne = Ie(F);
2546
2564
  return delete ne._k, R ? {
2547
2565
  isValidating: !0,
2548
2566
  isLoading: !0,
2549
2567
  ...ne
2550
2568
  } : ne;
2551
- }, I = N(), T = z(), X = S(I), de = I === T ? X : S(T);
2569
+ }, I = N(), T = z(), X = S(I), ye = I === T ? X : S(T);
2552
2570
  let P = X;
2553
2571
  return [
2554
2572
  () => {
2555
2573
  const F = S(N());
2556
- return be(F, P) ? (P.data = F.data, P.isLoading = F.isLoading, P.isValidating = F.isValidating, P.error = F.error, P) : (P = F, F);
2574
+ return _e(F, P) ? (P.data = F.data, P.isLoading = F.isLoading, P.isValidating = F.isValidating, P.error = F.error, P) : (P = F, F);
2557
2575
  },
2558
- () => de
2576
+ () => ye
2559
2577
  ];
2560
2578
  }, [
2561
2579
  r,
2562
2580
  y
2563
- ]), ee = nn.exports.useSyncExternalStore($(
2564
- (R) => fe(y, (S, I) => {
2565
- be(I, S) || R();
2581
+ ]), ee = sn.exports.useSyncExternalStore($(
2582
+ (R) => de(y, (S, I) => {
2583
+ _e(I, S) || R();
2566
2584
  }),
2567
2585
  [
2568
2586
  r,
2569
2587
  y
2570
2588
  ]
2571
- ), Z[0], Z[1]), Ee = !D.current, Je = g[y] && g[y].length > 0, le = ee.data, G = E(le) ? ge : le, we = ee.error, Le = pe(G), Re = w ? E(le) ? Le.current : le : G, Ae = (() => Je && !E(we) ? !1 : Ee && !E(c) ? c : _().isPaused() ? !1 : i ? E(G) ? !1 : l : E(G) || l)(), Ve = !!(y && e && Ee && Ae), Ke = E(ee.isValidating) ? Ve : ee.isValidating, et = E(ee.isLoading) ? Ve : ee.isLoading, he = $(
2589
+ ), Z[0], Z[1]), Ee = !D.current, Je = g[y] && g[y].length > 0, le = ee.data, G = E(le) ? ge : le, we = ee.error, Le = fe(G), Re = w ? E(le) ? Le.current : le : G, Ce = (() => Je && !E(we) ? !1 : Ee && !E(c) ? c : _().isPaused() ? !1 : i ? E(G) ? !1 : l : E(G) || l)(), qe = !!(y && e && Ee && Ce), Ke = E(ee.isValidating) ? qe : ee.isValidating, tt = E(ee.isLoading) ? qe : ee.isLoading, pe = $(
2572
2590
  async (R) => {
2573
2591
  const S = k.current;
2574
- if (!y || !S || C.current || _().isPaused())
2592
+ if (!y || !S || A.current || _().isPaused())
2575
2593
  return !1;
2576
2594
  let I, T, X = !0;
2577
- const de = R || {}, P = !p[y] || !de.dedupe, F = () => Kt ? !C.current && y === L.current && D.current : y === L.current, ne = {
2595
+ const ye = R || {}, P = !p[y] || !ye.dedupe, F = () => Gt ? !A.current && y === L.current && D.current : y === L.current, ne = {
2578
2596
  isValidating: !1,
2579
2597
  isLoading: !1
2580
- }, nt = () => {
2598
+ }, rt = () => {
2581
2599
  Q(ne);
2582
- }, qe = () => {
2600
+ }, je = () => {
2583
2601
  const K = p[y];
2584
2602
  K && K[1] === T && delete p[y];
2585
- }, rt = {
2603
+ }, st = {
2586
2604
  isValidating: !0
2587
2605
  };
2588
- E(N().data) && (rt.isLoading = !0);
2606
+ E(N().data) && (st.isLoading = !0);
2589
2607
  try {
2590
- if (P && (Q(rt), t.loadingTimeout && E(N().data) && setTimeout(() => {
2608
+ if (P && (Q(st), t.loadingTimeout && E(N().data) && setTimeout(() => {
2591
2609
  X && F() && _().onLoadingSlow(y, t);
2592
2610
  }, t.loadingTimeout), p[y] = [
2593
- S(A),
2594
- Yt()
2595
- ]), [I, T] = p[y], I = await I, P && setTimeout(qe, t.dedupingInterval), !p[y] || p[y][1] !== T)
2611
+ S(C),
2612
+ Xt()
2613
+ ]), [I, T] = p[y], I = await I, P && setTimeout(je, t.dedupingInterval), !p[y] || p[y][1] !== T)
2596
2614
  return P && F() && _().onDiscarded(y), !1;
2597
- ne.error = ue;
2615
+ ne.error = ae;
2598
2616
  const K = m[y];
2599
2617
  if (!E(K) && (T <= K[0] || T <= K[1] || K[1] === 0))
2600
- return nt(), P && F() && _().onDiscarded(y), !1;
2618
+ return rt(), P && F() && _().onDiscarded(y), !1;
2601
2619
  const te = N().data;
2602
2620
  ne.data = s(te, I) ? te : I, P && F() && _().onSuccess(I, y, t);
2603
2621
  } catch (K) {
2604
- qe();
2622
+ je();
2605
2623
  const te = _(), { shouldRetryOnError: ke } = te;
2606
- te.isPaused() || (ne.error = K, P && F() && (te.onError(K, y, te), (ke === !0 || _e(ke) && ke(K)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || j()) && te.onErrorRetry(K, y, te, (je) => {
2607
- const Me = g[y];
2608
- Me && Me[0] && Me[0](Pe.ERROR_REVALIDATE_EVENT, je);
2624
+ te.isPaused() || (ne.error = K, P && F() && (te.onError(K, y, te), (ke === !0 || be(ke) && ke(K)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || j()) && te.onErrorRetry(K, y, te, (Me) => {
2625
+ const $e = g[y];
2626
+ $e && $e[0] && $e[0](Pe.ERROR_REVALIDATE_EVENT, Me);
2609
2627
  }, {
2610
- retryCount: (de.retryCount || 0) + 1,
2628
+ retryCount: (ye.retryCount || 0) + 1,
2611
2629
  dedupe: !0
2612
2630
  })));
2613
2631
  }
2614
- return X = !1, nt(), !0;
2632
+ return X = !1, rt(), !0;
2615
2633
  },
2616
2634
  [
2617
2635
  y,
2618
2636
  r
2619
2637
  ]
2620
- ), tt = $(
2621
- (...R) => Yn(r, L.current, ...R),
2638
+ ), nt = $(
2639
+ (...R) => Xn(r, L.current, ...R),
2622
2640
  []
2623
2641
  );
2624
- if (ot(() => {
2642
+ if (Ze(() => {
2625
2643
  k.current = e, se.current = t, E(le) || (Le.current = le);
2626
- }), ot(() => {
2644
+ }), Ze(() => {
2627
2645
  if (!y)
2628
2646
  return;
2629
- const R = he.bind(ue, bn);
2647
+ const R = pe.bind(ae, En);
2630
2648
  let S = 0;
2631
- const T = Es(y, g, (X, de = {}) => {
2649
+ const T = Cs(y, g, (X, ye = {}) => {
2632
2650
  if (X == Pe.FOCUS_EVENT) {
2633
2651
  const P = Date.now();
2634
2652
  _().revalidateOnFocus && P > S && j() && (S = P + _().focusThrottleInterval, R());
@@ -2636,26 +2654,26 @@ const Cr = Ze.use || ((n) => {
2636
2654
  _().revalidateOnReconnect && j() && R();
2637
2655
  else {
2638
2656
  if (X == Pe.MUTATE_EVENT)
2639
- return he();
2657
+ return pe();
2640
2658
  if (X == Pe.ERROR_REVALIDATE_EVENT)
2641
- return he(de);
2659
+ return pe(ye);
2642
2660
  }
2643
2661
  });
2644
- return C.current = !1, L.current = y, D.current = !0, Q({
2645
- _k: A
2646
- }), Ae && (E(G) || ct ? R() : ps(R)), () => {
2647
- C.current = !0, T();
2662
+ return A.current = !1, L.current = y, D.current = !0, Q({
2663
+ _k: C
2664
+ }), Ce && (E(G) || ct ? R() : gs(R)), () => {
2665
+ A.current = !0, T();
2648
2666
  };
2649
2667
  }, [
2650
2668
  y
2651
- ]), ot(() => {
2669
+ ]), Ze(() => {
2652
2670
  let R;
2653
2671
  function S() {
2654
- const T = _e(a) ? a(N().data) : a;
2672
+ const T = be(a) ? a(N().data) : a;
2655
2673
  T && R !== -1 && (R = setTimeout(I, T));
2656
2674
  }
2657
2675
  function I() {
2658
- !N().error && (h || _().isVisible()) && (f || _().isOnline()) ? he(bn).then(S) : S();
2676
+ !N().error && (h || _().isVisible()) && (f || _().isOnline()) ? pe(En).then(S) : S();
2659
2677
  }
2660
2678
  return S(), () => {
2661
2679
  R && (clearTimeout(R), R = -1);
@@ -2665,23 +2683,23 @@ const Cr = Ze.use || ((n) => {
2665
2683
  h,
2666
2684
  f,
2667
2685
  y
2668
- ]), Wr(Re), i && E(G) && y) {
2669
- if (!Kt && ct)
2686
+ ]), Jr(Re), i && E(G) && y) {
2687
+ if (!Gt && ct)
2670
2688
  throw new Error("Fallback data is required when using suspense in SSR.");
2671
- k.current = e, se.current = t, C.current = !1;
2689
+ k.current = e, se.current = t, A.current = !1;
2672
2690
  const R = x[y];
2673
2691
  if (!E(R)) {
2674
- const S = tt(R);
2675
- Cr(S);
2692
+ const S = nt(R);
2693
+ Lr(S);
2676
2694
  }
2677
2695
  if (E(we)) {
2678
- const S = he(bn);
2679
- E(Re) || (S.status = "fulfilled", S.value = !0), Cr(S);
2696
+ const S = pe(En);
2697
+ E(Re) || (S.status = "fulfilled", S.value = !0), Lr(S);
2680
2698
  } else
2681
2699
  throw we;
2682
2700
  }
2683
2701
  return {
2684
- mutate: tt,
2702
+ mutate: nt,
2685
2703
  get data() {
2686
2704
  return W.data = !0, Re;
2687
2705
  },
@@ -2692,10 +2710,12 @@ const Cr = Ze.use || ((n) => {
2692
2710
  return W.isValidating = !0, Ke;
2693
2711
  },
2694
2712
  get isLoading() {
2695
- return W.isLoading = !0, et;
2713
+ return W.isLoading = !0, tt;
2696
2714
  }
2697
2715
  };
2698
- }, Dt = _s(ia), Dr = Ze.use || ((n) => {
2716
+ }, ua = Rt.defineProperty(Rs, "defaultValue", {
2717
+ value: Qn
2718
+ }), kt = xs(ca), kr = et.use || ((n) => {
2699
2719
  if (n.status === "pending")
2700
2720
  throw n;
2701
2721
  if (n.status === "fulfilled")
@@ -2705,10 +2725,10 @@ const Cr = Ze.use || ((n) => {
2705
2725
  }, (e) => {
2706
2726
  n.status = "rejected", n.reason = e;
2707
2727
  }), n);
2708
- }), _n = {
2728
+ }), Rn = {
2709
2729
  dedupe: !0
2710
- }, oa = (n, e, t) => {
2711
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: w } = t, [g, m, p, x] = De.get(r), [y, A] = ut(n), D = pe(!1), C = pe(!1), L = pe(y), k = pe(e), se = pe(t), _ = () => se.current, j = () => _().isVisible() && _().isOnline(), [N, Q, fe, z] = We(r, y), W = pe({}).current, ge = E(o) ? t.fallback[y] : o, be = (R, S) => {
2730
+ }, la = (n, e, t) => {
2731
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: w } = t, [g, m, p, x] = De.get(r), [y, C] = ut(n), D = fe(!1), A = fe(!1), L = fe(y), k = fe(e), se = fe(t), _ = () => se.current, j = () => _().isVisible() && _().isOnline(), [N, Q, de, z] = He(r, y), W = fe({}).current, ge = E(o) ? t.fallback[y] : o, _e = (R, S) => {
2712
2732
  for (const I in W) {
2713
2733
  const T = I;
2714
2734
  if (T === "data") {
@@ -2718,95 +2738,95 @@ const Cr = Ze.use || ((n) => {
2718
2738
  return !1;
2719
2739
  }
2720
2740
  return !0;
2721
- }, Z = jn(() => {
2741
+ }, Z = St(() => {
2722
2742
  const R = (() => !y || !e ? !1 : E(c) ? _().isPaused() || i ? !1 : E(l) ? !0 : l : c)(), S = (F) => {
2723
- const ne = ze(F);
2743
+ const ne = Ie(F);
2724
2744
  return delete ne._k, R ? {
2725
2745
  isValidating: !0,
2726
2746
  isLoading: !0,
2727
2747
  ...ne
2728
2748
  } : ne;
2729
- }, I = N(), T = z(), X = S(I), de = I === T ? X : S(T);
2749
+ }, I = N(), T = z(), X = S(I), ye = I === T ? X : S(T);
2730
2750
  let P = X;
2731
2751
  return [
2732
2752
  () => {
2733
2753
  const F = S(N());
2734
- return be(F, P) ? (P.data = F.data, P.isLoading = F.isLoading, P.isValidating = F.isValidating, P.error = F.error, P) : (P = F, F);
2754
+ return _e(F, P) ? (P.data = F.data, P.isLoading = F.isLoading, P.isValidating = F.isValidating, P.error = F.error, P) : (P = F, F);
2735
2755
  },
2736
- () => de
2756
+ () => ye
2737
2757
  ];
2738
2758
  }, [
2739
2759
  r,
2740
2760
  y
2741
- ]), ee = nn.exports.useSyncExternalStore($(
2742
- (R) => fe(y, (S, I) => {
2743
- be(I, S) || R();
2761
+ ]), ee = sn.exports.useSyncExternalStore($(
2762
+ (R) => de(y, (S, I) => {
2763
+ _e(I, S) || R();
2744
2764
  }),
2745
2765
  [
2746
2766
  r,
2747
2767
  y
2748
2768
  ]
2749
- ), Z[0], Z[1]), Ee = !D.current, Je = g[y] && g[y].length > 0, le = ee.data, G = E(le) ? ge : le, we = ee.error, Le = pe(G), Re = w ? E(le) ? Le.current : le : G, Ae = (() => Je && !E(we) ? !1 : Ee && !E(c) ? c : _().isPaused() ? !1 : i ? E(G) ? !1 : l : E(G) || l)(), Ve = !!(y && e && Ee && Ae), Ke = E(ee.isValidating) ? Ve : ee.isValidating, et = E(ee.isLoading) ? Ve : ee.isLoading, he = $(
2769
+ ), Z[0], Z[1]), Ee = !D.current, Je = g[y] && g[y].length > 0, le = ee.data, G = E(le) ? ge : le, we = ee.error, Le = fe(G), Re = w ? E(le) ? Le.current : le : G, Ce = (() => Je && !E(we) ? !1 : Ee && !E(c) ? c : _().isPaused() ? !1 : i ? E(G) ? !1 : l : E(G) || l)(), qe = !!(y && e && Ee && Ce), Ke = E(ee.isValidating) ? qe : ee.isValidating, tt = E(ee.isLoading) ? qe : ee.isLoading, pe = $(
2750
2770
  async (R) => {
2751
2771
  const S = k.current;
2752
- if (!y || !S || C.current || _().isPaused())
2772
+ if (!y || !S || A.current || _().isPaused())
2753
2773
  return !1;
2754
2774
  let I, T, X = !0;
2755
- const de = R || {}, P = !p[y] || !de.dedupe, F = () => Kt ? !C.current && y === L.current && D.current : y === L.current, ne = {
2775
+ const ye = R || {}, P = !p[y] || !ye.dedupe, F = () => Gt ? !A.current && y === L.current && D.current : y === L.current, ne = {
2756
2776
  isValidating: !1,
2757
2777
  isLoading: !1
2758
- }, nt = () => {
2778
+ }, rt = () => {
2759
2779
  Q(ne);
2760
- }, qe = () => {
2780
+ }, je = () => {
2761
2781
  const K = p[y];
2762
2782
  K && K[1] === T && delete p[y];
2763
- }, rt = {
2783
+ }, st = {
2764
2784
  isValidating: !0
2765
2785
  };
2766
- E(N().data) && (rt.isLoading = !0);
2786
+ E(N().data) && (st.isLoading = !0);
2767
2787
  try {
2768
- if (P && (Q(rt), t.loadingTimeout && E(N().data) && setTimeout(() => {
2788
+ if (P && (Q(st), t.loadingTimeout && E(N().data) && setTimeout(() => {
2769
2789
  X && F() && _().onLoadingSlow(y, t);
2770
2790
  }, t.loadingTimeout), p[y] = [
2771
- S(A),
2772
- Yt()
2773
- ]), [I, T] = p[y], I = await I, P && setTimeout(qe, t.dedupingInterval), !p[y] || p[y][1] !== T)
2791
+ S(C),
2792
+ Xt()
2793
+ ]), [I, T] = p[y], I = await I, P && setTimeout(je, t.dedupingInterval), !p[y] || p[y][1] !== T)
2774
2794
  return P && F() && _().onDiscarded(y), !1;
2775
- ne.error = ue;
2795
+ ne.error = ae;
2776
2796
  const K = m[y];
2777
2797
  if (!E(K) && (T <= K[0] || T <= K[1] || K[1] === 0))
2778
- return nt(), P && F() && _().onDiscarded(y), !1;
2798
+ return rt(), P && F() && _().onDiscarded(y), !1;
2779
2799
  const te = N().data;
2780
2800
  ne.data = s(te, I) ? te : I, P && F() && _().onSuccess(I, y, t);
2781
2801
  } catch (K) {
2782
- qe();
2802
+ je();
2783
2803
  const te = _(), { shouldRetryOnError: ke } = te;
2784
- te.isPaused() || (ne.error = K, P && F() && (te.onError(K, y, te), (ke === !0 || _e(ke) && ke(K)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || j()) && te.onErrorRetry(K, y, te, (je) => {
2785
- const Me = g[y];
2786
- Me && Me[0] && Me[0](Pe.ERROR_REVALIDATE_EVENT, je);
2804
+ te.isPaused() || (ne.error = K, P && F() && (te.onError(K, y, te), (ke === !0 || be(ke) && ke(K)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || j()) && te.onErrorRetry(K, y, te, (Me) => {
2805
+ const $e = g[y];
2806
+ $e && $e[0] && $e[0](Pe.ERROR_REVALIDATE_EVENT, Me);
2787
2807
  }, {
2788
- retryCount: (de.retryCount || 0) + 1,
2808
+ retryCount: (ye.retryCount || 0) + 1,
2789
2809
  dedupe: !0
2790
2810
  })));
2791
2811
  }
2792
- return X = !1, nt(), !0;
2812
+ return X = !1, rt(), !0;
2793
2813
  },
2794
2814
  [
2795
2815
  y,
2796
2816
  r
2797
2817
  ]
2798
- ), tt = $(
2799
- (...R) => Yn(r, L.current, ...R),
2818
+ ), nt = $(
2819
+ (...R) => Xn(r, L.current, ...R),
2800
2820
  []
2801
2821
  );
2802
- if (ot(() => {
2822
+ if (Ze(() => {
2803
2823
  k.current = e, se.current = t, E(le) || (Le.current = le);
2804
- }), ot(() => {
2824
+ }), Ze(() => {
2805
2825
  if (!y)
2806
2826
  return;
2807
- const R = he.bind(ue, _n);
2827
+ const R = pe.bind(ae, Rn);
2808
2828
  let S = 0;
2809
- const T = Es(y, g, (X, de = {}) => {
2829
+ const T = Cs(y, g, (X, ye = {}) => {
2810
2830
  if (X == Pe.FOCUS_EVENT) {
2811
2831
  const P = Date.now();
2812
2832
  _().revalidateOnFocus && P > S && j() && (S = P + _().focusThrottleInterval, R());
@@ -2814,26 +2834,26 @@ const Cr = Ze.use || ((n) => {
2814
2834
  _().revalidateOnReconnect && j() && R();
2815
2835
  else {
2816
2836
  if (X == Pe.MUTATE_EVENT)
2817
- return he();
2837
+ return pe();
2818
2838
  if (X == Pe.ERROR_REVALIDATE_EVENT)
2819
- return he(de);
2839
+ return pe(ye);
2820
2840
  }
2821
2841
  });
2822
- return C.current = !1, L.current = y, D.current = !0, Q({
2823
- _k: A
2824
- }), Ae && (E(G) || ct ? R() : ps(R)), () => {
2825
- C.current = !0, T();
2842
+ return A.current = !1, L.current = y, D.current = !0, Q({
2843
+ _k: C
2844
+ }), Ce && (E(G) || ct ? R() : gs(R)), () => {
2845
+ A.current = !0, T();
2826
2846
  };
2827
2847
  }, [
2828
2848
  y
2829
- ]), ot(() => {
2849
+ ]), Ze(() => {
2830
2850
  let R;
2831
2851
  function S() {
2832
- const T = _e(a) ? a(N().data) : a;
2852
+ const T = be(a) ? a(N().data) : a;
2833
2853
  T && R !== -1 && (R = setTimeout(I, T));
2834
2854
  }
2835
2855
  function I() {
2836
- !N().error && (h || _().isVisible()) && (f || _().isOnline()) ? he(_n).then(S) : S();
2856
+ !N().error && (h || _().isVisible()) && (f || _().isOnline()) ? pe(Rn).then(S) : S();
2837
2857
  }
2838
2858
  return S(), () => {
2839
2859
  R && (clearTimeout(R), R = -1);
@@ -2843,23 +2863,23 @@ const Cr = Ze.use || ((n) => {
2843
2863
  h,
2844
2864
  f,
2845
2865
  y
2846
- ]), Wr(Re), i && E(G) && y) {
2847
- if (!Kt && ct)
2866
+ ]), Jr(Re), i && E(G) && y) {
2867
+ if (!Gt && ct)
2848
2868
  throw new Error("Fallback data is required when using suspense in SSR.");
2849
- k.current = e, se.current = t, C.current = !1;
2869
+ k.current = e, se.current = t, A.current = !1;
2850
2870
  const R = x[y];
2851
2871
  if (!E(R)) {
2852
- const S = tt(R);
2853
- Dr(S);
2872
+ const S = nt(R);
2873
+ kr(S);
2854
2874
  }
2855
2875
  if (E(we)) {
2856
- const S = he(_n);
2857
- E(Re) || (S.status = "fulfilled", S.value = !0), Dr(S);
2876
+ const S = pe(Rn);
2877
+ E(Re) || (S.status = "fulfilled", S.value = !0), kr(S);
2858
2878
  } else
2859
2879
  throw we;
2860
2880
  }
2861
2881
  return {
2862
- mutate: tt,
2882
+ mutate: nt,
2863
2883
  get data() {
2864
2884
  return W.data = !0, Re;
2865
2885
  },
@@ -2870,22 +2890,26 @@ const Cr = Ze.use || ((n) => {
2870
2890
  return W.isValidating = !0, Ke;
2871
2891
  },
2872
2892
  get isLoading() {
2873
- return W.isLoading = !0, et;
2893
+ return W.isLoading = !0, tt;
2874
2894
  }
2875
2895
  };
2876
- }, aa = _s(oa), ca = (n) => ut(n ? n(0, null) : null)[0], En = Promise.resolve(), ua = (n) => (e, t, r) => {
2877
- const s = pe(!1), { cache: i, initialSize: o = 1, revalidateAll: c = !1, persistSize: l = !1, revalidateFirstPage: a = !0, revalidateOnMount: h = !1, parallel: f = !1 } = r, [, , , w] = De.get(Gn);
2896
+ };
2897
+ Rt.defineProperty(Rs, "defaultValue", {
2898
+ value: Qn
2899
+ });
2900
+ const fa = xs(la), ha = (n) => ut(n ? n(0, null) : null)[0], Sn = Promise.resolve(), da = (n) => (e, t, r) => {
2901
+ const s = fe(!1), { cache: i, initialSize: o = 1, revalidateAll: c = !1, persistSize: l = !1, revalidateFirstPage: a = !0, revalidateOnMount: h = !1, parallel: f = !1 } = r, [, , , w] = De.get(an);
2878
2902
  let g;
2879
2903
  try {
2880
- g = ca(e), g && (g = vs + g);
2904
+ g = ha(e), g && (g = Ss + g);
2881
2905
  } catch {
2882
2906
  }
2883
- const [m, p, x] = We(i, g), y = $(() => E(m()._l) ? o : m()._l, [
2907
+ const [m, p, x] = He(i, g), y = $(() => E(m()._l) ? o : m()._l, [
2884
2908
  i,
2885
2909
  g,
2886
2910
  o
2887
2911
  ]);
2888
- nn.exports.useSyncExternalStore($(
2912
+ sn.exports.useSyncExternalStore($(
2889
2913
  (_) => g ? x(g, () => {
2890
2914
  _();
2891
2915
  }) : () => {
@@ -2895,46 +2919,46 @@ const Cr = Ze.use || ((n) => {
2895
2919
  g
2896
2920
  ]
2897
2921
  ), y, y);
2898
- const A = $(() => {
2922
+ const C = $(() => {
2899
2923
  const _ = m()._l;
2900
2924
  return E(_) ? o : _;
2901
2925
  }, [
2902
2926
  g,
2903
2927
  o
2904
- ]), D = pe(A());
2905
- ot(() => {
2928
+ ]), D = fe(C());
2929
+ Ze(() => {
2906
2930
  if (!s.current) {
2907
2931
  s.current = !0;
2908
2932
  return;
2909
2933
  }
2910
2934
  g && p({
2911
- _l: l ? D.current : A()
2935
+ _l: l ? D.current : C()
2912
2936
  });
2913
2937
  }, [
2914
2938
  g,
2915
2939
  i
2916
2940
  ]);
2917
- const C = h && !s.current, L = n(g, async (_) => {
2941
+ const A = h && !s.current, L = n(g, async (_) => {
2918
2942
  const j = m()._i, N = m()._r;
2919
2943
  p({
2920
- _r: ue
2944
+ _r: ae
2921
2945
  });
2922
- const Q = [], fe = A(), [z] = We(i, _), W = z().data, ge = [];
2923
- let be = null;
2924
- for (let Z = 0; Z < fe; ++Z) {
2925
- const [ee, Ee] = ut(e(Z, f ? null : be));
2946
+ const Q = [], de = C(), [z] = He(i, _), W = z().data, ge = [];
2947
+ let _e = null;
2948
+ for (let Z = 0; Z < de; ++Z) {
2949
+ const [ee, Ee] = ut(e(Z, f ? null : _e));
2926
2950
  if (!ee)
2927
2951
  break;
2928
- const [Je, le] = We(i, ee);
2952
+ const [Je, le] = He(i, ee);
2929
2953
  let G = Je().data;
2930
- const we = c || j || E(G) || a && !Z && !E(W) || C || W && !E(W[Z]) && !r.compare(W[Z], G);
2954
+ const we = c || j || E(G) || a && !Z && !E(W) || A || W && !E(W[Z]) && !r.compare(W[Z], G);
2931
2955
  if (t && (typeof N == "function" ? N(G, Ee) : we)) {
2932
2956
  const Le = async () => {
2933
2957
  if (!(ee in w))
2934
2958
  G = await t(Ee);
2935
2959
  else {
2936
- const Ae = w[ee];
2937
- delete w[ee], G = await Ae;
2960
+ const Ce = w[ee];
2961
+ delete w[ee], G = await Ce;
2938
2962
  }
2939
2963
  le({
2940
2964
  data: G,
@@ -2944,10 +2968,10 @@ const Cr = Ze.use || ((n) => {
2944
2968
  f ? ge.push(Le) : await Le();
2945
2969
  } else
2946
2970
  Q[Z] = G;
2947
- f || (be = G);
2971
+ f || (_e = G);
2948
2972
  }
2949
2973
  return f && await Promise.all(ge.map((Z) => Z())), p({
2950
- _i: ue
2974
+ _i: ae
2951
2975
  }), Q;
2952
2976
  }, r), k = $(
2953
2977
  function(_, j) {
@@ -2963,7 +2987,7 @@ const Cr = Ze.use || ((n) => {
2963
2987
  })), arguments.length ? L.mutate(_, {
2964
2988
  ...N,
2965
2989
  revalidate: Q
2966
- }) : L.mutate()) : En;
2990
+ }) : L.mutate()) : Sn;
2967
2991
  },
2968
2992
  [
2969
2993
  g,
@@ -2972,20 +2996,20 @@ const Cr = Ze.use || ((n) => {
2972
2996
  ), se = $(
2973
2997
  (_) => {
2974
2998
  if (!g)
2975
- return En;
2976
- const [, j] = We(i, g);
2999
+ return Sn;
3000
+ const [, j] = He(i, g);
2977
3001
  let N;
2978
- if (_e(_) ? N = _(A()) : typeof _ == "number" && (N = _), typeof N != "number")
2979
- return En;
3002
+ if (be(_) ? N = _(C()) : typeof _ == "number" && (N = _), typeof N != "number")
3003
+ return Sn;
2980
3004
  j({
2981
3005
  _l: N
2982
3006
  }), D.current = N;
2983
- const Q = [], [fe] = We(i, g);
3007
+ const Q = [], [de] = He(i, g);
2984
3008
  let z = null;
2985
3009
  for (let W = 0; W < N; ++W) {
2986
- const [ge] = ut(e(W, z)), [be] = We(i, ge), Z = ge ? be().data : ue;
3010
+ const [ge] = ut(e(W, z)), [_e] = He(i, ge), Z = ge ? _e().data : ae;
2987
3011
  if (E(Z))
2988
- return k(fe().data);
3012
+ return k(de().data);
2989
3013
  Q.push(Z), z = Z;
2990
3014
  }
2991
3015
  return k(Q);
@@ -2994,11 +3018,11 @@ const Cr = Ze.use || ((n) => {
2994
3018
  g,
2995
3019
  i,
2996
3020
  k,
2997
- A
3021
+ C
2998
3022
  ]
2999
3023
  );
3000
3024
  return {
3001
- size: A(),
3025
+ size: C(),
3002
3026
  setSize: se,
3003
3027
  mutate: k,
3004
3028
  get data() {
@@ -3014,71 +3038,71 @@ const Cr = Ze.use || ((n) => {
3014
3038
  return L.isLoading;
3015
3039
  }
3016
3040
  };
3017
- }, cc = sa(aa, ua), Ie = /* @__PURE__ */ Object.create(null);
3018
- Ie.open = "0";
3019
- Ie.close = "1";
3020
- Ie.ping = "2";
3021
- Ie.pong = "3";
3022
- Ie.message = "4";
3023
- Ie.upgrade = "5";
3024
- Ie.noop = "6";
3025
- const Wt = /* @__PURE__ */ Object.create(null);
3026
- Object.keys(Ie).forEach((n) => {
3027
- Wt[Ie[n]] = n;
3041
+ }, fc = aa(fa, da), Ue = /* @__PURE__ */ Object.create(null);
3042
+ Ue.open = "0";
3043
+ Ue.close = "1";
3044
+ Ue.ping = "2";
3045
+ Ue.pong = "3";
3046
+ Ue.message = "4";
3047
+ Ue.upgrade = "5";
3048
+ Ue.noop = "6";
3049
+ const zt = /* @__PURE__ */ Object.create(null);
3050
+ Object.keys(Ue).forEach((n) => {
3051
+ zt[Ue[n]] = n;
3028
3052
  });
3029
- const Pn = { type: "error", data: "parser error" }, Rs = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Ss = typeof ArrayBuffer == "function", Ts = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n && n.buffer instanceof ArrayBuffer, Xn = ({ type: n, data: e }, t, r) => Rs && e instanceof Blob ? t ? r(e) : Lr(e, r) : Ss && (e instanceof ArrayBuffer || Ts(e)) ? t ? r(e) : Lr(new Blob([e]), r) : r(Ie[n] + (e || "")), Lr = (n, e) => {
3053
+ const In = { type: "error", data: "parser error" }, As = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Ds = typeof ArrayBuffer == "function", Ls = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n && n.buffer instanceof ArrayBuffer, Zn = ({ type: n, data: e }, t, r) => As && e instanceof Blob ? t ? r(e) : Nr(e, r) : Ds && (e instanceof ArrayBuffer || Ls(e)) ? t ? r(e) : Nr(new Blob([e]), r) : r(Ue[n] + (e || "")), Nr = (n, e) => {
3030
3054
  const t = new FileReader();
3031
3055
  return t.onload = function() {
3032
3056
  const r = t.result.split(",")[1];
3033
3057
  e("b" + (r || ""));
3034
3058
  }, t.readAsDataURL(n);
3035
3059
  };
3036
- function kr(n) {
3060
+ function Pr(n) {
3037
3061
  return n instanceof Uint8Array ? n : n instanceof ArrayBuffer ? new Uint8Array(n) : new Uint8Array(n.buffer, n.byteOffset, n.byteLength);
3038
3062
  }
3039
- let Rn;
3040
- function la(n, e) {
3041
- if (Rs && n.data instanceof Blob)
3042
- return n.data.arrayBuffer().then(kr).then(e);
3043
- if (Ss && (n.data instanceof ArrayBuffer || Ts(n.data)))
3044
- return e(kr(n.data));
3045
- Xn(n, !1, (t) => {
3046
- Rn || (Rn = new TextEncoder()), e(Rn.encode(t));
3063
+ let Tn;
3064
+ function pa(n, e) {
3065
+ if (As && n.data instanceof Blob)
3066
+ return n.data.arrayBuffer().then(Pr).then(e);
3067
+ if (Ds && (n.data instanceof ArrayBuffer || Ls(n.data)))
3068
+ return e(Pr(n.data));
3069
+ Zn(n, !1, (t) => {
3070
+ Tn || (Tn = new TextEncoder()), e(Tn.encode(t));
3047
3071
  });
3048
3072
  }
3049
- const Nr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Et = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
3050
- for (let n = 0; n < Nr.length; n++)
3051
- Et[Nr.charCodeAt(n)] = n;
3052
- const fa = (n) => {
3073
+ const Fr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Et = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
3074
+ for (let n = 0; n < Fr.length; n++)
3075
+ Et[Fr.charCodeAt(n)] = n;
3076
+ const ya = (n) => {
3053
3077
  let e = n.length * 0.75, t = n.length, r, s = 0, i, o, c, l;
3054
3078
  n[n.length - 1] === "=" && (e--, n[n.length - 2] === "=" && e--);
3055
3079
  const a = new ArrayBuffer(e), h = new Uint8Array(a);
3056
3080
  for (r = 0; r < t; r += 4)
3057
3081
  i = Et[n.charCodeAt(r)], o = Et[n.charCodeAt(r + 1)], c = Et[n.charCodeAt(r + 2)], l = Et[n.charCodeAt(r + 3)], h[s++] = i << 2 | o >> 4, h[s++] = (o & 15) << 4 | c >> 2, h[s++] = (c & 3) << 6 | l & 63;
3058
3082
  return a;
3059
- }, ha = typeof ArrayBuffer == "function", Qn = (n, e) => {
3083
+ }, ma = typeof ArrayBuffer == "function", er = (n, e) => {
3060
3084
  if (typeof n != "string")
3061
3085
  return {
3062
3086
  type: "message",
3063
- data: Os(n, e)
3087
+ data: ks(n, e)
3064
3088
  };
3065
3089
  const t = n.charAt(0);
3066
3090
  return t === "b" ? {
3067
3091
  type: "message",
3068
- data: da(n.substring(1), e)
3069
- } : Wt[t] ? n.length > 1 ? {
3070
- type: Wt[t],
3092
+ data: ga(n.substring(1), e)
3093
+ } : zt[t] ? n.length > 1 ? {
3094
+ type: zt[t],
3071
3095
  data: n.substring(1)
3072
3096
  } : {
3073
- type: Wt[t]
3074
- } : Pn;
3075
- }, da = (n, e) => {
3076
- if (ha) {
3077
- const t = fa(n);
3078
- return Os(t, e);
3097
+ type: zt[t]
3098
+ } : In;
3099
+ }, ga = (n, e) => {
3100
+ if (ma) {
3101
+ const t = ya(n);
3102
+ return ks(t, e);
3079
3103
  } else
3080
3104
  return { base64: !0, data: n };
3081
- }, Os = (n, e) => {
3105
+ }, ks = (n, e) => {
3082
3106
  switch (e) {
3083
3107
  case "blob":
3084
3108
  return n instanceof Blob ? n : new Blob([n]);
@@ -3086,27 +3110,27 @@ const fa = (n) => {
3086
3110
  default:
3087
3111
  return n instanceof ArrayBuffer ? n : n.buffer;
3088
3112
  }
3089
- }, xs = String.fromCharCode(30), pa = (n, e) => {
3113
+ }, Ns = String.fromCharCode(30), va = (n, e) => {
3090
3114
  const t = n.length, r = new Array(t);
3091
3115
  let s = 0;
3092
3116
  n.forEach((i, o) => {
3093
- Xn(i, !1, (c) => {
3094
- r[o] = c, ++s === t && e(r.join(xs));
3117
+ Zn(i, !1, (c) => {
3118
+ r[o] = c, ++s === t && e(r.join(Ns));
3095
3119
  });
3096
3120
  });
3097
- }, ya = (n, e) => {
3098
- const t = n.split(xs), r = [];
3121
+ }, wa = (n, e) => {
3122
+ const t = n.split(Ns), r = [];
3099
3123
  for (let s = 0; s < t.length; s++) {
3100
- const i = Qn(t[s], e);
3124
+ const i = er(t[s], e);
3101
3125
  if (r.push(i), i.type === "error")
3102
3126
  break;
3103
3127
  }
3104
3128
  return r;
3105
3129
  };
3106
- function ma() {
3130
+ function ba() {
3107
3131
  return new TransformStream({
3108
3132
  transform(n, e) {
3109
- la(n, (t) => {
3133
+ pa(n, (t) => {
3110
3134
  const r = t.length;
3111
3135
  let s;
3112
3136
  if (r < 126)
@@ -3125,11 +3149,11 @@ function ma() {
3125
3149
  }
3126
3150
  });
3127
3151
  }
3128
- let Sn;
3129
- function It(n) {
3152
+ let On;
3153
+ function Vt(n) {
3130
3154
  return n.reduce((e, t) => e + t.length, 0);
3131
3155
  }
3132
- function Ut(n, e) {
3156
+ function qt(n, e) {
3133
3157
  if (n[0].length === e)
3134
3158
  return n.shift();
3135
3159
  const t = new Uint8Array(e);
@@ -3138,66 +3162,66 @@ function Ut(n, e) {
3138
3162
  t[s] = n[0][r++], r === n[0].length && (n.shift(), r = 0);
3139
3163
  return n.length && r < n[0].length && (n[0] = n[0].slice(r)), t;
3140
3164
  }
3141
- function ga(n, e) {
3142
- Sn || (Sn = new TextDecoder());
3165
+ function _a(n, e) {
3166
+ On || (On = new TextDecoder());
3143
3167
  const t = [];
3144
3168
  let r = 0, s = -1, i = !1;
3145
3169
  return new TransformStream({
3146
3170
  transform(o, c) {
3147
3171
  for (t.push(o); ; ) {
3148
3172
  if (r === 0) {
3149
- if (It(t) < 1)
3173
+ if (Vt(t) < 1)
3150
3174
  break;
3151
- const l = Ut(t, 1);
3175
+ const l = qt(t, 1);
3152
3176
  i = (l[0] & 128) === 128, s = l[0] & 127, s < 126 ? r = 3 : s === 126 ? r = 1 : r = 2;
3153
3177
  } else if (r === 1) {
3154
- if (It(t) < 2)
3178
+ if (Vt(t) < 2)
3155
3179
  break;
3156
- const l = Ut(t, 2);
3180
+ const l = qt(t, 2);
3157
3181
  s = new DataView(l.buffer, l.byteOffset, l.length).getUint16(0), r = 3;
3158
3182
  } else if (r === 2) {
3159
- if (It(t) < 8)
3183
+ if (Vt(t) < 8)
3160
3184
  break;
3161
- const l = Ut(t, 8), a = new DataView(l.buffer, l.byteOffset, l.length), h = a.getUint32(0);
3185
+ const l = qt(t, 8), a = new DataView(l.buffer, l.byteOffset, l.length), h = a.getUint32(0);
3162
3186
  if (h > Math.pow(2, 53 - 32) - 1) {
3163
- c.enqueue(Pn);
3187
+ c.enqueue(In);
3164
3188
  break;
3165
3189
  }
3166
3190
  s = h * Math.pow(2, 32) + a.getUint32(4), r = 3;
3167
3191
  } else {
3168
- if (It(t) < s)
3192
+ if (Vt(t) < s)
3169
3193
  break;
3170
- const l = Ut(t, s);
3171
- c.enqueue(Qn(i ? l : Sn.decode(l), e)), r = 0;
3194
+ const l = qt(t, s);
3195
+ c.enqueue(er(i ? l : On.decode(l), e)), r = 0;
3172
3196
  }
3173
3197
  if (s === 0 || s > n) {
3174
- c.enqueue(Pn);
3198
+ c.enqueue(In);
3175
3199
  break;
3176
3200
  }
3177
3201
  }
3178
3202
  }
3179
3203
  });
3180
3204
  }
3181
- const As = 4;
3182
- function ae(n) {
3205
+ const Ps = 4;
3206
+ function ce(n) {
3183
3207
  if (n)
3184
- return va(n);
3208
+ return Ea(n);
3185
3209
  }
3186
- function va(n) {
3187
- for (var e in ae.prototype)
3188
- n[e] = ae.prototype[e];
3210
+ function Ea(n) {
3211
+ for (var e in ce.prototype)
3212
+ n[e] = ce.prototype[e];
3189
3213
  return n;
3190
3214
  }
3191
- ae.prototype.on = ae.prototype.addEventListener = function(n, e) {
3215
+ ce.prototype.on = ce.prototype.addEventListener = function(n, e) {
3192
3216
  return this._callbacks = this._callbacks || {}, (this._callbacks["$" + n] = this._callbacks["$" + n] || []).push(e), this;
3193
3217
  };
3194
- ae.prototype.once = function(n, e) {
3218
+ ce.prototype.once = function(n, e) {
3195
3219
  function t() {
3196
3220
  this.off(n, t), e.apply(this, arguments);
3197
3221
  }
3198
3222
  return t.fn = e, this.on(n, t), this;
3199
3223
  };
3200
- ae.prototype.off = ae.prototype.removeListener = ae.prototype.removeAllListeners = ae.prototype.removeEventListener = function(n, e) {
3224
+ ce.prototype.off = ce.prototype.removeListener = ce.prototype.removeAllListeners = ce.prototype.removeEventListener = function(n, e) {
3201
3225
  if (this._callbacks = this._callbacks || {}, arguments.length == 0)
3202
3226
  return this._callbacks = {}, this;
3203
3227
  var t = this._callbacks["$" + n];
@@ -3212,7 +3236,7 @@ ae.prototype.off = ae.prototype.removeListener = ae.prototype.removeAllListeners
3212
3236
  }
3213
3237
  return t.length === 0 && delete this._callbacks["$" + n], this;
3214
3238
  };
3215
- ae.prototype.emit = function(n) {
3239
+ ce.prototype.emit = function(n) {
3216
3240
  this._callbacks = this._callbacks || {};
3217
3241
  for (var e = new Array(arguments.length - 1), t = this._callbacks["$" + n], r = 1; r < arguments.length; r++)
3218
3242
  e[r - 1] = arguments[r];
@@ -3223,38 +3247,38 @@ ae.prototype.emit = function(n) {
3223
3247
  }
3224
3248
  return this;
3225
3249
  };
3226
- ae.prototype.emitReserved = ae.prototype.emit;
3227
- ae.prototype.listeners = function(n) {
3250
+ ce.prototype.emitReserved = ce.prototype.emit;
3251
+ ce.prototype.listeners = function(n) {
3228
3252
  return this._callbacks = this._callbacks || {}, this._callbacks["$" + n] || [];
3229
3253
  };
3230
- ae.prototype.hasListeners = function(n) {
3254
+ ce.prototype.hasListeners = function(n) {
3231
3255
  return !!this.listeners(n).length;
3232
3256
  };
3233
3257
  const Oe = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
3234
- function Cs(n, ...e) {
3258
+ function Fs(n, ...e) {
3235
3259
  return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
3236
3260
  }
3237
- const wa = Oe.setTimeout, ba = Oe.clearTimeout;
3238
- function sn(n, e) {
3239
- e.useNativeTimers ? (n.setTimeoutFn = wa.bind(Oe), n.clearTimeoutFn = ba.bind(Oe)) : (n.setTimeoutFn = Oe.setTimeout.bind(Oe), n.clearTimeoutFn = Oe.clearTimeout.bind(Oe));
3261
+ const Ra = Oe.setTimeout, Sa = Oe.clearTimeout;
3262
+ function cn(n, e) {
3263
+ e.useNativeTimers ? (n.setTimeoutFn = Ra.bind(Oe), n.clearTimeoutFn = Sa.bind(Oe)) : (n.setTimeoutFn = Oe.setTimeout.bind(Oe), n.clearTimeoutFn = Oe.clearTimeout.bind(Oe));
3240
3264
  }
3241
- const _a = 1.33;
3242
- function Ea(n) {
3243
- return typeof n == "string" ? Ra(n) : Math.ceil((n.byteLength || n.size) * _a);
3265
+ const Ta = 1.33;
3266
+ function Oa(n) {
3267
+ return typeof n == "string" ? xa(n) : Math.ceil((n.byteLength || n.size) * Ta);
3244
3268
  }
3245
- function Ra(n) {
3269
+ function xa(n) {
3246
3270
  let e = 0, t = 0;
3247
3271
  for (let r = 0, s = n.length; r < s; r++)
3248
3272
  e = n.charCodeAt(r), e < 128 ? t += 1 : e < 2048 ? t += 2 : e < 55296 || e >= 57344 ? t += 3 : (r++, t += 4);
3249
3273
  return t;
3250
3274
  }
3251
- function Sa(n) {
3275
+ function Ca(n) {
3252
3276
  let e = "";
3253
3277
  for (let t in n)
3254
3278
  n.hasOwnProperty(t) && (e.length && (e += "&"), e += encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
3255
3279
  return e;
3256
3280
  }
3257
- function Ta(n) {
3281
+ function Aa(n) {
3258
3282
  let e = {}, t = n.split("&");
3259
3283
  for (let r = 0, s = t.length; r < s; r++) {
3260
3284
  let i = t[r].split("=");
@@ -3262,17 +3286,17 @@ function Ta(n) {
3262
3286
  }
3263
3287
  return e;
3264
3288
  }
3265
- class Oa extends Error {
3289
+ class Da extends Error {
3266
3290
  constructor(e, t, r) {
3267
3291
  super(e), this.description = t, this.context = r, this.type = "TransportError";
3268
3292
  }
3269
3293
  }
3270
- class Zn extends ae {
3294
+ class tr extends ce {
3271
3295
  constructor(e) {
3272
- super(), this.writable = !1, sn(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
3296
+ super(), this.writable = !1, cn(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
3273
3297
  }
3274
3298
  onError(e, t, r) {
3275
- return super.emitReserved("error", new Oa(e, t, r)), this;
3299
+ return super.emitReserved("error", new Da(e, t, r)), this;
3276
3300
  }
3277
3301
  open() {
3278
3302
  return this.readyState = "opening", this.doOpen(), this;
@@ -3287,7 +3311,7 @@ class Zn extends ae {
3287
3311
  this.readyState = "open", this.writable = !0, super.emitReserved("open");
3288
3312
  }
3289
3313
  onData(e) {
3290
- const t = Qn(e, this.socket.binaryType);
3314
+ const t = er(e, this.socket.binaryType);
3291
3315
  this.onPacket(t);
3292
3316
  }
3293
3317
  onPacket(e) {
@@ -3309,35 +3333,35 @@ class Zn extends ae {
3309
3333
  return this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
3310
3334
  }
3311
3335
  _query(e) {
3312
- const t = Sa(e);
3336
+ const t = Ca(e);
3313
3337
  return t.length ? "?" + t : "";
3314
3338
  }
3315
3339
  }
3316
- const Ds = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Fn = 64, xa = {};
3317
- let Pr = 0, Vt = 0, Fr;
3318
- function Br(n) {
3340
+ const Bs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Un = 64, La = {};
3341
+ let Br = 0, jt = 0, Ir;
3342
+ function Ur(n) {
3319
3343
  let e = "";
3320
3344
  do
3321
- e = Ds[n % Fn] + e, n = Math.floor(n / Fn);
3345
+ e = Bs[n % Un] + e, n = Math.floor(n / Un);
3322
3346
  while (n > 0);
3323
3347
  return e;
3324
3348
  }
3325
- function Ls() {
3326
- const n = Br(+new Date());
3327
- return n !== Fr ? (Pr = 0, Fr = n) : n + "." + Br(Pr++);
3349
+ function Is() {
3350
+ const n = Ur(+new Date());
3351
+ return n !== Ir ? (Br = 0, Ir = n) : n + "." + Ur(Br++);
3328
3352
  }
3329
- for (; Vt < Fn; Vt++)
3330
- xa[Ds[Vt]] = Vt;
3331
- let ks = !1;
3353
+ for (; jt < Un; jt++)
3354
+ La[Bs[jt]] = jt;
3355
+ let Us = !1;
3332
3356
  try {
3333
- ks = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
3357
+ Us = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
3334
3358
  } catch {
3335
3359
  }
3336
- const Aa = ks;
3337
- function Ns(n) {
3360
+ const ka = Us;
3361
+ function Vs(n) {
3338
3362
  const e = n.xdomain;
3339
3363
  try {
3340
- if (typeof XMLHttpRequest < "u" && (!e || Aa))
3364
+ if (typeof XMLHttpRequest < "u" && (!e || ka))
3341
3365
  return new XMLHttpRequest();
3342
3366
  } catch {
3343
3367
  }
@@ -3347,14 +3371,14 @@ function Ns(n) {
3347
3371
  } catch {
3348
3372
  }
3349
3373
  }
3350
- function Ca() {
3374
+ function Na() {
3351
3375
  }
3352
- const Da = function() {
3353
- return new Ns({
3376
+ const Pa = function() {
3377
+ return new Vs({
3354
3378
  xdomain: !1
3355
3379
  }).responseType != null;
3356
3380
  }();
3357
- class La extends Zn {
3381
+ class Fa extends tr {
3358
3382
  constructor(e) {
3359
3383
  if (super(e), this.polling = !1, typeof location < "u") {
3360
3384
  const r = location.protocol === "https:";
@@ -3362,7 +3386,7 @@ class La extends Zn {
3362
3386
  s || (s = r ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || s !== e.port;
3363
3387
  }
3364
3388
  const t = e && e.forceBase64;
3365
- this.supportsBinary = Da && !t, this.opts.withCredentials && (this.cookieJar = void 0);
3389
+ this.supportsBinary = Pa && !t, this.opts.withCredentials && (this.cookieJar = void 0);
3366
3390
  }
3367
3391
  get name() {
3368
3392
  return "polling";
@@ -3394,7 +3418,7 @@ class La extends Zn {
3394
3418
  return this.onClose({ description: "transport closed by the server" }), !1;
3395
3419
  this.onPacket(r);
3396
3420
  };
3397
- ya(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
3421
+ wa(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
3398
3422
  }
3399
3423
  doClose() {
3400
3424
  const e = () => {
@@ -3403,7 +3427,7 @@ class La extends Zn {
3403
3427
  this.readyState === "open" ? e() : this.once("open", e);
3404
3428
  }
3405
3429
  write(e) {
3406
- this.writable = !1, pa(e, (t) => {
3430
+ this.writable = !1, va(e, (t) => {
3407
3431
  this.doWrite(t, () => {
3408
3432
  this.writable = !0, this.emitReserved("drain");
3409
3433
  });
@@ -3411,7 +3435,7 @@ class La extends Zn {
3411
3435
  }
3412
3436
  uri() {
3413
3437
  const e = this.opts.secure ? "https" : "http", t = this.query || {};
3414
- return this.opts.timestampRequests !== !1 && (t[this.opts.timestampParam] = Ls()), !this.supportsBinary && !t.sid && (t.b64 = 1), this.createUri(e, t);
3438
+ return this.opts.timestampRequests !== !1 && (t[this.opts.timestampParam] = Is()), !this.supportsBinary && !t.sid && (t.b64 = 1), this.createUri(e, t);
3415
3439
  }
3416
3440
  request(e = {}) {
3417
3441
  return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new Be(this.uri(), e);
@@ -3432,15 +3456,15 @@ class La extends Zn {
3432
3456
  }), this.pollXhr = e;
3433
3457
  }
3434
3458
  }
3435
- class Be extends ae {
3459
+ class Be extends ce {
3436
3460
  constructor(e, t) {
3437
- super(), sn(this, t), this.opts = t, this.method = t.method || "GET", this.uri = e, this.data = t.data !== void 0 ? t.data : null, this.create();
3461
+ super(), cn(this, t), this.opts = t, this.method = t.method || "GET", this.uri = e, this.data = t.data !== void 0 ? t.data : null, this.create();
3438
3462
  }
3439
3463
  create() {
3440
3464
  var e;
3441
- const t = Cs(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
3465
+ const t = Fs(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
3442
3466
  t.xdomain = !!this.opts.xd;
3443
- const r = this.xhr = new Ns(t);
3467
+ const r = this.xhr = new Vs(t);
3444
3468
  try {
3445
3469
  r.open(this.method, this.uri, !0);
3446
3470
  try {
@@ -3479,7 +3503,7 @@ class Be extends ae {
3479
3503
  }
3480
3504
  cleanup(e) {
3481
3505
  if (!(typeof this.xhr > "u" || this.xhr === null)) {
3482
- if (this.xhr.onreadystatechange = Ca, e)
3506
+ if (this.xhr.onreadystatechange = Na, e)
3483
3507
  try {
3484
3508
  this.xhr.abort();
3485
3509
  } catch {
@@ -3499,18 +3523,18 @@ Be.requestsCount = 0;
3499
3523
  Be.requests = {};
3500
3524
  if (typeof document < "u") {
3501
3525
  if (typeof attachEvent == "function")
3502
- attachEvent("onunload", Ir);
3526
+ attachEvent("onunload", Vr);
3503
3527
  else if (typeof addEventListener == "function") {
3504
3528
  const n = "onpagehide" in Oe ? "pagehide" : "unload";
3505
- addEventListener(n, Ir, !1);
3529
+ addEventListener(n, Vr, !1);
3506
3530
  }
3507
3531
  }
3508
- function Ir() {
3532
+ function Vr() {
3509
3533
  for (let n in Be.requests)
3510
3534
  Be.requests.hasOwnProperty(n) && Be.requests[n].abort();
3511
3535
  }
3512
- const er = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), qt = Oe.WebSocket || Oe.MozWebSocket, Ur = !0, ka = "arraybuffer", Vr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
3513
- class Na extends Zn {
3536
+ const nr = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Mt = Oe.WebSocket || Oe.MozWebSocket, qr = !0, Ba = "arraybuffer", jr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
3537
+ class Ia extends tr {
3514
3538
  constructor(e) {
3515
3539
  super(e), this.supportsBinary = !e.forceBase64;
3516
3540
  }
@@ -3520,10 +3544,10 @@ class Na extends Zn {
3520
3544
  doOpen() {
3521
3545
  if (!this.check())
3522
3546
  return;
3523
- const e = this.uri(), t = this.opts.protocols, r = Vr ? {} : Cs(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
3547
+ const e = this.uri(), t = this.opts.protocols, r = jr ? {} : Fs(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
3524
3548
  this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
3525
3549
  try {
3526
- this.ws = Ur && !Vr ? t ? new qt(e, t) : new qt(e) : new qt(e, t, r);
3550
+ this.ws = qr && !jr ? t ? new Mt(e, t) : new Mt(e) : new Mt(e, t, r);
3527
3551
  } catch (s) {
3528
3552
  return this.emitReserved("error", s);
3529
3553
  }
@@ -3541,13 +3565,13 @@ class Na extends Zn {
3541
3565
  this.writable = !1;
3542
3566
  for (let t = 0; t < e.length; t++) {
3543
3567
  const r = e[t], s = t === e.length - 1;
3544
- Xn(r, this.supportsBinary, (i) => {
3568
+ Zn(r, this.supportsBinary, (i) => {
3545
3569
  const o = {};
3546
3570
  try {
3547
- Ur && this.ws.send(i);
3571
+ qr && this.ws.send(i);
3548
3572
  } catch {
3549
3573
  }
3550
- s && er(() => {
3574
+ s && nr(() => {
3551
3575
  this.writable = !0, this.emitReserved("drain");
3552
3576
  }, this.setTimeoutFn);
3553
3577
  });
@@ -3558,13 +3582,13 @@ class Na extends Zn {
3558
3582
  }
3559
3583
  uri() {
3560
3584
  const e = this.opts.secure ? "wss" : "ws", t = this.query || {};
3561
- return this.opts.timestampRequests && (t[this.opts.timestampParam] = Ls()), this.supportsBinary || (t.b64 = 1), this.createUri(e, t);
3585
+ return this.opts.timestampRequests && (t[this.opts.timestampParam] = Is()), this.supportsBinary || (t.b64 = 1), this.createUri(e, t);
3562
3586
  }
3563
3587
  check() {
3564
- return !!qt;
3588
+ return !!Mt;
3565
3589
  }
3566
3590
  }
3567
- class Pa extends Zn {
3591
+ class Ua extends tr {
3568
3592
  get name() {
3569
3593
  return "webtransport";
3570
3594
  }
@@ -3575,7 +3599,7 @@ class Pa extends Zn {
3575
3599
  this.onError("webtransport error", e);
3576
3600
  }), this.transport.ready.then(() => {
3577
3601
  this.transport.createBidirectionalStream().then((e) => {
3578
- const t = ga(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = ma();
3602
+ const t = _a(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = ba();
3579
3603
  s.readable.pipeTo(e.writable), this.writer = s.writable.getWriter();
3580
3604
  const i = () => {
3581
3605
  r.read().then(({ done: c, value: l }) => {
@@ -3594,7 +3618,7 @@ class Pa extends Zn {
3594
3618
  for (let t = 0; t < e.length; t++) {
3595
3619
  const r = e[t], s = t === e.length - 1;
3596
3620
  this.writer.write(r).then(() => {
3597
- s && er(() => {
3621
+ s && nr(() => {
3598
3622
  this.writable = !0, this.emitReserved("drain");
3599
3623
  }, this.setTimeoutFn);
3600
3624
  });
@@ -3605,11 +3629,11 @@ class Pa extends Zn {
3605
3629
  (e = this.transport) === null || e === void 0 || e.close();
3606
3630
  }
3607
3631
  }
3608
- const Fa = {
3609
- websocket: Na,
3610
- webtransport: Pa,
3611
- polling: La
3612
- }, Ba = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Ia = [
3632
+ const Va = {
3633
+ websocket: Ia,
3634
+ webtransport: Ua,
3635
+ polling: Fa
3636
+ }, qa = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, ja = [
3613
3637
  "source",
3614
3638
  "protocol",
3615
3639
  "authority",
@@ -3625,27 +3649,29 @@ const Fa = {
3625
3649
  "query",
3626
3650
  "anchor"
3627
3651
  ];
3628
- function Bn(n) {
3652
+ function Vn(n) {
3653
+ if (n.length > 2e3)
3654
+ throw "URI too long";
3629
3655
  const e = n, t = n.indexOf("["), r = n.indexOf("]");
3630
3656
  t != -1 && r != -1 && (n = n.substring(0, t) + n.substring(t, r).replace(/:/g, ";") + n.substring(r, n.length));
3631
- let s = Ba.exec(n || ""), i = {}, o = 14;
3657
+ let s = qa.exec(n || ""), i = {}, o = 14;
3632
3658
  for (; o--; )
3633
- i[Ia[o]] = s[o] || "";
3634
- return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Ua(i, i.path), i.queryKey = Va(i, i.query), i;
3659
+ i[ja[o]] = s[o] || "";
3660
+ return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Ma(i, i.path), i.queryKey = $a(i, i.query), i;
3635
3661
  }
3636
- function Ua(n, e) {
3662
+ function Ma(n, e) {
3637
3663
  const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
3638
3664
  return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
3639
3665
  }
3640
- function Va(n, e) {
3666
+ function $a(n, e) {
3641
3667
  const t = {};
3642
3668
  return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, s, i) {
3643
3669
  s && (t[s] = i);
3644
3670
  }), t;
3645
3671
  }
3646
- class Xe extends ae {
3672
+ class Xe extends ce {
3647
3673
  constructor(e, t = {}) {
3648
- super(), this.binaryType = ka, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Bn(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Bn(t.host).host), sn(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
3674
+ super(), this.binaryType = Ba, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Vn(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Vn(t.host).host), cn(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
3649
3675
  "polling",
3650
3676
  "websocket",
3651
3677
  "webtransport"
@@ -3663,7 +3689,7 @@ class Xe extends ae {
3663
3689
  },
3664
3690
  transportOptions: {},
3665
3691
  closeOnBeforeunload: !1
3666
- }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Ta(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
3692
+ }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Aa(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
3667
3693
  this.transport && (this.transport.removeAllListeners(), this.transport.close());
3668
3694
  }, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
3669
3695
  this.onClose("transport close", {
@@ -3673,7 +3699,7 @@ class Xe extends ae {
3673
3699
  }
3674
3700
  createTransport(e) {
3675
3701
  const t = Object.assign({}, this.opts.query);
3676
- t.EIO = As, t.transport = e, this.id && (t.sid = this.id);
3702
+ t.EIO = Ps, t.transport = e, this.id && (t.sid = this.id);
3677
3703
  const r = Object.assign({}, this.opts, {
3678
3704
  query: t,
3679
3705
  socket: this,
@@ -3681,7 +3707,7 @@ class Xe extends ae {
3681
3707
  secure: this.secure,
3682
3708
  port: this.port
3683
3709
  }, this.opts.transportOptions[e]);
3684
- return new Fa[e](r);
3710
+ return new Va[e](r);
3685
3711
  }
3686
3712
  open() {
3687
3713
  let e;
@@ -3796,7 +3822,7 @@ class Xe extends ae {
3796
3822
  let t = 1;
3797
3823
  for (let r = 0; r < this.writeBuffer.length; r++) {
3798
3824
  const s = this.writeBuffer[r].data;
3799
- if (s && (t += Ea(s)), r > 0 && t > this.maxPayload)
3825
+ if (s && (t += Oa(s)), r > 0 && t > this.maxPayload)
3800
3826
  return this.writeBuffer.slice(0, r);
3801
3827
  t += 2;
3802
3828
  }
@@ -3846,62 +3872,62 @@ class Xe extends ae {
3846
3872
  return t;
3847
3873
  }
3848
3874
  }
3849
- Xe.protocol = As;
3850
- function qa(n, e = "", t) {
3875
+ Xe.protocol = Ps;
3876
+ function Wa(n, e = "", t) {
3851
3877
  let r = n;
3852
- t = t || typeof location < "u" && location, n == null && (n = t.protocol + "//" + t.host), typeof n == "string" && (n.charAt(0) === "/" && (n.charAt(1) === "/" ? n = t.protocol + n : n = t.host + n), /^(https?|wss?):\/\//.test(n) || (typeof t < "u" ? n = t.protocol + "//" + n : n = "https://" + n), r = Bn(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
3878
+ t = t || typeof location < "u" && location, n == null && (n = t.protocol + "//" + t.host), typeof n == "string" && (n.charAt(0) === "/" && (n.charAt(1) === "/" ? n = t.protocol + n : n = t.host + n), /^(https?|wss?):\/\//.test(n) || (typeof t < "u" ? n = t.protocol + "//" + n : n = "https://" + n), r = Vn(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
3853
3879
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
3854
3880
  return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
3855
3881
  }
3856
- const ja = typeof ArrayBuffer == "function", Ma = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, Ps = Object.prototype.toString, $a = typeof Blob == "function" || typeof Blob < "u" && Ps.call(Blob) === "[object BlobConstructor]", Wa = typeof File == "function" || typeof File < "u" && Ps.call(File) === "[object FileConstructor]";
3857
- function tr(n) {
3858
- return ja && (n instanceof ArrayBuffer || Ma(n)) || $a && n instanceof Blob || Wa && n instanceof File;
3882
+ const Ha = typeof ArrayBuffer == "function", za = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, qs = Object.prototype.toString, Ja = typeof Blob == "function" || typeof Blob < "u" && qs.call(Blob) === "[object BlobConstructor]", Ka = typeof File == "function" || typeof File < "u" && qs.call(File) === "[object FileConstructor]";
3883
+ function rr(n) {
3884
+ return Ha && (n instanceof ArrayBuffer || za(n)) || Ja && n instanceof Blob || Ka && n instanceof File;
3859
3885
  }
3860
- function Ht(n, e) {
3886
+ function Jt(n, e) {
3861
3887
  if (!n || typeof n != "object")
3862
3888
  return !1;
3863
3889
  if (Array.isArray(n)) {
3864
3890
  for (let t = 0, r = n.length; t < r; t++)
3865
- if (Ht(n[t]))
3891
+ if (Jt(n[t]))
3866
3892
  return !0;
3867
3893
  return !1;
3868
3894
  }
3869
- if (tr(n))
3895
+ if (rr(n))
3870
3896
  return !0;
3871
3897
  if (n.toJSON && typeof n.toJSON == "function" && arguments.length === 1)
3872
- return Ht(n.toJSON(), !0);
3898
+ return Jt(n.toJSON(), !0);
3873
3899
  for (const t in n)
3874
- if (Object.prototype.hasOwnProperty.call(n, t) && Ht(n[t]))
3900
+ if (Object.prototype.hasOwnProperty.call(n, t) && Jt(n[t]))
3875
3901
  return !0;
3876
3902
  return !1;
3877
3903
  }
3878
- function Ha(n) {
3904
+ function Ya(n) {
3879
3905
  const e = [], t = n.data, r = n;
3880
- return r.data = In(t, e), r.attachments = e.length, { packet: r, buffers: e };
3906
+ return r.data = qn(t, e), r.attachments = e.length, { packet: r, buffers: e };
3881
3907
  }
3882
- function In(n, e) {
3908
+ function qn(n, e) {
3883
3909
  if (!n)
3884
3910
  return n;
3885
- if (tr(n)) {
3911
+ if (rr(n)) {
3886
3912
  const t = { _placeholder: !0, num: e.length };
3887
3913
  return e.push(n), t;
3888
3914
  } else if (Array.isArray(n)) {
3889
3915
  const t = new Array(n.length);
3890
3916
  for (let r = 0; r < n.length; r++)
3891
- t[r] = In(n[r], e);
3917
+ t[r] = qn(n[r], e);
3892
3918
  return t;
3893
3919
  } else if (typeof n == "object" && !(n instanceof Date)) {
3894
3920
  const t = {};
3895
3921
  for (const r in n)
3896
- Object.prototype.hasOwnProperty.call(n, r) && (t[r] = In(n[r], e));
3922
+ Object.prototype.hasOwnProperty.call(n, r) && (t[r] = qn(n[r], e));
3897
3923
  return t;
3898
3924
  }
3899
3925
  return n;
3900
3926
  }
3901
- function za(n, e) {
3902
- return n.data = Un(n.data, e), delete n.attachments, n;
3927
+ function Ga(n, e) {
3928
+ return n.data = jn(n.data, e), delete n.attachments, n;
3903
3929
  }
3904
- function Un(n, e) {
3930
+ function jn(n, e) {
3905
3931
  if (!n)
3906
3932
  return n;
3907
3933
  if (n && n._placeholder === !0) {
@@ -3910,30 +3936,30 @@ function Un(n, e) {
3910
3936
  throw new Error("illegal attachments");
3911
3937
  } else if (Array.isArray(n))
3912
3938
  for (let t = 0; t < n.length; t++)
3913
- n[t] = Un(n[t], e);
3939
+ n[t] = jn(n[t], e);
3914
3940
  else if (typeof n == "object")
3915
3941
  for (const t in n)
3916
- Object.prototype.hasOwnProperty.call(n, t) && (n[t] = Un(n[t], e));
3942
+ Object.prototype.hasOwnProperty.call(n, t) && (n[t] = jn(n[t], e));
3917
3943
  return n;
3918
3944
  }
3919
- const Ja = [
3945
+ const Xa = [
3920
3946
  "connect",
3921
3947
  "connect_error",
3922
3948
  "disconnect",
3923
3949
  "disconnecting",
3924
3950
  "newListener",
3925
3951
  "removeListener"
3926
- ], Ka = 5;
3952
+ ], Qa = 5;
3927
3953
  var U;
3928
3954
  (function(n) {
3929
3955
  n[n.CONNECT = 0] = "CONNECT", n[n.DISCONNECT = 1] = "DISCONNECT", n[n.EVENT = 2] = "EVENT", n[n.ACK = 3] = "ACK", n[n.CONNECT_ERROR = 4] = "CONNECT_ERROR", n[n.BINARY_EVENT = 5] = "BINARY_EVENT", n[n.BINARY_ACK = 6] = "BINARY_ACK";
3930
3956
  })(U || (U = {}));
3931
- class Ya {
3957
+ class Za {
3932
3958
  constructor(e) {
3933
3959
  this.replacer = e;
3934
3960
  }
3935
3961
  encode(e) {
3936
- return (e.type === U.EVENT || e.type === U.ACK) && Ht(e) ? this.encodeAsBinary({
3962
+ return (e.type === U.EVENT || e.type === U.ACK) && Jt(e) ? this.encodeAsBinary({
3937
3963
  type: e.type === U.EVENT ? U.BINARY_EVENT : U.BINARY_ACK,
3938
3964
  nsp: e.nsp,
3939
3965
  data: e.data,
@@ -3945,14 +3971,14 @@ class Ya {
3945
3971
  return (e.type === U.BINARY_EVENT || e.type === U.BINARY_ACK) && (t += e.attachments + "-"), e.nsp && e.nsp !== "/" && (t += e.nsp + ","), e.id != null && (t += e.id), e.data != null && (t += JSON.stringify(e.data, this.replacer)), t;
3946
3972
  }
3947
3973
  encodeAsBinary(e) {
3948
- const t = Ha(e), r = this.encodeAsString(t.packet), s = t.buffers;
3974
+ const t = Ya(e), r = this.encodeAsString(t.packet), s = t.buffers;
3949
3975
  return s.unshift(r), s;
3950
3976
  }
3951
3977
  }
3952
- function qr(n) {
3978
+ function Mr(n) {
3953
3979
  return Object.prototype.toString.call(n) === "[object Object]";
3954
3980
  }
3955
- class nr extends ae {
3981
+ class sr extends ce {
3956
3982
  constructor(e) {
3957
3983
  super(), this.reviver = e;
3958
3984
  }
@@ -3963,8 +3989,8 @@ class nr extends ae {
3963
3989
  throw new Error("got plaintext data when reconstructing a packet");
3964
3990
  t = this.decodeString(e);
3965
3991
  const r = t.type === U.BINARY_EVENT;
3966
- r || t.type === U.BINARY_ACK ? (t.type = r ? U.EVENT : U.ACK, this.reconstructor = new Ga(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
3967
- } else if (tr(e) || e.base64)
3992
+ r || t.type === U.BINARY_ACK ? (t.type = r ? U.EVENT : U.ACK, this.reconstructor = new ec(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
3993
+ } else if (rr(e) || e.base64)
3968
3994
  if (this.reconstructor)
3969
3995
  t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
3970
3996
  else
@@ -4011,7 +4037,7 @@ class nr extends ae {
4011
4037
  }
4012
4038
  if (e.charAt(++t)) {
4013
4039
  const i = this.tryParse(e.substr(t));
4014
- if (nr.isPayloadValid(r.type, i))
4040
+ if (sr.isPayloadValid(r.type, i))
4015
4041
  r.data = i;
4016
4042
  else
4017
4043
  throw new Error("invalid payload");
@@ -4028,14 +4054,14 @@ class nr extends ae {
4028
4054
  static isPayloadValid(e, t) {
4029
4055
  switch (e) {
4030
4056
  case U.CONNECT:
4031
- return qr(t);
4057
+ return Mr(t);
4032
4058
  case U.DISCONNECT:
4033
4059
  return t === void 0;
4034
4060
  case U.CONNECT_ERROR:
4035
- return typeof t == "string" || qr(t);
4061
+ return typeof t == "string" || Mr(t);
4036
4062
  case U.EVENT:
4037
4063
  case U.BINARY_EVENT:
4038
- return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && Ja.indexOf(t[0]) === -1);
4064
+ return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && Xa.indexOf(t[0]) === -1);
4039
4065
  case U.ACK:
4040
4066
  case U.BINARY_ACK:
4041
4067
  return Array.isArray(t);
@@ -4045,13 +4071,13 @@ class nr extends ae {
4045
4071
  this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
4046
4072
  }
4047
4073
  }
4048
- class Ga {
4074
+ class ec {
4049
4075
  constructor(e) {
4050
4076
  this.packet = e, this.buffers = [], this.reconPack = e;
4051
4077
  }
4052
4078
  takeBinaryData(e) {
4053
4079
  if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
4054
- const t = za(this.reconPack, this.buffers);
4080
+ const t = Ga(this.reconPack, this.buffers);
4055
4081
  return this.finishedReconstruction(), t;
4056
4082
  }
4057
4083
  return null;
@@ -4060,21 +4086,21 @@ class Ga {
4060
4086
  this.reconPack = null, this.buffers = [];
4061
4087
  }
4062
4088
  }
4063
- const Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4089
+ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4064
4090
  __proto__: null,
4065
- protocol: Ka,
4091
+ protocol: Qa,
4066
4092
  get PacketType() {
4067
4093
  return U;
4068
4094
  },
4069
- Encoder: Ya,
4070
- Decoder: nr
4095
+ Encoder: Za,
4096
+ Decoder: sr
4071
4097
  }, Symbol.toStringTag, { value: "Module" }));
4072
- function Ce(n, e, t) {
4098
+ function Ae(n, e, t) {
4073
4099
  return n.on(e, t), function() {
4074
4100
  n.off(e, t);
4075
4101
  };
4076
4102
  }
4077
- const Qa = Object.freeze({
4103
+ const nc = Object.freeze({
4078
4104
  connect: 1,
4079
4105
  connect_error: 1,
4080
4106
  disconnect: 1,
@@ -4082,7 +4108,7 @@ const Qa = Object.freeze({
4082
4108
  newListener: 1,
4083
4109
  removeListener: 1
4084
4110
  });
4085
- class Fs extends ae {
4111
+ class js extends ce {
4086
4112
  constructor(e, t, r) {
4087
4113
  super(), this.connected = !1, this.recovered = !1, this.receiveBuffer = [], this.sendBuffer = [], this._queue = [], this._queueSeq = 0, this.ids = 0, this.acks = {}, this.flags = {}, this.io = e, this.nsp = t, r && r.auth && (this.auth = r.auth), this._opts = Object.assign({}, r), this.io._autoConnect && this.open();
4088
4114
  }
@@ -4094,10 +4120,10 @@ class Fs extends ae {
4094
4120
  return;
4095
4121
  const e = this.io;
4096
4122
  this.subs = [
4097
- Ce(e, "open", this.onopen.bind(this)),
4098
- Ce(e, "packet", this.onpacket.bind(this)),
4099
- Ce(e, "error", this.onerror.bind(this)),
4100
- Ce(e, "close", this.onclose.bind(this))
4123
+ Ae(e, "open", this.onopen.bind(this)),
4124
+ Ae(e, "packet", this.onpacket.bind(this)),
4125
+ Ae(e, "error", this.onerror.bind(this)),
4126
+ Ae(e, "close", this.onclose.bind(this))
4101
4127
  ];
4102
4128
  }
4103
4129
  get active() {
@@ -4113,7 +4139,7 @@ class Fs extends ae {
4113
4139
  return e.unshift("message"), this.emit.apply(this, e), this;
4114
4140
  }
4115
4141
  emit(e, ...t) {
4116
- if (Qa.hasOwnProperty(e))
4142
+ if (nc.hasOwnProperty(e))
4117
4143
  throw new Error('"' + e.toString() + '" is a reserved event name');
4118
4144
  if (t.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
4119
4145
  return this._addToQueue(t), this;
@@ -4342,15 +4368,15 @@ mt.prototype.setMax = function(n) {
4342
4368
  mt.prototype.setJitter = function(n) {
4343
4369
  this.jitter = n;
4344
4370
  };
4345
- class Vn extends ae {
4371
+ class Mn extends ce {
4346
4372
  constructor(e, t) {
4347
4373
  var r;
4348
- super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, sn(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new mt({
4374
+ super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, cn(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new mt({
4349
4375
  min: this.reconnectionDelay(),
4350
4376
  max: this.reconnectionDelayMax(),
4351
4377
  jitter: this.randomizationFactor()
4352
4378
  }), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
4353
- const s = t.parser || Xa;
4379
+ const s = t.parser || tc;
4354
4380
  this.encoder = new s.Encoder(), this.decoder = new s.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
4355
4381
  }
4356
4382
  reconnection(e) {
@@ -4383,11 +4409,11 @@ class Vn extends ae {
4383
4409
  this.engine = new Xe(this.uri, this.opts);
4384
4410
  const t = this.engine, r = this;
4385
4411
  this._readyState = "opening", this.skipReconnect = !1;
4386
- const s = Ce(t, "open", function() {
4412
+ const s = Ae(t, "open", function() {
4387
4413
  r.onopen(), e && e();
4388
4414
  }), i = (c) => {
4389
4415
  this.cleanup(), this._readyState = "closed", this.emitReserved("error", c), e ? e(c) : this.maybeReconnectOnOpen();
4390
- }, o = Ce(t, "error", i);
4416
+ }, o = Ae(t, "error", i);
4391
4417
  if (this._timeout !== !1) {
4392
4418
  const c = this._timeout, l = this.setTimeoutFn(() => {
4393
4419
  s(), i(new Error("timeout")), t.close();
@@ -4404,7 +4430,7 @@ class Vn extends ae {
4404
4430
  onopen() {
4405
4431
  this.cleanup(), this._readyState = "open", this.emitReserved("open");
4406
4432
  const e = this.engine;
4407
- this.subs.push(Ce(e, "ping", this.onping.bind(this)), Ce(e, "data", this.ondata.bind(this)), Ce(e, "error", this.onerror.bind(this)), Ce(e, "close", this.onclose.bind(this)), Ce(this.decoder, "decoded", this.ondecoded.bind(this)));
4433
+ this.subs.push(Ae(e, "ping", this.onping.bind(this)), Ae(e, "data", this.ondata.bind(this)), Ae(e, "error", this.onerror.bind(this)), Ae(e, "close", this.onclose.bind(this)), Ae(this.decoder, "decoded", this.ondecoded.bind(this)));
4408
4434
  }
4409
4435
  onping() {
4410
4436
  this.emitReserved("ping");
@@ -4417,7 +4443,7 @@ class Vn extends ae {
4417
4443
  }
4418
4444
  }
4419
4445
  ondecoded(e) {
4420
- er(() => {
4446
+ nr(() => {
4421
4447
  this.emitReserved("packet", e);
4422
4448
  }, this.setTimeoutFn);
4423
4449
  }
@@ -4426,7 +4452,7 @@ class Vn extends ae {
4426
4452
  }
4427
4453
  socket(e, t) {
4428
4454
  let r = this.nsps[e];
4429
- return r ? this._autoConnect && !r.active && r.connect() : (r = new Fs(this, e, t), this.nsps[e] = r), r;
4455
+ return r ? this._autoConnect && !r.active && r.connect() : (r = new js(this, e, t), this.nsps[e] = r), r;
4430
4456
  }
4431
4457
  _destroy(e) {
4432
4458
  const t = Object.keys(this.nsps);
@@ -4477,19 +4503,19 @@ class Vn extends ae {
4477
4503
  }
4478
4504
  }
4479
4505
  const wt = {};
4480
- function zt(n, e) {
4506
+ function Kt(n, e) {
4481
4507
  typeof n == "object" && (e = n, n = void 0), e = e || {};
4482
- const t = qa(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = wt[s] && i in wt[s].nsps, c = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
4508
+ const t = Wa(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = wt[s] && i in wt[s].nsps, c = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
4483
4509
  let l;
4484
- return c ? l = new Vn(r, e) : (wt[s] || (wt[s] = new Vn(r, e)), l = wt[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
4510
+ return c ? l = new Mn(r, e) : (wt[s] || (wt[s] = new Mn(r, e)), l = wt[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
4485
4511
  }
4486
- Object.assign(zt, {
4487
- Manager: Vn,
4488
- Socket: Fs,
4489
- io: zt,
4490
- connect: zt
4512
+ Object.assign(Kt, {
4513
+ Manager: Mn,
4514
+ Socket: js,
4515
+ io: Kt,
4516
+ connect: Kt
4491
4517
  });
4492
- class Za {
4518
+ class rc {
4493
4519
  constructor(e, t, r, s) {
4494
4520
  Ye(this, "socket_port");
4495
4521
  Ye(this, "host");
@@ -4498,22 +4524,22 @@ class Za {
4498
4524
  Ye(this, "url");
4499
4525
  Ye(this, "site_name");
4500
4526
  Ye(this, "socket");
4501
- var i, o, c;
4502
- if (this.socket_port = r != null ? r : "9000", this.host = (i = window.location) == null ? void 0 : i.hostname, this.port = (o = window.location) != null && o.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", e) {
4503
- let l = new URL(e);
4504
- l.port = "", r ? (l.port = r, this.url = l.toString()) : this.url = l.toString();
4527
+ var i, o, c, l;
4528
+ if (this.socket_port = r != null ? r : "9000", this.host = (i = window.location) == null ? void 0 : i.hostname, this.port = (o = window.location) != null && o.port ? `:${this.socket_port}` : "", this.protocol = ((c = window.location) == null ? void 0 : c.protocol) === "https:" ? "https" : "http", e) {
4529
+ let a = new URL(e);
4530
+ a.port = "", r ? (a.port = r, this.url = a.toString()) : this.url = a.toString();
4505
4531
  } else
4506
4532
  this.url = `${this.protocol}://${this.host}${this.port}/`;
4507
- t && (this.url = `${this.url}${t}`), this.site_name = t, this.socket = zt(`${this.url}`, {
4533
+ t && (this.url = `${this.url}${t}`), this.site_name = t, this.socket = Kt(`${this.url}`, {
4508
4534
  withCredentials: !0,
4509
4535
  secure: this.protocol === "https",
4510
4536
  extraHeaders: s && s.useToken === !0 ? {
4511
- Authorization: `${s.type} ${(c = s.token) == null ? void 0 : c.call(s)}`
4537
+ Authorization: `${s.type} ${(l = s.token) == null ? void 0 : l.call(s)}`
4512
4538
  } : {}
4513
4539
  });
4514
4540
  }
4515
4541
  }
4516
- var Bs = { exports: {} }, bt = {};
4542
+ var Ms = { exports: {} }, bt = {};
4517
4543
  /**
4518
4544
  * @license React
4519
4545
  * react-jsx-runtime.production.min.js
@@ -4523,12 +4549,12 @@ var Bs = { exports: {} }, bt = {};
4523
4549
  * This source code is licensed under the MIT license found in the
4524
4550
  * LICENSE file in the root directory of this source tree.
4525
4551
  */
4526
- var jr;
4527
- function ec() {
4528
- if (jr)
4552
+ var $r;
4553
+ function sc() {
4554
+ if ($r)
4529
4555
  return bt;
4530
- jr = 1;
4531
- var n = Ze, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
4556
+ $r = 1;
4557
+ var n = et, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
4532
4558
  function o(c, l, a) {
4533
4559
  var h, f = {}, w = null, g = null;
4534
4560
  a !== void 0 && (w = "" + a), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (g = l.ref);
@@ -4551,10 +4577,10 @@ var _t = {};
4551
4577
  * This source code is licensed under the MIT license found in the
4552
4578
  * LICENSE file in the root directory of this source tree.
4553
4579
  */
4554
- var Mr;
4555
- function tc() {
4556
- return Mr || (Mr = 1, process.env.NODE_ENV !== "production" && function() {
4557
- var n = Ze, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = Symbol.iterator, p = "@@iterator";
4580
+ var Wr;
4581
+ function ic() {
4582
+ return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && function() {
4583
+ var n = et, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = Symbol.iterator, p = "@@iterator";
4558
4584
  function x(u) {
4559
4585
  if (u === null || typeof u != "object")
4560
4586
  return null;
@@ -4562,7 +4588,7 @@ function tc() {
4562
4588
  return typeof v == "function" ? v : null;
4563
4589
  }
4564
4590
  var y = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4565
- function A(u) {
4591
+ function C(u) {
4566
4592
  {
4567
4593
  for (var v = arguments.length, b = new Array(v > 1 ? v - 1 : 0), O = 1; O < v; O++)
4568
4594
  b[O - 1] = arguments[O];
@@ -4579,10 +4605,10 @@ function tc() {
4579
4605
  Y.unshift("Warning: " + v), Function.prototype.apply.call(console[u], console, Y);
4580
4606
  }
4581
4607
  }
4582
- var C = !1, L = !1, k = !1, se = !1, _ = !1, j;
4608
+ var A = !1, L = !1, k = !1, se = !1, _ = !1, j;
4583
4609
  j = Symbol.for("react.module.reference");
4584
4610
  function N(u) {
4585
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || _ || u === s || u === a || u === h || se || u === g || C || L || k || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === f || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === j || u.getModuleId !== void 0));
4611
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || _ || u === s || u === a || u === h || se || u === g || A || L || k || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === f || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === j || u.getModuleId !== void 0));
4586
4612
  }
4587
4613
  function Q(u, v, b) {
4588
4614
  var O = u.displayName;
@@ -4591,13 +4617,13 @@ function tc() {
4591
4617
  var M = v.displayName || v.name || "";
4592
4618
  return M !== "" ? b + "(" + M + ")" : b;
4593
4619
  }
4594
- function fe(u) {
4620
+ function de(u) {
4595
4621
  return u.displayName || "Context";
4596
4622
  }
4597
4623
  function z(u) {
4598
4624
  if (u == null)
4599
4625
  return null;
4600
- if (typeof u.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
4626
+ if (typeof u.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
4601
4627
  return u.displayName || u.name || null;
4602
4628
  if (typeof u == "string")
4603
4629
  return u;
@@ -4619,10 +4645,10 @@ function tc() {
4619
4645
  switch (u.$$typeof) {
4620
4646
  case c:
4621
4647
  var v = u;
4622
- return fe(v) + ".Consumer";
4648
+ return de(v) + ".Consumer";
4623
4649
  case o:
4624
4650
  var b = u;
4625
- return fe(b._context) + ".Provider";
4651
+ return de(b._context) + ".Provider";
4626
4652
  case l:
4627
4653
  return Q(u, u.render, "ForwardRef");
4628
4654
  case f:
@@ -4639,14 +4665,14 @@ function tc() {
4639
4665
  }
4640
4666
  return null;
4641
4667
  }
4642
- var W = Object.assign, ge = 0, be, Z, ee, Ee, Je, le, G;
4668
+ var W = Object.assign, ge = 0, _e, Z, ee, Ee, Je, le, G;
4643
4669
  function we() {
4644
4670
  }
4645
4671
  we.__reactDisabledLog = !0;
4646
4672
  function Le() {
4647
4673
  {
4648
4674
  if (ge === 0) {
4649
- be = console.log, Z = console.info, ee = console.warn, Ee = console.error, Je = console.group, le = console.groupCollapsed, G = console.groupEnd;
4675
+ _e = console.log, Z = console.info, ee = console.warn, Ee = console.error, Je = console.group, le = console.groupCollapsed, G = console.groupEnd;
4650
4676
  var u = {
4651
4677
  configurable: !0,
4652
4678
  enumerable: !0,
@@ -4676,7 +4702,7 @@ function tc() {
4676
4702
  };
4677
4703
  Object.defineProperties(console, {
4678
4704
  log: W({}, u, {
4679
- value: be
4705
+ value: _e
4680
4706
  }),
4681
4707
  info: W({}, u, {
4682
4708
  value: Z
@@ -4698,42 +4724,42 @@ function tc() {
4698
4724
  })
4699
4725
  });
4700
4726
  }
4701
- ge < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
4727
+ ge < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
4702
4728
  }
4703
4729
  }
4704
- var Ae = y.ReactCurrentDispatcher, Ve;
4730
+ var Ce = y.ReactCurrentDispatcher, qe;
4705
4731
  function Ke(u, v, b) {
4706
4732
  {
4707
- if (Ve === void 0)
4733
+ if (qe === void 0)
4708
4734
  try {
4709
4735
  throw Error();
4710
4736
  } catch (M) {
4711
4737
  var O = M.stack.trim().match(/\n( *(at )?)/);
4712
- Ve = O && O[1] || "";
4738
+ qe = O && O[1] || "";
4713
4739
  }
4714
4740
  return `
4715
- ` + Ve + u;
4741
+ ` + qe + u;
4716
4742
  }
4717
4743
  }
4718
- var et = !1, he;
4744
+ var tt = !1, pe;
4719
4745
  {
4720
- var tt = typeof WeakMap == "function" ? WeakMap : Map;
4721
- he = new tt();
4746
+ var nt = typeof WeakMap == "function" ? WeakMap : Map;
4747
+ pe = new nt();
4722
4748
  }
4723
4749
  function R(u, v) {
4724
- if (!u || et)
4750
+ if (!u || tt)
4725
4751
  return "";
4726
4752
  {
4727
- var b = he.get(u);
4753
+ var b = pe.get(u);
4728
4754
  if (b !== void 0)
4729
4755
  return b;
4730
4756
  }
4731
4757
  var O;
4732
- et = !0;
4758
+ tt = !0;
4733
4759
  var M = Error.prepareStackTrace;
4734
4760
  Error.prepareStackTrace = void 0;
4735
4761
  var Y;
4736
- Y = Ae.current, Ae.current = null, Le();
4762
+ Y = Ce.current, Ce.current = null, Le();
4737
4763
  try {
4738
4764
  if (v) {
4739
4765
  var V = function() {
@@ -4746,29 +4772,29 @@ function tc() {
4746
4772
  }), typeof Reflect == "object" && Reflect.construct) {
4747
4773
  try {
4748
4774
  Reflect.construct(V, []);
4749
- } catch ($e) {
4750
- O = $e;
4775
+ } catch (We) {
4776
+ O = We;
4751
4777
  }
4752
4778
  Reflect.construct(u, [], V);
4753
4779
  } else {
4754
4780
  try {
4755
4781
  V.call();
4756
- } catch ($e) {
4757
- O = $e;
4782
+ } catch (We) {
4783
+ O = We;
4758
4784
  }
4759
4785
  u.call(V.prototype);
4760
4786
  }
4761
4787
  } else {
4762
4788
  try {
4763
4789
  throw Error();
4764
- } catch ($e) {
4765
- O = $e;
4790
+ } catch (We) {
4791
+ O = We;
4766
4792
  }
4767
4793
  u();
4768
4794
  }
4769
- } catch ($e) {
4770
- if ($e && O && typeof $e.stack == "string") {
4771
- for (var B = $e.stack.split(`
4795
+ } catch (We) {
4796
+ if (We && O && typeof We.stack == "string") {
4797
+ for (var B = We.stack.split(`
4772
4798
  `), ve = O.stack.split(`
4773
4799
  `), re = B.length - 1, ie = ve.length - 1; re >= 1 && ie >= 0 && B[re] !== ve[ie]; )
4774
4800
  ie--;
@@ -4779,17 +4805,17 @@ function tc() {
4779
4805
  if (re--, ie--, ie < 0 || B[re] !== ve[ie]) {
4780
4806
  var Se = `
4781
4807
  ` + B[re].replace(" at new ", " at ");
4782
- return u.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", u.displayName)), typeof u == "function" && he.set(u, Se), Se;
4808
+ return u.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", u.displayName)), typeof u == "function" && pe.set(u, Se), Se;
4783
4809
  }
4784
4810
  while (re >= 1 && ie >= 0);
4785
4811
  break;
4786
4812
  }
4787
4813
  }
4788
4814
  } finally {
4789
- et = !1, Ae.current = Y, Re(), Error.prepareStackTrace = M;
4815
+ tt = !1, Ce.current = Y, Re(), Error.prepareStackTrace = M;
4790
4816
  }
4791
- var ft = u ? u.displayName || u.name : "", fr = ft ? Ke(ft) : "";
4792
- return typeof u == "function" && he.set(u, fr), fr;
4817
+ var ft = u ? u.displayName || u.name : "", dr = ft ? Ke(ft) : "";
4818
+ return typeof u == "function" && pe.set(u, dr), dr;
4793
4819
  }
4794
4820
  function S(u, v, b) {
4795
4821
  return R(u, !1);
@@ -4827,7 +4853,7 @@ function tc() {
4827
4853
  }
4828
4854
  return "";
4829
4855
  }
4830
- var X = Object.prototype.hasOwnProperty, de = {}, P = y.ReactDebugCurrentFrame;
4856
+ var X = Object.prototype.hasOwnProperty, ye = {}, P = y.ReactDebugCurrentFrame;
4831
4857
  function F(u) {
4832
4858
  if (u) {
4833
4859
  var v = u._owner, b = T(u.type, u._source, v ? v.type : null);
@@ -4850,15 +4876,15 @@ function tc() {
4850
4876
  } catch (re) {
4851
4877
  B = re;
4852
4878
  }
4853
- B && !(B instanceof Error) && (F(M), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", b, V, typeof B), F(null)), B instanceof Error && !(B.message in de) && (de[B.message] = !0, F(M), A("Failed %s type: %s", b, B.message), F(null));
4879
+ B && !(B instanceof Error) && (F(M), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", b, V, typeof B), F(null)), B instanceof Error && !(B.message in ye) && (ye[B.message] = !0, F(M), C("Failed %s type: %s", b, B.message), F(null));
4854
4880
  }
4855
4881
  }
4856
4882
  }
4857
- var nt = Array.isArray;
4858
- function qe(u) {
4859
- return nt(u);
4883
+ var rt = Array.isArray;
4884
+ function je(u) {
4885
+ return rt(u);
4860
4886
  }
4861
- function rt(u) {
4887
+ function st(u) {
4862
4888
  {
4863
4889
  var v = typeof Symbol == "function" && Symbol.toStringTag, b = v && u[Symbol.toStringTag] || u.constructor.name || "Object";
4864
4890
  return b;
@@ -4876,16 +4902,16 @@ function tc() {
4876
4902
  }
4877
4903
  function ke(u) {
4878
4904
  if (K(u))
4879
- return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rt(u)), te(u);
4905
+ return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", st(u)), te(u);
4880
4906
  }
4881
- var je = y.ReactCurrentOwner, Me = {
4907
+ var Me = y.ReactCurrentOwner, $e = {
4882
4908
  key: !0,
4883
4909
  ref: !0,
4884
4910
  __self: !0,
4885
4911
  __source: !0
4886
- }, rr, sr, on;
4887
- on = {};
4888
- function Vs(u) {
4912
+ }, ir, or, un;
4913
+ un = {};
4914
+ function Hs(u) {
4889
4915
  if (X.call(u, "ref")) {
4890
4916
  var v = Object.getOwnPropertyDescriptor(u, "ref").get;
4891
4917
  if (v && v.isReactWarning)
@@ -4893,7 +4919,7 @@ function tc() {
4893
4919
  }
4894
4920
  return u.ref !== void 0;
4895
4921
  }
4896
- function qs(u) {
4922
+ function zs(u) {
4897
4923
  if (X.call(u, "key")) {
4898
4924
  var v = Object.getOwnPropertyDescriptor(u, "key").get;
4899
4925
  if (v && v.isReactWarning)
@@ -4901,16 +4927,16 @@ function tc() {
4901
4927
  }
4902
4928
  return u.key !== void 0;
4903
4929
  }
4904
- function js(u, v) {
4905
- if (typeof u.ref == "string" && je.current && v && je.current.stateNode !== v) {
4906
- var b = z(je.current.type);
4907
- on[b] || (A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', z(je.current.type), u.ref), on[b] = !0);
4930
+ function Js(u, v) {
4931
+ if (typeof u.ref == "string" && Me.current && v && Me.current.stateNode !== v) {
4932
+ var b = z(Me.current.type);
4933
+ un[b] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', z(Me.current.type), u.ref), un[b] = !0);
4908
4934
  }
4909
4935
  }
4910
- function Ms(u, v) {
4936
+ function Ks(u, v) {
4911
4937
  {
4912
4938
  var b = function() {
4913
- rr || (rr = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
4939
+ ir || (ir = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
4914
4940
  };
4915
4941
  b.isReactWarning = !0, Object.defineProperty(u, "key", {
4916
4942
  get: b,
@@ -4918,10 +4944,10 @@ function tc() {
4918
4944
  });
4919
4945
  }
4920
4946
  }
4921
- function $s(u, v) {
4947
+ function Ys(u, v) {
4922
4948
  {
4923
4949
  var b = function() {
4924
- sr || (sr = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
4950
+ or || (or = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
4925
4951
  };
4926
4952
  b.isReactWarning = !0, Object.defineProperty(u, "ref", {
4927
4953
  get: b,
@@ -4929,7 +4955,7 @@ function tc() {
4929
4955
  });
4930
4956
  }
4931
4957
  }
4932
- var Ws = function(u, v, b, O, M, Y, V) {
4958
+ var Gs = function(u, v, b, O, M, Y, V) {
4933
4959
  var B = {
4934
4960
  $$typeof: e,
4935
4961
  type: u,
@@ -4955,12 +4981,12 @@ function tc() {
4955
4981
  value: M
4956
4982
  }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
4957
4983
  };
4958
- function Hs(u, v, b, O, M) {
4984
+ function Xs(u, v, b, O, M) {
4959
4985
  {
4960
4986
  var Y, V = {}, B = null, ve = null;
4961
- b !== void 0 && (ke(b), B = "" + b), qs(v) && (ke(v.key), B = "" + v.key), Vs(v) && (ve = v.ref, js(v, M));
4987
+ b !== void 0 && (ke(b), B = "" + b), zs(v) && (ke(v.key), B = "" + v.key), Hs(v) && (ve = v.ref, Js(v, M));
4962
4988
  for (Y in v)
4963
- X.call(v, Y) && !Me.hasOwnProperty(Y) && (V[Y] = v[Y]);
4989
+ X.call(v, Y) && !$e.hasOwnProperty(Y) && (V[Y] = v[Y]);
4964
4990
  if (u && u.defaultProps) {
4965
4991
  var re = u.defaultProps;
4966
4992
  for (Y in re)
@@ -4968,28 +4994,28 @@ function tc() {
4968
4994
  }
4969
4995
  if (B || ve) {
4970
4996
  var ie = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
4971
- B && Ms(V, ie), ve && $s(V, ie);
4997
+ B && Ks(V, ie), ve && Ys(V, ie);
4972
4998
  }
4973
- return Ws(u, B, ve, M, O, je.current, V);
4999
+ return Gs(u, B, ve, M, O, Me.current, V);
4974
5000
  }
4975
5001
  }
4976
- var an = y.ReactCurrentOwner, ir = y.ReactDebugCurrentFrame;
5002
+ var ln = y.ReactCurrentOwner, ar = y.ReactDebugCurrentFrame;
4977
5003
  function lt(u) {
4978
5004
  if (u) {
4979
5005
  var v = u._owner, b = T(u.type, u._source, v ? v.type : null);
4980
- ir.setExtraStackFrame(b);
5006
+ ar.setExtraStackFrame(b);
4981
5007
  } else
4982
- ir.setExtraStackFrame(null);
5008
+ ar.setExtraStackFrame(null);
4983
5009
  }
4984
- var cn;
4985
- cn = !1;
4986
- function un(u) {
5010
+ var fn;
5011
+ fn = !1;
5012
+ function hn(u) {
4987
5013
  return typeof u == "object" && u !== null && u.$$typeof === e;
4988
5014
  }
4989
- function or() {
5015
+ function cr() {
4990
5016
  {
4991
- if (an.current) {
4992
- var u = z(an.current.type);
5017
+ if (ln.current) {
5018
+ var u = z(ln.current.type);
4993
5019
  if (u)
4994
5020
  return `
4995
5021
 
@@ -4998,7 +5024,7 @@ Check the render method of \`` + u + "`.";
4998
5024
  return "";
4999
5025
  }
5000
5026
  }
5001
- function zs(u) {
5027
+ function Qs(u) {
5002
5028
  {
5003
5029
  if (u !== void 0) {
5004
5030
  var v = u.fileName.replace(/^.*[\\\/]/, ""), b = u.lineNumber;
@@ -5009,10 +5035,10 @@ Check your code at ` + v + ":" + b + ".";
5009
5035
  return "";
5010
5036
  }
5011
5037
  }
5012
- var ar = {};
5013
- function Js(u) {
5038
+ var ur = {};
5039
+ function Zs(u) {
5014
5040
  {
5015
- var v = or();
5041
+ var v = cr();
5016
5042
  if (!v) {
5017
5043
  var b = typeof u == "string" ? u : u.displayName || u.name;
5018
5044
  b && (v = `
@@ -5022,39 +5048,39 @@ Check the top-level render call using <` + b + ">.");
5022
5048
  return v;
5023
5049
  }
5024
5050
  }
5025
- function cr(u, v) {
5051
+ function lr(u, v) {
5026
5052
  {
5027
5053
  if (!u._store || u._store.validated || u.key != null)
5028
5054
  return;
5029
5055
  u._store.validated = !0;
5030
- var b = Js(v);
5031
- if (ar[b])
5056
+ var b = Zs(v);
5057
+ if (ur[b])
5032
5058
  return;
5033
- ar[b] = !0;
5059
+ ur[b] = !0;
5034
5060
  var O = "";
5035
- u && u._owner && u._owner !== an.current && (O = " It was passed a child from " + z(u._owner.type) + "."), lt(u), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, O), lt(null);
5061
+ u && u._owner && u._owner !== ln.current && (O = " It was passed a child from " + z(u._owner.type) + "."), lt(u), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, O), lt(null);
5036
5062
  }
5037
5063
  }
5038
- function ur(u, v) {
5064
+ function fr(u, v) {
5039
5065
  {
5040
5066
  if (typeof u != "object")
5041
5067
  return;
5042
- if (qe(u))
5068
+ if (je(u))
5043
5069
  for (var b = 0; b < u.length; b++) {
5044
5070
  var O = u[b];
5045
- un(O) && cr(O, v);
5071
+ hn(O) && lr(O, v);
5046
5072
  }
5047
- else if (un(u))
5073
+ else if (hn(u))
5048
5074
  u._store && (u._store.validated = !0);
5049
5075
  else if (u) {
5050
5076
  var M = x(u);
5051
5077
  if (typeof M == "function" && M !== u.entries)
5052
5078
  for (var Y = M.call(u), V; !(V = Y.next()).done; )
5053
- un(V.value) && cr(V.value, v);
5079
+ hn(V.value) && lr(V.value, v);
5054
5080
  }
5055
5081
  }
5056
5082
  }
5057
- function Ks(u) {
5083
+ function ei(u) {
5058
5084
  {
5059
5085
  var v = u.type;
5060
5086
  if (v == null || typeof v == "string")
@@ -5069,102 +5095,106 @@ Check the top-level render call using <` + b + ">.");
5069
5095
  if (b) {
5070
5096
  var O = z(v);
5071
5097
  ne(b, u.props, "prop", O, u);
5072
- } else if (v.PropTypes !== void 0 && !cn) {
5073
- cn = !0;
5098
+ } else if (v.PropTypes !== void 0 && !fn) {
5099
+ fn = !0;
5074
5100
  var M = z(v);
5075
- A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
5101
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
5076
5102
  }
5077
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
5103
+ typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
5078
5104
  }
5079
5105
  }
5080
- function Ys(u) {
5106
+ function ti(u) {
5081
5107
  {
5082
5108
  for (var v = Object.keys(u.props), b = 0; b < v.length; b++) {
5083
5109
  var O = v[b];
5084
5110
  if (O !== "children" && O !== "key") {
5085
- lt(u), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), lt(null);
5111
+ lt(u), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), lt(null);
5086
5112
  break;
5087
5113
  }
5088
5114
  }
5089
- u.ref !== null && (lt(u), A("Invalid attribute `ref` supplied to `React.Fragment`."), lt(null));
5115
+ u.ref !== null && (lt(u), C("Invalid attribute `ref` supplied to `React.Fragment`."), lt(null));
5090
5116
  }
5091
5117
  }
5092
- function lr(u, v, b, O, M, Y) {
5118
+ function hr(u, v, b, O, M, Y) {
5093
5119
  {
5094
5120
  var V = N(u);
5095
5121
  if (!V) {
5096
5122
  var B = "";
5097
5123
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
5098
- var ve = zs(M);
5099
- ve ? B += ve : B += or();
5124
+ var ve = Qs(M);
5125
+ ve ? B += ve : B += cr();
5100
5126
  var re;
5101
- u === null ? re = "null" : qe(u) ? re = "array" : u !== void 0 && u.$$typeof === e ? (re = "<" + (z(u.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : re = typeof u, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, B);
5127
+ u === null ? re = "null" : je(u) ? re = "array" : u !== void 0 && u.$$typeof === e ? (re = "<" + (z(u.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : re = typeof u, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, B);
5102
5128
  }
5103
- var ie = Hs(u, v, b, M, Y);
5129
+ var ie = Xs(u, v, b, M, Y);
5104
5130
  if (ie == null)
5105
5131
  return ie;
5106
5132
  if (V) {
5107
5133
  var Se = v.children;
5108
5134
  if (Se !== void 0)
5109
5135
  if (O)
5110
- if (qe(Se)) {
5136
+ if (je(Se)) {
5111
5137
  for (var ft = 0; ft < Se.length; ft++)
5112
- ur(Se[ft], u);
5138
+ fr(Se[ft], u);
5113
5139
  Object.freeze && Object.freeze(Se);
5114
5140
  } else
5115
- A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
5141
+ C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
5116
5142
  else
5117
- ur(Se, u);
5143
+ fr(Se, u);
5118
5144
  }
5119
- return u === r ? Ys(ie) : Ks(ie), ie;
5145
+ return u === r ? ti(ie) : ei(ie), ie;
5120
5146
  }
5121
5147
  }
5122
- function Gs(u, v, b) {
5123
- return lr(u, v, b, !0);
5148
+ function ni(u, v, b) {
5149
+ return hr(u, v, b, !0);
5124
5150
  }
5125
- function Xs(u, v, b) {
5126
- return lr(u, v, b, !1);
5151
+ function ri(u, v, b) {
5152
+ return hr(u, v, b, !1);
5127
5153
  }
5128
- var Qs = Xs, Zs = Gs;
5129
- _t.Fragment = r, _t.jsx = Qs, _t.jsxs = Zs;
5154
+ var si = ri, ii = ni;
5155
+ _t.Fragment = r, _t.jsx = si, _t.jsxs = ii;
5130
5156
  }()), _t;
5131
5157
  }
5132
5158
  (function(n) {
5133
- process.env.NODE_ENV === "production" ? n.exports = ec() : n.exports = tc();
5134
- })(Bs);
5135
- const nc = Bs.exports.jsx, me = $r(null), uc = ({
5159
+ process.env.NODE_ENV === "production" ? n.exports = sc() : n.exports = ic();
5160
+ })(Ms);
5161
+ const Hr = Ms.exports.jsx, me = zr(null), hc = ({
5136
5162
  url: n = "",
5137
5163
  tokenParams: e,
5138
5164
  socketPort: t,
5139
- siteName: r,
5140
- enableSocket: s = !0,
5141
- children: i
5165
+ swrConfig: r,
5166
+ siteName: s,
5167
+ enableSocket: i = !0,
5168
+ children: o
5142
5169
  }) => {
5143
- const o = jn(() => {
5144
- const c = new ko.FrappeApp(n, e);
5170
+ const c = St(() => {
5171
+ const l = new Vo.FrappeApp(n, e);
5145
5172
  return {
5146
5173
  url: n,
5147
5174
  tokenParams: e,
5148
- app: c,
5149
- auth: c.auth(),
5150
- db: c.db(),
5151
- call: c.call(),
5152
- file: c.file(),
5153
- socket: s ? new Za(n, r, t, e).socket : void 0,
5154
- enableSocket: s,
5175
+ app: l,
5176
+ auth: l.auth(),
5177
+ db: l.db(),
5178
+ call: l.call(),
5179
+ file: l.file(),
5180
+ socket: i ? new rc(n, s, t, e).socket : void 0,
5181
+ enableSocket: i,
5155
5182
  socketPort: t
5156
5183
  };
5157
- }, [n, e, t, s]);
5158
- return /* @__PURE__ */ nc(me.Provider, {
5159
- value: o,
5160
- children: i
5184
+ }, [n, e, t, i]);
5185
+ return /* @__PURE__ */ Hr(me.Provider, {
5186
+ value: c,
5187
+ children: /* @__PURE__ */ Hr(ua, {
5188
+ value: r,
5189
+ children: o
5190
+ })
5161
5191
  });
5162
- }, lc = (n) => {
5192
+ }, dc = (n) => {
5163
5193
  const {
5164
5194
  url: e,
5165
5195
  auth: t,
5166
5196
  tokenParams: r
5167
- } = ye(me), [s, i] = J(), o = $(() => {
5197
+ } = he(me), [s, i] = J(), o = $(() => {
5168
5198
  const m = document.cookie.split(";").find((p) => p.trim().startsWith("user_id="));
5169
5199
  if (m) {
5170
5200
  const p = m.split("=")[1];
@@ -5181,7 +5211,7 @@ const nc = Bs.exports.jsx, me = $r(null), uc = ({
5181
5211
  isLoading: a,
5182
5212
  isValidating: h,
5183
5213
  mutate: f
5184
- } = Dt(() => r && r.useToken || s ? `${e}/api/method/frappe.auth.get_logged_user` : null, () => t.getLoggedInUser(), {
5214
+ } = kt(() => r && r.useToken || s ? `${e}/api/method/frappe.auth.get_logged_user` : null, () => t.getLoggedInUser(), {
5185
5215
  onError: () => {
5186
5216
  i(null);
5187
5217
  },
@@ -5199,18 +5229,18 @@ const nc = Bs.exports.jsx, me = $r(null), uc = ({
5199
5229
  updateCurrentUser: f,
5200
5230
  getUserCookie: o
5201
5231
  };
5202
- }, Is = (n, e, t) => {
5232
+ }, $s = (n, e, t) => {
5203
5233
  let r = `${e}/api/resource/`;
5204
5234
  return t ? r += `${n}/${t}` : r += `${n}`, r;
5205
- }, fc = (n, e, t, r) => {
5235
+ }, pc = (n, e, t, r) => {
5206
5236
  const {
5207
5237
  url: s,
5208
5238
  db: i
5209
- } = ye(me);
5239
+ } = he(me);
5210
5240
  return {
5211
- ...Dt(t === void 0 ? Is(n, s, e) : t, () => i.getDoc(n, e), r)
5241
+ ...kt(t === void 0 ? $s(n, s, e) : t, () => i.getDoc(n, e), r)
5212
5242
  };
5213
- }, rc = (n) => {
5243
+ }, oc = (n) => {
5214
5244
  var t, r, s;
5215
5245
  let e = "";
5216
5246
  if (n != null && n.fields && (e += "fields=" + JSON.stringify(n == null ? void 0 : n.fields) + "&"), n != null && n.filters && (e += "filters=" + JSON.stringify(n == null ? void 0 : n.filters) + "&"), n != null && n.orFilters && (e += "or_filters=" + JSON.stringify(n == null ? void 0 : n.orFilters) + "&"), n != null && n.limit_start && (e += "limit_start=" + JSON.stringify(n == null ? void 0 : n.limit_start) + "&"), n != null && n.limit && (e += "limit=" + JSON.stringify(n == null ? void 0 : n.limit) + "&"), n != null && n.groupBy && (e += "group_by=" + String(n.groupBy) + "&"), n != null && n.orderBy) {
@@ -5218,18 +5248,18 @@ const nc = Bs.exports.jsx, me = $r(null), uc = ({
5218
5248
  e += "order_by=" + i + "&";
5219
5249
  }
5220
5250
  return n != null && n.asDict && (e += "as_dict=" + n.asDict), e;
5221
- }, hc = (n, e, t, r) => {
5251
+ }, yc = (n, e, t, r) => {
5222
5252
  const {
5223
5253
  url: s,
5224
5254
  db: i
5225
- } = ye(me);
5255
+ } = he(me);
5226
5256
  return {
5227
- ...Dt(t === void 0 ? `${Is(n, s)}?${rc(e)}` : t, () => i.getDocList(n, e), r)
5257
+ ...kt(t === void 0 ? `${$s(n, s)}?${oc(e)}` : t, () => i.getDocList(n, e), r)
5228
5258
  };
5229
- }, dc = () => {
5259
+ }, mc = () => {
5230
5260
  const {
5231
5261
  db: n
5232
- } = ye(me), [e, t] = J(!1), [r, s] = J(null), [i, o] = J(!1), c = $(() => {
5262
+ } = he(me), [e, t] = J(!1), [r, s] = J(null), [i, o] = J(!1), c = $(() => {
5233
5263
  t(!1), s(null), o(!1);
5234
5264
  }, []);
5235
5265
  return {
@@ -5241,10 +5271,10 @@ const nc = Bs.exports.jsx, me = $r(null), uc = ({
5241
5271
  isCompleted: i,
5242
5272
  reset: c
5243
5273
  };
5244
- }, pc = () => {
5274
+ }, gc = () => {
5245
5275
  const {
5246
5276
  db: n
5247
- } = ye(me), [e, t] = J(!1), [r, s] = J(null), [i, o] = J(!1), c = $(() => {
5277
+ } = he(me), [e, t] = J(!1), [r, s] = J(null), [i, o] = J(!1), c = $(() => {
5248
5278
  t(!1), s(null), o(!1);
5249
5279
  }, []);
5250
5280
  return {
@@ -5256,10 +5286,10 @@ const nc = Bs.exports.jsx, me = $r(null), uc = ({
5256
5286
  reset: c,
5257
5287
  isCompleted: i
5258
5288
  };
5259
- }, yc = () => {
5289
+ }, vc = () => {
5260
5290
  const {
5261
5291
  db: n
5262
- } = ye(me), [e, t] = J(!1), [r, s] = J(null), [i, o] = J(!1), c = $(() => {
5292
+ } = he(me), [e, t] = J(!1), [r, s] = J(null), [i, o] = J(!1), c = $(() => {
5263
5293
  t(!1), s(null), o(!1);
5264
5294
  }, []);
5265
5295
  return {
@@ -5272,20 +5302,20 @@ const nc = Bs.exports.jsx, me = $r(null), uc = ({
5272
5302
  isCompleted: i
5273
5303
  };
5274
5304
  };
5275
- function Us(n) {
5305
+ function Ws(n) {
5276
5306
  const e = [];
5277
5307
  for (let t in n)
5278
5308
  e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
5279
5309
  return e.join("&");
5280
5310
  }
5281
- const mc = (n, e, t = !1, r = !1, s, i) => {
5311
+ const wc = (n, e, t = !1, r = !1, s, i) => {
5282
5312
  const {
5283
5313
  url: o,
5284
5314
  db: c
5285
- } = ye(me);
5315
+ } = he(me);
5286
5316
  return {
5287
- ...Dt(s === void 0 ? (() => {
5288
- const h = Us(t ? {
5317
+ ...kt(s === void 0 ? (() => {
5318
+ const h = Ws(t ? {
5289
5319
  doctype: n,
5290
5320
  filters: e != null ? e : [],
5291
5321
  cache: t,
@@ -5298,17 +5328,17 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5298
5328
  return `${o}/api/method/frappe.client.get_count?${h}`;
5299
5329
  })() : s, () => c.getCount(n, e, t, r), i)
5300
5330
  };
5301
- }, sc = (n, e, t, r) => {
5331
+ }, ac = (n, e, t, r) => {
5302
5332
  const {
5303
5333
  call: s
5304
- } = ye(me), i = Us(e != null ? e : {}), o = `${n}?${i}`;
5334
+ } = he(me), i = Ws(e != null ? e : {}), o = `${n}?${i}`;
5305
5335
  return {
5306
- ...Dt(t === void 0 ? o : t, () => s.get(n, e), r)
5336
+ ...kt(t === void 0 ? o : t, () => s.get(n, e), r)
5307
5337
  };
5308
- }, gc = (n) => {
5338
+ }, bc = (n) => {
5309
5339
  const {
5310
5340
  call: e
5311
- } = ye(me), [t, r] = J(null), [s, i] = J(!1), [o, c] = J(null), [l, a] = J(!1), h = $(() => {
5341
+ } = he(me), [t, r] = J(null), [s, i] = J(!1), [o, c] = J(null), [l, a] = J(!1), h = $(() => {
5312
5342
  r(null), i(!1), c(null), a(!1);
5313
5343
  }, []);
5314
5344
  return {
@@ -5321,10 +5351,10 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5321
5351
  reset: h,
5322
5352
  isCompleted: l
5323
5353
  };
5324
- }, vc = (n) => {
5354
+ }, _c = (n) => {
5325
5355
  const {
5326
5356
  call: e
5327
- } = ye(me), [t, r] = J(null), [s, i] = J(!1), [o, c] = J(null), [l, a] = J(!1), h = $(() => {
5357
+ } = he(me), [t, r] = J(null), [s, i] = J(!1), [o, c] = J(null), [l, a] = J(!1), h = $(() => {
5328
5358
  r(null), i(!1), c(null), a(!1);
5329
5359
  }, []);
5330
5360
  return {
@@ -5337,10 +5367,10 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5337
5367
  reset: h,
5338
5368
  isCompleted: l
5339
5369
  };
5340
- }, wc = (n) => {
5370
+ }, Ec = (n) => {
5341
5371
  const {
5342
5372
  call: e
5343
- } = ye(me), [t, r] = J(null), [s, i] = J(!1), [o, c] = J(null), [l, a] = J(!1), h = $(() => {
5373
+ } = he(me), [t, r] = J(null), [s, i] = J(!1), [o, c] = J(null), [l, a] = J(!1), h = $(() => {
5344
5374
  r(null), i(!1), c(null), a(!1);
5345
5375
  }, []);
5346
5376
  return {
@@ -5353,10 +5383,10 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5353
5383
  reset: h,
5354
5384
  isCompleted: l
5355
5385
  };
5356
- }, bc = () => {
5386
+ }, Rc = () => {
5357
5387
  const {
5358
5388
  file: n
5359
- } = ye(me), [e, t] = J(0), [r, s] = J(!1), [i, o] = J(null), [c, l] = J(!1), a = $(async (f, w, g) => (h(), s(!0), n.uploadFile(f, w, (m, p) => {
5389
+ } = he(me), [e, t] = J(0), [r, s] = J(!1), [i, o] = J(null), [c, l] = J(!1), a = $(async (f, w, g) => (h(), s(!0), n.uploadFile(f, w, (m, p) => {
5360
5390
  p && t(Math.round(m / p * 100));
5361
5391
  }, g).then((m) => (l(!0), t(100), s(!1), m.data.message)).catch((m) => {
5362
5392
  throw console.error(m), o(m), s(!1), m;
@@ -5371,15 +5401,15 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5371
5401
  error: i,
5372
5402
  reset: h
5373
5403
  };
5374
- }, _c = (n, e, t = [], r = 20, s = 250) => {
5375
- const i = ic(e, s);
5376
- return sc("frappe.desk.search.search_link", {
5404
+ }, Sc = (n, e, t = [], r = 20, s = 250) => {
5405
+ const i = cc(e, s);
5406
+ return ac("frappe.desk.search.search_link", {
5377
5407
  doctype: n,
5378
5408
  page_length: r,
5379
5409
  txt: i,
5380
5410
  filters: JSON.stringify(t != null ? t : [])
5381
5411
  });
5382
- }, ic = (n, e) => {
5412
+ }, cc = (n, e) => {
5383
5413
  const [t, r] = J(n);
5384
5414
  return pt(() => {
5385
5415
  const s = setTimeout(() => {
@@ -5389,10 +5419,10 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5389
5419
  clearTimeout(s);
5390
5420
  };
5391
5421
  }, [n, e]), t;
5392
- }, qn = (n, e) => {
5422
+ }, $n = (n, e) => {
5393
5423
  const {
5394
5424
  socket: t
5395
- } = ye(me);
5425
+ } = he(me);
5396
5426
  pt(() => {
5397
5427
  t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider.");
5398
5428
  let r = t == null ? void 0 : t.on(n, e);
@@ -5400,15 +5430,15 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5400
5430
  r == null || r.off(n);
5401
5431
  };
5402
5432
  }, [n, e]);
5403
- }, Ec = (n, e, t, r = !0) => {
5433
+ }, Tc = (n, e, t, r = !0) => {
5404
5434
  const {
5405
5435
  socket: s
5406
- } = ye(me), [i, o] = J([]);
5436
+ } = he(me), [i, o] = J([]);
5407
5437
  pt(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), s == null || s.io.on("reconnect", () => {
5408
5438
  s == null || s.emit("doc_subscribe", n, e);
5409
5439
  }), r && (s == null || s.emit("doc_open", n, e)), () => {
5410
5440
  s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
5411
- }), [n, e, r]), qn("doc_update", t);
5441
+ }), [n, e, r]), $n("doc_update", t);
5412
5442
  const c = $(() => {
5413
5443
  s == null || s.emit("doc_open", n, e);
5414
5444
  }, [n, e]), l = $(() => {
@@ -5416,43 +5446,43 @@ const mc = (n, e, t = !1, r = !1, s, i) => {
5416
5446
  }, [n, e]), a = $((h) => {
5417
5447
  h.doctype === n && h.docname === e && o(h.users);
5418
5448
  }, [n, e]);
5419
- return qn("doc_viewers", a), {
5449
+ return $n("doc_viewers", a), {
5420
5450
  viewers: i,
5421
5451
  emitDocOpen: c,
5422
5452
  emitDocClose: l
5423
5453
  };
5424
- }, Rc = (n, e) => {
5454
+ }, Oc = (n, e) => {
5425
5455
  const {
5426
5456
  socket: t
5427
- } = ye(me);
5457
+ } = he(me);
5428
5458
  pt(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), t == null || t.io.on("reconnect", () => {
5429
5459
  t == null || t.emit("doctype_subscribe", n);
5430
5460
  }), () => {
5431
5461
  t == null || t.emit("doctype_unsubscribe", n);
5432
- }), [n]), qn("list_update", e);
5462
+ }), [n]), $n("list_update", e);
5433
5463
  };
5434
5464
  export {
5435
5465
  me as FrappeContext,
5436
- uc as FrappeProvider,
5437
- rc as getDocListQueryString,
5438
- Is as getRequestURL,
5439
- lc as useFrappeAuth,
5440
- dc as useFrappeCreateDoc,
5441
- wc as useFrappeDeleteCall,
5442
- yc as useFrappeDeleteDoc,
5443
- Rc as useFrappeDocTypeEventListener,
5444
- Ec as useFrappeDocumentEventListener,
5445
- qn as useFrappeEventListener,
5446
- bc as useFrappeFileUpload,
5447
- sc as useFrappeGetCall,
5448
- fc as useFrappeGetDoc,
5449
- mc as useFrappeGetDocCount,
5450
- hc as useFrappeGetDocList,
5451
- gc as useFrappePostCall,
5452
- vc as useFrappePutCall,
5453
- pc as useFrappeUpdateDoc,
5454
- Dt as useSWR,
5455
- ta as useSWRConfig,
5456
- cc as useSWRInfinite,
5457
- _c as useSearch
5466
+ hc as FrappeProvider,
5467
+ oc as getDocListQueryString,
5468
+ $s as getRequestURL,
5469
+ dc as useFrappeAuth,
5470
+ mc as useFrappeCreateDoc,
5471
+ Ec as useFrappeDeleteCall,
5472
+ vc as useFrappeDeleteDoc,
5473
+ Oc as useFrappeDocTypeEventListener,
5474
+ Tc as useFrappeDocumentEventListener,
5475
+ $n as useFrappeEventListener,
5476
+ Rc as useFrappeFileUpload,
5477
+ ac as useFrappeGetCall,
5478
+ pc as useFrappeGetDoc,
5479
+ wc as useFrappeGetDocCount,
5480
+ yc as useFrappeGetDocList,
5481
+ bc as useFrappePostCall,
5482
+ _c as useFrappePutCall,
5483
+ gc as useFrappeUpdateDoc,
5484
+ kt as useSWR,
5485
+ sa as useSWRConfig,
5486
+ fc as useSWRInfinite,
5487
+ Sc as useSearch
5458
5488
  };