@ukpc-lib/react 0.2.34 → 0.2.36

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.
@@ -25,7 +25,7 @@ function nw(i, t) {
25
25
  }
26
26
  return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
27
27
  }
28
- const rw = cc({}), Kk = ({ children: i }) => {
28
+ const rw = cc({}), Jk = ({ children: i }) => {
29
29
  const [t, n] = vu(!0), [s, o] = vu({
30
30
  all: { rows: [], total: 0 },
31
31
  unread: { rows: [], total: 0 }
@@ -52,7 +52,7 @@ var Ko = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
52
52
  function Wc(i) {
53
53
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
54
54
  }
55
- function Jk(i) {
55
+ function Zk(i) {
56
56
  if (i.__esModule)
57
57
  return i;
58
58
  var t = i.default;
@@ -10747,7 +10747,7 @@ function _w() {
10747
10747
  return Of.has(g) || Of.set(g, Tw({ tag: l, render: n })), Of.get(g);
10748
10748
  } });
10749
10749
  }
10750
- var Zk = _w();
10750
+ var Qk = _w();
10751
10751
  function Io(i) {
10752
10752
  "@babel/helpers - typeof";
10753
10753
  return Io = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -13048,7 +13048,7 @@ function lg(i, t) {
13048
13048
  o = s[l], !(t.indexOf(o) >= 0) && (n[o] = i[o]);
13049
13049
  return n;
13050
13050
  }
13051
- const Qk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13051
+ const eE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13052
13052
  __proto__: null,
13053
13053
  default: lg
13054
13054
  }, Symbol.toStringTag, { value: "Module" }));
@@ -14128,24 +14128,34 @@ var nx = function() {
14128
14128
  }();
14129
14129
  wg.type = "backend";
14130
14130
  var Sg = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Sg || {});
14131
+ const rx = {
14132
+ en: "English",
14133
+ de: "German"
14134
+ };
14131
14135
  Kr.use(pg).use(DS).use(ug).init({
14132
14136
  // defaultNS: "translation",
14133
14137
  // resources,
14134
14138
  initImmediate: !0,
14135
- fallbackLng: "en",
14139
+ ns: ["translation"],
14140
+ fallbackLng: Object.keys(rx),
14141
+ fallbackNS: "translation",
14136
14142
  partialBundledLanguages: !0,
14137
14143
  resources: {},
14144
+ interpolation: {
14145
+ escapeValue: !1
14146
+ },
14138
14147
  backend: {
14139
14148
  backends: [wg],
14140
14149
  backendOptions: [
14141
14150
  {
14142
14151
  loadPath: "https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",
14143
- crossDomain: !0
14152
+ crossDomain: !0,
14153
+ cacheHitMode: "refresh"
14144
14154
  }
14145
14155
  ]
14146
14156
  }
14147
14157
  });
