reactfire 4.2.3-exp.8d83c9e → 4.2.3-exp.9429194
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/SuspenseSubject.d.ts +5 -0
- package/dist/firebaseApp.d.ts +1 -2
- package/dist/index.js +1006 -866
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +26 -10
- package/dist/index.umd.cjs.map +1 -1
- package/dist/storage.d.ts +1 -2
- package/dist/useObservable.d.ts +18 -2
- package/package.json +5 -3
- package/src/SuspenseSubject.ts +40 -0
- package/src/auth.tsx +8 -1
- package/src/firebaseApp.tsx +1 -1
- package/src/storage.tsx +1 -1
- package/src/useObservable.ts +59 -55
package/dist/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
},
|
|
16
|
+
}, pe(e, t);
|
|
16
17
|
};
|
|
17
|
-
function
|
|
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
|
-
|
|
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
|
|
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,48 +33,48 @@ 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
|
|
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
|
|
43
|
+
function a(l) {
|
|
43
44
|
try {
|
|
44
45
|
c(r.next(l));
|
|
45
|
-
} catch (
|
|
46
|
-
u(
|
|
46
|
+
} catch (f) {
|
|
47
|
+
u(f);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function s(l) {
|
|
50
51
|
try {
|
|
51
52
|
c(r.throw(l));
|
|
52
|
-
} catch (
|
|
53
|
-
u(
|
|
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(
|
|
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
|
|
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:
|
|
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
|
|
72
|
+
function a(c) {
|
|
72
73
|
return function(l) {
|
|
73
|
-
return
|
|
74
|
+
return s([c, l]);
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function s(c) {
|
|
77
78
|
if (r)
|
|
78
79
|
throw new TypeError("Generator is already executing.");
|
|
79
80
|
for (; u && (u = 0, c[0] && (n = 0)), n; )
|
|
@@ -124,7 +125,7 @@ function Qe(e, t) {
|
|
|
124
125
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
function
|
|
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
|
|
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 (
|
|
148
|
-
u = { error:
|
|
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
|
|
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
|
|
166
|
-
return this instanceof
|
|
166
|
+
function W(e) {
|
|
167
|
+
return this instanceof W ? (this.v = e, this) : new W(e);
|
|
167
168
|
}
|
|
168
|
-
function
|
|
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(
|
|
176
|
-
r[
|
|
177
|
-
return new Promise(function(
|
|
178
|
-
o.push([
|
|
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
|
|
183
|
+
function a(d, p) {
|
|
183
184
|
try {
|
|
184
|
-
|
|
185
|
-
} catch (
|
|
186
|
-
|
|
185
|
+
s(r[d](p));
|
|
186
|
+
} catch (y) {
|
|
187
|
+
f(o[0][3], y);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
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(
|
|
193
|
-
|
|
193
|
+
function c(d) {
|
|
194
|
+
a("next", d);
|
|
194
195
|
}
|
|
195
|
-
function l(
|
|
196
|
-
|
|
196
|
+
function l(d) {
|
|
197
|
+
a("throw", d);
|
|
197
198
|
}
|
|
198
|
-
function d
|
|
199
|
-
|
|
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
|
|
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
|
|
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(
|
|
212
|
-
u = e[o](u), i(
|
|
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,
|
|
217
|
-
Promise.resolve(
|
|
218
|
-
o({ value: c, done:
|
|
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
|
|
223
|
+
function S(e) {
|
|
223
224
|
return typeof e == "function";
|
|
224
225
|
}
|
|
225
|
-
function
|
|
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
|
|
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 ie = pe(function(e) {
|
|
|
237
238
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
238
239
|
};
|
|
239
240
|
});
|
|
240
|
-
function
|
|
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
|
|
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
|
|
259
|
-
var c =
|
|
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
|
-
|
|
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 (
|
|
276
|
+
if (S(l))
|
|
276
277
|
try {
|
|
277
278
|
l();
|
|
278
279
|
} catch (h) {
|
|
279
|
-
o = h instanceof
|
|
280
|
+
o = h instanceof ce ? h.errors : [h];
|
|
280
281
|
}
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
282
|
+
var f = this._finalizers;
|
|
283
|
+
if (f) {
|
|
283
284
|
this._finalizers = null;
|
|
284
285
|
try {
|
|
285
|
-
for (var
|
|
286
|
-
var
|
|
286
|
+
for (var d = q(f), p = d.next(); !p.done; p = d.next()) {
|
|
287
|
+
var y = p.value;
|
|
287
288
|
try {
|
|
288
|
-
|
|
289
|
+
Qe(y);
|
|
289
290
|
} catch (h) {
|
|
290
|
-
o = o ?? [], h instanceof
|
|
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 =
|
|
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
|
|
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
|
-
|
|
312
|
+
Qe(t);
|
|
312
313
|
else {
|
|
313
314
|
if (t instanceof e) {
|
|
314
315
|
if (t.closed || t._hasParent(this))
|
|
@@ -325,58 +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) &&
|
|
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 &&
|
|
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
|
-
}(),
|
|
337
|
-
function
|
|
338
|
-
return e instanceof
|
|
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
|
|
341
|
-
|
|
341
|
+
function Qe(e) {
|
|
342
|
+
S(e) ? e() : e.unsubscribe();
|
|
342
343
|
}
|
|
343
|
-
var
|
|
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
|
-
},
|
|
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 =
|
|
354
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i,
|
|
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 =
|
|
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
|
|
363
|
-
|
|
363
|
+
function it(e) {
|
|
364
|
+
me.setTimeout(function() {
|
|
364
365
|
throw e;
|
|
365
366
|
});
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
+
function be() {
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
+
function X(e) {
|
|
370
371
|
e();
|
|
371
372
|
}
|
|
372
|
-
var
|
|
373
|
-
|
|
373
|
+
var Ce = function(e) {
|
|
374
|
+
T(t, e);
|
|
374
375
|
function t(n) {
|
|
375
376
|
var r = e.call(this) || this;
|
|
376
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
377
|
+
return r.isStopped = !1, n ? (r.destination = n, nt(n) && n.add(r)) : r.destination = hn, r;
|
|
377
378
|
}
|
|
378
379
|
return t.create = function(n, r, i) {
|
|
379
|
-
return new
|
|
380
|
+
return new G(n, r, i);
|
|
380
381
|
}, t.prototype.next = function(n) {
|
|
381
382
|
this.isStopped || this._next(n);
|
|
382
383
|
}, t.prototype.error = function(n) {
|
|
@@ -400,11 +401,11 @@ var me = function(e) {
|
|
|
400
401
|
this.unsubscribe();
|
|
401
402
|
}
|
|
402
403
|
}, t;
|
|
403
|
-
}(
|
|
404
|
-
function
|
|
405
|
-
return
|
|
404
|
+
}(Q), fn = Function.prototype.bind;
|
|
405
|
+
function le(e, t) {
|
|
406
|
+
return fn.call(e, t);
|
|
406
407
|
}
|
|
407
|
-
var
|
|
408
|
+
var dn = function() {
|
|
408
409
|
function e(t) {
|
|
409
410
|
this.partialObserver = t;
|
|
410
411
|
}
|
|
@@ -414,7 +415,7 @@ var en = function() {
|
|
|
414
415
|
try {
|
|
415
416
|
n.next(t);
|
|
416
417
|
} catch (r) {
|
|
417
|
-
|
|
418
|
+
Z(r);
|
|
418
419
|
}
|
|
419
420
|
}, e.prototype.error = function(t) {
|
|
420
421
|
var n = this.partialObserver;
|
|
@@ -422,68 +423,68 @@ var en = function() {
|
|
|
422
423
|
try {
|
|
423
424
|
n.error(t);
|
|
424
425
|
} catch (r) {
|
|
425
|
-
|
|
426
|
+
Z(r);
|
|
426
427
|
}
|
|
427
428
|
else
|
|
428
|
-
|
|
429
|
+
Z(t);
|
|
429
430
|
}, e.prototype.complete = function() {
|
|
430
431
|
var t = this.partialObserver;
|
|
431
432
|
if (t.complete)
|
|
432
433
|
try {
|
|
433
434
|
t.complete();
|
|
434
435
|
} catch (n) {
|
|
435
|
-
|
|
436
|
+
Z(n);
|
|
436
437
|
}
|
|
437
438
|
}, e;
|
|
438
|
-
}(),
|
|
439
|
-
|
|
439
|
+
}(), G = function(e) {
|
|
440
|
+
T(t, e);
|
|
440
441
|
function t(n, r, i) {
|
|
441
442
|
var o = e.call(this) || this, u;
|
|
442
|
-
if (
|
|
443
|
+
if (S(n) || !n)
|
|
443
444
|
u = {
|
|
444
445
|
next: n ?? void 0,
|
|
445
446
|
error: r ?? void 0,
|
|
446
447
|
complete: i ?? void 0
|
|
447
448
|
};
|
|
448
449
|
else {
|
|
449
|
-
var
|
|
450
|
-
o &&
|
|
450
|
+
var a;
|
|
451
|
+
o && rt.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
|
|
451
452
|
return o.unsubscribe();
|
|
452
453
|
}, u = {
|
|
453
|
-
next: n.next &&
|
|
454
|
-
error: n.error &&
|
|
455
|
-
complete: n.complete &&
|
|
454
|
+
next: n.next && le(n.next, a),
|
|
455
|
+
error: n.error && le(n.error, a),
|
|
456
|
+
complete: n.complete && le(n.complete, a)
|
|
456
457
|
}) : u = n;
|
|
457
458
|
}
|
|
458
|
-
return o.destination = new
|
|
459
|
+
return o.destination = new dn(u), o;
|
|
459
460
|
}
|
|
460
461
|
return t;
|
|
461
|
-
}(
|
|
462
|
-
function
|
|
463
|
-
|
|
462
|
+
}(Ce);
|
|
463
|
+
function Z(e) {
|
|
464
|
+
it(e);
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
+
function vn(e) {
|
|
466
467
|
throw e;
|
|
467
468
|
}
|
|
468
|
-
var
|
|
469
|
+
var hn = {
|
|
469
470
|
closed: !0,
|
|
470
|
-
next:
|
|
471
|
-
error:
|
|
472
|
-
complete:
|
|
473
|
-
},
|
|
471
|
+
next: be,
|
|
472
|
+
error: vn,
|
|
473
|
+
complete: be
|
|
474
|
+
}, xe = function() {
|
|
474
475
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
475
476
|
}();
|
|
476
|
-
function
|
|
477
|
+
function Y(e) {
|
|
477
478
|
return e;
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
-
return e.length === 0 ?
|
|
480
|
+
function pn(e) {
|
|
481
|
+
return e.length === 0 ? Y : e.length === 1 ? e[0] : function(n) {
|
|
481
482
|
return e.reduce(function(r, i) {
|
|
482
483
|
return i(r);
|
|
483
484
|
}, n);
|
|
484
485
|
};
|
|
485
486
|
}
|
|
486
|
-
var
|
|
487
|
+
var w = function() {
|
|
487
488
|
function e(t) {
|
|
488
489
|
t && (this._subscribe = t);
|
|
489
490
|
}
|
|
@@ -491,10 +492,10 @@ var y = function() {
|
|
|
491
492
|
var n = new e();
|
|
492
493
|
return n.source = this, n.operator = t, n;
|
|
493
494
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
494
|
-
var i = this, o =
|
|
495
|
-
return
|
|
496
|
-
var u = i,
|
|
497
|
-
o.add(
|
|
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));
|
|
498
499
|
}), o;
|
|
499
500
|
}, e.prototype._trySubscribe = function(t) {
|
|
500
501
|
try {
|
|
@@ -504,13 +505,13 @@ var y = function() {
|
|
|
504
505
|
}
|
|
505
506
|
}, e.prototype.forEach = function(t, n) {
|
|
506
507
|
var r = this;
|
|
507
|
-
return n =
|
|
508
|
-
var u = new
|
|
509
|
-
next: function(
|
|
508
|
+
return n = Ye(n), new n(function(i, o) {
|
|
509
|
+
var u = new G({
|
|
510
|
+
next: function(a) {
|
|
510
511
|
try {
|
|
511
|
-
t(
|
|
512
|
-
} catch (
|
|
513
|
-
o(
|
|
512
|
+
t(a);
|
|
513
|
+
} catch (s) {
|
|
514
|
+
o(s), u.unsubscribe();
|
|
514
515
|
}
|
|
515
516
|
},
|
|
516
517
|
error: o,
|
|
@@ -521,15 +522,15 @@ var y = function() {
|
|
|
521
522
|
}, e.prototype._subscribe = function(t) {
|
|
522
523
|
var n;
|
|
523
524
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
524
|
-
}, e.prototype[
|
|
525
|
+
}, e.prototype[xe] = function() {
|
|
525
526
|
return this;
|
|
526
527
|
}, e.prototype.pipe = function() {
|
|
527
528
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
528
529
|
t[n] = arguments[n];
|
|
529
|
-
return
|
|
530
|
+
return pn(t)(this);
|
|
530
531
|
}, e.prototype.toPromise = function(t) {
|
|
531
532
|
var n = this;
|
|
532
|
-
return t =
|
|
533
|
+
return t = Ye(t), new t(function(r, i) {
|
|
533
534
|
var o;
|
|
534
535
|
n.subscribe(function(u) {
|
|
535
536
|
return o = u;
|
|
@@ -543,22 +544,22 @@ var y = function() {
|
|
|
543
544
|
return new e(t);
|
|
544
545
|
}, e;
|
|
545
546
|
}();
|
|
546
|
-
function
|
|
547
|
+
function Ye(e) {
|
|
547
548
|
var t;
|
|
548
|
-
return (t = e ??
|
|
549
|
+
return (t = e ?? rt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
549
550
|
}
|
|
550
|
-
function
|
|
551
|
-
return e &&
|
|
551
|
+
function mn(e) {
|
|
552
|
+
return e && S(e.next) && S(e.error) && S(e.complete);
|
|
552
553
|
}
|
|
553
|
-
function
|
|
554
|
-
return e && e instanceof
|
|
554
|
+
function bn(e) {
|
|
555
|
+
return e && e instanceof Ce || mn(e) && nt(e);
|
|
555
556
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
557
|
+
function yn(e) {
|
|
558
|
+
return S(e == null ? void 0 : e.lift);
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function x(e) {
|
|
560
561
|
return function(t) {
|
|
561
|
-
if (
|
|
562
|
+
if (yn(t))
|
|
562
563
|
return t.lift(function(n) {
|
|
563
564
|
try {
|
|
564
565
|
return e(n, this);
|
|
@@ -569,20 +570,20 @@ function _(e) {
|
|
|
569
570
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
570
571
|
};
|
|
571
572
|
}
|
|
572
|
-
function
|
|
573
|
-
return new
|
|
573
|
+
function C(e, t, n, r, i) {
|
|
574
|
+
return new gn(e, t, n, r, i);
|
|
574
575
|
}
|
|
575
|
-
var
|
|
576
|
-
|
|
577
|
-
function t(n, r, i, o, u,
|
|
578
|
-
var
|
|
579
|
-
return
|
|
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) {
|
|
580
581
|
try {
|
|
581
582
|
r(c);
|
|
582
583
|
} catch (l) {
|
|
583
584
|
n.error(l);
|
|
584
585
|
}
|
|
585
|
-
} : e.prototype._next,
|
|
586
|
+
} : e.prototype._next, s._error = o ? function(c) {
|
|
586
587
|
try {
|
|
587
588
|
o(c);
|
|
588
589
|
} catch (l) {
|
|
@@ -590,7 +591,7 @@ var an = function(e) {
|
|
|
590
591
|
} finally {
|
|
591
592
|
this.unsubscribe();
|
|
592
593
|
}
|
|
593
|
-
} : e.prototype._error,
|
|
594
|
+
} : e.prototype._error, s._complete = i ? function() {
|
|
594
595
|
try {
|
|
595
596
|
i();
|
|
596
597
|
} catch (c) {
|
|
@@ -598,7 +599,7 @@ var an = function(e) {
|
|
|
598
599
|
} finally {
|
|
599
600
|
this.unsubscribe();
|
|
600
601
|
}
|
|
601
|
-
} : e.prototype._complete,
|
|
602
|
+
} : e.prototype._complete, s;
|
|
602
603
|
}
|
|
603
604
|
return t.prototype.unsubscribe = function() {
|
|
604
605
|
var n;
|
|
@@ -607,38 +608,38 @@ var an = function(e) {
|
|
|
607
608
|
e.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
|
|
608
609
|
}
|
|
609
610
|
}, t;
|
|
610
|
-
}(
|
|
611
|
+
}(Ce), _n = Ee(function(e) {
|
|
611
612
|
return function() {
|
|
612
613
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
613
614
|
};
|
|
614
|
-
}),
|
|
615
|
-
|
|
615
|
+
}), oe = function(e) {
|
|
616
|
+
T(t, e);
|
|
616
617
|
function t() {
|
|
617
618
|
var n = e.call(this) || this;
|
|
618
619
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
619
620
|
}
|
|
620
621
|
return t.prototype.lift = function(n) {
|
|
621
|
-
var r = new
|
|
622
|
+
var r = new Be(this, this);
|
|
622
623
|
return r.operator = n, r;
|
|
623
624
|
}, t.prototype._throwIfClosed = function() {
|
|
624
625
|
if (this.closed)
|
|
625
|
-
throw new
|
|
626
|
+
throw new _n();
|
|
626
627
|
}, t.prototype.next = function(n) {
|
|
627
628
|
var r = this;
|
|
628
|
-
|
|
629
|
+
X(function() {
|
|
629
630
|
var i, o;
|
|
630
631
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
631
632
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
632
633
|
try {
|
|
633
|
-
for (var u =
|
|
634
|
-
var
|
|
635
|
-
|
|
634
|
+
for (var u = q(r.currentObservers), a = u.next(); !a.done; a = u.next()) {
|
|
635
|
+
var s = a.value;
|
|
636
|
+
s.next(n);
|
|
636
637
|
}
|
|
637
638
|
} catch (c) {
|
|
638
639
|
i = { error: c };
|
|
639
640
|
} finally {
|
|
640
641
|
try {
|
|
641
|
-
|
|
642
|
+
a && !a.done && (o = u.return) && o.call(u);
|
|
642
643
|
} finally {
|
|
643
644
|
if (i)
|
|
644
645
|
throw i.error;
|
|
@@ -648,7 +649,7 @@ var an = function(e) {
|
|
|
648
649
|
});
|
|
649
650
|
}, t.prototype.error = function(n) {
|
|
650
651
|
var r = this;
|
|
651
|
-
|
|
652
|
+
X(function() {
|
|
652
653
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
653
654
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
654
655
|
for (var i = r.observers; i.length; )
|
|
@@ -657,7 +658,7 @@ var an = function(e) {
|
|
|
657
658
|
});
|
|
658
659
|
}, t.prototype.complete = function() {
|
|
659
660
|
var n = this;
|
|
660
|
-
|
|
661
|
+
X(function() {
|
|
661
662
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
662
663
|
n.isStopped = !0;
|
|
663
664
|
for (var r = n.observers; r.length; )
|
|
@@ -678,21 +679,21 @@ var an = function(e) {
|
|
|
678
679
|
}, t.prototype._subscribe = function(n) {
|
|
679
680
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
680
681
|
}, t.prototype._innerSubscribe = function(n) {
|
|
681
|
-
var r = this, i = this, o = i.hasError, u = i.isStopped,
|
|
682
|
-
return o || u ?
|
|
683
|
-
r.currentObservers = null,
|
|
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);
|
|
684
685
|
}));
|
|
685
686
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
686
687
|
var r = this, i = r.hasError, o = r.thrownError, u = r.isStopped;
|
|
687
688
|
i ? n.error(o) : u && n.complete();
|
|
688
689
|
}, t.prototype.asObservable = function() {
|
|
689
|
-
var n = new
|
|
690
|
+
var n = new w();
|
|
690
691
|
return n.source = this, n;
|
|
691
692
|
}, t.create = function(n, r) {
|
|
692
|
-
return new
|
|
693
|
+
return new Be(n, r);
|
|
693
694
|
}, t;
|
|
694
|
-
}(
|
|
695
|
-
|
|
695
|
+
}(w), Be = function(e) {
|
|
696
|
+
T(t, e);
|
|
696
697
|
function t(n, r) {
|
|
697
698
|
var i = e.call(this) || this;
|
|
698
699
|
return i.destination = n, i.source = r, i;
|
|
@@ -708,58 +709,58 @@ var an = function(e) {
|
|
|
708
709
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
709
710
|
}, t.prototype._subscribe = function(n) {
|
|
710
711
|
var r, i;
|
|
711
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
712
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : tt;
|
|
712
713
|
}, t;
|
|
713
|
-
}(
|
|
714
|
+
}(oe), Oe = {
|
|
714
715
|
now: function() {
|
|
715
|
-
return (
|
|
716
|
+
return (Oe.delegate || Date).now();
|
|
716
717
|
},
|
|
717
718
|
delegate: void 0
|
|
718
|
-
},
|
|
719
|
-
|
|
719
|
+
}, Sn = function(e) {
|
|
720
|
+
T(t, e);
|
|
720
721
|
function t(n, r, i) {
|
|
721
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
722
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Oe);
|
|
722
723
|
var o = e.call(this) || this;
|
|
723
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;
|
|
724
725
|
}
|
|
725
726
|
return t.prototype.next = function(n) {
|
|
726
|
-
var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow,
|
|
727
|
-
i || (o.push(n), !u && o.push(
|
|
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);
|
|
728
729
|
}, t.prototype._subscribe = function(n) {
|
|
729
730
|
this._throwIfClosed(), this._trimBuffer();
|
|
730
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer,
|
|
731
|
-
n.next(s
|
|
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]);
|
|
732
733
|
return this._checkFinalizedStatuses(n), r;
|
|
733
734
|
}, t.prototype._trimBuffer = function() {
|
|
734
|
-
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow,
|
|
735
|
-
if (r < 1 / 0 &&
|
|
736
|
-
for (var
|
|
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)
|
|
737
738
|
c = l;
|
|
738
739
|
c && o.splice(0, c + 1);
|
|
739
740
|
}
|
|
740
741
|
}, t;
|
|
741
|
-
}(
|
|
742
|
-
|
|
742
|
+
}(oe), wn = function(e) {
|
|
743
|
+
T(t, e);
|
|
743
744
|
function t(n, r) {
|
|
744
745
|
return e.call(this) || this;
|
|
745
746
|
}
|
|
746
747
|
return t.prototype.schedule = function(n, r) {
|
|
747
748
|
return this;
|
|
748
749
|
}, t;
|
|
749
|
-
}(
|
|
750
|
+
}(Q), ne = {
|
|
750
751
|
setInterval: function(e, t) {
|
|
751
752
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
752
753
|
n[r - 2] = arguments[r];
|
|
753
|
-
var i =
|
|
754
|
-
return i != null && i.setInterval ? i.setInterval.apply(i,
|
|
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)));
|
|
755
756
|
},
|
|
756
757
|
clearInterval: function(e) {
|
|
757
|
-
var t =
|
|
758
|
+
var t = ne.delegate;
|
|
758
759
|
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
|
|
759
760
|
},
|
|
760
761
|
delegate: void 0
|
|
761
|
-
},
|
|
762
|
-
|
|
762
|
+
}, En = function(e) {
|
|
763
|
+
T(t, e);
|
|
763
764
|
function t(n, r) {
|
|
764
765
|
var i = e.call(this, n, r) || this;
|
|
765
766
|
return i.scheduler = n, i.work = r, i.pending = !1, i;
|
|
@@ -772,11 +773,11 @@ var an = function(e) {
|
|
|
772
773
|
var o = this.id, u = this.scheduler;
|
|
773
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;
|
|
774
775
|
}, t.prototype.requestAsyncId = function(n, r, i) {
|
|
775
|
-
return i === void 0 && (i = 0),
|
|
776
|
+
return i === void 0 && (i = 0), ne.setInterval(n.flush.bind(n, this), i);
|
|
776
777
|
}, t.prototype.recycleAsyncId = function(n, r, i) {
|
|
777
778
|
if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
|
|
778
779
|
return r;
|
|
779
|
-
r != null &&
|
|
780
|
+
r != null && ne.clearInterval(r);
|
|
780
781
|
}, t.prototype.execute = function(n, r) {
|
|
781
782
|
if (this.closed)
|
|
782
783
|
return new Error("executing a cancelled action");
|
|
@@ -797,20 +798,20 @@ var an = function(e) {
|
|
|
797
798
|
}, t.prototype.unsubscribe = function() {
|
|
798
799
|
if (!this.closed) {
|
|
799
800
|
var n = this, r = n.id, i = n.scheduler, o = i.actions;
|
|
800
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
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);
|
|
801
802
|
}
|
|
802
803
|
}, t;
|
|
803
|
-
}(
|
|
804
|
+
}(wn), Je = function() {
|
|
804
805
|
function e(t, n) {
|
|
805
806
|
n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
|
|
806
807
|
}
|
|
807
808
|
return e.prototype.schedule = function(t, n, r) {
|
|
808
809
|
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, t).schedule(r, n);
|
|
809
|
-
}, e.now =
|
|
810
|
-
}(),
|
|
811
|
-
|
|
810
|
+
}, e.now = Oe.now, e;
|
|
811
|
+
}(), Cn = function(e) {
|
|
812
|
+
T(t, e);
|
|
812
813
|
function t(n, r) {
|
|
813
|
-
r === void 0 && (r =
|
|
814
|
+
r === void 0 && (r = Je.now);
|
|
814
815
|
var i = e.call(this, n, r) || this;
|
|
815
816
|
return i.actions = [], i._active = !1, i;
|
|
816
817
|
}
|
|
@@ -832,70 +833,70 @@ var an = function(e) {
|
|
|
832
833
|
throw i;
|
|
833
834
|
}
|
|
834
835
|
}, t;
|
|
835
|
-
}(
|
|
836
|
+
}(Je), Ie = new Cn(En), xn = Ie, Ae = new w(function(e) {
|
|
836
837
|
return e.complete();
|
|
837
838
|
});
|
|
838
|
-
function
|
|
839
|
-
return e ?
|
|
839
|
+
function On(e) {
|
|
840
|
+
return e ? In(e) : Ae;
|
|
840
841
|
}
|
|
841
|
-
function
|
|
842
|
-
return new
|
|
842
|
+
function In(e) {
|
|
843
|
+
return new w(function(t) {
|
|
843
844
|
return e.schedule(function() {
|
|
844
845
|
return t.complete();
|
|
845
846
|
});
|
|
846
847
|
});
|
|
847
848
|
}
|
|
848
|
-
function
|
|
849
|
-
return e &&
|
|
849
|
+
function ot(e) {
|
|
850
|
+
return e && S(e.schedule);
|
|
850
851
|
}
|
|
851
|
-
function
|
|
852
|
+
function ut(e) {
|
|
852
853
|
return e[e.length - 1];
|
|
853
854
|
}
|
|
854
|
-
function
|
|
855
|
-
return
|
|
855
|
+
function ke(e) {
|
|
856
|
+
return ot(ut(e)) ? e.pop() : void 0;
|
|
856
857
|
}
|
|
857
|
-
function
|
|
858
|
-
return typeof
|
|
858
|
+
function An(e, t) {
|
|
859
|
+
return typeof ut(e) == "number" ? e.pop() : t;
|
|
859
860
|
}
|
|
860
|
-
var
|
|
861
|
+
var at = function(e) {
|
|
861
862
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
862
863
|
};
|
|
863
|
-
function
|
|
864
|
-
return
|
|
864
|
+
function st(e) {
|
|
865
|
+
return S(e == null ? void 0 : e.then);
|
|
865
866
|
}
|
|
866
|
-
function
|
|
867
|
-
return
|
|
867
|
+
function ct(e) {
|
|
868
|
+
return S(e[xe]);
|
|
868
869
|
}
|
|
869
|
-
function
|
|
870
|
-
return Symbol.asyncIterator &&
|
|
870
|
+
function lt(e) {
|
|
871
|
+
return Symbol.asyncIterator && S(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
871
872
|
}
|
|
872
|
-
function
|
|
873
|
+
function ft(e) {
|
|
873
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.");
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
+
function kn() {
|
|
876
877
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
877
878
|
}
|
|
878
|
-
var
|
|
879
|
-
function
|
|
880
|
-
return
|
|
879
|
+
var dt = kn();
|
|
880
|
+
function vt(e) {
|
|
881
|
+
return S(e == null ? void 0 : e[dt]);
|
|
881
882
|
}
|
|
882
|
-
function
|
|
883
|
-
return
|
|
883
|
+
function ht(e) {
|
|
884
|
+
return cn(this, arguments, function() {
|
|
884
885
|
var n, r, i, o;
|
|
885
|
-
return
|
|
886
|
+
return et(this, function(u) {
|
|
886
887
|
switch (u.label) {
|
|
887
888
|
case 0:
|
|
888
889
|
n = e.getReader(), u.label = 1;
|
|
889
890
|
case 1:
|
|
890
891
|
u.trys.push([1, , 9, 10]), u.label = 2;
|
|
891
892
|
case 2:
|
|
892
|
-
return [4,
|
|
893
|
+
return [4, W(n.read())];
|
|
893
894
|
case 3:
|
|
894
|
-
return r = u.sent(), i = r.value, o = r.done, o ? [4,
|
|
895
|
+
return r = u.sent(), i = r.value, o = r.done, o ? [4, W(void 0)] : [3, 5];
|
|
895
896
|
case 4:
|
|
896
897
|
return [2, u.sent()];
|
|
897
898
|
case 5:
|
|
898
|
-
return [4,
|
|
899
|
+
return [4, W(i)];
|
|
899
900
|
case 6:
|
|
900
901
|
return [4, u.sent()];
|
|
901
902
|
case 7:
|
|
@@ -910,63 +911,63 @@ function it(e) {
|
|
|
910
911
|
});
|
|
911
912
|
});
|
|
912
913
|
}
|
|
913
|
-
function
|
|
914
|
-
return
|
|
914
|
+
function pt(e) {
|
|
915
|
+
return S(e == null ? void 0 : e.getReader);
|
|
915
916
|
}
|
|
916
|
-
function
|
|
917
|
-
if (e instanceof
|
|
917
|
+
function k(e) {
|
|
918
|
+
if (e instanceof w)
|
|
918
919
|
return e;
|
|
919
920
|
if (e != null) {
|
|
920
|
-
if (
|
|
921
|
-
return
|
|
922
|
-
if (
|
|
923
|
-
return
|
|
924
|
-
if (
|
|
925
|
-
return
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
928
|
-
if (
|
|
929
|
-
return
|
|
930
|
-
if (
|
|
931
|
-
return
|
|
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);
|
|
932
933
|
}
|
|
933
|
-
throw
|
|
934
|
+
throw ft(e);
|
|
934
935
|
}
|
|
935
|
-
function
|
|
936
|
-
return new
|
|
937
|
-
var n = e[
|
|
938
|
-
if (
|
|
936
|
+
function Fn(e) {
|
|
937
|
+
return new w(function(t) {
|
|
938
|
+
var n = e[xe]();
|
|
939
|
+
if (S(n.subscribe))
|
|
939
940
|
return n.subscribe(t);
|
|
940
941
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
941
942
|
});
|
|
942
943
|
}
|
|
943
|
-
function
|
|
944
|
-
return new
|
|
944
|
+
function Pn(e) {
|
|
945
|
+
return new w(function(t) {
|
|
945
946
|
for (var n = 0; n < e.length && !t.closed; n++)
|
|
946
947
|
t.next(e[n]);
|
|
947
948
|
t.complete();
|
|
948
949
|
});
|
|
949
950
|
}
|
|
950
|
-
function
|
|
951
|
-
return new
|
|
951
|
+
function Tn(e) {
|
|
952
|
+
return new w(function(t) {
|
|
952
953
|
e.then(function(n) {
|
|
953
954
|
t.closed || (t.next(n), t.complete());
|
|
954
955
|
}, function(n) {
|
|
955
956
|
return t.error(n);
|
|
956
|
-
}).then(null,
|
|
957
|
+
}).then(null, it);
|
|
957
958
|
});
|
|
958
959
|
}
|
|
959
|
-
function
|
|
960
|
-
return new
|
|
960
|
+
function $n(e) {
|
|
961
|
+
return new w(function(t) {
|
|
961
962
|
var n, r;
|
|
962
963
|
try {
|
|
963
|
-
for (var i =
|
|
964
|
+
for (var i = q(e), o = i.next(); !o.done; o = i.next()) {
|
|
964
965
|
var u = o.value;
|
|
965
966
|
if (t.next(u), t.closed)
|
|
966
967
|
return;
|
|
967
968
|
}
|
|
968
|
-
} catch (
|
|
969
|
-
n = { error:
|
|
969
|
+
} catch (a) {
|
|
970
|
+
n = { error: a };
|
|
970
971
|
} finally {
|
|
971
972
|
try {
|
|
972
973
|
o && !o.done && (r = i.return) && r.call(i);
|
|
@@ -978,42 +979,42 @@ function Sn(e) {
|
|
|
978
979
|
t.complete();
|
|
979
980
|
});
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
-
return new
|
|
983
|
-
|
|
982
|
+
function mt(e) {
|
|
983
|
+
return new w(function(t) {
|
|
984
|
+
Rn(e, t).catch(function(n) {
|
|
984
985
|
return t.error(n);
|
|
985
986
|
});
|
|
986
987
|
});
|
|
987
988
|
}
|
|
988
|
-
function
|
|
989
|
-
return
|
|
989
|
+
function Dn(e) {
|
|
990
|
+
return mt(ht(e));
|
|
990
991
|
}
|
|
991
|
-
function
|
|
992
|
+
function Rn(e, t) {
|
|
992
993
|
var n, r, i, o;
|
|
993
|
-
return
|
|
994
|
-
var u,
|
|
995
|
-
return
|
|
996
|
-
switch (
|
|
994
|
+
return we(this, void 0, void 0, function() {
|
|
995
|
+
var u, a;
|
|
996
|
+
return et(this, function(s) {
|
|
997
|
+
switch (s.label) {
|
|
997
998
|
case 0:
|
|
998
|
-
|
|
999
|
+
s.trys.push([0, 5, 6, 11]), n = ln(e), s.label = 1;
|
|
999
1000
|
case 1:
|
|
1000
1001
|
return [4, n.next()];
|
|
1001
1002
|
case 2:
|
|
1002
|
-
if (r =
|
|
1003
|
+
if (r = s.sent(), !!r.done)
|
|
1003
1004
|
return [3, 4];
|
|
1004
1005
|
if (u = r.value, t.next(u), t.closed)
|
|
1005
1006
|
return [2];
|
|
1006
|
-
|
|
1007
|
+
s.label = 3;
|
|
1007
1008
|
case 3:
|
|
1008
1009
|
return [3, 1];
|
|
1009
1010
|
case 4:
|
|
1010
1011
|
return [3, 11];
|
|
1011
1012
|
case 5:
|
|
1012
|
-
return
|
|
1013
|
+
return a = s.sent(), i = { error: a }, [3, 11];
|
|
1013
1014
|
case 6:
|
|
1014
|
-
return
|
|
1015
|
+
return s.trys.push([6, , 9, 10]), r && !r.done && (o = n.return) ? [4, o.call(n)] : [3, 8];
|
|
1015
1016
|
case 7:
|
|
1016
|
-
|
|
1017
|
+
s.sent(), s.label = 8;
|
|
1017
1018
|
case 8:
|
|
1018
1019
|
return [3, 10];
|
|
1019
1020
|
case 9:
|
|
@@ -1028,7 +1029,7 @@ function En(e, t) {
|
|
|
1028
1029
|
});
|
|
1029
1030
|
});
|
|
1030
1031
|
}
|
|
1031
|
-
function
|
|
1032
|
+
function V(e, t, n, r, i) {
|
|
1032
1033
|
r === void 0 && (r = 0), i === void 0 && (i = !1);
|
|
1033
1034
|
var o = t.schedule(function() {
|
|
1034
1035
|
n(), i ? e.add(this.schedule(null, r)) : this.unsubscribe();
|
|
@@ -1036,70 +1037,70 @@ function P(e, t, n, r, i) {
|
|
|
1036
1037
|
if (e.add(o), !i)
|
|
1037
1038
|
return o;
|
|
1038
1039
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return t === void 0 && (t = 0),
|
|
1041
|
-
n.subscribe(
|
|
1042
|
-
return
|
|
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() {
|
|
1043
1044
|
return r.next(i);
|
|
1044
1045
|
}, t);
|
|
1045
1046
|
}, function() {
|
|
1046
|
-
return
|
|
1047
|
+
return V(r, e, function() {
|
|
1047
1048
|
return r.complete();
|
|
1048
1049
|
}, t);
|
|
1049
1050
|
}, function(i) {
|
|
1050
|
-
return
|
|
1051
|
+
return V(r, e, function() {
|
|
1051
1052
|
return r.error(i);
|
|
1052
1053
|
}, t);
|
|
1053
1054
|
}));
|
|
1054
1055
|
});
|
|
1055
1056
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return t === void 0 && (t = 0),
|
|
1057
|
+
function yt(e, t) {
|
|
1058
|
+
return t === void 0 && (t = 0), x(function(n, r) {
|
|
1058
1059
|
r.add(e.schedule(function() {
|
|
1059
1060
|
return n.subscribe(r);
|
|
1060
1061
|
}, t));
|
|
1061
1062
|
});
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return
|
|
1064
|
+
function jn(e, t) {
|
|
1065
|
+
return k(e).pipe(yt(t), bt(t));
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
-
return
|
|
1067
|
+
function Ln(e, t) {
|
|
1068
|
+
return k(e).pipe(yt(t), bt(t));
|
|
1068
1069
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return new
|
|
1070
|
+
function Vn(e, t) {
|
|
1071
|
+
return new w(function(n) {
|
|
1071
1072
|
var r = 0;
|
|
1072
1073
|
return t.schedule(function() {
|
|
1073
1074
|
r === e.length ? n.complete() : (n.next(e[r++]), n.closed || this.schedule());
|
|
1074
1075
|
});
|
|
1075
1076
|
});
|
|
1076
1077
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return new
|
|
1078
|
+
function Un(e, t) {
|
|
1079
|
+
return new w(function(n) {
|
|
1079
1080
|
var r;
|
|
1080
|
-
return
|
|
1081
|
-
r = e[
|
|
1081
|
+
return V(n, t, function() {
|
|
1082
|
+
r = e[dt](), V(n, t, function() {
|
|
1082
1083
|
var i, o, u;
|
|
1083
1084
|
try {
|
|
1084
1085
|
i = r.next(), o = i.value, u = i.done;
|
|
1085
|
-
} catch (
|
|
1086
|
-
n.error(
|
|
1086
|
+
} catch (a) {
|
|
1087
|
+
n.error(a);
|
|
1087
1088
|
return;
|
|
1088
1089
|
}
|
|
1089
1090
|
u ? n.complete() : n.next(o);
|
|
1090
1091
|
}, 0, !0);
|
|
1091
1092
|
}), function() {
|
|
1092
|
-
return
|
|
1093
|
+
return S(r == null ? void 0 : r.return) && r.return();
|
|
1093
1094
|
};
|
|
1094
1095
|
});
|
|
1095
1096
|
}
|
|
1096
|
-
function
|
|
1097
|
+
function gt(e, t) {
|
|
1097
1098
|
if (!e)
|
|
1098
1099
|
throw new Error("Iterable cannot be null");
|
|
1099
|
-
return new
|
|
1100
|
-
|
|
1100
|
+
return new w(function(n) {
|
|
1101
|
+
V(n, t, function() {
|
|
1101
1102
|
var r = e[Symbol.asyncIterator]();
|
|
1102
|
-
|
|
1103
|
+
V(n, t, function() {
|
|
1103
1104
|
r.next().then(function(i) {
|
|
1104
1105
|
i.done ? n.complete() : n.next(i.value);
|
|
1105
1106
|
});
|
|
@@ -1107,111 +1108,111 @@ function ct(e, t) {
|
|
|
1107
1108
|
});
|
|
1108
1109
|
});
|
|
1109
1110
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return
|
|
1111
|
+
function Mn(e, t) {
|
|
1112
|
+
return gt(ht(e), t);
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
+
function Nn(e, t) {
|
|
1114
1115
|
if (e != null) {
|
|
1115
|
-
if (
|
|
1116
|
-
return
|
|
1117
|
-
if (
|
|
1118
|
-
return
|
|
1119
|
-
if (
|
|
1120
|
-
return
|
|
1121
|
-
if (
|
|
1122
|
-
return
|
|
1123
|
-
if (
|
|
1124
|
-
return
|
|
1125
|
-
if (
|
|
1126
|
-
return
|
|
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);
|
|
1127
1128
|
}
|
|
1128
|
-
throw
|
|
1129
|
+
throw ft(e);
|
|
1129
1130
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return t ?
|
|
1131
|
+
function $(e, t) {
|
|
1132
|
+
return t ? Nn(e, t) : k(e);
|
|
1132
1133
|
}
|
|
1133
|
-
function
|
|
1134
|
+
function re() {
|
|
1134
1135
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1135
1136
|
e[t] = arguments[t];
|
|
1136
|
-
var n =
|
|
1137
|
-
return
|
|
1137
|
+
var n = ke(e);
|
|
1138
|
+
return $(e, n);
|
|
1138
1139
|
}
|
|
1139
|
-
var
|
|
1140
|
+
var _t = Ee(function(e) {
|
|
1140
1141
|
return function() {
|
|
1141
1142
|
e(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
|
1142
1143
|
};
|
|
1143
1144
|
});
|
|
1144
|
-
function
|
|
1145
|
+
function Wn(e) {
|
|
1145
1146
|
return e instanceof Date && !isNaN(e);
|
|
1146
1147
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1148
|
+
function P(e, t) {
|
|
1149
|
+
return x(function(n, r) {
|
|
1149
1150
|
var i = 0;
|
|
1150
|
-
n.subscribe(
|
|
1151
|
+
n.subscribe(C(r, function(o) {
|
|
1151
1152
|
r.next(e.call(t, o, i++));
|
|
1152
1153
|
}));
|
|
1153
1154
|
});
|
|
1154
1155
|
}
|
|
1155
|
-
function
|
|
1156
|
-
var
|
|
1157
|
-
|
|
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();
|
|
1158
1159
|
}, p = function(h) {
|
|
1159
|
-
return c < r ?
|
|
1160
|
-
},
|
|
1160
|
+
return c < r ? y(h) : s.push(h);
|
|
1161
|
+
}, y = function(h) {
|
|
1161
1162
|
o && t.next(h), c++;
|
|
1162
|
-
var
|
|
1163
|
-
|
|
1164
|
-
i == null || i(
|
|
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);
|
|
1165
1166
|
}, function() {
|
|
1166
|
-
|
|
1167
|
+
I = !0;
|
|
1167
1168
|
}, void 0, function() {
|
|
1168
|
-
if (
|
|
1169
|
+
if (I)
|
|
1169
1170
|
try {
|
|
1170
1171
|
c--;
|
|
1171
|
-
for (var
|
|
1172
|
-
var
|
|
1173
|
-
u ?
|
|
1174
|
-
return
|
|
1175
|
-
}) :
|
|
1176
|
-
};
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
} catch (
|
|
1180
|
-
t.error(
|
|
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);
|
|
1181
1182
|
}
|
|
1182
1183
|
}));
|
|
1183
1184
|
};
|
|
1184
|
-
return e.subscribe(
|
|
1185
|
-
|
|
1185
|
+
return e.subscribe(C(t, p, function() {
|
|
1186
|
+
f = !0, d();
|
|
1186
1187
|
})), function() {
|
|
1187
|
-
|
|
1188
|
+
a == null || a();
|
|
1188
1189
|
};
|
|
1189
1190
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return n === void 0 && (n = 1 / 0),
|
|
1192
|
-
return
|
|
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) {
|
|
1193
1194
|
return t(r, o, i, u);
|
|
1194
|
-
})(
|
|
1195
|
-
}, n) : (typeof t == "number" && (n = t),
|
|
1196
|
-
return
|
|
1195
|
+
})(k(e(r, i)));
|
|
1196
|
+
}, n) : (typeof t == "number" && (n = t), x(function(r, i) {
|
|
1197
|
+
return qn(r, i, e, n);
|
|
1197
1198
|
}));
|
|
1198
1199
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return e === void 0 && (e = 1 / 0),
|
|
1200
|
+
function St(e) {
|
|
1201
|
+
return e === void 0 && (e = 1 / 0), Fe(Y, e);
|
|
1201
1202
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1203
|
+
function Kn() {
|
|
1204
|
+
return St(1);
|
|
1204
1205
|
}
|
|
1205
|
-
function
|
|
1206
|
+
function Hn() {
|
|
1206
1207
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1207
1208
|
e[t] = arguments[t];
|
|
1208
|
-
return
|
|
1209
|
+
return Kn()($(e, ke(e)));
|
|
1209
1210
|
}
|
|
1210
|
-
function
|
|
1211
|
-
e === void 0 && (e = 0), n === void 0 && (n =
|
|
1211
|
+
function Gn(e, t, n) {
|
|
1212
|
+
e === void 0 && (e = 0), n === void 0 && (n = xn);
|
|
1212
1213
|
var r = -1;
|
|
1213
|
-
return t != null && (
|
|
1214
|
-
var o =
|
|
1214
|
+
return t != null && (ot(t) ? n = t : r = t), new w(function(i) {
|
|
1215
|
+
var o = Wn(e) ? +e - n.now() : e;
|
|
1215
1216
|
o < 0 && (o = 0);
|
|
1216
1217
|
var u = 0;
|
|
1217
1218
|
return n.schedule(function() {
|
|
@@ -1219,181 +1220,181 @@ function Rn(e, t, n) {
|
|
|
1219
1220
|
}, o);
|
|
1220
1221
|
});
|
|
1221
1222
|
}
|
|
1222
|
-
function
|
|
1223
|
+
function Qn() {
|
|
1223
1224
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1224
1225
|
e[t] = arguments[t];
|
|
1225
|
-
var n =
|
|
1226
|
-
return i.length ? i.length === 1 ?
|
|
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;
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return
|
|
1229
|
+
function Yn(e, t) {
|
|
1230
|
+
return x(function(n, r) {
|
|
1230
1231
|
var i = 0;
|
|
1231
|
-
n.subscribe(
|
|
1232
|
+
n.subscribe(C(r, function(o) {
|
|
1232
1233
|
return e.call(t, o, i++) && r.next(o);
|
|
1233
1234
|
}));
|
|
1234
1235
|
});
|
|
1235
1236
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return
|
|
1237
|
+
function wt(e) {
|
|
1238
|
+
return x(function(t, n) {
|
|
1238
1239
|
var r = null, i = !1, o;
|
|
1239
|
-
r = t.subscribe(
|
|
1240
|
-
o =
|
|
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;
|
|
1241
1242
|
})), i && (r.unsubscribe(), r = null, o.subscribe(n));
|
|
1242
1243
|
});
|
|
1243
1244
|
}
|
|
1244
|
-
function
|
|
1245
|
+
function Bn(e, t, n, r, i) {
|
|
1245
1246
|
return function(o, u) {
|
|
1246
|
-
var
|
|
1247
|
-
o.subscribe(
|
|
1248
|
-
var
|
|
1249
|
-
|
|
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);
|
|
1250
1251
|
}, i && function() {
|
|
1251
|
-
|
|
1252
|
+
a && u.next(s), u.complete();
|
|
1252
1253
|
}));
|
|
1253
1254
|
};
|
|
1254
1255
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return t === void 0 && (t =
|
|
1257
|
-
var i = null, o = null, u = null,
|
|
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() {
|
|
1258
1259
|
if (i) {
|
|
1259
1260
|
i.unsubscribe(), i = null;
|
|
1260
1261
|
var c = o;
|
|
1261
1262
|
o = null, r.next(c);
|
|
1262
1263
|
}
|
|
1263
1264
|
};
|
|
1264
|
-
function
|
|
1265
|
+
function s() {
|
|
1265
1266
|
var c = u + e, l = t.now();
|
|
1266
1267
|
if (l < c) {
|
|
1267
1268
|
i = this.schedule(void 0, c - l), r.add(i);
|
|
1268
1269
|
return;
|
|
1269
1270
|
}
|
|
1270
|
-
|
|
1271
|
+
a();
|
|
1271
1272
|
}
|
|
1272
|
-
n.subscribe(
|
|
1273
|
-
o = c, u = t.now(), i || (i = t.schedule(
|
|
1273
|
+
n.subscribe(C(r, function(c) {
|
|
1274
|
+
o = c, u = t.now(), i || (i = t.schedule(s, e), r.add(i));
|
|
1274
1275
|
}, function() {
|
|
1275
|
-
|
|
1276
|
+
a(), r.complete();
|
|
1276
1277
|
}, void 0, function() {
|
|
1277
1278
|
o = i = null;
|
|
1278
1279
|
}));
|
|
1279
1280
|
});
|
|
1280
1281
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return
|
|
1282
|
+
function zn(e) {
|
|
1283
|
+
return x(function(t, n) {
|
|
1283
1284
|
var r = !1;
|
|
1284
|
-
t.subscribe(
|
|
1285
|
+
t.subscribe(C(n, function(i) {
|
|
1285
1286
|
r = !0, n.next(i);
|
|
1286
1287
|
}, function() {
|
|
1287
1288
|
r || n.next(e), n.complete();
|
|
1288
1289
|
}));
|
|
1289
1290
|
});
|
|
1290
1291
|
}
|
|
1291
|
-
function
|
|
1292
|
+
function ye(e) {
|
|
1292
1293
|
return e <= 0 ? function() {
|
|
1293
|
-
return
|
|
1294
|
-
} :
|
|
1294
|
+
return Ae;
|
|
1295
|
+
} : x(function(t, n) {
|
|
1295
1296
|
var r = 0;
|
|
1296
|
-
t.subscribe(
|
|
1297
|
+
t.subscribe(C(n, function(i) {
|
|
1297
1298
|
++r <= e && (n.next(i), e <= r && n.complete());
|
|
1298
1299
|
}));
|
|
1299
1300
|
});
|
|
1300
1301
|
}
|
|
1301
|
-
function
|
|
1302
|
-
return
|
|
1303
|
-
e.subscribe(
|
|
1302
|
+
function Zn() {
|
|
1303
|
+
return x(function(e, t) {
|
|
1304
|
+
e.subscribe(C(t, be));
|
|
1304
1305
|
});
|
|
1305
1306
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
1307
|
+
function Xn(e) {
|
|
1308
|
+
return P(function() {
|
|
1308
1309
|
return e;
|
|
1309
1310
|
});
|
|
1310
1311
|
}
|
|
1311
|
-
function
|
|
1312
|
+
function Et(e, t) {
|
|
1312
1313
|
return t ? function(n) {
|
|
1313
|
-
return
|
|
1314
|
-
} :
|
|
1315
|
-
return
|
|
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));
|
|
1316
1317
|
});
|
|
1317
1318
|
}
|
|
1318
|
-
function
|
|
1319
|
-
t === void 0 && (t =
|
|
1320
|
-
var n =
|
|
1321
|
-
return
|
|
1319
|
+
function er(e, t) {
|
|
1320
|
+
t === void 0 && (t = Ie);
|
|
1321
|
+
var n = Gn(e, t);
|
|
1322
|
+
return Et(function() {
|
|
1322
1323
|
return n;
|
|
1323
1324
|
});
|
|
1324
1325
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return t === void 0 && (t =
|
|
1326
|
+
function tr(e, t) {
|
|
1327
|
+
return t === void 0 && (t = Y), e = e ?? nr, x(function(n, r) {
|
|
1327
1328
|
var i, o = !0;
|
|
1328
|
-
n.subscribe(
|
|
1329
|
-
var
|
|
1330
|
-
(o || !e(i,
|
|
1329
|
+
n.subscribe(C(r, function(u) {
|
|
1330
|
+
var a = t(u);
|
|
1331
|
+
(o || !e(i, a)) && (o = !1, i = a, r.next(u));
|
|
1331
1332
|
}));
|
|
1332
1333
|
});
|
|
1333
1334
|
}
|
|
1334
|
-
function
|
|
1335
|
+
function nr(e, t) {
|
|
1335
1336
|
return e === t;
|
|
1336
1337
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return e === void 0 && (e =
|
|
1338
|
+
function rr(e) {
|
|
1339
|
+
return e === void 0 && (e = ir), x(function(t, n) {
|
|
1339
1340
|
var r = !1;
|
|
1340
|
-
t.subscribe(
|
|
1341
|
+
t.subscribe(C(n, function(i) {
|
|
1341
1342
|
r = !0, n.next(i);
|
|
1342
1343
|
}, function() {
|
|
1343
1344
|
return r ? n.complete() : n.error(e());
|
|
1344
1345
|
}));
|
|
1345
1346
|
});
|
|
1346
1347
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return new
|
|
1348
|
+
function ir() {
|
|
1349
|
+
return new _t();
|
|
1349
1350
|
}
|
|
1350
|
-
function
|
|
1351
|
+
function Ct(e, t) {
|
|
1351
1352
|
var n = arguments.length >= 2;
|
|
1352
1353
|
return function(r) {
|
|
1353
|
-
return r.pipe(e ?
|
|
1354
|
+
return r.pipe(e ? Yn(function(i, o) {
|
|
1354
1355
|
return e(i, o, r);
|
|
1355
|
-
}) :
|
|
1356
|
-
return new
|
|
1356
|
+
}) : Y, ye(1), n ? zn(t) : rr(function() {
|
|
1357
|
+
return new _t();
|
|
1357
1358
|
}));
|
|
1358
1359
|
};
|
|
1359
1360
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
1361
|
+
function or(e, t) {
|
|
1362
|
+
return x(Bn(e, t, arguments.length >= 2, !0));
|
|
1362
1363
|
}
|
|
1363
|
-
function
|
|
1364
|
+
function ur(e) {
|
|
1364
1365
|
e === void 0 && (e = {});
|
|
1365
1366
|
var t = e.connector, n = t === void 0 ? function() {
|
|
1366
|
-
return new
|
|
1367
|
-
} : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o,
|
|
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;
|
|
1368
1369
|
return function(c) {
|
|
1369
|
-
var l,
|
|
1370
|
-
|
|
1371
|
-
},
|
|
1372
|
-
|
|
1373
|
-
},
|
|
1374
|
-
var
|
|
1375
|
-
|
|
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();
|
|
1376
1377
|
};
|
|
1377
|
-
return
|
|
1378
|
-
p++, !h && !
|
|
1379
|
-
var
|
|
1380
|
-
|
|
1381
|
-
p--, p === 0 && !h && !
|
|
1382
|
-
}),
|
|
1383
|
-
next: function(
|
|
1384
|
-
return
|
|
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);
|
|
1385
1386
|
},
|
|
1386
|
-
error: function(
|
|
1387
|
-
h = !0,
|
|
1387
|
+
error: function(g) {
|
|
1388
|
+
h = !0, I(), f = fe(A, i, g), O.error(g);
|
|
1388
1389
|
},
|
|
1389
1390
|
complete: function() {
|
|
1390
|
-
|
|
1391
|
+
y = !0, I(), f = fe(A, u), O.complete();
|
|
1391
1392
|
}
|
|
1392
|
-
}),
|
|
1393
|
+
}), k(b).subscribe(l));
|
|
1393
1394
|
})(c);
|
|
1394
1395
|
};
|
|
1395
1396
|
}
|
|
1396
|
-
function
|
|
1397
|
+
function fe(e, t) {
|
|
1397
1398
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
1398
1399
|
n[r - 2] = arguments[r];
|
|
1399
1400
|
if (t === !0) {
|
|
@@ -1401,164 +1402,169 @@ function ue(e, t) {
|
|
|
1401
1402
|
return;
|
|
1402
1403
|
}
|
|
1403
1404
|
if (t !== !1) {
|
|
1404
|
-
var i = new
|
|
1405
|
+
var i = new G({
|
|
1405
1406
|
next: function() {
|
|
1406
1407
|
i.unsubscribe(), e();
|
|
1407
1408
|
}
|
|
1408
1409
|
});
|
|
1409
|
-
return
|
|
1410
|
+
return k(t.apply(void 0, N([], M(n)))).subscribe(i);
|
|
1410
1411
|
}
|
|
1411
1412
|
}
|
|
1412
|
-
function
|
|
1413
|
-
var r, i, o, u,
|
|
1414
|
-
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,
|
|
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({
|
|
1415
1416
|
connector: function() {
|
|
1416
|
-
return new
|
|
1417
|
+
return new Sn(u, t, n);
|
|
1417
1418
|
},
|
|
1418
1419
|
resetOnError: !0,
|
|
1419
1420
|
resetOnComplete: !1,
|
|
1420
|
-
resetOnRefCountZero:
|
|
1421
|
+
resetOnRefCountZero: a
|
|
1421
1422
|
});
|
|
1422
1423
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1425
|
-
var i = null, o = 0, u = !1,
|
|
1424
|
+
function xt(e, t) {
|
|
1425
|
+
return x(function(n, r) {
|
|
1426
|
+
var i = null, o = 0, u = !1, a = function() {
|
|
1426
1427
|
return u && !i && r.complete();
|
|
1427
1428
|
};
|
|
1428
|
-
n.subscribe(
|
|
1429
|
+
n.subscribe(C(r, function(s) {
|
|
1429
1430
|
i == null || i.unsubscribe();
|
|
1430
1431
|
var c = 0, l = o++;
|
|
1431
|
-
|
|
1432
|
-
return r.next(t ? t(
|
|
1432
|
+
k(e(s, l)).subscribe(i = C(r, function(f) {
|
|
1433
|
+
return r.next(t ? t(s, f, l, c++) : f);
|
|
1433
1434
|
}, function() {
|
|
1434
|
-
i = null,
|
|
1435
|
+
i = null, a();
|
|
1435
1436
|
}));
|
|
1436
1437
|
}, function() {
|
|
1437
|
-
u = !0,
|
|
1438
|
+
u = !0, a();
|
|
1438
1439
|
}));
|
|
1439
1440
|
});
|
|
1440
1441
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var r =
|
|
1443
|
-
return r ?
|
|
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) {
|
|
1444
1445
|
var u;
|
|
1445
1446
|
(u = r.subscribe) === null || u === void 0 || u.call(r);
|
|
1446
|
-
var
|
|
1447
|
-
i.subscribe(
|
|
1447
|
+
var a = !0;
|
|
1448
|
+
i.subscribe(C(o, function(s) {
|
|
1448
1449
|
var c;
|
|
1449
|
-
(c = r.next) === null || c === void 0 || c.call(r,
|
|
1450
|
+
(c = r.next) === null || c === void 0 || c.call(r, s), o.next(s);
|
|
1450
1451
|
}, function() {
|
|
1451
|
-
var
|
|
1452
|
-
|
|
1453
|
-
}, function(
|
|
1452
|
+
var s;
|
|
1453
|
+
a = !1, (s = r.complete) === null || s === void 0 || s.call(r), o.complete();
|
|
1454
|
+
}, function(s) {
|
|
1454
1455
|
var c;
|
|
1455
|
-
|
|
1456
|
+
a = !1, (c = r.error) === null || c === void 0 || c.call(r, s), o.error(s);
|
|
1456
1457
|
}, function() {
|
|
1457
|
-
var
|
|
1458
|
-
|
|
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);
|
|
1459
1460
|
}));
|
|
1460
|
-
}) :
|
|
1461
|
+
}) : Y;
|
|
1461
1462
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return new
|
|
1464
|
-
var n =
|
|
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));
|
|
1465
1466
|
return { unsubscribe: n };
|
|
1466
1467
|
});
|
|
1467
1468
|
}
|
|
1468
|
-
const
|
|
1469
|
-
function
|
|
1470
|
-
const { firebaseConfig: t, appName: n, suspense: r } = e, i =
|
|
1469
|
+
const cr = "[DEFAULT]", Ot = v.createContext(void 0), Te = v.createContext(!1), lr = "4.2.3-exp.9429194", 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(() => {
|
|
1471
1472
|
if (e.firebaseApp)
|
|
1472
1473
|
return e.firebaseApp;
|
|
1473
|
-
const o =
|
|
1474
|
+
const o = Yt().find((u) => u.name === (n || cr));
|
|
1474
1475
|
if (o) {
|
|
1475
|
-
if (t &&
|
|
1476
|
+
if (t && fr(o.options, t))
|
|
1476
1477
|
return o;
|
|
1477
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.`);
|
|
1478
1479
|
} else {
|
|
1479
1480
|
if (!t)
|
|
1480
1481
|
throw new Error("No firebaseConfig provided");
|
|
1481
|
-
const u =
|
|
1482
|
-
return
|
|
1482
|
+
const u = v.version || "unknown";
|
|
1483
|
+
return Ge("react", u), Ge("reactfire", lr), Bt(t, n);
|
|
1483
1484
|
}
|
|
1484
1485
|
}, [e.firebaseApp, t, n]);
|
|
1485
|
-
return
|
|
1486
|
-
|
|
1486
|
+
return v.createElement(
|
|
1487
|
+
Ot.Provider,
|
|
1487
1488
|
{ value: i },
|
|
1488
|
-
|
|
1489
|
+
v.createElement(Te.Provider, Object.assign({ value: r ?? !1 }, e))
|
|
1489
1490
|
);
|
|
1490
1491
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const e =
|
|
1492
|
+
function ei() {
|
|
1493
|
+
const e = v.useContext(Te);
|
|
1493
1494
|
return e ?? !1;
|
|
1494
1495
|
}
|
|
1495
|
-
function
|
|
1496
|
-
const t =
|
|
1496
|
+
function ue(e) {
|
|
1497
|
+
const t = v.useContext(Te);
|
|
1497
1498
|
return e !== void 0 ? e : t;
|
|
1498
1499
|
}
|
|
1499
|
-
function
|
|
1500
|
-
const e =
|
|
1500
|
+
function It() {
|
|
1501
|
+
const e = v.useContext(Ot);
|
|
1501
1502
|
if (!e)
|
|
1502
1503
|
throw new Error("Cannot call useFirebaseApp unless your component is within a FirebaseAppProvider");
|
|
1503
1504
|
return e;
|
|
1504
1505
|
}
|
|
1505
|
-
function
|
|
1506
|
-
return
|
|
1506
|
+
function ti(e) {
|
|
1507
|
+
return we(this, void 0, void 0, function* () {
|
|
1507
1508
|
const t = yield e();
|
|
1508
|
-
return
|
|
1509
|
+
return Re(Pe(t), `auth:user:${t.name}`).toPromise();
|
|
1509
1510
|
});
|
|
1510
1511
|
}
|
|
1511
|
-
function
|
|
1512
|
-
const t =
|
|
1513
|
-
return
|
|
1512
|
+
function dr(e) {
|
|
1513
|
+
const t = Lt(), n = `auth:user:${t.name}`, r = Pe(t);
|
|
1514
|
+
return E(n, r, e);
|
|
1514
1515
|
}
|
|
1515
|
-
function
|
|
1516
|
+
function vr(e, t = !1, n) {
|
|
1516
1517
|
if (!e)
|
|
1517
1518
|
throw new Error("you must provide a user");
|
|
1518
|
-
const r = `auth:idTokenResult:${e.uid}:forceRefresh=${t}`, i =
|
|
1519
|
-
return
|
|
1519
|
+
const r = `auth:idTokenResult:${e.uid}:forceRefresh=${t}`, i = $(e.getIdTokenResult(t));
|
|
1520
|
+
return E(r, i, n);
|
|
1520
1521
|
}
|
|
1521
|
-
function
|
|
1522
|
+
function ni(e) {
|
|
1522
1523
|
if (e != null && e.hasOwnProperty("requiredClaims") && (e != null && e.hasOwnProperty("validateCustomClaims")))
|
|
1523
1524
|
throw new Error('Cannot have both "requiredClaims" and "validateCustomClaims". Use one or the other.');
|
|
1524
|
-
const t =
|
|
1525
|
+
const t = Lt();
|
|
1525
1526
|
let n = `auth:signInCheck:${t.name}::forceRefresh:${!!(e != null && e.forceRefresh)}`;
|
|
1526
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)}`);
|
|
1527
|
-
const r =
|
|
1528
|
+
const r = Pe(t).pipe(xt((i) => {
|
|
1528
1529
|
var o;
|
|
1529
|
-
return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ?
|
|
1530
|
-
let
|
|
1531
|
-
e.hasOwnProperty("requiredClaims") ?
|
|
1532
|
-
const { hasRequiredClaims:
|
|
1533
|
-
return { signedIn: !0, hasRequiredClaims:
|
|
1534
|
-
})) :
|
|
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 });
|
|
1535
1536
|
}));
|
|
1536
|
-
return
|
|
1537
|
+
return E(n, r, e);
|
|
1537
1538
|
}
|
|
1538
|
-
function
|
|
1539
|
+
function hr(e) {
|
|
1539
1540
|
return function(n) {
|
|
1540
1541
|
const r = {};
|
|
1541
1542
|
return Object.keys(e).forEach((i) => {
|
|
1542
|
-
e[i] !== n[i] && (r[i] = [new
|
|
1543
|
+
e[i] !== n[i] && (r[i] = [new He("auth/missing-claim", `Expected "${e[i]}", but user has "${n[i]}" instead`)]);
|
|
1543
1544
|
}), {
|
|
1544
1545
|
hasRequiredClaims: Object.keys(r).length === 0,
|
|
1545
1546
|
errors: r
|
|
1546
1547
|
};
|
|
1547
1548
|
};
|
|
1548
1549
|
}
|
|
1549
|
-
function
|
|
1550
|
-
const { data: i
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
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()
|
|
1556
1562
|
});
|
|
1557
|
-
}), Object.keys(
|
|
1563
|
+
}), Object.keys(s).length === 0 ? v.createElement(v.Fragment, null, n) : v.createElement(v.Fragment, null, t);
|
|
1558
1564
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const { data: r } =
|
|
1561
|
-
return
|
|
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);
|
|
1562
1568
|
}
|
|
1563
1569
|
/*! *****************************************************************************
|
|
1564
1570
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1574,17 +1580,17 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1574
1580
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1575
1581
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1576
1582
|
***************************************************************************** */
|
|
1577
|
-
var
|
|
1578
|
-
return
|
|
1583
|
+
var ie = function() {
|
|
1584
|
+
return ie = Object.assign || function(t) {
|
|
1579
1585
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1580
1586
|
n = arguments[r];
|
|
1581
1587
|
for (var o in n)
|
|
1582
1588
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1583
1589
|
}
|
|
1584
1590
|
return t;
|
|
1585
|
-
},
|
|
1591
|
+
}, ie.apply(this, arguments);
|
|
1586
1592
|
};
|
|
1587
|
-
function
|
|
1593
|
+
function de(e, t) {
|
|
1588
1594
|
for (var n = 0, r = t.length, i = e.length; n < r; n++, i++)
|
|
1589
1595
|
e[i] = t[n];
|
|
1590
1596
|
return e;
|
|
@@ -1605,11 +1611,11 @@ function se(e, t) {
|
|
|
1605
1611
|
* See the License for the specific language governing permissions and
|
|
1606
1612
|
* limitations under the License.
|
|
1607
1613
|
*/
|
|
1608
|
-
var
|
|
1614
|
+
var U, _;
|
|
1609
1615
|
(function(e) {
|
|
1610
1616
|
e.added = "child_added", e.removed = "child_removed", e.changed = "child_changed", e.moved = "child_moved", e.value = "value";
|
|
1611
|
-
})(
|
|
1612
|
-
var
|
|
1617
|
+
})(_ || (_ = {}));
|
|
1618
|
+
var mr = Object.freeze((U = {}, U[_.added] = Nt, U[_.removed] = Wt, U[_.changed] = qt, U[_.moved] = Kt, U[_.value] = Ht, U));
|
|
1613
1619
|
/**
|
|
1614
1620
|
* @license
|
|
1615
1621
|
* Copyright 2021 Google LLC
|
|
@@ -1626,21 +1632,21 @@ var or = Object.freeze((T = {}, T[m.added] = Ft, T[m.removed] = Pt, T[m.changed]
|
|
|
1626
1632
|
* See the License for the specific language governing permissions and
|
|
1627
1633
|
* limitations under the License.
|
|
1628
1634
|
*/
|
|
1629
|
-
function
|
|
1630
|
-
return new
|
|
1631
|
-
var r =
|
|
1635
|
+
function $e(e, t) {
|
|
1636
|
+
return new w(function(n) {
|
|
1637
|
+
var r = mr[t](e, function(i, o) {
|
|
1632
1638
|
n.next({ snapshot: i, prevKey: o, event: t });
|
|
1633
1639
|
}, n.error.bind(n));
|
|
1634
1640
|
return {
|
|
1635
1641
|
unsubscribe: function() {
|
|
1636
|
-
|
|
1642
|
+
Gt(e, t, r);
|
|
1637
1643
|
}
|
|
1638
1644
|
};
|
|
1639
1645
|
}).pipe(
|
|
1640
1646
|
// Ensures subscribe on observable is async. This handles
|
|
1641
1647
|
// a quirk in the SDK where on/once callbacks can happen
|
|
1642
1648
|
// synchronously.
|
|
1643
|
-
|
|
1649
|
+
er(0)
|
|
1644
1650
|
);
|
|
1645
1651
|
}
|
|
1646
1652
|
/**
|
|
@@ -1659,12 +1665,12 @@ function xe(e, t) {
|
|
|
1659
1665
|
* See the License for the specific language governing permissions and
|
|
1660
1666
|
* limitations under the License.
|
|
1661
1667
|
*/
|
|
1662
|
-
function
|
|
1668
|
+
function br(e) {
|
|
1663
1669
|
return (e == null || e.length === 0) && (e = [
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1670
|
+
_.added,
|
|
1671
|
+
_.removed,
|
|
1672
|
+
_.changed,
|
|
1673
|
+
_.moved
|
|
1668
1674
|
]), e;
|
|
1669
1675
|
}
|
|
1670
1676
|
/**
|
|
@@ -1683,124 +1689,124 @@ function ur(e) {
|
|
|
1683
1689
|
* See the License for the specific language governing permissions and
|
|
1684
1690
|
* limitations under the License.
|
|
1685
1691
|
*/
|
|
1686
|
-
function
|
|
1687
|
-
return
|
|
1692
|
+
function yr(e) {
|
|
1693
|
+
return $e(e, _.value);
|
|
1688
1694
|
}
|
|
1689
|
-
function
|
|
1690
|
-
return t === void 0 && (t = {}),
|
|
1691
|
-
return
|
|
1695
|
+
function gr(e, t) {
|
|
1696
|
+
return t === void 0 && (t = {}), $e(e, _.value).pipe(P(function(n) {
|
|
1697
|
+
return At(n, t);
|
|
1692
1698
|
}));
|
|
1693
1699
|
}
|
|
1694
|
-
function
|
|
1700
|
+
function At(e, t) {
|
|
1695
1701
|
var n;
|
|
1696
1702
|
t === void 0 && (t = {});
|
|
1697
1703
|
var r = e.snapshot.val();
|
|
1698
|
-
return !e.snapshot.exists() || typeof r != "object" ? r :
|
|
1704
|
+
return !e.snapshot.exists() || typeof r != "object" ? r : ie(ie({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
|
|
1699
1705
|
}
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1702
|
-
var n =
|
|
1706
|
+
function _r(e) {
|
|
1707
|
+
return $(Qt(e)).pipe(P(function(t) {
|
|
1708
|
+
var n = _.value;
|
|
1703
1709
|
return { snapshot: t, prevKey: null, event: n };
|
|
1704
1710
|
}));
|
|
1705
1711
|
}
|
|
1706
|
-
function
|
|
1712
|
+
function kt(e, t) {
|
|
1707
1713
|
t === void 0 && (t = {});
|
|
1708
|
-
var n =
|
|
1709
|
-
return
|
|
1714
|
+
var n = br(t.events);
|
|
1715
|
+
return _r(e).pipe(xt(function(r) {
|
|
1710
1716
|
if (!r.snapshot.exists())
|
|
1711
|
-
return
|
|
1712
|
-
var i = [
|
|
1717
|
+
return re([]);
|
|
1718
|
+
var i = [re(r)];
|
|
1713
1719
|
return n.forEach(function(o) {
|
|
1714
|
-
i.push(
|
|
1715
|
-
}),
|
|
1716
|
-
}),
|
|
1720
|
+
i.push($e(e, o));
|
|
1721
|
+
}), Qn.apply(void 0, i).pipe(or(Er, []));
|
|
1722
|
+
}), tr());
|
|
1717
1723
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return t === void 0 && (t = {}),
|
|
1724
|
+
function Sr(e, t) {
|
|
1725
|
+
return t === void 0 && (t = {}), kt(e).pipe(P(function(n) {
|
|
1720
1726
|
return n.map(function(r) {
|
|
1721
|
-
return
|
|
1727
|
+
return At(r, t);
|
|
1722
1728
|
});
|
|
1723
1729
|
}));
|
|
1724
1730
|
}
|
|
1725
|
-
function
|
|
1731
|
+
function Ft(e, t) {
|
|
1726
1732
|
for (var n = e.length, r = 0; r < n; r++)
|
|
1727
1733
|
if (e[r].snapshot.key === t)
|
|
1728
1734
|
return r;
|
|
1729
1735
|
return -1;
|
|
1730
1736
|
}
|
|
1731
|
-
function
|
|
1737
|
+
function wr(e, t) {
|
|
1732
1738
|
if (t == null)
|
|
1733
1739
|
return 0;
|
|
1734
|
-
var n =
|
|
1740
|
+
var n = Ft(e, t);
|
|
1735
1741
|
return n === -1 ? e.length : n + 1;
|
|
1736
1742
|
}
|
|
1737
|
-
function
|
|
1738
|
-
var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u =
|
|
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);
|
|
1739
1745
|
switch (i) {
|
|
1740
|
-
case
|
|
1746
|
+
case _.value:
|
|
1741
1747
|
if (t.snapshot && t.snapshot.exists()) {
|
|
1742
|
-
var
|
|
1743
|
-
t.snapshot.forEach(function(
|
|
1744
|
-
var
|
|
1745
|
-
snapshot:
|
|
1746
|
-
event:
|
|
1747
|
-
prevKey:
|
|
1748
|
+
var s = null;
|
|
1749
|
+
t.snapshot.forEach(function(f) {
|
|
1750
|
+
var d = {
|
|
1751
|
+
snapshot: f,
|
|
1752
|
+
event: _.value,
|
|
1753
|
+
prevKey: s
|
|
1748
1754
|
};
|
|
1749
|
-
return
|
|
1755
|
+
return s = f.key, e = de(de([], e), [d]), !1;
|
|
1750
1756
|
});
|
|
1751
1757
|
}
|
|
1752
1758
|
return e;
|
|
1753
|
-
case
|
|
1759
|
+
case _.added:
|
|
1754
1760
|
if (u > -1) {
|
|
1755
1761
|
var c = e[u - 1];
|
|
1756
|
-
(c && c.snapshot.key || null) !== r && (e = e.filter(function(
|
|
1757
|
-
return
|
|
1758
|
-
}), e.splice(
|
|
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));
|
|
1759
1765
|
} else {
|
|
1760
1766
|
if (r == null)
|
|
1761
|
-
return
|
|
1762
|
-
e = e.slice(), e.splice(
|
|
1767
|
+
return de([t], e);
|
|
1768
|
+
e = e.slice(), e.splice(a, 0, t);
|
|
1763
1769
|
}
|
|
1764
1770
|
return e;
|
|
1765
|
-
case
|
|
1766
|
-
return e.filter(function(
|
|
1767
|
-
return
|
|
1771
|
+
case _.removed:
|
|
1772
|
+
return e.filter(function(f) {
|
|
1773
|
+
return f.snapshot.key !== n.key;
|
|
1768
1774
|
});
|
|
1769
|
-
case
|
|
1770
|
-
return e.map(function(
|
|
1771
|
-
return
|
|
1775
|
+
case _.changed:
|
|
1776
|
+
return e.map(function(f) {
|
|
1777
|
+
return f.snapshot.key === o ? t : f;
|
|
1772
1778
|
});
|
|
1773
|
-
case
|
|
1779
|
+
case _.moved:
|
|
1774
1780
|
if (u > -1) {
|
|
1775
1781
|
var l = e.splice(u, 1)[0];
|
|
1776
|
-
return e = e.slice(), e.splice(
|
|
1782
|
+
return e = e.slice(), e.splice(a, 0, l), e;
|
|
1777
1783
|
}
|
|
1778
1784
|
return e;
|
|
1779
1785
|
default:
|
|
1780
1786
|
return e;
|
|
1781
1787
|
}
|
|
1782
1788
|
}
|
|
1783
|
-
const
|
|
1784
|
-
globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries =
|
|
1785
|
-
function
|
|
1786
|
-
const t =
|
|
1787
|
-
return t > -1 ? t :
|
|
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;
|
|
1788
1794
|
}
|
|
1789
|
-
function
|
|
1790
|
-
const n = `database:object:${e.toString()}`, r =
|
|
1791
|
-
return
|
|
1795
|
+
function ii(e, t) {
|
|
1796
|
+
const n = `database:object:${e.toString()}`, r = yr(e);
|
|
1797
|
+
return E(n, r, t);
|
|
1792
1798
|
}
|
|
1793
|
-
function
|
|
1794
|
-
const n = t ?
|
|
1795
|
-
return
|
|
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);
|
|
1796
1802
|
}
|
|
1797
|
-
function
|
|
1798
|
-
const n = `database:list:${
|
|
1799
|
-
return
|
|
1803
|
+
function ui(e, t) {
|
|
1804
|
+
const n = `database:list:${Pt(e)}`, r = kt(e);
|
|
1805
|
+
return E(n, r, t);
|
|
1800
1806
|
}
|
|
1801
|
-
function
|
|
1802
|
-
const n = t ?
|
|
1803
|
-
return
|
|
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);
|
|
1804
1810
|
}
|
|
1805
1811
|
/**
|
|
1806
1812
|
* @license
|
|
@@ -1818,10 +1824,10 @@ function Yr(e, t) {
|
|
|
1818
1824
|
* See the License for the specific language governing permissions and
|
|
1819
1825
|
* limitations under the License.
|
|
1820
1826
|
*/
|
|
1821
|
-
var
|
|
1822
|
-
function
|
|
1823
|
-
return t === void 0 && (t =
|
|
1824
|
-
var r =
|
|
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, {
|
|
1825
1831
|
next: n.next.bind(n),
|
|
1826
1832
|
error: n.error.bind(n),
|
|
1827
1833
|
complete: n.complete.bind(n)
|
|
@@ -1845,41 +1851,180 @@ function Ie(e, t) {
|
|
|
1845
1851
|
* See the License for the specific language governing permissions and
|
|
1846
1852
|
* limitations under the License.
|
|
1847
1853
|
*/
|
|
1848
|
-
function
|
|
1849
|
-
return
|
|
1854
|
+
function ae(e) {
|
|
1855
|
+
return De(e, { includeMetadataChanges: !0 });
|
|
1850
1856
|
}
|
|
1851
|
-
function
|
|
1852
|
-
return t === void 0 && (t = {}),
|
|
1853
|
-
return
|
|
1857
|
+
function Tt(e, t) {
|
|
1858
|
+
return t === void 0 && (t = {}), ae(e).pipe(P(function(n) {
|
|
1859
|
+
return $t(n, t);
|
|
1854
1860
|
}));
|
|
1855
1861
|
}
|
|
1856
|
-
function
|
|
1862
|
+
function $t(e, t) {
|
|
1857
1863
|
t === void 0 && (t = {});
|
|
1858
1864
|
var n = e.data();
|
|
1859
1865
|
return !e.exists() || typeof n != "object" || n === null || t.idField && (n[t.idField] = e.id), n;
|
|
1860
1866
|
}
|
|
1861
|
-
function
|
|
1862
|
-
return
|
|
1867
|
+
function xr(e) {
|
|
1868
|
+
return De(e, { includeMetadataChanges: !0 }).pipe(P(function(t) {
|
|
1863
1869
|
return t.docs;
|
|
1864
1870
|
}));
|
|
1865
1871
|
}
|
|
1866
|
-
function
|
|
1867
|
-
return t === void 0 && (t = {}),
|
|
1872
|
+
function Or(e, t) {
|
|
1873
|
+
return t === void 0 && (t = {}), xr(e).pipe(P(function(n) {
|
|
1868
1874
|
return n.map(function(r) {
|
|
1869
|
-
return
|
|
1875
|
+
return $t(r, t);
|
|
1870
1876
|
});
|
|
1871
1877
|
}));
|
|
1872
1878
|
}
|
|
1873
|
-
|
|
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 {
|
|
1874
2009
|
constructor(t, n, r) {
|
|
1875
|
-
super(), this._timeoutWindow = n, this._suspenseEnabled = r, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((i) => this._resolveFirstEmission = i), this.
|
|
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({
|
|
1876
2018
|
next: (i) => {
|
|
1877
2019
|
this._next(i);
|
|
1878
2020
|
},
|
|
1879
2021
|
error: (i) => {
|
|
1880
|
-
this._error = i, this._resolveFirstEmission();
|
|
2022
|
+
this._error = i, this._resolveFirstEmission(), this._updateImmutableStatus();
|
|
2023
|
+
},
|
|
2024
|
+
complete: () => {
|
|
2025
|
+
this._isComplete = !0, this._updateImmutableStatus();
|
|
1881
2026
|
}
|
|
1882
|
-
}),
|
|
2027
|
+
}), wt(() => On()), ar(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? this._timeoutHandler = setTimeout(() => {
|
|
1883
2028
|
}, this._timeoutWindow) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
|
|
1884
2029
|
}
|
|
1885
2030
|
get hasValue() {
|
|
@@ -1895,11 +2040,21 @@ class mr extends te {
|
|
|
1895
2040
|
get firstEmission() {
|
|
1896
2041
|
return this._firstEmission;
|
|
1897
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
|
+
}
|
|
1898
2053
|
_next(t) {
|
|
1899
|
-
this._hasValue = !0, this._value = t, this._resolveFirstEmission();
|
|
2054
|
+
this._hasValue = !0, this._value = t, this._resolveFirstEmission(), this._updateImmutableStatus();
|
|
1900
2055
|
}
|
|
1901
2056
|
_reset() {
|
|
1902
|
-
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();
|
|
1903
2058
|
}
|
|
1904
2059
|
_subscribe(t) {
|
|
1905
2060
|
return this._timeoutHandler && clearTimeout(this._timeoutHandler), this._innerSubscriber = this._innerObservable.subscribe(t), this._innerSubscriber;
|
|
@@ -1907,100 +2062,85 @@ class mr extends te {
|
|
|
1907
2062
|
get ourError() {
|
|
1908
2063
|
return this._error;
|
|
1909
2064
|
}
|
|
2065
|
+
get immutableStatus() {
|
|
2066
|
+
return this._immutableStatus;
|
|
2067
|
+
}
|
|
1910
2068
|
}
|
|
1911
|
-
const
|
|
1912
|
-
globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables =
|
|
1913
|
-
function
|
|
1914
|
-
if (
|
|
1915
|
-
return
|
|
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);
|
|
1916
2074
|
{
|
|
1917
|
-
const r = new
|
|
1918
|
-
return
|
|
2075
|
+
const r = new Fr(e, Pr, n);
|
|
2076
|
+
return ee.set(t, r), r;
|
|
1919
2077
|
}
|
|
1920
2078
|
}
|
|
1921
|
-
function
|
|
1922
|
-
return function(n, r) {
|
|
1923
|
-
const i = Object.assign(Object.assign({}, n), { hasEmitted: n.hasEmitted || e.hasValue, error: e.ourError, firstValuePromise: e.firstEmission });
|
|
1924
|
-
switch (e.hasValue && (i.data = e.value), r) {
|
|
1925
|
-
case "value":
|
|
1926
|
-
return i.status = "success", i;
|
|
1927
|
-
case "error":
|
|
1928
|
-
return i.status = "error", i;
|
|
1929
|
-
case "complete":
|
|
1930
|
-
return i.isComplete = !0, i;
|
|
1931
|
-
default:
|
|
1932
|
-
throw new Error(`invalid action "${r}"`);
|
|
1933
|
-
}
|
|
1934
|
-
};
|
|
1935
|
-
}
|
|
1936
|
-
function g(e, t, n = {}) {
|
|
2079
|
+
function E(e, t, n = {}) {
|
|
1937
2080
|
var r;
|
|
1938
2081
|
if (!e)
|
|
1939
2082
|
throw new Error("cannot call useObservable without an observableId");
|
|
1940
|
-
const i =
|
|
1941
|
-
if (i === !0 && !
|
|
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)
|
|
1942
2085
|
throw o.firstEmission;
|
|
1943
|
-
const
|
|
1944
|
-
status: s ? "success" : "loading",
|
|
1945
|
-
hasEmitted: s,
|
|
1946
|
-
isComplete: !1,
|
|
1947
|
-
data: o.hasValue ? o.value : (r = n == null ? void 0 : n.initialData) !== null && r !== void 0 ? r : n == null ? void 0 : n.startWithValue,
|
|
1948
|
-
error: o.ourError,
|
|
1949
|
-
firstValuePromise: o.firstEmission
|
|
1950
|
-
}, [c, l] = f.useReducer(yr(o), a);
|
|
1951
|
-
return f.useEffect(() => {
|
|
2086
|
+
const s = v.useCallback((f) => {
|
|
1952
2087
|
const d = o.subscribe({
|
|
1953
2088
|
next: () => {
|
|
1954
|
-
|
|
2089
|
+
f();
|
|
1955
2090
|
},
|
|
1956
|
-
error: (
|
|
1957
|
-
throw
|
|
2091
|
+
error: (p) => {
|
|
2092
|
+
throw f(), p;
|
|
1958
2093
|
},
|
|
1959
2094
|
complete: () => {
|
|
1960
|
-
|
|
2095
|
+
f();
|
|
1961
2096
|
}
|
|
1962
2097
|
});
|
|
1963
|
-
return () =>
|
|
1964
|
-
|
|
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;
|
|
1965
2105
|
}
|
|
1966
|
-
const
|
|
1967
|
-
globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache =
|
|
1968
|
-
function
|
|
1969
|
-
const t =
|
|
1970
|
-
return t > -1 ? t :
|
|
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;
|
|
1971
2111
|
}
|
|
1972
|
-
function
|
|
1973
|
-
return
|
|
2112
|
+
function si(e) {
|
|
2113
|
+
return we(this, void 0, void 0, function* () {
|
|
1974
2114
|
const t = yield e();
|
|
1975
|
-
return
|
|
2115
|
+
return Re(ae(t), Rt(t));
|
|
1976
2116
|
});
|
|
1977
2117
|
}
|
|
1978
|
-
function
|
|
2118
|
+
function Rt(e) {
|
|
1979
2119
|
return `firestore:doc:${e.firestore.app.name}:${e.path}`;
|
|
1980
2120
|
}
|
|
1981
|
-
function
|
|
1982
|
-
const n =
|
|
1983
|
-
return
|
|
2121
|
+
function ci(e, t) {
|
|
2122
|
+
const n = Rt(e), r = ae(e);
|
|
2123
|
+
return E(n, r, t);
|
|
1984
2124
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const n = `firestore:docOnce:${e.firestore.app.name}:${e.path}`, r =
|
|
1987
|
-
return
|
|
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);
|
|
1988
2128
|
}
|
|
1989
|
-
function
|
|
1990
|
-
const n = t ?
|
|
1991
|
-
return
|
|
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);
|
|
1992
2132
|
}
|
|
1993
|
-
function
|
|
1994
|
-
const n = t ?
|
|
1995
|
-
return
|
|
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);
|
|
1996
2136
|
}
|
|
1997
|
-
function
|
|
1998
|
-
const n = `firestore:collection:${
|
|
1999
|
-
return
|
|
2137
|
+
function vi(e, t) {
|
|
2138
|
+
const n = `firestore:collection:${Dt(e)}`, r = De(e);
|
|
2139
|
+
return E(n, r, t);
|
|
2000
2140
|
}
|
|
2001
|
-
function
|
|
2002
|
-
const n = t ?
|
|
2003
|
-
return
|
|
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);
|
|
2004
2144
|
}
|
|
2005
2145
|
/**
|
|
2006
2146
|
* @license
|
|
@@ -2018,79 +2158,79 @@ function ei(e, t) {
|
|
|
2018
2158
|
* See the License for the specific language governing permissions and
|
|
2019
2159
|
* limitations under the License.
|
|
2020
2160
|
*/
|
|
2021
|
-
function
|
|
2022
|
-
var r =
|
|
2161
|
+
function Tr(e, t, n) {
|
|
2162
|
+
var r = Zt(e, t, n);
|
|
2023
2163
|
return function(i) {
|
|
2024
|
-
return
|
|
2164
|
+
return $(r(i)).pipe(P(function(o) {
|
|
2025
2165
|
return o.data;
|
|
2026
2166
|
}));
|
|
2027
2167
|
};
|
|
2028
2168
|
}
|
|
2029
|
-
function
|
|
2030
|
-
const n =
|
|
2031
|
-
return
|
|
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);
|
|
2032
2172
|
}
|
|
2033
|
-
function
|
|
2173
|
+
function mi({ children: e, traceId: t, fallback: n }) {
|
|
2034
2174
|
var r;
|
|
2035
|
-
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}]`,
|
|
2036
|
-
var
|
|
2037
|
-
return (
|
|
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), () => {
|
|
2038
2178
|
var c, l;
|
|
2039
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);
|
|
2040
2180
|
};
|
|
2041
|
-
}, []),
|
|
2042
|
-
return
|
|
2181
|
+
}, []), v.createElement(v.Fragment, null, n));
|
|
2182
|
+
return v.createElement(v.Suspense, { fallback: v.createElement(a, null) }, e);
|
|
2043
2183
|
}
|
|
2044
|
-
function
|
|
2184
|
+
function B(e) {
|
|
2045
2185
|
var t = e.remoteConfig, n = e.key, r = e.getter;
|
|
2046
|
-
return new
|
|
2047
|
-
|
|
2186
|
+
return new w(function(i) {
|
|
2187
|
+
tn(t).then(function() {
|
|
2048
2188
|
var o = r.bind(t);
|
|
2049
2189
|
i.next(o(t, n));
|
|
2050
2190
|
});
|
|
2051
2191
|
});
|
|
2052
2192
|
}
|
|
2053
|
-
function
|
|
2054
|
-
var n =
|
|
2055
|
-
return
|
|
2193
|
+
function $r(e, t) {
|
|
2194
|
+
var n = nn;
|
|
2195
|
+
return B({ remoteConfig: e, key: t, getter: n });
|
|
2056
2196
|
}
|
|
2057
|
-
function
|
|
2058
|
-
var n =
|
|
2059
|
-
return
|
|
2197
|
+
function Dr(e, t) {
|
|
2198
|
+
var n = rn;
|
|
2199
|
+
return B({ remoteConfig: e, key: t, getter: n });
|
|
2060
2200
|
}
|
|
2061
|
-
function
|
|
2062
|
-
var n =
|
|
2063
|
-
return
|
|
2201
|
+
function Rr(e, t) {
|
|
2202
|
+
var n = on;
|
|
2203
|
+
return B({ remoteConfig: e, key: t, getter: n });
|
|
2064
2204
|
}
|
|
2065
|
-
function
|
|
2066
|
-
var n =
|
|
2067
|
-
return
|
|
2205
|
+
function jr(e, t) {
|
|
2206
|
+
var n = un;
|
|
2207
|
+
return B({ remoteConfig: e, key: t, getter: n });
|
|
2068
2208
|
}
|
|
2069
|
-
function
|
|
2070
|
-
var t =
|
|
2071
|
-
return
|
|
2209
|
+
function Lr(e) {
|
|
2210
|
+
var t = an;
|
|
2211
|
+
return B({ remoteConfig: e, key: "", getter: t });
|
|
2072
2212
|
}
|
|
2073
|
-
function
|
|
2074
|
-
const n =
|
|
2075
|
-
return
|
|
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);
|
|
2076
2216
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return
|
|
2217
|
+
function bi(e) {
|
|
2218
|
+
return J(e, $r);
|
|
2079
2219
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return
|
|
2220
|
+
function yi(e) {
|
|
2221
|
+
return J(e, Dr);
|
|
2082
2222
|
}
|
|
2083
|
-
function
|
|
2084
|
-
return
|
|
2223
|
+
function gi(e) {
|
|
2224
|
+
return J(e, Rr);
|
|
2085
2225
|
}
|
|
2086
|
-
function
|
|
2087
|
-
return
|
|
2226
|
+
function _i(e) {
|
|
2227
|
+
return J(e, jr);
|
|
2088
2228
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return
|
|
2229
|
+
function Si(e) {
|
|
2230
|
+
return J(e, Lr);
|
|
2091
2231
|
}
|
|
2092
|
-
function
|
|
2093
|
-
return new
|
|
2232
|
+
function Vr(e) {
|
|
2233
|
+
return new w(function(t) {
|
|
2094
2234
|
var n = function(u) {
|
|
2095
2235
|
return t.next(u);
|
|
2096
2236
|
}, r = function(u) {
|
|
@@ -2115,153 +2255,153 @@ function xr(e) {
|
|
|
2115
2255
|
// since we're emitting first the current snapshot and then progression
|
|
2116
2256
|
// it's possible that we could double fire synchronously; namely when in
|
|
2117
2257
|
// a terminal state (success, error, canceled). Debounce to address.
|
|
2118
|
-
|
|
2258
|
+
Jn(0)
|
|
2119
2259
|
);
|
|
2120
2260
|
}
|
|
2121
|
-
function
|
|
2122
|
-
return
|
|
2261
|
+
function Ur(e) {
|
|
2262
|
+
return $(Xt(e));
|
|
2123
2263
|
}
|
|
2124
|
-
function
|
|
2125
|
-
const r = `storage:task:${t.toString()}`, i =
|
|
2126
|
-
return
|
|
2264
|
+
function wi(e, t, n) {
|
|
2265
|
+
const r = `storage:task:${t.toString()}`, i = Vr(e);
|
|
2266
|
+
return E(r, i, n);
|
|
2127
2267
|
}
|
|
2128
|
-
function
|
|
2129
|
-
const n = `storage:downloadUrl:${e.toString()}`, r =
|
|
2130
|
-
return
|
|
2268
|
+
function Mr(e, t) {
|
|
2269
|
+
const n = `storage:downloadUrl:${e.toString()}`, r = Ur(e);
|
|
2270
|
+
return E(n, r, t);
|
|
2131
2271
|
}
|
|
2132
|
-
function
|
|
2133
|
-
const t =
|
|
2134
|
-
return e = Object.assign(Object.assign({}, e), { storage: t }),
|
|
2272
|
+
function Nr(e) {
|
|
2273
|
+
const t = qr();
|
|
2274
|
+
return e = Object.assign(Object.assign({}, e), { storage: t }), v.createElement(jt, Object.assign({}, e));
|
|
2135
2275
|
}
|
|
2136
|
-
function
|
|
2137
|
-
const { storage: t, storagePath: n, suspense: r, placeHolder: i } = e, o =
|
|
2138
|
-
suspense:
|
|
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)
|
|
2139
2279
|
};
|
|
2140
2280
|
if (!t)
|
|
2141
2281
|
throw new Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
|
|
2142
|
-
const { status:
|
|
2143
|
-
return
|
|
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, "''");
|
|
2144
2284
|
}
|
|
2145
|
-
function
|
|
2285
|
+
function Ei(e) {
|
|
2146
2286
|
const { storage: t } = e;
|
|
2147
|
-
return t ?
|
|
2287
|
+
return t ? v.createElement(jt, Object.assign({}, e)) : v.createElement(Nr, Object.assign({}, e));
|
|
2148
2288
|
}
|
|
2149
|
-
const
|
|
2150
|
-
function
|
|
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) {
|
|
2151
2291
|
return function(n) {
|
|
2152
2292
|
var r, i;
|
|
2153
2293
|
if (!n.sdk)
|
|
2154
2294
|
throw new Error("no sdk provided");
|
|
2155
|
-
const o =
|
|
2295
|
+
const o = It().name;
|
|
2156
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)
|
|
2157
2297
|
throw new Error("sdk was initialized with a different firebase app");
|
|
2158
|
-
return
|
|
2298
|
+
return v.createElement(e.Provider, Object.assign({ value: n.sdk }, n));
|
|
2159
2299
|
};
|
|
2160
2300
|
}
|
|
2161
|
-
function
|
|
2162
|
-
const t =
|
|
2301
|
+
function R(e) {
|
|
2302
|
+
const t = v.useContext(e);
|
|
2163
2303
|
if (!t)
|
|
2164
2304
|
throw new Error("SDK not found. useSdk must be called from within a provider");
|
|
2165
2305
|
return t;
|
|
2166
2306
|
}
|
|
2167
|
-
function
|
|
2168
|
-
const i =
|
|
2169
|
-
if (
|
|
2307
|
+
function j(e, t, n, r) {
|
|
2308
|
+
const i = It();
|
|
2309
|
+
if (v.useContext(t))
|
|
2170
2310
|
throw new Error(`Cannot initialize SDK ${e} because it already exists in Context`);
|
|
2171
|
-
const o =
|
|
2172
|
-
return
|
|
2311
|
+
const o = v.useMemo(() => n(i), [i]);
|
|
2312
|
+
return E(`firebase-sdk:${e}:${i.name}`, $(o), r);
|
|
2173
2313
|
}
|
|
2174
|
-
const
|
|
2175
|
-
class
|
|
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 {
|
|
2176
2316
|
constructor(t, n, r) {
|
|
2177
|
-
super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this,
|
|
2317
|
+
super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, He.prototype);
|
|
2178
2318
|
}
|
|
2179
2319
|
}
|
|
2180
|
-
function
|
|
2320
|
+
function Vt(e, t) {
|
|
2181
2321
|
if (t === "idField" || t === "initialData" || t === "suspense")
|
|
2182
2322
|
return e ? e[t] : void 0;
|
|
2183
2323
|
throw new Error(`Field "${t}" is not a valid key in ReactFireOptions`);
|
|
2184
2324
|
}
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2325
|
+
function Qi(e) {
|
|
2326
|
+
return Vt(e, "initialData");
|
|
2187
2327
|
}
|
|
2188
|
-
function
|
|
2189
|
-
return
|
|
2328
|
+
function z(e) {
|
|
2329
|
+
return Vt(e, "idField");
|
|
2190
2330
|
}
|
|
2191
2331
|
export {
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
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
|
|
2266
2406
|
};
|
|
2267
2407
|
//# sourceMappingURL=index.js.map
|