reactfire 4.2.3-exp.4329c43 → 4.2.3-exp.85cb2bb

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.
package/dist/index.js CHANGED
@@ -1,29 +1,30 @@
1
- import * as f from "react";
2
- import { onIdTokenChanged as Ft } from "firebase/auth";
3
- import { onChildAdded as Pt, onChildRemoved as $t, onChildChanged as Tt, onChildMoved as Dt, onValue as Rt, off as jt, get as Ut } from "firebase/database";
4
- import { getApps as Vt, registerVersion as Ne, initializeApp as Mt } from "firebase/app";
5
- import { onSnapshot as Lt, queryEqual as Nt } from "firebase/firestore";
6
- import { httpsCallable as Wt } from "firebase/functions";
7
- import { getDownloadURL as qt, ref as Qt } from "firebase/storage";
8
- import { ensureInitialized as Ht, getValue as Kt, getString as Yt, getNumber as Gt, getBoolean as Jt, getAll as zt } from "firebase/remote-config";
9
- var ce = function(e, t) {
10
- return ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1
+ import * as v from "react";
2
+ import Xe from "react";
3
+ import { onIdTokenChanged as Mt } from "firebase/auth";
4
+ import { onChildAdded as Nt, onChildRemoved as Wt, onChildChanged as qt, onChildMoved as Kt, onValue as Ht, off as Gt, get as Qt } from "firebase/database";
5
+ import { getApps as Yt, registerVersion as Ge, initializeApp as Bt } from "firebase/app";
6
+ import { onSnapshot as Jt, queryEqual as zt } from "firebase/firestore";
7
+ import { httpsCallable as Zt } from "firebase/functions";
8
+ import { getDownloadURL as Xt, ref as en } from "firebase/storage";
9
+ import { ensureInitialized as tn, getValue as nn, getString as rn, getNumber as on, getBoolean as un, getAll as an } from "firebase/remote-config";
10
+ var pe = function(e, t) {
11
+ return pe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
11
12
  n.__proto__ = r;
12
13
  } || function(n, r) {
13
14
  for (var i in r)
14
15
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
15
- }, ce(e, t);
16
+ }, pe(e, t);
16
17
  };
