frappe-react-sdk 1.0.23 → 1.0.24

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.
@@ -350,22 +350,22 @@ function Dn() {
350
350
  Fn = 1;
351
351
  var e = ee, r = da(), t = pa(), o = ir, a = ma(), n = wa(), i = _a(), c = cr(), d = ur, s = ft();
352
352
  return At = function(l) {
353
- return new Promise(function(h, b) {
354
- var w = l.data, T = l.headers, x = l.responseType, S;
355
- function O() {
353
+ return new Promise(function(h, E) {
354
+ var w = l.data, F = l.headers, C = l.responseType, S;
355
+ function T() {
356
356
  l.cancelToken && l.cancelToken.unsubscribe(S), l.signal && l.signal.removeEventListener("abort", S);
357
357
  }
358
- e.isFormData(w) && delete T["Content-Type"];
358
+ e.isFormData(w) && delete F["Content-Type"];
359
359
  var m = new XMLHttpRequest();
360
360
  if (l.auth) {
361
361
  var I = l.auth.username || "", y = l.auth.password ? unescape(encodeURIComponent(l.auth.password)) : "";
362
- T.Authorization = "Basic " + btoa(I + ":" + y);
362
+ F.Authorization = "Basic " + btoa(I + ":" + y);
363
363
  }
364
364
  var A = a(l.baseURL, l.url);
365
365
  m.open(l.method.toUpperCase(), o(A, l.params, l.paramsSerializer), !0), m.timeout = l.timeout;
366
366
  function M() {
367
367
  if (!!m) {
368
- var N = "getAllResponseHeaders" in m ? n(m.getAllResponseHeaders()) : null, J = !x || x === "text" || x === "json" ? m.responseText : m.response, K = {
368
+ var N = "getAllResponseHeaders" in m ? n(m.getAllResponseHeaders()) : null, J = !C || C === "text" || C === "json" ? m.responseText : m.response, K = {
369
369
  data: J,
370
370
  status: m.status,
371
371
  statusText: m.statusText,
@@ -374,21 +374,21 @@ function Dn() {
374
374
  request: m
375
375
  };
376
376
  r(function(G) {
377
- h(G), O();
377
+ h(G), T();
378
378
  }, function(G) {
379
- b(G), O();
379
+ E(G), T();
380
380
  }, K), m = null;
381
381
  }
382
382
  }
383
383
  if ("onloadend" in m ? m.onloadend = M : m.onreadystatechange = function() {
384
384
  !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(M);
385
385
  }, m.onabort = function() {
386
- !m || (b(c("Request aborted", l, "ECONNABORTED", m)), m = null);
386
+ !m || (E(c("Request aborted", l, "ECONNABORTED", m)), m = null);
387
387
  }, m.onerror = function() {
388
- b(c("Network Error", l, null, m)), m = null;
388
+ E(c("Network Error", l, null, m)), m = null;
389
389
  }, m.ontimeout = function() {
390
390
  var J = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded", K = l.transitional || d;
391
- l.timeoutErrorMessage && (J = l.timeoutErrorMessage), b(c(
391
+ l.timeoutErrorMessage && (J = l.timeoutErrorMessage), E(c(
392
392
  J,
393
393
  l,
394
394
  K.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
@@ -396,12 +396,12 @@ function Dn() {
396
396
  )), m = null;
397
397
  }, e.isStandardBrowserEnv()) {
398
398
  var P = (l.withCredentials || i(A)) && l.xsrfCookieName ? t.read(l.xsrfCookieName) : void 0;
399
- P && (T[l.xsrfHeaderName] = P);
399
+ P && (F[l.xsrfHeaderName] = P);
400
400
  }
401
- "setRequestHeader" in m && e.forEach(T, function(J, K) {
402
- typeof w > "u" && K.toLowerCase() === "content-type" ? delete T[K] : m.setRequestHeader(K, J);
403
- }), e.isUndefined(l.withCredentials) || (m.withCredentials = !!l.withCredentials), x && x !== "json" && (m.responseType = l.responseType), typeof l.onDownloadProgress == "function" && m.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (S = function(N) {
404
- !m || (b(!N || N && N.type ? new s("canceled") : N), m.abort(), m = null);
401
+ "setRequestHeader" in m && e.forEach(F, function(J, K) {
402
+ typeof w > "u" && K.toLowerCase() === "content-type" ? delete F[K] : m.setRequestHeader(K, J);
403
+ }), e.isUndefined(l.withCredentials) || (m.withCredentials = !!l.withCredentials), C && C !== "json" && (m.responseType = l.responseType), typeof l.onDownloadProgress == "function" && m.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (S = function(N) {
404
+ !m || (E(!N || N && N.type ? new s("canceled") : N), m.abort(), m = null);
405
405
  }, l.cancelToken && l.cancelToken.subscribe(S), l.signal && (l.signal.aborted ? S() : l.signal.addEventListener("abort", S))), w || (w = null), m.send(w);
406
406
  });
407
407
  }, At;
@@ -752,24 +752,24 @@ function Na() {
752
752
  };
753
753
  }), It;
754
754
  }
755
- var qt, Vn;
755
+ var qt, Bn;
756
756
  function Ia() {
757
- if (Vn)
757
+ if (Bn)
758
758
  return qt;
759
- Vn = 1;
759
+ Bn = 1;
760
760
  var e = ee;
761
761
  return qt = function(t) {
762
762
  return e.isObject(t) && t.isAxiosError === !0;
763
763
  }, qt;
764
764
  }
765
- var Bn = ee, qa = nr, ut = Pa, $a = fr, Va = rn;
765
+ var Vn = ee, qa = nr, ut = Pa, $a = fr, Ba = rn;
766
766
  function vr(e) {
767
767
  var r = new ut(e), t = qa(ut.prototype.request, r);
768
- return Bn.extend(t, ut.prototype, r), Bn.extend(t, r), t.create = function(a) {
768
+ return Vn.extend(t, ut.prototype, r), Vn.extend(t, r), t.create = function(a) {
769
769
  return vr($a(e, a));
770
770
  }, t;
771
771
  }
772
- var ce = vr(Va);
772
+ var ce = vr(Ba);
773
773
  ce.Axios = ut;
774
774
  ce.Cancel = ft();
775
775
  ce.CancelToken = Ua();
@@ -887,7 +887,7 @@ var ct = j && j.__assign || function() {
887
887
  };
888
888
  Object.defineProperty(Ye, "__esModule", { value: !0 });
889
889
  Ye.FrappeCall = void 0;
890
- var nt = Ge.exports, Ba = function() {
890
+ var nt = Ge.exports, Va = function() {
891
891
  function e(r) {
892
892
  this.appURL = r;
893
893
  }
@@ -991,7 +991,7 @@ var nt = Ge.exports, Ba = function() {
991
991
  });
992
992
  }, e;
993
993
  }();
994
- Ye.FrappeCall = Ba;
994
+ Ye.FrappeCall = Va;
995
995
  var Ke = {}, we = j && j.__assign || function() {
996
996
  return we = Object.assign || function(e) {
997
997
  for (var r, t = 1, o = arguments.length; t < o; t++) {
@@ -1128,33 +1128,34 @@ var Le = Ge.exports, Ma = function() {
1128
1128
  }, e.prototype.getDocList = function(r, t) {
1129
1129
  var o;
1130
1130
  return Te(this, void 0, void 0, function() {
1131
- var a, n, i, c, d, s, f, l, _, h, b;
1132
- return Ce(this, function(w) {
1133
- return a = {}, t && (n = t.fields, i = t.filters, c = t.orFilters, d = t.orderBy, s = t.limit, f = t.limit_start, l = t.asDict, _ = l === void 0 ? !0 : l, h = d ? "".concat(d == null ? void 0 : d.field, " ").concat((o = d == null ? void 0 : d.order) !== null && o !== void 0 ? o : "asc") : "", a = {
1131
+ var a, n, i, c, d, s, f, l, _, h, E, w;
1132
+ return Ce(this, function(F) {
1133
+ return a = {}, t && (n = t.fields, i = t.filters, c = t.orFilters, d = t.orderBy, s = t.limit, f = t.limit_start, l = t.groupBy, _ = t.asDict, h = _ === void 0 ? !0 : _, E = d ? "".concat(d == null ? void 0 : d.field, " ").concat((o = d == null ? void 0 : d.order) !== null && o !== void 0 ? o : "asc") : "", a = {
1134
1134
  fields: n ? JSON.stringify(n) : void 0,
1135
1135
  filters: i ? JSON.stringify(i) : void 0,
1136
1136
  or_filters: c ? JSON.stringify(c) : void 0,
1137
- order_by: h,
1137
+ order_by: E,
1138
+ group_by: l,
1138
1139
  limit: s,
1139
1140
  limit_start: f,
1140
- as_dict: _
1141
- }), b = {
1141
+ as_dict: h
1142
+ }), w = {
1142
1143
  Accept: "application/json",
1143
1144
  "Content-Type": "application/json; charset=utf-8",
1144
1145
  "X-Frappe-Site-Name": window.location.hostname
1145
- }, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (b["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.get(this.getRequestURL(r), {
1146
+ }, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (w["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.get(this.getRequestURL(r), {
1146
1147
  params: a,
1147
- headers: b,
1148
+ headers: w,
1148
1149
  withCredentials: !0
1149
- }).then(function(T) {
1150
- return T.data.data;
1151
- }).catch(function(T) {
1152
- var x, S;
1150
+ }).then(function(C) {
1151
+ return C.data.data;
1152
+ }).catch(function(C) {
1153
+ var S, T;
1153
1154
  throw {
1154
- httpStatus: T.response.status,
1155
- httpStatusText: T.response.statusText,
1155
+ httpStatus: C.response.status,
1156
+ httpStatusText: C.response.statusText,
1156
1157
  message: "There was an error while fetching the documents.",
1157
- exception: (S = (x = T.response.data.exception) !== null && x !== void 0 ? x : T.response.data.exc_type) !== null && S !== void 0 ? S : ""
1158
+ exception: (T = (S = C.response.data.exception) !== null && S !== void 0 ? S : C.response.data.exc_type) !== null && T !== void 0 ? T : ""
1158
1159
  };
1159
1160
  })];
1160
1161
  });
@@ -1390,11 +1391,11 @@ var Ha = Ge.exports, Ja = function() {
1390
1391
  o && o(h.loaded, h.total);
1391
1392
  }
1392
1393
  }).catch(function(h) {
1393
- var b, w;
1394
+ var E, w;
1394
1395
  throw {
1395
1396
  httpStatus: h.response.status,
1396
1397
  httpStatusText: h.response.statusText,
1397
- message: (b = h.response.data.message) !== null && b !== void 0 ? b : "There was an error while uploading the file.",
1398
+ message: (E = h.response.data.message) !== null && E !== void 0 ? E : "There was an error while uploading the file.",
1398
1399
  exception: (w = h.response.data.exception) !== null && w !== void 0 ? w : ""
1399
1400
  };
1400
1401
  })];
@@ -1664,12 +1665,12 @@ function Ka() {
1664
1665
  }
1665
1666
  var t = typeof Object.is == "function" ? Object.is : r, o = e.useState, a = e.useEffect, n = e.useLayoutEffect, i = e.useDebugValue;
1666
1667
  function c(l, _) {
1667
- var h = _(), b = o({ inst: { value: h, getSnapshot: _ } }), w = b[0].inst, T = b[1];
1668
+ var h = _(), E = o({ inst: { value: h, getSnapshot: _ } }), w = E[0].inst, F = E[1];
1668
1669
  return n(function() {
1669
- w.value = h, w.getSnapshot = _, d(w) && T({ inst: w });
1670
+ w.value = h, w.getSnapshot = _, d(w) && F({ inst: w });
1670
1671
  }, [l, h, _]), a(function() {
1671
- return d(w) && T({ inst: w }), l(function() {
1672
- d(w) && T({ inst: w });
1672
+ return d(w) && F({ inst: w }), l(function() {
1673
+ d(w) && F({ inst: w });
1673
1674
  });
1674
1675
  }, [l]), i(h), h;
1675
1676
  }
@@ -1689,7 +1690,7 @@ function Ka() {
1689
1690
  var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? s : c;
1690
1691
  return $t.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, $t;
1691
1692
  }
1692
- var Vt = {};
1693
+ var Bt = {};
1693
1694
  /**
1694
1695
  * @license React
1695
1696
  * use-sync-external-store-shim.development.js
@@ -1704,28 +1705,28 @@ function Qa() {
1704
1705
  return Hn || (Hn = 1, process.env.NODE_ENV !== "production" && function() {
1705
1706
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1706
1707
  var e = je, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1707
- function t(O) {
1708
+ function t(T) {
1708
1709
  {
1709
1710
  for (var m = arguments.length, I = new Array(m > 1 ? m - 1 : 0), y = 1; y < m; y++)
1710
1711
  I[y - 1] = arguments[y];
1711
- o("error", O, I);
1712
+ o("error", T, I);
1712
1713
  }
1713
1714
  }
1714
- function o(O, m, I) {
1715
+ function o(T, m, I) {
1715
1716
  {
1716
1717
  var y = r.ReactDebugCurrentFrame, A = y.getStackAddendum();
1717
1718
  A !== "" && (m += "%s", I = I.concat([A]));
1718
1719
  var M = I.map(function(P) {
1719
1720
  return String(P);
1720
1721
  });
1721
- M.unshift("Warning: " + m), Function.prototype.apply.call(console[O], console, M);
1722
+ M.unshift("Warning: " + m), Function.prototype.apply.call(console[T], console, M);
1722
1723
  }
1723
1724
  }
1724
- function a(O, m) {
1725
- return O === m && (O !== 0 || 1 / O === 1 / m) || O !== O && m !== m;
1725
+ function a(T, m) {
1726
+ return T === m && (T !== 0 || 1 / T === 1 / m) || T !== T && m !== m;
1726
1727
  }
1727
1728
  var n = typeof Object.is == "function" ? Object.is : a, i = e.useState, c = e.useEffect, d = e.useLayoutEffect, s = e.useDebugValue, f = !1, l = !1;
1728
- function _(O, m, I) {
1729
+ function _(T, m, I) {
1729
1730
  f || e.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."));
1730
1731
  var y = m();
1731
1732
  if (!l) {
@@ -1742,7 +1743,7 @@ function Qa() {
1742
1743
  P.value = y, P.getSnapshot = m, h(P) && N({
1743
1744
  inst: P
1744
1745
  });
1745
- }, [O, y, m]), c(function() {
1746
+ }, [T, y, m]), c(function() {
1746
1747
  h(P) && N({
1747
1748
  inst: P
1748
1749
  });
@@ -1751,11 +1752,11 @@ function Qa() {
1751
1752
  inst: P
1752
1753
  });
1753
1754
  };
1754
- return O(J);
1755
- }, [O]), s(y), y;
1755
+ return T(J);
1756
+ }, [T]), s(y), y;
1756
1757
  }
1757
- function h(O) {
1758
- var m = O.getSnapshot, I = O.value;
1758
+ function h(T) {
1759
+ var m = T.getSnapshot, I = T.value;
1759
1760
  try {
1760
1761
  var y = m();
1761
1762
  return !n(I, y);
@@ -1763,18 +1764,18 @@ function Qa() {
1763
1764
  return !0;
1764
1765
  }
1765
1766
  }
1766
- function b(O, m, I) {
1767
+ function E(T, m, I) {
1767
1768
  return m();
1768
1769
  }
1769
- var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", T = !w, x = T ? b : _, S = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : x;
1770
- Vt.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1771
- }()), Vt;
1770
+ var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", F = !w, C = F ? E : _, S = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : C;
1771
+ Bt.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1772
+ }()), Bt;
1772
1773
  }
1773
1774
  (function(e) {
1774
1775
  process.env.NODE_ENV === "production" ? e.exports = Ka() : e.exports = Qa();
1775
1776
  })(wr);
1776
1777
  const he = /* @__PURE__ */ new WeakMap(), Jn = {}, _e = () => {
1777
- }, ie = _e(), Bt = Object, U = (e) => e === ie, ve = (e) => typeof e == "function", ye = (e, r) => ({
1778
+ }, ie = _e(), Vt = Object, U = (e) => e === ie, ve = (e) => typeof e == "function", ye = (e, r) => ({
1778
1779
  ...e,
1779
1780
  ...r
1780
1781
  }), on = "undefined", vt = typeof window != on, Gt = typeof document != on, Za = () => vt && typeof window.requestAnimationFrame != on, _r = (e, r) => {
@@ -1792,7 +1793,7 @@ let eo = 0;
1792
1793
  const He = (e) => {
1793
1794
  const r = typeof e, t = e && e.constructor, o = t == Date;
1794
1795
  let a, n;
1795
- if (Bt(e) === e && !o && t != RegExp) {
1796
+ if (Vt(e) === e && !o && t != RegExp) {
1796
1797
  if (a = it.get(e), a)
1797
1798
  return a;
1798
1799
  if (a = ++eo + "~", it.set(e, a), t == Array) {
@@ -1800,9 +1801,9 @@ const He = (e) => {
1800
1801
  a += He(e[n]) + ",";
1801
1802
  it.set(e, a);
1802
1803
  }
1803
- if (t == Bt) {
1804
+ if (t == Vt) {
1804
1805
  a = "#";
1805
- const i = Bt.keys(e).sort();
1806
+ const i = Vt.keys(e).sort();
1806
1807
  for (; !U(n = i.pop()); )
1807
1808
  U(e[n]) || (a += n + ":" + He(e[n]) + ",");
1808
1809
  it.set(e, a);
@@ -1874,55 +1875,55 @@ async function Sr(...e) {
1874
1875
  let d = n.optimisticData;
1875
1876
  const s = n.revalidate !== !1, f = (h) => typeof c == "function" ? c(h) : c !== !1, l = n.throwOnError;
1876
1877
  if (ve(t)) {
1877
- const h = t, b = [], w = r.keys();
1878
- for (let T = w.next(); !T.done; T = w.next()) {
1879
- const x = T.value;
1880
- !x.startsWith("$inf$") && h(r.get(x)._k) && b.push(x);
1878
+ const h = t, E = [], w = r.keys();
1879
+ for (let F = w.next(); !F.done; F = w.next()) {
1880
+ const C = F.value;
1881
+ !C.startsWith("$inf$") && h(r.get(C)._k) && E.push(C);
1881
1882
  }
1882
- return Promise.all(b.map(_));
1883
+ return Promise.all(E.map(_));
1883
1884
  }
1884
1885
  return _(t);
1885
1886
  async function _(h) {
1886
- const [b] = sn(h);
1887
- if (!b)
1887
+ const [E] = sn(h);
1888
+ if (!E)
1888
1889
  return;
1889
- const [w, T] = _r(r, b), [x, S, O] = he.get(r), m = x[b], I = () => s && (delete O[b], m && m[0]) ? m[0](Er).then(() => w().data) : w().data;
1890
+ const [w, F] = _r(r, E), [C, S, T] = he.get(r), m = C[E], I = () => s && (delete T[E], m && m[0]) ? m[0](Er).then(() => w().data) : w().data;
1890
1891
  if (e.length < 3)
1891
1892
  return I();
1892
1893
  let y = o, A;
1893
1894
  const M = Zt();
1894
- S[b] = [
1895
+ S[E] = [
1895
1896
  M,
1896
1897
  0
1897
1898
  ];
1898
- const P = !U(d), N = w(), J = N.data, K = N._c, V = U(K) ? J : K;
1899
- if (P && (d = ve(d) ? d(V) : d, T({
1899
+ const P = !U(d), N = w(), J = N.data, K = N._c, B = U(K) ? J : K;
1900
+ if (P && (d = ve(d) ? d(B) : d, F({
1900
1901
  data: d,
1901
- _c: V
1902
+ _c: B
1902
1903
  })), ve(y))
1903
1904
  try {
1904
- y = y(V);
1905
+ y = y(B);
1905
1906
  } catch (z) {
1906
1907
  A = z;
1907
1908
  }
1908
1909
  if (y && ve(y.then))
1909
1910
  if (y = await y.catch((z) => {
1910
1911
  A = z;
1911
- }), M !== S[b][0]) {
1912
+ }), M !== S[E][0]) {
1912
1913
  if (A)
1913
1914
  throw A;
1914
1915
  return y;
1915
1916
  } else
1916
- A && P && f(A) && (i = !0, y = V, T({
1917
+ A && P && f(A) && (i = !0, y = B, F({
1917
1918
  data: y,
1918
1919
  _c: ie
1919
1920
  }));
1920
- i && (A || (ve(i) && (y = i(y, V)), T({
1921
+ i && (A || (ve(i) && (y = i(y, B)), F({
1921
1922
  data: y,
1922
1923
  _c: ie
1923
- }))), S[b][1] = Zt();
1924
+ }))), S[E][1] = Zt();
1924
1925
  const G = await I();
1925
- if (T({
1926
+ if (F({
1926
1927
  _c: ie
1927
1928
  }), A) {
1928
1929
  if (l)
@@ -1946,8 +1947,8 @@ const zn = (e, r) => {
1946
1947
  e.set(f, l);
1947
1948
  const h = i[f];
1948
1949
  if (h)
1949
- for (let b = h.length; b--; )
1950
- h[b](_, l);
1950
+ for (let E = h.length; E--; )
1951
+ h[E](_, l);
1951
1952
  }, s = () => {
1952
1953
  if (!he.has(e) && (he.set(e, [
1953
1954
  o,
@@ -2038,7 +2039,7 @@ _o();
2038
2039
  const Ht = {
2039
2040
  dedupe: !0
2040
2041
  }, To = (e, r, t) => {
2041
- const { cache: o, compare: a, suspense: n, fallbackData: i, revalidateOnMount: c, refreshInterval: d, refreshWhenHidden: s, refreshWhenOffline: f, keepPreviousData: l } = t, [_, h, b] = he.get(o), [w, T] = sn(e), x = ge(!1), S = ge(!1), O = ge(w), m = ge(r), I = ge(t), y = () => I.current, A = () => y().isVisible() && y().isOnline(), [M, P, N] = _r(o, w), J = ge({}).current, K = U(i) ? t.fallback[w] : i, V = (D, q) => {
2042
+ const { cache: o, compare: a, suspense: n, fallbackData: i, revalidateOnMount: c, refreshInterval: d, refreshWhenHidden: s, refreshWhenOffline: f, keepPreviousData: l } = t, [_, h, E] = he.get(o), [w, F] = sn(e), C = ge(!1), S = ge(!1), T = ge(w), m = ge(r), I = ge(t), y = () => I.current, A = () => y().isVisible() && y().isOnline(), [M, P, N] = _r(o, w), J = ge({}).current, K = U(i) ? t.fallback[w] : i, B = (D, q) => {
2042
2043
  let L = !0;
2043
2044
  for (const W in J) {
2044
2045
  const X = W;
@@ -2057,33 +2058,33 @@ const Ht = {
2057
2058
  let L = q();
2058
2059
  return () => {
2059
2060
  const W = q();
2060
- return V(W, L) ? L : L = W;
2061
+ return B(W, L) ? L : L = W;
2061
2062
  };
2062
2063
  }, [
2063
2064
  o,
2064
2065
  w
2065
2066
  ]), z = wr.exports.useSyncExternalStore(H(
2066
2067
  (D) => N(w, (q, L) => {
2067
- V(q, L) || D();
2068
+ B(q, L) || D();
2068
2069
  }),
2069
2070
  [
2070
2071
  o,
2071
2072
  w
2072
2073
  ]
2073
- ), G, G), Pe = !x.current, le = z.data, se = U(le) ? K : le, Oe = z.error, Ue = ge(se), xe = l ? U(le) ? Ue.current : le : se, Ne = (() => Pe && !U(c) ? c : y().isPaused() ? !1 : n ? U(se) ? !1 : t.revalidateIfStale : U(se) || t.revalidateIfStale)(), Ie = !!(w && r && Pe && Ne), mt = U(z.isValidating) ? Ie : z.isValidating, wt = U(z.isLoading) ? Ie : z.isLoading, fe = H(
2074
+ ), G, G), Pe = !C.current, le = z.data, se = U(le) ? K : le, Oe = z.error, Ue = ge(se), xe = l ? U(le) ? Ue.current : le : se, Ne = (() => Pe && !U(c) ? c : y().isPaused() ? !1 : n ? U(se) ? !1 : t.revalidateIfStale : U(se) || t.revalidateIfStale)(), Ie = !!(w && r && Pe && Ne), mt = U(z.isValidating) ? Ie : z.isValidating, wt = U(z.isLoading) ? Ie : z.isLoading, fe = H(
2074
2075
  async (D) => {
2075
2076
  const q = m.current;
2076
2077
  if (!w || !q || S.current || y().isPaused())
2077
2078
  return !1;
2078
2079
  let L, W, X = !0;
2079
- const Ee = D || {}, me = !b[w] || !Ee.dedupe, ue = () => Yn ? !S.current && w === O.current && x.current : w === O.current, de = {
2080
+ const Ee = D || {}, me = !E[w] || !Ee.dedupe, ue = () => Yn ? !S.current && w === T.current && C.current : w === T.current, de = {
2080
2081
  isValidating: !1,
2081
2082
  isLoading: !1
2082
2083
  }, $e = () => {
2083
2084
  P(de);
2084
- }, Ve = () => {
2085
- const Z = b[w];
2086
- Z && Z[1] === W && delete b[w];
2085
+ }, Be = () => {
2086
+ const Z = E[w];
2087
+ Z && Z[1] === W && delete E[w];
2087
2088
  }, Se = {
2088
2089
  isValidating: !0
2089
2090
  };
@@ -2091,10 +2092,10 @@ const Ht = {
2091
2092
  try {
2092
2093
  if (me && (P(Se), t.loadingTimeout && U(M().data) && setTimeout(() => {
2093
2094
  X && ue() && y().onLoadingSlow(w, t);
2094
- }, t.loadingTimeout), b[w] = [
2095
- q(T),
2095
+ }, t.loadingTimeout), E[w] = [
2096
+ q(F),
2096
2097
  Zt()
2097
- ]), [L, W] = b[w], L = await L, me && setTimeout(Ve, t.dedupingInterval), !b[w] || b[w][1] !== W)
2098
+ ]), [L, W] = E[w], L = await L, me && setTimeout(Be, t.dedupingInterval), !E[w] || E[w][1] !== W)
2098
2099
  return me && ue() && y().onDiscarded(w), !1;
2099
2100
  de.error = ie;
2100
2101
  const Z = h[w];
@@ -2103,7 +2104,7 @@ const Ht = {
2103
2104
  const oe = M().data;
2104
2105
  de.data = a(oe, L) ? oe : L, me && ue() && y().onSuccess(L, w, t);
2105
2106
  } catch (Z) {
2106
- Ve();
2107
+ Be();
2107
2108
  const oe = y(), { shouldRetryOnError: Re } = oe;
2108
2109
  oe.isPaused() || (de.error = Z, me && ue() && (oe.onError(Z, w, oe), (Re === !0 || ve(Re) && Re(Z)) && A() && oe.onErrorRetry(Z, w, oe, fe, {
2109
2110
  retryCount: (Ee.retryCount || 0) + 1,
@@ -2117,7 +2118,7 @@ const Ht = {
2117
2118
  o
2118
2119
  ]
2119
2120
  ), qe = H(
2120
- (...D) => Sr(o, O.current, ...D),
2121
+ (...D) => Sr(o, T.current, ...D),
2121
2122
  []
2122
2123
  );
2123
2124
  if (Mt(() => {
@@ -2136,8 +2137,8 @@ const Ht = {
2136
2137
  else if (X == Xt.MUTATE_EVENT)
2137
2138
  return fe();
2138
2139
  });
2139
- return S.current = !1, O.current = w, x.current = !0, P({
2140
- _k: T
2140
+ return S.current = !1, T.current = w, C.current = !0, P({
2141
+ _k: F
2141
2142
  }), Ne && (U(se) || Je ? D() : so(D)), () => {
2142
2143
  S.current = !0, W();
2143
2144
  };
@@ -2219,29 +2220,29 @@ var Xe = {};
2219
2220
  var Qn;
2220
2221
  function Oo() {
2221
2222
  return Qn || (Qn = 1, process.env.NODE_ENV !== "production" && function() {
2222
- var e = je, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
2223
- function T(u) {
2223
+ var e = je, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), E = Symbol.iterator, w = "@@iterator";
2224
+ function F(u) {
2224
2225
  if (u === null || typeof u != "object")
2225
2226
  return null;
2226
- var p = b && u[b] || u[w];
2227
+ var p = E && u[E] || u[w];
2227
2228
  return typeof p == "function" ? p : null;
2228
2229
  }
2229
- var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2230
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2230
2231
  function S(u) {
2231
2232
  {
2232
- for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), E = 1; E < p; E++)
2233
- v[E - 1] = arguments[E];
2234
- O("error", u, v);
2233
+ for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), b = 1; b < p; b++)
2234
+ v[b - 1] = arguments[b];
2235
+ T("error", u, v);
2235
2236
  }
2236
2237
  }
2237
- function O(u, p, v) {
2238
+ function T(u, p, v) {
2238
2239
  {
2239
- var E = x.ReactDebugCurrentFrame, C = E.getStackAddendum();
2240
- C !== "" && (p += "%s", v = v.concat([C]));
2241
- var F = v.map(function(g) {
2240
+ var b = C.ReactDebugCurrentFrame, O = b.getStackAddendum();
2241
+ O !== "" && (p += "%s", v = v.concat([O]));
2242
+ var x = v.map(function(g) {
2242
2243
  return String(g);
2243
2244
  });
2244
- F.unshift("Warning: " + p), Function.prototype.apply.call(console[u], console, F);
2245
+ x.unshift("Warning: " + p), Function.prototype.apply.call(console[u], console, x);
2245
2246
  }
2246
2247
  }
2247
2248
  var m = !1, I = !1, y = !1, A = !1, M = !1, P;
@@ -2250,16 +2251,16 @@ function Oo() {
2250
2251
  return !!(typeof u == "string" || typeof u == "function" || u === o || u === n || M || u === a || u === s || u === f || A || u === h || m || I || y || typeof u == "object" && u !== null && (u.$$typeof === _ || u.$$typeof === l || u.$$typeof === i || u.$$typeof === c || u.$$typeof === d || u.$$typeof === P || u.getModuleId !== void 0));
2251
2252
  }
2252
2253
  function J(u, p, v) {
2253
- var E = u.displayName;
2254
- if (E)
2255
- return E;
2256
- var C = p.displayName || p.name || "";
2257
- return C !== "" ? v + "(" + C + ")" : v;
2254
+ var b = u.displayName;
2255
+ if (b)
2256
+ return b;
2257
+ var O = p.displayName || p.name || "";
2258
+ return O !== "" ? v + "(" + O + ")" : v;
2258
2259
  }
2259
2260
  function K(u) {
2260
2261
  return u.displayName || "Context";
2261
2262
  }
2262
- function V(u) {
2263
+ function B(u) {
2263
2264
  if (u == null)
2264
2265
  return null;
2265
2266
  if (typeof u.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
@@ -2291,12 +2292,12 @@ function Oo() {
2291
2292
  case d:
2292
2293
  return J(u, u.render, "ForwardRef");
2293
2294
  case l:
2294
- var E = u.displayName || null;
2295
- return E !== null ? E : V(u.type) || "Memo";
2295
+ var b = u.displayName || null;
2296
+ return b !== null ? b : B(u.type) || "Memo";
2296
2297
  case _: {
2297
- var C = u, F = C._payload, g = C._init;
2298
+ var O = u, x = O._payload, g = O._init;
2298
2299
  try {
2299
- return V(g(F));
2300
+ return B(g(x));
2300
2301
  } catch {
2301
2302
  return null;
2302
2303
  }
@@ -2366,15 +2367,15 @@ function Oo() {
2366
2367
  z < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2367
2368
  }
2368
2369
  }
2369
- var fe = x.ReactCurrentDispatcher, qe;
2370
+ var fe = C.ReactCurrentDispatcher, qe;
2370
2371
  function D(u, p, v) {
2371
2372
  {
2372
2373
  if (qe === void 0)
2373
2374
  try {
2374
2375
  throw Error();
2375
- } catch (C) {
2376
- var E = C.stack.trim().match(/\n( *(at )?)/);
2377
- qe = E && E[1] || "";
2376
+ } catch (O) {
2377
+ var b = O.stack.trim().match(/\n( *(at )?)/);
2378
+ qe = b && b[1] || "";
2378
2379
  }
2379
2380
  return `
2380
2381
  ` + qe + u;
@@ -2393,12 +2394,12 @@ function Oo() {
2393
2394
  if (v !== void 0)
2394
2395
  return v;
2395
2396
  }
2396
- var E;
2397
+ var b;
2397
2398
  q = !0;
2398
- var C = Error.prepareStackTrace;
2399
+ var O = Error.prepareStackTrace;
2399
2400
  Error.prepareStackTrace = void 0;
2400
- var F;
2401
- F = fe.current, fe.current = null, mt();
2401
+ var x;
2402
+ x = fe.current, fe.current = null, mt();
2402
2403
  try {
2403
2404
  if (p) {
2404
2405
  var g = function() {
@@ -2412,14 +2413,14 @@ function Oo() {
2412
2413
  try {
2413
2414
  Reflect.construct(g, []);
2414
2415
  } catch (pe) {
2415
- E = pe;
2416
+ b = pe;
2416
2417
  }
2417
2418
  Reflect.construct(u, [], g);
2418
2419
  } else {
2419
2420
  try {
2420
2421
  g.call();
2421
2422
  } catch (pe) {
2422
- E = pe;
2423
+ b = pe;
2423
2424
  }
2424
2425
  u.call(g.prototype);
2425
2426
  }
@@ -2427,31 +2428,31 @@ function Oo() {
2427
2428
  try {
2428
2429
  throw Error();
2429
2430
  } catch (pe) {
2430
- E = pe;
2431
+ b = pe;
2431
2432
  }
2432
2433
  u();
2433
2434
  }
2434
2435
  } catch (pe) {
2435
- if (pe && E && typeof pe.stack == "string") {
2436
+ if (pe && b && typeof pe.stack == "string") {
2436
2437
  for (var R = pe.stack.split(`
2437
- `), Q = E.stack.split(`
2438
- `), $ = R.length - 1, B = Q.length - 1; $ >= 1 && B >= 0 && R[$] !== Q[B]; )
2439
- B--;
2440
- for (; $ >= 1 && B >= 0; $--, B--)
2441
- if (R[$] !== Q[B]) {
2442
- if ($ !== 1 || B !== 1)
2438
+ `), Q = b.stack.split(`
2439
+ `), $ = R.length - 1, V = Q.length - 1; $ >= 1 && V >= 0 && R[$] !== Q[V]; )
2440
+ V--;
2441
+ for (; $ >= 1 && V >= 0; $--, V--)
2442
+ if (R[$] !== Q[V]) {
2443
+ if ($ !== 1 || V !== 1)
2443
2444
  do
2444
- if ($--, B--, B < 0 || R[$] !== Q[B]) {
2445
+ if ($--, V--, V < 0 || R[$] !== Q[V]) {
2445
2446
  var ae = `
2446
2447
  ` + R[$].replace(" at new ", " at ");
2447
2448
  return u.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", u.displayName)), typeof u == "function" && L.set(u, ae), ae;
2448
2449
  }
2449
- while ($ >= 1 && B >= 0);
2450
+ while ($ >= 1 && V >= 0);
2450
2451
  break;
2451
2452
  }
2452
2453
  }
2453
2454
  } finally {
2454
- q = !1, fe.current = F, wt(), Error.prepareStackTrace = C;
2455
+ q = !1, fe.current = x, wt(), Error.prepareStackTrace = O;
2455
2456
  }
2456
2457
  var De = u ? u.displayName || u.name : "", _n = De ? D(De) : "";
2457
2458
  return typeof u == "function" && L.set(u, _n), _n;
@@ -2483,39 +2484,39 @@ function Oo() {
2483
2484
  case l:
2484
2485
  return ue(u.type, p, v);
2485
2486
  case _: {
2486
- var E = u, C = E._payload, F = E._init;
2487
+ var b = u, O = b._payload, x = b._init;
2487
2488
  try {
2488
- return ue(F(C), p, v);
2489
+ return ue(x(O), p, v);
2489
2490
  } catch {
2490
2491
  }
2491
2492
  }
2492
2493
  }
2493
2494
  return "";
2494
2495
  }
2495
- var de = Object.prototype.hasOwnProperty, $e = {}, Ve = x.ReactDebugCurrentFrame;
2496
+ var de = Object.prototype.hasOwnProperty, $e = {}, Be = C.ReactDebugCurrentFrame;
2496
2497
  function Se(u) {
2497
2498
  if (u) {
2498
2499
  var p = u._owner, v = ue(u.type, u._source, p ? p.type : null);
2499
- Ve.setExtraStackFrame(v);
2500
+ Be.setExtraStackFrame(v);
2500
2501
  } else
2501
- Ve.setExtraStackFrame(null);
2502
+ Be.setExtraStackFrame(null);
2502
2503
  }
2503
- function Z(u, p, v, E, C) {
2504
+ function Z(u, p, v, b, O) {
2504
2505
  {
2505
- var F = Function.call.bind(de);
2506
+ var x = Function.call.bind(de);
2506
2507
  for (var g in u)
2507
- if (F(u, g)) {
2508
+ if (x(u, g)) {
2508
2509
  var R = void 0;
2509
2510
  try {
2510
2511
  if (typeof u[g] != "function") {
2511
- var Q = Error((E || "React class") + ": " + v + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2512
+ var Q = Error((b || "React class") + ": " + v + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2512
2513
  throw Q.name = "Invariant Violation", Q;
2513
2514
  }
2514
- R = u[g](p, g, E, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2515
+ R = u[g](p, g, b, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2515
2516
  } catch ($) {
2516
2517
  R = $;
2517
2518
  }
2518
- R && !(R instanceof Error) && (Se(C), S("%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).", E || "React class", v, g, typeof R), Se(null)), R instanceof Error && !(R.message in $e) && ($e[R.message] = !0, Se(C), S("Failed %s type: %s", v, R.message), Se(null));
2519
+ R && !(R instanceof Error) && (Se(O), S("%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).", b || "React class", v, g, typeof R), Se(null)), R instanceof Error && !(R.message in $e) && ($e[R.message] = !0, Se(O), S("Failed %s type: %s", v, R.message), Se(null));
2519
2520
  }
2520
2521
  }
2521
2522
  }
@@ -2543,7 +2544,7 @@ function Oo() {
2543
2544
  if (xr(u))
2544
2545
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Or(u)), un(u);
2545
2546
  }
2546
- var Be = x.ReactCurrentOwner, Fr = {
2547
+ var Ve = C.ReactCurrentOwner, Fr = {
2547
2548
  key: !0,
2548
2549
  ref: !0,
2549
2550
  __self: !0,
@@ -2567,9 +2568,9 @@ function Oo() {
2567
2568
  return u.key !== void 0;
2568
2569
  }
2569
2570
  function Ar(u, p) {
2570
- if (typeof u.ref == "string" && Be.current && p && Be.current.stateNode !== p) {
2571
- var v = V(Be.current.type);
2572
- _t[v] || (S('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', V(Be.current.type), u.ref), _t[v] = !0);
2571
+ if (typeof u.ref == "string" && Ve.current && p && Ve.current.stateNode !== p) {
2572
+ var v = B(Ve.current.type);
2573
+ _t[v] || (S('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', B(Ve.current.type), u.ref), _t[v] = !0);
2573
2574
  }
2574
2575
  }
2575
2576
  function Lr(u, p) {
@@ -2594,14 +2595,14 @@ function Oo() {
2594
2595
  });
2595
2596
  }
2596
2597
  }
2597
- var Pr = function(u, p, v, E, C, F, g) {
2598
+ var Pr = function(u, p, v, b, O, x, g) {
2598
2599
  var R = {
2599
2600
  $$typeof: r,
2600
2601
  type: u,
2601
2602
  key: p,
2602
2603
  ref: v,
2603
2604
  props: g,
2604
- _owner: F
2605
+ _owner: x
2605
2606
  };
2606
2607
  return R._store = {}, Object.defineProperty(R._store, "validated", {
2607
2608
  configurable: !1,
@@ -2612,33 +2613,33 @@ function Oo() {
2612
2613
  configurable: !1,
2613
2614
  enumerable: !1,
2614
2615
  writable: !1,
2615
- value: E
2616
+ value: b
2616
2617
  }), Object.defineProperty(R, "_source", {
2617
2618
  configurable: !1,
2618
2619
  enumerable: !1,
2619
2620
  writable: !1,
2620
- value: C
2621
+ value: O
2621
2622
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
2622
2623
  };
2623
- function Ur(u, p, v, E, C) {
2624
+ function Ur(u, p, v, b, O) {
2624
2625
  {
2625
- var F, g = {}, R = null, Q = null;
2626
- v !== void 0 && (cn(v), R = "" + v), kr(p) && (cn(p.key), R = "" + p.key), Dr(p) && (Q = p.ref, Ar(p, C));
2627
- for (F in p)
2628
- de.call(p, F) && !Fr.hasOwnProperty(F) && (g[F] = p[F]);
2626
+ var x, g = {}, R = null, Q = null;
2627
+ v !== void 0 && (cn(v), R = "" + v), kr(p) && (cn(p.key), R = "" + p.key), Dr(p) && (Q = p.ref, Ar(p, O));
2628
+ for (x in p)
2629
+ de.call(p, x) && !Fr.hasOwnProperty(x) && (g[x] = p[x]);
2629
2630
  if (u && u.defaultProps) {
2630
2631
  var $ = u.defaultProps;
2631
- for (F in $)
2632
- g[F] === void 0 && (g[F] = $[F]);
2632
+ for (x in $)
2633
+ g[x] === void 0 && (g[x] = $[x]);
2633
2634
  }
2634
2635
  if (R || Q) {
2635
- var B = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
2636
- R && Lr(g, B), Q && jr(g, B);
2636
+ var V = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
2637
+ R && Lr(g, V), Q && jr(g, V);
2637
2638
  }
2638
- return Pr(u, R, Q, C, E, Be.current, g);
2639
+ return Pr(u, R, Q, O, b, Ve.current, g);
2639
2640
  }
2640
2641
  }
2641
- var yt = x.ReactCurrentOwner, dn = x.ReactDebugCurrentFrame;
2642
+ var yt = C.ReactCurrentOwner, dn = C.ReactDebugCurrentFrame;
2642
2643
  function Fe(u) {
2643
2644
  if (u) {
2644
2645
  var p = u._owner, v = ue(u.type, u._source, p ? p.type : null);
@@ -2654,7 +2655,7 @@ function Oo() {
2654
2655
  function pn() {
2655
2656
  {
2656
2657
  if (yt.current) {
2657
- var u = V(yt.current.type);
2658
+ var u = B(yt.current.type);
2658
2659
  if (u)
2659
2660
  return `
2660
2661
 
@@ -2696,8 +2697,8 @@ Check the top-level render call using <` + v + ">.");
2696
2697
  if (hn[v])
2697
2698
  return;
2698
2699
  hn[v] = !0;
2699
- var E = "";
2700
- u && u._owner && u._owner !== yt.current && (E = " It was passed a child from " + V(u._owner.type) + "."), Fe(u), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, E), Fe(null);
2700
+ var b = "";
2701
+ u && u._owner && u._owner !== yt.current && (b = " It was passed a child from " + B(u._owner.type) + "."), Fe(u), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, b), Fe(null);
2701
2702
  }
2702
2703
  }
2703
2704
  function mn(u, p) {
@@ -2706,15 +2707,15 @@ Check the top-level render call using <` + v + ">.");
2706
2707
  return;
2707
2708
  if (Re(u))
2708
2709
  for (var v = 0; v < u.length; v++) {
2709
- var E = u[v];
2710
- Et(E) && vn(E, p);
2710
+ var b = u[v];
2711
+ Et(b) && vn(b, p);
2711
2712
  }
2712
2713
  else if (Et(u))
2713
2714
  u._store && (u._store.validated = !0);
2714
2715
  else if (u) {
2715
- var C = T(u);
2716
- if (typeof C == "function" && C !== u.entries)
2717
- for (var F = C.call(u), g; !(g = F.next()).done; )
2716
+ var O = F(u);
2717
+ if (typeof O == "function" && O !== u.entries)
2718
+ for (var x = O.call(u), g; !(g = x.next()).done; )
2718
2719
  Et(g.value) && vn(g.value, p);
2719
2720
  }
2720
2721
  }
@@ -2732,12 +2733,12 @@ Check the top-level render call using <` + v + ">.");
2732
2733
  else
2733
2734
  return;
2734
2735
  if (v) {
2735
- var E = V(p);
2736
- Z(v, u.props, "prop", E, u);
2736
+ var b = B(p);
2737
+ Z(v, u.props, "prop", b, u);
2737
2738
  } else if (p.PropTypes !== void 0 && !bt) {
2738
2739
  bt = !0;
2739
- var C = V(p);
2740
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
2740
+ var O = B(p);
2741
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
2741
2742
  }
2742
2743
  typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2743
2744
  }
@@ -2745,33 +2746,33 @@ Check the top-level render call using <` + v + ">.");
2745
2746
  function $r(u) {
2746
2747
  {
2747
2748
  for (var p = Object.keys(u.props), v = 0; v < p.length; v++) {
2748
- var E = p[v];
2749
- if (E !== "children" && E !== "key") {
2750
- Fe(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Fe(null);
2749
+ var b = p[v];
2750
+ if (b !== "children" && b !== "key") {
2751
+ Fe(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), Fe(null);
2751
2752
  break;
2752
2753
  }
2753
2754
  }
2754
2755
  u.ref !== null && (Fe(u), S("Invalid attribute `ref` supplied to `React.Fragment`."), Fe(null));
2755
2756
  }
2756
2757
  }
2757
- function wn(u, p, v, E, C, F) {
2758
+ function wn(u, p, v, b, O, x) {
2758
2759
  {
2759
2760
  var g = N(u);
2760
2761
  if (!g) {
2761
2762
  var R = "";
2762
2763
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2763
- var Q = Nr(C);
2764
+ var Q = Nr(O);
2764
2765
  Q ? R += Q : R += pn();
2765
2766
  var $;
2766
- u === null ? $ = "null" : Re(u) ? $ = "array" : u !== void 0 && u.$$typeof === r ? ($ = "<" + (V(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof u, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, R);
2767
+ u === null ? $ = "null" : Re(u) ? $ = "array" : u !== void 0 && u.$$typeof === r ? ($ = "<" + (B(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof u, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, R);
2767
2768
  }
2768
- var B = Ur(u, p, v, C, F);
2769
- if (B == null)
2770
- return B;
2769
+ var V = Ur(u, p, v, O, x);
2770
+ if (V == null)
2771
+ return V;
2771
2772
  if (g) {
2772
2773
  var ae = p.children;
2773
2774
  if (ae !== void 0)
2774
- if (E)
2775
+ if (b)
2775
2776
  if (Re(ae)) {
2776
2777
  for (var De = 0; De < ae.length; De++)
2777
2778
  mn(ae[De], u);
@@ -2781,16 +2782,16 @@ Check the top-level render call using <` + v + ">.");
2781
2782
  else
2782
2783
  mn(ae, u);
2783
2784
  }
2784
- return u === o ? $r(B) : qr(B), B;
2785
+ return u === o ? $r(V) : qr(V), V;
2785
2786
  }
2786
2787
  }
2787
- function Vr(u, p, v) {
2788
+ function Br(u, p, v) {
2788
2789
  return wn(u, p, v, !0);
2789
2790
  }
2790
- function Br(u, p, v) {
2791
+ function Vr(u, p, v) {
2791
2792
  return wn(u, p, v, !1);
2792
2793
  }
2793
- var Mr = Br, Wr = Vr;
2794
+ var Mr = Vr, Wr = Br;
2794
2795
  Xe.Fragment = o, Xe.jsx = Mr, Xe.jsxs = Wr;
2795
2796
  }()), Xe;
2796
2797
  }
@@ -2940,7 +2941,7 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
2940
2941
  return {
2941
2942
  ...Ze(t === void 0 ? i : t, () => a.get(e, r), o)
2942
2943
  };
2943
- }, Vo = (e) => {
2944
+ }, Bo = (e) => {
2944
2945
  const {
2945
2946
  call: r
2946
2947
  } = ne(re), [t, o] = k(null), [a, n] = k(!1), [i, c] = k(null), [d, s] = k(!1), f = H(() => {
@@ -2956,7 +2957,7 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
2956
2957
  reset: f,
2957
2958
  isCompleted: d
2958
2959
  };
2959
- }, Bo = (e) => {
2960
+ }, Vo = (e) => {
2960
2961
  const {
2961
2962
  call: r
2962
2963
  } = ne(re), [t, o] = k(null), [a, n] = k(!1), [i, c] = k(null), [d, s] = k(!1), f = H(() => {
@@ -2991,7 +2992,7 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
2991
2992
  }, Wo = () => {
2992
2993
  const {
2993
2994
  file: e
2994
- } = ne(re), [r, t] = k(0), [o, a] = k(!1), [n, i] = k(null), [c, d] = k(!1), s = H(async (l, _) => (f(), a(!0), e.uploadFile(l, _, (h, b) => t(Math.round(h / b * 100))).then((h) => (d(!0), t(100), a(!1), h.data.message)).catch((h) => {
2995
+ } = ne(re), [r, t] = k(0), [o, a] = k(!1), [n, i] = k(null), [c, d] = k(!1), s = H(async (l, _) => (f(), a(!0), e.uploadFile(l, _, (h, E) => t(Math.round(h / E * 100))).then((h) => (d(!0), t(100), a(!1), h.data.message)).catch((h) => {
2995
2996
  throw console.error(h), i(h), a(!1), h;
2996
2997
  })), []), f = H(() => {
2997
2998
  t(0), a(!1), i(null), d(!1);
@@ -3036,8 +3037,8 @@ export {
3036
3037
  Po as useFrappeGetDoc,
3037
3038
  $o as useFrappeGetDocCount,
3038
3039
  Uo as useFrappeGetDocList,
3039
- Vo as useFrappePostCall,
3040
- Bo as useFrappePutCall,
3040
+ Bo as useFrappePostCall,
3041
+ Vo as useFrappePutCall,
3041
3042
  Io as useFrappeUpdateDoc,
3042
3043
  Xo as useSearch
3043
3044
  };