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