17
- function x(e, t) {
18
+ function T(e, t) {
18
19
  if (typeof t != "function" && t !== null)
19
20
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
20
- ce(e, t);
21
+ pe(e, t);
21
22
  function n() {
22
23
  this.constructor = e;
23
24
  }
24
25
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
25
26
  }
26
- function Zt(e, t) {
27
+ function sn(e, t) {
27
28
  var n = {};
28
29
  for (var r in e)
29
30
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -32,51 +33,51 @@ function Zt(e, t) {
32
33
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
33
34
  return n;
34
35
  }
35
- function pe(e, t, n, r) {
36
+ function we(e, t, n, r) {
36
37
  function i(o) {
37
38
  return o instanceof n ? o : new n(function(u) {
38
39
  u(o);
39
40
  });
40
41
  }
41
42
  return new (n || (n = Promise))(function(o, u) {
42
- function s(l) {
43
+ function a(l) {
43
44
  try {
44
45
  c(r.next(l));
45
- } catch (d) {
46
- u(d);
46
+ } catch (f) {
47
+ u(f);
47
48
  }
48
49
  }
49
- function a(l) {
50
+ function s(l) {
50
51
  try {
51
52
  c(r.throw(l));
52
- } catch (d) {
53
- u(d);
53
+ } catch (f) {
54
+ u(f);
54
55
  }
55
56
  }
56
57
  function c(l) {
57
- l.done ? o(l.value) : i(l.value).then(s, a);
58
+ l.done ? o(l.value) : i(l.value).then(a, s);
58
59
  }
59
60
  c((r = r.apply(e, t || [])).next());
60
61
  });
61
62
  }
62
- function Ke(e, t) {
63
+ function et(e, t) {
63
64
  var n = { label: 0, sent: function() {
64
65
  if (o[0] & 1)
65
66
  throw o[1];
66
67
  return o[1];
67
68
  }, trys: [], ops: [] }, r, i, o, u;
68
- return u = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
69
+ return u = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
69
70
  return this;
70
71
  }), u;
71
- function s(c) {
72
+ function a(c) {
72
73
  return function(l) {
73
- return a([c, l]);
74
+ return s([c, l]);
74
75
  };
75
76
  }
76
- function a(c) {
77
+ function s(c) {
77
78
  if (r)
78
79
  throw new TypeError("Generator is already executing.");
79
- for (; n; )
80
+ for (; u && (u = 0, c[0] && (n = 0)), n; )
80
81
  try {
81
82
  if (r = 1, i && (o = c[0] & 2 ? i.return : c[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, c[1])).done)
82
83
  return o;
@@ -124,7 +125,7 @@ function Ke(e, t) {
124
125
  return { value: c[0] ? c[1] : void 0, done: !0 };
125
126
  }
126
127
  }
127
- function V(e) {
128
+ function q(e) {
128
129
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
129
130
  if (n)
130
131
  return n.call(e);
@@ -136,7 +137,7 @@ function V(e) {
136
137
  };
137
138
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
138
139
  }
139
- function D(e, t) {
140
+ function M(e, t) {
140
141
  var n = typeof Symbol == "function" && e[Symbol.iterator];
141
142
  if (!n)
142
143
  return e;
@@ -144,8 +145,8 @@ function D(e, t) {
144
145
  try {
145
146
  for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
146
147
  o.push(i.value);
147
- } catch (s) {
148
- u = { error: s };
148
+ } catch (a) {
149
+ u = { error: a };
149
150
  } finally {
150
151
  try {
151
152
  i && !i.done && (n = r.return) && n.call(r);
@@ -156,79 +157,79 @@ function D(e, t) {
156
157
  }
157
158
  return o;
158
159
  }
159
- function R(e, t, n) {
160
+ function N(e, t, n) {
160
161
  if (n || arguments.length === 2)
161
162
  for (var r = 0, i = t.length, o; r < i; r++)
162
163
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
163
164
  return e.concat(o || Array.prototype.slice.call(t));
164
165
  }
165
- function U(e) {
166
- return this instanceof U ? (this.v = e, this) : new U(e);
166
+ function W(e) {
167
+ return this instanceof W ? (this.v = e, this) : new W(e);
167
168
  }
168
- function Bt(e, t, n) {
169
+ function cn(e, t, n) {
169
170
  if (!Symbol.asyncIterator)
170
171
  throw new TypeError("Symbol.asyncIterator is not defined.");
171
172
  var r = n.apply(e, t || []), i, o = [];
172
173
  return i = {}, u("next"), u("throw"), u("return"), i[Symbol.asyncIterator] = function() {
173
174
  return this;
174
175
  }, i;
175
- function u(v) {
176
- r[v] && (i[v] = function(p) {
177
- return new Promise(function(S, h) {
178
- o.push([v, p, S, h]) > 1 || s(v, p);
176
+ function u(d) {
177
+ r[d] && (i[d] = function(p) {
178
+ return new Promise(function(y, h) {
179
+ o.push([d, p, y, h]) > 1 || a(d, p);
179
180
  });
180
181
  });
181
182
  }
182
- function s(v, p) {
183
+ function a(d, p) {
183
184
  try {
184
- a(r[v](p));
185
- } catch (S) {
186
- d(o[0][3], S);
185
+ s(r[d](p));
186
+ } catch (y) {
187
+ f(o[0][3], y);
187
188
  }
188
189
  }
189
- function a(v) {
190
- v.value instanceof U ? Promise.resolve(v.value.v).then(c, l) : d(o[0][2], v);
190
+ function s(d) {
191
+ d.value instanceof W ? Promise.resolve(d.value.v).then(c, l) : f(o[0][2], d);
191
192
  }
192
- function c(v) {
193
- s("next", v);
193
+ function c(d) {
194
+ a("next", d);
194
195
  }
195
- function l(v) {
196
- s("throw", v);
196
+ function l(d) {
197
+ a("throw", d);
197
198
  }
198
- function d(v, p) {
199
- v(p), o.shift(), o.length && s(o[0][0], o[0][1]);
199
+ function f(d, p) {
200
+ d(p), o.shift(), o.length && a(o[0][0], o[0][1]);
200
201
  }
201
202
  }
202
- function Xt(e) {
203
+ function ln(e) {
203
204
  if (!Symbol.asyncIterator)
204
205
  throw new TypeError("Symbol.asyncIterator is not defined.");
205
206
  var t = e[Symbol.asyncIterator], n;
206
- return t ? t.call(e) : (e = typeof V == "function" ? V(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
207
+ return t ? t.call(e) : (e = typeof q == "function" ? q(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
207
208
  return this;
208
209
  }, n);
209
210
  function r(o) {
210
211
  n[o] = e[o] && function(u) {
211
- return new Promise(function(s, a) {
212
- u = e[o](u), i(s, a, u.done, u.value);
212
+ return new Promise(function(a, s) {
213
+ u = e[o](u), i(a, s, u.done, u.value);
213
214
  });
214
215
  };
215
216
  }
216
- function i(o, u, s, a) {
217
- Promise.resolve(a).then(function(c) {
218
- o({ value: c, done: s });
217
+ function i(o, u, a, s) {
218
+ Promise.resolve(s).then(function(c) {
219
+ o({ value: c, done: a });
219
220
  }, u);
220
221
  }
221
222
  }
222
- function b(e) {
223
+ function S(e) {
223
224
  return typeof e == "function";
224
225
  }
225
- function me(e) {
226
+ function Ee(e) {
226
227
  var t = function(r) {
227
228
  Error.call(r), r.stack = new Error().stack;
228
229
  }, n = e(t);
229
230
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
230
231
  }
231
- var oe = me(function(e) {
232
+ var ce = Ee(function(e) {
232
233
  return function(n) {
233
234
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
234
235
  ` + n.map(function(r, i) {
@@ -237,13 +238,13 @@ var oe = me(function(e) {
237
238
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
238
239
  };
239
240
  });
240
- function B(e, t) {
241
+ function te(e, t) {
241
242
  if (e) {
242
243
  var n = e.indexOf(t);
243
244
  0 <= n && e.splice(n, 1);
244
245
  }
245
246
  }
246
- var N = function() {
247
+ var Q = function() {
247
248
  function e(t) {
248
249
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
249
250
  }
@@ -255,15 +256,15 @@ var N = function() {
255
256
  if (u)
256
257
  if (this._parentage = null, Array.isArray(u))
257
258
  try {
258
- for (var s = V(u), a = s.next(); !a.done; a = s.next()) {
259
- var c = a.value;
259
+ for (var a = q(u), s = a.next(); !s.done; s = a.next()) {
260
+ var c = s.value;
260
261
  c.remove(this);
261
262
  }
262
263
  } catch (h) {
263
264
  t = { error: h };
264
265
  } finally {
265
266
  try {
266
- a && !a.done && (n = s.return) && n.call(s);
267
+ s && !s.done && (n = a.return) && n.call(a);
267
268
  } finally {
268
269
  if (t)
269
270
  throw t.error;
@@ -272,29 +273,29 @@ var N = function() {
272
273
  else
273
274
  u.remove(this);
274
275
  var l = this.initialTeardown;
275
- if (b(l))
276
+ if (S(l))
276
277
  try {
277
278
  l();
278
279
  } catch (h) {
279
- o = h instanceof oe ? h.errors : [h];
280
+ o = h instanceof ce ? h.errors : [h];
280
281
  }
281
- var d = this._finalizers;
282
- if (d) {
282
+ var f = this._finalizers;
283
+ if (f) {
283
284
  this._finalizers = null;
284
285
  try {
285
- for (var v = V(d), p = v.next(); !p.done; p = v.next()) {
286
- var S = p.value;
286
+ for (var d = q(f), p = d.next(); !p.done; p = d.next()) {
287
+ var y = p.value;
287
288
  try {
288
- We(S);
289
+ Qe(y);
289
290
  } catch (h) {
290
- o = o != null ? o : [], h instanceof oe ? o = R(R([], D(o)), D(h.errors)) : o.push(h);
291
+ o = o ?? [], h instanceof ce ? o = N(N([], M(o)), M(h.errors)) : o.push(h);
291
292
  }
292
293
  }
293
294
  } catch (h) {
294
295
  r = { error: h };
295
296
  } finally {
296
297
  try {
297
- p && !p.done && (i = v.return) && i.call(v);
298
+ p && !p.done && (i = d.return) && i.call(d);
298
299
  } finally {
299
300
  if (r)
300
301
  throw r.error;
@@ -302,13 +303,13 @@ var N = function() {
302
303
  }
303
304
  }
304
305
  if (o)
305
- throw new oe(o);
306
+ throw new ce(o);
306
307
  }
307
308
  }, e.prototype.add = function(t) {
308
309
  var n;
309
310
  if (t && t !== this)
310
311
  if (this.closed)
311
- We(t);
312
+ Qe(t);
312
313
  else {
313
314
  if (t instanceof e) {
314
315
  if (t.closed || t._hasParent(this))
@@ -325,67 +326,58 @@ var N = function() {
325
326
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
326
327
  }, e.prototype._removeParent = function(t) {
327
328
  var n = this._parentage;
328
- n === t ? this._parentage = null : Array.isArray(n) && B(n, t);
329
+ n === t ? this._parentage = null : Array.isArray(n) && te(n, t);
329
330
  }, e.prototype.remove = function(t) {
330
331
  var n = this._finalizers;
331
- n && B(n, t), t instanceof e && t._removeParent(this);
332
+ n && te(n, t), t instanceof e && t._removeParent(this);
332
333
  }, e.EMPTY = function() {
333
334
  var t = new e();
334
335
  return t.closed = !0, t;
335
336
  }(), e;
336
- }(), Ye = N.EMPTY;
337
- function Ge(e) {
338
- return e instanceof N || e && "closed" in e && b(e.remove) && b(e.add) && b(e.unsubscribe);
337
+ }(), tt = Q.EMPTY;
338
+ function nt(e) {
339
+ return e instanceof Q || e && "closed" in e && S(e.remove) && S(e.add) && S(e.unsubscribe);
339
340
  }
340
- function We(e) {
341
- b(e) ? e() : e.unsubscribe();
341
+ function Qe(e) {
342
+ S(e) ? e() : e.unsubscribe();
342
343
  }
343
- var be = {
344
+ var rt = {
344
345
  onUnhandledError: null,
345
346
  onStoppedNotification: null,
346
347
  Promise: void 0,
347
348
  useDeprecatedSynchronousErrorHandling: !1,
348
349
  useDeprecatedNextContext: !1
349
- }, le = {
350
+ }, me = {
350
351
  setTimeout: function(e, t) {
351
352
  for (var n = [], r = 2; r < arguments.length; r++)
352
353
  n[r - 2] = arguments[r];
353
- var i = le.delegate;
354
- return i != null && i.setTimeout ? i.setTimeout.apply(i, R([e, t], D(n))) : setTimeout.apply(void 0, R([e, t], D(n)));
354
+ var i = me.delegate;
355
+ return i != null && i.setTimeout ? i.setTimeout.apply(i, N([e, t], M(n))) : setTimeout.apply(void 0, N([e, t], M(n)));
355
356
  },
356
357
  clearTimeout: function(e) {
357
- var t = le.delegate;
358
+ var t = me.delegate;
358
359
  return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
359
360
  },
360
361
  delegate: void 0
361
362
  };
362
- function Je(e) {
363
- le.setTimeout(function() {
363
+ function it(e) {
364
+ me.setTimeout(function() {
364
365
  throw e;
365
366
  });
366
367
  }
367
- function fe() {
368
+ function be() {
368
369
  }
369
- var G = null;
370
- function z(e) {
371
- if (be.useDeprecatedSynchronousErrorHandling) {
372
- var t = !G;
373
- if (t && (G = { errorThrown: !1, error: null }), e(), t) {
374
- var n = G, r = n.errorThrown, i = n.error;
375
- if (G = null, r)
376
- throw i;
377
- }
378
- } else
379
- e();
370
+ function X(e) {
371
+ e();
380
372
  }
381
- var ye = function(e) {
382
- x(t, e);
373
+ var Ce = function(e) {
374
+ T(t, e);
383
375
  function t(n) {
384
376
  var r = e.call(this) || this;
385
- return r.isStopped = !1, n ? (r.destination = n, Ge(n) && n.add(r)) : r.destination = rn, r;
377
+ return r.isStopped = !1, n ? (r.destination = n, nt(n) && n.add(r)) : r.destination = hn, r;
386
378
  }
387
379
  return t.create = function(n, r, i) {
388
- return new L(n, r, i);
380
+ return new G(n, r, i);
389
381
  }, t.prototype.next = function(n) {
390
382
  this.isStopped || this._next(n);
391
383
  }, t.prototype.error = function(n) {
@@ -409,11 +401,11 @@ var ye = function(e) {
409
401
  this.unsubscribe();
410
402
  }
411
403
  }, t;
412
- }(N), en = Function.prototype.bind;
413
- function ue(e, t) {
414
- return en.call(e, t);
404
+ }(Q), fn = Function.prototype.bind;
405
+ function le(e, t) {
406
+ return fn.call(e, t);
415
407
  }
416
- var tn = function() {
408
+ var dn = function() {
417
409
  function e(t) {
418
410
  this.partialObserver = t;
419
411
  }
@@ -423,7 +415,7 @@ var tn = function() {
423
415
  try {
424
416
  n.next(t);
425
417
  } catch (r) {
426
- J(r);
418
+ Z(r);
427
419
  }
428
420
  }, e.prototype.error = function(t) {
429
421
  var n = this.partialObserver;
@@ -431,68 +423,68 @@ var tn = function() {
431
423
  try {
432
424
  n.error(t);
433
425
  } catch (r) {
434
- J(r);
426
+ Z(r);
435
427
  }
436
428
  else
437
- J(t);
429
+ Z(t);
438
430
  }, e.prototype.complete = function() {
439
431
  var t = this.partialObserver;
440
432
  if (t.complete)
441
433
  try {
442
434
  t.complete();
443
435
  } catch (n) {
444
- J(n);
436
+ Z(n);
445
437
  }
446
438
  }, e;
447
- }(), L = function(e) {
448
- x(t, e);
439
+ }(), G = function(e) {
440
+ T(t, e);
449
441
  function t(n, r, i) {
450
442
  var o = e.call(this) || this, u;
451
- if (b(n) || !n)
443
+ if (S(n) || !n)
452
444
  u = {
453
- next: n != null ? n : void 0,
454
- error: r != null ? r : void 0,
455
- complete: i != null ? i : void 0
445
+ next: n ?? void 0,
446
+ error: r ?? void 0,
447
+ complete: i ?? void 0
456
448
  };
457
449
  else {
458
- var s;
459
- o && be.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
450
+ var a;
451
+ o && rt.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
460
452
  return o.unsubscribe();
461
453
  }, u = {
462
- next: n.next && ue(n.next, s),
463
- error: n.error && ue(n.error, s),
464
- complete: n.complete && ue(n.complete, s)
454
+ next: n.next && le(n.next, a),
455
+ error: n.error && le(n.error, a),
456
+ complete: n.complete && le(n.complete, a)
465
457
  }) : u = n;
466
458
  }
467
- return o.destination = new tn(u), o;
459
+ return o.destination = new dn(u), o;
468
460
  }
469
461
  return t;
470
- }(ye);
471
- function J(e) {
472
- Je(e);
462
+ }(Ce);
463
+ function Z(e) {
464
+ it(e);
473
465
  }
474
- function nn(e) {
466
+ function vn(e) {
475
467
  throw e;
476
468
  }
477
- var rn = {
469
+ var hn = {
478
470
  closed: !0,
479
- next: fe,
480
- error: nn,
481
- complete: fe
482
- }, ge = function() {
471
+ next: be,
472
+ error: vn,
473
+ complete: be
474
+ }, xe = function() {
483
475
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
484
476
  }();
485
- function W(e) {
477
+ function Y(e) {
486
478
  return e;
487
479
  }
488
- function on(e) {
489
- return e.length === 0 ? W : e.length === 1 ? e[0] : function(n) {
480
+ function pn(e) {
481
+ return e.length === 0 ? Y : e.length === 1 ? e[0] : function(n) {
490
482
  return e.reduce(function(r, i) {
491
483
  return i(r);
492
484
  }, n);
493
485
  };
494
486
  }
495
- var y = function() {
487
+ var w = function() {
496
488
  function e(t) {
497
489
  t && (this._subscribe = t);
498
490
  }
@@ -500,10 +492,10 @@ var y = function() {
500
492
  var n = new e();
501
493
  return n.source = this, n.operator = t, n;
502
494
  }, e.prototype.subscribe = function(t, n, r) {
503
- var i = this, o = sn(t) ? t : new L(t, n, r);
504
- return z(function() {
505
- var u = i, s = u.operator, a = u.source;
506
- o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
495
+ var i = this, o = bn(t) ? t : new G(t, n, r);
496
+ return X(function() {
497
+ var u = i, a = u.operator, s = u.source;
498
+ o.add(a ? a.call(o, s) : s ? i._subscribe(o) : i._trySubscribe(o));
507
499
  }), o;
508
500
  }, e.prototype._trySubscribe = function(t) {
509
501
  try {
@@ -513,13 +505,13 @@ var y = function() {
513
505
  }
514
506
  }, e.prototype.forEach = function(t, n) {
515
507
  var r = this;
516
- return n = qe(n), new n(function(i, o) {
517
- var u = new L({
518
- next: function(s) {
508
+ return n = Ye(n), new n(function(i, o) {
509
+ var u = new G({
510
+ next: function(a) {
519
511
  try {
520
- t(s);
521
- } catch (a) {
522
- o(a), u.unsubscribe();
512
+ t(a);
513
+ } catch (s) {
514
+ o(s), u.unsubscribe();
523
515
  }
524
516
  },
525
517
  error: o,
@@ -530,15 +522,15 @@ var y = function() {
530
522
  }, e.prototype._subscribe = function(t) {
531
523
  var n;
532
524
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
533
- }, e.prototype[ge] = function() {
525
+ }, e.prototype[xe] = function() {
534
526
  return this;
535
527
  }, e.prototype.pipe = function() {
536
528
  for (var t = [], n = 0; n < arguments.length; n++)
537
529
  t[n] = arguments[n];
538
- return on(t)(this);
530
+ return pn(t)(this);
539
531
  }, e.prototype.toPromise = function(t) {
540
532
  var n = this;
541
- return t = qe(t), new t(function(r, i) {
533
+ return t = Ye(t), new t(function(r, i) {
542
534
  var o;
543
535
  n.subscribe(function(u) {
544
536
  return o = u;
@@ -552,22 +544,22 @@ var y = function() {
552
544
  return new e(t);
553
545
  }, e;
554
546
  }();
555
- function qe(e) {
547
+ function Ye(e) {
556
548
  var t;
557
- return (t = e != null ? e : be.Promise) !== null && t !== void 0 ? t : Promise;
549
+ return (t = e ?? rt.Promise) !== null && t !== void 0 ? t : Promise;
558
550
  }
559
- function un(e) {
560
- return e && b(e.next) && b(e.error) && b(e.complete);
551
+ function mn(e) {
552
+ return e && S(e.next) && S(e.error) && S(e.complete);
561
553
  }
562
- function sn(e) {
563
- return e && e instanceof ye || un(e) && Ge(e);
554
+ function bn(e) {
555
+ return e && e instanceof Ce || mn(e) && nt(e);
564
556
  }
565
- function an(e) {
566
- return b(e == null ? void 0 : e.lift);
557
+ function yn(e) {
558
+ return S(e == null ? void 0 : e.lift);
567
559
  }
568
- function _(e) {
560
+ function x(e) {
569
561
  return function(t) {
570
- if (an(t))
562
+ if (yn(t))
571
563
  return t.lift(function(n) {
572
564
  try {
573
565
  return e(n, this);
@@ -578,20 +570,20 @@ function _(e) {
578
570
  throw new TypeError("Unable to lift unknown Observable type");
579
571
  };
580
572
  }
581
- function w(e, t, n, r, i) {
582
- return new cn(e, t, n, r, i);
573
+ function C(e, t, n, r, i) {
574
+ return new gn(e, t, n, r, i);
583
575
  }
584
- var cn = function(e) {
585
- x(t, e);
586
- function t(n, r, i, o, u, s) {
587
- var a = e.call(this, n) || this;
588
- return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = r ? function(c) {
576
+ var gn = function(e) {
577
+ T(t, e);
578
+ function t(n, r, i, o, u, a) {
579
+ var s = e.call(this, n) || this;
580
+ return s.onFinalize = u, s.shouldUnsubscribe = a, s._next = r ? function(c) {
589
581
  try {
590
582
  r(c);
591
583
  } catch (l) {
592
584
  n.error(l);
593
585
  }
594
- } : e.prototype._next, a._error = o ? function(c) {
586
+ } : e.prototype._next, s._error = o ? function(c) {
595
587
  try {
596
588
  o(c);
597
589
  } catch (l) {
@@ -599,7 +591,7 @@ var cn = function(e) {
599
591
  } finally {
600
592
  this.unsubscribe();
601
593
  }
602
- } : e.prototype._error, a._complete = i ? function() {
594
+ } : e.prototype._error, s._complete = i ? function() {
603
595
  try {
604
596
  i();
605
597
  } catch (c) {
@@ -607,7 +599,7 @@ var cn = function(e) {
607
599
  } finally {
608
600
  this.unsubscribe();
609
601
  }
610
- } : e.prototype._complete, a;
602
+ } : e.prototype._complete, s;
611
603
  }
612
604
  return t.prototype.unsubscribe = function() {
613
605
  var n;
@@ -616,38 +608,38 @@ var cn = function(e) {
616
608
  e.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
617
609
  }
618
610
  }, t;
619
- }(ye), ln = me(function(e) {
611
+ }(Ce), _n = Ee(function(e) {
620
612
  return function() {
621
613
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
622
614
  };
623
- }), ne = function(e) {
624
- x(t, e);
615
+ }), oe = function(e) {
616
+ T(t, e);
625
617
  function t() {
626
618
  var n = e.call(this) || this;
627
619
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
628
620
  }
629
621
  return t.prototype.lift = function(n) {
630
- var r = new Qe(this, this);
622
+ var r = new Be(this, this);
631
623
  return r.operator = n, r;
632
624
  }, t.prototype._throwIfClosed = function() {
633
625
  if (this.closed)
634
- throw new ln();
626
+ throw new _n();
635
627
  }, t.prototype.next = function(n) {
636
628
  var r = this;
637
- z(function() {
629
+ X(function() {
638
630
  var i, o;
639
631
  if (r._throwIfClosed(), !r.isStopped) {
640
632
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
641
633
  try {
642
- for (var u = V(r.currentObservers), s = u.next(); !s.done; s = u.next()) {
643
- var a = s.value;
644
- a.next(n);
634
+ for (var u = q(r.currentObservers), a = u.next(); !a.done; a = u.next()) {
635
+ var s = a.value;
636
+ s.next(n);
645
637
  }
646
638
  } catch (c) {
647
639
  i = { error: c };
648
640
  } finally {
649
641
  try {
650
- s && !s.done && (o = u.return) && o.call(u);
642
+ a && !a.done && (o = u.return) && o.call(u);
651
643
  } finally {
652
644
  if (i)
653
645
  throw i.error;
@@ -657,7 +649,7 @@ var cn = function(e) {
657
649
  });
658
650
  }, t.prototype.error = function(n) {
659
651
  var r = this;
660
- z(function() {
652
+ X(function() {
661
653
  if (r._throwIfClosed(), !r.isStopped) {
662
654
  r.hasError = r.isStopped = !0, r.thrownError = n;
663
655
  for (var i = r.observers; i.length; )
@@ -666,7 +658,7 @@ var cn = function(e) {
666
658
  });
667
659
  }, t.prototype.complete = function() {
668
660
  var n = this;
669
- z(function() {
661
+ X(function() {
670
662
  if (n._throwIfClosed(), !n.isStopped) {
671
663
  n.isStopped = !0;
672
664
  for (var r = n.observers; r.length; )
@@ -687,21 +679,21 @@ var cn = function(e) {
687
679
  }, t.prototype._subscribe = function(n) {
688
680
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
689
681
  }, t.prototype._innerSubscribe = function(n) {
690
- var r = this, i = this, o = i.hasError, u = i.isStopped, s = i.observers;
691
- return o || u ? Ye : (this.currentObservers = null, s.push(n), new N(function() {
692
- r.currentObservers = null, B(s, n);
682
+ var r = this, i = this, o = i.hasError, u = i.isStopped, a = i.observers;
683
+ return o || u ? tt : (this.currentObservers = null, a.push(n), new Q(function() {
684
+ r.currentObservers = null, te(a, n);
693
685
  }));
694
686
  }, t.prototype._checkFinalizedStatuses = function(n) {
695
687
  var r = this, i = r.hasError, o = r.thrownError, u = r.isStopped;
696
688
  i ? n.error(o) : u && n.complete();
697
689
  }, t.prototype.asObservable = function() {
698
- var n = new y();
690
+ var n = new w();
699
691
  return n.source = this, n;
700
692
  }, t.create = function(n, r) {
701
- return new Qe(n, r);
693
+ return new Be(n, r);
702
694
  }, t;
703
- }(y), Qe = function(e) {
704
- x(t, e);
695
+ }(w), Be = function(e) {
696
+ T(t, e);
705
697
  function t(n, r) {
706
698
  var i = e.call(this) || this;
707
699
  return i.destination = n, i.source = r, i;
@@ -717,74 +709,75 @@ var cn = function(e) {
717
709
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
718
710
  }, t.prototype._subscribe = function(n) {
719
711
  var r, i;
720
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Ye;
712
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : tt;
721
713
  }, t;
722
- }(ne), we = {
714
+ }(oe), Oe = {
723
715
  now: function() {
724
- return (we.delegate || Date).now();
716
+ return (Oe.delegate || Date).now();
725
717
  },
726
718
  delegate: void 0
727
- }, fn = function(e) {
728
- x(t, e);
719
+ }, Sn = function(e) {
720
+ T(t, e);
729
721
  function t(n, r, i) {
730
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = we);
722
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Oe);
731
723
  var o = e.call(this) || this;
732
724
  return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
733
725
  }
734
726
  return t.prototype.next = function(n) {
735
- var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow, s = r._timestampProvider, a = r._windowTime;
736
- i || (o.push(n), !u && o.push(s.now() + a)), this._trimBuffer(), e.prototype.next.call(this, n);
727
+ var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow, a = r._timestampProvider, s = r._windowTime;
728
+ i || (o.push(n), !u && o.push(a.now() + s)), this._trimBuffer(), e.prototype.next.call(this, n);
737
729
  }, t.prototype._subscribe = function(n) {
738
730
  this._throwIfClosed(), this._trimBuffer();
739
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer, s = u.slice(), a = 0; a < s.length && !n.closed; a += o ? 1 : 2)
740
- n.next(s[a]);
731
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer, a = u.slice(), s = 0; s < a.length && !n.closed; s += o ? 1 : 2)
732
+ n.next(a[s]);
741
733
  return this._checkFinalizedStatuses(n), r;
742
734
  }, t.prototype._trimBuffer = function() {
743
- var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow, s = (u ? 1 : 2) * r;
744
- if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !u) {
745
- for (var a = i.now(), c = 0, l = 1; l < o.length && o[l] <= a; l += 2)
735
+ var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow, a = (u ? 1 : 2) * r;
736
+ if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !u) {
737
+ for (var s = i.now(), c = 0, l = 1; l < o.length && o[l] <= s; l += 2)
746
738
  c = l;
747
739
  c && o.splice(0, c + 1);
748
740
  }
749
741
  }, t;
750
- }(ne), dn = function(e) {
751
- x(t, e);
742
+ }(oe), wn = function(e) {
743
+ T(t, e);
752
744
  function t(n, r) {
753
745
  return e.call(this) || this;
754
746
  }
755
747
  return t.prototype.schedule = function(n, r) {
756
748
  return this;
757
749
  }, t;
758
- }(N), X = {
750
+ }(Q), ne = {
759
751
  setInterval: function(e, t) {
760
752
  for (var n = [], r = 2; r < arguments.length; r++)
761
753
  n[r - 2] = arguments[r];
762
- var i = X.delegate;
763
- return i != null && i.setInterval ? i.setInterval.apply(i, R([e, t], D(n))) : setInterval.apply(void 0, R([e, t], D(n)));
754
+ var i = ne.delegate;
755
+ return i != null && i.setInterval ? i.setInterval.apply(i, N([e, t], M(n))) : setInterval.apply(void 0, N([e, t], M(n)));
764
756
  },
765
757
  clearInterval: function(e) {
766
- var t = X.delegate;
758
+ var t = ne.delegate;
767
759
  return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
768
760
  },
769
761
  delegate: void 0
770
- }, vn = function(e) {
771
- x(t, e);
762
+ }, En = function(e) {
763
+ T(t, e);
772
764
  function t(n, r) {
773
765
  var i = e.call(this, n, r) || this;
774
766
  return i.scheduler = n, i.work = r, i.pending = !1, i;
775
767
  }
776
768
  return t.prototype.schedule = function(n, r) {
769
+ var i;
777
770
  if (r === void 0 && (r = 0), this.closed)
778
771
  return this;
779
772
  this.state = n;
780
- var i = this.id, o = this.scheduler;
781
- return i != null && (this.id = this.recycleAsyncId(o, i, r)), this.pending = !0, this.delay = r, this.id = this.id || this.requestAsyncId(o, this.id, r), this;
773
+ var o = this.id, u = this.scheduler;
774
+ return o != null && (this.id = this.recycleAsyncId(u, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(u, this.id, r), this;
782
775
  }, t.prototype.requestAsyncId = function(n, r, i) {
783
- return i === void 0 && (i = 0), X.setInterval(n.flush.bind(n, this), i);
776
+ return i === void 0 && (i = 0), ne.setInterval(n.flush.bind(n, this), i);
784
777
  }, t.prototype.recycleAsyncId = function(n, r, i) {
785
778
  if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
786
779
  return r;
787
- X.clearInterval(r);
780
+ r != null && ne.clearInterval(r);
788
781
  }, t.prototype.execute = function(n, r) {
789
782
  if (this.closed)
790
783
  return new Error("executing a cancelled action");
@@ -805,22 +798,22 @@ var cn = function(e) {
805
798
  }, t.prototype.unsubscribe = function() {
806
799
  if (!this.closed) {
807
800
  var n = this, r = n.id, i = n.scheduler, o = i.actions;
808
- this.work = this.state = this.scheduler = null, this.pending = !1, B(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
801
+ this.work = this.state = this.scheduler = null, this.pending = !1, te(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
809
802
  }
810
803
  }, t;
811
- }(dn), He = function() {
804
+ }(wn), Je = function() {
812
805
  function e(t, n) {
813
806
  n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
814
807
  }
815
808
  return e.prototype.schedule = function(t, n, r) {
816
809
  return n === void 0 && (n = 0), new this.schedulerActionCtor(this, t).schedule(r, n);
817
- }, e.now = we.now, e;
818
- }(), hn = function(e) {
819
- x(t, e);
810
+ }, e.now = Oe.now, e;
811
+ }(), Cn = function(e) {
812
+ T(t, e);
820
813
  function t(n, r) {
821
- r === void 0 && (r = He.now);
814
+ r === void 0 && (r = Je.now);
822
815
  var i = e.call(this, n, r) || this;
823
- return i.actions = [], i._active = !1, i._scheduled = void 0, i;
816
+ return i.actions = [], i._active = !1, i;
824
817
  }
825
818
  return t.prototype.flush = function(n) {
826
819
  var r = this.actions;
@@ -840,70 +833,70 @@ var cn = function(e) {
840
833
  throw i;
841
834
  }
842
835
  }, t;
843
- }(He), _e = new hn(vn), pn = _e, Se = new y(function(e) {
836
+ }(Je), Ie = new Cn(En), xn = Ie, Ae = new w(function(e) {
844
837
  return e.complete();
845
838
  });
846
- function mn(e) {
847
- return e ? bn(e) : Se;
839
+ function On(e) {
840
+ return e ? In(e) : Ae;
848
841
  }
849
- function bn(e) {
850
- return new y(function(t) {
842
+ function In(e) {
843
+ return new w(function(t) {
851
844
  return e.schedule(function() {
852
845
  return t.complete();
853
846
  });
854
847
  });
855
848
  }
856
- function ze(e) {
857
- return e && b(e.schedule);
849
+ function ot(e) {
850
+ return e && S(e.schedule);
858
851
  }
859
- function Ze(e) {
852
+ function ut(e) {
860
853
  return e[e.length - 1];
861
854
  }
862
- function Ce(e) {
863
- return ze(Ze(e)) ? e.pop() : void 0;
855
+ function ke(e) {
856
+ return ot(ut(e)) ? e.pop() : void 0;
864
857
  }
865
- function yn(e, t) {
866
- return typeof Ze(e) == "number" ? e.pop() : t;
858
+ function An(e, t) {
859
+ return typeof ut(e) == "number" ? e.pop() : t;
867
860
  }
868
- var Be = function(e) {
861
+ var at = function(e) {
869
862
  return e && typeof e.length == "number" && typeof e != "function";
870
863
  };
871
- function Xe(e) {
872
- return b(e == null ? void 0 : e.then);
864
+ function st(e) {
865
+ return S(e == null ? void 0 : e.then);
873
866
  }
874
- function et(e) {
875
- return b(e[ge]);
867
+ function ct(e) {
868
+ return S(e[xe]);
876
869
  }
877
- function tt(e) {
878
- return Symbol.asyncIterator && b(e == null ? void 0 : e[Symbol.asyncIterator]);
870
+ function lt(e) {
871
+ return Symbol.asyncIterator && S(e == null ? void 0 : e[Symbol.asyncIterator]);
879
872
  }
880
- function nt(e) {
873
+ function ft(e) {
881
874
  return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
882
875
  }
883
- function gn() {
876
+ function kn() {
884
877
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
885
878
  }
886
- var rt = gn();
887
- function it(e) {
888
- return b(e == null ? void 0 : e[rt]);
879
+ var dt = kn();
880
+ function vt(e) {
881
+ return S(e == null ? void 0 : e[dt]);
889
882
  }
890
- function ot(e) {
891
- return Bt(this, arguments, function() {
883
+ function ht(e) {
884
+ return cn(this, arguments, function() {
892
885
  var n, r, i, o;
893
- return Ke(this, function(u) {
886
+ return et(this, function(u) {
894
887
  switch (u.label) {
895
888
  case 0:
896
889
  n = e.getReader(), u.label = 1;
897
890
  case 1:
898
891
  u.trys.push([1, , 9, 10]), u.label = 2;
899
892
  case 2:
900
- return [4, U(n.read())];
893
+ return [4, W(n.read())];
901
894
  case 3:
902
- return r = u.sent(), i = r.value, o = r.done, o ? [4, U(void 0)] : [3, 5];
895
+ return r = u.sent(), i = r.value, o = r.done, o ? [4, W(void 0)] : [3, 5];
903
896
  case 4:
904
897
  return [2, u.sent()];
905
898
  case 5:
906
- return [4, U(i)];
899
+ return [4, W(i)];
907
900
  case 6:
908
901
  return [4, u.sent()];
909
902
  case 7:
@@ -918,63 +911,63 @@ function ot(e) {
918
911
  });
919
912
  });
920
913
  }
921
- function ut(e) {
922
- return b(e == null ? void 0 : e.getReader);
914
+ function pt(e) {
915
+ return S(e == null ? void 0 : e.getReader);
923
916
  }
924
- function I(e) {
925
- if (e instanceof y)
917
+ function k(e) {
918
+ if (e instanceof w)
926
919
  return e;
927
920
  if (e != null) {
928
- if (et(e))
929
- return wn(e);
930
- if (Be(e))
931
- return _n(e);
932
- if (Xe(e))
933
- return Sn(e);
934
- if (tt(e))
935
- return st(e);
936
- if (it(e))
937
- return Cn(e);
938
- if (ut(e))
939
- return En(e);
921
+ if (ct(e))
922
+ return Fn(e);
923
+ if (at(e))
924
+ return Pn(e);
925
+ if (st(e))
926
+ return Tn(e);
927
+ if (lt(e))
928
+ return mt(e);
929
+ if (vt(e))
930
+ return $n(e);
931
+ if (pt(e))
932
+ return Dn(e);
940
933
  }
941
- throw nt(e);
934
+ throw ft(e);
942
935
  }
943
- function wn(e) {
944
- return new y(function(t) {
945
- var n = e[ge]();
946
- if (b(n.subscribe))
936
+ function Fn(e) {
937
+ return new w(function(t) {
938
+ var n = e[xe]();
939
+ if (S(n.subscribe))
947
940
  return n.subscribe(t);
948
941
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
949
942
  });
950
943
  }
951
- function _n(e) {
952
- return new y(function(t) {
944
+ function Pn(e) {
945
+ return new w(function(t) {
953
946
  for (var n = 0; n < e.length && !t.closed; n++)
954
947
  t.next(e[n]);
955
948
  t.complete();
956
949
  });
957
950
  }
958
- function Sn(e) {
959
- return new y(function(t) {
951
+ function Tn(e) {
952
+ return new w(function(t) {
960
953
  e.then(function(n) {
961
954
  t.closed || (t.next(n), t.complete());
962
955
  }, function(n) {
963
956
  return t.error(n);
964
- }).then(null, Je);
957
+ }).then(null, it);
965
958
  });
966
959
  }
967
- function Cn(e) {
968
- return new y(function(t) {
960
+ function $n(e) {
961
+ return new w(function(t) {
969
962
  var n, r;
970
963
  try {
971
- for (var i = V(e), o = i.next(); !o.done; o = i.next()) {
964
+ for (var i = q(e), o = i.next(); !o.done; o = i.next()) {
972
965
  var u = o.value;
973
966
  if (t.next(u), t.closed)
974
967
  return;
975
968
  }
976
- } catch (s) {
977
- n = { error: s };
969
+ } catch (a) {
970
+ n = { error: a };
978
971
  } finally {
979
972
  try {
980
973
  o && !o.done && (r = i.return) && r.call(i);
@@ -986,42 +979,42 @@ function Cn(e) {
986
979
  t.complete();
987
980
  });
988
981
  }
989
- function st(e) {
990
- return new y(function(t) {
991
- xn(e, t).catch(function(n) {
982
+ function mt(e) {
983
+ return new w(function(t) {
984
+ Rn(e, t).catch(function(n) {
992
985
  return t.error(n);
993
986
  });
994
987
  });
995
988
  }
996
- function En(e) {
997
- return st(ot(e));
989
+ function Dn(e) {
990
+ return mt(ht(e));
998
991
  }
999
- function xn(e, t) {
992
+ function Rn(e, t) {
1000
993
  var n, r, i, o;
1001
- return pe(this, void 0, void 0, function() {
1002
- var u, s;
1003
- return Ke(this, function(a) {
1004
- switch (a.label) {
994
+ return we(this, void 0, void 0, function() {
995
+ var u, a;
996
+ return et(this, function(s) {
997
+ switch (s.label) {
1005
998
  case 0:
1006
- a.trys.push([0, 5, 6, 11]), n = Xt(e), a.label = 1;
999
+ s.trys.push([0, 5, 6, 11]), n = ln(e), s.label = 1;
1007
1000
  case 1:
1008
1001
  return [4, n.next()];
1009
1002
  case 2:
1010
- if (r = a.sent(), !!r.done)
1003
+ if (r = s.sent(), !!r.done)
1011
1004
  return [3, 4];
1012
1005
  if (u = r.value, t.next(u), t.closed)
1013
1006
  return [2];
1014
- a.label = 3;
1007
+ s.label = 3;
1015
1008
  case 3:
1016
1009
  return [3, 1];
1017
1010
  case 4:
1018
1011
  return [3, 11];
1019
1012
  case 5:
1020
- return s = a.sent(), i = { error: s }, [3, 11];
1013
+ return a = s.sent(), i = { error: a }, [3, 11];
1021
1014
  case 6:
1022
- return a.trys.push([6, , 9, 10]), r && !r.done && (o = n.return) ? [4, o.call(n)] : [3, 8];
1015
+ return s.trys.push([6, , 9, 10]), r && !r.done && (o = n.return) ? [4, o.call(n)] : [3, 8];
1023
1016
  case 7:
1024
- a.sent(), a.label = 8;
1017
+ s.sent(), s.label = 8;
1025
1018
  case 8:
1026
1019
  return [3, 10];
1027
1020
  case 9:
@@ -1036,7 +1029,7 @@ function xn(e, t) {
1036
1029
  });
1037
1030
  });
1038
1031
  }
1039
- function P(e, t, n, r, i) {
1032
+ function V(e, t, n, r, i) {
1040
1033
  r === void 0 && (r = 0), i === void 0 && (i = !1);
1041
1034
  var o = t.schedule(function() {
1042
1035
  n(), i ? e.add(this.schedule(null, r)) : this.unsubscribe();
@@ -1044,70 +1037,70 @@ function P(e, t, n, r, i) {
1044
1037
  if (e.add(o), !i)
1045
1038
  return o;
1046
1039
  }
1047
- function at(e, t) {
1048
- return t === void 0 && (t = 0), _(function(n, r) {
1049
- n.subscribe(w(r, function(i) {
1050
- return P(r, e, function() {
1040
+ function bt(e, t) {
1041
+ return t === void 0 && (t = 0), x(function(n, r) {
1042
+ n.subscribe(C(r, function(i) {
1043
+ return V(r, e, function() {
1051
1044
  return r.next(i);
1052
1045
  }, t);
1053
1046
  }, function() {
1054
- return P(r, e, function() {
1047
+ return V(r, e, function() {
1055
1048
  return r.complete();
1056
1049
  }, t);
1057
1050
  }, function(i) {
1058
- return P(r, e, function() {
1051
+ return V(r, e, function() {
1059
1052
  return r.error(i);
1060
1053
  }, t);
1061
1054
  }));
1062
1055
  });
1063
1056
  }
1064
- function ct(e, t) {
1065
- return t === void 0 && (t = 0), _(function(n, r) {
1057
+ function yt(e, t) {
1058
+ return t === void 0 && (t = 0), x(function(n, r) {
1066
1059
  r.add(e.schedule(function() {
1067
1060
  return n.subscribe(r);
1068
1061
  }, t));
1069
1062
  });
1070
1063
  }
1071
- function In(e, t) {
1072
- return I(e).pipe(ct(t), at(t));
1064
+ function jn(e, t) {
1065
+ return k(e).pipe(yt(t), bt(t));
1073
1066
  }
1074
- function On(e, t) {
1075
- return I(e).pipe(ct(t), at(t));
1067
+ function Ln(e, t) {
1068
+ return k(e).pipe(yt(t), bt(t));
1076
1069
  }
1077
- function kn(e, t) {
1078
- return new y(function(n) {
1070
+ function Vn(e, t) {
1071
+ return new w(function(n) {
1079
1072
  var r = 0;
1080
1073
  return t.schedule(function() {
1081
1074
  r === e.length ? n.complete() : (n.next(e[r++]), n.closed || this.schedule());
1082
1075
  });
1083
1076
  });
1084
1077
  }
1085
- function An(e, t) {
1086
- return new y(function(n) {
1078
+ function Un(e, t) {
1079
+ return new w(function(n) {
1087
1080
  var r;
1088
- return P(n, t, function() {
1089
- r = e[rt](), P(n, t, function() {
1081
+ return V(n, t, function() {
1082
+ r = e[dt](), V(n, t, function() {
1090
1083
  var i, o, u;
1091
1084
  try {
1092
1085
  i = r.next(), o = i.value, u = i.done;
1093
- } catch (s) {
1094
- n.error(s);
1086
+ } catch (a) {
1087
+ n.error(a);
1095
1088
  return;
1096
1089
  }
1097
1090
  u ? n.complete() : n.next(o);
1098
1091
  }, 0, !0);
1099
1092
  }), function() {
1100
- return b(r == null ? void 0 : r.return) && r.return();
1093
+ return S(r == null ? void 0 : r.return) && r.return();
1101
1094
  };
1102
1095
  });
1103
1096
  }
1104
- function lt(e, t) {
1097
+ function gt(e, t) {
1105
1098
  if (!e)
1106
1099
  throw new Error("Iterable cannot be null");
1107
- return new y(function(n) {
1108
- P(n, t, function() {
1100
+ return new w(function(n) {
1101
+ V(n, t, function() {
1109
1102
  var r = e[Symbol.asyncIterator]();
1110
- P(n, t, function() {
1103
+ V(n, t, function() {
1111
1104
  r.next().then(function(i) {
1112
1105
  i.done ? n.complete() : n.next(i.value);
1113
1106
  });
@@ -1115,111 +1108,111 @@ function lt(e, t) {
1115
1108
  });
1116
1109
  });
1117
1110
  }
1118
- function Fn(e, t) {
1119
- return lt(ot(e), t);
1111
+ function Mn(e, t) {
1112
+ return gt(ht(e), t);
1120
1113
  }
1121
- function Pn(e, t) {
1114
+ function Nn(e, t) {
1122
1115
  if (e != null) {
1123
- if (et(e))
1124
- return In(e, t);
1125
- if (Be(e))
1126
- return kn(e, t);
1127
- if (Xe(e))
1128
- return On(e, t);
1129
- if (tt(e))
1130
- return lt(e, t);
1131
- if (it(e))
1132
- return An(e, t);
1133
- if (ut(e))
1134
- return Fn(e, t);
1116
+ if (ct(e))
1117
+ return jn(e, t);
1118
+ if (at(e))
1119
+ return Vn(e, t);
1120
+ if (st(e))
1121
+ return Ln(e, t);
1122
+ if (lt(e))
1123
+ return gt(e, t);
1124
+ if (vt(e))
1125
+ return Un(e, t);
1126
+ if (pt(e))
1127
+ return Mn(e, t);
1135
1128
  }
1136
- throw nt(e);
1129
+ throw ft(e);
1137
1130
  }
1138
- function O(e, t) {
1139
- return t ? Pn(e, t) : I(e);
1131
+ function $(e, t) {
1132
+ return t ? Nn(e, t) : k(e);
1140
1133
  }
1141
- function ee() {
1134
+ function re() {
1142
1135
  for (var e = [], t = 0; t < arguments.length; t++)
1143
1136
  e[t] = arguments[t];
1144
- var n = Ce(e);
1145
- return O(e, n);
1137
+ var n = ke(e);
1138
+ return $(e, n);
1146
1139
  }
1147
- var ft = me(function(e) {
1140
+ var _t = Ee(function(e) {
1148
1141
  return function() {
1149
1142
  e(this), this.name = "EmptyError", this.message = "no elements in sequence";
1150
1143
  };
1151
1144
  });
1152
- function $n(e) {
1145
+ function Wn(e) {
1153
1146
  return e instanceof Date && !isNaN(e);
1154
1147
  }
1155
- function C(e, t) {
1156
- return _(function(n, r) {
1148
+ function P(e, t) {
1149
+ return x(function(n, r) {
1157
1150
  var i = 0;
1158
- n.subscribe(w(r, function(o) {
1151
+ n.subscribe(C(r, function(o) {
1159
1152
  r.next(e.call(t, o, i++));
1160
1153
  }));
1161
1154
  });
1162
1155
  }
1163
- function Tn(e, t, n, r, i, o, u, s) {
1164
- var a = [], c = 0, l = 0, d = !1, v = function() {
1165
- d && !a.length && !c && t.complete();
1156
+ function qn(e, t, n, r, i, o, u, a) {
1157
+ var s = [], c = 0, l = 0, f = !1, d = function() {
1158
+ f && !s.length && !c && t.complete();
1166
1159
  }, p = function(h) {
1167
- return c < r ? S(h) : a.push(h);
1168
- }, S = function(h) {
1160
+ return c < r ? y(h) : s.push(h);
1161
+ }, y = function(h) {
1169
1162
  o && t.next(h), c++;
1170
- var $ = !1;
1171
- I(n(h, l++)).subscribe(w(t, function(E) {
1172
- i == null || i(E), o ? p(E) : t.next(E);
1163
+ var I = !1;
1164
+ k(n(h, l++)).subscribe(C(t, function(A) {
1165
+ i == null || i(A), o ? p(A) : t.next(A);
1173
1166
  }, function() {
1174
- $ = !0;
1167
+ I = !0;
1175
1168
  }, void 0, function() {
1176
- if ($)
1169
+ if (I)
1177
1170
  try {
1178
1171
  c--;
1179
- for (var E = function() {
1180
- var j = a.shift();
1181
- u ? P(t, u, function() {
1182
- return S(j);
1183
- }) : S(j);
1184
- }; a.length && c < r; )
1185
- E();
1186
- v();
1187
- } catch (j) {
1188
- t.error(j);
1172
+ for (var A = function() {
1173
+ var L = s.shift();
1174
+ u ? V(t, u, function() {
1175
+ return y(L);
1176
+ }) : y(L);
1177
+ }; s.length && c < r; )
1178
+ A();
1179
+ d();
1180
+ } catch (L) {
1181
+ t.error(L);
1189
1182
  }
1190
1183
  }));
1191
1184
  };
1192
- return e.subscribe(w(t, p, function() {
1193
- d = !0, v();
1185
+ return e.subscribe(C(t, p, function() {
1186
+ f = !0, d();
1194
1187
  })), function() {
1195
- s == null || s();
1188
+ a == null || a();
1196
1189
  };
1197
1190
  }
1198
- function Ee(e, t, n) {
1199
- return n === void 0 && (n = 1 / 0), b(t) ? Ee(function(r, i) {
1200
- return C(function(o, u) {
1191
+ function Fe(e, t, n) {
1192
+ return n === void 0 && (n = 1 / 0), S(t) ? Fe(function(r, i) {
1193
+ return P(function(o, u) {
1201
1194
  return t(r, o, i, u);
1202
- })(I(e(r, i)));
1203
- }, n) : (typeof t == "number" && (n = t), _(function(r, i) {
1204
- return Tn(r, i, e, n);
1195
+ })(k(e(r, i)));
1196
+ }, n) : (typeof t == "number" && (n = t), x(function(r, i) {
1197
+ return qn(r, i, e, n);
1205
1198
  }));
1206
1199
  }
1207
- function dt(e) {
1208
- return e === void 0 && (e = 1 / 0), Ee(W, e);
1200
+ function St(e) {
1201
+ return e === void 0 && (e = 1 / 0), Fe(Y, e);
1209
1202
  }
1210
- function Dn() {
1211
- return dt(1);
1203
+ function Kn() {
1204
+ return St(1);
1212
1205
  }
1213
- function Rn() {
1206
+ function Hn() {
1214
1207
  for (var e = [], t = 0; t < arguments.length; t++)
1215
1208
  e[t] = arguments[t];
1216
- return Dn()(O(e, Ce(e)));
1209
+ return Kn()($(e, ke(e)));
1217
1210
  }
1218
- function jn(e, t, n) {
1219
- e === void 0 && (e = 0), n === void 0 && (n = pn);
1211
+ function Gn(e, t, n) {
1212
+ e === void 0 && (e = 0), n === void 0 && (n = xn);
1220
1213
  var r = -1;
1221
- return t != null && (ze(t) ? n = t : r = t), new y(function(i) {
1222
- var o = $n(e) ? +e - n.now() : e;
1214
+ return t != null && (ot(t) ? n = t : r = t), new w(function(i) {
1215
+ var o = Wn(e) ? +e - n.now() : e;
1223
1216
  o < 0 && (o = 0);
1224
1217
  var u = 0;
1225
1218
  return n.schedule(function() {
@@ -1227,181 +1220,181 @@ function jn(e, t, n) {
1227
1220
  }, o);
1228
1221
  });
1229
1222
  }
1230
- function Un() {
1223
+ function Qn() {
1231
1224
  for (var e = [], t = 0; t < arguments.length; t++)
1232
1225
  e[t] = arguments[t];
1233
- var n = Ce(e), r = yn(e, 1 / 0), i = e;
1234
- return i.length ? i.length === 1 ? I(i[0]) : dt(r)(O(i, n)) : Se;
1226
+ var n = ke(e), r = An(e, 1 / 0), i = e;
1227
+ return i.length ? i.length === 1 ? k(i[0]) : St(r)($(i, n)) : Ae;
1235
1228
  }
1236
- function Vn(e, t) {
1237
- return _(function(n, r) {
1229
+ function Yn(e, t) {
1230
+ return x(function(n, r) {
1238
1231
  var i = 0;
1239
- n.subscribe(w(r, function(o) {
1232
+ n.subscribe(C(r, function(o) {
1240
1233
  return e.call(t, o, i++) && r.next(o);
1241
1234
  }));
1242
1235
  });
1243
1236
  }
1244
- function vt(e) {
1245
- return _(function(t, n) {
1237
+ function wt(e) {
1238
+ return x(function(t, n) {
1246
1239
  var r = null, i = !1, o;
1247
- r = t.subscribe(w(n, void 0, void 0, function(u) {
1248
- o = I(e(u, vt(e)(t))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
1240
+ r = t.subscribe(C(n, void 0, void 0, function(u) {
1241
+ o = k(e(u, wt(e)(t))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
1249
1242
  })), i && (r.unsubscribe(), r = null, o.subscribe(n));
1250
1243
  });
1251
1244
  }
1252
- function Mn(e, t, n, r, i) {
1245
+ function Bn(e, t, n, r, i) {
1253
1246
  return function(o, u) {
1254
- var s = n, a = t, c = 0;
1255
- o.subscribe(w(u, function(l) {
1256
- var d = c++;
1257
- a = s ? e(a, l, d) : (s = !0, l), r && u.next(a);
1247
+ var a = n, s = t, c = 0;
1248
+ o.subscribe(C(u, function(l) {
1249
+ var f = c++;
1250
+ s = a ? e(s, l, f) : (a = !0, l), r && u.next(s);
1258
1251
  }, i && function() {
1259
- s && u.next(a), u.complete();
1252
+ a && u.next(s), u.complete();
1260
1253
  }));
1261
1254
  };
1262
1255
  }
1263
- function Ln(e, t) {
1264
- return t === void 0 && (t = _e), _(function(n, r) {
1265
- var i = null, o = null, u = null, s = function() {
1256
+ function Jn(e, t) {
1257
+ return t === void 0 && (t = Ie), x(function(n, r) {
1258
+ var i = null, o = null, u = null, a = function() {
1266
1259
  if (i) {
1267
1260
  i.unsubscribe(), i = null;
1268
1261
  var c = o;
1269
1262
  o = null, r.next(c);
1270
1263
  }
1271
1264
  };
1272
- function a() {
1265
+ function s() {
1273
1266
  var c = u + e, l = t.now();
1274
1267
  if (l < c) {
1275
1268
  i = this.schedule(void 0, c - l), r.add(i);
1276
1269
  return;
1277
1270
  }
1278
- s();
1271
+ a();
1279
1272
  }
1280
- n.subscribe(w(r, function(c) {
1281
- o = c, u = t.now(), i || (i = t.schedule(a, e), r.add(i));
1273
+ n.subscribe(C(r, function(c) {
1274
+ o = c, u = t.now(), i || (i = t.schedule(s, e), r.add(i));
1282
1275
  }, function() {
1283
- s(), r.complete();
1276
+ a(), r.complete();
1284
1277
  }, void 0, function() {
1285
1278
  o = i = null;
1286
1279
  }));
1287
1280
  });
1288
1281
  }
1289
- function Nn(e) {
1290
- return _(function(t, n) {
1282
+ function zn(e) {
1283
+ return x(function(t, n) {
1291
1284
  var r = !1;
1292
- t.subscribe(w(n, function(i) {
1285
+ t.subscribe(C(n, function(i) {
1293
1286
  r = !0, n.next(i);
1294
1287
  }, function() {
1295
1288
  r || n.next(e), n.complete();
1296
1289
  }));
1297
1290
  });
1298
1291
  }
1299
- function de(e) {
1292
+ function ye(e) {
1300
1293
  return e <= 0 ? function() {
1301
- return Se;
1302
- } : _(function(t, n) {
1294
+ return Ae;
1295
+ } : x(function(t, n) {
1303
1296
  var r = 0;
1304
- t.subscribe(w(n, function(i) {
1297
+ t.subscribe(C(n, function(i) {
1305
1298
  ++r <= e && (n.next(i), e <= r && n.complete());
1306
1299
  }));
1307
1300
  });
1308
1301
  }
1309
- function Wn() {
1310
- return _(function(e, t) {
1311
- e.subscribe(w(t, fe));
1302
+ function Zn() {
1303
+ return x(function(e, t) {
1304
+ e.subscribe(C(t, be));
1312
1305
  });
1313
1306
  }
1314
- function qn(e) {
1315
- return C(function() {
1307
+ function Xn(e) {
1308
+ return P(function() {
1316
1309
  return e;
1317
1310
  });
1318
1311
  }
1319
- function ht(e, t) {
1312
+ function Et(e, t) {
1320
1313
  return t ? function(n) {
1321
- return Rn(t.pipe(de(1), Wn()), n.pipe(ht(e)));
1322
- } : Ee(function(n, r) {
1323
- return e(n, r).pipe(de(1), qn(n));
1314
+ return Hn(t.pipe(ye(1), Zn()), n.pipe(Et(e)));
1315
+ } : Fe(function(n, r) {
1316
+ return k(e(n, r)).pipe(ye(1), Xn(n));
1324
1317
  });
1325
1318
  }
1326
- function Qn(e, t) {
1327
- t === void 0 && (t = _e);
1328
- var n = jn(e, t);
1329
- return ht(function() {
1319
+ function er(e, t) {
1320
+ t === void 0 && (t = Ie);
1321
+ var n = Gn(e, t);
1322
+ return Et(function() {
1330
1323
  return n;
1331
1324
  });
1332
1325
  }
1333
- function Hn(e, t) {
1334
- return t === void 0 && (t = W), e = e != null ? e : Kn, _(function(n, r) {
1326
+ function tr(e, t) {
1327
+ return t === void 0 && (t = Y), e = e ?? nr, x(function(n, r) {
1335
1328
  var i, o = !0;
1336
- n.subscribe(w(r, function(u) {
1337
- var s = t(u);
1338
- (o || !e(i, s)) && (o = !1, i = s, r.next(u));
1329
+ n.subscribe(C(r, function(u) {
1330
+ var a = t(u);
1331
+ (o || !e(i, a)) && (o = !1, i = a, r.next(u));
1339
1332
  }));
1340
1333
  });
1341
1334
  }
1342
- function Kn(e, t) {
1335
+ function nr(e, t) {
1343
1336
  return e === t;
1344
1337
  }
1345
- function Yn(e) {
1346
- return e === void 0 && (e = Gn), _(function(t, n) {
1338
+ function rr(e) {
1339
+ return e === void 0 && (e = ir), x(function(t, n) {
1347
1340
  var r = !1;
1348
- t.subscribe(w(n, function(i) {
1341
+ t.subscribe(C(n, function(i) {
1349
1342
  r = !0, n.next(i);
1350
1343
  }, function() {
1351
1344
  return r ? n.complete() : n.error(e());
1352
1345
  }));
1353
1346
  });
1354
1347
  }
1355
- function Gn() {
1356
- return new ft();
1348
+ function ir() {
1349
+ return new _t();
1357
1350
  }
1358
- function pt(e, t) {
1351
+ function Ct(e, t) {
1359
1352
  var n = arguments.length >= 2;
1360
1353
  return function(r) {
1361
- return r.pipe(e ? Vn(function(i, o) {
1354
+ return r.pipe(e ? Yn(function(i, o) {
1362
1355
  return e(i, o, r);
1363
- }) : W, de(1), n ? Nn(t) : Yn(function() {
1364
- return new ft();
1356
+ }) : Y, ye(1), n ? zn(t) : rr(function() {
1357
+ return new _t();
1365
1358
  }));
1366
1359
  };
1367
1360
  }
1368
- function Jn(e, t) {
1369
- return _(Mn(e, t, arguments.length >= 2, !0));
1361
+ function or(e, t) {
1362
+ return x(Bn(e, t, arguments.length >= 2, !0));
1370
1363
  }
1371
- function zn(e) {
1364
+ function ur(e) {
1372
1365
  e === void 0 && (e = {});
1373
1366
  var t = e.connector, n = t === void 0 ? function() {
1374
- return new ne();
1375
- } : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o, s = e.resetOnRefCountZero, a = s === void 0 ? !0 : s;
1367
+ return new oe();
1368
+ } : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o, a = e.resetOnRefCountZero, s = a === void 0 ? !0 : a;
1376
1369
  return function(c) {
1377
- var l, d, v, p = 0, S = !1, h = !1, $ = function() {
1378
- d == null || d.unsubscribe(), d = void 0;
1379
- }, E = function() {
1380
- $(), l = v = void 0, S = h = !1;
1381
- }, j = function() {
1382
- var M = l;
1383
- E(), M == null || M.unsubscribe();
1370
+ var l, f, d, p = 0, y = !1, h = !1, I = function() {
1371
+ f == null || f.unsubscribe(), f = void 0;
1372
+ }, A = function() {
1373
+ I(), l = d = void 0, y = h = !1;
1374
+ }, L = function() {
1375
+ var b = l;
1376
+ A(), b == null || b.unsubscribe();
1384
1377
  };
1385
- return _(function(M, Le) {
1386
- p++, !h && !S && $();
1387
- var K = v = v != null ? v : n();
1388
- Le.add(function() {
1389
- p--, p === 0 && !h && !S && (d = se(j, a));
1390
- }), K.subscribe(Le), !l && p > 0 && (l = new L({
1391
- next: function(Y) {
1392
- return K.next(Y);
1378
+ return x(function(b, m) {
1379
+ p++, !h && !y && I();
1380
+ var O = d = d ?? n();
1381
+ m.add(function() {
1382
+ p--, p === 0 && !h && !y && (f = fe(L, s));
1383
+ }), O.subscribe(m), !l && p > 0 && (l = new G({
1384
+ next: function(g) {
1385
+ return O.next(g);
1393
1386
  },
1394
- error: function(Y) {
1395
- h = !0, $(), d = se(E, i, Y), K.error(Y);
1387
+ error: function(g) {
1388
+ h = !0, I(), f = fe(A, i, g), O.error(g);
1396
1389
  },
1397
1390
  complete: function() {
1398
- S = !0, $(), d = se(E, u), K.complete();
1391
+ y = !0, I(), f = fe(A, u), O.complete();
1399
1392
  }
1400
- }), I(M).subscribe(l));
1393
+ }), k(b).subscribe(l));
1401
1394
  })(c);
1402
1395
  };
1403
1396
  }
1404
- function se(e, t) {
1397
+ function fe(e, t) {
1405
1398
  for (var n = [], r = 2; r < arguments.length; r++)
1406
1399
  n[r - 2] = arguments[r];
1407
1400
  if (t === !0) {
@@ -1409,205 +1402,169 @@ function se(e, t) {
1409
1402
  return;
1410
1403
  }
1411
1404
  if (t !== !1) {
1412
- var i = new L({
1405
+ var i = new G({
1413
1406
  next: function() {
1414
1407
  i.unsubscribe(), e();
1415
1408
  }
1416
1409
  });
1417
- return t.apply(void 0, R([], D(n))).subscribe(i);
1410
+ return k(t.apply(void 0, N([], M(n)))).subscribe(i);
1418
1411
  }
1419
1412
  }
1420
- function Zn(e, t, n) {
1421
- var r, i, o, u, s = !1;
1422
- return e && typeof e == "object" ? (r = e.bufferSize, u = r === void 0 ? 1 / 0 : r, i = e.windowTime, t = i === void 0 ? 1 / 0 : i, o = e.refCount, s = o === void 0 ? !1 : o, n = e.scheduler) : u = e != null ? e : 1 / 0, zn({
1413
+ function ar(e, t, n) {
1414
+ var r, i, o, u, a = !1;
1415
+ return e && typeof e == "object" ? (r = e.bufferSize, u = r === void 0 ? 1 / 0 : r, i = e.windowTime, t = i === void 0 ? 1 / 0 : i, o = e.refCount, a = o === void 0 ? !1 : o, n = e.scheduler) : u = e ?? 1 / 0, ur({
1423
1416
  connector: function() {
1424
- return new fn(u, t, n);
1417
+ return new Sn(u, t, n);
1425
1418
  },
1426
1419
  resetOnError: !0,
1427
1420
  resetOnComplete: !1,
1428
- resetOnRefCountZero: s
1421
+ resetOnRefCountZero: a
1429
1422
  });
1430
1423
  }
1431
- function mt(e, t) {
1432
- return _(function(n, r) {
1433
- var i = null, o = 0, u = !1, s = function() {
1424
+ function xt(e, t) {
1425
+ return x(function(n, r) {
1426
+ var i = null, o = 0, u = !1, a = function() {
1434
1427
  return u && !i && r.complete();
1435
1428
  };
1436
- n.subscribe(w(r, function(a) {
1429
+ n.subscribe(C(r, function(s) {
1437
1430
  i == null || i.unsubscribe();
1438
1431
  var c = 0, l = o++;
1439
- I(e(a, l)).subscribe(i = w(r, function(d) {
1440
- return r.next(t ? t(a, d, l, c++) : d);
1432
+ k(e(s, l)).subscribe(i = C(r, function(f) {
1433
+ return r.next(t ? t(s, f, l, c++) : f);
1441
1434
  }, function() {
1442
- i = null, s();
1435
+ i = null, a();
1443
1436
  }));
1444
1437
  }, function() {
1445
- u = !0, s();
1438
+ u = !0, a();
1446
1439
  }));
1447
1440
  });
1448
1441
  }
1449
- function Bn(e, t, n) {
1450
- var r = b(e) || t || n ? { next: e, error: t, complete: n } : e;
1451
- return r ? _(function(i, o) {
1442
+ function sr(e, t, n) {
1443
+ var r = S(e) || t || n ? { next: e, error: t, complete: n } : e;
1444
+ return r ? x(function(i, o) {
1452
1445
  var u;
1453
1446
  (u = r.subscribe) === null || u === void 0 || u.call(r);
1454
- var s = !0;
1455
- i.subscribe(w(o, function(a) {
1447
+ var a = !0;
1448
+ i.subscribe(C(o, function(s) {
1456
1449
  var c;
1457
- (c = r.next) === null || c === void 0 || c.call(r, a), o.next(a);
1450
+ (c = r.next) === null || c === void 0 || c.call(r, s), o.next(s);
1458
1451
  }, function() {
1459
- var a;
1460
- s = !1, (a = r.complete) === null || a === void 0 || a.call(r), o.complete();
1461
- }, function(a) {
1452
+ var s;
1453
+ a = !1, (s = r.complete) === null || s === void 0 || s.call(r), o.complete();
1454
+ }, function(s) {
1462
1455
  var c;
1463
- s = !1, (c = r.error) === null || c === void 0 || c.call(r, a), o.error(a);
1456
+ a = !1, (c = r.error) === null || c === void 0 || c.call(r, s), o.error(s);
1464
1457
  }, function() {
1465
- var a, c;
1466
- s && ((a = r.unsubscribe) === null || a === void 0 || a.call(r)), (c = r.finalize) === null || c === void 0 || c.call(r);
1458
+ var s, c;
1459
+ a && ((s = r.unsubscribe) === null || s === void 0 || s.call(r)), (c = r.finalize) === null || c === void 0 || c.call(r);
1467
1460
  }));
1468
- }) : W;
1461
+ }) : Y;
1469
1462
  }
1470
- function xe(e) {
1471
- return new y(function(t) {
1472
- var n = Ft(e, t.next.bind(t), t.error.bind(t), t.complete.bind(t));
1463
+ function Pe(e) {
1464
+ return new w(function(t) {
1465
+ var n = Mt(e, t.next.bind(t), t.error.bind(t), t.complete.bind(t));
1473
1466
  return { unsubscribe: n };
1474
1467
  });
1475
1468
  }
1476
- const Xn = "[DEFAULT]", bt = f.createContext(void 0), Ie = f.createContext(!1), er = "4.2.3-exp.4329c43", tr = (e, t) => e === t || [...Object.keys(e), ...Object.keys(t)].every((n) => e[n] === t[n]);
1477
- function Lr(e) {
1478
- const {
1479
- firebaseConfig: t,
1480
- appName: n,
1481
- suspense: r
1482
- } = e, i = f.useMemo(() => {
1469
+ const cr = "[DEFAULT]", Ot = v.createContext(void 0), Te = v.createContext(!1), lr = "4.2.3-exp.85cb2bb", fr = (e, t) => e === t || [...Object.keys(e), ...Object.keys(t)].every((n) => e[n] === t[n]);
1470
+ function Xr(e) {
1471
+ const { firebaseConfig: t, appName: n, suspense: r } = e, i = v.useMemo(() => {
1483
1472
  if (e.firebaseApp)
1484
1473
  return e.firebaseApp;
1485
- const o = Vt().find((u) => u.name === (n || Xn));
1474
+ const o = Yt().find((u) => u.name === (n || cr));
1486
1475
  if (o) {
1487
- if (t && tr(o.options, t))
1476
+ if (t && fr(o.options, t))
1488
1477
  return o;
1489
1478
  throw new Error(`Does not match the options already provided to the ${n || "default"} firebase app instance, give this new instance a different appName.`);
1490
1479
  } else {
1491
1480
  if (!t)
1492
1481
  throw new Error("No firebaseConfig provided");
1493
- const u = f.version || "unknown";
1494
- return Ne("react", u), Ne("reactfire", er), Mt(t, n);
1482
+ const u = v.version || "unknown";
1483
+ return Ge("react", u), Ge("reactfire", lr), Bt(t, n);
1495
1484
  }
1496
1485
  }, [e.firebaseApp, t, n]);
1497
- return f.createElement(bt.Provider, {
1498
- value: i
1499
- }, f.createElement(Ie.Provider, Object.assign({
1500
- value: r != null ? r : !1
1501
- }, e)));
1502
- }
1503
- function Nr() {
1504
- const e = f.useContext(Ie);
1505
- return e != null ? e : !1;
1506
- }
1507
- function re(e) {
1508
- let t = f.useContext(Ie);
1486
+ return v.createElement(
1487
+ Ot.Provider,
1488
+ { value: i },
1489
+ v.createElement(Te.Provider, Object.assign({ value: r ?? !1 }, e))
1490
+ );
1491
+ }
1492
+ function ei() {
1493
+ const e = v.useContext(Te);
1494
+ return e ?? !1;
1495
+ }
1496
+ function ue(e) {
1497
+ const t = v.useContext(Te);
1509
1498
  return e !== void 0 ? e : t;
1510
1499
  }
1511
- function yt() {
1512
- const e = f.useContext(bt);
1500
+ function It() {
1501
+ const e = v.useContext(Ot);
1513
1502
  if (!e)
1514
1503
  throw new Error("Cannot call useFirebaseApp unless your component is within a FirebaseAppProvider");
1515
1504
  return e;
1516
1505
  }
1517
- function Wr(e) {
1518
- return pe(this, void 0, void 0, function* () {
1506
+ function ti(e) {
1507
+ return we(this, void 0, void 0, function* () {
1519
1508
  const t = yield e();
1520
- return Ae(xe(t), `auth:user:${t.name}`).toPromise();
1509
+ return Re(Pe(t), `auth:user:${t.name}`).toPromise();
1521
1510
  });
1522
1511
  }
1523
- function nr(e) {
1524
- const t = kt(), n = `auth:user:${t.name}`, r = xe(t);
1525
- return g(n, r, e);
1512
+ function dr(e) {
1513
+ const t = Lt(), n = `auth:user:${t.name}`, r = Pe(t);
1514
+ return E(n, r, e);
1526
1515
  }
1527
- function rr(e, t = !1, n) {
1516
+ function vr(e, t = !1, n) {
1528
1517
  if (!e)
1529
1518
  throw new Error("you must provide a user");
1530
- const r = `auth:idTokenResult:${e.uid}:forceRefresh=${t}`, i = O(e.getIdTokenResult(t));
1531
- return g(r, i, n);
1519
+ const r = `auth:idTokenResult:${e.uid}:forceRefresh=${t}`, i = $(e.getIdTokenResult(t));
1520
+ return E(r, i, n);
1532
1521
  }
1533
- function qr(e) {
1534
- if ((e == null ? void 0 : e.hasOwnProperty("requiredClaims")) && (e == null ? void 0 : e.hasOwnProperty("validateCustomClaims")))
1522
+ function ni(e) {
1523
+ if (e != null && e.hasOwnProperty("requiredClaims") && (e != null && e.hasOwnProperty("validateCustomClaims")))
1535
1524
  throw new Error('Cannot have both "requiredClaims" and "validateCustomClaims". Use one or the other.');
1536
- const t = kt();
1525
+ const t = Lt();
1537
1526
  let n = `auth:signInCheck:${t.name}::forceRefresh:${!!(e != null && e.forceRefresh)}`;
1538
1527
  e != null && e.forceRefresh && (n = `${n}:forceRefresh:${e.forceRefresh}`), e != null && e.hasOwnProperty("requiredClaims") ? n = `${n}:requiredClaims:${JSON.stringify(e.requiredClaims)}` : e != null && e.hasOwnProperty("validateCustomClaims") && (n = `${n}:validateCustomClaims:${JSON.stringify(e.validateCustomClaims)}`);
1539
- const r = xe(t).pipe(mt((i) => {
1528
+ const r = Pe(t).pipe(xt((i) => {
1540
1529
  var o;
1541
- return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? O(i.getIdTokenResult((o = e == null ? void 0 : e.forceRefresh) !== null && o !== void 0 ? o : !1)).pipe(C((u) => {
1542
- let s;
1543
- e.hasOwnProperty("requiredClaims") ? s = ir(e.requiredClaims) : s = e.validateCustomClaims;
1544
- const {
1545
- hasRequiredClaims: a,
1546
- errors: c
1547
- } = s(u.claims);
1548
- return {
1549
- signedIn: !0,
1550
- hasRequiredClaims: a,
1551
- errors: c,
1552
- user: i
1553
- };
1554
- })) : ee({
1555
- signedIn: !0,
1556
- hasRequiredClaims: !0,
1557
- errors: {},
1558
- user: i
1559
- }) : ee({
1560
- signedIn: !1,
1561
- hasRequiredClaims: !1,
1562
- errors: {},
1563
- user: null
1564
- });
1530
+ return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? $(i.getIdTokenResult((o = e == null ? void 0 : e.forceRefresh) !== null && o !== void 0 ? o : !1)).pipe(P((u) => {
1531
+ let a;
1532
+ e.hasOwnProperty("requiredClaims") ? a = hr(e.requiredClaims) : a = e.validateCustomClaims;
1533
+ const { hasRequiredClaims: s, errors: c } = a(u.claims);
1534
+ return { signedIn: !0, hasRequiredClaims: s, errors: c, user: i };
1535
+ })) : re({ signedIn: !0, hasRequiredClaims: !0, errors: {}, user: i }) : re({ signedIn: !1, hasRequiredClaims: !1, errors: {}, user: null });
1565
1536
  }));
1566
- return g(n, r, e);
1537
+ return E(n, r, e);
1567
1538
  }
1568
- function ir(e) {
1539
+ function hr(e) {
1569
1540
  return function(n) {
1570
1541
  const r = {};
1571
1542
  return Object.keys(e).forEach((i) => {
1572
- e[i] !== n[i] && (r[i] = [new Me("auth/missing-claim", `Expected "${e[i]}", but user has "${n[i]}" instead`)]);
1543
+ e[i] !== n[i] && (r[i] = [new He("auth/missing-claim", `Expected "${e[i]}", but user has "${n[i]}" instead`)]);
1573
1544
  }), {
1574
1545
  hasRequiredClaims: Object.keys(r).length === 0,
1575
1546
  errors: r
1576
1547
  };
1577
1548
  };
1578
1549
  }
1579
- function or({
1580
- user: e,
1581
- fallback: t,
1582
- children: n,
1583
- requiredClaims: r
1584
- }) {
1585
- const {
1586
- data: i
1587
- } = rr(e, !1), {
1588
- claims: o
1589
- } = i, u = {};
1590
- return re() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((a) => {
1591
- var c;
1592
- r[a] !== o[a] && (u[a] = {
1593
- expected: r[a],
1594
- actual: (c = o[a]) === null || c === void 0 ? void 0 : c.toString()
1550
+ function pr({ user: e, fallback: t, children: n, requiredClaims: r }) {
1551
+ const { data: i, status: o, error: u } = vr(e, !1);
1552
+ if (o === "loading")
1553
+ throw new Error("ClaimsCheck must be run in Suspense mode");
1554
+ if (o === "error")
1555
+ throw u;
1556
+ const { claims: a } = i, s = {};
1557
+ return ue() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((l) => {
1558
+ var f;
1559
+ r[l] !== a[l] && (s[l] = {
1560
+ expected: r[l],
1561
+ actual: (f = a[l]) === null || f === void 0 ? void 0 : f.toString()
1595
1562
  });
1596
- }), Object.keys(u).length === 0 ? f.createElement(f.Fragment, null, n) : f.createElement(f.Fragment, null, t);
1597
- }
1598
- function Qr({
1599
- fallback: e,
1600
- children: t,
1601
- requiredClaims: n
1602
- }) {
1603
- const {
1604
- data: r
1605
- } = nr();
1606
- return re() || console.warn("AuthCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r ? n ? f.createElement(or, {
1607
- user: r,
1608
- fallback: e,
1609
- requiredClaims: n
1610
- }, t) : f.createElement(f.Fragment, null, t) : f.createElement(f.Fragment, null, e);
1563
+ }), Object.keys(s).length === 0 ? v.createElement(v.Fragment, null, n) : v.createElement(v.Fragment, null, t);
1564
+ }
1565
+ function ri({ fallback: e, children: t, requiredClaims: n }) {
1566
+ const { data: r } = dr();
1567
+ return ue() || console.warn("AuthCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r ? n ? v.createElement(pr, { user: r, fallback: e, requiredClaims: n }, t) : v.createElement(v.Fragment, null, t) : v.createElement(v.Fragment, null, e);
1611
1568
  }
1612
1569
  /*! *****************************************************************************
1613
1570
  Copyright (c) Microsoft Corporation.
@@ -1623,17 +1580,17 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1623
1580
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1624
1581
  PERFORMANCE OF THIS SOFTWARE.
1625
1582
  ***************************************************************************** */
1626
- var te = function() {
1627
- return te = Object.assign || function(t) {
1583
+ var ie = function() {
1584
+ return ie = Object.assign || function(t) {
1628
1585
  for (var n, r = 1, i = arguments.length; r < i; r++) {
1629
1586
  n = arguments[r];
1630
1587
  for (var o in n)
1631
1588
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
1632
1589
  }
1633
1590
  return t;
1634
- }, te.apply(this, arguments);
1591
+ }, ie.apply(this, arguments);
1635
1592
  };
1636
- function ae(e, t) {
1593
+ function de(e, t) {
1637
1594
  for (var n = 0, r = t.length, i = e.length; n < r; n++, i++)
1638
1595
  e[i] = t[n];
1639
1596
  return e;
@@ -1654,11 +1611,11 @@ function ae(e, t) {
1654
1611
  * See the License for the specific language governing permissions and
1655
1612
  * limitations under the License.
1656
1613
  */
1657
- var T, m;
1614
+ var U, _;
1658
1615
  (function(e) {
1659
1616
  e.added = "child_added", e.removed = "child_removed", e.changed = "child_changed", e.moved = "child_moved", e.value = "value";
1660
- })(m || (m = {}));
1661
- var ur = Object.freeze((T = {}, T[m.added] = Pt, T[m.removed] = $t, T[m.changed] = Tt, T[m.moved] = Dt, T[m.value] = Rt, T));
1617
+ })(_ || (_ = {}));
1618
+ var mr = Object.freeze((U = {}, U[_.added] = Nt, U[_.removed] = Wt, U[_.changed] = qt, U[_.moved] = Kt, U[_.value] = Ht, U));
1662
1619
  /**
1663
1620
  * @license
1664
1621
  * Copyright 2021 Google LLC
@@ -1675,17 +1632,22 @@ var ur = Object.freeze((T = {}, T[m.added] = Pt, T[m.removed] = $t, T[m.changed]
1675
1632
  * See the License for the specific language governing permissions and
1676
1633
  * limitations under the License.
1677
1634
  */
1678
- function Oe(e, t) {
1679
- return new y(function(n) {
1680
- var r = ur[t](e, function(i, o) {
1635
+ function $e(e, t) {
1636
+ return new w(function(n) {
1637
+ var r = mr[t](e, function(i, o) {
1681
1638
  n.next({ snapshot: i, prevKey: o, event: t });
1682
1639
  }, n.error.bind(n));
1683
1640
  return {
1684
1641
  unsubscribe: function() {
1685
- jt(e, t, r);
1642
+ Gt(e, t, r);
1686
1643
  }
1687
1644
  };
1688
- }).pipe(Qn(0));
1645
+ }).pipe(
1646
+ // Ensures subscribe on observable is async. This handles
1647
+ // a quirk in the SDK where on/once callbacks can happen
1648
+ // synchronously.
1649
+ er(0)
1650
+ );
1689
1651
  }
1690
1652
  /**
1691
1653
  * @license
@@ -1703,12 +1665,12 @@ function Oe(e, t) {
1703
1665
  * See the License for the specific language governing permissions and
1704
1666
  * limitations under the License.
1705
1667
  */
1706
- function sr(e) {
1668
+ function br(e) {
1707
1669
  return (e == null || e.length === 0) && (e = [
1708
- m.added,
1709
- m.removed,
1710
- m.changed,
1711
- m.moved
1670
+ _.added,
1671
+ _.removed,
1672
+ _.changed,
1673
+ _.moved
1712
1674
  ]), e;
1713
1675
  }
1714
1676
  /**
@@ -1727,128 +1689,124 @@ function sr(e) {
1727
1689
  * See the License for the specific language governing permissions and
1728
1690
  * limitations under the License.
1729
1691
  */
1730
- function ar(e) {
1731
- return Oe(e, m.value);
1692
+ function yr(e) {
1693
+ return $e(e, _.value);
1732
1694
  }
1733
- function cr(e, t) {
1734
- return t === void 0 && (t = {}), Oe(e, m.value).pipe(C(function(n) {
1735
- return gt(n, t);
1695
+ function gr(e, t) {
1696
+ return t === void 0 && (t = {}), $e(e, _.value).pipe(P(function(n) {
1697
+ return At(n, t);
1736
1698
  }));
1737
1699
  }
1738
- function gt(e, t) {
1700
+ function At(e, t) {
1739
1701
  var n;
1740
1702
  t === void 0 && (t = {});
1741
1703
  var r = e.snapshot.val();
1742
- return !e.snapshot.exists() || typeof r != "object" ? r : te(te({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
1704
+ return !e.snapshot.exists() || typeof r != "object" ? r : ie(ie({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
1743
1705
  }
1744
- function lr(e) {
1745
- return O(Ut(e)).pipe(C(function(t) {
1746
- var n = m.value;
1706
+ function _r(e) {
1707
+ return $(Qt(e)).pipe(P(function(t) {
1708
+ var n = _.value;
1747
1709
  return { snapshot: t, prevKey: null, event: n };
1748
1710
  }));
1749
1711
  }
1750
- function wt(e, t) {
1712
+ function kt(e, t) {
1751
1713
  t === void 0 && (t = {});
1752
- var n = sr(t.events);
1753
- return lr(e).pipe(mt(function(r) {
1714
+ var n = br(t.events);
1715
+ return _r(e).pipe(xt(function(r) {
1754
1716
  if (!r.snapshot.exists())
1755
- return ee([]);
1756
- var i = [ee(r)];
1717
+ return re([]);
1718
+ var i = [re(r)];
1757
1719
  return n.forEach(function(o) {
1758
- i.push(Oe(e, o));
1759
- }), Un.apply(void 0, i).pipe(Jn(vr, []));
1760
- }), Hn());
1720
+ i.push($e(e, o));
1721
+ }), Qn.apply(void 0, i).pipe(or(Er, []));
1722
+ }), tr());
1761
1723
  }
1762
- function fr(e, t) {
1763
- return t === void 0 && (t = {}), wt(e).pipe(C(function(n) {
1724
+ function Sr(e, t) {
1725
+ return t === void 0 && (t = {}), kt(e).pipe(P(function(n) {
1764
1726
  return n.map(function(r) {
1765
- return gt(r, t);
1727
+ return At(r, t);
1766
1728
  });
1767
1729
  }));
1768
1730
  }
1769
- function _t(e, t) {
1731
+ function Ft(e, t) {
1770
1732
  for (var n = e.length, r = 0; r < n; r++)
1771
1733
  if (e[r].snapshot.key === t)
1772
1734
  return r;
1773
1735
  return -1;
1774
1736
  }
1775
- function dr(e, t) {
1737
+ function wr(e, t) {
1776
1738
  if (t == null)
1777
1739
  return 0;
1778
- var n = _t(e, t);
1740
+ var n = Ft(e, t);
1779
1741
  return n === -1 ? e.length : n + 1;
1780
1742
  }
1781
- function vr(e, t) {
1782
- var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = _t(e, o), s = dr(e, r || void 0);
1743
+ function Er(e, t) {
1744
+ var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = Ft(e, o), a = wr(e, r || void 0);
1783
1745
  switch (i) {
1784
- case m.value:
1746
+ case _.value:
1785
1747
  if (t.snapshot && t.snapshot.exists()) {
1786
- var a = null;
1787
- t.snapshot.forEach(function(d) {
1788
- var v = {
1789
- snapshot: d,
1790
- event: m.value,
1791
- prevKey: a
1748
+ var s = null;
1749
+ t.snapshot.forEach(function(f) {
1750
+ var d = {
1751
+ snapshot: f,
1752
+ event: _.value,
1753
+ prevKey: s
1792
1754
  };
1793
- return a = d.key, e = ae(ae([], e), [v]), !1;
1755
+ return s = f.key, e = de(de([], e), [d]), !1;
1794
1756
  });
1795
1757
  }
1796
1758
  return e;
1797
- case m.added:
1759
+ case _.added:
1798
1760
  if (u > -1) {
1799
1761
  var c = e[u - 1];
1800
- (c && c.snapshot.key || null) !== r && (e = e.filter(function(d) {
1801
- return d.snapshot.key !== n.key;
1802
- }), e.splice(s, 0, t));
1762
+ (c && c.snapshot.key || null) !== r && (e = e.filter(function(f) {
1763
+ return f.snapshot.key !== n.key;
1764
+ }), e.splice(a, 0, t));
1803
1765
  } else {
1804
1766
  if (r == null)
1805
- return ae([t], e);
1806
- e = e.slice(), e.splice(s, 0, t);
1767
+ return de([t], e);
1768
+ e = e.slice(), e.splice(a, 0, t);
1807
1769
  }
1808
1770
  return e;
1809
- case m.removed:
1810
- return e.filter(function(d) {
1811
- return d.snapshot.key !== n.key;
1771
+ case _.removed:
1772
+ return e.filter(function(f) {
1773
+ return f.snapshot.key !== n.key;
1812
1774
  });
1813
- case m.changed:
1814
- return e.map(function(d) {
1815
- return d.snapshot.key === o ? t : d;
1775
+ case _.changed:
1776
+ return e.map(function(f) {
1777
+ return f.snapshot.key === o ? t : f;
1816
1778
  });
1817
- case m.moved:
1779
+ case _.moved:
1818
1780
  if (u > -1) {
1819
1781
  var l = e.splice(u, 1)[0];
1820
- return e = e.slice(), e.splice(s, 0, l), e;
1782
+ return e = e.slice(), e.splice(a, 0, l), e;
1821
1783
  }
1822
1784
  return e;
1823
1785
  default:
1824
1786
  return e;
1825
1787
  }
1826
1788
  }
1827
- const ve = globalThis._reactFireDatabaseCachedQueries || [];
1828
- globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries = ve);
1829
- function St(e) {
1830
- const t = ve.findIndex((n) => n.isEqual(e));
1831
- return t > -1 ? t : ve.push(e) - 1;
1789
+ const ge = globalThis._reactFireDatabaseCachedQueries || [];
1790
+ globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries = ge);
1791
+ function Pt(e) {
1792
+ const t = ge.findIndex((n) => n.isEqual(e));
1793
+ return t > -1 ? t : ge.push(e) - 1;
1832
1794
  }
1833
- function Hr(e, t) {
1834
- const n = `database:object:${e.toString()}`, r = ar(e);
1835
- return g(n, r, t);
1795
+ function ii(e, t) {
1796
+ const n = `database:object:${e.toString()}`, r = yr(e);
1797
+ return E(n, r, t);
1836
1798
  }
1837
- function Kr(e, t) {
1838
- const n = t ? H(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i = cr(e, {
1839
- keyField: n
1840
- });
1841
- return g(r, i, t);
1799
+ function oi(e, t) {
1800
+ const n = t ? z(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i = gr(e, { keyField: n });
1801
+ return E(r, i, t);
1842
1802
  }
1843
- function Yr(e, t) {
1844
- const n = `database:list:${St(e)}`, r = wt(e);
1845
- return g(n, r, t);
1803
+ function ui(e, t) {
1804
+ const n = `database:list:${Pt(e)}`, r = kt(e);
1805
+ return E(n, r, t);
1846
1806
  }
1847
- function Gr(e, t) {
1848
- const n = t ? H(t) : "NO_ID_FIELD", r = `database:listVal:${St(e)}:idField=${n}`, i = fr(e, {
1849
- keyField: n
1850
- });
1851
- return g(r, i, t);
1807
+ function ai(e, t) {
1808
+ const n = t ? z(t) : "NO_ID_FIELD", r = `database:listVal:${Pt(e)}:idField=${n}`, i = Sr(e, { keyField: n });
1809
+ return E(r, i, t);
1852
1810
  }
1853
1811
  /**
1854
1812
  * @license
@@ -1866,10 +1824,10 @@ function Gr(e, t) {
1866
1824
  * See the License for the specific language governing permissions and
1867
1825
  * limitations under the License.
1868
1826
  */
1869
- var hr = { includeMetadataChanges: !1 };
1870
- function ke(e, t) {
1871
- return t === void 0 && (t = hr), new y(function(n) {
1872
- var r = Lt(e, t, {
1827
+ var Cr = { includeMetadataChanges: !1 };
1828
+ function De(e, t) {
1829
+ return t === void 0 && (t = Cr), new w(function(n) {
1830
+ var r = Jt(e, t, {
1873
1831
  next: n.next.bind(n),
1874
1832
  error: n.error.bind(n),
1875
1833
  complete: n.complete.bind(n)
@@ -1893,42 +1851,181 @@ function ke(e, t) {
1893
1851
  * See the License for the specific language governing permissions and
1894
1852
  * limitations under the License.
1895
1853
  */
1896
- function ie(e) {
1897
- return ke(e, { includeMetadataChanges: !0 });
1854
+ function ae(e) {
1855
+ return De(e, { includeMetadataChanges: !0 });
1898
1856
  }
1899
- function Ct(e, t) {
1900
- return t === void 0 && (t = {}), ie(e).pipe(C(function(n) {
1901
- return Et(n, t);
1857
+ function Tt(e, t) {
1858
+ return t === void 0 && (t = {}), ae(e).pipe(P(function(n) {
1859
+ return $t(n, t);
1902
1860
  }));
1903
1861
  }
1904
- function Et(e, t) {
1862
+ function $t(e, t) {
1905
1863
  t === void 0 && (t = {});
1906
1864
  var n = e.data();
1907
1865
  return !e.exists() || typeof n != "object" || n === null || t.idField && (n[t.idField] = e.id), n;
1908
1866
  }
1909
- function pr(e) {
1910
- return ke(e, { includeMetadataChanges: !0 }).pipe(C(function(t) {
1867
+ function xr(e) {
1868
+ return De(e, { includeMetadataChanges: !0 }).pipe(P(function(t) {
1911
1869
  return t.docs;
1912
1870
  }));
1913
1871
  }
1914
- function mr(e, t) {
1915
- return t === void 0 && (t = {}), pr(e).pipe(C(function(n) {
1872
+ function Or(e, t) {
1873
+ return t === void 0 && (t = {}), xr(e).pipe(P(function(n) {
1916
1874
  return n.map(function(r) {
1917
- return Et(r, t);
1875
+ return $t(r, t);
1918
1876
  });
1919
1877
  }));
1920
1878
  }
1921
- class br extends ne {
1879
+ var _e = { exports: {} }, ve = {};
1880
+ /**
1881
+ * @license React
1882
+ * use-sync-external-store-shim.production.min.js
1883
+ *
1884
+ * Copyright (c) Facebook, Inc. and its affiliates.
1885
+ *
1886
+ * This source code is licensed under the MIT license found in the
1887
+ * LICENSE file in the root directory of this source tree.
1888
+ */
1889
+ var ze;
1890
+ function Ir() {
1891
+ if (ze)
1892
+ return ve;
1893
+ ze = 1;
1894
+ var e = Xe;
1895
+ function t(f, d) {
1896
+ return f === d && (f !== 0 || 1 / f === 1 / d) || f !== f && d !== d;
1897
+ }
1898
+ var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, o = e.useLayoutEffect, u = e.useDebugValue;
1899
+ function a(f, d) {
1900
+ var p = d(), y = r({ inst: { value: p, getSnapshot: d } }), h = y[0].inst, I = y[1];
1901
+ return o(function() {
1902
+ h.value = p, h.getSnapshot = d, s(h) && I({ inst: h });
1903
+ }, [f, p, d]), i(function() {
1904
+ return s(h) && I({ inst: h }), f(function() {
1905
+ s(h) && I({ inst: h });
1906
+ });
1907
+ }, [f]), u(p), p;
1908
+ }
1909
+ function s(f) {
1910
+ var d = f.getSnapshot;
1911
+ f = f.value;
1912
+ try {
1913
+ var p = d();
1914
+ return !n(f, p);
1915
+ } catch {
1916
+ return !0;
1917
+ }
1918
+ }
1919
+ function c(f, d) {
1920
+ return d();
1921
+ }
1922
+ var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : a;
1923
+ return ve.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, ve;
1924
+ }
1925
+ var he = {};
1926
+ /**
1927
+ * @license React
1928
+ * use-sync-external-store-shim.development.js
1929
+ *
1930
+ * Copyright (c) Facebook, Inc. and its affiliates.
1931
+ *
1932
+ * This source code is licensed under the MIT license found in the
1933
+ * LICENSE file in the root directory of this source tree.
1934
+ */
1935
+ var Ze;
1936
+ function Ar() {
1937
+ return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
1938
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1939
+ var e = Xe, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1940
+ function n(b) {
1941
+ {
1942
+ for (var m = arguments.length, O = new Array(m > 1 ? m - 1 : 0), g = 1; g < m; g++)
1943
+ O[g - 1] = arguments[g];
1944
+ r("error", b, O);
1945
+ }
1946
+ }
1947
+ function r(b, m, O) {
1948
+ {
1949
+ var g = t.ReactDebugCurrentFrame, K = g.getStackAddendum();
1950
+ K !== "" && (m += "%s", O = O.concat([K]));
1951
+ var H = O.map(function(F) {
1952
+ return String(F);
1953
+ });
1954
+ H.unshift("Warning: " + m), Function.prototype.apply.call(console[b], console, H);
1955
+ }
1956
+ }
1957
+ function i(b, m) {
1958
+ return b === m && (b !== 0 || 1 / b === 1 / m) || b !== b && m !== m;
1959
+ }
1960
+ var o = typeof Object.is == "function" ? Object.is : i, u = e.useState, a = e.useEffect, s = e.useLayoutEffect, c = e.useDebugValue, l = !1, f = !1;
1961
+ function d(b, m, O) {
1962
+ l || e.startTransition !== void 0 && (l = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
1963
+ var g = m();
1964
+ if (!f) {
1965
+ var K = m();
1966
+ o(g, K) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
1967
+ }
1968
+ var H = u({
1969
+ inst: {
1970
+ value: g,
1971
+ getSnapshot: m
1972
+ }
1973
+ }), F = H[0].inst, se = H[1];
1974
+ return s(function() {
1975
+ F.value = g, F.getSnapshot = m, p(F) && se({
1976
+ inst: F
1977
+ });
1978
+ }, [b, g, m]), a(function() {
1979
+ p(F) && se({
1980
+ inst: F
1981
+ });
1982
+ var Ut = function() {
1983
+ p(F) && se({
1984
+ inst: F
1985
+ });
1986
+ };
1987
+ return b(Ut);
1988
+ }, [b]), c(g), g;
1989
+ }
1990
+ function p(b) {
1991
+ var m = b.getSnapshot, O = b.value;
1992
+ try {
1993
+ var g = m();
1994
+ return !o(O, g);
1995
+ } catch {
1996
+ return !0;
1997
+ }
1998
+ }
1999
+ function y(b, m, O) {
2000
+ return m();
2001
+ }
2002
+ var h = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !h, A = I ? y : d, L = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : A;
2003
+ he.useSyncExternalStore = L, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2004
+ }()), he;
2005
+ }
2006
+ process.env.NODE_ENV === "production" ? _e.exports = Ir() : _e.exports = Ar();
2007
+ var kr = _e.exports;
2008
+ class Fr extends oe {
1922
2009
  constructor(t, n, r) {
1923
- super(), this._timeoutWindow = n, this._suspenseEnabled = r, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((i) => this._resolveFirstEmission = i), this._innerObservable = t.pipe(Bn({
2010
+ super(), this._timeoutWindow = n, this._suspenseEnabled = r, this._hasValue = !1, this._error = void 0, this._isComplete = !1, this._firstEmission = new Promise((i) => this._resolveFirstEmission = i), this._immutableStatus = {
2011
+ status: "loading",
2012
+ hasEmitted: !1,
2013
+ isComplete: !1,
2014
+ data: void 0,
2015
+ error: void 0,
2016
+ firstValuePromise: this._firstEmission
2017
+ }, this._innerObservable = t.pipe(sr({
1924
2018
  next: (i) => {
1925
2019
  this._next(i);
1926
2020
  },
1927
2021
  error: (i) => {
1928
- this._error = i, this._resolveFirstEmission();
2022
+ this._error = i, this._resolveFirstEmission(), this._updateImmutableStatus();
2023
+ },
2024
+ complete: () => {
2025
+ this._isComplete = !0, this._updateImmutableStatus();
1929
2026
  }
1930
- }), vt(() => mn()), Zn(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? (console.log("SuspenseSubject: Suspense is enabled"), this._timeoutHandler = setTimeout(() => {
1931
- }, this._timeoutWindow)) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
2027
+ }), wt(() => On()), ar(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? this._timeoutHandler = setTimeout(() => {
2028
+ }, this._timeoutWindow) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
1932
2029
  }
1933
2030
  get hasValue() {
1934
2031
  return this._hasValue || !!this._error;
@@ -1943,11 +2040,21 @@ class br extends ne {
1943
2040
  get firstEmission() {
1944
2041
  return this._firstEmission;
1945
2042
  }
2043
+ _updateImmutableStatus() {
2044
+ this._immutableStatus = {
2045
+ status: this._error ? "error" : this._hasValue ? "success" : "loading",
2046
+ hasEmitted: this._hasValue,
2047
+ isComplete: this._isComplete,
2048
+ data: this._value,
2049
+ error: this._error,
2050
+ firstValuePromise: this._firstEmission
2051
+ };
2052
+ }
1946
2053
  _next(t) {
1947
- this._hasValue = !0, this._value = t, this._resolveFirstEmission();
2054
+ this._hasValue = !0, this._value = t, this._resolveFirstEmission(), this._updateImmutableStatus();
1948
2055
  }
1949
2056
  _reset() {
1950
- this._warmupSubscription && this._warmupSubscription.unsubscribe(), this._hasValue = !1, this._value = void 0, this._error = void 0, this._firstEmission = new Promise((t) => this._resolveFirstEmission = t);
2057
+ this._warmupSubscription && this._warmupSubscription.unsubscribe(), this._hasValue = !1, this._value = void 0, this._error = void 0, this._firstEmission = new Promise((t) => this._resolveFirstEmission = t), this._updateImmutableStatus();
1951
2058
  }
1952
2059
  _subscribe(t) {
1953
2060
  return this._timeoutHandler && clearTimeout(this._timeoutHandler), this._innerSubscriber = this._innerObservable.subscribe(t), this._innerSubscriber;
@@ -1955,106 +2062,85 @@ class br extends ne {
1955
2062
  get ourError() {
1956
2063
  return this._error;
1957
2064
  }
2065
+ get immutableStatus() {
2066
+ return this._immutableStatus;
2067
+ }
1958
2068
  }
1959
- const yr = 3e4, Z = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
1960
- globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = Z);
1961
- function Ae(e, t, n = !1) {
1962
- if (Z.has(t))
1963
- return Z.get(t);
2069
+ const Pr = 3e4, ee = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
2070
+ globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = ee);
2071
+ function Re(e, t, n = !1) {
2072
+ if (ee.has(t))
2073
+ return ee.get(t);
1964
2074
  {
1965
- const r = new br(e, yr, n);
1966
- return Z.set(t, r), r;
2075
+ const r = new Fr(e, Pr, n);
2076
+ return ee.set(t, r), r;
1967
2077
  }
1968
2078
  }
1969
- function gr(e) {
1970
- return function(n, r) {
1971
- const i = Object.assign(Object.assign({}, n), { hasEmitted: n.hasEmitted || e.hasValue, error: e.ourError, firstValuePromise: e.firstEmission });
1972
- switch (e.hasValue && (i.data = e.value), r) {
1973
- case "value":
1974
- return i.status = "success", i;
1975
- case "error":
1976
- return i.status = "error", i;
1977
- case "complete":
1978
- return i.isComplete = !0, i;
1979
- default:
1980
- throw new Error(`invalid action "${r}"`);
1981
- }
1982
- };
1983
- }
1984
- function g(e, t, n = {}) {
2079
+ function E(e, t, n = {}) {
1985
2080
  var r;
1986
2081
  if (!e)
1987
2082
  throw new Error("cannot call useObservable without an observableId");
1988
- const i = re(n.suspense), o = Ae(t, e, i), u = n.hasOwnProperty("initialData") || n.hasOwnProperty("startWithValue"), s = o.hasValue || u;
1989
- if (i === !0 && !s)
2083
+ const i = ue(n.suspense), o = Re(t, e, i), u = n.hasOwnProperty("initialData") || n.hasOwnProperty("startWithValue"), a = o.hasValue || u;
2084
+ if (i === !0 && !a)
1990
2085
  throw o.firstEmission;
1991
- const a = {
1992
- status: s ? "success" : "loading",
1993
- hasEmitted: s,
1994
- isComplete: !1,
1995
- data: o.hasValue ? o.value : (r = n == null ? void 0 : n.initialData) !== null && r !== void 0 ? r : n == null ? void 0 : n.startWithValue,
1996
- error: o.ourError,
1997
- firstValuePromise: o.firstEmission
1998
- }, [c, l] = f.useReducer(gr(o), a);
1999
- return f.useEffect(() => {
2086
+ const s = v.useCallback((f) => {
2000
2087
  const d = o.subscribe({
2001
2088
  next: () => {
2002
- l("value");
2089
+ f();
2003
2090
  },
2004
- error: (v) => {
2005
- throw l("error"), v;
2091
+ error: (p) => {
2092
+ throw f(), p;
2006
2093
  },
2007
2094
  complete: () => {
2008
- l("complete");
2095
+ f();
2009
2096
  }
2010
2097
  });
2011
- return () => d.unsubscribe();
2012
- }, [o]), c;
2098
+ return () => {
2099
+ d.unsubscribe();
2100
+ };
2101
+ }, [o]), c = v.useCallback(() => o.immutableStatus, [o]), l = kr.useSyncExternalStore(s, c);
2102
+ if (!o.hasValue && a && (l.data = (r = n == null ? void 0 : n.initialData) !== null && r !== void 0 ? r : n == null ? void 0 : n.startWithValue, l.status = "success", l.hasEmitted = !0), l.error)
2103
+ throw l.error;
2104
+ return l;
2013
2105
  }
2014
- const he = globalThis._reactFireFirestoreQueryCache || [];
2015
- globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache = he);
2016
- function xt(e) {
2017
- const t = he.findIndex((n) => Nt(n, e));
2018
- return t > -1 ? t : he.push(e) - 1;
2106
+ const Se = globalThis._reactFireFirestoreQueryCache || [];
2107
+ globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache = Se);
2108
+ function Dt(e) {
2109
+ const t = Se.findIndex((n) => zt(n, e));
2110
+ return t > -1 ? t : Se.push(e) - 1;
2019
2111
  }
2020
- function Jr(e) {
2021
- return pe(this, void 0, void 0, function* () {
2112
+ function si(e) {
2113
+ return we(this, void 0, void 0, function* () {
2022
2114
  const t = yield e();
2023
- return Ae(ie(t), It(t));
2115
+ return Re(ae(t), Rt(t));
2024
2116
  });
2025
2117
  }
2026
- function It(e) {
2118
+ function Rt(e) {
2027
2119
  return `firestore:doc:${e.firestore.app.name}:${e.path}`;
2028
2120
  }
2029
- function zr(e, t) {
2030
- const n = It(e), r = ie(e);
2031
- return g(n, r, t);
2121
+ function ci(e, t) {
2122
+ const n = Rt(e), r = ae(e);
2123
+ return E(n, r, t);
2032
2124
  }
2033
- function Zr(e, t) {
2034
- const n = `firestore:docOnce:${e.firestore.app.name}:${e.path}`, r = ie(e).pipe(pt());
2035
- return g(n, r, t);
2125
+ function li(e, t) {
2126
+ const n = `firestore:docOnce:${e.firestore.app.name}:${e.path}`, r = ae(e).pipe(Ct());
2127
+ return E(n, r, t);
2036
2128
  }
2037
- function Br(e, t) {
2038
- const n = t ? H(t) : "NO_ID_FIELD", r = `firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Ct(e, {
2039
- idField: n
2040
- });
2041
- return g(r, i, t);
2129
+ function fi(e, t) {
2130
+ const n = t ? z(t) : "NO_ID_FIELD", r = `firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Tt(e, { idField: n });
2131
+ return E(r, i, t);
2042
2132
  }
2043
- function Xr(e, t) {
2044
- const n = t ? H(t) : "NO_ID_FIELD", r = `firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Ct(e, {
2045
- idField: n
2046
- }).pipe(pt());
2047
- return g(r, i, t);
2133
+ function di(e, t) {
2134
+ const n = t ? z(t) : "NO_ID_FIELD", r = `firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Tt(e, { idField: n }).pipe(Ct());
2135
+ return E(r, i, t);
2048
2136
  }
2049
- function ei(e, t) {
2050
- const n = `firestore:collection:${xt(e)}`, r = ke(e);
2051
- return g(n, r, t);
2137
+ function vi(e, t) {
2138
+ const n = `firestore:collection:${Dt(e)}`, r = De(e);
2139
+ return E(n, r, t);
2052
2140
  }
2053
- function ti(e, t) {
2054
- const n = t ? H(t) : "NO_ID_FIELD", r = `firestore:collectionData:${xt(e)}:idField=${n}`, i = mr(e, {
2055
- idField: n
2056
- });
2057
- return g(r, i, t);
2141
+ function hi(e, t) {
2142
+ const n = t ? z(t) : "NO_ID_FIELD", r = `firestore:collectionData:${Dt(e)}:idField=${n}`, i = Or(e, { idField: n });
2143
+ return E(r, i, t);
2058
2144
  }
2059
2145
  /**
2060
2146
  * @license
@@ -2072,85 +2158,79 @@ function ti(e, t) {
2072
2158
  * See the License for the specific language governing permissions and
2073
2159
  * limitations under the License.
2074
2160
  */
2075
- function wr(e, t, n) {
2076
- var r = Wt(e, t, n);
2161
+ function Tr(e, t, n) {
2162
+ var r = Zt(e, t, n);
2077
2163
  return function(i) {
2078
- return O(r(i)).pipe(C(function(o) {
2164
+ return $(r(i)).pipe(P(function(o) {
2079
2165
  return o.data;
2080
2166
  }));
2081
2167
  };
2082
2168
  }
2083
- function ni(e, t) {
2084
- const n = Fr(), r = `functions:callableResponse:${e}:${JSON.stringify(t == null ? void 0 : t.data)}:${JSON.stringify(t == null ? void 0 : t.httpsCallableOptions)}`, o = wr(n, e, t == null ? void 0 : t.httpsCallableOptions)(t == null ? void 0 : t.data);
2085
- return g(r, o, t);
2169
+ function pi(e, t) {
2170
+ const n = Wr(), r = `functions:callableResponse:${e}:${JSON.stringify(t == null ? void 0 : t.data)}:${JSON.stringify(t == null ? void 0 : t.httpsCallableOptions)}`, o = Tr(n, e, t == null ? void 0 : t.httpsCallableOptions)(t == null ? void 0 : t.data);
2171
+ return E(r, o, t);
2086
2172
  }
2087
- function ri({
2088
- children: e,
2089
- traceId: t,
2090
- fallback: n
2091
- }) {
2173
+ function mi({ children: e, traceId: t, fallback: n }) {
2092
2174
  var r;
2093
- const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`, s = () => (f.useLayoutEffect(() => {
2094
- var a;
2095
- return (a = performance == null ? void 0 : performance.mark) === null || a === void 0 || a.call(performance, o), () => {
2175
+ const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`, a = () => (v.useLayoutEffect(() => {
2176
+ var s;
2177
+ return (s = performance == null ? void 0 : performance.mark) === null || s === void 0 || s.call(performance, o), () => {
2096
2178
  var c, l;
2097
2179
  (c = performance == null ? void 0 : performance.mark) === null || c === void 0 || c.call(performance, u), (l = performance == null ? void 0 : performance.measure) === null || l === void 0 || l.call(performance, t, o, u);
2098
2180
  };
2099
- }, []), f.createElement(f.Fragment, null, n));
2100
- return f.createElement(f.Suspense, {
2101
- fallback: f.createElement(s, null)
2102
- }, e);
2181
+ }, []), v.createElement(v.Fragment, null, n));
2182
+ return v.createElement(v.Suspense, { fallback: v.createElement(a, null) }, e);
2103
2183
  }
2104
- function q(e) {
2184
+ function B(e) {
2105
2185
  var t = e.remoteConfig, n = e.key, r = e.getter;
2106
- return new y(function(i) {
2107
- Ht(t).then(function() {
2186
+ return new w(function(i) {
2187
+ tn(t).then(function() {
2108
2188
  var o = r.bind(t);
2109
2189
  i.next(o(t, n));
2110
2190
  });
2111
2191
  });
2112
2192
  }
2113
- function _r(e, t) {
2114
- var n = Kt;
2115
- return q({ remoteConfig: e, key: t, getter: n });
2193
+ function $r(e, t) {
2194
+ var n = nn;
2195
+ return B({ remoteConfig: e, key: t, getter: n });
2116
2196
  }
2117
- function Sr(e, t) {
2118
- var n = Yt;
2119
- return q({ remoteConfig: e, key: t, getter: n });
2197
+ function Dr(e, t) {
2198
+ var n = rn;
2199
+ return B({ remoteConfig: e, key: t, getter: n });
2120
2200
  }
2121
- function Cr(e, t) {
2122
- var n = Gt;
2123
- return q({ remoteConfig: e, key: t, getter: n });
2201
+ function Rr(e, t) {
2202
+ var n = on;
2203
+ return B({ remoteConfig: e, key: t, getter: n });
2124
2204
  }
2125
- function Er(e, t) {
2126
- var n = Jt;
2127
- return q({ remoteConfig: e, key: t, getter: n });
2205
+ function jr(e, t) {
2206
+ var n = un;
2207
+ return B({ remoteConfig: e, key: t, getter: n });
2128
2208
  }
2129
- function xr(e) {
2130
- var t = zt;
2131
- return q({ remoteConfig: e, key: "", getter: t });
2209
+ function Lr(e) {
2210
+ var t = an;
2211
+ return B({ remoteConfig: e, key: "", getter: t });
2132
2212
  }
2133
- function Q(e, t) {
2134
- const n = $r(), r = n.app.name, i = t(n, e), o = `remoteConfig:${e}:${t.name}:${r}`;
2135
- return g(o, i);
2213
+ function J(e, t) {
2214
+ const n = Kr(), r = n.app.name, i = t(n, e), o = `remoteConfig:${e}:${t.name}:${r}`;
2215
+ return E(o, i);
2136
2216
  }
2137
- function ii(e) {
2138
- return Q(e, _r);
2217
+ function bi(e) {
2218
+ return J(e, $r);
2139
2219
  }
2140
- function oi(e) {
2141
- return Q(e, Sr);
2220
+ function yi(e) {
2221
+ return J(e, Dr);
2142
2222
  }
2143
- function ui(e) {
2144
- return Q(e, Cr);
2223
+ function gi(e) {
2224
+ return J(e, Rr);
2145
2225
  }
2146
- function si(e) {
2147
- return Q(e, Er);
2226
+ function _i(e) {
2227
+ return J(e, jr);
2148
2228
  }
2149
- function ai(e) {
2150
- return Q(e, xr);
2229
+ function Si(e) {
2230
+ return J(e, Lr);
2151
2231
  }
2152
- function Ir(e) {
2153
- return new y(function(t) {
2232
+ function Vr(e) {
2233
+ return new w(function(t) {
2154
2234
  var n = function(u) {
2155
2235
  return t.next(u);
2156
2236
  }, r = function(u) {
@@ -2171,170 +2251,157 @@ function Ir(e) {
2171
2251
  }), function() {
2172
2252
  o();
2173
2253
  };
2174
- }).pipe(Ln(0));
2175
- }
2176
- function Or(e) {
2177
- return O(qt(e));
2178
- }
2179
- function ci(e, t, n) {
2180
- const r = `storage:task:${t.toString()}`, i = Ir(e);
2181
- return g(r, i, n);
2182
- }
2183
- function kr(e, t) {
2184
- const n = `storage:downloadUrl:${e.toString()}`, r = Or(e);
2185
- return g(n, r, t);
2186
- }
2187
- function Ar(e) {
2188
- const t = Pr();
2189
- return e = Object.assign(Object.assign({}, e), {
2190
- storage: t
2191
- }), f.createElement(Ot, Object.assign({}, e));
2192
- }
2193
- function Ot(e) {
2194
- let {
2195
- storage: t,
2196
- storagePath: n,
2197
- suspense: r,
2198
- placeHolder: i
2199
- } = e, o = Zt(e, ["storage", "storagePath", "suspense", "placeHolder"]);
2200
- const u = {
2201
- suspense: re(r)
2254
+ }).pipe(
2255
+ // since we're emitting first the current snapshot and then progression
2256
+ // it's possible that we could double fire synchronously; namely when in
2257
+ // a terminal state (success, error, canceled). Debounce to address.
2258
+ Jn(0)
2259
+ );
2260
+ }
2261
+ function Ur(e) {
2262
+ return $(Xt(e));
2263
+ }
2264
+ function wi(e, t, n) {
2265
+ const r = `storage:task:${t.toString()}`, i = Vr(e);
2266
+ return E(r, i, n);
2267
+ }
2268
+ function Mr(e, t) {
2269
+ const n = `storage:downloadUrl:${e.toString()}`, r = Ur(e);
2270
+ return E(n, r, t);
2271
+ }
2272
+ function Nr(e) {
2273
+ const t = qr();
2274
+ return e = Object.assign(Object.assign({}, e), { storage: t }), v.createElement(jt, Object.assign({}, e));
2275
+ }
2276
+ function jt(e) {
2277
+ const { storage: t, storagePath: n, suspense: r, placeHolder: i } = e, o = sn(e, ["storage", "storagePath", "suspense", "placeHolder"]), u = {
2278
+ suspense: ue(r)
2202
2279
  };
2203
2280
  if (!t)
2204
2281
  throw new Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
2205
- const {
2206
- status: s,
2207
- data: a
2208
- } = kr(Qt(t, n), u);
2209
- return s === "success" ? (o.alt || o.alt === "" || console.warn(`No alt prop provided for StorageImage with storagePath "${n}"`, "img elements must have an alt prop, either with meaningful text, or an empty string for decorative images"), f.createElement("img", Object.assign({
2210
- src: a,
2211
- alt: o.alt
2212
- }, o))) : i != null ? i : f.createElement(f.Fragment, null, "''");
2213
- }
2214
- function li(e) {
2215
- let {
2216
- storage: t
2217
- } = e;
2218
- return t ? f.createElement(Ot, Object.assign({}, e)) : f.createElement(Ar, Object.assign({}, e));
2219
- }
2220
- const Fe = f.createContext(void 0), Pe = f.createContext(void 0), $e = f.createContext(void 0), Te = f.createContext(void 0), De = f.createContext(void 0), Re = f.createContext(void 0), je = f.createContext(void 0), Ue = f.createContext(void 0), Ve = f.createContext(void 0);
2221
- function k(e) {
2282
+ const { status: a, data: s } = Mr(en(t, n), u);
2283
+ return a === "success" ? (o.alt || o.alt === "" || console.warn(`No alt prop provided for StorageImage with storagePath "${n}"`, "img elements must have an alt prop, either with meaningful text, or an empty string for decorative images"), v.createElement("img", Object.assign({ src: s, alt: o.alt }, o))) : i ?? v.createElement(v.Fragment, null, "''");
2284
+ }
2285
+ function Ei(e) {
2286
+ const { storage: t } = e;
2287
+ return t ? v.createElement(jt, Object.assign({}, e)) : v.createElement(Nr, Object.assign({}, e));
2288
+ }
2289
+ const je = v.createContext(void 0), Le = v.createContext(void 0), Ve = v.createContext(void 0), Ue = v.createContext(void 0), Me = v.createContext(void 0), Ne = v.createContext(void 0), We = v.createContext(void 0), qe = v.createContext(void 0), Ke = v.createContext(void 0);
2290
+ function D(e) {
2222
2291
  return function(n) {
2223
2292
  var r, i;
2224
2293
  if (!n.sdk)
2225
2294
  throw new Error("no sdk provided");
2226
- const o = yt().name;
2295
+ const o = It().name;
2227
2296
  if (((i = (r = n == null ? void 0 : n.sdk) === null || r === void 0 ? void 0 : r.app) === null || i === void 0 ? void 0 : i.name) !== o)
2228
2297
  throw new Error("sdk was initialized with a different firebase app");
2229
- return f.createElement(e.Provider, Object.assign({
2230
- value: n.sdk
2231
- }, n));
2298
+ return v.createElement(e.Provider, Object.assign({ value: n.sdk }, n));
2232
2299
  };
2233
2300
  }
2234
- function A(e) {
2235
- const t = f.useContext(e);
2301
+ function R(e) {
2302
+ const t = v.useContext(e);
2236
2303
  if (!t)
2237
2304
  throw new Error("SDK not found. useSdk must be called from within a provider");
2238
2305
  return t;
2239
2306
  }
2240
- function F(e, t, n, r) {
2241
- const i = yt();
2242
- if (f.useContext(t))
2307
+ function j(e, t, n, r) {
2308
+ const i = It();
2309
+ if (v.useContext(t))
2243
2310
  throw new Error(`Cannot initialize SDK ${e} because it already exists in Context`);
2244
- const o = f.useMemo(() => n(i), [i]);
2245
- return g(`firebase-sdk:${e}:${i.name}`, O(o), r);
2311
+ const o = v.useMemo(() => n(i), [i]);
2312
+ return E(`firebase-sdk:${e}:${i.name}`, $(o), r);
2246
2313
  }
2247
- const fi = k(Fe), di = k(Pe), vi = k($e), hi = k(Te), pi = k(De), mi = k(Re), bi = k(Ue), yi = k(je), gi = k(Ve), wi = () => A(Fe), kt = () => A(Pe), _i = () => A($e), Si = () => A(Te), Ci = () => A(De), Fr = () => A(Re), Ei = () => A(Ue), Pr = () => A(je), $r = () => A(Ve), xi = (e, t) => F("appcheck", Fe, e, t), Ii = (e, t) => F("auth", Pe, e, t), Oi = (e, t) => F("analytics", $e, e, t), ki = (e, t) => F("database", Te, e, t), Ai = (e, t) => F("firestore", De, e, t), Fi = (e, t) => F("functions", Re, e, t), Pi = (e, t) => F("performance", Ue, e, t), $i = (e, t) => F("remoteconfig", Ve, e, t), Ti = (e, t) => F("storage", je, e, t);
2248
- class Me extends Error {
2314
+ const Ci = D(je), xi = D(Le), Oi = D(Ve), Ii = D(Ue), Ai = D(Me), ki = D(Ne), Fi = D(qe), Pi = D(We), Ti = D(Ke), $i = () => R(je), Lt = () => R(Le), Di = () => R(Ve), Ri = () => R(Ue), ji = () => R(Me), Wr = () => R(Ne), Li = () => R(qe), qr = () => R(We), Kr = () => R(Ke), Vi = (e, t) => j("appcheck", je, e, t), Ui = (e, t) => j("auth", Le, e, t), Mi = (e, t) => j("analytics", Ve, e, t), Ni = (e, t) => j("database", Ue, e, t), Wi = (e, t) => j("firestore", Me, e, t), qi = (e, t) => j("functions", Ne, e, t), Ki = (e, t) => j("performance", qe, e, t), Hi = (e, t) => j("remoteconfig", Ke, e, t), Gi = (e, t) => j("storage", We, e, t);
2315
+ class He extends Error {
2249
2316
  constructor(t, n, r) {
2250
- super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, Me.prototype);
2317
+ super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, He.prototype);
2251
2318
  }
2252
2319
  }
2253
- function At(e, t) {
2320
+ function Vt(e, t) {
2254
2321
  if (t === "idField" || t === "initialData" || t === "suspense")
2255
2322
  return e ? e[t] : void 0;
2256
2323
  throw new Error(`Field "${t}" is not a valid key in ReactFireOptions`);
2257
2324
  }
2258
- function Di(e) {
2259
- return At(e, "initialData");
2325
+ function Qi(e) {
2326
+ return Vt(e, "initialData");
2260
2327
  }
2261
- function H(e) {
2262
- return At(e, "idField");
2328
+ function z(e) {
2329
+ return Vt(e, "idField");
2263
2330
  }
2264
2331
  export {
2265
- vi as AnalyticsProvider,
2266
- $e as AnalyticsSdkContext,
2267
- fi as AppCheckProvider,
2268
- Fe as AppCheckSdkContext,
2269
- Qr as AuthCheck,
2270
- di as AuthProvider,
2271
- Pe as AuthSdkContext,
2272
- or as ClaimsCheck,
2273
- hi as DatabaseProvider,
2274
- Te as DatabaseSdkContext,
2275
- Lr as FirebaseAppProvider,
2276
- pi as FirestoreProvider,
2277
- De as FirestoreSdkContext,
2278
- mi as FunctionsProvider,
2279
- Re as FunctionsSdkContext,
2280
- bi as PerformanceProvider,
2281
- Ue as PerformanceSdkContext,
2282
- Me as ReactFireError,
2283
- gi as RemoteConfigProvider,
2284
- Ve as RemoteConfigSdkContext,
2285
- li as StorageImage,
2286
- yi as StorageProvider,
2287
- je as StorageSdkContext,
2288
- ri as SuspenseWithPerf,
2289
- H as checkIdField,
2290
- At as checkOptions,
2291
- Di as checkinitialData,
2292
- Jr as preloadFirestoreDoc,
2293
- Ae as preloadObservable,
2294
- Wr as preloadUser,
2295
- _i as useAnalytics,
2296
- wi as useAppCheck,
2297
- kt as useAuth,
2298
- ni as useCallableFunctionResponse,
2299
- Si as useDatabase,
2300
- Yr as useDatabaseList,
2301
- Gr as useDatabaseListData,
2302
- Hr as useDatabaseObject,
2303
- Kr as useDatabaseObjectData,
2304
- yt as useFirebaseApp,
2305
- Ci as useFirestore,
2306
- ei as useFirestoreCollection,
2307
- ti as useFirestoreCollectionData,
2308
- zr as useFirestoreDoc,
2309
- Br as useFirestoreDocData,
2310
- Xr as useFirestoreDocDataOnce,
2311
- Zr as useFirestoreDocOnce,
2312
- Fr as useFunctions,
2313
- rr as useIdTokenResult,
2314
- Oi as useInitAnalytics,
2315
- xi as useInitAppCheck,
2316
- Ii as useInitAuth,
2317
- ki as useInitDatabase,
2318
- Ai as useInitFirestore,
2319
- Fi as useInitFunctions,
2320
- Pi as useInitPerformance,
2321
- $i as useInitRemoteConfig,
2322
- Ti as useInitStorage,
2323
- Nr as useIsSuspenseEnabled,
2324
- g as useObservable,
2325
- Ei as usePerformance,
2326
- $r as useRemoteConfig,
2327
- ai as useRemoteConfigAll,
2328
- si as useRemoteConfigBoolean,
2329
- ui as useRemoteConfigNumber,
2330
- oi as useRemoteConfigString,
2331
- ii as useRemoteConfigValue,
2332
- qr as useSigninCheck,
2333
- Pr as useStorage,
2334
- kr as useStorageDownloadURL,
2335
- ci as useStorageTask,
2336
- re as useSuspenseEnabledFromConfigAndContext,
2337
- nr as useUser,
2338
- er as version
2332
+ Oi as AnalyticsProvider,
2333
+ Ve as AnalyticsSdkContext,
2334
+ Ci as AppCheckProvider,
2335
+ je as AppCheckSdkContext,
2336
+ ri as AuthCheck,
2337
+ xi as AuthProvider,
2338
+ Le as AuthSdkContext,
2339
+ pr as ClaimsCheck,
2340
+ Ii as DatabaseProvider,
2341
+ Ue as DatabaseSdkContext,
2342
+ Xr as FirebaseAppProvider,
2343
+ Ai as FirestoreProvider,
2344
+ Me as FirestoreSdkContext,
2345
+ ki as FunctionsProvider,
2346
+ Ne as FunctionsSdkContext,
2347
+ Fi as PerformanceProvider,
2348
+ qe as PerformanceSdkContext,
2349
+ He as ReactFireError,
2350
+ Ti as RemoteConfigProvider,
2351
+ Ke as RemoteConfigSdkContext,
2352
+ Ei as StorageImage,
2353
+ Pi as StorageProvider,
2354
+ We as StorageSdkContext,
2355
+ mi as SuspenseWithPerf,
2356
+ z as checkIdField,
2357
+ Vt as checkOptions,
2358
+ Qi as checkinitialData,
2359
+ si as preloadFirestoreDoc,
2360
+ Re as preloadObservable,
2361
+ ti as preloadUser,
2362
+ Di as useAnalytics,
2363
+ $i as useAppCheck,
2364
+ Lt as useAuth,
2365
+ pi as useCallableFunctionResponse,
2366
+ Ri as useDatabase,
2367
+ ui as useDatabaseList,
2368
+ ai as useDatabaseListData,
2369
+ ii as useDatabaseObject,
2370
+ oi as useDatabaseObjectData,
2371
+ It as useFirebaseApp,
2372
+ ji as useFirestore,
2373
+ vi as useFirestoreCollection,
2374
+ hi as useFirestoreCollectionData,
2375
+ ci as useFirestoreDoc,
2376
+ fi as useFirestoreDocData,
2377
+ di as useFirestoreDocDataOnce,
2378
+ li as useFirestoreDocOnce,
2379
+ Wr as useFunctions,
2380
+ vr as useIdTokenResult,
2381
+ Mi as useInitAnalytics,
2382
+ Vi as useInitAppCheck,
2383
+ Ui as useInitAuth,
2384
+ Ni as useInitDatabase,
2385
+ Wi as useInitFirestore,
2386
+ qi as useInitFunctions,
2387
+ Ki as useInitPerformance,
2388
+ Hi as useInitRemoteConfig,
2389
+ Gi as useInitStorage,
2390
+ ei as useIsSuspenseEnabled,
2391
+ E as useObservable,
2392
+ Li as usePerformance,
2393
+ Kr as useRemoteConfig,
2394
+ Si as useRemoteConfigAll,
2395
+ _i as useRemoteConfigBoolean,
2396
+ gi as useRemoteConfigNumber,
2397
+ yi as useRemoteConfigString,
2398
+ bi as useRemoteConfigValue,
2399
+ ni as useSigninCheck,
2400
+ qr as useStorage,
2401
+ Mr as useStorageDownloadURL,
2402
+ wi as useStorageTask,
2403
+ ue as useSuspenseEnabledFromConfigAndContext,
2404
+ dr as useUser,
2405
+ lr as version
2339
2406
  };
2340
2407
  //# sourceMappingURL=index.js.map