14148
- function rx() {
14158
+ function ix() {
14149
14159
  const [i, t] = vu();
14150
14160
  return mu(() => {
14151
14161
  const n = localStorage.getItem("language");
@@ -14155,15 +14165,15 @@ function rx() {
14155
14165
  setLanguage: t
14156
14166
  };
14157
14167
  }
14158
- const xg = cc({}), eE = () => gd(xg), tE = Kr, nE = aS, rE = () => FS(), iE = ({ children: i }) => {
14159
- const t = rx();
14168
+ const xg = cc({}), tE = () => gd(xg), nE = Kr, rE = aS, iE = () => FS(), oE = ({ children: i }) => {
14169
+ const t = ix();
14160
14170
  return /* @__PURE__ */ sr(xg.Provider, { value: t, children: /* @__PURE__ */ sr(NS, { i18n: Kr, children: i }) });
14161
- }, oE = {
14171
+ }, aE = {
14162
14172
  TOKEN_MALFORMED: "token_malformed",
14163
14173
  TOKEN_EXPIRED: "token_expired"
14164
- }, aE = (i) => {
14165
- window.location.href = `${i}/authentication/login?callbackUrl=${window.location.href}`;
14166
14174
  }, sE = (i) => {
14175
+ window.location.href = `${i}/authentication/login?callbackUrl=${window.location.href}`;
14176
+ }, uE = (i) => {
14167
14177
  window.location.href = `${i}/authentication/logout?callbackUrl=${window.location.href}`;
14168
14178
  };
14169
14179
  function Cg(i) {
@@ -14186,7 +14196,7 @@ function fu() {
14186
14196
  return s;
14187
14197
  }
14188
14198
  const oc = (i) => typeof i == "number" && !isNaN(i), al = (i) => typeof i == "string", Ro = (i) => typeof i == "function", Ac = (i) => al(i) || Ro(i) ? i : null, rd = (i) => jl(i) || al(i) || Ro(i) || oc(i);
14189
- function ix(i, t, n) {
14199
+ function ox(i, t, n) {
14190
14200
  n === void 0 && (n = 300);
14191
14201
  const { scrollHeight: s, style: o } = i;
14192
14202
  requestAnimationFrame(() => {
@@ -14207,7 +14217,7 @@ function Yc(i) {
14207
14217
  F.classList.add(...he), F.addEventListener("animationend", ye), F.addEventListener("animationcancel", ye);
14208
14218
  }, []), mu(() => {
14209
14219
  const F = L.current, he = () => {
14210
- F.removeEventListener("animationend", he), o ? ix(F, U, l) : U();
14220
+ F.removeEventListener("animationend", he), o ? ox(F, U, l) : U();
14211
14221
  };
14212
14222
  q || (A ? he() : (J.current = 1, F.className += ` ${ne}`, F.addEventListener("animationend", he)));
14213
14223
  }, [q]), Kt.createElement(Kt.Fragment, null, E);
@@ -14218,7 +14228,7 @@ function Cp(i, t) {
14218
14228
  }
14219
14229
  const Wi = /* @__PURE__ */ new Map();
14220
14230
  let ac = [];
14221
- const id = /* @__PURE__ */ new Set(), ox = (i) => id.forEach((t) => t(i)), kg = () => Wi.size > 0;
14231
+ const id = /* @__PURE__ */ new Set(), ax = (i) => id.forEach((t) => t(i)), kg = () => Wi.size > 0;
14222
14232
  function Eg(i, t) {
14223
14233
  var n;
14224
14234
  if (t)
@@ -14238,7 +14248,7 @@ function kp(i, t) {
14238
14248
  t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) === n.id && n.toggle(i, t == null ? void 0 : t.id) : n.toggle(i, t == null ? void 0 : t.id);
14239
14249
  });
14240
14250
  }
14241
- function ax(i) {
14251
+ function sx(i) {
14242
14252
  const { subscribe: t, getSnapshot: n, setProps: s } = Fs(function(l) {
14243
14253
  const g = l.containerId || 1;
14244
14254
  return { subscribe(E) {
@@ -14289,7 +14299,7 @@ function ax(i) {
14289
14299
  }, setToggle: (Ue, Ee) => {
14290
14300
  ye.get(Ue).toggle = Ee;
14291
14301
  }, isToastActive: (Ue) => J.some((Ee) => Ee === Ue), getSnapshot: () => he.newestOnTop ? F.reverse() : F };
14292
- }(g, l, ox);
14302
+ }(g, l, ax);
14293
14303
  Wi.set(g, C);
14294
14304
  const A = C.observe(E);
14295
14305
  return ac.forEach((U) => Tg(U.content, U.options)), ac = [], () => {
@@ -14315,7 +14325,7 @@ function ax(i) {
14315
14325
  }), Array.from(g, (E) => l(E[0], E[1]));
14316
14326
  }, isToastActive: Eg, count: o == null ? void 0 : o.length };
14317
14327
  }
14318
- function sx(i) {
14328
+ function ux(i) {
14319
14329
  const [t, n] = vu(!1), [s, o] = vu(!1), l = Fs(null), g = Fs({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: E, pauseOnHover: C, closeToast: A, onClick: U, closeOnClick: L } = i;
14320
14330
  var q, Q;
14321
14331
  function re() {
@@ -14357,7 +14367,7 @@ function sx(i) {
14357
14367
  U && U(ye), g.canCloseOnClick && A();
14358
14368
  }), { playToast: re, pauseToast: ne, isRunning: t, preventExitTransition: s, toastRef: l, eventHandlers: he };
14359
14369
  }
14360
- function ux(i) {
14370
+ function lx(i) {
14361
14371
  let { delay: t, isRunning: n, closeToast: s, type: o = "default", hide: l, className: g, style: E, controlledProgress: C, progress: A, rtl: U, isIn: L, theme: q } = i;
14362
14372
  const Q = l || C && A === 0, re = { ...E, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
14363
14373
  C && (re.transform = `scaleX(${A})`);
@@ -14366,16 +14376,16 @@ function ux(i) {
14366
14376
  } };
14367
14377
  return Kt.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": Q }, Kt.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${q} Toastify__progress-bar--${o}` }), Kt.createElement("div", { role: "progressbar", "aria-hidden": Q ? "true" : "false", "aria-label": "notification timer", className: J, style: re, ...F }));
14368
14378
  }
14369
- let lx = 1;
14370
- const _g = () => "" + lx++;
14371
- function cx(i) {
14379
+ let cx = 1;
14380
+ const _g = () => "" + cx++;
14381
+ function fx(i) {
14372
14382
  return i && (al(i.toastId) || oc(i.toastId)) ? i.toastId : _g();
14373
14383
  }
14374
14384
  function nc(i, t) {
14375
14385
  return Tg(i, t), t.toastId;
14376
14386
  }
14377
14387
  function Bc(i, t) {
14378
- return { ...t, type: t && t.type || i, toastId: cx(t) };
14388
+ return { ...t, type: t && t.type || i, toastId: fx(t) };
14379
14389
  }
14380
14390
  function Ic(i) {
14381
14391
  return (t, n) => nc(t, Bc(i, n));
@@ -14434,7 +14444,7 @@ yn.loading = (i, t) => nc(i, Bc("default", { isLoading: !0, autoClose: !1, close
14434
14444
  id.delete(i);
14435
14445
  };
14436
14446
  }, yn.play = (i) => kp(!0, i), yn.pause = (i) => kp(!1, i);
14437
- const fx = typeof window < "u" ? pd : mu, Oc = (i) => {
14447
+ const dx = typeof window < "u" ? pd : mu, Oc = (i) => {
14438
14448
  let { theme: t, type: n, isLoading: s, ...o } = i;
14439
14449
  return Kt.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...o });
14440
14450
  }, Lf = { info: function(i) {
@@ -14447,8 +14457,8 @@ const fx = typeof window < "u" ? pd : mu, Oc = (i) => {
14447
14457
  return Kt.createElement(Oc, { ...i }, Kt.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
14448
14458
  }, spinner: function() {
14449
14459
  return Kt.createElement("div", { className: "Toastify__spinner" });
14450
- } }, dx = (i) => {
14451
- const { isRunning: t, preventExitTransition: n, toastRef: s, eventHandlers: o, playToast: l } = sx(i), { closeButton: g, children: E, autoClose: C, onClick: A, type: U, hideProgressBar: L, closeToast: q, transition: Q, position: re, className: ne, style: J, bodyClassName: F, bodyStyle: he, progressClassName: ye, progressStyle: Ie, updateId: de, role: je, progress: m, rtl: Ue, toastId: Ee, deleteToast: dt, isIn: Ct, isLoading: gt, closeOnClick: ft, theme: xt } = i, me = fu("Toastify__toast", `Toastify__toast-theme--${xt}`, `Toastify__toast--${U}`, { "Toastify__toast--rtl": Ue }, { "Toastify__toast--close-on-click": ft }), Le = Ro(ne) ? ne({ rtl: Ue, position: re, type: U, defaultClassName: me }) : fu(me, ne), Ve = function(Pe) {
14460
+ } }, hx = (i) => {
14461
+ const { isRunning: t, preventExitTransition: n, toastRef: s, eventHandlers: o, playToast: l } = ux(i), { closeButton: g, children: E, autoClose: C, onClick: A, type: U, hideProgressBar: L, closeToast: q, transition: Q, position: re, className: ne, style: J, bodyClassName: F, bodyStyle: he, progressClassName: ye, progressStyle: Ie, updateId: de, role: je, progress: m, rtl: Ue, toastId: Ee, deleteToast: dt, isIn: Ct, isLoading: gt, closeOnClick: ft, theme: xt } = i, me = fu("Toastify__toast", `Toastify__toast-theme--${xt}`, `Toastify__toast--${U}`, { "Toastify__toast--rtl": Ue }, { "Toastify__toast--close-on-click": ft }), Le = Ro(ne) ? ne({ rtl: Ue, position: re, type: U, defaultClassName: me }) : fu(me, ne), Ve = function(Pe) {
14452
14462
  let { theme: Ye, type: Xe, isLoading: Ze, icon: Je } = Pe, Ke = null;
14453
14463
  const lt = { theme: Ye, type: Xe };
14454
14464
  return Je === !1 || (Ro(Je) ? Ke = Je({ ...lt, isLoading: Ze }) : jl(Je) ? Ke = Gf(Je, lt) : Ze ? Ke = Lf.spinner() : ((vt) => vt in Lf)(Xe) && (Ke = Lf[Xe](lt))), Ke;
@@ -14459,17 +14469,17 @@ const fx = typeof window < "u" ? pd : mu, Oc = (i) => {
14459
14469
  return Kt.createElement("button", { className: `Toastify__close-button Toastify__close-button--${Xe}`, type: "button", onClick: (Je) => {
14460
14470
  Je.stopPropagation(), Ye(Je);
14461
14471
  }, "aria-label": Ze }, Kt.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Kt.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
14462
- }(ut)), Kt.createElement(Q, { isIn: Ct, done: dt, position: re, preventExitTransition: n, nodeRef: s, playToast: l }, Kt.createElement("div", { id: Ee, onClick: A, "data-in": Ct, className: Le, ...o, style: J, ref: s }, Kt.createElement("div", { ...Ct && { role: je }, className: Ro(F) ? F({ type: U }) : fu("Toastify__toast-body", F), style: he }, Ve != null && Kt.createElement("div", { className: fu("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !gt }) }, Ve), Kt.createElement("div", null, E)), Ce, Kt.createElement(ux, { ...de && !qe ? { key: `pb-${de}` } : {}, rtl: Ue, theme: xt, delay: C, isRunning: t, isIn: Ct, closeToast: q, hide: L, type: U, style: Ie, className: ye, controlledProgress: qe, progress: m || 0 })));
14472
+ }(ut)), Kt.createElement(Q, { isIn: Ct, done: dt, position: re, preventExitTransition: n, nodeRef: s, playToast: l }, Kt.createElement("div", { id: Ee, onClick: A, "data-in": Ct, className: Le, ...o, style: J, ref: s }, Kt.createElement("div", { ...Ct && { role: je }, className: Ro(F) ? F({ type: U }) : fu("Toastify__toast-body", F), style: he }, Ve != null && Kt.createElement("div", { className: fu("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !gt }) }, Ve), Kt.createElement("div", null, E)), Ce, Kt.createElement(lx, { ...de && !qe ? { key: `pb-${de}` } : {}, rtl: Ue, theme: xt, delay: C, isRunning: t, isIn: Ct, closeToast: q, hide: L, type: U, style: Ie, className: ye, controlledProgress: qe, progress: m || 0 })));
14463
14473
  }, Vc = function(i, t) {
14464
14474
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${i}-enter`, exit: `Toastify--animate Toastify__${i}-exit`, appendPosition: t };
14465
- }, hx = Yc(Vc("bounce", !0));
14475
+ }, px = Yc(Vc("bounce", !0));
14466
14476
  Yc(Vc("slide", !0));
14467
14477
  Yc(Vc("zoom"));
14468
14478
  Yc(Vc("flip"));
14469
- const px = { position: "top-right", transition: hx, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
14470
- function uE(i) {
14471
- let t = { ...px, ...i };
14472
- const n = i.stacked, [s, o] = vu(!0), l = Fs(null), { getToastToRender: g, isToastActive: E, count: C } = ax(t), { className: A, style: U, rtl: L, containerId: q } = t;
14479
+ const gx = { position: "top-right", transition: px, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
14480
+ function lE(i) {
14481
+ let t = { ...gx, ...i };
14482
+ const n = i.stacked, [s, o] = vu(!0), l = Fs(null), { getToastToRender: g, isToastActive: E, count: C } = sx(t), { className: A, style: U, rtl: L, containerId: q } = t;
14473
14483
  function Q(ne) {
14474
14484
  const J = fu("Toastify__toast-container", `Toastify__toast-container--${ne}`, { "Toastify__toast-container--rtl": L });
14475
14485
  return Ro(A) ? A({ position: ne, rtl: L, defaultClassName: J }) : fu(J, Ac(A));
@@ -14477,7 +14487,7 @@ function uE(i) {
14477
14487
  function re() {
14478
14488
  n && (o(!0), yn.play());
14479
14489
  }
14480
- return fx(() => {
14490
+ return dx(() => {
14481
14491
  if (n) {
14482
14492
  var ne;
14483
14493
  const J = l.current.querySelectorAll('[data-in="true"]'), F = 12, he = (ne = t.position) == null ? void 0 : ne.includes("top");
@@ -14495,11 +14505,11 @@ function uE(i) {
14495
14505
  const F = J.length ? { ...U } : { ...U, pointerEvents: "none" };
14496
14506
  return Kt.createElement("div", { className: Q(ne), style: F, key: `container-${ne}` }, J.map((he) => {
14497
14507
  let { content: ye, props: Ie } = he;
14498
- return Kt.createElement(dx, { ...Ie, stacked: n, collapseAll: re, isIn: E(Ie.toastId, Ie.containerId), style: Ie.style, key: `toast-${Ie.key}` }, ye);
14508
+ return Kt.createElement(hx, { ...Ie, stacked: n, collapseAll: re, isIn: E(Ie.toastId, Ie.containerId), style: Ie.style, key: `toast-${Ie.key}` }, ye);
14499
14509
  }));
14500
14510
  }));
14501
14511
  }
14502
- function gx() {
14512
+ function vx() {
14503
14513
  return /* @__PURE__ */ hd(
14504
14514
  "svg",
14505
14515
  {
@@ -14545,7 +14555,7 @@ function gx() {
14545
14555
  }
14546
14556
  );
14547
14557
  }
14548
- function vx() {
14558
+ function mx() {
14549
14559
  return /* @__PURE__ */ hd(
14550
14560
  "svg",
14551
14561
  {
@@ -14570,7 +14580,7 @@ function vx() {
14570
14580
  }
14571
14581
  );
14572
14582
  }
14573
- function mx() {
14583
+ function yx() {
14574
14584
  return /* @__PURE__ */ hd(
14575
14585
  "svg",
14576
14586
  {
@@ -14621,7 +14631,7 @@ const yd = {
14621
14631
  borderLeft: "2px solid",
14622
14632
  boxShadow: "none",
14623
14633
  fontFamily: "inherit"
14624
- }, yx = ({ closeToast: i }) => /* @__PURE__ */ sr(
14634
+ }, bx = ({ closeToast: i }) => /* @__PURE__ */ sr(
14625
14635
  "i",
14626
14636
  {
14627
14637
  className: "material-icons",
@@ -14645,9 +14655,9 @@ const yd = {
14645
14655
  }
14646
14656
  )
14647
14657
  }
14648
- ), lE = (i) => {
14658
+ ), cE = (i) => {
14649
14659
  yn.success(i, {
14650
- icon: /* @__PURE__ */ sr(vx, {}),
14660
+ icon: /* @__PURE__ */ sr(mx, {}),
14651
14661
  bodyStyle: {},
14652
14662
  position: "bottom-right",
14653
14663
  style: {
@@ -14657,9 +14667,9 @@ const yd = {
14657
14667
  color: du.success
14658
14668
  }
14659
14669
  });
14660
- }, bx = (i) => {
14670
+ }, wx = (i) => {
14661
14671
  yn.error(i, {
14662
- icon: /* @__PURE__ */ sr(gx, {}),
14672
+ icon: /* @__PURE__ */ sr(vx, {}),
14663
14673
  position: "bottom-right",
14664
14674
  style: {
14665
14675
  ...yd,
@@ -14668,9 +14678,9 @@ const yd = {
14668
14678
  color: du.danger
14669
14679
  }
14670
14680
  });
14671
- }, cE = (i) => {
14681
+ }, fE = (i) => {
14672
14682
  yn.error(i, {
14673
- icon: /* @__PURE__ */ sr(mx, {}),
14683
+ icon: /* @__PURE__ */ sr(yx, {}),
14674
14684
  position: "bottom-right",
14675
14685
  style: {
14676
14686
  ...yd,
@@ -14679,9 +14689,9 @@ const yd = {
14679
14689
  color: du.textPrimary
14680
14690
  }
14681
14691
  });
14682
- }, fE = (i) => {
14692
+ }, dE = (i) => {
14683
14693
  yn(i, {
14684
- closeButton: yx,
14694
+ closeButton: bx,
14685
14695
  toastId: "notify",
14686
14696
  position: "top-right",
14687
14697
  closeOnClick: !1,
@@ -14705,11 +14715,11 @@ function sc() {
14705
14715
  return i;
14706
14716
  }, sc.apply(this, arguments);
14707
14717
  }
14708
- const dE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14718
+ const hE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14709
14719
  __proto__: null,
14710
14720
  default: sc
14711
14721
  }, Symbol.toStringTag, { value: "Module" }));
14712
- function wx(i, t) {
14722
+ function Sx(i, t) {
14713
14723
  i.prototype = Object.create(t.prototype), i.prototype.constructor = i, Pc(i, t);
14714
14724
  }
14715
14725
  function Mf(i, t, n) {
@@ -14723,36 +14733,36 @@ function Mf(i, t, n) {
14723
14733
  * Copyright(c) 2015 Douglas Christopher Wilson
14724
14734
  * MIT Licensed
14725
14735
  */
14726
- var Ep = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, Sx = /\\([\u000b\u0020-\u00ff])/g, xx = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, Cx = kx;
14727
- function kx(i) {
14736
+ var Ep = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, xx = /\\([\u000b\u0020-\u00ff])/g, Cx = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, kx = Ex;
14737
+ function Ex(i) {
14728
14738
  if (!i)
14729
14739
  throw new TypeError("argument string is required");
14730
- var t = typeof i == "object" ? Ex(i) : i;
14740
+ var t = typeof i == "object" ? Tx(i) : i;
14731
14741
  if (typeof t != "string")
14732
14742
  throw new TypeError("argument string is required to be a string");
14733
14743
  var n = t.indexOf(";"), s = n !== -1 ? t.slice(0, n).trim() : t.trim();
14734
- if (!xx.test(s))
14744
+ if (!Cx.test(s))
14735
14745
  throw new TypeError("invalid media type");
14736
- var o = new Tx(s.toLowerCase());
14746
+ var o = new _x(s.toLowerCase());
14737
14747
  if (n !== -1) {
14738
14748
  var l, g, E;
14739
14749
  for (Ep.lastIndex = n; g = Ep.exec(t); ) {
14740
14750
  if (g.index !== n)
14741
14751
  throw new TypeError("invalid parameter format");
14742
- n += g[0].length, l = g[1].toLowerCase(), E = g[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(Sx, "$1"))), o.parameters[l] = E;
14752
+ n += g[0].length, l = g[1].toLowerCase(), E = g[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(xx, "$1"))), o.parameters[l] = E;
14743
14753
  }
14744
14754
  if (n !== t.length)
14745
14755
  throw new TypeError("invalid parameter format");
14746
14756
  }
14747
14757
  return o;
14748
14758
  }
14749
- function Ex(i) {
14759
+ function Tx(i) {
14750
14760
  var t;
14751
14761
  if (typeof i.getHeader == "function" ? t = i.getHeader("content-type") : typeof i.headers == "object" && (t = i.headers && i.headers["content-type"]), typeof t != "string")
14752
14762
  throw new TypeError("content-type header is missing from object");
14753
14763
  return t;
14754
14764
  }
14755
- function Tx(i) {
14765
+ function _x(i) {
14756
14766
  this.parameters = /* @__PURE__ */ Object.create(null), this.type = i;
14757
14767
  }
14758
14768
  var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
@@ -14767,7 +14777,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14767
14777
  var l = o.getResponseHeader("Content-Type");
14768
14778
  if (!l)
14769
14779
  throw new Error("Content type not found");
14770
- var g = Cx(l).type;
14780
+ var g = kx(l).type;
14771
14781
  if (!(g === "image/svg+xml" || g === "text/plain"))
14772
14782
  throw new Error("Invalid content type: ".concat(g));
14773
14783
  }
@@ -14788,7 +14798,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14788
14798
  }, o.open("GET", t), o.withCredentials = n, o.overrideMimeType && o.overrideMimeType("text/xml"), o.send();
14789
14799
  }, cu = {}, _p = function(t, n) {
14790
14800
  cu[t] = cu[t] || [], cu[t].push(n);
14791
- }, _x = function(t) {
14801
+ }, Rx = function(t) {
14792
14802
  for (var n = function(g, E) {
14793
14803
  setTimeout(function() {
14794
14804
  if (Array.isArray(cu[t])) {
@@ -14798,7 +14808,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14798
14808
  }, 0);
14799
14809
  }, s = 0, o = cu[t].length; s < o; s++)
14800
14810
  n(s);
14801
- }, Rx = function(t, n, s) {
14811
+ }, Ix = function(t, n, s) {
14802
14812
  if (Bl.has(t)) {
14803
14813
  var o = Bl.get(t);
14804
14814
  if (o === void 0) {
@@ -14812,16 +14822,16 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14812
14822
  }
14813
14823
  Bl.set(t, void 0), _p(t, s), Ig(t, n, function(l, g) {
14814
14824
  var E;
14815
- l ? Bl.set(t, l) : ((E = g.responseXML) === null || E === void 0 ? void 0 : E.documentElement) instanceof SVGSVGElement && Bl.set(t, g.responseXML.documentElement), _x(t);
14825
+ l ? Bl.set(t, l) : ((E = g.responseXML) === null || E === void 0 ? void 0 : E.documentElement) instanceof SVGSVGElement && Bl.set(t, g.responseXML.documentElement), Rx(t);
14816
14826
  });
14817
- }, Ix = function(t, n, s) {
14827
+ }, Ox = function(t, n, s) {
14818
14828
  Ig(t, n, function(o, l) {
14819
14829
  var g;
14820
14830
  o ? s(o) : ((g = l.responseXML) === null || g === void 0 ? void 0 : g.documentElement) instanceof SVGSVGElement && s(null, l.responseXML.documentElement);
14821
14831
  });
14822
- }, Ox = 0, Dx = function() {
14823
- return ++Ox;
14824
- }, Ga = [], Rp = {}, Ax = "http://www.w3.org/2000/svg", Ff = "http://www.w3.org/1999/xlink", Ip = function(t, n, s, o, l, g, E) {
14832
+ }, Dx = 0, Ax = function() {
14833
+ return ++Dx;
14834
+ }, Ga = [], Rp = {}, Px = "http://www.w3.org/2000/svg", Ff = "http://www.w3.org/1999/xlink", Ip = function(t, n, s, o, l, g, E) {
14825
14835
  var C = t.getAttribute("data-src") || t.getAttribute("src");
14826
14836
  if (!C) {
14827
14837
  E(new Error("Invalid data-src or src attribute"));
@@ -14832,7 +14842,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14832
14842
  return;
14833
14843
  }
14834
14844
  Ga.push(t), t.setAttribute("src", "");
14835
- var A = o ? Rx : Ix;
14845
+ var A = o ? Ix : Ox;
14836
14846
  A(C, l, function(U, L) {
14837
14847
  if (!L) {
14838
14848
  Ga.splice(Ga.indexOf(t), 1), t = null, E(U);
@@ -14871,7 +14881,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14871
14881
  Object.keys(ye).forEach(function(qe) {
14872
14882
  Ie = qe, je = ye[qe], de = L.querySelectorAll(Ie + "[id]");
14873
14883
  for (var ut = function(Xe, Ze) {
14874
- m = de[Xe].id, Ue = m + "-" + Dx();
14884
+ m = de[Xe].id, Ue = m + "-" + Ax();
14875
14885
  var Je;
14876
14886
  Array.prototype.forEach.call(je, function(Mt) {
14877
14887
  Je = L.querySelectorAll("[" + Mt + '*="' + m + '"]');
@@ -14902,13 +14912,13 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14902
14912
  var Ve = L.querySelectorAll("style");
14903
14913
  if (Array.prototype.forEach.call(Ve, function(qe) {
14904
14914
  qe.textContent += "";
14905
- }), L.setAttribute("xmlns", Ax), L.setAttribute("xmlns:xlink", Ff), g(L), !t.parentNode) {
14915
+ }), L.setAttribute("xmlns", Px), L.setAttribute("xmlns:xlink", Ff), g(L), !t.parentNode) {
14906
14916
  Ga.splice(Ga.indexOf(t), 1), t = null, E(new Error("Parent node is null"));
14907
14917
  return;
14908
14918
  }
14909
14919
  t.parentNode.replaceChild(L, t), Ga.splice(Ga.indexOf(t), 1), t = null, E(null, L);
14910
14920
  });
14911
- }, Px = function(t, n) {
14921
+ }, Lx = function(t, n) {
14912
14922
  var s = n === void 0 ? {} : n, o = s.afterAll, l = o === void 0 ? function() {
14913
14923
  } : o, g = s.afterEach, E = g === void 0 ? function() {
14914
14924
  } : g, C = s.beforeEach, A = C === void 0 ? function() {
@@ -14922,10 +14932,10 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14922
14932
  t ? Ip(t, Q, F, L, ne, A, function(de, je) {
14923
14933
  E(de, je), l(1), t = null;
14924
14934
  }) : l(0);
14925
- }, Lx = function(t) {
14935
+ }, Mx = function(t) {
14926
14936
  var n = (t == null ? void 0 : t.ownerDocument) || document;
14927
14937
  return n.defaultView || window;
14928
- }, Mx = function(t, n) {
14938
+ }, Fx = function(t, n) {
14929
14939
  for (var s in t)
14930
14940
  if (!(s in n))
14931
14941
  return !0;
@@ -14933,8 +14943,8 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14933
14943
  if (t[o] !== n[o])
14934
14944
  return !0;
14935
14945
  return !1;
14936
- }, Fx = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Dc = "http://www.w3.org/2000/svg", Op = "http://www.w3.org/1999/xlink", Og = /* @__PURE__ */ function(i) {
14937
- wx(t, i);
14946
+ }, Nx = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Dc = "http://www.w3.org/2000/svg", Op = "http://www.w3.org/1999/xlink", Og = /* @__PURE__ */ function(i) {
14947
+ Sx(t, i);
14938
14948
  function t() {
14939
14949
  for (var s, o = arguments.length, l = new Array(o), g = 0; g < o; g++)
14940
14950
  l[g] = arguments[g];
@@ -14948,7 +14958,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14948
14958
  var n = t.prototype;
14949
14959
  return n.renderSVG = function() {
14950
14960
  var o = this;
14951
- if (this.reactWrapper instanceof Lx(this.reactWrapper).Node) {
14961
+ if (this.reactWrapper instanceof Mx(this.reactWrapper).Node) {
14952
14962
  var l = this.props, g = l.desc, E = l.evalScripts, C = l.httpRequestWithCredentials, A = l.renumerateIRIElements, U = l.src, L = l.title, q = l.useRequestCache, Q = this.props.onError, re = this.props.beforeInjection, ne = this.props.afterInjection, J = this.props.wrapper, F, he;
14953
14963
  J === "svg" ? (F = document.createElementNS(Dc, J), F.setAttribute("xmlns", Dc), F.setAttribute("xmlns:xlink", Op), he = document.createElementNS(Dc, J)) : (F = document.createElement(J), he = document.createElement(J)), F.appendChild(he), he.dataset.src = U, this.nonReactWrapper = this.reactWrapper.appendChild(F);
14954
14964
  var ye = function(m) {
@@ -14999,7 +15009,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
14999
15009
  ye(gt);
15000
15010
  }
15001
15011
  };
15002
- Px(he, {
15012
+ Lx(he, {
15003
15013
  afterEach: Ie,
15004
15014
  beforeEach: de,
15005
15015
  cacheRequests: q,
@@ -15015,7 +15025,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
15015
15025
  this._isMounted = !0, this.renderSVG();
15016
15026
  }, n.componentDidUpdate = function(o) {
15017
15027
  var l = this;
15018
- Mx(sc({}, o), this.props) && this.setState(function() {
15028
+ Fx(sc({}, o), this.props) && this.setState(function() {
15019
15029
  return l.initialState;
15020
15030
  }, function() {
15021
15031
  l.removeSVG(), l.renderSVG();
@@ -15029,7 +15039,7 @@ var Bl = /* @__PURE__ */ new Map(), Rg = function(t) {
15029
15039
  o.httpRequestWithCredentials;
15030
15040
  var g = o.loading;
15031
15041
  o.renumerateIRIElements, o.src, o.title, o.useRequestCache;
15032
- var E = o.wrapper, C = lg(o, Fx), A = E;
15042
+ var E = o.wrapper, C = lg(o, Nx), A = E;
15033
15043
  return /* @__PURE__ */ il.createElement(A, sc({}, C, {
15034
15044
  ref: this.refCallback
15035
15045
  }, E === "svg" ? {
@@ -15070,7 +15080,7 @@ Og.propTypes = {
15070
15080
  useRequestCache: vr.bool,
15071
15081
  wrapper: vr.oneOf(["div", "span", "svg"])
15072
15082
  };
15073
- const hE = {
15083
+ const pE = {
15074
15084
  "page-container": "_page-container_6iqty_1",
15075
15085
  "page-main-content": "_page-main-content_6iqty_8",
15076
15086
  "page-title": "_page-title_6iqty_19",
@@ -18752,16 +18762,16 @@ function print() { __p += __j.call(arguments, '') }
18752
18762
  si ? ((si.exports = we)._ = we, po._ = we) : dn._ = we;
18753
18763
  }).call(Ko);
18754
18764
  })(jc, jc.exports);
18755
- var Nx = jc.exports;
18756
- const pE = /* @__PURE__ */ Wc(Nx);
18765
+ var Bx = jc.exports;
18766
+ const gE = /* @__PURE__ */ Wc(Bx);
18757
18767
  function Dp(i) {
18758
18768
  return typeof i == "number" && isFinite(i) && Math.floor(i) === i;
18759
18769
  }
18760
- function Bx(i) {
18770
+ function jx(i) {
18761
18771
  var t = i.lastRenderedStartIndex, n = i.lastRenderedStopIndex, s = i.startIndex, o = i.stopIndex;
18762
18772
  return !(s > n || o < t);
18763
18773
  }
18764
- function jx(i) {
18774
+ function Hx(i) {
18765
18775
  for (var t = i.isItemLoaded, n = i.itemCount, s = i.minimumBatchSize, o = i.startIndex, l = i.stopIndex, g = [], E = null, C = null, A = o; A <= l; A++) {
18766
18776
  var U = t(A);
18767
18777
  U ? C !== null && (g.push(E, C), E = C = null) : (C = A, E === null && (E = A));
@@ -18781,10 +18791,10 @@ function jx(i) {
18781
18791
  }
18782
18792
  return g;
18783
18793
  }
18784
- var Hx = function(i, t) {
18794
+ var Ux = function(i, t) {
18785
18795
  if (!(i instanceof t))
18786
18796
  throw new TypeError("Cannot call a class as a function");
18787
- }, Ux = function() {
18797
+ }, Wx = function() {
18788
18798
  function i(t, n) {
18789
18799
  for (var s = 0; s < n.length; s++) {
18790
18800
  var o = n[s];
@@ -18794,7 +18804,7 @@ var Hx = function(i, t) {
18794
18804
  return function(t, n, s) {
18795
18805
  return n && i(t.prototype, n), s && i(t, s), t;
18796
18806
  };
18797
- }(), Wx = function(i, t) {
18807
+ }(), $x = function(i, t) {
18798
18808
  if (typeof t != "function" && t !== null)
18799
18809
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
18800
18810
  i.prototype = Object.create(t && t.prototype, {
@@ -18809,11 +18819,11 @@ var Hx = function(i, t) {
18809
18819
  if (!i)
18810
18820
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18811
18821
  return t && (typeof t == "object" || typeof t == "function") ? t : i;
18812
- }, gE = function(i) {
18813
- Wx(t, i);
18822
+ }, vE = function(i) {
18823
+ $x(t, i);
18814
18824
  function t() {
18815
18825
  var n, s, o, l;
18816
- Hx(this, t);
18826
+ Ux(this, t);
18817
18827
  for (var g = arguments.length, E = Array(g), C = 0; C < g; C++)
18818
18828
  E[C] = arguments[C];
18819
18829
  return l = (s = (o = Ap(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(E))), o), o._lastRenderedStartIndex = -1, o._lastRenderedStopIndex = -1, o._memoizedUnloadedRanges = [], o._onItemsRendered = function(A) {
@@ -18823,7 +18833,7 @@ var Hx = function(i, t) {
18823
18833
  o._listRef = A;
18824
18834
  }, s), Ap(o, l);
18825
18835
  }
18826
- return Ux(t, [{
18836
+ return Wx(t, [{
18827
18837
  key: "resetloadMoreItemsCache",
18828
18838
  value: function() {
18829
18839
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
@@ -18846,7 +18856,7 @@ var Hx = function(i, t) {
18846
18856
  }, {
18847
18857
  key: "_ensureRowsLoaded",
18848
18858
  value: function(s, o) {
18849
- var l = this.props, g = l.isItemLoaded, E = l.itemCount, C = l.minimumBatchSize, A = C === void 0 ? 10 : C, U = l.threshold, L = U === void 0 ? 15 : U, q = jx({
18859
+ var l = this.props, g = l.isItemLoaded, E = l.itemCount, C = l.minimumBatchSize, A = C === void 0 ? 10 : C, U = l.threshold, L = U === void 0 ? 15 : U, q = Hx({
18850
18860
  isItemLoaded: g,
18851
18861
  itemCount: E,
18852
18862
  minimumBatchSize: A,
@@ -18863,7 +18873,7 @@ var Hx = function(i, t) {
18863
18873
  for (var o = this, l = this.props.loadMoreItems || this.props.loadMoreRows, g = function(A) {
18864
18874
  var U = s[A], L = s[A + 1], q = l(U, L);
18865
18875
  q != null && q.then(function() {
18866
- if (Bx({
18876
+ if (jx({
18867
18877
  lastRenderedStartIndex: o._lastRenderedStartIndex,
18868
18878
  lastRenderedStopIndex: o._lastRenderedStopIndex,
18869
18879
  startIndex: U,
@@ -18879,7 +18889,7 @@ var Hx = function(i, t) {
18879
18889
  }
18880
18890
  }]), t;
18881
18891
  }(q0);
18882
- const Pp = window.location.href, Dg = cc({}), vE = ({ children: i, baseUrl: t, userData: n }) => {
18892
+ const Pp = window.location.href, Dg = cc({}), mE = ({ children: i, baseUrl: t, userData: n }) => {
18883
18893
  const s = () => {
18884
18894
  window.location.href = `${t}/authentication/login?callbackUrl=${Pp}`;
18885
18895
  }, o = () => {
@@ -18901,11 +18911,11 @@ const Pp = window.location.href, Dg = cc({}), vE = ({ children: i, baseUrl: t, u
18901
18911
  children: i
18902
18912
  }
18903
18913
  );
18904
- }, mE = () => {
18914
+ }, yE = () => {
18905
18915
  const { login: i, logout: t, user: n } = gd(Dg);
18906
18916
  return { login: i, logout: t, user: n };
18907
18917
  };
18908
- function yE(i, t, n) {
18918
+ function bE(i, t, n) {
18909
18919
  return n.some((s) => {
18910
18920
  const o = i[s];
18911
18921
  return String(o).toLowerCase().includes(t.toLowerCase());
@@ -22531,8 +22541,8 @@ var Ag = { exports: {} };
22531
22541
  });
22532
22542
  })(Ag);
22533
22543
  var Pg = Ag.exports;
22534
- const $x = /* @__PURE__ */ Wc(Pg);
22535
- var zx = { exports: {} };
22544
+ const zx = /* @__PURE__ */ Wc(Pg);
22545
+ var Yx = { exports: {} };
22536
22546
  /**
22537
22547
  * @version: 3.1
22538
22548
  * @author: Dan Grossman http://www.dangrossman.info/
@@ -22950,7 +22960,7 @@ var zx = { exports: {} };
22950
22960
  }), this;
22951
22961
  }, s;
22952
22962
  });
22953
- })(zx);
22963
+ })(Yx);
22954
22964
  var od = function(i, t) {
22955
22965
  return od = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
22956
22966
  n.__proto__ = s;
@@ -22959,7 +22969,7 @@ var od = function(i, t) {
22959
22969
  Object.prototype.hasOwnProperty.call(s, o) && (n[o] = s[o]);
22960
22970
  }, od(i, t);
22961
22971
  };
22962
- function Yx(i, t) {
22972
+ function Vx(i, t) {
22963
22973
  if (typeof t != "function" && t !== null)
22964
22974
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
22965
22975
  od(i, t);
@@ -22968,17 +22978,17 @@ function Yx(i, t) {
22968
22978
  }
22969
22979
  i.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
22970
22980
  }
22971
- var bE = (
22981
+ var wE = (
22972
22982
  /** @class */
22973
22983
  function(i) {
22974
- Yx(t, i);
22984
+ Vx(t, i);
22975
22985
  function t(n) {
22976
22986
  var s = i.call(this, n) || this;
22977
22987
  return s.ref = null, s.$picker = null, s;
22978
22988
  }
22979
22989
  return t.prototype.componentDidMount = function() {
22980
22990
  var n = this;
22981
- this.$picker = $x(this.ref), this.$picker.daterangepicker(this.props.initialSettings, this.handleCallback.bind(this)), ["Show", "Hide", "ShowCalendar", "HideCalendar", "Apply", "Cancel"].forEach(function(s) {
22991
+ this.$picker = zx(this.ref), this.$picker.daterangepicker(this.props.initialSettings, this.handleCallback.bind(this)), ["Show", "Hide", "ShowCalendar", "HideCalendar", "Apply", "Cancel"].forEach(function(s) {
22982
22992
  var o, l = s.charAt(0).toLowerCase() + s.slice(1);
22983
22993
  (o = n.$picker) === null || o === void 0 || o.on(l + ".daterangepicker", n.makeEventHandler("on" + s));
22984
22994
  });
@@ -23096,7 +23106,7 @@ const Lg = function(i) {
23096
23106
  o < 128 ? t[n++] = o : o < 2048 ? (t[n++] = o >> 6 | 192, t[n++] = o & 63 | 128) : (o & 64512) === 55296 && s + 1 < i.length && (i.charCodeAt(s + 1) & 64512) === 56320 ? (o = 65536 + ((o & 1023) << 10) + (i.charCodeAt(++s) & 1023), t[n++] = o >> 18 | 240, t[n++] = o >> 12 & 63 | 128, t[n++] = o >> 6 & 63 | 128, t[n++] = o & 63 | 128) : (t[n++] = o >> 12 | 224, t[n++] = o >> 6 & 63 | 128, t[n++] = o & 63 | 128);
23097
23107
  }
23098
23108
  return t;
23099
- }, Vx = function(i) {
23109
+ }, Gx = function(i) {
23100
23110
  const t = [];
23101
23111
  let n = 0, s = 0;
23102
23112
  for (; n < i.length; ) {
@@ -23200,7 +23210,7 @@ const Lg = function(i) {
23200
23210
  * @return string representing the decoded value.
23201
23211
  */
23202
23212
  decodeString(i, t) {
23203
- return this.HAS_NATIVE_SUPPORT && !t ? atob(i) : Vx(this.decodeStringToByteArray(i, t));
23213
+ return this.HAS_NATIVE_SUPPORT && !t ? atob(i) : Gx(this.decodeStringToByteArray(i, t));
23204
23214
  },
23205
23215
  /**
23206
23216
  * Base64-decode a string.
@@ -23227,7 +23237,7 @@ const Lg = function(i) {
23227
23237
  ++o;
23228
23238
  const L = o < i.length ? n[i.charAt(o)] : 64;
23229
23239
  if (++o, l == null || E == null || A == null || L == null)
23230
- throw new Gx();
23240
+ throw new qx();
23231
23241
  const q = l << 2 | E >> 4;
23232
23242
  if (s.push(q), A !== 64) {
23233
23243
  const Q = E << 4 & 240 | A >> 2;
@@ -23252,17 +23262,17 @@ const Lg = function(i) {
23252
23262
  }
23253
23263
  }
23254
23264
  };
23255
- class Gx extends Error {
23265
+ class qx extends Error {
23256
23266
  constructor() {
23257
23267
  super(...arguments), this.name = "DecodeBase64StringError";
23258
23268
  }
23259
23269
  }
23260
- const qx = function(i) {
23270
+ const Xx = function(i) {
23261
23271
  const t = Lg(i);
23262
23272
  return Mg.encodeByteArray(t, !0);
23263
23273
  }, Fg = function(i) {
23264
- return qx(i).replace(/\./g, "");
23265
- }, Xx = function(i) {
23274
+ return Xx(i).replace(/\./g, "");
23275
+ }, Kx = function(i) {
23266
23276
  try {
23267
23277
  return Mg.decodeString(i, !0);
23268
23278
  } catch (t) {
@@ -23286,7 +23296,7 @@ const qx = function(i) {
23286
23296
  * See the License for the specific language governing permissions and
23287
23297
  * limitations under the License.
23288
23298
  */
23289
- function Kx() {
23299
+ function Jx() {
23290
23300
  if (typeof self < "u")
23291
23301
  return self;
23292
23302
  if (typeof window < "u")
@@ -23311,13 +23321,13 @@ function Kx() {
23311
23321
  * See the License for the specific language governing permissions and
23312
23322
  * limitations under the License.
23313
23323
  */
23314
- const Jx = () => Kx().__FIREBASE_DEFAULTS__, Zx = () => {
23324
+ const Zx = () => Jx().__FIREBASE_DEFAULTS__, Qx = () => {
23315
23325
  if (typeof process > "u" || typeof process.env > "u")
23316
23326
  return;
23317
23327
  const i = process.env.__FIREBASE_DEFAULTS__;
23318
23328
  if (i)
23319
23329
  return JSON.parse(i);
23320
- }, Qx = () => {
23330
+ }, e1 = () => {
23321
23331
  if (typeof document > "u")
23322
23332
  return;
23323
23333
  let i;
@@ -23326,18 +23336,18 @@ const Jx = () => Kx().__FIREBASE_DEFAULTS__, Zx = () => {
23326
23336
  } catch {
23327
23337
  return;
23328
23338
  }
23329
- const t = i && Xx(i[1]);
23339
+ const t = i && Kx(i[1]);
23330
23340
  return t && JSON.parse(t);
23331
- }, e1 = () => {
23341
+ }, t1 = () => {
23332
23342
  try {
23333
- return Jx() || Zx() || Qx();
23343
+ return Zx() || Qx() || e1();
23334
23344
  } catch (i) {
23335
23345
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${i}`);
23336
23346
  return;
23337
23347
  }
23338
23348
  }, Ng = () => {
23339
23349
  var i;
23340
- return (i = e1()) === null || i === void 0 ? void 0 : i.config;
23350
+ return (i = t1()) === null || i === void 0 ? void 0 : i.config;
23341
23351
  };
23342
23352
  /**
23343
23353
  * @license
@@ -23355,7 +23365,7 @@ const Jx = () => Kx().__FIREBASE_DEFAULTS__, Zx = () => {
23355
23365
  * See the License for the specific language governing permissions and
23356
23366
  * limitations under the License.
23357
23367
  */
23358
- class t1 {
23368
+ class n1 {
23359
23369
  constructor() {
23360
23370
  this.reject = () => {
23361
23371
  }, this.resolve = () => {
@@ -23400,7 +23410,7 @@ function jg() {
23400
23410
  }
23401
23411
  });
23402
23412
  }
23403
- function n1() {
23413
+ function r1() {
23404
23414
  return !(typeof navigator > "u" || !navigator.cookieEnabled);
23405
23415
  }
23406
23416
  /**
@@ -23419,10 +23429,10 @@ function n1() {
23419
23429
  * See the License for the specific language governing permissions and
23420
23430
  * limitations under the License.
23421
23431
  */
23422
- const r1 = "FirebaseError";
23432
+ const i1 = "FirebaseError";
23423
23433
  class Hl extends Error {
23424
23434
  constructor(t, n, s) {
23425
- super(n), this.code = t, this.customData = s, this.name = r1, Object.setPrototypeOf(this, Hl.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Gc.prototype.create);
23435
+ super(n), this.code = t, this.customData = s, this.name = i1, Object.setPrototypeOf(this, Hl.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Gc.prototype.create);
23426
23436
  }
23427
23437
  }
23428
23438
  class Gc {
@@ -23430,17 +23440,17 @@ class Gc {
23430
23440
  this.service = t, this.serviceName = n, this.errors = s;
23431
23441
  }
23432
23442
  create(t, ...n) {
23433
- const s = n[0] || {}, o = `${this.service}/${t}`, l = this.errors[t], g = l ? i1(l, s) : "Error", E = `${this.serviceName}: ${g} (${o}).`;
23443
+ const s = n[0] || {}, o = `${this.service}/${t}`, l = this.errors[t], g = l ? o1(l, s) : "Error", E = `${this.serviceName}: ${g} (${o}).`;
23434
23444
  return new Hl(o, E, s);
23435
23445
  }
23436
23446
  }
23437
- function i1(i, t) {
23438
- return i.replace(o1, (n, s) => {
23447
+ function o1(i, t) {
23448
+ return i.replace(a1, (n, s) => {
23439
23449
  const o = t[s];
23440
23450
  return o != null ? String(o) : `<${s}?>`;
23441
23451
  });
23442
23452
  }
23443
- const o1 = /\{\$([^}]+)}/g;
23453
+ const a1 = /\{\$([^}]+)}/g;
23444
23454
  function ad(i, t) {
23445
23455
  if (i === t)
23446
23456
  return !0;
@@ -23538,7 +23548,7 @@ const rl = "[DEFAULT]";
23538
23548
  * See the License for the specific language governing permissions and
23539
23549
  * limitations under the License.
23540
23550
  */
23541
- class a1 {
23551
+ class s1 {
23542
23552
  constructor(t, n) {
23543
23553
  this.name = t, this.container = n, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
23544
23554
  }
@@ -23549,7 +23559,7 @@ class a1 {
23549
23559
  get(t) {
23550
23560
  const n = this.normalizeInstanceIdentifier(t);
23551
23561
  if (!this.instancesDeferred.has(n)) {
23552
- const s = new t1();
23562
+ const s = new n1();
23553
23563
  if (this.instancesDeferred.set(n, s), this.isInitialized(n) || this.shouldAutoInitialize())
23554
23564
  try {
23555
23565
  const o = this.getOrInitializeService({
@@ -23589,7 +23599,7 @@ class a1 {
23589
23599
  if (this.component)
23590
23600
  throw Error(`Component for ${this.name} has already been provided`);
23591
23601
  if (this.component = t, !!this.shouldAutoInitialize()) {
23592
- if (u1(t))
23602
+ if (l1(t))
23593
23603
  try {
23594
23604
  this.getOrInitializeService({ instanceIdentifier: rl });
23595
23605
  } catch {
@@ -23676,7 +23686,7 @@ class a1 {
23676
23686
  getOrInitializeService({ instanceIdentifier: t, options: n = {} }) {
23677
23687
  let s = this.instances.get(t);
23678
23688
  if (!s && this.component && (s = this.component.instanceFactory(this.container, {
23679
- instanceIdentifier: s1(t),
23689
+ instanceIdentifier: u1(t),
23680
23690
  options: n
23681
23691
  }), this.instances.set(t, s), this.instancesOptions.set(t, n), this.invokeOnInitCallbacks(s, t), this.component.onInstanceCreated))
23682
23692
  try {
@@ -23692,10 +23702,10 @@ class a1 {
23692
23702
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
23693
23703
  }
23694
23704
  }
23695
- function s1(i) {
23705
+ function u1(i) {
23696
23706
  return i === rl ? void 0 : i;
23697
23707
  }
23698
- function u1(i) {
23708
+ function l1(i) {
23699
23709
  return i.instantiationMode === "EAGER";
23700
23710
  }
23701
23711
  /**
@@ -23714,7 +23724,7 @@ function u1(i) {
23714
23724
  * See the License for the specific language governing permissions and
23715
23725
  * limitations under the License.
23716
23726
  */
23717
- class l1 {
23727
+ class c1 {
23718
23728
  constructor(t) {
23719
23729
  this.name = t, this.providers = /* @__PURE__ */ new Map();
23720
23730
  }
@@ -23746,7 +23756,7 @@ class l1 {
23746
23756
  getProvider(t) {
23747
23757
  if (this.providers.has(t))
23748
23758
  return this.providers.get(t);
23749
- const n = new a1(t, this);
23759
+ const n = new s1(t, this);
23750
23760
  return this.providers.set(t, n), n;
23751
23761
  }
23752
23762
  getProviders() {
@@ -23773,29 +23783,29 @@ var Pn;
23773
23783
  (function(i) {
23774
23784
  i[i.DEBUG = 0] = "DEBUG", i[i.VERBOSE = 1] = "VERBOSE", i[i.INFO = 2] = "INFO", i[i.WARN = 3] = "WARN", i[i.ERROR = 4] = "ERROR", i[i.SILENT = 5] = "SILENT";
23775
23785
  })(Pn || (Pn = {}));
23776
- const c1 = {
23786
+ const f1 = {
23777
23787
  debug: Pn.DEBUG,
23778
23788
  verbose: Pn.VERBOSE,
23779
23789
  info: Pn.INFO,
23780
23790
  warn: Pn.WARN,
23781
23791
  error: Pn.ERROR,
23782
23792
  silent: Pn.SILENT
23783
- }, f1 = Pn.INFO, d1 = {
23793
+ }, d1 = Pn.INFO, h1 = {
23784
23794
  [Pn.DEBUG]: "log",
23785
23795
  [Pn.VERBOSE]: "log",
23786
23796
  [Pn.INFO]: "info",
23787
23797
  [Pn.WARN]: "warn",
23788
23798
  [Pn.ERROR]: "error"
23789
- }, h1 = (i, t, ...n) => {
23799
+ }, p1 = (i, t, ...n) => {
23790
23800
  if (t < i.logLevel)
23791
23801
  return;
23792
- const s = (/* @__PURE__ */ new Date()).toISOString(), o = d1[t];
23802
+ const s = (/* @__PURE__ */ new Date()).toISOString(), o = h1[t];
23793
23803
  if (o)
23794
23804
  console[o](`[${s}] ${i.name}:`, ...n);
23795
23805
  else
23796
23806
  throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);
23797
23807
  };
23798
- class p1 {
23808
+ class g1 {
23799
23809
  /**
23800
23810
  * Gives you an instance of a Logger to capture messages according to
23801
23811
  * Firebase's logging scheme.
@@ -23803,7 +23813,7 @@ class p1 {
23803
23813
  * @param name The name that the logs will be associated with
23804
23814
  */
23805
23815
  constructor(t) {
23806
- this.name = t, this._logLevel = f1, this._logHandler = h1, this._userLogHandler = null;
23816
+ this.name = t, this._logLevel = d1, this._logHandler = p1, this._userLogHandler = null;
23807
23817
  }
23808
23818
  get logLevel() {
23809
23819
  return this._logLevel;
@@ -23815,7 +23825,7 @@ class p1 {
23815
23825
  }
23816
23826
  // Workaround for setter/getter having to be the same type.
23817
23827
  setLogLevel(t) {
23818
- this._logLevel = typeof t == "string" ? c1[t] : t;
23828
+ this._logLevel = typeof t == "string" ? f1[t] : t;
23819
23829
  }
23820
23830
  get logHandler() {
23821
23831
  return this._logHandler;
@@ -23850,9 +23860,9 @@ class p1 {
23850
23860
  this._userLogHandler && this._userLogHandler(this, Pn.ERROR, ...t), this._logHandler(this, Pn.ERROR, ...t);
23851
23861
  }
23852
23862
  }
23853
- const g1 = (i, t) => t.some((n) => i instanceof n);
23863
+ const v1 = (i, t) => t.some((n) => i instanceof n);
23854
23864
  let Mp, Fp;
23855
- function v1() {
23865
+ function m1() {
23856
23866
  return Mp || (Mp = [
23857
23867
  IDBDatabase,
23858
23868
  IDBObjectStore,
@@ -23861,7 +23871,7 @@ function v1() {
23861
23871
  IDBTransaction
23862
23872
  ]);
23863
23873
  }
23864
- function m1() {
23874
+ function y1() {
23865
23875
  return Fp || (Fp = [
23866
23876
  IDBCursor.prototype.advance,
23867
23877
  IDBCursor.prototype.continue,
@@ -23869,7 +23879,7 @@ function m1() {
23869
23879
  ]);
23870
23880
  }
23871
23881
  const Hg = /* @__PURE__ */ new WeakMap(), sd = /* @__PURE__ */ new WeakMap(), Ug = /* @__PURE__ */ new WeakMap(), Nf = /* @__PURE__ */ new WeakMap(), wd = /* @__PURE__ */ new WeakMap();
23872
- function y1(i) {
23882
+ function b1(i) {
23873
23883
  const t = new Promise((n, s) => {
23874
23884
  const o = () => {
23875
23885
  i.removeEventListener("success", l), i.removeEventListener("error", g);
@@ -23885,7 +23895,7 @@ function y1(i) {
23885
23895
  }).catch(() => {
23886
23896
  }), wd.set(t, i), t;
23887
23897
  }
23888
- function b1(i) {
23898
+ function w1(i) {
23889
23899
  if (sd.has(i))
23890
23900
  return;
23891
23901
  const t = new Promise((n, s) => {
@@ -23919,28 +23929,28 @@ let ud = {
23919
23929
  return i instanceof IDBTransaction && (t === "done" || t === "store") ? !0 : t in i;
23920
23930
  }
23921
23931
  };
23922
- function w1(i) {
23932
+ function S1(i) {
23923
23933
  ud = i(ud);
23924
23934
  }
23925
- function S1(i) {
23935
+ function x1(i) {
23926
23936
  return i === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(t, ...n) {
23927
23937
  const s = i.call(Bf(this), t, ...n);
23928
23938
  return Ug.set(s, t.sort ? t.sort() : [t]), Ms(s);
23929
- } : m1().includes(i) ? function(...t) {
23939
+ } : y1().includes(i) ? function(...t) {
23930
23940
  return i.apply(Bf(this), t), Ms(Hg.get(this));
23931
23941
  } : function(...t) {
23932
23942
  return Ms(i.apply(Bf(this), t));
23933
23943
  };
23934
23944
  }
23935
- function x1(i) {
23936
- return typeof i == "function" ? S1(i) : (i instanceof IDBTransaction && b1(i), g1(i, v1()) ? new Proxy(i, ud) : i);
23945
+ function C1(i) {
23946
+ return typeof i == "function" ? x1(i) : (i instanceof IDBTransaction && w1(i), v1(i, m1()) ? new Proxy(i, ud) : i);
23937
23947
  }
23938
23948
  function Ms(i) {
23939
23949
  if (i instanceof IDBRequest)
23940
- return y1(i);
23950
+ return b1(i);
23941
23951
  if (Nf.has(i))
23942
23952
  return Nf.get(i);
23943
- const t = x1(i);
23953
+ const t = C1(i);
23944
23954
  return t !== i && (Nf.set(i, t), wd.set(t, i)), t;
23945
23955
  }
23946
23956
  const Bf = (i) => wd.get(i);
@@ -23967,16 +23977,16 @@ function jf(i, { blocked: t } = {}) {
23967
23977
  )), Ms(n).then(() => {
23968
23978
  });
23969
23979
  }
23970
- const C1 = ["get", "getKey", "getAll", "getAllKeys", "count"], k1 = ["put", "add", "delete", "clear"], Hf = /* @__PURE__ */ new Map();
23980
+ const k1 = ["get", "getKey", "getAll", "getAllKeys", "count"], E1 = ["put", "add", "delete", "clear"], Hf = /* @__PURE__ */ new Map();
23971
23981
  function Np(i, t) {
23972
23982
  if (!(i instanceof IDBDatabase && !(t in i) && typeof t == "string"))
23973
23983
  return;
23974
23984
  if (Hf.get(t))
23975
23985
  return Hf.get(t);
23976
- const n = t.replace(/FromIndex$/, ""), s = t !== n, o = k1.includes(n);
23986
+ const n = t.replace(/FromIndex$/, ""), s = t !== n, o = E1.includes(n);
23977
23987
  if (
23978
23988
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
23979
- !(n in (s ? IDBIndex : IDBObjectStore).prototype) || !(o || C1.includes(n))
23989
+ !(n in (s ? IDBIndex : IDBObjectStore).prototype) || !(o || k1.includes(n))
23980
23990
  )
23981
23991
  return;
23982
23992
  const l = async function(g, ...E) {
@@ -23989,7 +23999,7 @@ function Np(i, t) {
23989
23999
  };
23990
24000
  return Hf.set(t, l), l;
23991
24001
  }
23992
- w1((i) => ({
24002
+ S1((i) => ({
23993
24003
  ...i,
23994
24004
  get: (t, n, s) => Np(t, n) || i.get(t, n, s),
23995
24005
  has: (t, n) => !!Np(t, n) || i.has(t, n)
@@ -24010,7 +24020,7 @@ w1((i) => ({
24010
24020
  * See the License for the specific language governing permissions and
24011
24021
  * limitations under the License.
24012
24022
  */
24013
- class E1 {
24023
+ class T1 {
24014
24024
  constructor(t) {
24015
24025
  this.container = t;
24016
24026
  }
@@ -24018,7 +24028,7 @@ class E1 {
24018
24028
  // auth token refresh, and installations will send this string.
24019
24029
  getPlatformInfoString() {
24020
24030
  return this.container.getProviders().map((n) => {
24021
- if (T1(n)) {
24031
+ if (_1(n)) {
24022
24032
  const s = n.getImmediate();
24023
24033
  return `${s.library}/${s.version}`;
24024
24034
  } else
@@ -24026,7 +24036,7 @@ class E1 {
24026
24036
  }).filter((n) => n).join(" ");
24027
24037
  }
24028
24038
  }
24029
- function T1(i) {
24039
+ function _1(i) {
24030
24040
  const t = i.getComponent();
24031
24041
  return (t == null ? void 0 : t.type) === "VERSION";
24032
24042
  }
@@ -24047,7 +24057,7 @@ const ld = "@firebase/app", Bp = "0.9.28";
24047
24057
  * See the License for the specific language governing permissions and
24048
24058
  * limitations under the License.
24049
24059
  */
24050
- const ll = new p1("@firebase/app"), _1 = "@firebase/app-compat", R1 = "@firebase/analytics-compat", I1 = "@firebase/analytics", O1 = "@firebase/app-check-compat", D1 = "@firebase/app-check", A1 = "@firebase/auth", P1 = "@firebase/auth-compat", L1 = "@firebase/database", M1 = "@firebase/database-compat", F1 = "@firebase/functions", N1 = "@firebase/functions-compat", B1 = "@firebase/installations", j1 = "@firebase/installations-compat", H1 = "@firebase/messaging", U1 = "@firebase/messaging-compat", W1 = "@firebase/performance", $1 = "@firebase/performance-compat", z1 = "@firebase/remote-config", Y1 = "@firebase/remote-config-compat", V1 = "@firebase/storage", G1 = "@firebase/storage-compat", q1 = "@firebase/firestore", X1 = "@firebase/firestore-compat", K1 = "firebase";
24060
+ const ll = new g1("@firebase/app"), R1 = "@firebase/app-compat", I1 = "@firebase/analytics-compat", O1 = "@firebase/analytics", D1 = "@firebase/app-check-compat", A1 = "@firebase/app-check", P1 = "@firebase/auth", L1 = "@firebase/auth-compat", M1 = "@firebase/database", F1 = "@firebase/database-compat", N1 = "@firebase/functions", B1 = "@firebase/functions-compat", j1 = "@firebase/installations", H1 = "@firebase/installations-compat", U1 = "@firebase/messaging", W1 = "@firebase/messaging-compat", $1 = "@firebase/performance", z1 = "@firebase/performance-compat", Y1 = "@firebase/remote-config", V1 = "@firebase/remote-config-compat", G1 = "@firebase/storage", q1 = "@firebase/storage-compat", X1 = "@firebase/firestore", K1 = "@firebase/firestore-compat", J1 = "firebase";
24051
24061
  /**
24052
24062
  * @license
24053
24063
  * Copyright 2019 Google LLC
@@ -24064,33 +24074,33 @@ const ll = new p1("@firebase/app"), _1 = "@firebase/app-compat", R1 = "@firebase
24064
24074
  * See the License for the specific language governing permissions and
24065
24075
  * limitations under the License.
24066
24076
  */
24067
- const cd = "[DEFAULT]", J1 = {
24077
+ const cd = "[DEFAULT]", Z1 = {
24068
24078
  [ld]: "fire-core",
24069
- [_1]: "fire-core-compat",
24070
- [I1]: "fire-analytics",
24071
- [R1]: "fire-analytics-compat",
24072
- [D1]: "fire-app-check",
24073
- [O1]: "fire-app-check-compat",
24074
- [A1]: "fire-auth",
24075
- [P1]: "fire-auth-compat",
24076
- [L1]: "fire-rtdb",
24077
- [M1]: "fire-rtdb-compat",
24078
- [F1]: "fire-fn",
24079
- [N1]: "fire-fn-compat",
24080
- [B1]: "fire-iid",
24081
- [j1]: "fire-iid-compat",
24082
- [H1]: "fire-fcm",
24083
- [U1]: "fire-fcm-compat",
24084
- [W1]: "fire-perf",
24085
- [$1]: "fire-perf-compat",
24086
- [z1]: "fire-rc",
24087
- [Y1]: "fire-rc-compat",
24088
- [V1]: "fire-gcs",
24089
- [G1]: "fire-gcs-compat",
24090
- [q1]: "fire-fst",
24091
- [X1]: "fire-fst-compat",
24079
+ [R1]: "fire-core-compat",
24080
+ [O1]: "fire-analytics",
24081
+ [I1]: "fire-analytics-compat",
24082
+ [A1]: "fire-app-check",
24083
+ [D1]: "fire-app-check-compat",
24084
+ [P1]: "fire-auth",
24085
+ [L1]: "fire-auth-compat",
24086
+ [M1]: "fire-rtdb",
24087
+ [F1]: "fire-rtdb-compat",
24088
+ [N1]: "fire-fn",
24089
+ [B1]: "fire-fn-compat",
24090
+ [j1]: "fire-iid",
24091
+ [H1]: "fire-iid-compat",
24092
+ [U1]: "fire-fcm",
24093
+ [W1]: "fire-fcm-compat",
24094
+ [$1]: "fire-perf",
24095
+ [z1]: "fire-perf-compat",
24096
+ [Y1]: "fire-rc",
24097
+ [V1]: "fire-rc-compat",
24098
+ [G1]: "fire-gcs",
24099
+ [q1]: "fire-gcs-compat",
24100
+ [X1]: "fire-fst",
24101
+ [K1]: "fire-fst-compat",
24092
24102
  "fire-js": "fire-js",
24093
- [K1]: "fire-js-all"
24103
+ [J1]: "fire-js-all"
24094
24104
  };
24095
24105
  /**
24096
24106
  * @license
@@ -24109,7 +24119,7 @@ const cd = "[DEFAULT]", J1 = {
24109
24119
  * limitations under the License.
24110
24120
  */
24111
24121
  const Hc = /* @__PURE__ */ new Map(), fd = /* @__PURE__ */ new Map();
24112
- function Z1(i, t) {
24122
+ function Q1(i, t) {
24113
24123
  try {
24114
24124
  i.container.addComponent(t);
24115
24125
  } catch (n) {
@@ -24122,7 +24132,7 @@ function cl(i) {
24122
24132
  return ll.debug(`There were multiple attempts to register component ${t}.`), !1;
24123
24133
  fd.set(t, i);
24124
24134
  for (const n of Hc.values())
24125
- Z1(n, i);
24135
+ Q1(n, i);
24126
24136
  return !0;
24127
24137
  }
24128
24138
  function Sd(i, t) {
@@ -24145,7 +24155,7 @@ function Sd(i, t) {
24145
24155
  * See the License for the specific language governing permissions and
24146
24156
  * limitations under the License.
24147
24157
  */
24148
- const Q1 = {
24158
+ const eC = {
24149
24159
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
24150
24160
  "bad-app-name": "Illegal App name: '{$appName}",
24151
24161
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -24157,7 +24167,7 @@ const Q1 = {
24157
24167
  "idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
24158
24168
  "idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
24159
24169
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."
24160
- }, pu = new Gc("app", "Firebase", Q1);
24170
+ }, pu = new Gc("app", "Firebase", eC);
24161
24171
  /**
24162
24172
  * @license
24163
24173
  * Copyright 2019 Google LLC
@@ -24174,7 +24184,7 @@ const Q1 = {
24174
24184
  * See the License for the specific language governing permissions and
24175
24185
  * limitations under the License.
24176
24186
  */
24177
- class eC {
24187
+ class tC {
24178
24188
  constructor(t, n, s) {
24179
24189
  this._isDeleted = !1, this._options = Object.assign({}, t), this._config = Object.assign({}, n), this._name = n.name, this._automaticDataCollectionEnabled = n.automaticDataCollectionEnabled, this._container = s, this.container.addComponent(new bu(
24180
24190
  "app",
@@ -24235,13 +24245,13 @@ function xd(i, t = {}) {
24235
24245
  return l;
24236
24246
  throw pu.create("duplicate-app", { appName: o });
24237
24247
  }
24238
- const g = new l1(o);
24248
+ const g = new c1(o);
24239
24249
  for (const C of fd.values())
24240
24250
  g.addComponent(C);
24241
- const E = new eC(n, s, g);
24251
+ const E = new tC(n, s, g);
24242
24252
  return Hc.set(o, E), E;
24243
24253
  }
24244
- function tC(i = cd) {
24254
+ function nC(i = cd) {
24245
24255
  const t = Hc.get(i);
24246
24256
  if (!t && i === cd && Ng())
24247
24257
  return xd();
@@ -24251,7 +24261,7 @@ function tC(i = cd) {
24251
24261
  }
24252
24262
  function gu(i, t, n) {
24253
24263
  var s;
24254
- let o = (s = J1[i]) !== null && s !== void 0 ? s : i;
24264
+ let o = (s = Z1[i]) !== null && s !== void 0 ? s : i;
24255
24265
  n && (o += `-${n}`);
24256
24266
  const l = o.match(/\s|\//), g = t.match(/\s|\//);
24257
24267
  if (l || g) {
@@ -24284,10 +24294,10 @@ function gu(i, t, n) {
24284
24294
  * See the License for the specific language governing permissions and
24285
24295
  * limitations under the License.
24286
24296
  */
24287
- const nC = "firebase-heartbeat-database", rC = 1, uc = "firebase-heartbeat-store";
24297
+ const rC = "firebase-heartbeat-database", iC = 1, uc = "firebase-heartbeat-store";
24288
24298
  let Uf = null;
24289
24299
  function Wg() {
24290
- return Uf || (Uf = qc(nC, rC, {
24300
+ return Uf || (Uf = qc(rC, iC, {
24291
24301
  upgrade: (i, t) => {
24292
24302
  switch (t) {
24293
24303
  case 0:
@@ -24304,7 +24314,7 @@ function Wg() {
24304
24314
  });
24305
24315
  })), Uf;
24306
24316
  }
24307
- async function iC(i) {
24317
+ async function oC(i) {
24308
24318
  try {
24309
24319
  const n = (await Wg()).transaction(uc), s = await n.objectStore(uc).get($g(i));
24310
24320
  return await n.done, s;
@@ -24353,12 +24363,12 @@ function $g(i) {
24353
24363
  * See the License for the specific language governing permissions and
24354
24364
  * limitations under the License.
24355
24365
  */
24356
- const oC = 1024, aC = 30 * 24 * 60 * 60 * 1e3;
24357
- class sC {
24366
+ const aC = 1024, sC = 30 * 24 * 60 * 60 * 1e3;
24367
+ class uC {
24358
24368
  constructor(t) {
24359
24369
  this.container = t, this._heartbeatsCache = null;
24360
24370
  const n = this.container.getProvider("app").getImmediate();
24361
- this._storage = new lC(n), this._heartbeatsCachePromise = this._storage.read().then((s) => (this._heartbeatsCache = s, s));
24371
+ this._storage = new cC(n), this._heartbeatsCachePromise = this._storage.read().then((s) => (this._heartbeatsCache = s, s));
24362
24372
  }
24363
24373
  /**
24364
24374
  * Called to report a heartbeat. The function will generate
@@ -24373,7 +24383,7 @@ class sC {
24373
24383
  if (!(((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null)) && !(this._heartbeatsCache.lastSentHeartbeatDate === l || this._heartbeatsCache.heartbeats.some((g) => g.date === l)))
24374
24384
  return this._heartbeatsCache.heartbeats.push({ date: l, agent: o }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((g) => {
24375
24385
  const E = new Date(g.date).valueOf();
24376
- return Date.now() - E <= aC;
24386
+ return Date.now() - E <= sC;
24377
24387
  }), this._storage.overwrite(this._heartbeatsCache);
24378
24388
  }
24379
24389
  /**
@@ -24387,14 +24397,14 @@ class sC {
24387
24397
  var t;
24388
24398
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
24389
24399
  return "";
24390
- const n = Hp(), { heartbeatsToSend: s, unsentEntries: o } = uC(this._heartbeatsCache.heartbeats), l = Fg(JSON.stringify({ version: 2, heartbeats: s }));
24400
+ const n = Hp(), { heartbeatsToSend: s, unsentEntries: o } = lC(this._heartbeatsCache.heartbeats), l = Fg(JSON.stringify({ version: 2, heartbeats: s }));
24391
24401
  return this._heartbeatsCache.lastSentHeartbeatDate = n, o.length > 0 ? (this._heartbeatsCache.heartbeats = o, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), l;
24392
24402
  }
24393
24403
  }
24394
24404
  function Hp() {
24395
24405
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
24396
24406
  }
24397
- function uC(i, t = oC) {
24407
+ function lC(i, t = aC) {
24398
24408
  const n = [];
24399
24409
  let s = i.slice();
24400
24410
  for (const o of i) {
@@ -24418,7 +24428,7 @@ function uC(i, t = oC) {
24418
24428
  unsentEntries: s
24419
24429
  };
24420
24430
  }
24421
- class lC {
24431
+ class cC {
24422
24432
  constructor(t) {
24423
24433
  this.app = t, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
24424
24434
  }
@@ -24430,7 +24440,7 @@ class lC {
24430
24440
  */
24431
24441
  async read() {
24432
24442
  if (await this._canUseIndexedDBPromise) {
24433
- const n = await iC(this.app);
24443
+ const n = await oC(this.app);
24434
24444
  return n != null && n.heartbeats ? n : { heartbeats: [] };
24435
24445
  } else
24436
24446
  return { heartbeats: [] };
@@ -24485,21 +24495,21 @@ function Up(i) {
24485
24495
  * See the License for the specific language governing permissions and
24486
24496
  * limitations under the License.
24487
24497
  */
24488
- function cC(i) {
24498
+ function fC(i) {
24489
24499
  cl(new bu(
24490
24500
  "platform-logger",
24491
- (t) => new E1(t),
24501
+ (t) => new T1(t),
24492
24502
  "PRIVATE"
24493
24503
  /* ComponentType.PRIVATE */
24494
24504
  )), cl(new bu(
24495
24505
  "heartbeat",
24496
- (t) => new sC(t),
24506
+ (t) => new uC(t),
24497
24507
  "PRIVATE"
24498
24508
  /* ComponentType.PRIVATE */
24499
24509
  )), gu(ld, Bp, i), gu(ld, Bp, "esm2017"), gu("fire-js", "");
24500
24510
  }
24501
- cC("");
24502
- var fC = "firebase", dC = "10.8.1";
24511
+ fC("");
24512
+ var dC = "firebase", hC = "10.8.1";
24503
24513
  /**
24504
24514
  * @license
24505
24515
  * Copyright 2020 Google LLC
@@ -24516,7 +24526,7 @@ var fC = "firebase", dC = "10.8.1";
24516
24526
  * See the License for the specific language governing permissions and
24517
24527
  * limitations under the License.
24518
24528
  */
24519
- gu(fC, dC, "app");
24529
+ gu(dC, hC, "app");
24520
24530
  const zg = "@firebase/installations", Cd = "0.6.5";
24521
24531
  /**
24522
24532
  * @license
@@ -24534,7 +24544,7 @@ const zg = "@firebase/installations", Cd = "0.6.5";
24534
24544
  * See the License for the specific language governing permissions and
24535
24545
  * limitations under the License.
24536
24546
  */
24537
- const Yg = 1e4, Vg = `w:${Cd}`, Gg = "FIS_v2", hC = "https://firebaseinstallations.googleapis.com/v1", pC = 60 * 60 * 1e3, gC = "installations", vC = "Installations";
24547
+ const Yg = 1e4, Vg = `w:${Cd}`, Gg = "FIS_v2", pC = "https://firebaseinstallations.googleapis.com/v1", gC = 60 * 60 * 1e3, vC = "installations", mC = "Installations";
24538
24548
  /**
24539
24549
  * @license
24540
24550
  * Copyright 2019 Google LLC
@@ -24551,14 +24561,14 @@ const Yg = 1e4, Vg = `w:${Cd}`, Gg = "FIS_v2", hC = "https://firebaseinstallatio
24551
24561
  * See the License for the specific language governing permissions and
24552
24562
  * limitations under the License.
24553
24563
  */
24554
- const mC = {
24564
+ const yC = {
24555
24565
  "missing-app-config-values": 'Missing App configuration value: "{$valueName}"',
24556
24566
  "not-registered": "Firebase Installation is not registered.",
24557
24567
  "installation-not-found": "Firebase Installation not found.",
24558
24568
  "request-failed": '{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',
24559
24569
  "app-offline": "Could not process request. Application offline.",
24560
24570
  "delete-pending-registration": "Can't delete installation while there is a pending registration request."
24561
- }, fl = new Gc(gC, vC, mC);
24571
+ }, fl = new Gc(vC, mC, yC);
24562
24572
  function qg(i) {
24563
24573
  return i instanceof Hl && i.code.includes(
24564
24574
  "request-failed"
@@ -24582,13 +24592,13 @@ function qg(i) {
24582
24592
  * limitations under the License.
24583
24593
  */
24584
24594
  function Xg({ projectId: i }) {
24585
- return `${hC}/projects/${i}/installations`;
24595
+ return `${pC}/projects/${i}/installations`;
24586
24596
  }
24587
24597
  function Kg(i) {
24588
24598
  return {
24589
24599
  token: i.token,
24590
24600
  requestStatus: 2,
24591
- expiresIn: bC(i.expiresIn),
24601
+ expiresIn: wC(i.expiresIn),
24592
24602
  creationTime: Date.now()
24593
24603
  };
24594
24604
  }
@@ -24608,18 +24618,18 @@ function Zg({ apiKey: i }) {
24608
24618
  "x-goog-api-key": i
24609
24619
  });
24610
24620
  }
24611
- function yC(i, { refreshToken: t }) {
24621
+ function bC(i, { refreshToken: t }) {
24612
24622
  const n = Zg(i);
24613
- return n.append("Authorization", wC(t)), n;
24623
+ return n.append("Authorization", SC(t)), n;
24614
24624
  }
24615
24625
  async function Qg(i) {
24616
24626
  const t = await i();
24617
24627
  return t.status >= 500 && t.status < 600 ? i() : t;
24618
24628
  }
24619
- function bC(i) {
24629
+ function wC(i) {
24620
24630
  return Number(i.replace("s", "000"));
24621
24631
  }
24622
- function wC(i) {
24632
+ function SC(i) {
24623
24633
  return `${Gg} ${i}`;
24624
24634
  }
24625
24635
  /**
@@ -24638,7 +24648,7 @@ function wC(i) {
24638
24648
  * See the License for the specific language governing permissions and
24639
24649
  * limitations under the License.
24640
24650
  */
24641
- async function SC({ appConfig: i, heartbeatServiceProvider: t }, { fid: n }) {
24651
+ async function xC({ appConfig: i, heartbeatServiceProvider: t }, { fid: n }) {
24642
24652
  const s = Xg(i), o = Zg(i), l = t.getImmediate({
24643
24653
  optional: !0
24644
24654
  });
@@ -24704,7 +24714,7 @@ function ev(i) {
24704
24714
  * See the License for the specific language governing permissions and
24705
24715
  * limitations under the License.
24706
24716
  */
24707
- function xC(i) {
24717
+ function CC(i) {
24708
24718
  return btoa(String.fromCharCode(...i)).replace(/\+/g, "-").replace(/\//g, "_");
24709
24719
  }
24710
24720
  /**
@@ -24723,19 +24733,19 @@ function xC(i) {
24723
24733
  * See the License for the specific language governing permissions and
24724
24734
  * limitations under the License.
24725
24735
  */
24726
- const CC = /^[cdef][\w-]{21}$/, dd = "";
24727
- function kC() {
24736
+ const kC = /^[cdef][\w-]{21}$/, dd = "";
24737
+ function EC() {
24728
24738
  try {
24729
24739
  const i = new Uint8Array(17);
24730
24740
  (self.crypto || self.msCrypto).getRandomValues(i), i[0] = 112 + i[0] % 16;
24731
- const n = EC(i);
24732
- return CC.test(n) ? n : dd;
24741
+ const n = TC(i);
24742
+ return kC.test(n) ? n : dd;
24733
24743
  } catch {
24734
24744
  return dd;
24735
24745
  }
24736
24746
  }
24737
- function EC(i) {
24738
- return xC(i).substr(0, 22);
24747
+ function TC(i) {
24748
+ return CC(i).substr(0, 22);
24739
24749
  }
24740
24750
  /**
24741
24751
  * @license
@@ -24775,7 +24785,7 @@ function Xc(i) {
24775
24785
  const tv = /* @__PURE__ */ new Map();
24776
24786
  function nv(i, t) {
24777
24787
  const n = Xc(i);
24778
- rv(n, t), TC(n, t);
24788
+ rv(n, t), _C(n, t);
24779
24789
  }
24780
24790
  function rv(i, t) {
24781
24791
  const n = tv.get(i);
@@ -24783,17 +24793,17 @@ function rv(i, t) {
24783
24793
  for (const s of n)
24784
24794
  s(t);
24785
24795
  }
24786
- function TC(i, t) {
24787
- const n = _C();
24788
- n && n.postMessage({ key: i, fid: t }), RC();
24796
+ function _C(i, t) {
24797
+ const n = RC();
24798
+ n && n.postMessage({ key: i, fid: t }), IC();
24789
24799
  }
24790
24800
  let ol = null;
24791
- function _C() {
24801
+ function RC() {
24792
24802
  return !ol && "BroadcastChannel" in self && (ol = new BroadcastChannel("[Firebase] FID Change"), ol.onmessage = (i) => {
24793
24803
  rv(i.data.key, i.data.fid);
24794
24804
  }), ol;
24795
24805
  }
24796
- function RC() {
24806
+ function IC() {
24797
24807
  tv.size === 0 && ol && (ol.close(), ol = null);
24798
24808
  }
24799
24809
  /**
@@ -24812,10 +24822,10 @@ function RC() {
24812
24822
  * See the License for the specific language governing permissions and
24813
24823
  * limitations under the License.
24814
24824
  */
24815
- const IC = "firebase-installations-database", OC = 1, dl = "firebase-installations-store";
24825
+ const OC = "firebase-installations-database", DC = 1, dl = "firebase-installations-store";
24816
24826
  let Wf = null;
24817
24827
  function kd() {
24818
- return Wf || (Wf = qc(IC, OC, {
24828
+ return Wf || (Wf = qc(OC, DC, {
24819
24829
  upgrade: (i, t) => {
24820
24830
  switch (t) {
24821
24831
  case 0:
@@ -24855,7 +24865,7 @@ async function Kc(i, t) {
24855
24865
  async function Ed(i) {
24856
24866
  let t;
24857
24867
  const n = await Kc(i.appConfig, (s) => {
24858
- const o = DC(s), l = AC(i, o);
24868
+ const o = AC(s), l = PC(i, o);
24859
24869
  return t = l.registrationPromise, l.installationEntry;
24860
24870
  });
24861
24871
  return n.fid === dd ? { installationEntry: await t } : {
@@ -24863,15 +24873,15 @@ async function Ed(i) {
24863
24873
  registrationPromise: t
24864
24874
  };
24865
24875
  }
24866
- function DC(i) {
24876
+ function AC(i) {
24867
24877
  const t = i || {
24868
- fid: kC(),
24878
+ fid: EC(),
24869
24879
  registrationStatus: 0
24870
24880
  /* RequestStatus.NOT_STARTED */
24871
24881
  };
24872
24882
  return ov(t);
24873
24883
  }
24874
- function AC(i, t) {
24884
+ function PC(i, t) {
24875
24885
  if (t.registrationStatus === 0) {
24876
24886
  if (!navigator.onLine) {
24877
24887
  const o = Promise.reject(fl.create(
@@ -24887,17 +24897,17 @@ function AC(i, t) {
24887
24897
  fid: t.fid,
24888
24898
  registrationStatus: 1,
24889
24899
  registrationTime: Date.now()
24890
- }, s = PC(i, n);
24900
+ }, s = LC(i, n);
24891
24901
  return { installationEntry: n, registrationPromise: s };
24892
24902
  } else
24893
24903
  return t.registrationStatus === 1 ? {
24894
24904
  installationEntry: t,
24895
- registrationPromise: LC(i)
24905
+ registrationPromise: MC(i)
24896
24906
  } : { installationEntry: t };
24897
24907
  }
24898
- async function PC(i, t) {
24908
+ async function LC(i, t) {
24899
24909
  try {
24900
- const n = await SC(i, t);
24910
+ const n = await xC(i, t);
24901
24911
  return Uc(i.appConfig, n);
24902
24912
  } catch (n) {
24903
24913
  throw qg(n) && n.customData.serverCode === 409 ? await iv(i.appConfig) : await Uc(i.appConfig, {
@@ -24907,7 +24917,7 @@ async function PC(i, t) {
24907
24917
  }), n;
24908
24918
  }
24909
24919
  }
24910
- async function LC(i) {
24920
+ async function MC(i) {
24911
24921
  let t = await Wp(i.appConfig);
24912
24922
  for (; t.registrationStatus === 1; )
24913
24923
  await ev(100), t = await Wp(i.appConfig);
@@ -24928,13 +24938,13 @@ function Wp(i) {
24928
24938
  });
24929
24939
  }
24930
24940
  function ov(i) {
24931
- return MC(i) ? {
24941
+ return FC(i) ? {
24932
24942
  fid: i.fid,
24933
24943
  registrationStatus: 0
24934
24944
  /* RequestStatus.NOT_STARTED */
24935
24945
  } : i;
24936
24946
  }
24937
- function MC(i) {
24947
+ function FC(i) {
24938
24948
  return i.registrationStatus === 1 && i.registrationTime + Yg < Date.now();
24939
24949
  }
24940
24950
  /**
@@ -24953,8 +24963,8 @@ function MC(i) {
24953
24963
  * See the License for the specific language governing permissions and
24954
24964
  * limitations under the License.
24955
24965
  */
24956
- async function FC({ appConfig: i, heartbeatServiceProvider: t }, n) {
24957
- const s = NC(i, n), o = yC(i, n), l = t.getImmediate({
24966
+ async function NC({ appConfig: i, heartbeatServiceProvider: t }, n) {
24967
+ const s = BC(i, n), o = bC(i, n), l = t.getImmediate({
24958
24968
  optional: !0
24959
24969
  });
24960
24970
  if (l) {
@@ -24977,7 +24987,7 @@ async function FC({ appConfig: i, heartbeatServiceProvider: t }, n) {
24977
24987
  } else
24978
24988
  throw await Jg("Generate Auth Token", C);
24979
24989
  }
24980
- function NC(i, { fid: t }) {
24990
+ function BC(i, { fid: t }) {
24981
24991
  return `${Xg(i)}/${t}/authTokens:generate`;
24982
24992
  }
24983
24993
  /**
@@ -25005,23 +25015,23 @@ async function Td(i, t = !1) {
25005
25015
  /* ErrorCode.NOT_REGISTERED */
25006
25016
  );
25007
25017
  const g = l.authToken;
25008
- if (!t && HC(g))
25018
+ if (!t && UC(g))
25009
25019
  return l;
25010
25020
  if (g.requestStatus === 1)
25011
- return n = BC(i, t), l;
25021
+ return n = jC(i, t), l;
25012
25022
  {
25013
25023
  if (!navigator.onLine)
25014
25024
  throw fl.create(
25015
25025
  "app-offline"
25016
25026
  /* ErrorCode.APP_OFFLINE */
25017
25027
  );
25018
- const E = WC(l);
25019
- return n = jC(i, E), E;
25028
+ const E = $C(l);
25029
+ return n = HC(i, E), E;
25020
25030
  }
25021
25031
  });
25022
25032
  return n ? await n : s.authToken;
25023
25033
  }
25024
- async function BC(i, t) {
25034
+ async function jC(i, t) {
25025
25035
  let n = await $p(i.appConfig);
25026
25036
  for (; n.authToken.requestStatus === 1; )
25027
25037
  await ev(100), n = await $p(i.appConfig);
@@ -25036,15 +25046,15 @@ function $p(i) {
25036
25046
  /* ErrorCode.NOT_REGISTERED */
25037
25047
  );
25038
25048
  const n = t.authToken;
25039
- return $C(n) ? Object.assign(Object.assign({}, t), { authToken: {
25049
+ return zC(n) ? Object.assign(Object.assign({}, t), { authToken: {
25040
25050
  requestStatus: 0
25041
25051
  /* RequestStatus.NOT_STARTED */
25042
25052
  } }) : t;
25043
25053
  });
25044
25054
  }
25045
- async function jC(i, t) {
25055
+ async function HC(i, t) {
25046
25056
  try {
25047
- const n = await FC(i, t), s = Object.assign(Object.assign({}, t), { authToken: n });
25057
+ const n = await NC(i, t), s = Object.assign(Object.assign({}, t), { authToken: n });
25048
25058
  return await Uc(i.appConfig, s), n;
25049
25059
  } catch (n) {
25050
25060
  if (qg(n) && (n.customData.serverCode === 401 || n.customData.serverCode === 404))
@@ -25062,21 +25072,21 @@ async function jC(i, t) {
25062
25072
  function av(i) {
25063
25073
  return i !== void 0 && i.registrationStatus === 2;
25064
25074
  }
25065
- function HC(i) {
25066
- return i.requestStatus === 2 && !UC(i);
25067
- }
25068
25075
  function UC(i) {
25069
- const t = Date.now();
25070
- return t < i.creationTime || i.creationTime + i.expiresIn < t + pC;
25076
+ return i.requestStatus === 2 && !WC(i);
25071
25077
  }
25072
25078
  function WC(i) {
25079
+ const t = Date.now();
25080
+ return t < i.creationTime || i.creationTime + i.expiresIn < t + gC;
25081
+ }
25082
+ function $C(i) {
25073
25083
  const t = {
25074
25084
  requestStatus: 1,
25075
25085
  requestTime: Date.now()
25076
25086
  };
25077
25087
  return Object.assign(Object.assign({}, i), { authToken: t });
25078
25088
  }
25079
- function $C(i) {
25089
+ function zC(i) {
25080
25090
  return i.requestStatus === 1 && i.requestTime + Yg < Date.now();
25081
25091
  }
25082
25092
  /**
@@ -25095,7 +25105,7 @@ function $C(i) {
25095
25105
  * See the License for the specific language governing permissions and
25096
25106
  * limitations under the License.
25097
25107
  */
25098
- async function zC(i) {
25108
+ async function YC(i) {
25099
25109
  const t = i, { installationEntry: n, registrationPromise: s } = await Ed(t);
25100
25110
  return s ? s.catch(console.error) : Td(t).catch(console.error), n.fid;
25101
25111
  }
@@ -25115,11 +25125,11 @@ async function zC(i) {
25115
25125
  * See the License for the specific language governing permissions and
25116
25126
  * limitations under the License.
25117
25127
  */
25118
- async function YC(i, t = !1) {
25128
+ async function VC(i, t = !1) {
25119
25129
  const n = i;
25120
- return await VC(n), (await Td(n, t)).token;
25130
+ return await GC(n), (await Td(n, t)).token;
25121
25131
  }
25122
- async function VC(i) {
25132
+ async function GC(i) {
25123
25133
  const { registrationPromise: t } = await Ed(i);
25124
25134
  t && await t;
25125
25135
  }
@@ -25139,7 +25149,7 @@ async function VC(i) {
25139
25149
  * See the License for the specific language governing permissions and
25140
25150
  * limitations under the License.
25141
25151
  */
25142
- function GC(i) {
25152
+ function qC(i) {
25143
25153
  if (!i || !i.options)
25144
25154
  throw $f("App Configuration");
25145
25155
  if (!i.name)
@@ -25180,35 +25190,35 @@ function $f(i) {
25180
25190
  * See the License for the specific language governing permissions and
25181
25191
  * limitations under the License.
25182
25192
  */
25183
- const sv = "installations", qC = "installations-internal", XC = (i) => {
25184
- const t = i.getProvider("app").getImmediate(), n = GC(t), s = Sd(t, "heartbeat");
25193
+ const sv = "installations", XC = "installations-internal", KC = (i) => {
25194
+ const t = i.getProvider("app").getImmediate(), n = qC(t), s = Sd(t, "heartbeat");
25185
25195
  return {
25186
25196
  app: t,
25187
25197
  appConfig: n,
25188
25198
  heartbeatServiceProvider: s,
25189
25199
  _delete: () => Promise.resolve()
25190
25200
  };
25191
- }, KC = (i) => {
25201
+ }, JC = (i) => {
25192
25202
  const t = i.getProvider("app").getImmediate(), n = Sd(t, sv).getImmediate();
25193
25203
  return {
25194
- getId: () => zC(n),
25195
- getToken: (o) => YC(n, o)
25204
+ getId: () => YC(n),
25205
+ getToken: (o) => VC(n, o)
25196
25206
  };
25197
25207
  };
25198
- function JC() {
25208
+ function ZC() {
25199
25209
  cl(new bu(
25200
25210
  sv,
25201
- XC,
25211
+ KC,
25202
25212
  "PUBLIC"
25203
25213
  /* ComponentType.PUBLIC */
25204
25214
  )), cl(new bu(
25205
- qC,
25206
- KC,
25215
+ XC,
25216
+ JC,
25207
25217
  "PRIVATE"
25208
25218
  /* ComponentType.PRIVATE */
25209
25219
  ));
25210
25220
  }
25211
- JC();
25221
+ ZC();
25212
25222
  gu(zg, Cd);
25213
25223
  gu(zg, Cd, "esm2017");
25214
25224
  /**
@@ -25227,7 +25237,7 @@ gu(zg, Cd, "esm2017");
25227
25237
  * See the License for the specific language governing permissions and
25228
25238
  * limitations under the License.
25229
25239
  */
25230
- const ZC = "/firebase-messaging-sw.js", QC = "/firebase-cloud-messaging-push-scope", uv = "BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4", ek = "https://fcmregistrations.googleapis.com/v1", lv = "google.c.a.c_id", tk = "google.c.a.c_l", nk = "google.c.a.ts", rk = "google.c.a.e";
25240
+ const QC = "/firebase-messaging-sw.js", ek = "/firebase-cloud-messaging-push-scope", uv = "BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4", tk = "https://fcmregistrations.googleapis.com/v1", lv = "google.c.a.c_id", nk = "google.c.a.c_l", rk = "google.c.a.ts", ik = "google.c.a.e";
25231
25241
  var zp;
25232
25242
  (function(i) {
25233
25243
  i[i.DATA_MESSAGE = 1] = "DATA_MESSAGE", i[i.DISPLAY_NOTIFICATION = 3] = "DISPLAY_NOTIFICATION";
@@ -25270,7 +25280,7 @@ function Ps(i) {
25270
25280
  const t = new Uint8Array(i);
25271
25281
  return btoa(String.fromCharCode(...t)).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
25272
25282
  }
25273
- function ik(i) {
25283
+ function ok(i) {
25274
25284
  const t = "=".repeat((4 - i.length % 4) % 4), n = (i + t).replace(/\-/g, "+").replace(/_/g, "/"), s = atob(n), o = new Uint8Array(s.length);
25275
25285
  for (let l = 0; l < s.length; ++l)
25276
25286
  o[l] = s.charCodeAt(l);
@@ -25292,12 +25302,12 @@ function ik(i) {
25292
25302
  * See the License for the specific language governing permissions and
25293
25303
  * limitations under the License.
25294
25304
  */
25295
- const zf = "fcm_token_details_db", ok = 5, Yp = "fcm_token_object_Store";
25296
- async function ak(i) {
25305
+ const zf = "fcm_token_details_db", ak = 5, Yp = "fcm_token_object_Store";
25306
+ async function sk(i) {
25297
25307
  if ("databases" in indexedDB && !(await indexedDB.databases()).map((l) => l.name).includes(zf))
25298
25308
  return null;
25299
25309
  let t = null;
25300
- return (await qc(zf, ok, {
25310
+ return (await qc(zf, ak, {
25301
25311
  upgrade: async (s, o, l, g) => {
25302
25312
  var E;
25303
25313
  if (o < 2 || !s.objectStoreNames.contains(Yp))
@@ -25348,9 +25358,9 @@ async function ak(i) {
25348
25358
  }
25349
25359
  }
25350
25360
  }
25351
- })).close(), await jf(zf), await jf("fcm_vapid_details_db"), await jf("undefined"), sk(t) ? t : null;
25361
+ })).close(), await jf(zf), await jf("fcm_vapid_details_db"), await jf("undefined"), uk(t) ? t : null;
25352
25362
  }
25353
- function sk(i) {
25363
+ function uk(i) {
25354
25364
  if (!i || !i.subscriptionOptions)
25355
25365
  return !1;
25356
25366
  const { subscriptionOptions: t } = i;
@@ -25372,10 +25382,10 @@ function sk(i) {
25372
25382
  * See the License for the specific language governing permissions and
25373
25383
  * limitations under the License.
25374
25384
  */
25375
- const uk = "firebase-messaging-database", lk = 1, hl = "firebase-messaging-store";
25385
+ const lk = "firebase-messaging-database", ck = 1, hl = "firebase-messaging-store";
25376
25386
  let Yf = null;
25377
25387
  function _d() {
25378
- return Yf || (Yf = qc(uk, lk, {
25388
+ return Yf || (Yf = qc(lk, ck, {
25379
25389
  upgrade: (i, t) => {
25380
25390
  switch (t) {
25381
25391
  case 0:
@@ -25389,7 +25399,7 @@ async function cv(i) {
25389
25399
  if (s)
25390
25400
  return s;
25391
25401
  {
25392
- const o = await ak(i.appConfig.senderId);
25402
+ const o = await sk(i.appConfig.senderId);
25393
25403
  if (o)
25394
25404
  return await Rd(i, o), o;
25395
25405
  }
@@ -25398,7 +25408,7 @@ async function Rd(i, t) {
25398
25408
  const n = Id(i), o = (await _d()).transaction(hl, "readwrite");
25399
25409
  return await o.objectStore(hl).put(t, n), await o.done, t;
25400
25410
  }
25401
- async function ck(i) {
25411
+ async function fk(i) {
25402
25412
  const t = Id(i), s = (await _d()).transaction(hl, "readwrite");
25403
25413
  await s.objectStore(hl).delete(t), await s.done;
25404
25414
  }
@@ -25421,7 +25431,7 @@ function Id({ appConfig: i }) {
25421
25431
  * See the License for the specific language governing permissions and
25422
25432
  * limitations under the License.
25423
25433
  */
25424
- const fk = {
25434
+ const dk = {
25425
25435
  "missing-app-config-values": 'Missing App configuration value: "{$valueName}"',
25426
25436
  "only-available-in-window": "This method is available in a Window context.",
25427
25437
  "only-available-in-sw": "This method is available in a service worker context.",
@@ -25440,7 +25450,7 @@ const fk = {
25440
25450
  "invalid-bg-handler": "The input to setBackgroundMessageHandler() must be a function.",
25441
25451
  "invalid-vapid-key": "The public VAPID key must be a string.",
25442
25452
  "use-vapid-key-after-get-token": "The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."
25443
- }, Si = new Gc("messaging", "Messaging", fk);
25453
+ }, Si = new Gc("messaging", "Messaging", dk);
25444
25454
  /**
25445
25455
  * @license
25446
25456
  * Copyright 2019 Google LLC
@@ -25457,7 +25467,7 @@ const fk = {
25457
25467
  * See the License for the specific language governing permissions and
25458
25468
  * limitations under the License.
25459
25469
  */
25460
- async function dk(i, t) {
25470
+ async function hk(i, t) {
25461
25471
  const n = await Dd(i), s = dv(t), o = {
25462
25472
  method: "POST",
25463
25473
  headers: n,
@@ -25484,7 +25494,7 @@ async function dk(i, t) {
25484
25494
  );
25485
25495
  return l.token;
25486
25496
  }
25487
- async function hk(i, t) {
25497
+ async function pk(i, t) {
25488
25498
  const n = await Dd(i), s = dv(t.subscriptionOptions), o = {
25489
25499
  method: "PATCH",
25490
25500
  headers: n,
@@ -25531,7 +25541,7 @@ async function fv(i, t) {
25531
25541
  }
25532
25542
  }
25533
25543
  function Od({ projectId: i }) {
25534
- return `${ek}/projects/${i}/registrations`;
25544
+ return `${tk}/projects/${i}/registrations`;
25535
25545
  }
25536
25546
  async function Dd({ appConfig: i, installations: t }) {
25537
25547
  const n = await t.getToken();
@@ -25568,9 +25578,9 @@ function dv({ p256dh: i, auth: t, endpoint: n, vapidKey: s }) {
25568
25578
  * See the License for the specific language governing permissions and
25569
25579
  * limitations under the License.
25570
25580
  */
25571
- const pk = 7 * 24 * 60 * 60 * 1e3;
25572
- async function gk(i) {
25573
- const t = await yk(i.swRegistration, i.vapidKey), n = {
25581
+ const gk = 7 * 24 * 60 * 60 * 1e3;
25582
+ async function vk(i) {
25583
+ const t = await bk(i.swRegistration, i.vapidKey), n = {
25574
25584
  vapidKey: i.vapidKey,
25575
25585
  swScope: i.swRegistration.scope,
25576
25586
  endpoint: t.endpoint,
@@ -25578,8 +25588,8 @@ async function gk(i) {
25578
25588
  p256dh: Ps(t.getKey("p256dh"))
25579
25589
  }, s = await cv(i.firebaseDependencies);
25580
25590
  if (s) {
25581
- if (bk(s.subscriptionOptions, n))
25582
- return Date.now() >= s.createTime + pk ? mk(i, {
25591
+ if (wk(s.subscriptionOptions, n))
25592
+ return Date.now() >= s.createTime + gk ? yk(i, {
25583
25593
  token: s.token,
25584
25594
  createTime: Date.now(),
25585
25595
  subscriptionOptions: n
@@ -25593,38 +25603,38 @@ async function gk(i) {
25593
25603
  } else
25594
25604
  return Vp(i.firebaseDependencies, n);
25595
25605
  }
25596
- async function vk(i) {
25606
+ async function mk(i) {
25597
25607
  const t = await cv(i.firebaseDependencies);
25598
- t && (await fv(i.firebaseDependencies, t.token), await ck(i.firebaseDependencies));
25608
+ t && (await fv(i.firebaseDependencies, t.token), await fk(i.firebaseDependencies));
25599
25609
  const n = await i.swRegistration.pushManager.getSubscription();
25600
25610
  return n ? n.unsubscribe() : !0;
25601
25611
  }
25602
- async function mk(i, t) {
25612
+ async function yk(i, t) {
25603
25613
  try {
25604
- const n = await hk(i.firebaseDependencies, t), s = Object.assign(Object.assign({}, t), { token: n, createTime: Date.now() });
25614
+ const n = await pk(i.firebaseDependencies, t), s = Object.assign(Object.assign({}, t), { token: n, createTime: Date.now() });
25605
25615
  return await Rd(i.firebaseDependencies, s), n;
25606
25616
  } catch (n) {
25607
- throw await vk(i), n;
25617
+ throw await mk(i), n;
25608
25618
  }
25609
25619
  }
25610
25620
  async function Vp(i, t) {
25611
25621
  const s = {
25612
- token: await dk(i, t),
25622
+ token: await hk(i, t),
25613
25623
  createTime: Date.now(),
25614
25624
  subscriptionOptions: t
25615
25625
  };
25616
25626
  return await Rd(i, s), s.token;
25617
25627
  }
25618
- async function yk(i, t) {
25628
+ async function bk(i, t) {
25619
25629
  const n = await i.pushManager.getSubscription();
25620
25630
  return n || i.pushManager.subscribe({
25621
25631
  userVisibleOnly: !0,
25622
25632
  // Chrome <= 75 doesn't support base64-encoded VAPID key. For backward compatibility, VAPID key
25623
25633
  // submitted to pushManager#subscribe must be of type Uint8Array.
25624
- applicationServerKey: ik(t)
25634
+ applicationServerKey: ok(t)
25625
25635
  });
25626
25636
  }
25627
- function bk(i, t) {
25637
+ function wk(i, t) {
25628
25638
  const n = t.vapidKey === i.vapidKey, s = t.endpoint === i.endpoint, o = t.auth === i.auth, l = t.p256dh === i.p256dh;
25629
25639
  return n && s && o && l;
25630
25640
  }
@@ -25652,9 +25662,9 @@ function Gp(i) {
25652
25662
  // eslint-disable-next-line camelcase
25653
25663
  messageId: i.fcmMessageId
25654
25664
  };
25655
- return wk(t, i), Sk(t, i), xk(t, i), t;
25665
+ return Sk(t, i), xk(t, i), Ck(t, i), t;
25656
25666
  }
25657
- function wk(i, t) {
25667
+ function Sk(i, t) {
25658
25668
  if (!t.notification)
25659
25669
  return;
25660
25670
  i.notification = {};
@@ -25667,10 +25677,10 @@ function wk(i, t) {
25667
25677
  const l = t.notification.icon;
25668
25678
  l && (i.notification.icon = l);
25669
25679
  }
25670
- function Sk(i, t) {
25680
+ function xk(i, t) {
25671
25681
  t.data && (i.data = t.data);
25672
25682
  }
25673
- function xk(i, t) {
25683
+ function Ck(i, t) {
25674
25684
  var n, s, o, l, g;
25675
25685
  if (!t.fcmOptions && !(!((n = t.notification) === null || n === void 0) && n.click_action))
25676
25686
  return;
@@ -25696,7 +25706,7 @@ function xk(i, t) {
25696
25706
  * See the License for the specific language governing permissions and
25697
25707
  * limitations under the License.
25698
25708
  */
25699
- function Ck(i) {
25709
+ function kk(i) {
25700
25710
  return typeof i == "object" && !!i && lv in i;
25701
25711
  }
25702
25712
  /**
@@ -25739,7 +25749,7 @@ function hv(i, t) {
25739
25749
  * See the License for the specific language governing permissions and
25740
25750
  * limitations under the License.
25741
25751
  */
25742
- function kk(i) {
25752
+ function Ek(i) {
25743
25753
  if (!i || !i.options)
25744
25754
  throw Vf("App Configuration Object");
25745
25755
  if (!i.name)
@@ -25782,10 +25792,10 @@ function Vf(i) {
25782
25792
  * See the License for the specific language governing permissions and
25783
25793
  * limitations under the License.
25784
25794
  */
25785
- class Ek {
25795
+ class Tk {
25786
25796
  constructor(t, n, s) {
25787
25797
  this.deliveryMetricsExportedToBigQueryEnabled = !1, this.onBackgroundMessageHandler = null, this.onMessageHandler = null, this.logEvents = [], this.isLogServiceStarted = !1;
25788
- const o = kk(t);
25798
+ const o = Ek(t);
25789
25799
  this.firebaseDependencies = {
25790
25800
  app: t,
25791
25801
  appConfig: o,
@@ -25813,10 +25823,10 @@ class Ek {
25813
25823
  * See the License for the specific language governing permissions and
25814
25824
  * limitations under the License.
25815
25825
  */
25816
- async function Tk(i) {
25826
+ async function _k(i) {
25817
25827
  try {
25818
- i.swRegistration = await navigator.serviceWorker.register(ZC, {
25819
- scope: QC
25828
+ i.swRegistration = await navigator.serviceWorker.register(QC, {
25829
+ scope: ek
25820
25830
  }), i.swRegistration.update().catch(() => {
25821
25831
  });
25822
25832
  } catch (t) {
@@ -25841,8 +25851,8 @@ async function Tk(i) {
25841
25851
  * See the License for the specific language governing permissions and
25842
25852
  * limitations under the License.
25843
25853
  */
25844
- async function _k(i, t) {
25845
- if (!t && !i.swRegistration && await Tk(i), !(!t && i.swRegistration)) {
25854
+ async function Rk(i, t) {
25855
+ if (!t && !i.swRegistration && await _k(i), !(!t && i.swRegistration)) {
25846
25856
  if (!(t instanceof ServiceWorkerRegistration))
25847
25857
  throw Si.create(
25848
25858
  "invalid-sw-registration"
@@ -25867,7 +25877,7 @@ async function _k(i, t) {
25867
25877
  * See the License for the specific language governing permissions and
25868
25878
  * limitations under the License.
25869
25879
  */
25870
- async function Rk(i, t) {
25880
+ async function Ik(i, t) {
25871
25881
  t ? i.vapidKey = t : i.vapidKey || (i.vapidKey = uv);
25872
25882
  }
25873
25883
  /**
@@ -25897,7 +25907,7 @@ async function pv(i, t) {
25897
25907
  "permission-blocked"
25898
25908
  /* ErrorCode.PERMISSION_BLOCKED */
25899
25909
  );
25900
- return await Rk(i, t == null ? void 0 : t.vapidKey), await _k(i, t == null ? void 0 : t.serviceWorkerRegistration), gk(i);
25910
+ return await Ik(i, t == null ? void 0 : t.vapidKey), await Rk(i, t == null ? void 0 : t.serviceWorkerRegistration), vk(i);
25901
25911
  }
25902
25912
  /**
25903
25913
  * @license
@@ -25915,18 +25925,18 @@ async function pv(i, t) {
25915
25925
  * See the License for the specific language governing permissions and
25916
25926
  * limitations under the License.
25917
25927
  */
25918
- async function Ik(i, t, n) {
25919
- const s = Ok(t);
25928
+ async function Ok(i, t, n) {
25929
+ const s = Dk(t);
25920
25930
  (await i.firebaseDependencies.analyticsProvider.get()).logEvent(s, {
25921
25931
  /* eslint-disable camelcase */
25922
25932
  message_id: n[lv],
25923
- message_name: n[tk],
25924
- message_time: n[nk],
25933
+ message_name: n[nk],
25934
+ message_time: n[rk],
25925
25935
  message_device_time: Math.floor(Date.now() / 1e3)
25926
25936
  /* eslint-enable camelcase */
25927
25937
  });
25928
25938
  }
25929
- function Ok(i) {
25939
+ function Dk(i) {
25930
25940
  switch (i) {
25931
25941
  case lc.NOTIFICATION_CLICKED:
25932
25942
  return "notification_open";
@@ -25952,13 +25962,13 @@ function Ok(i) {
25952
25962
  * See the License for the specific language governing permissions and
25953
25963
  * limitations under the License.
25954
25964
  */
25955
- async function Dk(i, t) {
25965
+ async function Ak(i, t) {
25956
25966
  const n = t.data;
25957
25967
  if (!n.isFirebaseMessaging)
25958
25968
  return;
25959
25969
  i.onMessageHandler && n.messageType === lc.PUSH_RECEIVED && (typeof i.onMessageHandler == "function" ? i.onMessageHandler(Gp(n)) : i.onMessageHandler.next(Gp(n)));
25960
25970
  const s = n.data;
25961
- Ck(s) && s[rk] === "1" && await Ik(i, n.messageType, s);
25971
+ kk(s) && s[ik] === "1" && await Ok(i, n.messageType, s);
25962
25972
  }
25963
25973
  const qp = "@firebase/messaging", Xp = "0.12.6";
25964
25974
  /**
@@ -25977,24 +25987,24 @@ const qp = "@firebase/messaging", Xp = "0.12.6";
25977
25987
  * See the License for the specific language governing permissions and
25978
25988
  * limitations under the License.
25979
25989
  */
25980
- const Ak = (i) => {
25981
- const t = new Ek(i.getProvider("app").getImmediate(), i.getProvider("installations-internal").getImmediate(), i.getProvider("analytics-internal"));
25982
- return navigator.serviceWorker.addEventListener("message", (n) => Dk(t, n)), t;
25983
- }, Pk = (i) => {
25990
+ const Pk = (i) => {
25991
+ const t = new Tk(i.getProvider("app").getImmediate(), i.getProvider("installations-internal").getImmediate(), i.getProvider("analytics-internal"));
25992
+ return navigator.serviceWorker.addEventListener("message", (n) => Ak(t, n)), t;
25993
+ }, Lk = (i) => {
25984
25994
  const t = i.getProvider("messaging").getImmediate();
25985
25995
  return {
25986
25996
  getToken: (s) => pv(t, s)
25987
25997
  };
25988
25998
  };
25989
- function Lk() {
25999
+ function Mk() {
25990
26000
  cl(new bu(
25991
26001
  "messaging",
25992
- Ak,
26002
+ Pk,
25993
26003
  "PUBLIC"
25994
26004
  /* ComponentType.PUBLIC */
25995
26005
  )), cl(new bu(
25996
26006
  "messaging-internal",
25997
- Pk,
26007
+ Lk,
25998
26008
  "PRIVATE"
25999
26009
  /* ComponentType.PRIVATE */
26000
26010
  )), gu(qp, Xp), gu(qp, Xp, "esm2017");
@@ -26015,13 +26025,13 @@ function Lk() {
26015
26025
  * See the License for the specific language governing permissions and
26016
26026
  * limitations under the License.
26017
26027
  */
26018
- async function Mk() {
26028
+ async function Fk() {
26019
26029
  try {
26020
26030
  await jg();
26021
26031
  } catch {
26022
26032
  return !1;
26023
26033
  }
26024
- return typeof window < "u" && Bg() && n1() && "serviceWorker" in navigator && "PushManager" in window && "Notification" in window && "fetch" in window && ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification") && PushSubscription.prototype.hasOwnProperty("getKey");
26034
+ return typeof window < "u" && Bg() && r1() && "serviceWorker" in navigator && "PushManager" in window && "Notification" in window && "fetch" in window && ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification") && PushSubscription.prototype.hasOwnProperty("getKey");
26025
26035
  }
26026
26036
  /**
26027
26037
  * @license
@@ -26039,7 +26049,7 @@ async function Mk() {
26039
26049
  * See the License for the specific language governing permissions and
26040
26050
  * limitations under the License.
26041
26051
  */
26042
- function Fk(i, t) {
26052
+ function Nk(i, t) {
26043
26053
  if (!navigator)
26044
26054
  throw Si.create(
26045
26055
  "only-available-in-window"
@@ -26065,8 +26075,8 @@ function Fk(i, t) {
26065
26075
  * See the License for the specific language governing permissions and
26066
26076
  * limitations under the License.
26067
26077
  */
26068
- function gv(i = tC()) {
26069
- return Mk().then((t) => {
26078
+ function gv(i = nC()) {
26079
+ return Fk().then((t) => {
26070
26080
  if (!t)
26071
26081
  throw Si.create(
26072
26082
  "unsupported-browser"
@@ -26079,14 +26089,14 @@ function gv(i = tC()) {
26079
26089
  );
26080
26090
  }), Sd(bd(i), "messaging").getImmediate();
26081
26091
  }
26082
- async function Nk(i, t) {
26092
+ async function Bk(i, t) {
26083
26093
  return i = bd(i), pv(i, t);
26084
26094
  }
26085
- function Bk(i, t) {
26086
- return i = bd(i), Fk(i, t);
26095
+ function jk(i, t) {
26096
+ return i = bd(i), Nk(i, t);
26087
26097
  }
26088
- Lk();
26089
- const wE = (i) => {
26098
+ Mk();
26099
+ const SE = (i) => {
26090
26100
  "serviceWorker" in navigator && navigator.serviceWorker.register(i.path).then(function(t) {
26091
26101
  console.log("Registration successful, scope is:", t.scope), console.log("initialize service worker props ", i);
26092
26102
  const n = gv(
@@ -26100,7 +26110,7 @@ const wE = (i) => {
26100
26110
  measurementId: i.measurementId
26101
26111
  })
26102
26112
  );
26103
- Nk(n, {
26113
+ Bk(n, {
26104
26114
  // add your VPAID key here
26105
26115
  serviceWorkerRegistration: t,
26106
26116
  vapidKey: i.vapidKey
@@ -26118,7 +26128,7 @@ const wE = (i) => {
26118
26128
  { withCredentials: !0 }
26119
26129
  );
26120
26130
  } catch (g) {
26121
- console.log(g), bx(
26131
+ console.log(g), wx(
26122
26132
  ((l = (o = g.response) == null ? void 0 : o.data) == null ? void 0 : l.errorMessage) || "Have error when get notification list"
26123
26133
  );
26124
26134
  }
@@ -26132,11 +26142,11 @@ const wE = (i) => {
26132
26142
  }).catch(function(t) {
26133
26143
  console.log("Service worker registration failed, error:", t);
26134
26144
  });
26135
- }, jk = new BroadcastChannel("my-channel");
26136
- jk.onmessage = (i) => {
26145
+ }, Hk = new BroadcastChannel("my-channel");
26146
+ Hk.onmessage = (i) => {
26137
26147
  console.log("Broadcast chanel message", i);
26138
26148
  };
26139
- const SE = (i) => new Promise((t) => {
26149
+ const xE = (i) => new Promise((t) => {
26140
26150
  const n = gv(
26141
26151
  xd({
26142
26152
  apiKey: i.apiKey,
@@ -26148,10 +26158,10 @@ const SE = (i) => new Promise((t) => {
26148
26158
  measurementId: i.measurementId
26149
26159
  })
26150
26160
  );
26151
- Bk(n, (s) => {
26161
+ jk(n, (s) => {
26152
26162
  console.log("payload", s), t(s);
26153
26163
  });
26154
- }), xE = {
26164
+ }), CE = {
26155
26165
  "subscription-diaglog": "_subscription-diaglog_12x9u_2",
26156
26166
  "subscription-container": "_subscription-container_12x9u_15",
26157
26167
  "subscription-title": "_subscription-title_12x9u_24",
@@ -26159,55 +26169,55 @@ const SE = (i) => new Promise((t) => {
26159
26169
  "subscription-btn__container": "_subscription-btn__container_12x9u_37",
26160
26170
  "btn-success": "_btn-success_12x9u_43",
26161
26171
  "btn-cancel": "_btn-cancel_12x9u_44"
26162
- }, CE = {
26172
+ }, kE = {
26163
26173
  "notification-massage_container": "_notification-massage_container_ql4az_1",
26164
26174
  "notification-name": "_notification-name_ql4az_18",
26165
26175
  "notification-message_service": "_notification-message_service_ql4az_23",
26166
26176
  "notification-message_button-close": "_notification-message_button-close_ql4az_27"
26167
26177
  };
26168
26178
  export {
26169
- cE as A,
26170
- aE as B,
26179
+ fE as A,
26180
+ sE as B,
26171
26181
  rw as C,
26172
- bE as D,
26182
+ wE as D,
26173
26183
  aS as E,
26174
- oE as F,
26175
- vE as G,
26176
- mE as H,
26177
- gE as I,
26178
- tE as J,
26179
- nE as K,
26184
+ aE as F,
26185
+ mE as G,
26186
+ yE as H,
26187
+ vE as I,
26188
+ nE as J,
26189
+ rE as K,
26180
26190
  Sg as L,
26181
- rE as M,
26191
+ iE as M,
26182
26192
  Sa as P,
26183
- uE as Q,
26193
+ lE as Q,
26184
26194
  Og as R,
26185
- iE as T,
26195
+ oE as T,
26186
26196
  sc as _,
26187
- Zk as a,
26188
- Kk as b,
26197
+ Qk as a,
26198
+ Jk as b,
26189
26199
  Ko as c,
26190
26200
  FS as d,
26191
26201
  lg as e,
26192
- Jk as f,
26202
+ Zk as f,
26193
26203
  Wc as g,
26194
- dE as h,
26204
+ hE as h,
26195
26205
  Kr as i,
26196
26206
  fu as j,
26197
- wx as k,
26198
- sE as l,
26207
+ Sx as k,
26208
+ uE as l,
26199
26209
  hu as m,
26200
- pE as n,
26201
- Qk as o,
26202
- bx as p,
26203
- yE as q,
26204
- Nx as r,
26205
- hE as s,
26206
- xE as t,
26207
- eE as u,
26208
- wE as v,
26209
- fE as w,
26210
- SE as x,
26211
- CE as y,
26212
- lE as z
26210
+ gE as n,
26211
+ eE as o,
26212
+ wx as p,
26213
+ bE as q,
26214
+ Bx as r,
26215
+ pE as s,
26216
+ CE as t,
26217
+ tE as u,
26218
+ SE as v,
26219
+ dE as w,
26220
+ xE as x,
26221
+ kE as y,
26222
+ cE as z
26213
26223
  };