frappe-react-sdk 1.4.3 → 1.5.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,6 +1,6 @@
1
1
  var Ws = Object.defineProperty;
2
2
  var Js = (n, e, t) => e in n ? Ws(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var ke = (n, e, t) => (Js(n, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var De = (n, e, t) => (Js(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import Me, { createContext as Pr, useContext as Z, useEffect as Ze, useLayoutEffect as zs, useRef as Ie, useMemo as Br, useCallback as V, useDebugValue as Ks, useState as U } from "react";
5
5
  var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, rn = {}, at = {}, gt = {}, ue = F && F.__assign || function() {
6
6
  return ue = Object.assign || function(n) {
@@ -273,7 +273,7 @@ var Gs = function() {
273
273
  return n.prototype.getDoc = function(e, t) {
274
274
  return t === void 0 && (t = ""), je(this, void 0, void 0, function() {
275
275
  return qe(this, function(r) {
276
- return [2, this.axios.get("/api/resource/".concat(e, "/").concat(t)).then(function(s) {
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) {
279
279
  var i, o;
@@ -298,8 +298,8 @@ var Gs = function() {
298
298
  }), [2, this.axios.get("/api/resource/".concat(e), { params: s }).then(function(E) {
299
299
  return E.data.data;
300
300
  }).catch(function(E) {
301
- var b, R;
302
- throw K(K({}, E.response.data), { httpStatus: E.response.status, httpStatusText: E.response.statusText, message: "There was an error while fetching the documents.", exception: (R = (b = E.response.data.exception) !== null && b !== void 0 ? b : E.response.data.exc_type) !== null && R !== void 0 ? R : "" });
301
+ var w, R;
302
+ throw K(K({}, E.response.data), { httpStatus: E.response.status, httpStatusText: E.response.statusText, message: "There was an error while fetching the documents.", exception: (R = (w = E.response.data.exception) !== null && w !== void 0 ? w : E.response.data.exc_type) !== null && R !== void 0 ? R : "" });
303
303
  })];
304
304
  });
305
305
  });
@@ -317,7 +317,7 @@ var Gs = function() {
317
317
  }, n.prototype.updateDoc = function(e, t, r) {
318
318
  return je(this, void 0, void 0, function() {
319
319
  return qe(this, function(s) {
320
- return [2, this.axios.put("/api/resource/".concat(e, "/").concat(t), K({}, r)).then(function(i) {
320
+ return [2, this.axios.put("/api/resource/".concat(e, "/").concat(t && encodeURIComponent(t)), K({}, r)).then(function(i) {
321
321
  return i.data.data;
322
322
  }).catch(function(i) {
323
323
  var o, c, l;
@@ -328,7 +328,7 @@ var Gs = function() {
328
328
  }, n.prototype.deleteDoc = function(e, t) {
329
329
  return je(this, void 0, void 0, function() {
330
330
  return qe(this, function(r) {
331
- return [2, this.axios.delete("/api/resource/".concat(e, "/").concat(t)).then(function(s) {
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) {
334
334
  var i, o;
@@ -371,7 +371,7 @@ var Gs = function() {
371
371
  }, n;
372
372
  }();
373
373
  vt.FrappeDB = Gs;
374
- var wt = {}, Ve = {};
374
+ var bt = {}, Ve = {};
375
375
  function Ur(n, e) {
376
376
  return function() {
377
377
  return n.apply(e, arguments);
@@ -398,7 +398,7 @@ const ei = Jt("string"), fe = Jt("function"), jr = Jt("number"), zt = (n) => n !
398
398
  let e;
399
399
  return n && (typeof FormData == "function" && n instanceof FormData || fe(n.append) && ((e = Wt(n)) === "formdata" || e === "object" && fe(n.toString) && n.toString() === "[object FormData]"));
400
400
  }, ci = Ee("URLSearchParams"), ui = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
401
- function bt(n, e, { allOwnKeys: t = !1 } = {}) {
401
+ function wt(n, e, { allOwnKeys: t = !1 } = {}) {
402
402
  if (n === null || typeof n > "u")
403
403
  return;
404
404
  let r, s;
@@ -428,10 +428,10 @@ function vn() {
428
428
  It(e[i]) && It(r) ? e[i] = vn(e[i], r) : It(r) ? e[i] = vn({}, r) : et(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] && bt(arguments[r], t);
431
+ arguments[r] && wt(arguments[r], t);
432
432
  return e;
433
433
  }
434
- const li = (n, e, t, { allOwnKeys: r } = {}) => (bt(e, (s, i) => {
434
+ const li = (n, e, t, { allOwnKeys: r } = {}) => (wt(e, (s, i) => {
435
435
  t && fe(s) ? n[i] = Ur(s, t) : n[i] = s;
436
436
  }, { allOwnKeys: r }), n), fi = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), hi = (n, e, t, r) => {
437
437
  n.prototype = Object.create(e.prototype, r), n.prototype.constructor = n, Object.defineProperty(n, "super", {
@@ -477,14 +477,14 @@ const li = (n, e, t, { allOwnKeys: r } = {}) => (bt(e, (s, i) => {
477
477
  for (; (t = n.exec(e)) !== null; )
478
478
  r.push(t);
479
479
  return r;
480
- }, wi = Ee("HTMLFormElement"), bi = (n) => n.toLowerCase().replace(
480
+ }, bi = Ee("HTMLFormElement"), wi = (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
485
  ), sr = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), _i = Ee("RegExp"), $r = (n, e) => {
486
486
  const t = Object.getOwnPropertyDescriptors(n), r = {};
487
- bt(t, (s, i) => {
487
+ wt(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);
@@ -533,7 +533,7 @@ const Ai = (n) => {
533
533
  if (!("toJSON" in r)) {
534
534
  e[s] = r;
535
535
  const i = et(r) ? [] : {};
536
- return bt(r, (o, c) => {
536
+ return wt(r, (o, c) => {
537
537
  const l = t(o, s + 1);
538
538
  !pt(l) && (i[c] = l);
539
539
  }), e[s] = void 0, i;
@@ -542,7 +542,7 @@ const Ai = (n) => {
542
542
  return r;
543
543
  };
544
544
  return t(n, 0);
545
- }, Ci = Ee("AsyncFunction"), ki = (n) => n && (zt(n) || fe(n)) && fe(n.then) && fe(n.catch);
545
+ }, Ci = Ee("AsyncFunction"), Di = (n) => n && (zt(n) || fe(n)) && fe(n.then) && fe(n.catch);
546
546
  var d = {
547
547
  isArray: et,
548
548
  isArrayBuffer: Ir,
@@ -564,7 +564,7 @@ var d = {
564
564
  isURLSearchParams: ci,
565
565
  isTypedArray: mi,
566
566
  isFileList: ii,
567
- forEach: bt,
567
+ forEach: wt,
568
568
  merge: vn,
569
569
  extend: li,
570
570
  trim: ui,
@@ -577,13 +577,13 @@ var d = {
577
577
  toArray: yi,
578
578
  forEachEntry: gi,
579
579
  matchAll: vi,
580
- isHTMLForm: wi,
580
+ isHTMLForm: bi,
581
581
  hasOwnProperty: sr,
582
582
  hasOwnProp: sr,
583
583
  reduceDescriptors: $r,
584
584
  freezeMethods: Ei,
585
585
  toObjectSet: Si,
586
- toCamelCase: bi,
586
+ toCamelCase: wi,
587
587
  noop: Ri,
588
588
  toFiniteNumber: Ti,
589
589
  findKey: qr,
@@ -594,7 +594,7 @@ var d = {
594
594
  isSpecCompliantForm: xi,
595
595
  toJSONObject: Ai,
596
596
  isAsyncFn: Ci,
597
- isThenable: ki
597
+ isThenable: Di
598
598
  };
599
599
  function C(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);
@@ -641,8 +641,8 @@ C.from = (n, e, t, r, s, i) => {
641
641
  return l !== Error.prototype;
642
642
  }, (c) => c !== "isAxiosError"), C.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 Di = null;
645
- function wn(n) {
644
+ var ki = null;
645
+ function bn(n) {
646
646
  return d.isPlainObject(n) || d.isArray(n);
647
647
  }
648
648
  function zr(n) {
@@ -654,7 +654,7 @@ function or(n, e, t) {
654
654
  }).join(t ? "." : "") : e;
655
655
  }
656
656
  function Ni(n) {
657
- return d.isArray(n) && !n.some(wn);
657
+ return d.isArray(n) && !n.some(bn);
658
658
  }
659
659
  const Li = d.toFlatObject(d, {}, null, function(e) {
660
660
  return /^is[A-Z]/.test(e);
@@ -682,37 +682,37 @@ function Kt(n, e, t) {
682
682
  return d.isArrayBuffer(p) || d.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
683
683
  }
684
684
  function f(p, y, E) {
685
- let b = p;
685
+ let w = p;
686
686
  if (p && !E && typeof p == "object") {
687
687
  if (d.endsWith(y, "{}"))
688
688
  y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
689
- else if (d.isArray(p) && Ni(p) || (d.isFileList(p) || d.endsWith(y, "[]")) && (b = d.toArray(p)))
690
- return y = zr(y), b.forEach(function(O, x) {
689
+ else if (d.isArray(p) && Ni(p) || (d.isFileList(p) || d.endsWith(y, "[]")) && (w = d.toArray(p)))
690
+ return y = zr(y), w.forEach(function(O, x) {
691
691
  !(d.isUndefined(O) || O === null) && e.append(
692
692
  o === !0 ? or([y], x, i) : o === null ? y : y + "[]",
693
693
  a(O)
694
694
  );
695
695
  }), !1;
696
696
  }
697
- return wn(p) ? !0 : (e.append(or(E, y, i), a(p)), !1);
697
+ return bn(p) ? !0 : (e.append(or(E, y, i), a(p)), !1);
698
698
  }
699
699
  const h = [], g = Object.assign(Li, {
700
700
  defaultVisitor: f,
701
701
  convertValue: a,
702
- isVisitable: wn
702
+ isVisitable: bn
703
703
  });
704
704
  function v(p, y) {
705
705
  if (!d.isUndefined(p)) {
706
706
  if (h.indexOf(p) !== -1)
707
707
  throw Error("Circular reference detected in " + y.join("."));
708
- h.push(p), d.forEach(p, function(b, R) {
709
- (!(d.isUndefined(b) || b === null) && s.call(
708
+ h.push(p), d.forEach(p, function(w, R) {
709
+ (!(d.isUndefined(w) || w === null) && s.call(
710
710
  e,
711
- b,
711
+ w,
712
712
  d.isString(R) ? R.trim() : R,
713
713
  y,
714
714
  g
715
- )) === !0 && v(b, y ? y.concat(R) : [R]);
715
+ )) === !0 && v(w, y ? y.concat(R) : [R]);
716
716
  }), h.pop();
717
717
  }
718
718
  }
@@ -806,14 +806,14 @@ var Mi = /* @__PURE__ */ Object.freeze({
806
806
  hasBrowserEnv: Xr,
807
807
  hasStandardBrowserWebWorkerEnv: Vi,
808
808
  hasStandardBrowserEnv: qi
809
- }), we = {
809
+ }), be = {
810
810
  ...Mi,
811
811
  ...ji
812
812
  };
813
813
  function $i(n, e) {
814
- return Kt(n, new we.classes.URLSearchParams(), Object.assign({
814
+ return Kt(n, new be.classes.URLSearchParams(), Object.assign({
815
815
  visitor: function(t, r, s, i) {
816
- return we.isNode && d.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
816
+ return be.isNode && d.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
817
817
  }
818
818
  }, e));
819
819
  }
@@ -902,8 +902,8 @@ const Un = {
902
902
  maxContentLength: -1,
903
903
  maxBodyLength: -1,
904
904
  env: {
905
- FormData: we.classes.FormData,
906
- Blob: we.classes.Blob
905
+ FormData: be.classes.FormData,
906
+ Blob: be.classes.Blob
907
907
  },
908
908
  validateStatus: function(e) {
909
909
  return e >= 200 && e < 300;
@@ -1132,7 +1132,7 @@ function Zi(n, e, t) {
1132
1132
  t
1133
1133
  ));
1134
1134
  }
1135
- var eo = we.hasStandardBrowserEnv ? {
1135
+ var eo = be.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("; ");
@@ -1162,7 +1162,7 @@ function no(n, e) {
1162
1162
  function es(n, e) {
1163
1163
  return n && !to(e) ? no(n, e) : e;
1164
1164
  }
1165
- var ro = we.hasStandardBrowserEnv ? function() {
1165
+ var ro = be.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) {
@@ -1236,10 +1236,10 @@ var ao = oo && function(n) {
1236
1236
  }
1237
1237
  let f;
1238
1238
  if (d.isFormData(s)) {
1239
- if (we.hasStandardBrowserEnv || we.hasStandardBrowserWebWorkerEnv)
1239
+ if (be.hasStandardBrowserEnv || be.hasStandardBrowserWebWorkerEnv)
1240
1240
  i.setContentType(!1);
1241
1241
  else if ((f = i.getContentType()) !== !1) {
1242
- const [y, ...E] = f ? f.split(";").map((b) => b.trim()).filter(Boolean) : [];
1242
+ const [y, ...E] = f ? f.split(";").map((w) => w.trim()).filter(Boolean) : [];
1243
1243
  i.setContentType([y || "multipart/form-data", ...E].join("; "));
1244
1244
  }
1245
1245
  }
@@ -1255,7 +1255,7 @@ var ao = oo && function(n) {
1255
1255
  return;
1256
1256
  const y = Ce.from(
1257
1257
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1258
- ), b = {
1258
+ ), w = {
1259
1259
  data: !o || o === "text" || o === "json" ? h.responseText : h.response,
1260
1260
  status: h.status,
1261
1261
  statusText: h.statusText,
@@ -1267,7 +1267,7 @@ var ao = oo && function(n) {
1267
1267
  t(O), a();
1268
1268
  }, function(O) {
1269
1269
  r(O), a();
1270
- }, b), h = null;
1270
+ }, w), h = null;
1271
1271
  }
1272
1272
  if ("onloadend" in h ? h.onloadend = v : h.onreadystatechange = function() {
1273
1273
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(v);
@@ -1277,35 +1277,35 @@ var ao = oo && function(n) {
1277
1277
  r(new C("Network Error", C.ERR_NETWORK, n, h)), h = null;
1278
1278
  }, h.ontimeout = function() {
1279
1279
  let E = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1280
- const b = n.transitional || Gr;
1280
+ const w = n.transitional || Gr;
1281
1281
  n.timeoutErrorMessage && (E = n.timeoutErrorMessage), r(new C(
1282
1282
  E,
1283
- b.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
1283
+ w.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
1284
1284
  n,
1285
1285
  h
1286
1286
  )), h = null;
1287
- }, we.hasStandardBrowserEnv && (c && d.isFunction(c) && (c = c(n)), c || c !== !1 && ro(g))) {
1287
+ }, be.hasStandardBrowserEnv && (c && d.isFunction(c) && (c = c(n)), c || c !== !1 && ro(g))) {
1288
1288
  const y = n.xsrfHeaderName && n.xsrfCookieName && eo.read(n.xsrfCookieName);
1289
1289
  y && i.set(n.xsrfHeaderName, y);
1290
1290
  }
1291
- s === void 0 && i.setContentType(null), "setRequestHeader" in h && d.forEach(i.toJSON(), function(E, b) {
1292
- h.setRequestHeader(b, E);
1291
+ s === void 0 && i.setContentType(null), "setRequestHeader" in h && d.forEach(i.toJSON(), function(E, w) {
1292
+ h.setRequestHeader(w, E);
1293
1293
  }), d.isUndefined(n.withCredentials) || (h.withCredentials = !!n.withCredentials), o && o !== "json" && (h.responseType = n.responseType), typeof n.onDownloadProgress == "function" && h.addEventListener("progress", lr(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && h.upload && h.upload.addEventListener("progress", lr(n.onUploadProgress)), (n.cancelToken || n.signal) && (l = (y) => {
1294
1294
  !h || (r(!y || y.type ? new _t(null, n, h) : y), h.abort(), h = null);
1295
1295
  }, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l)));
1296
1296
  const p = so(g);
1297
- if (p && we.protocols.indexOf(p) === -1) {
1297
+ if (p && be.protocols.indexOf(p) === -1) {
1298
1298
  r(new C("Unsupported protocol " + p + ":", C.ERR_BAD_REQUEST, n));
1299
1299
  return;
1300
1300
  }
1301
1301
  h.send(s || null);
1302
1302
  });
1303
1303
  };
1304
- const bn = {
1305
- http: Di,
1304
+ const wn = {
1305
+ http: ki,
1306
1306
  xhr: ao
1307
1307
  };
1308
- d.forEach(bn, (n, e) => {
1308
+ d.forEach(wn, (n, e) => {
1309
1309
  if (n) {
1310
1310
  try {
1311
1311
  Object.defineProperty(n, "name", { value: e });
@@ -1324,7 +1324,7 @@ var ts = {
1324
1324
  for (let i = 0; i < e; i++) {
1325
1325
  t = n[i];
1326
1326
  let o;
1327
- if (r = t, !co(t) && (r = bn[(o = String(t)).toLowerCase()], r === void 0))
1327
+ if (r = t, !co(t) && (r = wn[(o = String(t)).toLowerCase()], r === void 0))
1328
1328
  throw new C(`Unknown adapter '${o}'`);
1329
1329
  if (r)
1330
1330
  break;
@@ -1344,7 +1344,7 @@ var ts = {
1344
1344
  }
1345
1345
  return r;
1346
1346
  },
1347
- adapters: bn
1347
+ adapters: wn
1348
1348
  };
1349
1349
  function cn(n) {
1350
1350
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
@@ -1481,7 +1481,7 @@ var _n = {
1481
1481
  assertOptions: uo,
1482
1482
  validators: jn
1483
1483
  };
1484
- const De = _n.validators;
1484
+ const ke = _n.validators;
1485
1485
  class Ht {
1486
1486
  constructor(e) {
1487
1487
  this.defaults = e, this.interceptors = {
@@ -1507,14 +1507,14 @@ class Ht {
1507
1507
  typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Qe(this.defaults, t);
1508
1508
  const { transitional: r, paramsSerializer: s, headers: i } = t;
1509
1509
  r !== void 0 && _n.assertOptions(r, {
1510
- silentJSONParsing: De.transitional(De.boolean),
1511
- forcedJSONParsing: De.transitional(De.boolean),
1512
- clarifyTimeoutError: De.transitional(De.boolean)
1510
+ silentJSONParsing: ke.transitional(ke.boolean),
1511
+ forcedJSONParsing: ke.transitional(ke.boolean),
1512
+ clarifyTimeoutError: ke.transitional(ke.boolean)
1513
1513
  }, !1), s != null && (d.isFunction(s) ? t.paramsSerializer = {
1514
1514
  serialize: s
1515
1515
  } : _n.assertOptions(s, {
1516
- encode: De.function,
1517
- serialize: De.function
1516
+ encode: ke.function,
1517
+ serialize: ke.function
1518
1518
  }, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase();
1519
1519
  let o = i && d.merge(
1520
1520
  i.common,
@@ -1808,7 +1808,7 @@ var Xe = F && F.__assign || function() {
1808
1808
  }
1809
1809
  a((r = r.apply(n, e || [])).next());
1810
1810
  });
1811
- }, wo = F && F.__generator || function(n, e) {
1811
+ }, bo = F && F.__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 Xe = F && F.__assign || function() {
1873
1873
  return { value: a[0] ? a[1] : void 0, done: !0 };
1874
1874
  }
1875
1875
  };
1876
- Object.defineProperty(wt, "__esModule", { value: !0 });
1877
- wt.FrappeFileUpload = void 0;
1878
- var bo = Ve, _o = function() {
1876
+ Object.defineProperty(bt, "__esModule", { value: !0 });
1877
+ bt.FrappeFileUpload = void 0;
1878
+ var wo = Ve, _o = 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
1883
  return s === void 0 && (s = "upload_file"), vo(this, void 0, void 0, function() {
1884
1884
  var i, o, c, l, a, f, h, g;
1885
- return wo(this, function(v) {
1885
+ return bo(this, function(v) {
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, f = t.docname, h = t.fieldname, g = t.otherData, o && i.append("is_private", "1"), c && i.append("folder", c), l && i.append("file_url", l), a && f && (i.append("doctype", a), i.append("docname", f), h && i.append("fieldname", h)), g && Object.keys(g).forEach(function(p) {
1887
1887
  var y = g[p];
1888
1888
  i.append(p, y);
@@ -1890,7 +1890,7 @@ var bo = Ve, _o = function() {
1890
1890
  onUploadProgress: function(p) {
1891
1891
  r && r(p.loaded, p.total, p);
1892
1892
  },
1893
- headers: Xe(Xe({}, (0, bo.getRequestHeaders)(this.useToken, this.tokenType, this.token)), { "Content-Type": "multipart/form-data" })
1893
+ headers: Xe(Xe({}, (0, wo.getRequestHeaders)(this.useToken, this.tokenType, this.token)), { "Content-Type": "multipart/form-data" })
1894
1894
  }).catch(function(p) {
1895
1895
  var y, E;
1896
1896
  throw Xe(Xe({}, p.response.data), { httpStatus: p.response.status, httpStatusText: p.response.statusText, message: (y = p.response.data.message) !== null && y !== void 0 ? y : "There was an error while uploading the file.", exception: (E = p.response.data.exception) !== null && E !== void 0 ? E : "" });
@@ -1899,13 +1899,13 @@ var bo = Ve, _o = function() {
1899
1899
  });
1900
1900
  }, n;
1901
1901
  }();
1902
- wt.FrappeFileUpload = _o;
1902
+ bt.FrappeFileUpload = _o;
1903
1903
  var yr;
1904
1904
  function Eo() {
1905
1905
  if (yr)
1906
1906
  return at;
1907
1907
  yr = 1, Object.defineProperty(at, "__esModule", { value: !0 }), at.FrappeApp = void 0;
1908
- var n = is(), e = gt, t = vt, r = wt, s = Ve, i = function() {
1908
+ var n = is(), e = gt, t = vt, r = bt, s = Ve, i = function() {
1909
1909
  function o(c, l, a) {
1910
1910
  var f, h;
1911
1911
  this.url = c, this.name = a != null ? a : "FrappeApp", this.useToken = (f = l == null ? void 0 : l.useToken) !== null && f !== void 0 ? f : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (h = l == null ? void 0 : l.type) !== null && h !== void 0 ? h : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
@@ -1931,7 +1931,7 @@ var Gt = {}, ge = F && F.__assign || function() {
1931
1931
  }
1932
1932
  return n;
1933
1933
  }, ge.apply(this, arguments);
1934
- }, kt = F && F.__awaiter || function(n, e, t, r) {
1934
+ }, Dt = F && F.__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 Gt = {}, ge = F && F.__assign || function() {
1957
1957
  }
1958
1958
  a((r = r.apply(n, e || [])).next());
1959
1959
  });
1960
- }, Dt = F && F.__generator || function(n, e) {
1960
+ }, kt = F && F.__generator || function(n, e) {
1961
1961
  var t = { label: 0, sent: function() {
1962
1962
  if (i[0] & 1)
1963
1963
  throw i[1];
@@ -2029,8 +2029,8 @@ var So = function() {
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 kt(this, void 0, void 0, function() {
2033
- return Dt(this, function(t) {
2032
+ return Dt(this, void 0, void 0, function() {
2033
+ return kt(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 So = function() {
2046
2046
  });
2047
2047
  });
2048
2048
  }, n.prototype.getLoggedInUser = function() {
2049
- return kt(this, void 0, void 0, function() {
2050
- return Dt(this, function(e) {
2049
+ return Dt(this, void 0, void 0, function() {
2050
+ return kt(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 So = function() {
2057
2057
  });
2058
2058
  });
2059
2059
  }, n.prototype.logout = function() {
2060
- return kt(this, void 0, void 0, function() {
2061
- return Dt(this, function(e) {
2060
+ return Dt(this, void 0, void 0, function() {
2061
+ return kt(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 So = function() {
2067
2067
  });
2068
2068
  });
2069
2069
  }, n.prototype.forgetPassword = function(e) {
2070
- return kt(this, void 0, void 0, function() {
2071
- return Dt(this, function(t) {
2070
+ return Dt(this, void 0, void 0, function() {
2071
+ return kt(this, function(t) {
2072
2072
  return [2, this.axios.post("/", {
2073
2073
  cmd: "frappe.core.doctype.user.user.reset_password",
2074
2074
  user: e
@@ -2097,7 +2097,7 @@ function is() {
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(Eo(), n), t(Gt, n), t(vt, n), t(wt, n), t(gt, n);
2100
+ Object.defineProperty(n, "__esModule", { value: !0 }), t(Eo(), n), t(Gt, n), t(vt, n), t(bt, n), t(gt, n);
2101
2101
  }(rn)), rn;
2102
2102
  }
2103
2103
  var Ro = is(), os = { exports: {} }, un = {};
@@ -2163,14 +2163,14 @@ function Oo() {
2163
2163
  var n = Me, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2164
2164
  function t(O) {
2165
2165
  {
2166
- for (var x = arguments.length, L = new Array(x > 1 ? x - 1 : 0), D = 1; D < x; D++)
2167
- L[D - 1] = arguments[D];
2166
+ for (var x = arguments.length, L = new Array(x > 1 ? x - 1 : 0), k = 1; k < x; k++)
2167
+ L[k - 1] = arguments[k];
2168
2168
  r("error", O, L);
2169
2169
  }
2170
2170
  }
2171
2171
  function r(O, x, L) {
2172
2172
  {
2173
- var D = e.ReactDebugCurrentFrame, re = D.getStackAddendum();
2173
+ var k = e.ReactDebugCurrentFrame, re = k.getStackAddendum();
2174
2174
  re !== "" && (x += "%s", L = L.concat([re]));
2175
2175
  var P = L.map(function(H) {
2176
2176
  return String(H);
@@ -2184,22 +2184,22 @@ function Oo() {
2184
2184
  var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, f = !1, h = !1;
2185
2185
  function g(O, x, L) {
2186
2186
  f || n.startTransition !== void 0 && (f = !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 D = x();
2187
+ var k = x();
2188
2188
  if (!h) {
2189
2189
  var re = x();
2190
- i(D, re) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), h = !0);
2190
+ i(k, re) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), h = !0);
2191
2191
  }
2192
2192
  var P = o({
2193
2193
  inst: {
2194
- value: D,
2194
+ value: k,
2195
2195
  getSnapshot: x
2196
2196
  }
2197
2197
  }), H = P[0].inst, Q = P[1];
2198
2198
  return l(function() {
2199
- H.value = D, H.getSnapshot = x, v(H) && Q({
2199
+ H.value = k, H.getSnapshot = x, v(H) && Q({
2200
2200
  inst: H
2201
2201
  });
2202
- }, [O, D, x]), c(function() {
2202
+ }, [O, k, x]), c(function() {
2203
2203
  v(H) && Q({
2204
2204
  inst: H
2205
2205
  });
@@ -2209,13 +2209,13 @@ function Oo() {
2209
2209
  });
2210
2210
  };
2211
2211
  return O(pe);
2212
- }, [O]), a(D), D;
2212
+ }, [O]), a(k), k;
2213
2213
  }
2214
2214
  function v(O) {
2215
2215
  var x = O.getSnapshot, L = O.value;
2216
2216
  try {
2217
- var D = x();
2218
- return !i(L, D);
2217
+ var k = x();
2218
+ return !i(L, k);
2219
2219
  } catch {
2220
2220
  return !0;
2221
2221
  }
@@ -2223,7 +2223,7 @@ function Oo() {
2223
2223
  function p(O, x, L) {
2224
2224
  return x();
2225
2225
  }
2226
- var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", E = !y, b = E ? p : g, R = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : b;
2226
+ var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", E = !y, w = E ? p : g, R = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : w;
2227
2227
  ln.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2228
2228
  }()), ln;
2229
2229
  }
@@ -2231,7 +2231,7 @@ function Oo() {
2231
2231
  process.env.NODE_ENV === "production" ? n.exports = To() : n.exports = Oo();
2232
2232
  })(os);
2233
2233
  const Le = () => {
2234
- }, oe = Le(), fn = Object, k = (n) => n === oe, ve = (n) => typeof n == "function", Fe = (n, e) => ({
2234
+ }, oe = Le(), fn = Object, D = (n) => n === oe, ve = (n) => typeof n == "function", Fe = (n, e) => ({
2235
2235
  ...n,
2236
2236
  ...e
2237
2237
  }), xo = (n) => ve(n.then), Nt = /* @__PURE__ */ new WeakMap();
@@ -2250,8 +2250,8 @@ const yt = (n) => {
2250
2250
  if (t == fn) {
2251
2251
  s = "#";
2252
2252
  const o = fn.keys(n).sort();
2253
- for (; !k(i = o.pop()); )
2254
- k(n[i]) || (s += i + ":" + yt(n[i]) + ",");
2253
+ for (; !D(i = o.pop()); )
2254
+ D(n[i]) || (s += i + ":" + yt(n[i]) + ",");
2255
2255
  Nt.set(n, s);
2256
2256
  }
2257
2257
  } else
@@ -2260,27 +2260,27 @@ const yt = (n) => {
2260
2260
  }, Ae = /* @__PURE__ */ new WeakMap(), hn = {}, Lt = {}, Vn = "undefined", Xt = typeof window != Vn, Sn = typeof document != Vn, Co = () => Xt && typeof window.requestAnimationFrame != Vn, as = (n, e) => {
2261
2261
  const t = Ae.get(n);
2262
2262
  return [
2263
- () => !k(e) && n.get(e) || hn,
2263
+ () => !D(e) && n.get(e) || hn,
2264
2264
  (r) => {
2265
- if (!k(e)) {
2265
+ if (!D(e)) {
2266
2266
  const s = n.get(e);
2267
2267
  e in Lt || (Lt[e] = s), t[5](e, Fe(s, r), s || hn);
2268
2268
  }
2269
2269
  },
2270
2270
  t[6],
2271
- () => !k(e) && e in Lt ? Lt[e] : !k(e) && n.get(e) || hn
2271
+ () => !D(e) && e in Lt ? Lt[e] : !D(e) && n.get(e) || hn
2272
2272
  ];
2273
2273
  };
2274
2274
  let Rn = !0;
2275
- const ko = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2275
+ const Do = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2276
2276
  window.addEventListener.bind(window),
2277
2277
  window.removeEventListener.bind(window)
2278
2278
  ] : [
2279
2279
  Le,
2280
2280
  Le
2281
- ], Do = () => {
2281
+ ], ko = () => {
2282
2282
  const n = Sn && document.visibilityState;
2283
- return k(n) || n !== "hidden";
2283
+ return D(n) || n !== "hidden";
2284
2284
  }, No = (n) => (Sn && document.addEventListener("visibilitychange", n), Tn("focus", n), () => {
2285
2285
  Sn && document.removeEventListener("visibilitychange", n), On("focus", n);
2286
2286
  }), Lo = (n) => {
@@ -2293,12 +2293,12 @@ const ko = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2293
2293
  On("online", e), On("offline", t);
2294
2294
  };
2295
2295
  }, Fo = {
2296
- isOnline: ko,
2297
- isVisible: Do
2296
+ isOnline: Do,
2297
+ isVisible: ko
2298
2298
  }, Po = {
2299
2299
  initFocus: No,
2300
2300
  initReconnect: Lo
2301
- }, wr = !Me.useId, mt = !Xt || "Deno" in window, Bo = (n) => Co() ? window.requestAnimationFrame(n) : setTimeout(n, 1), dn = mt ? Ze : zs, pn = typeof navigator < "u" && navigator.connection, br = !mt && pn && ([
2301
+ }, br = !Me.useId, mt = !Xt || "Deno" in window, Bo = (n) => Co() ? window.requestAnimationFrame(n) : setTimeout(n, 1), dn = mt ? Ze : zs, pn = typeof navigator < "u" && navigator.connection, wr = !mt && pn && ([
2302
2302
  "slow-2g",
2303
2303
  "2g"
2304
2304
  ].includes(pn.effectiveType) || pn.saveData), Mn = (n) => {
@@ -2345,19 +2345,19 @@ async function fs(...n) {
2345
2345
  const [v] = Mn(g);
2346
2346
  if (!v)
2347
2347
  return;
2348
- const [p, y] = as(e, v), [E, b, R, O] = Ae.get(e), x = () => {
2348
+ const [p, y] = as(e, v), [E, w, R, O] = Ae.get(e), x = () => {
2349
2349
  const M = E[v];
2350
2350
  return (ve(i.revalidate) ? i.revalidate(p().data, g) : i.revalidate !== !1) && (delete R[v], delete O[v], M && M[0]) ? M[0](ls).then(() => p().data) : p().data;
2351
2351
  };
2352
2352
  if (n.length < 3)
2353
2353
  return x();
2354
- let L = r, D;
2354
+ let L = r, k;
2355
2355
  const re = xn();
2356
- b[v] = [
2356
+ w[v] = [
2357
2357
  re,
2358
2358
  0
2359
2359
  ];
2360
- const P = !k(l), H = p(), Q = H.data, pe = H._c, ye = k(pe) ? Q : pe;
2360
+ const P = !D(l), H = p(), Q = H.data, pe = H._c, ye = D(pe) ? Q : pe;
2361
2361
  if (P && (l = ve(l) ? l(ye, Q) : l, y({
2362
2362
  data: l,
2363
2363
  _c: ye
@@ -2365,21 +2365,21 @@ async function fs(...n) {
2365
2365
  try {
2366
2366
  L = L(ye);
2367
2367
  } catch (M) {
2368
- D = M;
2368
+ k = M;
2369
2369
  }
2370
2370
  if (L && xo(L))
2371
2371
  if (L = await L.catch((M) => {
2372
- D = M;
2373
- }), re !== b[v][0]) {
2374
- if (D)
2375
- throw D;
2372
+ k = M;
2373
+ }), re !== w[v][0]) {
2374
+ if (k)
2375
+ throw k;
2376
2376
  return L;
2377
2377
  } else
2378
- D && P && a(D) && (o = !0, y({
2378
+ k && P && a(k) && (o = !0, y({
2379
2379
  data: ye,
2380
2380
  _c: oe
2381
2381
  }));
2382
- if (o && !D)
2382
+ if (o && !k)
2383
2383
  if (ve(o)) {
2384
2384
  const M = o(L, ye);
2385
2385
  y({
@@ -2393,13 +2393,13 @@ async function fs(...n) {
2393
2393
  error: oe,
2394
2394
  _c: oe
2395
2395
  });
2396
- if (b[v][1] = xn(), Promise.resolve(x()).then(() => {
2396
+ if (w[v][1] = xn(), Promise.resolve(x()).then(() => {
2397
2397
  y({
2398
2398
  _c: oe
2399
2399
  });
2400
- }), D) {
2400
+ }), k) {
2401
2401
  if (f)
2402
- throw D;
2402
+ throw k;
2403
2403
  return;
2404
2404
  }
2405
2405
  return L;
@@ -2450,7 +2450,7 @@ const _r = (n, e) => {
2450
2450
  ];
2451
2451
  }, qo = (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
- !k(i) && o > i || setTimeout(r, c, s);
2453
+ !D(i) && o > i || setTimeout(r, c, s);
2454
2454
  }, Vo = (n, e) => yt(n) == yt(e), [hs, Mo] = jo(/* @__PURE__ */ new Map()), $o = Fe(
2455
2455
  {
2456
2456
  onLoadingSlow: Le,
@@ -2462,10 +2462,10 @@ const _r = (n, e) => {
2462
2462
  revalidateOnReconnect: !0,
2463
2463
  revalidateIfStale: !0,
2464
2464
  shouldRetryOnError: !0,
2465
- errorRetryInterval: br ? 1e4 : 5e3,
2465
+ errorRetryInterval: wr ? 1e4 : 5e3,
2466
2466
  focusThrottleInterval: 5 * 1e3,
2467
2467
  dedupingInterval: 2 * 1e3,
2468
- loadingTimeout: br ? 5e3 : 3e3,
2468
+ loadingTimeout: wr ? 5e3 : 3e3,
2469
2469
  compare: Vo,
2470
2470
  isPaused: () => !1,
2471
2471
  cache: hs,
@@ -2495,7 +2495,7 @@ const _r = (n, e) => {
2495
2495
  if (o.startsWith(Jo))
2496
2496
  return t(...i);
2497
2497
  const l = c[o];
2498
- return k(l) ? t(...i) : (delete c[o], l);
2498
+ return D(l) ? t(...i) : (delete c[o], l);
2499
2499
  }), r), Qo = zo.concat(Xo), Zo = (n) => function(...t) {
2500
2500
  const r = Go(), [s, i, o] = Yo(t), c = Ho(r, o);
2501
2501
  let l = n;
@@ -2524,18 +2524,18 @@ const Er = Me.use || ((n) => {
2524
2524
  }), yn = {
2525
2525
  dedupe: !0
2526
2526
  }, ta = (n, e, t) => {
2527
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: f, refreshWhenOffline: h, keepPreviousData: g } = t, [v, p, y, E] = Ae.get(r), [b, R] = Mn(n), O = Ie(!1), x = Ie(!1), L = Ie(b), D = Ie(e), re = Ie(t), P = () => re.current, H = () => P().isVisible() && P().isOnline(), [Q, pe, ye, M] = as(r, b), se = Ie({}).current, Pe = k(o) ? t.fallback[b] : o, nt = (B, I) => {
2527
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: f, refreshWhenOffline: h, keepPreviousData: g } = t, [v, p, y, E] = Ae.get(r), [w, R] = Mn(n), O = Ie(!1), x = Ie(!1), L = Ie(w), k = Ie(e), re = Ie(t), P = () => re.current, H = () => P().isVisible() && P().isOnline(), [Q, pe, ye, M] = as(r, w), se = Ie({}).current, Pe = D(o) ? t.fallback[w] : o, nt = (B, I) => {
2528
2528
  for (const X in se) {
2529
2529
  const q = X;
2530
2530
  if (q === "data") {
2531
- if (!s(B[q], I[q]) && (!k(B[q]) || !s($e, I[q])))
2531
+ if (!s(B[q], I[q]) && (!D(B[q]) || !s($e, I[q])))
2532
2532
  return !1;
2533
2533
  } else if (I[q] !== B[q])
2534
2534
  return !1;
2535
2535
  }
2536
2536
  return !0;
2537
2537
  }, rt = Br(() => {
2538
- const B = (() => !b || !e ? !1 : k(c) ? P().isPaused() || i ? !1 : k(l) ? !0 : l : c)(), I = (J) => {
2538
+ const B = (() => !w || !e ? !1 : D(c) ? P().isPaused() || i ? !1 : D(l) ? !0 : l : c)(), I = (J) => {
2539
2539
  const he = Fe(J);
2540
2540
  return delete he._k, B ? {
2541
2541
  isValidating: !0,
@@ -2553,52 +2553,52 @@ const Er = Me.use || ((n) => {
2553
2553
  ];
2554
2554
  }, [
2555
2555
  r,
2556
- b
2556
+ w
2557
2557
  ]), Se = os.exports.useSyncExternalStore(V(
2558
- (B) => ye(b, (I, X) => {
2558
+ (B) => ye(w, (I, X) => {
2559
2559
  nt(X, I) || B();
2560
2560
  }),
2561
2561
  [
2562
2562
  r,
2563
- b
2563
+ w
2564
2564
  ]
2565
- ), rt[0], rt[1]), st = !O.current, St = v[b] && v[b].length > 0, Re = Se.data, Te = k(Re) ? Pe : Re, Be = Se.error, Rt = Ie(Te), $e = g ? k(Re) ? Rt.current : Re : Te, He = (() => St && !k(Be) ? !1 : st && !k(c) ? c : P().isPaused() ? !1 : i ? k(Te) ? !1 : l : k(Te) || l)(), We = !!(b && e && st && He), Je = k(Se.isValidating) ? We : Se.isValidating, it = k(Se.isLoading) ? We : Se.isLoading, me = V(
2565
+ ), rt[0], rt[1]), st = !O.current, St = v[w] && v[w].length > 0, Re = Se.data, Te = D(Re) ? Pe : Re, Be = Se.error, Rt = Ie(Te), $e = g ? D(Re) ? Rt.current : Re : Te, He = (() => St && !D(Be) ? !1 : st && !D(c) ? c : P().isPaused() ? !1 : i ? D(Te) ? !1 : l : D(Te) || l)(), We = !!(w && e && st && He), Je = D(Se.isValidating) ? We : Se.isValidating, it = D(Se.isLoading) ? We : Se.isLoading, me = V(
2566
2566
  async (B) => {
2567
- const I = D.current;
2568
- if (!b || !I || x.current || P().isPaused())
2567
+ const I = k.current;
2568
+ if (!w || !I || x.current || P().isPaused())
2569
2569
  return !1;
2570
2570
  let X, q, te = !0;
2571
- const Oe = B || {}, W = !y[b] || !Oe.dedupe, J = () => wr ? !x.current && b === L.current && O.current : b === L.current, he = {
2571
+ const Oe = B || {}, W = !y[w] || !Oe.dedupe, J = () => br ? !x.current && w === L.current && O.current : w === L.current, he = {
2572
2572
  isValidating: !1,
2573
2573
  isLoading: !1
2574
2574
  }, Ot = () => {
2575
2575
  pe(he);
2576
2576
  }, ze = () => {
2577
- const ie = y[b];
2578
- ie && ie[1] === q && delete y[b];
2577
+ const ie = y[w];
2578
+ ie && ie[1] === q && delete y[w];
2579
2579
  }, xt = {
2580
2580
  isValidating: !0
2581
2581
  };
2582
- k(Q().data) && (xt.isLoading = !0);
2582
+ D(Q().data) && (xt.isLoading = !0);
2583
2583
  try {
2584
- if (W && (pe(xt), t.loadingTimeout && k(Q().data) && setTimeout(() => {
2585
- te && J() && P().onLoadingSlow(b, t);
2586
- }, t.loadingTimeout), y[b] = [
2584
+ if (W && (pe(xt), t.loadingTimeout && D(Q().data) && setTimeout(() => {
2585
+ te && J() && P().onLoadingSlow(w, t);
2586
+ }, t.loadingTimeout), y[w] = [
2587
2587
  I(R),
2588
2588
  xn()
2589
- ]), [X, q] = y[b], X = await X, W && setTimeout(ze, t.dedupingInterval), !y[b] || y[b][1] !== q)
2590
- return W && J() && P().onDiscarded(b), !1;
2589
+ ]), [X, q] = y[w], X = await X, W && setTimeout(ze, t.dedupingInterval), !y[w] || y[w][1] !== q)
2590
+ return W && J() && P().onDiscarded(w), !1;
2591
2591
  he.error = oe;
2592
- const ie = p[b];
2593
- if (!k(ie) && (q <= ie[0] || q <= ie[1] || ie[1] === 0))
2594
- return Ot(), W && J() && P().onDiscarded(b), !1;
2592
+ const ie = p[w];
2593
+ if (!D(ie) && (q <= ie[0] || q <= ie[1] || ie[1] === 0))
2594
+ return Ot(), W && J() && P().onDiscarded(w), !1;
2595
2595
  const ae = Q().data;
2596
- he.data = s(ae, X) ? ae : X, W && J() && P().onSuccess(X, b, t);
2596
+ he.data = s(ae, X) ? ae : X, W && J() && P().onSuccess(X, w, t);
2597
2597
  } catch (ie) {
2598
2598
  ze();
2599
2599
  const ae = P(), { shouldRetryOnError: Ke } = ae;
2600
- ae.isPaused() || (he.error = ie, W && J() && (ae.onError(ie, b, ae), (Ke === !0 || ve(Ke) && Ke(ie)) && (!P().revalidateOnFocus || !P().revalidateOnReconnect || H()) && ae.onErrorRetry(ie, b, ae, (Ue) => {
2601
- const ot = v[b];
2600
+ ae.isPaused() || (he.error = ie, W && J() && (ae.onError(ie, w, ae), (Ke === !0 || ve(Ke) && Ke(ie)) && (!P().revalidateOnFocus || !P().revalidateOnReconnect || H()) && ae.onErrorRetry(ie, w, ae, (Ue) => {
2601
+ const ot = v[w];
2602
2602
  ot && ot[0] && ot[0](ut.ERROR_REVALIDATE_EVENT, Ue);
2603
2603
  }, {
2604
2604
  retryCount: (Oe.retryCount || 0) + 1,
@@ -2608,7 +2608,7 @@ const Er = Me.use || ((n) => {
2608
2608
  return te = !1, Ot(), !0;
2609
2609
  },
2610
2610
  [
2611
- b,
2611
+ w,
2612
2612
  r
2613
2613
  ]
2614
2614
  ), Tt = V(
@@ -2616,13 +2616,13 @@ const Er = Me.use || ((n) => {
2616
2616
  []
2617
2617
  );
2618
2618
  if (dn(() => {
2619
- D.current = e, re.current = t, k(Re) || (Rt.current = Re);
2619
+ k.current = e, re.current = t, D(Re) || (Rt.current = Re);
2620
2620
  }), dn(() => {
2621
- if (!b)
2621
+ if (!w)
2622
2622
  return;
2623
2623
  const B = me.bind(oe, yn);
2624
2624
  let I = 0;
2625
- const q = ea(b, v, (te, Oe = {}) => {
2625
+ const q = ea(w, v, (te, Oe = {}) => {
2626
2626
  if (te == ut.FOCUS_EVENT) {
2627
2627
  const W = Date.now();
2628
2628
  P().revalidateOnFocus && W > I && H() && (I = W + P().focusThrottleInterval, B());
@@ -2635,13 +2635,13 @@ const Er = Me.use || ((n) => {
2635
2635
  return me(Oe);
2636
2636
  }
2637
2637
  });
2638
- return x.current = !1, L.current = b, O.current = !0, pe({
2638
+ return x.current = !1, L.current = w, O.current = !0, pe({
2639
2639
  _k: R
2640
- }), He && (k(Te) || mt ? B() : Bo(B)), () => {
2640
+ }), He && (D(Te) || mt ? B() : Bo(B)), () => {
2641
2641
  x.current = !0, q();
2642
2642
  };
2643
2643
  }, [
2644
- b
2644
+ w
2645
2645
  ]), dn(() => {
2646
2646
  let B;
2647
2647
  function I() {
@@ -2658,19 +2658,19 @@ const Er = Me.use || ((n) => {
2658
2658
  a,
2659
2659
  f,
2660
2660
  h,
2661
- b
2662
- ]), Ks($e), i && k(Te) && b) {
2663
- if (!wr && mt)
2661
+ w
2662
+ ]), Ks($e), i && D(Te) && w) {
2663
+ if (!br && mt)
2664
2664
  throw new Error("Fallback data is required when using suspense in SSR.");
2665
- D.current = e, re.current = t, x.current = !1;
2666
- const B = E[b];
2667
- if (!k(B)) {
2665
+ k.current = e, re.current = t, x.current = !1;
2666
+ const B = E[w];
2667
+ if (!D(B)) {
2668
2668
  const I = Tt(B);
2669
2669
  Er(I);
2670
2670
  }
2671
- if (k(Be)) {
2671
+ if (D(Be)) {
2672
2672
  const I = me(yn);
2673
- k($e) || (I.status = "fulfilled", I.value = !0), Er(I);
2673
+ D($e) || (I.status = "fulfilled", I.value = !0), Er(I);
2674
2674
  } else
2675
2675
  throw Be;
2676
2676
  }
@@ -2853,7 +2853,7 @@ function ua(n, e) {
2853
2853
  }
2854
2854
  });
2855
2855
  }
2856
- const ws = 4;
2856
+ const bs = 4;
2857
2857
  function Y(n) {
2858
2858
  if (n)
2859
2859
  return la(n);
@@ -2906,7 +2906,7 @@ Y.prototype.hasListeners = function(n) {
2906
2906
  return !!this.listeners(n).length;
2907
2907
  };
2908
2908
  const le = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
2909
- function bs(n, ...e) {
2909
+ function ws(n, ...e) {
2910
2910
  return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
2911
2911
  }
2912
2912
  const fa = le.setTimeout, ha = le.clearTimeout;
@@ -2988,7 +2988,7 @@ class Wn extends Y {
2988
2988
  return t.length ? "?" + t : "";
2989
2989
  }
2990
2990
  }
2991
- const _s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Cn = 64, wa = {};
2991
+ const _s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Cn = 64, ba = {};
2992
2992
  let Or = 0, Bt = 0, xr;
2993
2993
  function Ar(n) {
2994
2994
  let e = "";
@@ -3002,17 +3002,17 @@ function Es() {
3002
3002
  return n !== xr ? (Or = 0, xr = n) : n + "." + Ar(Or++);
3003
3003
  }
3004
3004
  for (; Bt < Cn; Bt++)
3005
- wa[_s[Bt]] = Bt;
3005
+ ba[_s[Bt]] = Bt;
3006
3006
  let Ss = !1;
3007
3007
  try {
3008
3008
  Ss = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
3009
3009
  } catch {
3010
3010
  }
3011
- const ba = Ss;
3011
+ const wa = Ss;
3012
3012
  function Rs(n) {
3013
3013
  const e = n.xdomain;
3014
3014
  try {
3015
- if (typeof XMLHttpRequest < "u" && (!e || ba))
3015
+ if (typeof XMLHttpRequest < "u" && (!e || wa))
3016
3016
  return new XMLHttpRequest();
3017
3017
  } catch {
3018
3018
  }
@@ -3089,7 +3089,7 @@ class Sa extends Wn {
3089
3089
  return this.opts.timestampRequests !== !1 && (t[this.opts.timestampParam] = Es()), !this.supportsBinary && !t.sid && (t.b64 = 1), this.createUri(e, t);
3090
3090
  }
3091
3091
  request(e = {}) {
3092
- return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new be(this.uri(), e);
3092
+ return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new we(this.uri(), e);
3093
3093
  }
3094
3094
  doWrite(e, t) {
3095
3095
  const r = this.request({
@@ -3107,13 +3107,13 @@ class Sa extends Wn {
3107
3107
  }), this.pollXhr = e;
3108
3108
  }
3109
3109
  }
3110
- class be extends Y {
3110
+ class we extends Y {
3111
3111
  constructor(e, t) {
3112
3112
  super(), Qt(this, t), this.opts = t, this.method = t.method || "GET", this.uri = e, this.data = t.data !== void 0 ? t.data : null, this.create();
3113
3113
  }
3114
3114
  create() {
3115
3115
  var e;
3116
- const t = bs(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
3116
+ const t = ws(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
3117
3117
  t.xdomain = !!this.opts.xd;
3118
3118
  const r = this.xhr = new Rs(t);
3119
3119
  try {
@@ -3147,7 +3147,7 @@ class be extends Y {
3147
3147
  }, 0);
3148
3148
  return;
3149
3149
  }
3150
- typeof document < "u" && (this.index = be.requestsCount++, be.requests[this.index] = this);
3150
+ typeof document < "u" && (this.index = we.requestsCount++, we.requests[this.index] = this);
3151
3151
  }
3152
3152
  onError(e) {
3153
3153
  this.emitReserved("error", e, this.xhr), this.cleanup(!0);
@@ -3159,7 +3159,7 @@ class be extends Y {
3159
3159
  this.xhr.abort();
3160
3160
  } catch {
3161
3161
  }
3162
- typeof document < "u" && delete be.requests[this.index], this.xhr = null;
3162
+ typeof document < "u" && delete we.requests[this.index], this.xhr = null;
3163
3163
  }
3164
3164
  }
3165
3165
  onLoad() {
@@ -3170,8 +3170,8 @@ class be extends Y {
3170
3170
  this.cleanup();
3171
3171
  }
3172
3172
  }
3173
- be.requestsCount = 0;
3174
- be.requests = {};
3173
+ we.requestsCount = 0;
3174
+ we.requests = {};
3175
3175
  if (typeof document < "u") {
3176
3176
  if (typeof attachEvent == "function")
3177
3177
  attachEvent("onunload", Cr);
@@ -3181,10 +3181,10 @@ if (typeof document < "u") {
3181
3181
  }
3182
3182
  }
3183
3183
  function Cr() {
3184
- for (let n in be.requests)
3185
- be.requests.hasOwnProperty(n) && be.requests[n].abort();
3184
+ for (let n in we.requests)
3185
+ we.requests.hasOwnProperty(n) && we.requests[n].abort();
3186
3186
  }
3187
- const Jn = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ut = le.WebSocket || le.MozWebSocket, kr = !0, Ra = "arraybuffer", Dr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
3187
+ const Jn = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ut = le.WebSocket || le.MozWebSocket, Dr = !0, Ra = "arraybuffer", kr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
3188
3188
  class Ta extends Wn {
3189
3189
  constructor(e) {
3190
3190
  super(e), this.supportsBinary = !e.forceBase64;
@@ -3195,10 +3195,10 @@ class Ta extends Wn {
3195
3195
  doOpen() {
3196
3196
  if (!this.check())
3197
3197
  return;
3198
- const e = this.uri(), t = this.opts.protocols, r = Dr ? {} : bs(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
3198
+ const e = this.uri(), t = this.opts.protocols, r = kr ? {} : ws(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
3199
3199
  this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
3200
3200
  try {
3201
- this.ws = kr && !Dr ? t ? new Ut(e, t) : new Ut(e) : new Ut(e, t, r);
3201
+ this.ws = Dr && !kr ? t ? new Ut(e, t) : new Ut(e) : new Ut(e, t, r);
3202
3202
  } catch (s) {
3203
3203
  return this.emitReserved("error", s);
3204
3204
  }
@@ -3219,7 +3219,7 @@ class Ta extends Wn {
3219
3219
  $n(r, this.supportsBinary, (i) => {
3220
3220
  const o = {};
3221
3221
  try {
3222
- kr && this.ws.send(i);
3222
+ Dr && this.ws.send(i);
3223
3223
  } catch {
3224
3224
  }
3225
3225
  s && Jn(() => {
@@ -3300,19 +3300,19 @@ const xa = {
3300
3300
  "query",
3301
3301
  "anchor"
3302
3302
  ];
3303
- function kn(n) {
3303
+ function Dn(n) {
3304
3304
  const e = n, t = n.indexOf("["), r = n.indexOf("]");
3305
3305
  t != -1 && r != -1 && (n = n.substring(0, t) + n.substring(t, r).replace(/:/g, ";") + n.substring(r, n.length));
3306
3306
  let s = Aa.exec(n || ""), i = {}, o = 14;
3307
3307
  for (; o--; )
3308
3308
  i[Ca[o]] = s[o] || "";
3309
- 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 = ka(i, i.path), i.queryKey = Da(i, i.query), i;
3309
+ 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 = Da(i, i.path), i.queryKey = ka(i, i.query), i;
3310
3310
  }
3311
- function ka(n, e) {
3311
+ function Da(n, e) {
3312
3312
  const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
3313
3313
  return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
3314
3314
  }
3315
- function Da(n, e) {
3315
+ function ka(n, e) {
3316
3316
  const t = {};
3317
3317
  return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, s, i) {
3318
3318
  s && (t[s] = i);
@@ -3320,7 +3320,7 @@ function Da(n, e) {
3320
3320
  }
3321
3321
  class Ne extends Y {
3322
3322
  constructor(e, t = {}) {
3323
- super(), this.binaryType = Ra, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = kn(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 = kn(t.host).host), Qt(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 || [
3323
+ super(), this.binaryType = Ra, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Dn(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 = Dn(t.host).host), Qt(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 || [
3324
3324
  "polling",
3325
3325
  "websocket",
3326
3326
  "webtransport"
@@ -3348,7 +3348,7 @@ class Ne extends Y {
3348
3348
  }
3349
3349
  createTransport(e) {
3350
3350
  const t = Object.assign({}, this.opts.query);
3351
- t.EIO = ws, t.transport = e, this.id && (t.sid = this.id);
3351
+ t.EIO = bs, t.transport = e, this.id && (t.sid = this.id);
3352
3352
  const r = Object.assign({}, this.opts, {
3353
3353
  query: t,
3354
3354
  socket: this,
@@ -3521,10 +3521,10 @@ class Ne extends Y {
3521
3521
  return t;
3522
3522
  }
3523
3523
  }
3524
- Ne.protocol = ws;
3524
+ Ne.protocol = bs;
3525
3525
  function Na(n, e = "", t) {
3526
3526
  let r = n;
3527
- 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 = kn(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
3527
+ 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 = Dn(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
3528
3528
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
3529
3529
  return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
3530
3530
  }
@@ -3552,9 +3552,9 @@ function Mt(n, e) {
3552
3552
  }
3553
3553
  function Ua(n) {
3554
3554
  const e = [], t = n.data, r = n;
3555
- return r.data = Dn(t, e), r.attachments = e.length, { packet: r, buffers: e };
3555
+ return r.data = kn(t, e), r.attachments = e.length, { packet: r, buffers: e };
3556
3556
  }
3557
- function Dn(n, e) {
3557
+ function kn(n, e) {
3558
3558
  if (!n)
3559
3559
  return n;
3560
3560
  if (zn(n)) {
@@ -3563,12 +3563,12 @@ function Dn(n, e) {
3563
3563
  } else if (Array.isArray(n)) {
3564
3564
  const t = new Array(n.length);
3565
3565
  for (let r = 0; r < n.length; r++)
3566
- t[r] = Dn(n[r], e);
3566
+ t[r] = kn(n[r], e);
3567
3567
  return t;
3568
3568
  } else if (typeof n == "object" && !(n instanceof Date)) {
3569
3569
  const t = {};
3570
3570
  for (const r in n)
3571
- Object.prototype.hasOwnProperty.call(n, r) && (t[r] = Dn(n[r], e));
3571
+ Object.prototype.hasOwnProperty.call(n, r) && (t[r] = kn(n[r], e));
3572
3572
  return t;
3573
3573
  }
3574
3574
  return n;
@@ -4166,13 +4166,13 @@ Object.assign($t, {
4166
4166
  });
4167
4167
  class Wa {
4168
4168
  constructor(e, t, r, s) {
4169
- ke(this, "socket_port");
4170
- ke(this, "host");
4171
- ke(this, "port");
4172
- ke(this, "protocol");
4173
- ke(this, "url");
4174
- ke(this, "site_name");
4175
- ke(this, "socket");
4169
+ De(this, "socket_port");
4170
+ De(this, "host");
4171
+ De(this, "port");
4172
+ De(this, "protocol");
4173
+ De(this, "url");
4174
+ De(this, "site_name");
4175
+ De(this, "socket");
4176
4176
  var i, o, c;
4177
4177
  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) {
4178
4178
  let l = new URL(e);
@@ -4236,35 +4236,35 @@ function za() {
4236
4236
  var m = p && u[p] || u[y];
4237
4237
  return typeof m == "function" ? m : null;
4238
4238
  }
4239
- var b = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4239
+ var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4240
4240
  function R(u) {
4241
4241
  {
4242
- for (var m = arguments.length, w = new Array(m > 1 ? m - 1 : 0), _ = 1; _ < m; _++)
4243
- w[_ - 1] = arguments[_];
4244
- O("error", u, w);
4242
+ for (var m = arguments.length, b = new Array(m > 1 ? m - 1 : 0), _ = 1; _ < m; _++)
4243
+ b[_ - 1] = arguments[_];
4244
+ O("error", u, b);
4245
4245
  }
4246
4246
  }
4247
- function O(u, m, w) {
4247
+ function O(u, m, b) {
4248
4248
  {
4249
- var _ = b.ReactDebugCurrentFrame, N = _.getStackAddendum();
4250
- N !== "" && (m += "%s", w = w.concat([N]));
4251
- var j = w.map(function(A) {
4249
+ var _ = w.ReactDebugCurrentFrame, N = _.getStackAddendum();
4250
+ N !== "" && (m += "%s", b = b.concat([N]));
4251
+ var j = b.map(function(A) {
4252
4252
  return String(A);
4253
4253
  });
4254
4254
  j.unshift("Warning: " + m), Function.prototype.apply.call(console[u], console, j);
4255
4255
  }
4256
4256
  }
4257
- var x = !1, L = !1, D = !1, re = !1, P = !1, H;
4257
+ var x = !1, L = !1, k = !1, re = !1, P = !1, H;
4258
4258
  H = Symbol.for("react.module.reference");
4259
4259
  function Q(u) {
4260
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || P || u === s || u === a || u === f || re || u === v || x || L || D || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === H || u.getModuleId !== void 0));
4260
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || P || u === s || u === a || u === f || re || u === v || x || L || k || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === H || u.getModuleId !== void 0));
4261
4261
  }
4262
- function pe(u, m, w) {
4262
+ function pe(u, m, b) {
4263
4263
  var _ = u.displayName;
4264
4264
  if (_)
4265
4265
  return _;
4266
4266
  var N = m.displayName || m.name || "";
4267
- return N !== "" ? w + "(" + N + ")" : w;
4267
+ return N !== "" ? b + "(" + N + ")" : b;
4268
4268
  }
4269
4269
  function ye(u) {
4270
4270
  return u.displayName || "Context";
@@ -4296,8 +4296,8 @@ function za() {
4296
4296
  var m = u;
4297
4297
  return ye(m) + ".Consumer";
4298
4298
  case o:
4299
- var w = u;
4300
- return ye(w._context) + ".Provider";
4299
+ var b = u;
4300
+ return ye(b._context) + ".Provider";
4301
4301
  case l:
4302
4302
  return pe(u, u.render, "ForwardRef");
4303
4303
  case h:
@@ -4376,8 +4376,8 @@ function za() {
4376
4376
  Pe < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
4377
4377
  }
4378
4378
  }
4379
- var He = b.ReactCurrentDispatcher, We;
4380
- function Je(u, m, w) {
4379
+ var He = w.ReactCurrentDispatcher, We;
4380
+ function Je(u, m, b) {
4381
4381
  {
4382
4382
  if (We === void 0)
4383
4383
  try {
@@ -4399,9 +4399,9 @@ function za() {
4399
4399
  if (!u || it)
4400
4400
  return "";
4401
4401
  {
4402
- var w = me.get(u);
4403
- if (w !== void 0)
4404
- return w;
4402
+ var b = me.get(u);
4403
+ if (b !== void 0)
4404
+ return b;
4405
4405
  }
4406
4406
  var _;
4407
4407
  it = !0;
@@ -4466,14 +4466,14 @@ function za() {
4466
4466
  var Ge = u ? u.displayName || u.name : "", rr = Ge ? Je(Ge) : "";
4467
4467
  return typeof u == "function" && me.set(u, rr), rr;
4468
4468
  }
4469
- function I(u, m, w) {
4469
+ function I(u, m, b) {
4470
4470
  return B(u, !1);
4471
4471
  }
4472
4472
  function X(u) {
4473
4473
  var m = u.prototype;
4474
4474
  return !!(m && m.isReactComponent);
4475
4475
  }
4476
- function q(u, m, w) {
4476
+ function q(u, m, b) {
4477
4477
  if (u == null)
4478
4478
  return "";
4479
4479
  if (typeof u == "function")
@@ -4491,26 +4491,26 @@ function za() {
4491
4491
  case l:
4492
4492
  return I(u.render);
4493
4493
  case h:
4494
- return q(u.type, m, w);
4494
+ return q(u.type, m, b);
4495
4495
  case g: {
4496
4496
  var _ = u, N = _._payload, j = _._init;
4497
4497
  try {
4498
- return q(j(N), m, w);
4498
+ return q(j(N), m, b);
4499
4499
  } catch {
4500
4500
  }
4501
4501
  }
4502
4502
  }
4503
4503
  return "";
4504
4504
  }
4505
- var te = Object.prototype.hasOwnProperty, Oe = {}, W = b.ReactDebugCurrentFrame;
4505
+ var te = Object.prototype.hasOwnProperty, Oe = {}, W = w.ReactDebugCurrentFrame;
4506
4506
  function J(u) {
4507
4507
  if (u) {
4508
- var m = u._owner, w = q(u.type, u._source, m ? m.type : null);
4509
- W.setExtraStackFrame(w);
4508
+ var m = u._owner, b = q(u.type, u._source, m ? m.type : null);
4509
+ W.setExtraStackFrame(b);
4510
4510
  } else
4511
4511
  W.setExtraStackFrame(null);
4512
4512
  }
4513
- function he(u, m, w, _, N) {
4513
+ function he(u, m, b, _, N) {
4514
4514
  {
4515
4515
  var j = Function.call.bind(te);
4516
4516
  for (var A in u)
@@ -4518,14 +4518,14 @@ function za() {
4518
4518
  var S = void 0;
4519
4519
  try {
4520
4520
  if (typeof u[A] != "function") {
4521
- var ne = Error((_ || "React class") + ": " + w + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
4521
+ var ne = Error((_ || "React class") + ": " + b + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
4522
4522
  throw ne.name = "Invariant Violation", ne;
4523
4523
  }
4524
- S = u[A](m, A, _, w, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
4524
+ S = u[A](m, A, _, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
4525
4525
  } catch ($) {
4526
4526
  S = $;
4527
4527
  }
4528
- S && !(S instanceof Error) && (J(N), R("%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).", _ || "React class", w, A, typeof S), J(null)), S instanceof Error && !(S.message in Oe) && (Oe[S.message] = !0, J(N), R("Failed %s type: %s", w, S.message), J(null));
4528
+ S && !(S instanceof Error) && (J(N), R("%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).", _ || "React class", b, A, typeof S), J(null)), S instanceof Error && !(S.message in Oe) && (Oe[S.message] = !0, J(N), R("Failed %s type: %s", b, S.message), J(null));
4529
4529
  }
4530
4530
  }
4531
4531
  }
@@ -4535,8 +4535,8 @@ function za() {
4535
4535
  }
4536
4536
  function xt(u) {
4537
4537
  {
4538
- var m = typeof Symbol == "function" && Symbol.toStringTag, w = m && u[Symbol.toStringTag] || u.constructor.name || "Object";
4539
- return w;
4538
+ var m = typeof Symbol == "function" && Symbol.toStringTag, b = m && u[Symbol.toStringTag] || u.constructor.name || "Object";
4539
+ return b;
4540
4540
  }
4541
4541
  }
4542
4542
  function ie(u) {
@@ -4553,14 +4553,14 @@ function za() {
4553
4553
  if (ie(u))
4554
4554
  return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xt(u)), ae(u);
4555
4555
  }
4556
- var Ue = b.ReactCurrentOwner, ot = {
4556
+ var Ue = w.ReactCurrentOwner, ot = {
4557
4557
  key: !0,
4558
4558
  ref: !0,
4559
4559
  __self: !0,
4560
4560
  __source: !0
4561
4561
  }, Yn, Gn, Zt;
4562
4562
  Zt = {};
4563
- function ks(u) {
4563
+ function Ds(u) {
4564
4564
  if (te.call(u, "ref")) {
4565
4565
  var m = Object.getOwnPropertyDescriptor(u, "ref").get;
4566
4566
  if (m && m.isReactWarning)
@@ -4568,7 +4568,7 @@ function za() {
4568
4568
  }
4569
4569
  return u.ref !== void 0;
4570
4570
  }
4571
- function Ds(u) {
4571
+ function ks(u) {
4572
4572
  if (te.call(u, "key")) {
4573
4573
  var m = Object.getOwnPropertyDescriptor(u, "key").get;
4574
4574
  if (m && m.isReactWarning)
@@ -4578,38 +4578,38 @@ function za() {
4578
4578
  }
4579
4579
  function Ns(u, m) {
4580
4580
  if (typeof u.ref == "string" && Ue.current && m && Ue.current.stateNode !== m) {
4581
- var w = M(Ue.current.type);
4582
- Zt[w] || (R('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', M(Ue.current.type), u.ref), Zt[w] = !0);
4581
+ var b = M(Ue.current.type);
4582
+ Zt[b] || (R('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', M(Ue.current.type), u.ref), Zt[b] = !0);
4583
4583
  }
4584
4584
  }
4585
4585
  function Ls(u, m) {
4586
4586
  {
4587
- var w = function() {
4587
+ var b = function() {
4588
4588
  Yn || (Yn = !0, R("%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)", m));
4589
4589
  };
4590
- w.isReactWarning = !0, Object.defineProperty(u, "key", {
4591
- get: w,
4590
+ b.isReactWarning = !0, Object.defineProperty(u, "key", {
4591
+ get: b,
4592
4592
  configurable: !0
4593
4593
  });
4594
4594
  }
4595
4595
  }
4596
4596
  function Fs(u, m) {
4597
4597
  {
4598
- var w = function() {
4598
+ var b = function() {
4599
4599
  Gn || (Gn = !0, R("%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)", m));
4600
4600
  };
4601
- w.isReactWarning = !0, Object.defineProperty(u, "ref", {
4602
- get: w,
4601
+ b.isReactWarning = !0, Object.defineProperty(u, "ref", {
4602
+ get: b,
4603
4603
  configurable: !0
4604
4604
  });
4605
4605
  }
4606
4606
  }
4607
- var Ps = function(u, m, w, _, N, j, A) {
4607
+ var Ps = function(u, m, b, _, N, j, A) {
4608
4608
  var S = {
4609
4609
  $$typeof: e,
4610
4610
  type: u,
4611
4611
  key: m,
4612
- ref: w,
4612
+ ref: b,
4613
4613
  props: A,
4614
4614
  _owner: j
4615
4615
  };
@@ -4630,10 +4630,10 @@ function za() {
4630
4630
  value: N
4631
4631
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
4632
4632
  };
4633
- function Bs(u, m, w, _, N) {
4633
+ function Bs(u, m, b, _, N) {
4634
4634
  {
4635
4635
  var j, A = {}, S = null, ne = null;
4636
- w !== void 0 && (Ke(w), S = "" + w), Ds(m) && (Ke(m.key), S = "" + m.key), ks(m) && (ne = m.ref, Ns(m, N));
4636
+ b !== void 0 && (Ke(b), S = "" + b), ks(m) && (Ke(m.key), S = "" + m.key), Ds(m) && (ne = m.ref, Ns(m, N));
4637
4637
  for (j in m)
4638
4638
  te.call(m, j) && !ot.hasOwnProperty(j) && (A[j] = m[j]);
4639
4639
  if (u && u.defaultProps) {
@@ -4648,11 +4648,11 @@ function za() {
4648
4648
  return Ps(u, S, ne, N, _, Ue.current, A);
4649
4649
  }
4650
4650
  }
4651
- var en = b.ReactCurrentOwner, Xn = b.ReactDebugCurrentFrame;
4651
+ var en = w.ReactCurrentOwner, Xn = w.ReactDebugCurrentFrame;
4652
4652
  function Ye(u) {
4653
4653
  if (u) {
4654
- var m = u._owner, w = q(u.type, u._source, m ? m.type : null);
4655
- Xn.setExtraStackFrame(w);
4654
+ var m = u._owner, b = q(u.type, u._source, m ? m.type : null);
4655
+ Xn.setExtraStackFrame(b);
4656
4656
  } else
4657
4657
  Xn.setExtraStackFrame(null);
4658
4658
  }
@@ -4676,10 +4676,10 @@ Check the render method of \`` + u + "`.";
4676
4676
  function Us(u) {
4677
4677
  {
4678
4678
  if (u !== void 0) {
4679
- var m = u.fileName.replace(/^.*[\\\/]/, ""), w = u.lineNumber;
4679
+ var m = u.fileName.replace(/^.*[\\\/]/, ""), b = u.lineNumber;
4680
4680
  return `
4681
4681
 
4682
- Check your code at ` + m + ":" + w + ".";
4682
+ Check your code at ` + m + ":" + b + ".";
4683
4683
  }
4684
4684
  return "";
4685
4685
  }
@@ -4689,10 +4689,10 @@ Check your code at ` + m + ":" + w + ".";
4689
4689
  {
4690
4690
  var m = Qn();
4691
4691
  if (!m) {
4692
- var w = typeof u == "string" ? u : u.displayName || u.name;
4693
- w && (m = `
4692
+ var b = typeof u == "string" ? u : u.displayName || u.name;
4693
+ b && (m = `
4694
4694
 
4695
- Check the top-level render call using <` + w + ">.");
4695
+ Check the top-level render call using <` + b + ">.");
4696
4696
  }
4697
4697
  return m;
4698
4698
  }
@@ -4702,12 +4702,12 @@ Check the top-level render call using <` + w + ">.");
4702
4702
  if (!u._store || u._store.validated || u.key != null)
4703
4703
  return;
4704
4704
  u._store.validated = !0;
4705
- var w = Is(m);
4706
- if (Zn[w])
4705
+ var b = Is(m);
4706
+ if (Zn[b])
4707
4707
  return;
4708
- Zn[w] = !0;
4708
+ Zn[b] = !0;
4709
4709
  var _ = "";
4710
- u && u._owner && u._owner !== en.current && (_ = " It was passed a child from " + M(u._owner.type) + "."), Ye(u), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, _), Ye(null);
4710
+ u && u._owner && u._owner !== en.current && (_ = " It was passed a child from " + M(u._owner.type) + "."), Ye(u), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, _), Ye(null);
4711
4711
  }
4712
4712
  }
4713
4713
  function tr(u, m) {
@@ -4715,8 +4715,8 @@ Check the top-level render call using <` + w + ">.");
4715
4715
  if (typeof u != "object")
4716
4716
  return;
4717
4717
  if (ze(u))
4718
- for (var w = 0; w < u.length; w++) {
4719
- var _ = u[w];
4718
+ for (var b = 0; b < u.length; b++) {
4719
+ var _ = u[b];
4720
4720
  nn(_) && er(_, m);
4721
4721
  }
4722
4722
  else if (nn(u))
@@ -4734,16 +4734,16 @@ Check the top-level render call using <` + w + ">.");
4734
4734
  var m = u.type;
4735
4735
  if (m == null || typeof m == "string")
4736
4736
  return;
4737
- var w;
4737
+ var b;
4738
4738
  if (typeof m == "function")
4739
- w = m.propTypes;
4739
+ b = m.propTypes;
4740
4740
  else if (typeof m == "object" && (m.$$typeof === l || m.$$typeof === h))
4741
- w = m.propTypes;
4741
+ b = m.propTypes;
4742
4742
  else
4743
4743
  return;
4744
- if (w) {
4744
+ if (b) {
4745
4745
  var _ = M(m);
4746
- he(w, u.props, "prop", _, u);
4746
+ he(b, u.props, "prop", _, u);
4747
4747
  } else if (m.PropTypes !== void 0 && !tn) {
4748
4748
  tn = !0;
4749
4749
  var N = M(m);
@@ -4754,8 +4754,8 @@ Check the top-level render call using <` + w + ">.");
4754
4754
  }
4755
4755
  function qs(u) {
4756
4756
  {
4757
- for (var m = Object.keys(u.props), w = 0; w < m.length; w++) {
4758
- var _ = m[w];
4757
+ for (var m = Object.keys(u.props), b = 0; b < m.length; b++) {
4758
+ var _ = m[b];
4759
4759
  if (_ !== "children" && _ !== "key") {
4760
4760
  Ye(u), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ye(null);
4761
4761
  break;
@@ -4764,7 +4764,7 @@ Check the top-level render call using <` + w + ">.");
4764
4764
  u.ref !== null && (Ye(u), R("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
4765
4765
  }
4766
4766
  }
4767
- function nr(u, m, w, _, N, j) {
4767
+ function nr(u, m, b, _, N, j) {
4768
4768
  {
4769
4769
  var A = Q(u);
4770
4770
  if (!A) {
@@ -4775,7 +4775,7 @@ Check the top-level render call using <` + w + ">.");
4775
4775
  var $;
4776
4776
  u === null ? $ = "null" : ze(u) ? $ = "array" : u !== void 0 && u.$$typeof === e ? ($ = "<" + (M(u.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof u, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, S);
4777
4777
  }
4778
- var z = Bs(u, m, w, N, j);
4778
+ var z = Bs(u, m, b, N, j);
4779
4779
  if (z == null)
4780
4780
  return z;
4781
4781
  if (A) {
@@ -4794,11 +4794,11 @@ Check the top-level render call using <` + w + ">.");
4794
4794
  return u === r ? qs(z) : js(z), z;
4795
4795
  }
4796
4796
  }
4797
- function Vs(u, m, w) {
4798
- return nr(u, m, w, !0);
4797
+ function Vs(u, m, b) {
4798
+ return nr(u, m, b, !0);
4799
4799
  }
4800
- function Ms(u, m, w) {
4801
- return nr(u, m, w, !1);
4800
+ function Ms(u, m, b) {
4801
+ return nr(u, m, b, !1);
4802
4802
  }
4803
4803
  var $s = Ms, Hs = Vs;
4804
4804
  ht.Fragment = r, ht.jsx = $s, ht.jsxs = Hs;
@@ -5079,7 +5079,9 @@ const ac = (n, e, t = !1, r = !1, s, i) => {
5079
5079
  const {
5080
5080
  socket: s
5081
5081
  } = Z(ee), [i, o] = U([]);
5082
- Ze(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), r && (s == null || s.emit("doc_open", n, e)), () => {
5082
+ Ze(() => (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", () => {
5083
+ s == null || s.emit("doc_subscribe", n, e);
5084
+ }), r && (s == null || s.emit("doc_open", n, e)), () => {
5083
5085
  s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
5084
5086
  }), [n, e, r]), Fn("doc_update", t);
5085
5087
  const c = V(() => {
@@ -5098,7 +5100,9 @@ const ac = (n, e, t = !1, r = !1, s, i) => {
5098
5100
  const {
5099
5101
  socket: t
5100
5102
  } = Z(ee);
5101
- Ze(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
5103
+ Ze(() => (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", () => {
5104
+ t == null || t.emit("doctype_subscribe", n);
5105
+ }), () => {
5102
5106
  t == null || t.emit("doctype_unsubscribe", n);
5103
5107
  }), [n]), Fn("list_update", e);
5104
5108
  };