@laboratoria/sdk-js 7.1.1 → 7.2.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -117,8 +117,8 @@ const Wt = function(n) {
117
117
  const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
118
118
  for (let i = 0; i < n.length; i += 3) {
119
119
  const s = n[i], o = i + 1 < n.length, c = o ? n[i + 1] : 0, a = i + 2 < n.length, u = a ? n[i + 2] : 0, y = s >> 2, b = (s & 3) << 4 | c >> 4;
120
- let A = (c & 15) << 2 | u >> 6, P = u & 63;
121
- a || (P = 64, o || (A = 64)), r.push(t[y], t[b], t[A], t[P]);
120
+ let S = (c & 15) << 2 | u >> 6, O = u & 63;
121
+ a || (O = 64, o || (S = 64)), r.push(t[y], t[b], t[S], t[O]);
122
122
  }
123
123
  return r.join("");
124
124
  },
@@ -170,12 +170,12 @@ const Wt = function(n) {
170
170
  const b = i < n.length ? t[n.charAt(i)] : 64;
171
171
  if (++i, s == null || c == null || u == null || b == null)
172
172
  throw new $n();
173
- const A = s << 2 | c >> 4;
174
- if (r.push(A), u !== 64) {
175
- const P = c << 4 & 240 | u >> 2;
176
- if (r.push(P), b !== 64) {
177
- const k = u << 6 & 192 | b;
178
- r.push(k);
173
+ const S = s << 2 | c >> 4;
174
+ if (r.push(S), u !== 64) {
175
+ const O = c << 4 & 240 | u >> 2;
176
+ if (r.push(O), b !== 64) {
177
+ const N = u << 6 & 192 | b;
178
+ r.push(N);
179
179
  }
180
180
  }
181
181
  }
@@ -253,13 +253,13 @@ function Un() {
253
253
  * See the License for the specific language governing permissions and
254
254
  * limitations under the License.
255
255
  */
256
- const jn = () => Un().__FIREBASE_DEFAULTS__, Fn = () => {
256
+ const jn = () => Un().__FIREBASE_DEFAULTS__, Bn = () => {
257
257
  if (typeof process > "u" || typeof process.env > "u")
258
258
  return;
259
259
  const n = process.env.__FIREBASE_DEFAULTS__;
260
260
  if (n)
261
261
  return JSON.parse(n);
262
- }, Bn = () => {
262
+ }, Fn = () => {
263
263
  if (typeof document > "u")
264
264
  return;
265
265
  let n;
@@ -272,7 +272,7 @@ const jn = () => Un().__FIREBASE_DEFAULTS__, Fn = () => {
272
272
  return e && JSON.parse(e);
273
273
  }, nt = () => {
274
274
  try {
275
- return jn() || Fn() || Bn();
275
+ return jn() || Bn() || Fn();
276
276
  } catch (n) {
277
277
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
278
278
  return;
@@ -339,13 +339,13 @@ class Vn {
339
339
  * See the License for the specific language governing permissions and
340
340
  * limitations under the License.
341
341
  */
342
- function R() {
342
+ function P() {
343
343
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
344
344
  }
345
345
  function Wn() {
346
346
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
347
347
  // just to deal with this case would probably be a bad idea.
348
- !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(R());
348
+ !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(P());
349
349
  }
350
350
  function xn() {
351
351
  const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
@@ -355,7 +355,7 @@ function zn() {
355
355
  return typeof navigator == "object" && navigator.product === "ReactNative";
356
356
  }
357
357
  function qn() {
358
- const n = R();
358
+ const n = P();
359
359
  return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
360
360
  }
361
361
  function Gn() {
@@ -400,9 +400,9 @@ function Jn() {
400
400
  * limitations under the License.
401
401
  */
402
402
  const Kn = "FirebaseError";
403
- class K extends Error {
403
+ class Y extends Error {
404
404
  constructor(e, t, r) {
405
- super(t), this.code = e, this.customData = r, this.name = Kn, Object.setPrototypeOf(this, K.prototype), Error.captureStackTrace && Error.captureStackTrace(this, _e.prototype.create);
405
+ super(t), this.code = e, this.customData = r, this.name = Kn, Object.setPrototypeOf(this, Y.prototype), Error.captureStackTrace && Error.captureStackTrace(this, _e.prototype.create);
406
406
  }
407
407
  }
408
408
  class _e {
@@ -411,7 +411,7 @@ class _e {
411
411
  }
412
412
  create(e, ...t) {
413
413
  const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], o = s ? Yn(s, r) : "Error", c = `${this.serviceName}: ${o} (${i}).`;
414
- return new K(i, c, r);
414
+ return new Y(i, c, r);
415
415
  }
416
416
  }
417
417
  function Yn(n, e) {
@@ -603,7 +603,7 @@ function He() {
603
603
  * See the License for the specific language governing permissions and
604
604
  * limitations under the License.
605
605
  */
606
- function F(n) {
606
+ function H(n) {
607
607
  return n && n._delegate ? n._delegate : n;
608
608
  }
609
609
  class ae {
@@ -998,7 +998,7 @@ function fr(n) {
998
998
  const i = () => {
999
999
  n.removeEventListener("success", s), n.removeEventListener("error", o);
1000
1000
  }, s = () => {
1001
- t(G(n.result)), i();
1001
+ t(J(n.result)), i();
1002
1002
  }, o = () => {
1003
1003
  r(n.error), i();
1004
1004
  };
@@ -1034,7 +1034,7 @@ let Ke = {
1034
1034
  if (e === "store")
1035
1035
  return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
1036
1036
  }
1037
- return G(n[e]);
1037
+ return J(n[e]);
1038
1038
  },
1039
1039
  set(n, e, t) {
1040
1040
  return n[e] = t, !0;
@@ -1049,17 +1049,17 @@ function gr(n) {
1049
1049
  function mr(n) {
1050
1050
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
1051
1051
  const r = n.call(We(this), e, ...t);
1052
- return Qt.set(r, e.sort ? e.sort() : [e]), G(r);
1052
+ return Qt.set(r, e.sort ? e.sort() : [e]), J(r);
1053
1053
  } : hr().includes(n) ? function(...e) {
1054
- return n.apply(We(this), e), G(Yt.get(this));
1054
+ return n.apply(We(this), e), J(Yt.get(this));
1055
1055
  } : function(...e) {
1056
- return G(n.apply(We(this), e));
1056
+ return J(n.apply(We(this), e));
1057
1057
  };
1058
1058
  }
1059
1059
  function yr(n) {
1060
1060
  return typeof n == "function" ? mr(n) : (n instanceof IDBTransaction && pr(n), dr(n, ur()) ? new Proxy(n, Ke) : n);
1061
1061
  }
1062
- function G(n) {
1062
+ function J(n) {
1063
1063
  if (n instanceof IDBRequest)
1064
1064
  return fr(n);
1065
1065
  if (Ve.has(n))
@@ -1069,9 +1069,9 @@ function G(n) {
1069
1069
  }
1070
1070
  const We = (n) => rt.get(n);
1071
1071
  function _r(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1072
- const o = indexedDB.open(n, e), c = G(o);
1072
+ const o = indexedDB.open(n, e), c = J(o);
1073
1073
  return r && o.addEventListener("upgradeneeded", (a) => {
1074
- r(G(o.result), a.oldVersion, a.newVersion, G(o.transaction), a);
1074
+ r(J(o.result), a.oldVersion, a.newVersion, J(o.transaction), a);
1075
1075
  }), t && o.addEventListener("blocked", (a) => t(
1076
1076
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
1077
1077
  a.oldVersion,
@@ -1145,7 +1145,7 @@ function wr(n) {
1145
1145
  const e = n.getComponent();
1146
1146
  return (e == null ? void 0 : e.type) === "VERSION";
1147
1147
  }
1148
- const Ye = "@firebase/app", _t = "0.9.25";
1148
+ const Ye = "@firebase/app", _t = "0.9.26";
1149
1149
  /**
1150
1150
  * @license
1151
1151
  * Copyright 2019 Google LLC
@@ -1162,7 +1162,7 @@ const Ye = "@firebase/app", _t = "0.9.25";
1162
1162
  * See the License for the specific language governing permissions and
1163
1163
  * limitations under the License.
1164
1164
  */
1165
- const ee = new Kt("@firebase/app"), Er = "@firebase/app-compat", Tr = "@firebase/analytics-compat", Ar = "@firebase/analytics", Sr = "@firebase/app-check-compat", Cr = "@firebase/app-check", Rr = "@firebase/auth", Pr = "@firebase/auth-compat", Or = "@firebase/database", kr = "@firebase/database-compat", Nr = "@firebase/functions", Dr = "@firebase/functions-compat", Lr = "@firebase/installations", $r = "@firebase/installations-compat", Mr = "@firebase/messaging", Ur = "@firebase/messaging-compat", jr = "@firebase/performance", Fr = "@firebase/performance-compat", Br = "@firebase/remote-config", Hr = "@firebase/remote-config-compat", Vr = "@firebase/storage", Wr = "@firebase/storage-compat", xr = "@firebase/firestore", zr = "@firebase/firestore-compat", qr = "firebase", Gr = "10.7.1";
1165
+ const ee = new Kt("@firebase/app"), Er = "@firebase/app-compat", Tr = "@firebase/analytics-compat", Ar = "@firebase/analytics", Sr = "@firebase/app-check-compat", Cr = "@firebase/app-check", Rr = "@firebase/auth", Pr = "@firebase/auth-compat", Or = "@firebase/database", kr = "@firebase/database-compat", Nr = "@firebase/functions", Dr = "@firebase/functions-compat", Lr = "@firebase/installations", $r = "@firebase/installations-compat", Mr = "@firebase/messaging", Ur = "@firebase/messaging-compat", jr = "@firebase/performance", Br = "@firebase/performance-compat", Fr = "@firebase/remote-config", Hr = "@firebase/remote-config-compat", Vr = "@firebase/storage", Wr = "@firebase/storage-compat", xr = "@firebase/firestore", zr = "@firebase/firestore-compat", qr = "firebase", Gr = "10.7.2";
1166
1166
  /**
1167
1167
  * @license
1168
1168
  * Copyright 2019 Google LLC
@@ -1197,8 +1197,8 @@ const Qe = "[DEFAULT]", Jr = {
1197
1197
  [Mr]: "fire-fcm",
1198
1198
  [Ur]: "fire-fcm-compat",
1199
1199
  [jr]: "fire-perf",
1200
- [Fr]: "fire-perf-compat",
1201
- [Br]: "fire-rc",
1200
+ [Br]: "fire-perf-compat",
1201
+ [Fr]: "fire-rc",
1202
1202
  [Hr]: "fire-rc-compat",
1203
1203
  [Vr]: "fire-gcs",
1204
1204
  [Wr]: "fire-gcs-compat",
@@ -1272,7 +1272,7 @@ const Yr = {
1272
1272
  "idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
1273
1273
  "idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
1274
1274
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."
1275
- }, J = new _e("app", "Firebase", Yr);
1275
+ }, K = new _e("app", "Firebase", Yr);
1276
1276
  /**
1277
1277
  * @license
1278
1278
  * Copyright 2019 Google LLC
@@ -1328,7 +1328,7 @@ class Qr {
1328
1328
  */
1329
1329
  checkDestroyed() {
1330
1330
  if (this.isDeleted)
1331
- throw J.create("app-deleted", { appName: this._name });
1331
+ throw K.create("app-deleted", { appName: this._name });
1332
1332
  }
1333
1333
  }
1334
1334
  /**
@@ -1353,11 +1353,11 @@ function Zt(n, e = {}) {
1353
1353
  typeof e != "object" && (e = { name: e });
1354
1354
  const r = Object.assign({ name: Qe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
1355
1355
  if (typeof i != "string" || !i)
1356
- throw J.create("bad-app-name", {
1356
+ throw K.create("bad-app-name", {
1357
1357
  appName: String(i)
1358
1358
  });
1359
1359
  if (t || (t = Gt()), !t)
1360
- throw J.create(
1360
+ throw K.create(
1361
1361
  "no-options"
1362
1362
  /* AppError.NO_OPTIONS */
1363
1363
  );
@@ -1365,7 +1365,7 @@ function Zt(n, e = {}) {
1365
1365
  if (s) {
1366
1366
  if (Pe(t, s.options) && Pe(r, s.config))
1367
1367
  return s;
1368
- throw J.create("duplicate-app", { appName: i });
1368
+ throw K.create("duplicate-app", { appName: i });
1369
1369
  }
1370
1370
  const o = new sr(i);
1371
1371
  for (const a of Xe.values())
@@ -1378,7 +1378,7 @@ function Xr(n = Qe) {
1378
1378
  if (!e && n === Qe && Gt())
1379
1379
  return Zt();
1380
1380
  if (!e)
1381
- throw J.create("no-app", { appName: n });
1381
+ throw K.create("no-app", { appName: n });
1382
1382
  return e;
1383
1383
  }
1384
1384
  function ie(n, e, t) {
@@ -1423,11 +1423,15 @@ function en() {
1423
1423
  upgrade: (n, e) => {
1424
1424
  switch (e) {
1425
1425
  case 0:
1426
- n.createObjectStore(pe);
1426
+ try {
1427
+ n.createObjectStore(pe);
1428
+ } catch (t) {
1429
+ console.warn(t);
1430
+ }
1427
1431
  }
1428
1432
  }
1429
1433
  }).catch((n) => {
1430
- throw J.create("idb-open", {
1434
+ throw K.create("idb-open", {
1431
1435
  originalErrorMessage: n.message
1432
1436
  });
1433
1437
  })), ze;
@@ -1436,10 +1440,10 @@ async function ti(n) {
1436
1440
  try {
1437
1441
  return await (await en()).transaction(pe).objectStore(pe).get(tn(n));
1438
1442
  } catch (e) {
1439
- if (e instanceof K)
1443
+ if (e instanceof Y)
1440
1444
  ee.warn(e.message);
1441
1445
  else {
1442
- const t = J.create("idb-get", {
1446
+ const t = K.create("idb-get", {
1443
1447
  originalErrorMessage: e == null ? void 0 : e.message
1444
1448
  });
1445
1449
  ee.warn(t.message);
@@ -1451,10 +1455,10 @@ async function vt(n, e) {
1451
1455
  const r = (await en()).transaction(pe, "readwrite");
1452
1456
  await r.objectStore(pe).put(e, tn(n)), await r.done;
1453
1457
  } catch (t) {
1454
- if (t instanceof K)
1458
+ if (t instanceof Y)
1455
1459
  ee.warn(t.message);
1456
1460
  else {
1457
- const r = J.create("idb-set", {
1461
+ const r = K.create("idb-set", {
1458
1462
  originalErrorMessage: t == null ? void 0 : t.message
1459
1463
  });
1460
1464
  ee.warn(r.message);
@@ -1626,7 +1630,7 @@ function ai(n) {
1626
1630
  )), ie(Ye, _t, n), ie(Ye, _t, "esm2017"), ie("fire-js", "");
1627
1631
  }
1628
1632
  ai("");
1629
- var ci = "firebase", li = "10.7.1";
1633
+ var ci = "firebase", li = "10.7.2";
1630
1634
  /**
1631
1635
  * @license
1632
1636
  * Copyright 2020 Google LLC
@@ -1698,10 +1702,10 @@ function Ae(n, ...e) {
1698
1702
  * See the License for the specific language governing permissions and
1699
1703
  * limitations under the License.
1700
1704
  */
1701
- function N(n, ...e) {
1705
+ function L(n, ...e) {
1702
1706
  throw st(n, ...e);
1703
1707
  }
1704
- function L(n, ...e) {
1708
+ function $(n, ...e) {
1705
1709
  return st(n, ...e);
1706
1710
  }
1707
1711
  function hi(n, e, t) {
@@ -1721,12 +1725,12 @@ function _(n, e, ...t) {
1721
1725
  if (!n)
1722
1726
  throw st(e, ...t);
1723
1727
  }
1724
- function M(n) {
1728
+ function j(n) {
1725
1729
  const e = "INTERNAL ASSERTION FAILED: " + n;
1726
1730
  throw Ae(e), new Error(e);
1727
1731
  }
1728
- function j(n, e) {
1729
- n || M(e);
1732
+ function F(n, e) {
1733
+ n || j(e);
1730
1734
  }
1731
1735
  /**
1732
1736
  * @license
@@ -1809,7 +1813,7 @@ function gi() {
1809
1813
  */
1810
1814
  class Ie {
1811
1815
  constructor(e, t) {
1812
- this.shortDelay = e, this.longDelay = t, j(t > e, "Short delay should be less than long delay!"), this.isMobile = Wn() || zn();
1816
+ this.shortDelay = e, this.longDelay = t, F(t > e, "Short delay should be less than long delay!"), this.isMobile = Wn() || zn();
1813
1817
  }
1814
1818
  get() {
1815
1819
  return pi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
@@ -1832,7 +1836,7 @@ class Ie {
1832
1836
  * limitations under the License.
1833
1837
  */
1834
1838
  function ot(n, e) {
1835
- j(n.emulator, "Emulator should always be set here");
1839
+ F(n.emulator, "Emulator should always be set here");
1836
1840
  const { url: t } = n.emulator;
1837
1841
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
1838
1842
  }
@@ -1865,7 +1869,7 @@ class sn {
1865
1869
  return globalThis.fetch;
1866
1870
  if (typeof fetch < "u")
1867
1871
  return fetch;
1868
- M("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1872
+ j("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1869
1873
  }
1870
1874
  static headers() {
1871
1875
  if (this.headersImpl)
@@ -1876,7 +1880,7 @@ class sn {
1876
1880
  return globalThis.Headers;
1877
1881
  if (typeof Headers < "u")
1878
1882
  return Headers;
1879
- M("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1883
+ j("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1880
1884
  }
1881
1885
  static response() {
1882
1886
  if (this.responseImpl)
@@ -1887,7 +1891,7 @@ class sn {
1887
1891
  return globalThis.Response;
1888
1892
  if (typeof Response < "u")
1889
1893
  return Response;
1890
- M("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1894
+ j("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1891
1895
  }
1892
1896
  }
1893
1897
  /**
@@ -1998,10 +2002,10 @@ const mi = {
1998
2002
  * limitations under the License.
1999
2003
  */
2000
2004
  const yi = new Ie(3e4, 6e4);
2001
- function Y(n, e) {
2005
+ function Q(n, e) {
2002
2006
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2003
2007
  }
2004
- async function B(n, e, t, r, i = {}) {
2008
+ async function V(n, e, t, r, i = {}) {
2005
2009
  return on(n, i, async () => {
2006
2010
  let s = {}, o = {};
2007
2011
  r && (e === "GET" ? o = r : s = {
@@ -2046,17 +2050,17 @@ async function on(n, e, t) {
2046
2050
  const y = r[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
2047
2051
  if (u)
2048
2052
  throw hi(n, y, u);
2049
- N(n, y);
2053
+ L(n, y);
2050
2054
  }
2051
2055
  } catch (i) {
2052
- if (i instanceof K)
2056
+ if (i instanceof Y)
2053
2057
  throw i;
2054
- N(n, "network-request-failed", { message: String(i) });
2058
+ L(n, "network-request-failed", { message: String(i) });
2055
2059
  }
2056
2060
  }
2057
2061
  async function Ue(n, e, t, r, i = {}) {
2058
- const s = await B(n, e, t, r, i);
2059
- return "mfaPendingCredential" in s && N(n, "multi-factor-auth-required", {
2062
+ const s = await V(n, e, t, r, i);
2063
+ return "mfaPendingCredential" in s && L(n, "multi-factor-auth-required", {
2060
2064
  _serverResponse: s
2061
2065
  }), s;
2062
2066
  }
@@ -2079,7 +2083,7 @@ function _i(n) {
2079
2083
  class vi {
2080
2084
  constructor(e) {
2081
2085
  this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
2082
- this.timer = setTimeout(() => r(L(
2086
+ this.timer = setTimeout(() => r($(
2083
2087
  this.auth,
2084
2088
  "network-request-failed"
2085
2089
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -2095,7 +2099,7 @@ function Te(n, e, t) {
2095
2099
  appName: n.name
2096
2100
  };
2097
2101
  t.email && (r.email = t.email), t.phoneNumber && (r.phoneNumber = t.phoneNumber);
2098
- const i = L(n, e, r);
2102
+ const i = $(n, e, r);
2099
2103
  return i.customData._tokenResponse = t, i;
2100
2104
  }
2101
2105
  function Et(n) {
@@ -2132,7 +2136,7 @@ class bi {
2132
2136
  }
2133
2137
  }
2134
2138
  async function Ii(n, e) {
2135
- return B(n, "GET", "/v2/recaptchaConfig", Y(n, e));
2139
+ return V(n, "GET", "/v2/recaptchaConfig", Q(n, e));
2136
2140
  }
2137
2141
  /**
2138
2142
  * @license
@@ -2151,10 +2155,10 @@ async function Ii(n, e) {
2151
2155
  * limitations under the License.
2152
2156
  */
2153
2157
  async function wi(n, e) {
2154
- return B(n, "POST", "/v1/accounts:delete", e);
2158
+ return V(n, "POST", "/v1/accounts:delete", e);
2155
2159
  }
2156
2160
  async function Ei(n, e) {
2157
- return B(n, "POST", "/v1/accounts:lookup", e);
2161
+ return V(n, "POST", "/v1/accounts:lookup", e);
2158
2162
  }
2159
2163
  /**
2160
2164
  * @license
@@ -2182,7 +2186,7 @@ function he(n) {
2182
2186
  }
2183
2187
  }
2184
2188
  async function Ti(n, e = !1) {
2185
- const t = F(n), r = await t.getIdToken(e), i = at(r);
2189
+ const t = H(n), r = await t.getIdToken(e), i = at(r);
2186
2190
  _(
2187
2191
  i && i.exp && i.auth_time && i.iat,
2188
2192
  t.auth,
@@ -2252,7 +2256,7 @@ async function ge(n, e, t = !1) {
2252
2256
  try {
2253
2257
  return await e;
2254
2258
  } catch (r) {
2255
- throw r instanceof K && Si(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2259
+ throw r instanceof Y && Si(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2256
2260
  }
2257
2261
  }
2258
2262
  function Si({ code: n }) {
@@ -2395,7 +2399,7 @@ async function Ne(n) {
2395
2399
  Object.assign(n, b);
2396
2400
  }
2397
2401
  async function Ri(n) {
2398
- const e = F(n);
2402
+ const e = H(n);
2399
2403
  await Ne(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2400
2404
  }
2401
2405
  function Pi(n, e) {
@@ -2452,7 +2456,7 @@ async function ki(n, e) {
2452
2456
  };
2453
2457
  }
2454
2458
  async function Ni(n, e) {
2455
- return B(n, "POST", "/v2/accounts:revokeToken", Y(n, e));
2459
+ return V(n, "POST", "/v2/accounts:revokeToken", Q(n, e));
2456
2460
  }
2457
2461
  /**
2458
2462
  * @license
@@ -2536,7 +2540,7 @@ class me {
2536
2540
  return Object.assign(new me(), this.toJSON());
2537
2541
  }
2538
2542
  _performRefresh() {
2539
- return M("not implemented");
2543
+ return j("not implemented");
2540
2544
  }
2541
2545
  }
2542
2546
  /**
@@ -2555,7 +2559,7 @@ class me {
2555
2559
  * See the License for the specific language governing permissions and
2556
2560
  * limitations under the License.
2557
2561
  */
2558
- function V(n, e) {
2562
+ function W(n, e) {
2559
2563
  _(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
2560
2564
  }
2561
2565
  class Z {
@@ -2641,21 +2645,21 @@ class Z {
2641
2645
  }
2642
2646
  static _fromJSON(e, t) {
2643
2647
  var r, i, s, o, c, a, u, y;
2644
- const b = (r = t.displayName) !== null && r !== void 0 ? r : void 0, A = (i = t.email) !== null && i !== void 0 ? i : void 0, P = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, k = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, v = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, D = (u = t.createdAt) !== null && u !== void 0 ? u : void 0, C = (y = t.lastLoginAt) !== null && y !== void 0 ? y : void 0, { uid: Q, emailVerified: H, isAnonymous: l, providerData: m, stsTokenManager: d } = t;
2648
+ const b = (r = t.displayName) !== null && r !== void 0 ? r : void 0, S = (i = t.email) !== null && i !== void 0 ? i : void 0, O = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, N = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, v = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, k = (u = t.createdAt) !== null && u !== void 0 ? u : void 0, C = (y = t.lastLoginAt) !== null && y !== void 0 ? y : void 0, { uid: U, emailVerified: D, isAnonymous: l, providerData: m, stsTokenManager: d } = t;
2645
2649
  _(
2646
- Q && d,
2650
+ U && d,
2647
2651
  e,
2648
2652
  "internal-error"
2649
2653
  /* AuthErrorCode.INTERNAL_ERROR */
2650
2654
  );
2651
2655
  const w = me.fromJSON(this.name, d);
2652
2656
  _(
2653
- typeof Q == "string",
2657
+ typeof U == "string",
2654
2658
  e,
2655
2659
  "internal-error"
2656
2660
  /* AuthErrorCode.INTERNAL_ERROR */
2657
- ), V(b, e.name), V(A, e.name), _(
2658
- typeof H == "boolean",
2661
+ ), W(b, e.name), W(S, e.name), _(
2662
+ typeof D == "boolean",
2659
2663
  e,
2660
2664
  "internal-error"
2661
2665
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -2664,22 +2668,22 @@ class Z {
2664
2668
  e,
2665
2669
  "internal-error"
2666
2670
  /* AuthErrorCode.INTERNAL_ERROR */
2667
- ), V(P, e.name), V(k, e.name), V(v, e.name), V(I, e.name), V(D, e.name), V(C, e.name);
2671
+ ), W(O, e.name), W(N, e.name), W(v, e.name), W(I, e.name), W(k, e.name), W(C, e.name);
2668
2672
  const E = new Z({
2669
- uid: Q,
2673
+ uid: U,
2670
2674
  auth: e,
2671
- email: A,
2672
- emailVerified: H,
2675
+ email: S,
2676
+ emailVerified: D,
2673
2677
  displayName: b,
2674
2678
  isAnonymous: l,
2675
- photoURL: k,
2676
- phoneNumber: P,
2679
+ photoURL: N,
2680
+ phoneNumber: O,
2677
2681
  tenantId: v,
2678
2682
  stsTokenManager: w,
2679
- createdAt: D,
2683
+ createdAt: k,
2680
2684
  lastLoginAt: C
2681
2685
  });
2682
- return m && Array.isArray(m) && (E.providerData = m.map((S) => Object.assign({}, S))), I && (E._redirectEventId = I), E;
2686
+ return m && Array.isArray(m) && (E.providerData = m.map((A) => Object.assign({}, A))), I && (E._redirectEventId = I), E;
2683
2687
  }
2684
2688
  /**
2685
2689
  * Initialize a User from an idToken server response
@@ -2715,10 +2719,10 @@ class Z {
2715
2719
  * limitations under the License.
2716
2720
  */
2717
2721
  const Tt = /* @__PURE__ */ new Map();
2718
- function U(n) {
2719
- j(n instanceof Function, "Expected a class definition");
2722
+ function B(n) {
2723
+ F(n instanceof Function, "Expected a class definition");
2720
2724
  let e = Tt.get(n);
2721
- return e ? (j(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Tt.set(n, e), e);
2725
+ return e ? (F(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Tt.set(n, e), e);
2722
2726
  }
2723
2727
  /**
2724
2728
  * @license
@@ -2810,12 +2814,12 @@ class se {
2810
2814
  }
2811
2815
  static async create(e, t, r = "authUser") {
2812
2816
  if (!t.length)
2813
- return new se(U(At), e, r);
2817
+ return new se(B(At), e, r);
2814
2818
  const i = (await Promise.all(t.map(async (u) => {
2815
2819
  if (await u._isAvailable())
2816
2820
  return u;
2817
2821
  }))).filter((u) => u);
2818
- let s = i[0] || U(At);
2822
+ let s = i[0] || B(At);
2819
2823
  const o = Se(r, e.config.apiKey, e.name);
2820
2824
  let c = null;
2821
2825
  for (const u of t)
@@ -2885,39 +2889,39 @@ function St(n) {
2885
2889
  }
2886
2890
  return "Other";
2887
2891
  }
2888
- function dn(n = R()) {
2892
+ function dn(n = P()) {
2889
2893
  return /firefox\//i.test(n);
2890
2894
  }
2891
- function ct(n = R()) {
2895
+ function ct(n = P()) {
2892
2896
  const e = n.toLowerCase();
2893
2897
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
2894
2898
  }
2895
- function un(n = R()) {
2899
+ function un(n = P()) {
2896
2900
  return /crios\//i.test(n);
2897
2901
  }
2898
- function hn(n = R()) {
2902
+ function hn(n = P()) {
2899
2903
  return /iemobile/i.test(n);
2900
2904
  }
2901
- function fn(n = R()) {
2905
+ function fn(n = P()) {
2902
2906
  return /android/i.test(n);
2903
2907
  }
2904
- function pn(n = R()) {
2908
+ function pn(n = P()) {
2905
2909
  return /blackberry/i.test(n);
2906
2910
  }
2907
- function gn(n = R()) {
2911
+ function gn(n = P()) {
2908
2912
  return /webos/i.test(n);
2909
2913
  }
2910
- function je(n = R()) {
2914
+ function je(n = P()) {
2911
2915
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
2912
2916
  }
2913
- function Di(n = R()) {
2917
+ function Di(n = P()) {
2914
2918
  var e;
2915
2919
  return je(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
2916
2920
  }
2917
2921
  function Li() {
2918
2922
  return qn() && document.documentMode === 10;
2919
2923
  }
2920
- function mn(n = R()) {
2924
+ function mn(n = P()) {
2921
2925
  return je(n) || fn(n) || gn(n) || pn(n) || /windows phone/i.test(n) || hn(n);
2922
2926
  }
2923
2927
  function $i() {
@@ -2947,10 +2951,10 @@ function yn(n, e = []) {
2947
2951
  let t;
2948
2952
  switch (n) {
2949
2953
  case "Browser":
2950
- t = St(R());
2954
+ t = St(P());
2951
2955
  break;
2952
2956
  case "Worker":
2953
- t = `${St(R())}-${n}`;
2957
+ t = `${St(P())}-${n}`;
2954
2958
  break;
2955
2959
  default:
2956
2960
  t = n;
@@ -3030,7 +3034,7 @@ class Mi {
3030
3034
  * limitations under the License.
3031
3035
  */
3032
3036
  async function Ui(n, e = {}) {
3033
- return B(n, "GET", "/v2/passwordPolicy", Y(n, e));
3037
+ return V(n, "GET", "/v2/passwordPolicy", Q(n, e));
3034
3038
  }
3035
3039
  /**
3036
3040
  * @license
@@ -3049,7 +3053,7 @@ async function Ui(n, e = {}) {
3049
3053
  * limitations under the License.
3050
3054
  */
3051
3055
  const ji = 6;
3052
- class Fi {
3056
+ class Bi {
3053
3057
  constructor(e) {
3054
3058
  var t, r, i, s;
3055
3059
  const o = e.customStrengthOptions;
@@ -3136,12 +3140,12 @@ class Fi {
3136
3140
  * See the License for the specific language governing permissions and
3137
3141
  * limitations under the License.
3138
3142
  */
3139
- class Bi {
3143
+ class Fi {
3140
3144
  constructor(e, t, r, i) {
3141
3145
  this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Ct(this), this.idTokenSubscription = new Ct(this), this.beforeStateQueue = new Mi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = rn, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3142
3146
  }
3143
3147
  _initializeWithPersistence(e, t) {
3144
- return t && (this._popupRedirectResolver = U(t)), this._initializationPromise = this.queue(async () => {
3148
+ return t && (this._popupRedirectResolver = B(t)), this._initializationPromise = this.queue(async () => {
3145
3149
  var r, i;
3146
3150
  if (!this._deleted && (this.persistenceManager = await se.create(this, e), !this._deleted)) {
3147
3151
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
@@ -3224,7 +3228,7 @@ class Bi {
3224
3228
  this._deleted = !0;
3225
3229
  }
3226
3230
  async updateCurrentUser(e) {
3227
- const t = e ? F(e) : null;
3231
+ const t = e ? H(e) : null;
3228
3232
  return t && _(
3229
3233
  t.auth.config.apiKey === this.config.apiKey,
3230
3234
  this,
@@ -3252,7 +3256,7 @@ class Bi {
3252
3256
  }
3253
3257
  setPersistence(e) {
3254
3258
  return this.queue(async () => {
3255
- await this.assertedPersistence.setPersistence(U(e));
3259
+ await this.assertedPersistence.setPersistence(B(e));
3256
3260
  });
3257
3261
  }
3258
3262
  _getRecaptchaConfig() {
@@ -3267,7 +3271,7 @@ class Bi {
3267
3271
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3268
3272
  }
3269
3273
  async _updatePasswordPolicy() {
3270
- const e = await Ui(this), t = new Fi(e);
3274
+ const e = await Ui(this), t = new Bi(e);
3271
3275
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3272
3276
  }
3273
3277
  _getPersistence() {
@@ -3325,7 +3329,7 @@ class Bi {
3325
3329
  }
3326
3330
  async getOrInitRedirectPersistenceManager(e) {
3327
3331
  if (!this.redirectPersistenceManager) {
3328
- const t = e && U(e) || this._popupRedirectResolver;
3332
+ const t = e && B(e) || this._popupRedirectResolver;
3329
3333
  _(
3330
3334
  t,
3331
3335
  this,
@@ -3333,7 +3337,7 @@ class Bi {
3333
3337
  /* AuthErrorCode.ARGUMENT_ERROR */
3334
3338
  ), this.redirectPersistenceManager = await se.create(
3335
3339
  this,
3336
- [U(t._redirectPersistence)],
3340
+ [B(t._redirectPersistence)],
3337
3341
  "redirectUser"
3338
3342
  /* KeyName.REDIRECT_USER */
3339
3343
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -3454,7 +3458,7 @@ class Bi {
3454
3458
  }
3455
3459
  }
3456
3460
  function ne(n) {
3457
- return F(n);
3461
+ return H(n);
3458
3462
  }
3459
3463
  class Ct {
3460
3464
  constructor(e) {
@@ -3493,7 +3497,7 @@ function _n(n) {
3493
3497
  return new Promise((e, t) => {
3494
3498
  const r = document.createElement("script");
3495
3499
  r.setAttribute("src", n), r.onload = e, r.onerror = (i) => {
3496
- const s = L(
3500
+ const s = $(
3497
3501
  "internal-error"
3498
3502
  /* AuthErrorCode.INTERNAL_ERROR */
3499
3503
  );
@@ -3644,7 +3648,7 @@ function Gi(n, e) {
3644
3648
  const i = t.getImmediate(), s = t.getOptions();
3645
3649
  if (Pe(s, e ?? {}))
3646
3650
  return i;
3647
- N(
3651
+ L(
3648
3652
  i,
3649
3653
  "already-initialized"
3650
3654
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -3653,7 +3657,7 @@ function Gi(n, e) {
3653
3657
  return t.initialize({ options: e });
3654
3658
  }
3655
3659
  function Ji(n, e) {
3656
- const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(U);
3660
+ const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(B);
3657
3661
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
3658
3662
  }
3659
3663
  function Ki(n, e, t) {
@@ -3734,23 +3738,23 @@ class lt {
3734
3738
  * @returns a JSON-serializable representation of this object.
3735
3739
  */
3736
3740
  toJSON() {
3737
- return M("not implemented");
3741
+ return j("not implemented");
3738
3742
  }
3739
3743
  /** @internal */
3740
3744
  _getIdTokenResponse(e) {
3741
- return M("not implemented");
3745
+ return j("not implemented");
3742
3746
  }
3743
3747
  /** @internal */
3744
3748
  _linkToIdToken(e, t) {
3745
- return M("not implemented");
3749
+ return j("not implemented");
3746
3750
  }
3747
3751
  /** @internal */
3748
3752
  _getReauthenticationResolver(e) {
3749
- return M("not implemented");
3753
+ return j("not implemented");
3750
3754
  }
3751
3755
  }
3752
3756
  async function Xi(n, e) {
3753
- return B(n, "POST", "/v1/accounts:signUp", e);
3757
+ return V(n, "POST", "/v1/accounts:signUp", e);
3754
3758
  }
3755
3759
  /**
3756
3760
  * @license
@@ -3769,10 +3773,10 @@ async function Xi(n, e) {
3769
3773
  * limitations under the License.
3770
3774
  */
3771
3775
  async function Zi(n, e) {
3772
- return Ue(n, "POST", "/v1/accounts:signInWithPassword", Y(n, e));
3776
+ return Ue(n, "POST", "/v1/accounts:signInWithPassword", Q(n, e));
3773
3777
  }
3774
3778
  async function es(n, e) {
3775
- return B(n, "POST", "/v1/accounts:sendOobCode", Y(n, e));
3779
+ return V(n, "POST", "/v1/accounts:sendOobCode", Q(n, e));
3776
3780
  }
3777
3781
  async function ts(n, e) {
3778
3782
  return es(n, e);
@@ -3794,10 +3798,10 @@ async function ts(n, e) {
3794
3798
  * limitations under the License.
3795
3799
  */
3796
3800
  async function ns(n, e) {
3797
- return Ue(n, "POST", "/v1/accounts:signInWithEmailLink", Y(n, e));
3801
+ return Ue(n, "POST", "/v1/accounts:signInWithEmailLink", Q(n, e));
3798
3802
  }
3799
3803
  async function rs(n, e) {
3800
- return Ue(n, "POST", "/v1/accounts:signInWithEmailLink", Y(n, e));
3804
+ return Ue(n, "POST", "/v1/accounts:signInWithEmailLink", Q(n, e));
3801
3805
  }
3802
3806
  /**
3803
3807
  * @license
@@ -3878,7 +3882,7 @@ class ye extends lt {
3878
3882
  oobCode: this._password
3879
3883
  });
3880
3884
  default:
3881
- N(
3885
+ L(
3882
3886
  e,
3883
3887
  "internal-error"
3884
3888
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3905,7 +3909,7 @@ class ye extends lt {
3905
3909
  oobCode: this._password
3906
3910
  });
3907
3911
  default:
3908
- N(
3912
+ L(
3909
3913
  e,
3910
3914
  "internal-error"
3911
3915
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3934,7 +3938,7 @@ class ye extends lt {
3934
3938
  * limitations under the License.
3935
3939
  */
3936
3940
  async function oe(n, e) {
3937
- return Ue(n, "POST", "/v1/accounts:signInWithIdp", Y(n, e));
3941
+ return Ue(n, "POST", "/v1/accounts:signInWithIdp", Q(n, e));
3938
3942
  }
3939
3943
  /**
3940
3944
  * @license
@@ -3960,7 +3964,7 @@ class te extends lt {
3960
3964
  /** @internal */
3961
3965
  static _fromParams(e) {
3962
3966
  const t = new te(e.providerId, e.signInMethod);
3963
- return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : N(
3967
+ return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : L(
3964
3968
  "argument-error"
3965
3969
  /* AuthErrorCode.ARGUMENT_ERROR */
3966
3970
  ), t;
@@ -4273,7 +4277,7 @@ class we extends bn {
4273
4277
  * See the License for the specific language governing permissions and
4274
4278
  * limitations under the License.
4275
4279
  */
4276
- class W extends we {
4280
+ class x extends we {
4277
4281
  constructor() {
4278
4282
  super(
4279
4283
  "facebook.com"
@@ -4294,8 +4298,8 @@ class W extends we {
4294
4298
  */
4295
4299
  static credential(e) {
4296
4300
  return te._fromParams({
4297
- providerId: W.PROVIDER_ID,
4298
- signInMethod: W.FACEBOOK_SIGN_IN_METHOD,
4301
+ providerId: x.PROVIDER_ID,
4302
+ signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
4299
4303
  accessToken: e
4300
4304
  });
4301
4305
  }
@@ -4305,7 +4309,7 @@ class W extends we {
4305
4309
  * @param userCredential - The user credential.
4306
4310
  */
4307
4311
  static credentialFromResult(e) {
4308
- return W.credentialFromTaggedObject(e);
4312
+ return x.credentialFromTaggedObject(e);
4309
4313
  }
4310
4314
  /**
4311
4315
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4314,20 +4318,20 @@ class W extends we {
4314
4318
  * @param userCredential - The user credential.
4315
4319
  */
4316
4320
  static credentialFromError(e) {
4317
- return W.credentialFromTaggedObject(e.customData || {});
4321
+ return x.credentialFromTaggedObject(e.customData || {});
4318
4322
  }
4319
4323
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4320
4324
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4321
4325
  return null;
4322
4326
  try {
4323
- return W.credential(e.oauthAccessToken);
4327
+ return x.credential(e.oauthAccessToken);
4324
4328
  } catch {
4325
4329
  return null;
4326
4330
  }
4327
4331
  }
4328
4332
  }
4329
- W.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4330
- W.PROVIDER_ID = "facebook.com";
4333
+ x.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4334
+ x.PROVIDER_ID = "facebook.com";
4331
4335
  /**
4332
4336
  * @license
4333
4337
  * Copyright 2020 Google LLC
@@ -4344,7 +4348,7 @@ W.PROVIDER_ID = "facebook.com";
4344
4348
  * See the License for the specific language governing permissions and
4345
4349
  * limitations under the License.
4346
4350
  */
4347
- class x extends we {
4351
+ class z extends we {
4348
4352
  constructor() {
4349
4353
  super(
4350
4354
  "google.com"
@@ -4366,8 +4370,8 @@ class x extends we {
4366
4370
  */
4367
4371
  static credential(e, t) {
4368
4372
  return te._fromParams({
4369
- providerId: x.PROVIDER_ID,
4370
- signInMethod: x.GOOGLE_SIGN_IN_METHOD,
4373
+ providerId: z.PROVIDER_ID,
4374
+ signInMethod: z.GOOGLE_SIGN_IN_METHOD,
4371
4375
  idToken: e,
4372
4376
  accessToken: t
4373
4377
  });
@@ -4378,7 +4382,7 @@ class x extends we {
4378
4382
  * @param userCredential - The user credential.
4379
4383
  */
4380
4384
  static credentialFromResult(e) {
4381
- return x.credentialFromTaggedObject(e);
4385
+ return z.credentialFromTaggedObject(e);
4382
4386
  }
4383
4387
  /**
4384
4388
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4387,7 +4391,7 @@ class x extends we {
4387
4391
  * @param userCredential - The user credential.
4388
4392
  */
4389
4393
  static credentialFromError(e) {
4390
- return x.credentialFromTaggedObject(e.customData || {});
4394
+ return z.credentialFromTaggedObject(e.customData || {});
4391
4395
  }
4392
4396
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4393
4397
  if (!e)
@@ -4396,14 +4400,14 @@ class x extends we {
4396
4400
  if (!t && !r)
4397
4401
  return null;
4398
4402
  try {
4399
- return x.credential(t, r);
4403
+ return z.credential(t, r);
4400
4404
  } catch {
4401
4405
  return null;
4402
4406
  }
4403
4407
  }
4404
4408
  }
4405
- x.GOOGLE_SIGN_IN_METHOD = "google.com";
4406
- x.PROVIDER_ID = "google.com";
4409
+ z.GOOGLE_SIGN_IN_METHOD = "google.com";
4410
+ z.PROVIDER_ID = "google.com";
4407
4411
  /**
4408
4412
  * @license
4409
4413
  * Copyright 2020 Google LLC
@@ -4420,7 +4424,7 @@ x.PROVIDER_ID = "google.com";
4420
4424
  * See the License for the specific language governing permissions and
4421
4425
  * limitations under the License.
4422
4426
  */
4423
- class z extends we {
4427
+ class q extends we {
4424
4428
  constructor() {
4425
4429
  super(
4426
4430
  "github.com"
@@ -4434,8 +4438,8 @@ class z extends we {
4434
4438
  */
4435
4439
  static credential(e) {
4436
4440
  return te._fromParams({
4437
- providerId: z.PROVIDER_ID,
4438
- signInMethod: z.GITHUB_SIGN_IN_METHOD,
4441
+ providerId: q.PROVIDER_ID,
4442
+ signInMethod: q.GITHUB_SIGN_IN_METHOD,
4439
4443
  accessToken: e
4440
4444
  });
4441
4445
  }
@@ -4445,7 +4449,7 @@ class z extends we {
4445
4449
  * @param userCredential - The user credential.
4446
4450
  */
4447
4451
  static credentialFromResult(e) {
4448
- return z.credentialFromTaggedObject(e);
4452
+ return q.credentialFromTaggedObject(e);
4449
4453
  }
4450
4454
  /**
4451
4455
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4454,20 +4458,20 @@ class z extends we {
4454
4458
  * @param userCredential - The user credential.
4455
4459
  */
4456
4460
  static credentialFromError(e) {
4457
- return z.credentialFromTaggedObject(e.customData || {});
4461
+ return q.credentialFromTaggedObject(e.customData || {});
4458
4462
  }
4459
4463
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4460
4464
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4461
4465
  return null;
4462
4466
  try {
4463
- return z.credential(e.oauthAccessToken);
4467
+ return q.credential(e.oauthAccessToken);
4464
4468
  } catch {
4465
4469
  return null;
4466
4470
  }
4467
4471
  }
4468
4472
  }
4469
- z.GITHUB_SIGN_IN_METHOD = "github.com";
4470
- z.PROVIDER_ID = "github.com";
4473
+ q.GITHUB_SIGN_IN_METHOD = "github.com";
4474
+ q.PROVIDER_ID = "github.com";
4471
4475
  /**
4472
4476
  * @license
4473
4477
  * Copyright 2020 Google LLC
@@ -4484,7 +4488,7 @@ z.PROVIDER_ID = "github.com";
4484
4488
  * See the License for the specific language governing permissions and
4485
4489
  * limitations under the License.
4486
4490
  */
4487
- class q extends we {
4491
+ class G extends we {
4488
4492
  constructor() {
4489
4493
  super(
4490
4494
  "twitter.com"
@@ -4499,8 +4503,8 @@ class q extends we {
4499
4503
  */
4500
4504
  static credential(e, t) {
4501
4505
  return te._fromParams({
4502
- providerId: q.PROVIDER_ID,
4503
- signInMethod: q.TWITTER_SIGN_IN_METHOD,
4506
+ providerId: G.PROVIDER_ID,
4507
+ signInMethod: G.TWITTER_SIGN_IN_METHOD,
4504
4508
  oauthToken: e,
4505
4509
  oauthTokenSecret: t
4506
4510
  });
@@ -4511,7 +4515,7 @@ class q extends we {
4511
4515
  * @param userCredential - The user credential.
4512
4516
  */
4513
4517
  static credentialFromResult(e) {
4514
- return q.credentialFromTaggedObject(e);
4518
+ return G.credentialFromTaggedObject(e);
4515
4519
  }
4516
4520
  /**
4517
4521
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4520,7 +4524,7 @@ class q extends we {
4520
4524
  * @param userCredential - The user credential.
4521
4525
  */
4522
4526
  static credentialFromError(e) {
4523
- return q.credentialFromTaggedObject(e.customData || {});
4527
+ return G.credentialFromTaggedObject(e.customData || {});
4524
4528
  }
4525
4529
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4526
4530
  if (!e)
@@ -4529,14 +4533,14 @@ class q extends we {
4529
4533
  if (!t || !r)
4530
4534
  return null;
4531
4535
  try {
4532
- return q.credential(t, r);
4536
+ return G.credential(t, r);
4533
4537
  } catch {
4534
4538
  return null;
4535
4539
  }
4536
4540
  }
4537
4541
  }
4538
- q.TWITTER_SIGN_IN_METHOD = "twitter.com";
4539
- q.PROVIDER_ID = "twitter.com";
4542
+ G.TWITTER_SIGN_IN_METHOD = "twitter.com";
4543
+ G.PROVIDER_ID = "twitter.com";
4540
4544
  /**
4541
4545
  * @license
4542
4546
  * Copyright 2020 Google LLC
@@ -4600,7 +4604,7 @@ function Ot(n) {
4600
4604
  * See the License for the specific language governing permissions and
4601
4605
  * limitations under the License.
4602
4606
  */
4603
- class De extends K {
4607
+ class De extends Y {
4604
4608
  constructor(e, t, r, i) {
4605
4609
  var s;
4606
4610
  super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, De.prototype), this.customData = {
@@ -4664,7 +4668,7 @@ async function cs(n, e, t = !1) {
4664
4668
  /* AuthErrorCode.USER_MISMATCH */
4665
4669
  ), ce._forOperation(n, i, s);
4666
4670
  } catch (s) {
4667
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && N(
4671
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
4668
4672
  r,
4669
4673
  "user-mismatch"
4670
4674
  /* AuthErrorCode.USER_MISMATCH */
@@ -4764,21 +4768,21 @@ async function hs(n, e, t) {
4764
4768
  t && ds(r, i, t), await et(r, i, "getOobCode", ts);
4765
4769
  }
4766
4770
  function fs(n, e, t) {
4767
- return ls(F(n), le.credential(e, t)).catch(async (r) => {
4771
+ return ls(H(n), le.credential(e, t)).catch(async (r) => {
4768
4772
  throw r.code === "auth/password-does-not-meet-requirements" && us(n), r;
4769
4773
  });
4770
4774
  }
4771
4775
  function ps(n, e, t, r) {
4772
- return F(n).onIdTokenChanged(e, t, r);
4776
+ return H(n).onIdTokenChanged(e, t, r);
4773
4777
  }
4774
4778
  function gs(n, e, t) {
4775
- return F(n).beforeAuthStateChanged(e, t);
4779
+ return H(n).beforeAuthStateChanged(e, t);
4776
4780
  }
4777
4781
  function ms(n, e, t, r) {
4778
- return F(n).onAuthStateChanged(e, t, r);
4782
+ return H(n).onAuthStateChanged(e, t, r);
4779
4783
  }
4780
4784
  function ys(n) {
4781
- return F(n).signOut();
4785
+ return H(n).signOut();
4782
4786
  }
4783
4787
  const Le = "__sak";
4784
4788
  /**
@@ -4839,7 +4843,7 @@ class En {
4839
4843
  * limitations under the License.
4840
4844
  */
4841
4845
  function _s() {
4842
- const n = R();
4846
+ const n = P();
4843
4847
  return ct(n) || je(n);
4844
4848
  }
4845
4849
  const vs = 1e3, bs = 10;
@@ -5007,7 +5011,7 @@ function ws(n) {
5007
5011
  * See the License for the specific language governing permissions and
5008
5012
  * limitations under the License.
5009
5013
  */
5010
- class Fe {
5014
+ class Be {
5011
5015
  constructor(e) {
5012
5016
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
5013
5017
  }
@@ -5021,7 +5025,7 @@ class Fe {
5021
5025
  const t = this.receivers.find((i) => i.isListeningto(e));
5022
5026
  if (t)
5023
5027
  return t;
5024
- const r = new Fe(e);
5028
+ const r = new Be(e);
5025
5029
  return this.receivers.push(r), r;
5026
5030
  }
5027
5031
  isListeningto(e) {
@@ -5075,7 +5079,7 @@ class Fe {
5075
5079
  this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
5076
5080
  }
5077
5081
  }
5078
- Fe.receivers = [];
5082
+ Be.receivers = [];
5079
5083
  /**
5080
5084
  * @license
5081
5085
  * Copyright 2020 Google LLC
@@ -5159,9 +5163,9 @@ class Es {
5159
5163
  o = {
5160
5164
  messageChannel: i,
5161
5165
  onMessage(b) {
5162
- const A = b;
5163
- if (A.data.eventId === u)
5164
- switch (A.data.status) {
5166
+ const S = b;
5167
+ if (S.data.eventId === u)
5168
+ switch (S.data.status) {
5165
5169
  case "ack":
5166
5170
  clearTimeout(y), s = setTimeout(
5167
5171
  () => {
@@ -5175,7 +5179,7 @@ class Es {
5175
5179
  );
5176
5180
  break;
5177
5181
  case "done":
5178
- clearTimeout(s), c(A.data.response);
5182
+ clearTimeout(s), c(S.data.response);
5179
5183
  break;
5180
5184
  default:
5181
5185
  clearTimeout(y), clearTimeout(s), a(new Error(
@@ -5211,11 +5215,11 @@ class Es {
5211
5215
  * See the License for the specific language governing permissions and
5212
5216
  * limitations under the License.
5213
5217
  */
5214
- function $() {
5218
+ function M() {
5215
5219
  return window;
5216
5220
  }
5217
5221
  function Ts(n) {
5218
- $().location.href = n;
5222
+ M().location.href = n;
5219
5223
  }
5220
5224
  /**
5221
5225
  * @license
@@ -5234,7 +5238,7 @@ function Ts(n) {
5234
5238
  * limitations under the License.
5235
5239
  */
5236
5240
  function Cn() {
5237
- return typeof $().WorkerGlobalScope < "u" && typeof $().importScripts == "function";
5241
+ return typeof M().WorkerGlobalScope < "u" && typeof M().importScripts == "function";
5238
5242
  }
5239
5243
  async function As() {
5240
5244
  if (!(navigator != null && navigator.serviceWorker))
@@ -5283,7 +5287,7 @@ class Ee {
5283
5287
  });
5284
5288
  }
5285
5289
  }
5286
- function Be(n, e) {
5290
+ function Fe(n, e) {
5287
5291
  return n.transaction([$e], e ? "readwrite" : "readonly").objectStore($e);
5288
5292
  }
5289
5293
  function Ps() {
@@ -5309,18 +5313,18 @@ function tt() {
5309
5313
  });
5310
5314
  }
5311
5315
  async function kt(n, e, t) {
5312
- const r = Be(n, !0).put({
5316
+ const r = Fe(n, !0).put({
5313
5317
  [Pn]: e,
5314
5318
  value: t
5315
5319
  });
5316
5320
  return new Ee(r).toPromise();
5317
5321
  }
5318
5322
  async function Os(n, e) {
5319
- const t = Be(n, !1).get(e), r = await new Ee(t).toPromise();
5323
+ const t = Fe(n, !1).get(e), r = await new Ee(t).toPromise();
5320
5324
  return r === void 0 ? null : r.value;
5321
5325
  }
5322
5326
  function Nt(n, e) {
5323
- const t = Be(n, !0).delete(e);
5327
+ const t = Fe(n, !0).delete(e);
5324
5328
  return new Ee(t).toPromise();
5325
5329
  }
5326
5330
  const ks = 800, Ns = 3;
@@ -5356,7 +5360,7 @@ class On {
5356
5360
  * As the worker we should listen to events from the main window.
5357
5361
  */
5358
5362
  async initializeReceiver() {
5359
- this.receiver = Fe._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5363
+ this.receiver = Be._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5360
5364
  keyProcessed: (await this._poll()).includes(t.key)
5361
5365
  })), this.receiver._subscribe("ping", async (e, t) => [
5362
5366
  "keyChanged"
@@ -5438,7 +5442,7 @@ class On {
5438
5442
  }
5439
5443
  async _poll() {
5440
5444
  const e = await this._withRetries((i) => {
5441
- const s = Be(i, !1).getAll();
5445
+ const s = Fe(i, !1).getAll();
5442
5446
  return new Ee(s).toPromise();
5443
5447
  });
5444
5448
  if (!e)
@@ -5493,7 +5497,7 @@ new Ie(3e4, 6e4);
5493
5497
  * limitations under the License.
5494
5498
  */
5495
5499
  function Ls(n, e) {
5496
- return e ? U(e) : (_(
5500
+ return e ? B(e) : (_(
5497
5501
  n._popupRedirectResolver,
5498
5502
  n,
5499
5503
  "argument-error"
@@ -5633,7 +5637,7 @@ class kn {
5633
5637
  case "reauthViaRedirect":
5634
5638
  return Ms;
5635
5639
  default:
5636
- N(
5640
+ L(
5637
5641
  this.auth,
5638
5642
  "internal-error"
5639
5643
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -5641,10 +5645,10 @@ class kn {
5641
5645
  }
5642
5646
  }
5643
5647
  resolve(e) {
5644
- j(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
5648
+ F(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
5645
5649
  }
5646
5650
  reject(e) {
5647
- j(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
5651
+ F(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
5648
5652
  }
5649
5653
  unregisterAndCleanUp() {
5650
5654
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -5681,7 +5685,7 @@ class re extends kn {
5681
5685
  ), e;
5682
5686
  }
5683
5687
  async onExecution() {
5684
- j(this.filter.length === 1, "Popup operations only handle one event");
5688
+ F(this.filter.length === 1, "Popup operations only handle one event");
5685
5689
  const e = ut();
5686
5690
  this.authWindow = await this.resolver._openPopup(
5687
5691
  this.auth,
@@ -5692,7 +5696,7 @@ class re extends kn {
5692
5696
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
5693
5697
  this.reject(t);
5694
5698
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
5695
- t || this.reject(L(
5699
+ t || this.reject($(
5696
5700
  this.auth,
5697
5701
  "web-storage-unsupported"
5698
5702
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -5704,7 +5708,7 @@ class re extends kn {
5704
5708
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
5705
5709
  }
5706
5710
  cancel() {
5707
- this.reject(L(
5711
+ this.reject($(
5708
5712
  this.auth,
5709
5713
  "cancelled-popup-request"
5710
5714
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
@@ -5719,7 +5723,7 @@ class re extends kn {
5719
5723
  if (!((r = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || r === void 0) && r.closed) {
5720
5724
  this.pollId = window.setTimeout(
5721
5725
  () => {
5722
- this.pollId = null, this.reject(L(
5726
+ this.pollId = null, this.reject($(
5723
5727
  this.auth,
5724
5728
  "popup-closed-by-user"
5725
5729
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -5752,8 +5756,8 @@ re.currentPopupAction = null;
5752
5756
  * See the License for the specific language governing permissions and
5753
5757
  * limitations under the License.
5754
5758
  */
5755
- const Fs = "pendingRedirect", Ce = /* @__PURE__ */ new Map();
5756
- class Bs extends kn {
5759
+ const Bs = "pendingRedirect", Ce = /* @__PURE__ */ new Map();
5760
+ class Fs extends kn {
5757
5761
  constructor(e, t, r = !1) {
5758
5762
  super(e, [
5759
5763
  "signInViaRedirect",
@@ -5810,13 +5814,13 @@ function Vs(n, e) {
5810
5814
  Ce.set(n._key(), e);
5811
5815
  }
5812
5816
  function Ws(n) {
5813
- return U(n._redirectPersistence);
5817
+ return B(n._redirectPersistence);
5814
5818
  }
5815
5819
  function xs(n) {
5816
- return Se(Fs, n.config.apiKey, n.name);
5820
+ return Se(Bs, n.config.apiKey, n.name);
5817
5821
  }
5818
5822
  async function zs(n, e, t = !1) {
5819
- const r = ne(n), i = Ls(r, e), o = await new Bs(r, i, t).execute();
5823
+ const r = ne(n), i = Ls(r, e), o = await new Fs(r, i, t).execute();
5820
5824
  return o && !t && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
5821
5825
  }
5822
5826
  /**
@@ -5858,7 +5862,7 @@ class Gs {
5858
5862
  var r;
5859
5863
  if (e.error && !Nn(e)) {
5860
5864
  const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
5861
- t.onError(L(this.auth, i));
5865
+ t.onError($(this.auth, i));
5862
5866
  } else
5863
5867
  t.onAuthEvent(e);
5864
5868
  }
@@ -5908,7 +5912,7 @@ function Js(n) {
5908
5912
  * limitations under the License.
5909
5913
  */
5910
5914
  async function Ks(n, e = {}) {
5911
- return B(n, "GET", "/v1/projects", e);
5915
+ return V(n, "GET", "/v1/projects", e);
5912
5916
  }
5913
5917
  /**
5914
5918
  * @license
@@ -5937,7 +5941,7 @@ async function Xs(n) {
5937
5941
  return;
5938
5942
  } catch {
5939
5943
  }
5940
- N(
5944
+ L(
5941
5945
  n,
5942
5946
  "unauthorized-domain"
5943
5947
  /* AuthErrorCode.INVALID_ORIGIN */
@@ -5974,7 +5978,7 @@ function Zs(n) {
5974
5978
  */
5975
5979
  const eo = new Ie(3e4, 6e4);
5976
5980
  function Lt() {
5977
- const n = $().___jsl;
5981
+ const n = M().___jsl;
5978
5982
  if (n != null && n.H) {
5979
5983
  for (const e of Object.keys(n.H))
5980
5984
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -5991,7 +5995,7 @@ function to(n) {
5991
5995
  e(gapi.iframes.getContext());
5992
5996
  },
5993
5997
  ontimeout: () => {
5994
- Lt(), t(L(
5998
+ Lt(), t($(
5995
5999
  n,
5996
6000
  "network-request-failed"
5997
6001
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -6000,14 +6004,14 @@ function to(n) {
6000
6004
  timeout: eo.get()
6001
6005
  });
6002
6006
  }
6003
- if (!((i = (r = $().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6007
+ if (!((i = (r = M().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6004
6008
  e(gapi.iframes.getContext());
6005
- else if (!((s = $().gapi) === null || s === void 0) && s.load)
6009
+ else if (!((s = M().gapi) === null || s === void 0) && s.load)
6006
6010
  o();
6007
6011
  else {
6008
6012
  const c = Vi("iframefcb");
6009
- return $()[c] = () => {
6010
- gapi.load ? o() : t(L(
6013
+ return M()[c] = () => {
6014
+ gapi.load ? o() : t($(
6011
6015
  n,
6012
6016
  "network-request-failed"
6013
6017
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -6071,7 +6075,7 @@ function co(n) {
6071
6075
  return s.length && (r.fw = s.join(",")), `${t}?${ve(r).slice(1)}`;
6072
6076
  }
6073
6077
  async function lo(n) {
6074
- const e = await no(n), t = $().gapi;
6078
+ const e = await no(n), t = M().gapi;
6075
6079
  return _(
6076
6080
  t,
6077
6081
  n,
@@ -6088,15 +6092,15 @@ async function lo(n) {
6088
6092
  // Prevent iframe from closing on mouse out.
6089
6093
  setHideOnLeave: !1
6090
6094
  });
6091
- const o = L(
6095
+ const o = $(
6092
6096
  n,
6093
6097
  "network-request-failed"
6094
6098
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6095
- ), c = $().setTimeout(() => {
6099
+ ), c = M().setTimeout(() => {
6096
6100
  s(o);
6097
6101
  }, ro.get());
6098
6102
  function a() {
6099
- $().clearTimeout(c), i(r);
6103
+ M().clearTimeout(c), i(r);
6100
6104
  }
6101
6105
  r.ping(a).then(a, () => {
6102
6106
  s(o);
@@ -6145,9 +6149,9 @@ function mo(n, e, t, r = ho, i = fo) {
6145
6149
  height: i.toString(),
6146
6150
  top: s,
6147
6151
  left: o
6148
- }), u = R().toLowerCase();
6152
+ }), u = P().toLowerCase();
6149
6153
  t && (c = un(u) ? po : t), dn(u) && (e = e || go, a.scrollbars = "yes");
6150
- const y = Object.entries(a).reduce((A, [P, k]) => `${A}${P}=${k},`, "");
6154
+ const y = Object.entries(a).reduce((S, [O, N]) => `${S}${O}=${N},`, "");
6151
6155
  if (Di(u) && c !== "_self")
6152
6156
  return yo(e || "", c), new $t(null);
6153
6157
  const b = window.open(e || "", c, y);
@@ -6250,7 +6254,7 @@ class wo {
6250
6254
  // to make sure errors are raised as promise rejections
6251
6255
  async _openPopup(e, t, r, i) {
6252
6256
  var s;
6253
- j((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6257
+ F((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6254
6258
  const o = await Mt(e, t, r, Ze(), i);
6255
6259
  return mo(e, o, ut());
6256
6260
  }
@@ -6264,7 +6268,7 @@ class wo {
6264
6268
  const t = e._key();
6265
6269
  if (this.eventManagers[t]) {
6266
6270
  const { manager: i, promise: s } = this.eventManagers[t];
6267
- return i ? Promise.resolve(i) : (j(s, "If manager is not set, promise should be"), s);
6271
+ return i ? Promise.resolve(i) : (F(s, "If manager is not set, promise should be"), s);
6268
6272
  }
6269
6273
  const r = this.initAndGetManager(e);
6270
6274
  return this.eventManagers[t] = { promise: r }, r.catch(() => {
@@ -6287,7 +6291,7 @@ class wo {
6287
6291
  this.iframes[e._key()].send(Ge, { type: Ge }, (i) => {
6288
6292
  var s;
6289
6293
  const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ge];
6290
- o !== void 0 && t(!!o), N(
6294
+ o !== void 0 && t(!!o), L(
6291
6295
  e,
6292
6296
  "internal-error"
6293
6297
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -6399,7 +6403,7 @@ function So(n) {
6399
6403
  tokenApiHost: "securetoken.googleapis.com",
6400
6404
  apiScheme: "https",
6401
6405
  sdkClientVersion: yn(n)
6402
- }, u = new Bi(r, i, s, a);
6406
+ }, u = new Fi(r, i, s, a);
6403
6407
  return Ji(u, t), u;
6404
6408
  },
6405
6409
  "PUBLIC"
@@ -6445,13 +6449,13 @@ function So(n) {
6445
6449
  * limitations under the License.
6446
6450
  */
6447
6451
  const Co = 5 * 60, Ro = Jt("authIdTokenMaxAge") || Co;
6448
- let Ft = null;
6452
+ let Bt = null;
6449
6453
  const Po = (n) => async (e) => {
6450
6454
  const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
6451
6455
  if (r && r > Ro)
6452
6456
  return;
6453
6457
  const i = t == null ? void 0 : t.token;
6454
- Ft !== i && (Ft = i, await fetch(n, {
6458
+ Bt !== i && (Bt = i, await fetch(n, {
6455
6459
  method: i ? "POST" : "DELETE",
6456
6460
  headers: i ? {
6457
6461
  Authorization: `Bearer ${i}`
@@ -6495,26 +6499,26 @@ var Dn = { exports: {} };
6495
6499
  function r(l, m) {
6496
6500
  return l << m | l >>> 32 - m;
6497
6501
  }
6498
- function i(l, m, d, w, E, S) {
6499
- return t(r(t(t(m, l), t(w, S)), E), d);
6502
+ function i(l, m, d, w, E, A) {
6503
+ return t(r(t(t(m, l), t(w, A)), E), d);
6500
6504
  }
6501
- function s(l, m, d, w, E, S, O) {
6502
- return i(m & d | ~m & w, l, m, E, S, O);
6505
+ function s(l, m, d, w, E, A, R) {
6506
+ return i(m & d | ~m & w, l, m, E, A, R);
6503
6507
  }
6504
- function o(l, m, d, w, E, S, O) {
6505
- return i(m & w | d & ~w, l, m, E, S, O);
6508
+ function o(l, m, d, w, E, A, R) {
6509
+ return i(m & w | d & ~w, l, m, E, A, R);
6506
6510
  }
6507
- function c(l, m, d, w, E, S, O) {
6508
- return i(m ^ d ^ w, l, m, E, S, O);
6511
+ function c(l, m, d, w, E, A, R) {
6512
+ return i(m ^ d ^ w, l, m, E, A, R);
6509
6513
  }
6510
- function a(l, m, d, w, E, S, O) {
6511
- return i(d ^ (m | ~w), l, m, E, S, O);
6514
+ function a(l, m, d, w, E, A, R) {
6515
+ return i(d ^ (m | ~w), l, m, E, A, R);
6512
6516
  }
6513
6517
  function u(l, m) {
6514
6518
  l[m >> 5] |= 128 << m % 32, l[(m + 64 >>> 9 << 4) + 14] = m;
6515
- var d, w, E, S, O, h = 1732584193, f = -271733879, p = -1732584194, g = 271733878;
6519
+ var d, w, E, A, R, h = 1732584193, f = -271733879, p = -1732584194, g = 271733878;
6516
6520
  for (d = 0; d < l.length; d += 16)
6517
- w = h, E = f, S = p, O = g, h = s(h, f, p, g, l[d], 7, -680876936), g = s(g, h, f, p, l[d + 1], 12, -389564586), p = s(p, g, h, f, l[d + 2], 17, 606105819), f = s(f, p, g, h, l[d + 3], 22, -1044525330), h = s(h, f, p, g, l[d + 4], 7, -176418897), g = s(g, h, f, p, l[d + 5], 12, 1200080426), p = s(p, g, h, f, l[d + 6], 17, -1473231341), f = s(f, p, g, h, l[d + 7], 22, -45705983), h = s(h, f, p, g, l[d + 8], 7, 1770035416), g = s(g, h, f, p, l[d + 9], 12, -1958414417), p = s(p, g, h, f, l[d + 10], 17, -42063), f = s(f, p, g, h, l[d + 11], 22, -1990404162), h = s(h, f, p, g, l[d + 12], 7, 1804603682), g = s(g, h, f, p, l[d + 13], 12, -40341101), p = s(p, g, h, f, l[d + 14], 17, -1502002290), f = s(f, p, g, h, l[d + 15], 22, 1236535329), h = o(h, f, p, g, l[d + 1], 5, -165796510), g = o(g, h, f, p, l[d + 6], 9, -1069501632), p = o(p, g, h, f, l[d + 11], 14, 643717713), f = o(f, p, g, h, l[d], 20, -373897302), h = o(h, f, p, g, l[d + 5], 5, -701558691), g = o(g, h, f, p, l[d + 10], 9, 38016083), p = o(p, g, h, f, l[d + 15], 14, -660478335), f = o(f, p, g, h, l[d + 4], 20, -405537848), h = o(h, f, p, g, l[d + 9], 5, 568446438), g = o(g, h, f, p, l[d + 14], 9, -1019803690), p = o(p, g, h, f, l[d + 3], 14, -187363961), f = o(f, p, g, h, l[d + 8], 20, 1163531501), h = o(h, f, p, g, l[d + 13], 5, -1444681467), g = o(g, h, f, p, l[d + 2], 9, -51403784), p = o(p, g, h, f, l[d + 7], 14, 1735328473), f = o(f, p, g, h, l[d + 12], 20, -1926607734), h = c(h, f, p, g, l[d + 5], 4, -378558), g = c(g, h, f, p, l[d + 8], 11, -2022574463), p = c(p, g, h, f, l[d + 11], 16, 1839030562), f = c(f, p, g, h, l[d + 14], 23, -35309556), h = c(h, f, p, g, l[d + 1], 4, -1530992060), g = c(g, h, f, p, l[d + 4], 11, 1272893353), p = c(p, g, h, f, l[d + 7], 16, -155497632), f = c(f, p, g, h, l[d + 10], 23, -1094730640), h = c(h, f, p, g, l[d + 13], 4, 681279174), g = c(g, h, f, p, l[d], 11, -358537222), p = c(p, g, h, f, l[d + 3], 16, -722521979), f = c(f, p, g, h, l[d + 6], 23, 76029189), h = c(h, f, p, g, l[d + 9], 4, -640364487), g = c(g, h, f, p, l[d + 12], 11, -421815835), p = c(p, g, h, f, l[d + 15], 16, 530742520), f = c(f, p, g, h, l[d + 2], 23, -995338651), h = a(h, f, p, g, l[d], 6, -198630844), g = a(g, h, f, p, l[d + 7], 10, 1126891415), p = a(p, g, h, f, l[d + 14], 15, -1416354905), f = a(f, p, g, h, l[d + 5], 21, -57434055), h = a(h, f, p, g, l[d + 12], 6, 1700485571), g = a(g, h, f, p, l[d + 3], 10, -1894986606), p = a(p, g, h, f, l[d + 10], 15, -1051523), f = a(f, p, g, h, l[d + 1], 21, -2054922799), h = a(h, f, p, g, l[d + 8], 6, 1873313359), g = a(g, h, f, p, l[d + 15], 10, -30611744), p = a(p, g, h, f, l[d + 6], 15, -1560198380), f = a(f, p, g, h, l[d + 13], 21, 1309151649), h = a(h, f, p, g, l[d + 4], 6, -145523070), g = a(g, h, f, p, l[d + 11], 10, -1120210379), p = a(p, g, h, f, l[d + 2], 15, 718787259), f = a(f, p, g, h, l[d + 9], 21, -343485551), h = t(h, w), f = t(f, E), p = t(p, S), g = t(g, O);
6521
+ w = h, E = f, A = p, R = g, h = s(h, f, p, g, l[d], 7, -680876936), g = s(g, h, f, p, l[d + 1], 12, -389564586), p = s(p, g, h, f, l[d + 2], 17, 606105819), f = s(f, p, g, h, l[d + 3], 22, -1044525330), h = s(h, f, p, g, l[d + 4], 7, -176418897), g = s(g, h, f, p, l[d + 5], 12, 1200080426), p = s(p, g, h, f, l[d + 6], 17, -1473231341), f = s(f, p, g, h, l[d + 7], 22, -45705983), h = s(h, f, p, g, l[d + 8], 7, 1770035416), g = s(g, h, f, p, l[d + 9], 12, -1958414417), p = s(p, g, h, f, l[d + 10], 17, -42063), f = s(f, p, g, h, l[d + 11], 22, -1990404162), h = s(h, f, p, g, l[d + 12], 7, 1804603682), g = s(g, h, f, p, l[d + 13], 12, -40341101), p = s(p, g, h, f, l[d + 14], 17, -1502002290), f = s(f, p, g, h, l[d + 15], 22, 1236535329), h = o(h, f, p, g, l[d + 1], 5, -165796510), g = o(g, h, f, p, l[d + 6], 9, -1069501632), p = o(p, g, h, f, l[d + 11], 14, 643717713), f = o(f, p, g, h, l[d], 20, -373897302), h = o(h, f, p, g, l[d + 5], 5, -701558691), g = o(g, h, f, p, l[d + 10], 9, 38016083), p = o(p, g, h, f, l[d + 15], 14, -660478335), f = o(f, p, g, h, l[d + 4], 20, -405537848), h = o(h, f, p, g, l[d + 9], 5, 568446438), g = o(g, h, f, p, l[d + 14], 9, -1019803690), p = o(p, g, h, f, l[d + 3], 14, -187363961), f = o(f, p, g, h, l[d + 8], 20, 1163531501), h = o(h, f, p, g, l[d + 13], 5, -1444681467), g = o(g, h, f, p, l[d + 2], 9, -51403784), p = o(p, g, h, f, l[d + 7], 14, 1735328473), f = o(f, p, g, h, l[d + 12], 20, -1926607734), h = c(h, f, p, g, l[d + 5], 4, -378558), g = c(g, h, f, p, l[d + 8], 11, -2022574463), p = c(p, g, h, f, l[d + 11], 16, 1839030562), f = c(f, p, g, h, l[d + 14], 23, -35309556), h = c(h, f, p, g, l[d + 1], 4, -1530992060), g = c(g, h, f, p, l[d + 4], 11, 1272893353), p = c(p, g, h, f, l[d + 7], 16, -155497632), f = c(f, p, g, h, l[d + 10], 23, -1094730640), h = c(h, f, p, g, l[d + 13], 4, 681279174), g = c(g, h, f, p, l[d], 11, -358537222), p = c(p, g, h, f, l[d + 3], 16, -722521979), f = c(f, p, g, h, l[d + 6], 23, 76029189), h = c(h, f, p, g, l[d + 9], 4, -640364487), g = c(g, h, f, p, l[d + 12], 11, -421815835), p = c(p, g, h, f, l[d + 15], 16, 530742520), f = c(f, p, g, h, l[d + 2], 23, -995338651), h = a(h, f, p, g, l[d], 6, -198630844), g = a(g, h, f, p, l[d + 7], 10, 1126891415), p = a(p, g, h, f, l[d + 14], 15, -1416354905), f = a(f, p, g, h, l[d + 5], 21, -57434055), h = a(h, f, p, g, l[d + 12], 6, 1700485571), g = a(g, h, f, p, l[d + 3], 10, -1894986606), p = a(p, g, h, f, l[d + 10], 15, -1051523), f = a(f, p, g, h, l[d + 1], 21, -2054922799), h = a(h, f, p, g, l[d + 8], 6, 1873313359), g = a(g, h, f, p, l[d + 15], 10, -30611744), p = a(p, g, h, f, l[d + 6], 15, -1560198380), f = a(f, p, g, h, l[d + 13], 21, 1309151649), h = a(h, f, p, g, l[d + 4], 6, -145523070), g = a(g, h, f, p, l[d + 11], 10, -1120210379), p = a(p, g, h, f, l[d + 2], 15, 718787259), f = a(f, p, g, h, l[d + 9], 21, -343485551), h = t(h, w), f = t(f, E), p = t(p, A), g = t(g, R);
6518
6522
  return [h, f, p, g];
6519
6523
  }
6520
6524
  function y(l) {
@@ -6532,16 +6536,16 @@ var Dn = { exports: {} };
6532
6536
  d[m >> 5] |= (l.charCodeAt(m / 8) & 255) << m % 32;
6533
6537
  return d;
6534
6538
  }
6535
- function A(l) {
6539
+ function S(l) {
6536
6540
  return y(u(b(l), l.length * 8));
6537
6541
  }
6538
- function P(l, m) {
6539
- var d, w = b(l), E = [], S = [], O;
6540
- for (E[15] = S[15] = void 0, w.length > 16 && (w = u(w, l.length * 8)), d = 0; d < 16; d += 1)
6541
- E[d] = w[d] ^ 909522486, S[d] = w[d] ^ 1549556828;
6542
- return O = u(E.concat(b(m)), 512 + m.length * 8), y(u(S.concat(O), 640));
6542
+ function O(l, m) {
6543
+ var d, w = b(l), E = [], A = [], R;
6544
+ for (E[15] = A[15] = void 0, w.length > 16 && (w = u(w, l.length * 8)), d = 0; d < 16; d += 1)
6545
+ E[d] = w[d] ^ 909522486, A[d] = w[d] ^ 1549556828;
6546
+ return R = u(E.concat(b(m)), 512 + m.length * 8), y(u(A.concat(R), 640));
6543
6547
  }
6544
- function k(l) {
6548
+ function N(l) {
6545
6549
  var m = "0123456789abcdef", d = "", w, E;
6546
6550
  for (E = 0; E < l.length; E += 1)
6547
6551
  w = l.charCodeAt(E), d += m.charAt(w >>> 4 & 15) + m.charAt(w & 15);
@@ -6551,21 +6555,21 @@ var Dn = { exports: {} };
6551
6555
  return unescape(encodeURIComponent(l));
6552
6556
  }
6553
6557
  function I(l) {
6554
- return A(v(l));
6558
+ return S(v(l));
6555
6559
  }
6556
- function D(l) {
6557
- return k(I(l));
6560
+ function k(l) {
6561
+ return N(I(l));
6558
6562
  }
6559
6563
  function C(l, m) {
6560
- return P(v(l), v(m));
6564
+ return O(v(l), v(m));
6561
6565
  }
6562
- function Q(l, m) {
6563
- return k(C(l, m));
6566
+ function U(l, m) {
6567
+ return N(C(l, m));
6564
6568
  }
6565
- function H(l, m, d) {
6566
- return m ? d ? C(m, l) : Q(m, l) : d ? I(l) : D(l);
6569
+ function D(l, m, d) {
6570
+ return m ? d ? C(m, l) : U(m, l) : d ? I(l) : k(l);
6567
6571
  }
6568
- n.exports ? n.exports = H : e.md5 = H;
6572
+ n.exports ? n.exports = D : e.md5 = D;
6569
6573
  })(ko);
6570
6574
  })(Dn);
6571
6575
  var Do = Dn.exports;
@@ -6627,10 +6631,10 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
6627
6631
  }, Mo = (n = {}) => Object.keys(n).length ? `?q=${JSON.stringify(n)}` : "", Uo = (n) => [...n].reduce(
6628
6632
  (e, t) => t === t.toUpperCase() ? `${e}-${t.toLowerCase()}` : `${e}${t}`,
6629
6633
  ""
6630
- ), jo = (n) => `${n[0].toLowerCase()}${n.slice(1)}`, Fo = (n) => {
6634
+ ), jo = (n) => `${n[0].toLowerCase()}${n.slice(1)}`, Bo = (n) => {
6631
6635
  const e = Uo(n);
6632
6636
  return (t, r) => `/${e}${t ? `/${encodeURIComponent(t)}` : ""}${Mo(r)}`;
6633
- }, Bt = (n, e) => {
6637
+ }, Ft = (n, e) => {
6634
6638
  const t = Array.isArray(e.inputProps);
6635
6639
  return Object.keys(n).reduce(
6636
6640
  (r, i) => {
@@ -6644,12 +6648,12 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
6644
6648
  },
6645
6649
  {}
6646
6650
  );
6647
- }, Bo = ({ primaryKey: n, properties: e, ...t }) => ({
6651
+ }, Fo = ({ primaryKey: n, properties: e, ...t }) => ({
6648
6652
  primaryKey: n || "id",
6649
6653
  properties: Object.keys(e || {}).reduce(
6650
6654
  (r, i) => {
6651
- var b, A;
6652
- const s = e[i] || {}, { type: o, isScalar: c, isRequired: a, isRef: u = !1 } = typeof s.type == "string" ? s.type === "array" ? s.enum ? { type: "string", isScalar: !1, isRequired: !1 } : (b = s.items) != null && b.$ref ? { type: s.items.$ref.split("/").pop(), isScalar: !1, isRequired: !1, isRef: !0 } : { type: (A = s.items) == null ? void 0 : A.type, isScalar: !1, isRequired: !1 } : { type: s.format === "date-time" ? "date" : s.type, isScalar: !0, isRequired: !0 } : Array.isArray(s.type) ? s.type.length === 2 ? { type: s.format === "date-time" ? "date" : s.type[0], isScalar: !0, isRequired: !1 } : { type: "json", isScalar: !0, isRequired: s.type.includes("null") } : s.$ref ? { type: s.$ref.split("/").pop(), isScalar: !0, isRequired: !0, isRef: !0 } : { type: s.anyOf[0].$ref.split("/").pop(), isScalar: !0, isRequired: !1, isRef: !0 }, y = s.inputType || (o === "integer" ? "number" : o);
6655
+ var b, S;
6656
+ const s = e[i] || {}, { type: o, isScalar: c, isRequired: a, isRef: u = !1 } = typeof s.type == "string" ? s.type === "array" ? s.enum ? { type: "string", isScalar: !1, isRequired: !1 } : (b = s.items) != null && b.$ref ? { type: s.items.$ref.split("/").pop(), isScalar: !1, isRequired: !1, isRef: !0 } : { type: (S = s.items) == null ? void 0 : S.type, isScalar: !1, isRequired: !1 } : { type: s.format === "date-time" ? "date" : s.type, isScalar: !0, isRequired: !0 } : Array.isArray(s.type) ? s.type.length === 2 ? { type: s.format === "date-time" ? "date" : s.type[0], isScalar: !0, isRequired: !1 } : { type: "json", isScalar: !0, isRequired: s.type.includes("null") } : s.$ref ? { type: s.$ref.split("/").pop(), isScalar: !0, isRequired: !0, isRef: !0 } : { type: s.anyOf[0].$ref.split("/").pop(), isScalar: !0, isRequired: !1, isRef: !0 }, y = s.inputType || (o === "integer" ? "number" : o);
6653
6657
  return {
6654
6658
  ...r,
6655
6659
  [i]: {
@@ -6666,41 +6670,41 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
6666
6670
  ),
6667
6671
  ...t
6668
6672
  }), Ho = (n, e, t, r = {}, i = {}) => {
6669
- const s = Bo(r), { primaryKey: o, properties: c } = s, a = $o(s), u = Fo(t), y = (...v) => ft(n, e.authUser)(...v), b = ({ data: v, ...I }) => y(u(null, I), {
6673
+ const s = Fo(r), { primaryKey: o, properties: c } = s, a = $o(s), u = Bo(t), y = (...v) => ft(n, e.authUser)(...v), b = ({ data: v, ...I }) => y(u(null, I), {
6670
6674
  method: "POST",
6671
- body: Bt(v, s)
6672
- }), A = ({ data: v, ...I }) => {
6673
- const { where: D, ...C } = I;
6674
- return y(u(D[o], C), {
6675
+ body: Ft(v, s)
6676
+ }), S = ({ data: v, ...I }) => {
6677
+ const { where: k, ...C } = I;
6678
+ return y(u(k[o], C), {
6675
6679
  method: "PUT",
6676
- body: Bt(v, s)
6680
+ body: Ft(v, s)
6677
6681
  });
6678
- }, P = (v) => {
6682
+ }, O = (v) => {
6679
6683
  if (!v)
6680
6684
  return v;
6681
6685
  const I = Object.keys(v).reduce(
6682
- (D, C) => {
6686
+ (k, C) => {
6683
6687
  var E;
6684
- const Q = c[C] || {}, { type: H, isScalar: l, isRef: m, format: d, items: w } = Q;
6688
+ const U = c[C] || {}, { type: D, isScalar: l, isRef: m, format: d, items: w } = U;
6685
6689
  if (m) {
6686
- const S = jo(H);
6690
+ const A = jo(D);
6687
6691
  return l ? {
6688
- ...D,
6689
- [C]: i[S].parse(v[C])
6692
+ ...k,
6693
+ [C]: i[A].parse(v[C])
6690
6694
  } : {
6691
- ...D,
6692
- [C]: typeof ((E = i[S]) == null ? void 0 : E.parse) == "function" ? v[C].map((O) => i[S].parse(O)) : v[C]
6695
+ ...k,
6696
+ [C]: typeof ((E = i[A]) == null ? void 0 : E.parse) == "function" ? v[C].map((R) => i[A].parse(R)) : v[C]
6693
6697
  };
6694
6698
  }
6695
6699
  return {
6696
- ...D,
6697
- [C]: H === "date" && v[C] ? new Date(v[C]) : v[C]
6700
+ ...k,
6701
+ [C]: D === "date" && v[C] ? new Date(v[C]) : v[C]
6698
6702
  };
6699
6703
  },
6700
6704
  {}
6701
6705
  );
6702
6706
  return typeof s.parse == "function" ? s.parse(I) : I;
6703
- }, k = Object.keys(c || {}).reduce(
6707
+ }, N = Object.keys(c || {}).reduce(
6704
6708
  (v, I) => c[I].isRef && c[I].isScalar && c[I].isRequired ? Object.assign(v, {
6705
6709
  all: v.all.concat(I),
6706
6710
  oneToOne: v.oneToOne.concat(I),
@@ -6726,18 +6730,51 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
6726
6730
  return s;
6727
6731
  },
6728
6732
  get relations() {
6729
- return k;
6733
+ return N;
6730
6734
  },
6731
- parse: P,
6735
+ parse: O,
6732
6736
  validateAttr: a.validateAttr,
6733
6737
  validate: a.validate,
6734
- findMany: (v) => y(u(null, v)).then((I) => I.map(P)),
6735
- findById: (v, I) => y(u(v, I)).then(P),
6738
+ findMany: (v) => y(u(null, v)).then((I) => I.map(O)),
6739
+ findById: (v, I) => y(u(v, I)).then(O),
6736
6740
  create: b,
6737
- update: A,
6738
- upsert: (v) => v.where[o] ? A({ where: v.where, data: v.update }) : b({ data: v.create }),
6741
+ update: S,
6742
+ upsert: (v) => v.where[o] ? S({ where: v.where, data: v.update }) : b({ data: v.create }),
6739
6743
  delete: (v) => y(u(v), { method: "DELETE" }),
6740
- stats: () => y(u("_stats"))
6744
+ stats: () => y(u("_stats")),
6745
+ search: (v, I = {}) => {
6746
+ var d;
6747
+ const { searchProps: k } = s, U = v.split(" ").reduce(
6748
+ (w, E) => [
6749
+ ...w,
6750
+ {
6751
+ OR: k.reduce(
6752
+ (A, R) => {
6753
+ const h = R.split(".");
6754
+ return [
6755
+ ...A,
6756
+ h.reduceRight(
6757
+ (f, p) => ({ [p]: f }),
6758
+ { contains: E, mode: "insensitive" }
6759
+ )
6760
+ ];
6761
+ },
6762
+ []
6763
+ )
6764
+ }
6765
+ ],
6766
+ []
6767
+ ), D = { ...I.select, ...I.include }, l = (d = s.defaultProps) != null && d.length ? Object.assign(...s.defaultProps.map((w) => ({ [w]: !0 }))) : null, m = Object.keys(D).length ? D : l;
6768
+ return y(u(null, {
6769
+ where: {
6770
+ ...I.where,
6771
+ AND: U
6772
+ },
6773
+ ...!!m && { select: m },
6774
+ ...I.orderBy && { orderBy: I.orderBy },
6775
+ take: I.take || 100
6776
+ }));
6777
+ }
6741
6778
  };
6742
6779
  }, Vo = (n, e, t) => Object.keys(t.properties).reduce(
6743
6780
  (r, i) => {
@@ -7136,6 +7173,12 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
7136
7173
  items: {
7137
7174
  $ref: "#/definitions/JobProfileType"
7138
7175
  }
7176
+ },
7177
+ applicationChallenges: {
7178
+ type: "array",
7179
+ items: {
7180
+ $ref: "#/definitions/ApplicationChallengeTrack"
7181
+ }
7139
7182
  }
7140
7183
  }
7141
7184
  },
@@ -7874,6 +7917,12 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
7874
7917
  trackId: {
7875
7918
  type: "integer"
7876
7919
  },
7920
+ tracks: {
7921
+ type: "array",
7922
+ items: {
7923
+ $ref: "#/definitions/ApplicationChallengeTrack"
7924
+ }
7925
+ },
7877
7926
  langs: {
7878
7927
  type: "array",
7879
7928
  enum: [
@@ -7919,6 +7968,34 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
7919
7968
  }
7920
7969
  }
7921
7970
  },
7971
+ ApplicationChallengeTrack: {
7972
+ type: "object",
7973
+ properties: {
7974
+ id: {
7975
+ type: "integer"
7976
+ },
7977
+ createdAt: {
7978
+ type: "string",
7979
+ format: "date-time"
7980
+ },
7981
+ updatedAt: {
7982
+ type: "string",
7983
+ format: "date-time"
7984
+ },
7985
+ createdBy: {
7986
+ type: [
7987
+ "string",
7988
+ "null"
7989
+ ]
7990
+ },
7991
+ applicationChallenge: {
7992
+ $ref: "#/definitions/ApplicationChallenge"
7993
+ },
7994
+ track: {
7995
+ $ref: "#/definitions/Track"
7996
+ }
7997
+ }
7998
+ },
7922
7999
  ActivityLogEntry: {
7923
8000
  type: "object",
7924
8001
  properties: {
@@ -7941,7 +8018,8 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
7941
8018
  "application_filter_bypass",
7942
8019
  "application_cohort_change",
7943
8020
  "project_assessment",
7944
- "project_assessment_request"
8021
+ "project_assessment_request",
8022
+ "project_assessment_assignment"
7945
8023
  ]
7946
8024
  },
7947
8025
  data: {
@@ -9006,6 +9084,9 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
9006
9084
  applicationChallengeAssignment: {
9007
9085
  $ref: "#/definitions/ApplicationChallengeAssignment"
9008
9086
  },
9087
+ applicationChallengeTrack: {
9088
+ $ref: "#/definitions/ApplicationChallengeTrack"
9089
+ },
9009
9090
  activityLogEntry: {
9010
9091
  $ref: "#/definitions/ActivityLogEntry"
9011
9092
  },
@@ -9195,7 +9276,17 @@ const Lo = /* @__PURE__ */ No(Do), ft = (n, e) => async (t, r = {}) => {
9195
9276
  "cohort",
9196
9277
  "user"
9197
9278
  ],
9198
- searchProps: []
9279
+ searchProps: [
9280
+ "user.firstName",
9281
+ "user.lastName",
9282
+ "user.email"
9283
+ ],
9284
+ defaultProps: [
9285
+ "id",
9286
+ "cohort",
9287
+ "user"
9288
+ ],
9289
+ getOptionLabel: ({ user: n, cohort: e }) => `${n == null ? void 0 : n.firstName} ${(n == null ? void 0 : n.lastName) || ""} (${e == null ? void 0 : e.name})`
9199
9290
  },
9200
9291
  Dropout: {
9201
9292
  inputProps: [