rxjs-native-bridge 1.0.11 → 1.0.12

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.
@@ -1,2989 +0,0 @@
1
- function x(n) {
2
- return typeof n == "function";
3
- }
4
- function Cn(n) {
5
- return x(n?.lift);
6
- }
7
- function p(n) {
8
- return function(t) {
9
- if (Cn(t))
10
- return t.lift(function(e) {
11
- try {
12
- return n(e, this);
13
- } catch (r) {
14
- this.error(r);
15
- }
16
- });
17
- throw new TypeError("Unable to lift unknown Observable type");
18
- };
19
- }
20
- var cn = function(n, t) {
21
- return cn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
22
- e.__proto__ = r;
23
- } || function(e, r) {
24
- for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
25
- }, cn(n, t);
26
- };
27
- function R(n, t) {
28
- if (typeof t != "function" && t !== null)
29
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
30
- cn(n, t);
31
- function e() {
32
- this.constructor = n;
33
- }
34
- n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
35
- }
36
- function dt(n, t, e, r) {
37
- function i(o) {
38
- return o instanceof e ? o : new e(function(u) {
39
- u(o);
40
- });
41
- }
42
- return new (e || (e = Promise))(function(o, u) {
43
- function a(l) {
44
- try {
45
- f(r.next(l));
46
- } catch (s) {
47
- u(s);
48
- }
49
- }
50
- function c(l) {
51
- try {
52
- f(r.throw(l));
53
- } catch (s) {
54
- u(s);
55
- }
56
- }
57
- function f(l) {
58
- l.done ? o(l.value) : i(l.value).then(a, c);
59
- }
60
- f((r = r.apply(n, t || [])).next());
61
- });
62
- }
63
- function Pn(n, t) {
64
- var e = { label: 0, sent: function() {
65
- if (o[0] & 1) throw o[1];
66
- return o[1];
67
- }, trys: [], ops: [] }, r, i, o, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
68
- return u.next = a(0), u.throw = a(1), u.return = a(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
69
- return this;
70
- }), u;
71
- function a(f) {
72
- return function(l) {
73
- return c([f, l]);
74
- };
75
- }
76
- function c(f) {
77
- if (r) throw new TypeError("Generator is already executing.");
78
- for (; u && (u = 0, f[0] && (e = 0)), e; ) try {
79
- if (r = 1, i && (o = f[0] & 2 ? i.return : f[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, f[1])).done) return o;
80
- switch (i = 0, o && (f = [f[0] & 2, o.value]), f[0]) {
81
- case 0:
82
- case 1:
83
- o = f;
84
- break;
85
- case 4:
86
- return e.label++, { value: f[1], done: !1 };
87
- case 5:
88
- e.label++, i = f[1], f = [0];
89
- continue;
90
- case 7:
91
- f = e.ops.pop(), e.trys.pop();
92
- continue;
93
- default:
94
- if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (f[0] === 6 || f[0] === 2)) {
95
- e = 0;
96
- continue;
97
- }
98
- if (f[0] === 3 && (!o || f[1] > o[0] && f[1] < o[3])) {
99
- e.label = f[1];
100
- break;
101
- }
102
- if (f[0] === 6 && e.label < o[1]) {
103
- e.label = o[1], o = f;
104
- break;
105
- }
106
- if (o && e.label < o[2]) {
107
- e.label = o[2], e.ops.push(f);
108
- break;
109
- }
110
- o[2] && e.ops.pop(), e.trys.pop();
111
- continue;
112
- }
113
- f = t.call(n, e);
114
- } catch (l) {
115
- f = [6, l], i = 0;
116
- } finally {
117
- r = o = 0;
118
- }
119
- if (f[0] & 5) throw f[1];
120
- return { value: f[0] ? f[1] : void 0, done: !0 };
121
- }
122
- }
123
- function C(n) {
124
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
125
- if (e) return e.call(n);
126
- if (n && typeof n.length == "number") return {
127
- next: function() {
128
- return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
129
- }
130
- };
131
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
132
- }
133
- function E(n, t) {
134
- var e = typeof Symbol == "function" && n[Symbol.iterator];
135
- if (!e) return n;
136
- var r = e.call(n), i, o = [], u;
137
- try {
138
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) o.push(i.value);
139
- } catch (a) {
140
- u = { error: a };
141
- } finally {
142
- try {
143
- i && !i.done && (e = r.return) && e.call(r);
144
- } finally {
145
- if (u) throw u.error;
146
- }
147
- }
148
- return o;
149
- }
150
- function I(n, t, e) {
151
- if (e || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
152
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
153
- return n.concat(o || Array.prototype.slice.call(t));
154
- }
155
- function $(n) {
156
- return this instanceof $ ? (this.v = n, this) : new $(n);
157
- }
158
- function pt(n, t, e) {
159
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
160
- var r = e.apply(n, t || []), i, o = [];
161
- return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", u), i[Symbol.asyncIterator] = function() {
162
- return this;
163
- }, i;
164
- function u(d) {
165
- return function(y) {
166
- return Promise.resolve(y).then(d, s);
167
- };
168
- }
169
- function a(d, y) {
170
- r[d] && (i[d] = function(m) {
171
- return new Promise(function(b, w) {
172
- o.push([d, m, b, w]) > 1 || c(d, m);
173
- });
174
- }, y && (i[d] = y(i[d])));
175
- }
176
- function c(d, y) {
177
- try {
178
- f(r[d](y));
179
- } catch (m) {
180
- h(o[0][3], m);
181
- }
182
- }
183
- function f(d) {
184
- d.value instanceof $ ? Promise.resolve(d.value.v).then(l, s) : h(o[0][2], d);
185
- }
186
- function l(d) {
187
- c("next", d);
188
- }
189
- function s(d) {
190
- c("throw", d);
191
- }
192
- function h(d, y) {
193
- d(y), o.shift(), o.length && c(o[0][0], o[0][1]);
194
- }
195
- }
196
- function yt(n) {
197
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
198
- var t = n[Symbol.asyncIterator], e;
199
- return t ? t.call(n) : (n = typeof C == "function" ? C(n) : n[Symbol.iterator](), e = {}, r("next"), r("throw"), r("return"), e[Symbol.asyncIterator] = function() {
200
- return this;
201
- }, e);
202
- function r(o) {
203
- e[o] = n[o] && function(u) {
204
- return new Promise(function(a, c) {
205
- u = n[o](u), i(a, c, u.done, u.value);
206
- });
207
- };
208
- }
209
- function i(o, u, a, c) {
210
- Promise.resolve(c).then(function(f) {
211
- o({ value: f, done: a });
212
- }, u);
213
- }
214
- }
215
- var Rn = (function(n) {
216
- return n && typeof n.length == "number" && typeof n != "function";
217
- });
218
- function Vn(n) {
219
- return x(n?.then);
220
- }
221
- function q(n) {
222
- var t = function(r) {
223
- Error.call(r), r.stack = new Error().stack;
224
- }, e = n(t);
225
- return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
226
- }
227
- var un = q(function(n) {
228
- return function(e) {
229
- n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
230
- ` + e.map(function(r, i) {
231
- return i + 1 + ") " + r.toString();
232
- }).join(`
233
- `) : "", this.name = "UnsubscriptionError", this.errors = e;
234
- };
235
- });
236
- function _(n, t) {
237
- if (n) {
238
- var e = n.indexOf(t);
239
- 0 <= e && n.splice(e, 1);
240
- }
241
- }
242
- var V = (function() {
243
- function n(t) {
244
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
245
- }
246
- return n.prototype.unsubscribe = function() {
247
- var t, e, r, i, o;
248
- if (!this.closed) {
249
- this.closed = !0;
250
- var u = this._parentage;
251
- if (u)
252
- if (this._parentage = null, Array.isArray(u))
253
- try {
254
- for (var a = C(u), c = a.next(); !c.done; c = a.next()) {
255
- var f = c.value;
256
- f.remove(this);
257
- }
258
- } catch (m) {
259
- t = { error: m };
260
- } finally {
261
- try {
262
- c && !c.done && (e = a.return) && e.call(a);
263
- } finally {
264
- if (t) throw t.error;
265
- }
266
- }
267
- else
268
- u.remove(this);
269
- var l = this.initialTeardown;
270
- if (x(l))
271
- try {
272
- l();
273
- } catch (m) {
274
- o = m instanceof un ? m.errors : [m];
275
- }
276
- var s = this._finalizers;
277
- if (s) {
278
- this._finalizers = null;
279
- try {
280
- for (var h = C(s), d = h.next(); !d.done; d = h.next()) {
281
- var y = d.value;
282
- try {
283
- gn(y);
284
- } catch (m) {
285
- o = o ?? [], m instanceof un ? o = I(I([], E(o)), E(m.errors)) : o.push(m);
286
- }
287
- }
288
- } catch (m) {
289
- r = { error: m };
290
- } finally {
291
- try {
292
- d && !d.done && (i = h.return) && i.call(h);
293
- } finally {
294
- if (r) throw r.error;
295
- }
296
- }
297
- }
298
- if (o)
299
- throw new un(o);
300
- }
301
- }, n.prototype.add = function(t) {
302
- var e;
303
- if (t && t !== this)
304
- if (this.closed)
305
- gn(t);
306
- else {
307
- if (t instanceof n) {
308
- if (t.closed || t._hasParent(this))
309
- return;
310
- t._addParent(this);
311
- }
312
- (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
313
- }
314
- }, n.prototype._hasParent = function(t) {
315
- var e = this._parentage;
316
- return e === t || Array.isArray(e) && e.includes(t);
317
- }, n.prototype._addParent = function(t) {
318
- var e = this._parentage;
319
- this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
320
- }, n.prototype._removeParent = function(t) {
321
- var e = this._parentage;
322
- e === t ? this._parentage = null : Array.isArray(e) && _(e, t);
323
- }, n.prototype.remove = function(t) {
324
- var e = this._finalizers;
325
- e && _(e, t), t instanceof n && t._removeParent(this);
326
- }, n.EMPTY = (function() {
327
- var t = new n();
328
- return t.closed = !0, t;
329
- })(), n;
330
- })(), Wn = V.EMPTY;
331
- function _n(n) {
332
- return n instanceof V || n && "closed" in n && x(n.remove) && x(n.add) && x(n.unsubscribe);
333
- }
334
- function gn(n) {
335
- x(n) ? n() : n.unsubscribe();
336
- }
337
- var mt = {
338
- Promise: void 0
339
- }, bt = {
340
- setTimeout: function(n, t) {
341
- for (var e = [], r = 2; r < arguments.length; r++)
342
- e[r - 2] = arguments[r];
343
- return setTimeout.apply(void 0, I([n, t], E(e)));
344
- },
345
- clearTimeout: function(n) {
346
- return clearTimeout(n);
347
- },
348
- delegate: void 0
349
- };
350
- function Un(n) {
351
- bt.setTimeout(function() {
352
- throw n;
353
- });
354
- }
355
- function T() {
356
- }
357
- function B(n) {
358
- n();
359
- }
360
- var ln = (function(n) {
361
- R(t, n);
362
- function t(e) {
363
- var r = n.call(this) || this;
364
- return r.isStopped = !1, e ? (r.destination = e, _n(e) && e.add(r)) : r.destination = xt, r;
365
- }
366
- return t.create = function(e, r, i) {
367
- return new K(e, r, i);
368
- }, t.prototype.next = function(e) {
369
- this.isStopped || this._next(e);
370
- }, t.prototype.error = function(e) {
371
- this.isStopped || (this.isStopped = !0, this._error(e));
372
- }, t.prototype.complete = function() {
373
- this.isStopped || (this.isStopped = !0, this._complete());
374
- }, t.prototype.unsubscribe = function() {
375
- this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
376
- }, t.prototype._next = function(e) {
377
- this.destination.next(e);
378
- }, t.prototype._error = function(e) {
379
- try {
380
- this.destination.error(e);
381
- } finally {
382
- this.unsubscribe();
383
- }
384
- }, t.prototype._complete = function() {
385
- try {
386
- this.destination.complete();
387
- } finally {
388
- this.unsubscribe();
389
- }
390
- }, t;
391
- })(V), wt = (function() {
392
- function n(t) {
393
- this.partialObserver = t;
394
- }
395
- return n.prototype.next = function(t) {
396
- var e = this.partialObserver;
397
- if (e.next)
398
- try {
399
- e.next(t);
400
- } catch (r) {
401
- X(r);
402
- }
403
- }, n.prototype.error = function(t) {
404
- var e = this.partialObserver;
405
- if (e.error)
406
- try {
407
- e.error(t);
408
- } catch (r) {
409
- X(r);
410
- }
411
- else
412
- X(t);
413
- }, n.prototype.complete = function() {
414
- var t = this.partialObserver;
415
- if (t.complete)
416
- try {
417
- t.complete();
418
- } catch (e) {
419
- X(e);
420
- }
421
- }, n;
422
- })(), K = (function(n) {
423
- R(t, n);
424
- function t(e, r, i) {
425
- var o = n.call(this) || this, u;
426
- return x(e) || !e ? u = {
427
- next: e ?? void 0,
428
- error: r ?? void 0,
429
- complete: i ?? void 0
430
- } : u = e, o.destination = new wt(u), o;
431
- }
432
- return t;
433
- })(ln);
434
- function X(n) {
435
- Un(n);
436
- }
437
- function gt(n) {
438
- throw n;
439
- }
440
- var xt = {
441
- closed: !0,
442
- next: T,
443
- error: gt,
444
- complete: T
445
- }, sn = (function() {
446
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
447
- })();
448
- function O(n) {
449
- return n;
450
- }
451
- function Fn() {
452
- for (var n = [], t = 0; t < arguments.length; t++)
453
- n[t] = arguments[t];
454
- return Nn(n);
455
- }
456
- function Nn(n) {
457
- return n.length === 0 ? O : n.length === 1 ? n[0] : function(e) {
458
- return n.reduce(function(r, i) {
459
- return i(r);
460
- }, e);
461
- };
462
- }
463
- var A = (function() {
464
- function n(t) {
465
- t && (this._subscribe = t);
466
- }
467
- return n.prototype.lift = function(t) {
468
- var e = new n();
469
- return e.source = this, e.operator = t, e;
470
- }, n.prototype.subscribe = function(t, e, r) {
471
- var i = this, o = Et(t) ? t : new K(t, e, r);
472
- return B(function() {
473
- var u = i, a = u.operator, c = u.source;
474
- o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
475
- }), o;
476
- }, n.prototype._trySubscribe = function(t) {
477
- try {
478
- return this._subscribe(t);
479
- } catch (e) {
480
- t.error(e);
481
- }
482
- }, n.prototype.forEach = function(t, e) {
483
- var r = this;
484
- return e = xn(e), new e(function(i, o) {
485
- var u = new K({
486
- next: function(a) {
487
- try {
488
- t(a);
489
- } catch (c) {
490
- o(c), u.unsubscribe();
491
- }
492
- },
493
- error: o,
494
- complete: i
495
- });
496
- r.subscribe(u);
497
- });
498
- }, n.prototype._subscribe = function(t) {
499
- var e;
500
- return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
501
- }, n.prototype[sn] = function() {
502
- return this;
503
- }, n.prototype.pipe = function() {
504
- for (var t = [], e = 0; e < arguments.length; e++)
505
- t[e] = arguments[e];
506
- return Nn(t)(this);
507
- }, n.prototype.toPromise = function(t) {
508
- var e = this;
509
- return t = xn(t), new t(function(r, i) {
510
- var o;
511
- e.subscribe(function(u) {
512
- return o = u;
513
- }, function(u) {
514
- return i(u);
515
- }, function() {
516
- return r(o);
517
- });
518
- });
519
- }, n.create = function(t) {
520
- return new n(t);
521
- }, n;
522
- })();
523
- function xn(n) {
524
- var t;
525
- return (t = n ?? mt.Promise) !== null && t !== void 0 ? t : Promise;
526
- }
527
- function St(n) {
528
- return n && x(n.next) && x(n.error) && x(n.complete);
529
- }
530
- function Et(n) {
531
- return n && n instanceof ln || St(n) && _n(n);
532
- }
533
- function Ln(n) {
534
- return x(n[sn]);
535
- }
536
- function Mn(n) {
537
- return Symbol.asyncIterator && x(n?.[Symbol.asyncIterator]);
538
- }
539
- function qn(n) {
540
- return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
541
- }
542
- function It() {
543
- return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
544
- }
545
- var $n = It();
546
- function Dn(n) {
547
- return x(n?.[$n]);
548
- }
549
- function Yn(n) {
550
- return pt(this, arguments, function() {
551
- var e, r, i, o;
552
- return Pn(this, function(u) {
553
- switch (u.label) {
554
- case 0:
555
- e = n.getReader(), u.label = 1;
556
- case 1:
557
- u.trys.push([1, , 9, 10]), u.label = 2;
558
- case 2:
559
- return [4, $(e.read())];
560
- case 3:
561
- return r = u.sent(), i = r.value, o = r.done, o ? [4, $(void 0)] : [3, 5];
562
- case 4:
563
- return [2, u.sent()];
564
- case 5:
565
- return [4, $(i)];
566
- case 6:
567
- return [4, u.sent()];
568
- case 7:
569
- return u.sent(), [3, 2];
570
- case 8:
571
- return [3, 10];
572
- case 9:
573
- return e.releaseLock(), [7];
574
- case 10:
575
- return [2];
576
- }
577
- });
578
- });
579
- }
580
- function Gn(n) {
581
- return x(n?.getReader);
582
- }
583
- function g(n) {
584
- if (n instanceof A)
585
- return n;
586
- if (n != null) {
587
- if (Ln(n))
588
- return At(n);
589
- if (Rn(n))
590
- return Tt(n);
591
- if (Vn(n))
592
- return jt(n);
593
- if (Mn(n))
594
- return zn(n);
595
- if (Dn(n))
596
- return Ot(n);
597
- if (Gn(n))
598
- return kt(n);
599
- }
600
- throw qn(n);
601
- }
602
- function At(n) {
603
- return new A(function(t) {
604
- var e = n[sn]();
605
- if (x(e.subscribe))
606
- return e.subscribe(t);
607
- throw new TypeError("Provided object does not correctly implement Symbol.observable");
608
- });
609
- }
610
- function Tt(n) {
611
- return new A(function(t) {
612
- for (var e = 0; e < n.length && !t.closed; e++)
613
- t.next(n[e]);
614
- t.complete();
615
- });
616
- }
617
- function jt(n) {
618
- return new A(function(t) {
619
- n.then(function(e) {
620
- t.closed || (t.next(e), t.complete());
621
- }, function(e) {
622
- return t.error(e);
623
- }).then(null, Un);
624
- });
625
- }
626
- function Ot(n) {
627
- return new A(function(t) {
628
- var e, r;
629
- try {
630
- for (var i = C(n), o = i.next(); !o.done; o = i.next()) {
631
- var u = o.value;
632
- if (t.next(u), t.closed)
633
- return;
634
- }
635
- } catch (a) {
636
- e = { error: a };
637
- } finally {
638
- try {
639
- o && !o.done && (r = i.return) && r.call(i);
640
- } finally {
641
- if (e) throw e.error;
642
- }
643
- }
644
- t.complete();
645
- });
646
- }
647
- function zn(n) {
648
- return new A(function(t) {
649
- Ct(n, t).catch(function(e) {
650
- return t.error(e);
651
- });
652
- });
653
- }
654
- function kt(n) {
655
- return zn(Yn(n));
656
- }
657
- function Ct(n, t) {
658
- var e, r, i, o;
659
- return dt(this, void 0, void 0, function() {
660
- var u, a;
661
- return Pn(this, function(c) {
662
- switch (c.label) {
663
- case 0:
664
- c.trys.push([0, 5, 6, 11]), e = yt(n), c.label = 1;
665
- case 1:
666
- return [4, e.next()];
667
- case 2:
668
- if (r = c.sent(), !!r.done) return [3, 4];
669
- if (u = r.value, t.next(u), t.closed)
670
- return [2];
671
- c.label = 3;
672
- case 3:
673
- return [3, 1];
674
- case 4:
675
- return [3, 11];
676
- case 5:
677
- return a = c.sent(), i = { error: a }, [3, 11];
678
- case 6:
679
- return c.trys.push([6, , 9, 10]), r && !r.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
680
- case 7:
681
- c.sent(), c.label = 8;
682
- case 8:
683
- return [3, 10];
684
- case 9:
685
- if (i) throw i.error;
686
- return [7];
687
- case 10:
688
- return [7];
689
- case 11:
690
- return t.complete(), [2];
691
- }
692
- });
693
- });
694
- }
695
- function v(n, t, e, r, i) {
696
- return new vn(n, t, e, r, i);
697
- }
698
- var vn = (function(n) {
699
- R(t, n);
700
- function t(e, r, i, o, u, a) {
701
- var c = n.call(this, e) || this;
702
- return c.onFinalize = u, c.shouldUnsubscribe = a, c._next = r ? function(f) {
703
- try {
704
- r(f);
705
- } catch (l) {
706
- e.error(l);
707
- }
708
- } : n.prototype._next, c._error = o ? function(f) {
709
- try {
710
- o(f);
711
- } catch (l) {
712
- e.error(l);
713
- } finally {
714
- this.unsubscribe();
715
- }
716
- } : n.prototype._error, c._complete = i ? function() {
717
- try {
718
- i();
719
- } catch (f) {
720
- e.error(f);
721
- } finally {
722
- this.unsubscribe();
723
- }
724
- } : n.prototype._complete, c;
725
- }
726
- return t.prototype.unsubscribe = function() {
727
- var e;
728
- if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
729
- var r = this.closed;
730
- n.prototype.unsubscribe.call(this), !r && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
731
- }
732
- }, t;
733
- })(ln);
734
- function Pt(n) {
735
- return p(function(t, e) {
736
- var r = !1, i = null, o = null, u = !1, a = function() {
737
- if (o?.unsubscribe(), o = null, r) {
738
- r = !1;
739
- var f = i;
740
- i = null, e.next(f);
741
- }
742
- u && e.complete();
743
- }, c = function() {
744
- o = null, u && e.complete();
745
- };
746
- t.subscribe(v(e, function(f) {
747
- r = !0, i = f, o || g(n(f)).subscribe(o = v(e, a, c));
748
- }, function() {
749
- u = !0, (!r || !o || o.closed) && e.complete();
750
- }));
751
- });
752
- }
753
- var Rt = (function(n) {
754
- R(t, n);
755
- function t(e, r) {
756
- return n.call(this) || this;
757
- }
758
- return t.prototype.schedule = function(e, r) {
759
- return this;
760
- }, t;
761
- })(V), Sn = {
762
- setInterval: function(n, t) {
763
- for (var e = [], r = 2; r < arguments.length; r++)
764
- e[r - 2] = arguments[r];
765
- return setInterval.apply(void 0, I([n, t], E(e)));
766
- },
767
- clearInterval: function(n) {
768
- return clearInterval(n);
769
- },
770
- delegate: void 0
771
- }, Vt = (function(n) {
772
- R(t, n);
773
- function t(e, r) {
774
- var i = n.call(this, e, r) || this;
775
- return i.scheduler = e, i.work = r, i.pending = !1, i;
776
- }
777
- return t.prototype.schedule = function(e, r) {
778
- var i;
779
- if (r === void 0 && (r = 0), this.closed)
780
- return this;
781
- this.state = e;
782
- var o = this.id, u = this.scheduler;
783
- return o != null && (this.id = this.recycleAsyncId(u, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(u, this.id, r), this;
784
- }, t.prototype.requestAsyncId = function(e, r, i) {
785
- return i === void 0 && (i = 0), Sn.setInterval(e.flush.bind(e, this), i);
786
- }, t.prototype.recycleAsyncId = function(e, r, i) {
787
- if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
788
- return r;
789
- r != null && Sn.clearInterval(r);
790
- }, t.prototype.execute = function(e, r) {
791
- if (this.closed)
792
- return new Error("executing a cancelled action");
793
- this.pending = !1;
794
- var i = this._execute(e, r);
795
- if (i)
796
- return i;
797
- this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
798
- }, t.prototype._execute = function(e, r) {
799
- var i = !1, o;
800
- try {
801
- this.work(e);
802
- } catch (u) {
803
- i = !0, o = u || new Error("Scheduled action threw falsy error");
804
- }
805
- if (i)
806
- return this.unsubscribe(), o;
807
- }, t.prototype.unsubscribe = function() {
808
- if (!this.closed) {
809
- var e = this, r = e.id, i = e.scheduler, o = i.actions;
810
- this.work = this.state = this.scheduler = null, this.pending = !1, _(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, n.prototype.unsubscribe.call(this);
811
- }
812
- }, t;
813
- })(Rt), tn = {
814
- now: function() {
815
- return (tn.delegate || Date).now();
816
- },
817
- delegate: void 0
818
- }, En = (function() {
819
- function n(t, e) {
820
- e === void 0 && (e = n.now), this.schedulerActionCtor = t, this.now = e;
821
- }
822
- return n.prototype.schedule = function(t, e, r) {
823
- return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(r, e);
824
- }, n.now = tn.now, n;
825
- })(), Wt = (function(n) {
826
- R(t, n);
827
- function t(e, r) {
828
- r === void 0 && (r = En.now);
829
- var i = n.call(this, e, r) || this;
830
- return i.actions = [], i._active = !1, i;
831
- }
832
- return t.prototype.flush = function(e) {
833
- var r = this.actions;
834
- if (this._active) {
835
- r.push(e);
836
- return;
837
- }
838
- var i;
839
- this._active = !0;
840
- do
841
- if (i = e.execute(e.state, e.delay))
842
- break;
843
- while (e = r.shift());
844
- if (this._active = !1, i) {
845
- for (; e = r.shift(); )
846
- e.unsubscribe();
847
- throw i;
848
- }
849
- }, t;
850
- })(En), W = new Wt(Vt), Kn = W;
851
- function Zn(n) {
852
- return n && x(n.schedule);
853
- }
854
- function hn(n) {
855
- return n instanceof Date && !isNaN(n);
856
- }
857
- function Y(n, t, e) {
858
- n === void 0 && (n = 0), e === void 0 && (e = Kn);
859
- var r = -1;
860
- return t != null && (Zn(t) ? e = t : r = t), new A(function(i) {
861
- var o = hn(n) ? +n - e.now() : n;
862
- o < 0 && (o = 0);
863
- var u = 0;
864
- return e.schedule(function() {
865
- i.closed || (i.next(u++), 0 <= r ? this.schedule(void 0, r) : i.complete());
866
- }, o);
867
- });
868
- }
869
- function _e(n, t) {
870
- return t === void 0 && (t = W), Pt(function() {
871
- return Y(n, t);
872
- });
873
- }
874
- function Ue(n) {
875
- return p(function(t, e) {
876
- var r = [];
877
- return t.subscribe(v(e, function(i) {
878
- return r.push(i);
879
- }, function() {
880
- e.next(r), e.complete();
881
- })), g(n).subscribe(v(e, function() {
882
- var i = r;
883
- r = [], e.next(i);
884
- }, T)), function() {
885
- r = null;
886
- };
887
- });
888
- }
889
- function Fe(n, t) {
890
- return t === void 0 && (t = null), t = t ?? n, p(function(e, r) {
891
- var i = [], o = 0;
892
- e.subscribe(v(r, function(u) {
893
- var a, c, f, l, s = null;
894
- o++ % t === 0 && i.push([]);
895
- try {
896
- for (var h = C(i), d = h.next(); !d.done; d = h.next()) {
897
- var y = d.value;
898
- y.push(u), n <= y.length && (s = s ?? [], s.push(y));
899
- }
900
- } catch (w) {
901
- a = { error: w };
902
- } finally {
903
- try {
904
- d && !d.done && (c = h.return) && c.call(h);
905
- } finally {
906
- if (a) throw a.error;
907
- }
908
- }
909
- if (s)
910
- try {
911
- for (var m = C(s), b = m.next(); !b.done; b = m.next()) {
912
- var y = b.value;
913
- _(i, y), r.next(y);
914
- }
915
- } catch (w) {
916
- f = { error: w };
917
- } finally {
918
- try {
919
- b && !b.done && (l = m.return) && l.call(m);
920
- } finally {
921
- if (f) throw f.error;
922
- }
923
- }
924
- }, function() {
925
- var u, a;
926
- try {
927
- for (var c = C(i), f = c.next(); !f.done; f = c.next()) {
928
- var l = f.value;
929
- r.next(l);
930
- }
931
- } catch (s) {
932
- u = { error: s };
933
- } finally {
934
- try {
935
- f && !f.done && (a = c.return) && a.call(c);
936
- } finally {
937
- if (u) throw u.error;
938
- }
939
- }
940
- r.complete();
941
- }, void 0, function() {
942
- i = null;
943
- }));
944
- });
945
- }
946
- function dn(n) {
947
- return n[n.length - 1];
948
- }
949
- function en(n) {
950
- return x(dn(n)) ? n.pop() : void 0;
951
- }
952
- function N(n) {
953
- return Zn(dn(n)) ? n.pop() : void 0;
954
- }
955
- function _t(n, t) {
956
- return typeof dn(n) == "number" ? n.pop() : t;
957
- }
958
- function P(n, t, e, r, i) {
959
- r === void 0 && (r = 0), i === void 0 && (i = !1);
960
- var o = t.schedule(function() {
961
- e(), i ? n.add(this.schedule(null, r)) : this.unsubscribe();
962
- }, r);
963
- if (n.add(o), !i)
964
- return o;
965
- }
966
- function Ne(n) {
967
- for (var t, e, r = [], i = 1; i < arguments.length; i++)
968
- r[i - 1] = arguments[i];
969
- var o = (t = N(r)) !== null && t !== void 0 ? t : W, u = (e = r[0]) !== null && e !== void 0 ? e : null, a = r[1] || 1 / 0;
970
- return p(function(c, f) {
971
- var l = [], s = !1, h = function(m) {
972
- var b = m.buffer, w = m.subs;
973
- w.unsubscribe(), _(l, m), f.next(b), s && d();
974
- }, d = function() {
975
- if (l) {
976
- var m = new V();
977
- f.add(m);
978
- var b = [], w = {
979
- buffer: b,
980
- subs: m
981
- };
982
- l.push(w), P(m, o, function() {
983
- return h(w);
984
- }, n);
985
- }
986
- };
987
- u !== null && u >= 0 ? P(f, o, d, u, !0) : s = !0, d();
988
- var y = v(f, function(m) {
989
- var b, w, S = l.slice();
990
- try {
991
- for (var k = C(S), F = k.next(); !F.done; F = k.next()) {
992
- var L = F.value, M = L.buffer;
993
- M.push(m), a <= M.length && h(L);
994
- }
995
- } catch (ht) {
996
- b = { error: ht };
997
- } finally {
998
- try {
999
- F && !F.done && (w = k.return) && w.call(k);
1000
- } finally {
1001
- if (b) throw b.error;
1002
- }
1003
- }
1004
- }, function() {
1005
- for (; l?.length; )
1006
- f.next(l.shift().buffer);
1007
- y?.unsubscribe(), f.complete(), f.unsubscribe();
1008
- }, void 0, function() {
1009
- return l = null;
1010
- });
1011
- c.subscribe(y);
1012
- });
1013
- }
1014
- function Le(n, t) {
1015
- return p(function(e, r) {
1016
- var i = [];
1017
- g(n).subscribe(v(r, function(o) {
1018
- var u = [];
1019
- i.push(u);
1020
- var a = new V(), c = function() {
1021
- _(i, u), r.next(u), a.unsubscribe();
1022
- };
1023
- a.add(g(t(o)).subscribe(v(r, c, T)));
1024
- }, T)), e.subscribe(v(r, function(o) {
1025
- var u, a;
1026
- try {
1027
- for (var c = C(i), f = c.next(); !f.done; f = c.next()) {
1028
- var l = f.value;
1029
- l.push(o);
1030
- }
1031
- } catch (s) {
1032
- u = { error: s };
1033
- } finally {
1034
- try {
1035
- f && !f.done && (a = c.return) && a.call(c);
1036
- } finally {
1037
- if (u) throw u.error;
1038
- }
1039
- }
1040
- }, function() {
1041
- for (; i.length > 0; )
1042
- r.next(i.shift());
1043
- r.complete();
1044
- }));
1045
- });
1046
- }
1047
- function Me(n) {
1048
- return p(function(t, e) {
1049
- var r = null, i = null, o = function() {
1050
- i?.unsubscribe();
1051
- var u = r;
1052
- r = [], u && e.next(u), g(n()).subscribe(i = v(e, o, T));
1053
- };
1054
- o(), t.subscribe(v(e, function(u) {
1055
- return r?.push(u);
1056
- }, function() {
1057
- r && e.next(r), e.complete();
1058
- }, void 0, function() {
1059
- return r = i = null;
1060
- }));
1061
- });
1062
- }
1063
- function Ut(n) {
1064
- return p(function(t, e) {
1065
- var r = null, i = !1, o;
1066
- r = t.subscribe(v(e, void 0, void 0, function(u) {
1067
- o = g(n(u, Ut(n)(t))), r ? (r.unsubscribe(), r = null, o.subscribe(e)) : i = !0;
1068
- })), i && (r.unsubscribe(), r = null, o.subscribe(e));
1069
- });
1070
- }
1071
- var Ft = Array.isArray, Nt = Object.getPrototypeOf, Lt = Object.prototype, Mt = Object.keys;
1072
- function qt(n) {
1073
- if (n.length === 1) {
1074
- var t = n[0];
1075
- if (Ft(t))
1076
- return { args: t, keys: null };
1077
- if ($t(t)) {
1078
- var e = Mt(t);
1079
- return {
1080
- args: e.map(function(r) {
1081
- return t[r];
1082
- }),
1083
- keys: e
1084
- };
1085
- }
1086
- }
1087
- return { args: n, keys: null };
1088
- }
1089
- function $t(n) {
1090
- return n && typeof n == "object" && Nt(n) === Lt;
1091
- }
1092
- function Jn(n, t) {
1093
- return t === void 0 && (t = 0), p(function(e, r) {
1094
- e.subscribe(v(r, function(i) {
1095
- return P(r, n, function() {
1096
- return r.next(i);
1097
- }, t);
1098
- }, function() {
1099
- return P(r, n, function() {
1100
- return r.complete();
1101
- }, t);
1102
- }, function(i) {
1103
- return P(r, n, function() {
1104
- return r.error(i);
1105
- }, t);
1106
- }));
1107
- });
1108
- }
1109
- function Xn(n, t) {
1110
- return t === void 0 && (t = 0), p(function(e, r) {
1111
- r.add(n.schedule(function() {
1112
- return e.subscribe(r);
1113
- }, t));
1114
- });
1115
- }
1116
- function Dt(n, t) {
1117
- return g(n).pipe(Xn(t), Jn(t));
1118
- }
1119
- function Yt(n, t) {
1120
- return g(n).pipe(Xn(t), Jn(t));
1121
- }
1122
- function Gt(n, t) {
1123
- return new A(function(e) {
1124
- var r = 0;
1125
- return t.schedule(function() {
1126
- r === n.length ? e.complete() : (e.next(n[r++]), e.closed || this.schedule());
1127
- });
1128
- });
1129
- }
1130
- function zt(n, t) {
1131
- return new A(function(e) {
1132
- var r;
1133
- return P(e, t, function() {
1134
- r = n[$n](), P(e, t, function() {
1135
- var i, o, u;
1136
- try {
1137
- i = r.next(), o = i.value, u = i.done;
1138
- } catch (a) {
1139
- e.error(a);
1140
- return;
1141
- }
1142
- u ? e.complete() : e.next(o);
1143
- }, 0, !0);
1144
- }), function() {
1145
- return x(r?.return) && r.return();
1146
- };
1147
- });
1148
- }
1149
- function Bn(n, t) {
1150
- if (!n)
1151
- throw new Error("Iterable cannot be null");
1152
- return new A(function(e) {
1153
- P(e, t, function() {
1154
- var r = n[Symbol.asyncIterator]();
1155
- P(e, t, function() {
1156
- r.next().then(function(i) {
1157
- i.done ? e.complete() : e.next(i.value);
1158
- });
1159
- }, 0, !0);
1160
- });
1161
- });
1162
- }
1163
- function Kt(n, t) {
1164
- return Bn(Yn(n), t);
1165
- }
1166
- function Zt(n, t) {
1167
- if (n != null) {
1168
- if (Ln(n))
1169
- return Dt(n, t);
1170
- if (Rn(n))
1171
- return Gt(n, t);
1172
- if (Vn(n))
1173
- return Yt(n, t);
1174
- if (Mn(n))
1175
- return Bn(n, t);
1176
- if (Dn(n))
1177
- return zt(n, t);
1178
- if (Gn(n))
1179
- return Kt(n, t);
1180
- }
1181
- throw qn(n);
1182
- }
1183
- function G(n, t) {
1184
- return t ? Zt(n, t) : g(n);
1185
- }
1186
- function z(n, t) {
1187
- return p(function(e, r) {
1188
- var i = 0;
1189
- e.subscribe(v(r, function(o) {
1190
- r.next(n.call(t, o, i++));
1191
- }));
1192
- });
1193
- }
1194
- var Jt = Array.isArray;
1195
- function Xt(n, t) {
1196
- return Jt(t) ? n.apply(void 0, I([], E(t))) : n(t);
1197
- }
1198
- function pn(n) {
1199
- return z(function(t) {
1200
- return Xt(n, t);
1201
- });
1202
- }
1203
- function Bt(n, t) {
1204
- return n.reduce(function(e, r, i) {
1205
- return e[r] = t[i], e;
1206
- }, {});
1207
- }
1208
- function Qt() {
1209
- for (var n = [], t = 0; t < arguments.length; t++)
1210
- n[t] = arguments[t];
1211
- var e = N(n), r = en(n), i = qt(n), o = i.args, u = i.keys;
1212
- if (o.length === 0)
1213
- return G([], e);
1214
- var a = new A(Qn(o, e, u ? function(c) {
1215
- return Bt(u, c);
1216
- } : O));
1217
- return r ? a.pipe(pn(r)) : a;
1218
- }
1219
- function Qn(n, t, e) {
1220
- return e === void 0 && (e = O), function(r) {
1221
- In(t, function() {
1222
- for (var i = n.length, o = new Array(i), u = i, a = i, c = function(l) {
1223
- In(t, function() {
1224
- var s = G(n[l], t), h = !1;
1225
- s.subscribe(v(r, function(d) {
1226
- o[l] = d, h || (h = !0, a--), a || r.next(e(o.slice()));
1227
- }, function() {
1228
- --u || r.complete();
1229
- }));
1230
- }, r);
1231
- }, f = 0; f < i; f++)
1232
- c(f);
1233
- }, r);
1234
- };
1235
- }
1236
- function In(n, t, e) {
1237
- n ? P(e, n, t) : t();
1238
- }
1239
- function yn(n, t, e, r, i, o, u, a) {
1240
- var c = [], f = 0, l = 0, s = !1, h = function() {
1241
- s && !c.length && !f && t.complete();
1242
- }, d = function(m) {
1243
- return f < r ? y(m) : c.push(m);
1244
- }, y = function(m) {
1245
- o && t.next(m), f++;
1246
- var b = !1;
1247
- g(e(m, l++)).subscribe(v(t, function(w) {
1248
- i?.(w), o ? d(w) : t.next(w);
1249
- }, function() {
1250
- b = !0;
1251
- }, void 0, function() {
1252
- if (b)
1253
- try {
1254
- f--;
1255
- for (var w = function() {
1256
- var S = c.shift();
1257
- u ? P(t, u, function() {
1258
- return y(S);
1259
- }) : y(S);
1260
- }; c.length && f < r; )
1261
- w();
1262
- h();
1263
- } catch (S) {
1264
- t.error(S);
1265
- }
1266
- }));
1267
- };
1268
- return n.subscribe(v(t, d, function() {
1269
- s = !0, h();
1270
- })), function() {
1271
- a?.();
1272
- };
1273
- }
1274
- function U(n, t, e) {
1275
- return e === void 0 && (e = 1 / 0), x(t) ? U(function(r, i) {
1276
- return z(function(o, u) {
1277
- return t(r, o, i, u);
1278
- })(g(n(r, i)));
1279
- }, e) : (typeof t == "number" && (e = t), p(function(r, i) {
1280
- return yn(r, i, n, e);
1281
- }));
1282
- }
1283
- function Hn(n, t, e, r, i) {
1284
- return function(o, u) {
1285
- var a = e, c = t, f = 0;
1286
- o.subscribe(v(u, function(l) {
1287
- var s = f++;
1288
- c = a ? n(c, l, s) : (a = !0, l), r && u.next(c);
1289
- }, i && (function() {
1290
- a && u.next(c), u.complete();
1291
- })));
1292
- };
1293
- }
1294
- function rn(n, t) {
1295
- return p(Hn(n, t, arguments.length >= 2, !1, !0));
1296
- }
1297
- var Ht = function(n, t) {
1298
- return n.push(t), n;
1299
- };
1300
- function ne() {
1301
- return p(function(n, t) {
1302
- rn(Ht, [])(n).subscribe(t);
1303
- });
1304
- }
1305
- function nt(n, t) {
1306
- return Fn(ne(), U(function(e) {
1307
- return n(e);
1308
- }), t ? pn(t) : O);
1309
- }
1310
- function te(n) {
1311
- return nt(Qt, n);
1312
- }
1313
- var qe = te, ee = Array.isArray;
1314
- function Z(n) {
1315
- return n.length === 1 && ee(n[0]) ? n[0] : n;
1316
- }
1317
- function tt() {
1318
- for (var n = [], t = 0; t < arguments.length; t++)
1319
- n[t] = arguments[t];
1320
- var e = en(n);
1321
- return e ? Fn(tt.apply(void 0, I([], E(n))), pn(e)) : p(function(r, i) {
1322
- Qn(I([r], E(Z(n))))(i);
1323
- });
1324
- }
1325
- function $e() {
1326
- for (var n = [], t = 0; t < arguments.length; t++)
1327
- n[t] = arguments[t];
1328
- return tt.apply(void 0, I([], E(n)));
1329
- }
1330
- function et(n) {
1331
- return n === void 0 && (n = 1 / 0), U(O, n);
1332
- }
1333
- function rt() {
1334
- return et(1);
1335
- }
1336
- function re() {
1337
- for (var n = [], t = 0; t < arguments.length; t++)
1338
- n[t] = arguments[t];
1339
- var e = N(n);
1340
- return p(function(r, i) {
1341
- rt()(G(I([r], E(n)), e)).subscribe(i);
1342
- });
1343
- }
1344
- function An(n, t) {
1345
- return x(t) ? U(n, t, 1) : U(n, 1);
1346
- }
1347
- function De(n, t) {
1348
- return x(t) ? An(function() {
1349
- return n;
1350
- }, t) : An(function() {
1351
- return n;
1352
- });
1353
- }
1354
- function Ye() {
1355
- for (var n = [], t = 0; t < arguments.length; t++)
1356
- n[t] = arguments[t];
1357
- return re.apply(void 0, I([], E(n)));
1358
- }
1359
- var ie = q(function(n) {
1360
- return function() {
1361
- n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1362
- };
1363
- }), j = (function(n) {
1364
- R(t, n);
1365
- function t() {
1366
- var e = n.call(this) || this;
1367
- return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
1368
- }
1369
- return t.prototype.lift = function(e) {
1370
- var r = new Tn(this, this);
1371
- return r.operator = e, r;
1372
- }, t.prototype._throwIfClosed = function() {
1373
- if (this.closed)
1374
- throw new ie();
1375
- }, t.prototype.next = function(e) {
1376
- var r = this;
1377
- B(function() {
1378
- var i, o;
1379
- if (r._throwIfClosed(), !r.isStopped) {
1380
- r.currentObservers || (r.currentObservers = Array.from(r.observers));
1381
- try {
1382
- for (var u = C(r.currentObservers), a = u.next(); !a.done; a = u.next()) {
1383
- var c = a.value;
1384
- c.next(e);
1385
- }
1386
- } catch (f) {
1387
- i = { error: f };
1388
- } finally {
1389
- try {
1390
- a && !a.done && (o = u.return) && o.call(u);
1391
- } finally {
1392
- if (i) throw i.error;
1393
- }
1394
- }
1395
- }
1396
- });
1397
- }, t.prototype.error = function(e) {
1398
- var r = this;
1399
- B(function() {
1400
- if (r._throwIfClosed(), !r.isStopped) {
1401
- r.hasError = r.isStopped = !0, r.thrownError = e;
1402
- for (var i = r.observers; i.length; )
1403
- i.shift().error(e);
1404
- }
1405
- });
1406
- }, t.prototype.complete = function() {
1407
- var e = this;
1408
- B(function() {
1409
- if (e._throwIfClosed(), !e.isStopped) {
1410
- e.isStopped = !0;
1411
- for (var r = e.observers; r.length; )
1412
- r.shift().complete();
1413
- }
1414
- });
1415
- }, t.prototype.unsubscribe = function() {
1416
- this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1417
- }, Object.defineProperty(t.prototype, "observed", {
1418
- get: function() {
1419
- var e;
1420
- return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
1421
- },
1422
- enumerable: !1,
1423
- configurable: !0
1424
- }), t.prototype._trySubscribe = function(e) {
1425
- return this._throwIfClosed(), n.prototype._trySubscribe.call(this, e);
1426
- }, t.prototype._subscribe = function(e) {
1427
- return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
1428
- }, t.prototype._innerSubscribe = function(e) {
1429
- var r = this, i = this, o = i.hasError, u = i.isStopped, a = i.observers;
1430
- return o || u ? Wn : (this.currentObservers = null, a.push(e), new V(function() {
1431
- r.currentObservers = null, _(a, e);
1432
- }));
1433
- }, t.prototype._checkFinalizedStatuses = function(e) {
1434
- var r = this, i = r.hasError, o = r.thrownError, u = r.isStopped;
1435
- i ? e.error(o) : u && e.complete();
1436
- }, t.prototype.asObservable = function() {
1437
- var e = new A();
1438
- return e.source = this, e;
1439
- }, t.create = function(e, r) {
1440
- return new Tn(e, r);
1441
- }, t;
1442
- })(A), Tn = (function(n) {
1443
- R(t, n);
1444
- function t(e, r) {
1445
- var i = n.call(this) || this;
1446
- return i.destination = e, i.source = r, i;
1447
- }
1448
- return t.prototype.next = function(e) {
1449
- var r, i;
1450
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, e);
1451
- }, t.prototype.error = function(e) {
1452
- var r, i;
1453
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, e);
1454
- }, t.prototype.complete = function() {
1455
- var e, r;
1456
- (r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e);
1457
- }, t.prototype._subscribe = function(e) {
1458
- var r, i;
1459
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && i !== void 0 ? i : Wn;
1460
- }, t;
1461
- })(j);
1462
- function oe(n) {
1463
- return new A(function(t) {
1464
- return n.subscribe(t);
1465
- });
1466
- }
1467
- var ue = {
1468
- connector: function() {
1469
- return new j();
1470
- }
1471
- };
1472
- function it(n, t) {
1473
- t === void 0 && (t = ue);
1474
- var e = t.connector;
1475
- return p(function(r, i) {
1476
- var o = e();
1477
- g(n(oe(o))).subscribe(i), i.add(r.subscribe(o));
1478
- });
1479
- }
1480
- function Ge(n) {
1481
- return rn(function(t, e, r) {
1482
- return !n || n(e, r) ? t + 1 : t;
1483
- }, 0);
1484
- }
1485
- function ze(n) {
1486
- return p(function(t, e) {
1487
- var r = !1, i = null, o = null, u = function() {
1488
- if (o?.unsubscribe(), o = null, r) {
1489
- r = !1;
1490
- var a = i;
1491
- i = null, e.next(a);
1492
- }
1493
- };
1494
- t.subscribe(v(e, function(a) {
1495
- o?.unsubscribe(), r = !0, i = a, o = v(e, u, T), g(n(a)).subscribe(o);
1496
- }, function() {
1497
- u(), e.complete();
1498
- }, void 0, function() {
1499
- i = o = null;
1500
- }));
1501
- });
1502
- }
1503
- function Ke(n, t) {
1504
- return t === void 0 && (t = W), p(function(e, r) {
1505
- var i = null, o = null, u = null, a = function() {
1506
- if (i) {
1507
- i.unsubscribe(), i = null;
1508
- var f = o;
1509
- o = null, r.next(f);
1510
- }
1511
- };
1512
- function c() {
1513
- var f = u + n, l = t.now();
1514
- if (l < f) {
1515
- i = this.schedule(void 0, f - l), r.add(i);
1516
- return;
1517
- }
1518
- a();
1519
- }
1520
- e.subscribe(v(r, function(f) {
1521
- o = f, u = t.now(), i || (i = t.schedule(c, n), r.add(i));
1522
- }, function() {
1523
- a(), r.complete();
1524
- }, void 0, function() {
1525
- o = i = null;
1526
- }));
1527
- });
1528
- }
1529
- function mn(n) {
1530
- return p(function(t, e) {
1531
- var r = !1;
1532
- t.subscribe(v(e, function(i) {
1533
- r = !0, e.next(i);
1534
- }, function() {
1535
- r || e.next(n), e.complete();
1536
- }));
1537
- });
1538
- }
1539
- function Q() {
1540
- for (var n = [], t = 0; t < arguments.length; t++)
1541
- n[t] = arguments[t];
1542
- return rt()(G(n, N(n)));
1543
- }
1544
- var J = new A(function(n) {
1545
- return n.complete();
1546
- });
1547
- function H(n) {
1548
- return n <= 0 ? function() {
1549
- return J;
1550
- } : p(function(t, e) {
1551
- var r = 0;
1552
- t.subscribe(v(e, function(i) {
1553
- ++r <= n && (e.next(i), n <= r && e.complete());
1554
- }));
1555
- });
1556
- }
1557
- function ae() {
1558
- return p(function(n, t) {
1559
- n.subscribe(v(t, T));
1560
- });
1561
- }
1562
- function fe(n) {
1563
- return z(function() {
1564
- return n;
1565
- });
1566
- }
1567
- function ot(n, t) {
1568
- return t ? function(e) {
1569
- return Q(t.pipe(H(1), ae()), e.pipe(ot(n)));
1570
- } : U(function(e, r) {
1571
- return g(n(e, r)).pipe(H(1), fe(e));
1572
- });
1573
- }
1574
- function Ze(n, t) {
1575
- t === void 0 && (t = W);
1576
- var e = Y(n, t);
1577
- return ot(function() {
1578
- return e;
1579
- });
1580
- }
1581
- function ut() {
1582
- for (var n = [], t = 0; t < arguments.length; t++)
1583
- n[t] = arguments[t];
1584
- var e = N(n);
1585
- return G(n, e);
1586
- }
1587
- function ce(n, t) {
1588
- var e = x(n) ? n : function() {
1589
- return n;
1590
- }, r = function(i) {
1591
- return i.error(e());
1592
- };
1593
- return new A(r);
1594
- }
1595
- var jn;
1596
- (function(n) {
1597
- n.NEXT = "N", n.ERROR = "E", n.COMPLETE = "C";
1598
- })(jn || (jn = {}));
1599
- var an = (function() {
1600
- function n(t, e, r) {
1601
- this.kind = t, this.value = e, this.error = r, this.hasValue = t === "N";
1602
- }
1603
- return n.prototype.observe = function(t) {
1604
- return at(this, t);
1605
- }, n.prototype.do = function(t, e, r) {
1606
- var i = this, o = i.kind, u = i.value, a = i.error;
1607
- return o === "N" ? t?.(u) : o === "E" ? e?.(a) : r?.();
1608
- }, n.prototype.accept = function(t, e, r) {
1609
- var i;
1610
- return x((i = t) === null || i === void 0 ? void 0 : i.next) ? this.observe(t) : this.do(t, e, r);
1611
- }, n.prototype.toObservable = function() {
1612
- var t = this, e = t.kind, r = t.value, i = t.error, o = e === "N" ? ut(r) : e === "E" ? ce(function() {
1613
- return i;
1614
- }) : e === "C" ? J : 0;
1615
- if (!o)
1616
- throw new TypeError("Unexpected notification kind " + e);
1617
- return o;
1618
- }, n.createNext = function(t) {
1619
- return new n("N", t);
1620
- }, n.createError = function(t) {
1621
- return new n("E", void 0, t);
1622
- }, n.createComplete = function() {
1623
- return n.completeNotification;
1624
- }, n.completeNotification = new n("C"), n;
1625
- })();
1626
- function at(n, t) {
1627
- var e, r, i, o = n, u = o.kind, a = o.value, c = o.error;
1628
- if (typeof u != "string")
1629
- throw new TypeError('Invalid notification, missing "kind"');
1630
- u === "N" ? (e = t.next) === null || e === void 0 || e.call(t, a) : u === "E" ? (r = t.error) === null || r === void 0 || r.call(t, c) : (i = t.complete) === null || i === void 0 || i.call(t);
1631
- }
1632
- function Je() {
1633
- return p(function(n, t) {
1634
- n.subscribe(v(t, function(e) {
1635
- return at(e, t);
1636
- }));
1637
- });
1638
- }
1639
- function Xe(n, t) {
1640
- return p(function(e, r) {
1641
- var i = /* @__PURE__ */ new Set();
1642
- e.subscribe(v(r, function(o) {
1643
- var u = n ? n(o) : o;
1644
- i.has(u) || (i.add(u), r.next(o));
1645
- })), t && g(t).subscribe(v(r, function() {
1646
- return i.clear();
1647
- }, T));
1648
- });
1649
- }
1650
- function le(n, t) {
1651
- return t === void 0 && (t = O), n = n ?? se, p(function(e, r) {
1652
- var i, o = !0;
1653
- e.subscribe(v(r, function(u) {
1654
- var a = t(u);
1655
- (o || !n(i, a)) && (o = !1, i = a, r.next(u));
1656
- }));
1657
- });
1658
- }
1659
- function se(n, t) {
1660
- return n === t;
1661
- }
1662
- function Be(n, t) {
1663
- return le(function(e, r) {
1664
- return t ? t(e[n], r[n]) : e[n] === r[n];
1665
- });
1666
- }
1667
- var On = q(function(n) {
1668
- return function() {
1669
- n(this), this.name = "ArgumentOutOfRangeError", this.message = "argument out of range";
1670
- };
1671
- });
1672
- function D(n, t) {
1673
- return p(function(e, r) {
1674
- var i = 0;
1675
- e.subscribe(v(r, function(o) {
1676
- return n.call(t, o, i++) && r.next(o);
1677
- }));
1678
- });
1679
- }
1680
- var on = q(function(n) {
1681
- return function() {
1682
- n(this), this.name = "EmptyError", this.message = "no elements in sequence";
1683
- };
1684
- });
1685
- function bn(n) {
1686
- return n === void 0 && (n = ve), p(function(t, e) {
1687
- var r = !1;
1688
- t.subscribe(v(e, function(i) {
1689
- r = !0, e.next(i);
1690
- }, function() {
1691
- return r ? e.complete() : e.error(n());
1692
- }));
1693
- });
1694
- }
1695
- function ve() {
1696
- return new on();
1697
- }
1698
- function Qe(n, t) {
1699
- if (n < 0)
1700
- throw new On();
1701
- var e = arguments.length >= 2;
1702
- return function(r) {
1703
- return r.pipe(D(function(i, o) {
1704
- return o === n;
1705
- }), H(1), e ? mn(t) : bn(function() {
1706
- return new On();
1707
- }));
1708
- };
1709
- }
1710
- function He() {
1711
- for (var n = [], t = 0; t < arguments.length; t++)
1712
- n[t] = arguments[t];
1713
- return function(e) {
1714
- return Q(e, ut.apply(void 0, I([], E(n))));
1715
- };
1716
- }
1717
- function nr(n, t) {
1718
- return p(function(e, r) {
1719
- var i = 0;
1720
- e.subscribe(v(r, function(o) {
1721
- n.call(t, o, i++, e) || (r.next(!1), r.complete());
1722
- }, function() {
1723
- r.next(!0), r.complete();
1724
- }));
1725
- });
1726
- }
1727
- function ft(n, t) {
1728
- return t ? function(e) {
1729
- return e.pipe(ft(function(r, i) {
1730
- return g(n(r, i)).pipe(z(function(o, u) {
1731
- return t(r, o, i, u);
1732
- }));
1733
- }));
1734
- } : p(function(e, r) {
1735
- var i = 0, o = null, u = !1;
1736
- e.subscribe(v(r, function(a) {
1737
- o || (o = v(r, void 0, function() {
1738
- o = null, u && r.complete();
1739
- }), g(n(a, i++)).subscribe(o));
1740
- }, function() {
1741
- u = !0, !o && r.complete();
1742
- }));
1743
- });
1744
- }
1745
- function he() {
1746
- return ft(O);
1747
- }
1748
- var tr = he;
1749
- function er(n, t, e) {
1750
- return t === void 0 && (t = 1 / 0), t = (t || 0) < 1 ? 1 / 0 : t, p(function(r, i) {
1751
- return yn(r, i, n, t, void 0, !0, e);
1752
- });
1753
- }
1754
- function rr(n) {
1755
- return p(function(t, e) {
1756
- try {
1757
- t.subscribe(e);
1758
- } finally {
1759
- e.add(n);
1760
- }
1761
- });
1762
- }
1763
- function ir(n, t) {
1764
- return p(ct(n, t, "value"));
1765
- }
1766
- function ct(n, t, e) {
1767
- var r = e === "index";
1768
- return function(i, o) {
1769
- var u = 0;
1770
- i.subscribe(v(o, function(a) {
1771
- var c = u++;
1772
- n.call(t, a, c, i) && (o.next(r ? c : a), o.complete());
1773
- }, function() {
1774
- o.next(r ? -1 : void 0), o.complete();
1775
- }));
1776
- };
1777
- }
1778
- function or(n, t) {
1779
- return p(ct(n, t, "index"));
1780
- }
1781
- function ur(n, t) {
1782
- var e = arguments.length >= 2;
1783
- return function(r) {
1784
- return r.pipe(n ? D(function(i, o) {
1785
- return n(i, o, r);
1786
- }) : O, H(1), e ? mn(t) : bn(function() {
1787
- return new on();
1788
- }));
1789
- };
1790
- }
1791
- function ar(n, t, e, r) {
1792
- return p(function(i, o) {
1793
- var u;
1794
- !t || typeof t == "function" ? u = t : (e = t.duration, u = t.element, r = t.connector);
1795
- var a = /* @__PURE__ */ new Map(), c = function(y) {
1796
- a.forEach(y), y(o);
1797
- }, f = function(y) {
1798
- return c(function(m) {
1799
- return m.error(y);
1800
- });
1801
- }, l = 0, s = !1, h = new vn(o, function(y) {
1802
- try {
1803
- var m = n(y), b = a.get(m);
1804
- if (!b) {
1805
- a.set(m, b = r ? r() : new j());
1806
- var w = d(m, b);
1807
- if (o.next(w), e) {
1808
- var S = v(b, function() {
1809
- b.complete(), S?.unsubscribe();
1810
- }, void 0, void 0, function() {
1811
- return a.delete(m);
1812
- });
1813
- h.add(g(e(w)).subscribe(S));
1814
- }
1815
- }
1816
- b.next(u ? u(y) : y);
1817
- } catch (k) {
1818
- f(k);
1819
- }
1820
- }, function() {
1821
- return c(function(y) {
1822
- return y.complete();
1823
- });
1824
- }, f, function() {
1825
- return a.clear();
1826
- }, function() {
1827
- return s = !0, l === 0;
1828
- });
1829
- i.subscribe(h);
1830
- function d(y, m) {
1831
- var b = new A(function(w) {
1832
- l++;
1833
- var S = m.subscribe(w);
1834
- return function() {
1835
- S.unsubscribe(), --l === 0 && s && h.unsubscribe();
1836
- };
1837
- });
1838
- return b.key = y, b;
1839
- }
1840
- });
1841
- }
1842
- function fr() {
1843
- return p(function(n, t) {
1844
- n.subscribe(v(t, function() {
1845
- t.next(!1), t.complete();
1846
- }, function() {
1847
- t.next(!0), t.complete();
1848
- }));
1849
- });
1850
- }
1851
- function de(n) {
1852
- return n <= 0 ? function() {
1853
- return J;
1854
- } : p(function(t, e) {
1855
- var r = [];
1856
- t.subscribe(v(e, function(i) {
1857
- r.push(i), n < r.length && r.shift();
1858
- }, function() {
1859
- var i, o;
1860
- try {
1861
- for (var u = C(r), a = u.next(); !a.done; a = u.next()) {
1862
- var c = a.value;
1863
- e.next(c);
1864
- }
1865
- } catch (f) {
1866
- i = { error: f };
1867
- } finally {
1868
- try {
1869
- a && !a.done && (o = u.return) && o.call(u);
1870
- } finally {
1871
- if (i) throw i.error;
1872
- }
1873
- }
1874
- e.complete();
1875
- }, void 0, function() {
1876
- r = null;
1877
- }));
1878
- });
1879
- }
1880
- function cr(n, t) {
1881
- var e = arguments.length >= 2;
1882
- return function(r) {
1883
- return r.pipe(n ? D(function(i, o) {
1884
- return n(i, o, r);
1885
- }) : O, de(1), e ? mn(t) : bn(function() {
1886
- return new on();
1887
- }));
1888
- };
1889
- }
1890
- function lr() {
1891
- return p(function(n, t) {
1892
- n.subscribe(v(t, function(e) {
1893
- t.next(an.createNext(e));
1894
- }, function() {
1895
- t.next(an.createComplete()), t.complete();
1896
- }, function(e) {
1897
- t.next(an.createError(e)), t.complete();
1898
- }));
1899
- });
1900
- }
1901
- function sr(n) {
1902
- return rn(x(n) ? function(t, e) {
1903
- return n(t, e) > 0 ? t : e;
1904
- } : function(t, e) {
1905
- return t > e ? t : e;
1906
- });
1907
- }
1908
- function pe() {
1909
- for (var n = [], t = 0; t < arguments.length; t++)
1910
- n[t] = arguments[t];
1911
- var e = N(n), r = _t(n, 1 / 0);
1912
- return p(function(i, o) {
1913
- et(r)(G(I([i], E(n)), e)).subscribe(o);
1914
- });
1915
- }
1916
- var vr = U;
1917
- function hr(n, t, e) {
1918
- return e === void 0 && (e = 1 / 0), x(t) ? U(function() {
1919
- return n;
1920
- }, t, e) : (typeof t == "number" && (e = t), U(function() {
1921
- return n;
1922
- }, e));
1923
- }
1924
- function dr(n, t, e) {
1925
- return e === void 0 && (e = 1 / 0), p(function(r, i) {
1926
- var o = t;
1927
- return yn(r, i, function(u, a) {
1928
- return n(o, u, a);
1929
- }, e, function(u) {
1930
- o = u;
1931
- }, !1, void 0, function() {
1932
- return o = null;
1933
- });
1934
- });
1935
- }
1936
- function pr() {
1937
- for (var n = [], t = 0; t < arguments.length; t++)
1938
- n[t] = arguments[t];
1939
- return pe.apply(void 0, I([], E(n)));
1940
- }
1941
- function yr(n) {
1942
- return rn(x(n) ? function(t, e) {
1943
- return n(t, e) < 0 ? t : e;
1944
- } : function(t, e) {
1945
- return t < e ? t : e;
1946
- });
1947
- }
1948
- function ye() {
1949
- return p(function(n, t) {
1950
- var e = null;
1951
- n._refCount++;
1952
- var r = v(t, void 0, void 0, void 0, function() {
1953
- if (!n || n._refCount <= 0 || 0 < --n._refCount) {
1954
- e = null;
1955
- return;
1956
- }
1957
- var i = n._connection, o = e;
1958
- e = null, i && (!o || i === o) && i.unsubscribe(), t.unsubscribe();
1959
- });
1960
- n.subscribe(r), r.closed || (e = n.connect());
1961
- });
1962
- }
1963
- var wn = (function(n) {
1964
- R(t, n);
1965
- function t(e, r) {
1966
- var i = n.call(this) || this;
1967
- return i.source = e, i.subjectFactory = r, i._subject = null, i._refCount = 0, i._connection = null, Cn(e) && (i.lift = e.lift), i;
1968
- }
1969
- return t.prototype._subscribe = function(e) {
1970
- return this.getSubject().subscribe(e);
1971
- }, t.prototype.getSubject = function() {
1972
- var e = this._subject;
1973
- return (!e || e.isStopped) && (this._subject = this.subjectFactory()), this._subject;
1974
- }, t.prototype._teardown = function() {
1975
- this._refCount = 0;
1976
- var e = this._connection;
1977
- this._subject = this._connection = null, e?.unsubscribe();
1978
- }, t.prototype.connect = function() {
1979
- var e = this, r = this._connection;
1980
- if (!r) {
1981
- r = this._connection = new V();
1982
- var i = this.getSubject();
1983
- r.add(this.source.subscribe(v(i, void 0, function() {
1984
- e._teardown(), i.complete();
1985
- }, function(o) {
1986
- e._teardown(), i.error(o);
1987
- }, function() {
1988
- return e._teardown();
1989
- }))), r.closed && (this._connection = null, r = V.EMPTY);
1990
- }
1991
- return r;
1992
- }, t.prototype.refCount = function() {
1993
- return ye()(this);
1994
- }, t;
1995
- })(A);
1996
- function lt(n, t) {
1997
- var e = x(n) ? n : function() {
1998
- return n;
1999
- };
2000
- return x(t) ? it(t, {
2001
- connector: e
2002
- }) : function(r) {
2003
- return new wn(r, e);
2004
- };
2005
- }
2006
- function me() {
2007
- for (var n = [], t = 0; t < arguments.length; t++)
2008
- n[t] = arguments[t];
2009
- var e = Z(n);
2010
- return new A(function(r) {
2011
- var i = 0, o = function() {
2012
- if (i < e.length) {
2013
- var u = void 0;
2014
- try {
2015
- u = g(e[i++]);
2016
- } catch {
2017
- o();
2018
- return;
2019
- }
2020
- var a = new vn(r, void 0, T, T);
2021
- u.subscribe(a), a.add(o);
2022
- } else
2023
- r.complete();
2024
- };
2025
- o();
2026
- });
2027
- }
2028
- function be() {
2029
- for (var n = [], t = 0; t < arguments.length; t++)
2030
- n[t] = arguments[t];
2031
- var e = Z(n);
2032
- return function(r) {
2033
- return me.apply(void 0, I([r], E(e)));
2034
- };
2035
- }
2036
- var mr = be;
2037
- function br() {
2038
- return p(function(n, t) {
2039
- var e, r = !1;
2040
- n.subscribe(v(t, function(i) {
2041
- var o = e;
2042
- e = i, r && t.next([o, i]), r = !0;
2043
- }));
2044
- });
2045
- }
2046
- function we(n, t) {
2047
- return function(e, r) {
2048
- return !n.call(t, e, r);
2049
- };
2050
- }
2051
- function wr(n, t) {
2052
- return function(e) {
2053
- return [D(n, t)(e), D(we(n, t))(e)];
2054
- };
2055
- }
2056
- function gr() {
2057
- for (var n = [], t = 0; t < arguments.length; t++)
2058
- n[t] = arguments[t];
2059
- var e = n.length;
2060
- if (e === 0)
2061
- throw new Error("list of properties cannot be empty.");
2062
- return z(function(r) {
2063
- for (var i = r, o = 0; o < e; o++) {
2064
- var u = i?.[n[o]];
2065
- if (typeof u < "u")
2066
- i = u;
2067
- else
2068
- return;
2069
- }
2070
- return i;
2071
- });
2072
- }
2073
- function xr(n) {
2074
- return n ? function(t) {
2075
- return it(n)(t);
2076
- } : function(t) {
2077
- return lt(new j())(t);
2078
- };
2079
- }
2080
- var ge = (function(n) {
2081
- R(t, n);
2082
- function t(e) {
2083
- var r = n.call(this) || this;
2084
- return r._value = e, r;
2085
- }
2086
- return Object.defineProperty(t.prototype, "value", {
2087
- get: function() {
2088
- return this.getValue();
2089
- },
2090
- enumerable: !1,
2091
- configurable: !0
2092
- }), t.prototype._subscribe = function(e) {
2093
- var r = n.prototype._subscribe.call(this, e);
2094
- return !r.closed && e.next(this._value), r;
2095
- }, t.prototype.getValue = function() {
2096
- var e = this, r = e.hasError, i = e.thrownError, o = e._value;
2097
- if (r)
2098
- throw i;
2099
- return this._throwIfClosed(), o;
2100
- }, t.prototype.next = function(e) {
2101
- n.prototype.next.call(this, this._value = e);
2102
- }, t;
2103
- })(j);
2104
- function Sr(n) {
2105
- return function(t) {
2106
- var e = new ge(n);
2107
- return new wn(t, function() {
2108
- return e;
2109
- });
2110
- };
2111
- }
2112
- var xe = (function(n) {
2113
- R(t, n);
2114
- function t() {
2115
- var e = n !== null && n.apply(this, arguments) || this;
2116
- return e._value = null, e._hasValue = !1, e._isComplete = !1, e;
2117
- }
2118
- return t.prototype._checkFinalizedStatuses = function(e) {
2119
- var r = this, i = r.hasError, o = r._hasValue, u = r._value, a = r.thrownError, c = r.isStopped, f = r._isComplete;
2120
- i ? e.error(a) : (c || f) && (o && e.next(u), e.complete());
2121
- }, t.prototype.next = function(e) {
2122
- this.isStopped || (this._value = e, this._hasValue = !0);
2123
- }, t.prototype.complete = function() {
2124
- var e = this, r = e._hasValue, i = e._value, o = e._isComplete;
2125
- o || (this._isComplete = !0, r && n.prototype.next.call(this, i), n.prototype.complete.call(this));
2126
- }, t;
2127
- })(j);
2128
- function Er() {
2129
- return function(n) {
2130
- var t = new xe();
2131
- return new wn(n, function() {
2132
- return t;
2133
- });
2134
- };
2135
- }
2136
- var st = (function(n) {
2137
- R(t, n);
2138
- function t(e, r, i) {
2139
- e === void 0 && (e = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = tn);
2140
- var o = n.call(this) || this;
2141
- return o._bufferSize = e, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, r), o;
2142
- }
2143
- return t.prototype.next = function(e) {
2144
- var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow, a = r._timestampProvider, c = r._windowTime;
2145
- i || (o.push(e), !u && o.push(a.now() + c)), this._trimBuffer(), n.prototype.next.call(this, e);
2146
- }, t.prototype._subscribe = function(e) {
2147
- this._throwIfClosed(), this._trimBuffer();
2148
- for (var r = this._innerSubscribe(e), i = this, o = i._infiniteTimeWindow, u = i._buffer, a = u.slice(), c = 0; c < a.length && !e.closed; c += o ? 1 : 2)
2149
- e.next(a[c]);
2150
- return this._checkFinalizedStatuses(e), r;
2151
- }, t.prototype._trimBuffer = function() {
2152
- var e = this, r = e._bufferSize, i = e._timestampProvider, o = e._buffer, u = e._infiniteTimeWindow, a = (u ? 1 : 2) * r;
2153
- if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !u) {
2154
- for (var c = i.now(), f = 0, l = 1; l < o.length && o[l] <= c; l += 2)
2155
- f = l;
2156
- f && o.splice(0, f + 1);
2157
- }
2158
- }, t;
2159
- })(j);
2160
- function Ir(n, t, e, r) {
2161
- e && !x(e) && (r = e);
2162
- var i = x(e) ? e : void 0;
2163
- return function(o) {
2164
- return lt(new st(n, t, r), i)(o);
2165
- };
2166
- }
2167
- function Se(n) {
2168
- return function(t) {
2169
- for (var e = [], r = function(o) {
2170
- e.push(g(n[o]).subscribe(v(t, function(u) {
2171
- if (e) {
2172
- for (var a = 0; a < e.length; a++)
2173
- a !== o && e[a].unsubscribe();
2174
- e = null;
2175
- }
2176
- t.next(u);
2177
- })));
2178
- }, i = 0; e && !t.closed && i < n.length; i++)
2179
- r(i);
2180
- };
2181
- }
2182
- function Ee() {
2183
- for (var n = [], t = 0; t < arguments.length; t++)
2184
- n[t] = arguments[t];
2185
- return n.length ? p(function(e, r) {
2186
- Se(I([e], E(n)))(r);
2187
- }) : O;
2188
- }
2189
- function Ar() {
2190
- for (var n = [], t = 0; t < arguments.length; t++)
2191
- n[t] = arguments[t];
2192
- return Ee.apply(void 0, I([], E(Z(n))));
2193
- }
2194
- function Tr(n) {
2195
- var t, e = 1 / 0, r;
2196
- return n != null && (typeof n == "object" ? (t = n.count, e = t === void 0 ? 1 / 0 : t, r = n.delay) : e = n), e <= 0 ? function() {
2197
- return J;
2198
- } : p(function(i, o) {
2199
- var u = 0, a, c = function() {
2200
- if (a?.unsubscribe(), a = null, r != null) {
2201
- var l = typeof r == "number" ? Y(r) : g(r(u)), s = v(o, function() {
2202
- s.unsubscribe(), f();
2203
- });
2204
- l.subscribe(s);
2205
- } else
2206
- f();
2207
- }, f = function() {
2208
- var l = !1;
2209
- a = i.subscribe(v(o, void 0, function() {
2210
- ++u < e ? a ? c() : l = !0 : o.complete();
2211
- })), l && c();
2212
- };
2213
- f();
2214
- });
2215
- }
2216
- function jr(n) {
2217
- return p(function(t, e) {
2218
- var r, i = !1, o, u = !1, a = !1, c = function() {
2219
- return a && u && (e.complete(), !0);
2220
- }, f = function() {
2221
- return o || (o = new j(), g(n(o)).subscribe(v(e, function() {
2222
- r ? l() : i = !0;
2223
- }, function() {
2224
- u = !0, c();
2225
- }))), o;
2226
- }, l = function() {
2227
- a = !1, r = t.subscribe(v(e, void 0, function() {
2228
- a = !0, !c() && f().next();
2229
- })), i && (r.unsubscribe(), r = null, i = !1, l());
2230
- };
2231
- l();
2232
- });
2233
- }
2234
- function Or(n) {
2235
- n === void 0 && (n = 1 / 0);
2236
- var t;
2237
- n && typeof n == "object" ? t = n : t = {
2238
- count: n
2239
- };
2240
- var e = t.count, r = e === void 0 ? 1 / 0 : e, i = t.delay, o = t.resetOnSuccess, u = o === void 0 ? !1 : o;
2241
- return r <= 0 ? O : p(function(a, c) {
2242
- var f = 0, l, s = function() {
2243
- var h = !1;
2244
- l = a.subscribe(v(c, function(d) {
2245
- u && (f = 0), c.next(d);
2246
- }, void 0, function(d) {
2247
- if (f++ < r) {
2248
- var y = function() {
2249
- l ? (l.unsubscribe(), l = null, s()) : h = !0;
2250
- };
2251
- if (i != null) {
2252
- var m = typeof i == "number" ? Y(i) : g(i(d, f)), b = v(c, function() {
2253
- b.unsubscribe(), y();
2254
- }, function() {
2255
- c.complete();
2256
- });
2257
- m.subscribe(b);
2258
- } else
2259
- y();
2260
- } else
2261
- c.error(d);
2262
- })), h && (l.unsubscribe(), l = null, s());
2263
- };
2264
- s();
2265
- });
2266
- }
2267
- function kr(n) {
2268
- return p(function(t, e) {
2269
- var r, i = !1, o, u = function() {
2270
- r = t.subscribe(v(e, void 0, void 0, function(a) {
2271
- o || (o = new j(), g(n(o)).subscribe(v(e, function() {
2272
- return r ? u() : i = !0;
2273
- }))), o && o.next(a);
2274
- })), i && (r.unsubscribe(), r = null, i = !1, u());
2275
- };
2276
- u();
2277
- });
2278
- }
2279
- function Ie(n) {
2280
- return p(function(t, e) {
2281
- var r = !1, i = null;
2282
- t.subscribe(v(e, function(o) {
2283
- r = !0, i = o;
2284
- })), g(n).subscribe(v(e, function() {
2285
- if (r) {
2286
- r = !1;
2287
- var o = i;
2288
- i = null, e.next(o);
2289
- }
2290
- }, T));
2291
- });
2292
- }
2293
- function Ae(n, t) {
2294
- return n === void 0 && (n = 0), t === void 0 && (t = W), n < 0 && (n = 0), Y(n, n, t);
2295
- }
2296
- function Cr(n, t) {
2297
- return t === void 0 && (t = W), Ie(Ae(n, t));
2298
- }
2299
- function Pr(n, t) {
2300
- return p(Hn(n, t, arguments.length >= 2, !0));
2301
- }
2302
- function Rr(n, t) {
2303
- return t === void 0 && (t = function(e, r) {
2304
- return e === r;
2305
- }), p(function(e, r) {
2306
- var i = kn(), o = kn(), u = function(c) {
2307
- r.next(c), r.complete();
2308
- }, a = function(c, f) {
2309
- var l = v(r, function(s) {
2310
- var h = f.buffer, d = f.complete;
2311
- h.length === 0 ? d ? u(!1) : c.buffer.push(s) : !t(s, h.shift()) && u(!1);
2312
- }, function() {
2313
- c.complete = !0;
2314
- var s = f.complete, h = f.buffer;
2315
- s && u(h.length === 0), l?.unsubscribe();
2316
- });
2317
- return l;
2318
- };
2319
- e.subscribe(a(i, o)), g(n).subscribe(a(o, i));
2320
- });
2321
- }
2322
- function kn() {
2323
- return {
2324
- buffer: [],
2325
- complete: !1
2326
- };
2327
- }
2328
- function Te(n) {
2329
- n === void 0 && (n = {});
2330
- var t = n.connector, e = t === void 0 ? function() {
2331
- return new j();
2332
- } : t, r = n.resetOnError, i = r === void 0 ? !0 : r, o = n.resetOnComplete, u = o === void 0 ? !0 : o, a = n.resetOnRefCountZero, c = a === void 0 ? !0 : a;
2333
- return function(f) {
2334
- var l, s, h, d = 0, y = !1, m = !1, b = function() {
2335
- s?.unsubscribe(), s = void 0;
2336
- }, w = function() {
2337
- b(), l = h = void 0, y = m = !1;
2338
- }, S = function() {
2339
- var k = l;
2340
- w(), k?.unsubscribe();
2341
- };
2342
- return p(function(k, F) {
2343
- d++, !m && !y && b();
2344
- var L = h = h ?? e();
2345
- F.add(function() {
2346
- d--, d === 0 && !m && !y && (s = fn(S, c));
2347
- }), L.subscribe(F), !l && d > 0 && (l = new K({
2348
- next: function(M) {
2349
- return L.next(M);
2350
- },
2351
- error: function(M) {
2352
- m = !0, b(), s = fn(w, i, M), L.error(M);
2353
- },
2354
- complete: function() {
2355
- y = !0, b(), s = fn(w, u), L.complete();
2356
- }
2357
- }), g(k).subscribe(l));
2358
- })(f);
2359
- };
2360
- }
2361
- function fn(n, t) {
2362
- for (var e = [], r = 2; r < arguments.length; r++)
2363
- e[r - 2] = arguments[r];
2364
- if (t === !0) {
2365
- n();
2366
- return;
2367
- }
2368
- if (t !== !1) {
2369
- var i = new K({
2370
- next: function() {
2371
- i.unsubscribe(), n();
2372
- }
2373
- });
2374
- return g(t.apply(void 0, I([], E(e)))).subscribe(i);
2375
- }
2376
- }
2377
- function Vr(n, t, e) {
2378
- var r, i, o, u, a = !1;
2379
- return n && typeof n == "object" ? (r = n.bufferSize, u = r === void 0 ? 1 / 0 : r, i = n.windowTime, t = i === void 0 ? 1 / 0 : i, o = n.refCount, a = o === void 0 ? !1 : o, e = n.scheduler) : u = n ?? 1 / 0, Te({
2380
- connector: function() {
2381
- return new st(u, t, e);
2382
- },
2383
- resetOnError: !0,
2384
- resetOnComplete: !1,
2385
- resetOnRefCountZero: a
2386
- });
2387
- }
2388
- var je = q(function(n) {
2389
- return function(e) {
2390
- n(this), this.name = "SequenceError", this.message = e;
2391
- };
2392
- }), Oe = q(function(n) {
2393
- return function(e) {
2394
- n(this), this.name = "NotFoundError", this.message = e;
2395
- };
2396
- });
2397
- function Wr(n) {
2398
- return p(function(t, e) {
2399
- var r = !1, i, o = !1, u = 0;
2400
- t.subscribe(v(e, function(a) {
2401
- o = !0, (!n || n(a, u++, t)) && (r && e.error(new je("Too many matching values")), r = !0, i = a);
2402
- }, function() {
2403
- r ? (e.next(i), e.complete()) : e.error(o ? new Oe("No matching values") : new on());
2404
- }));
2405
- });
2406
- }
2407
- function _r(n) {
2408
- return D(function(t, e) {
2409
- return n <= e;
2410
- });
2411
- }
2412
- function Ur(n) {
2413
- return n <= 0 ? O : p(function(t, e) {
2414
- var r = new Array(n), i = 0;
2415
- return t.subscribe(v(e, function(o) {
2416
- var u = i++;
2417
- if (u < n)
2418
- r[u] = o;
2419
- else {
2420
- var a = u % n, c = r[a];
2421
- r[a] = o, e.next(c);
2422
- }
2423
- })), function() {
2424
- r = null;
2425
- };
2426
- });
2427
- }
2428
- function Fr(n) {
2429
- return p(function(t, e) {
2430
- var r = !1, i = v(e, function() {
2431
- i?.unsubscribe(), r = !0;
2432
- }, T);
2433
- g(n).subscribe(i), t.subscribe(v(e, function(o) {
2434
- return r && e.next(o);
2435
- }));
2436
- });
2437
- }
2438
- function Nr(n) {
2439
- return p(function(t, e) {
2440
- var r = !1, i = 0;
2441
- t.subscribe(v(e, function(o) {
2442
- return (r || (r = !n(o, i++))) && e.next(o);
2443
- }));
2444
- });
2445
- }
2446
- function Lr() {
2447
- for (var n = [], t = 0; t < arguments.length; t++)
2448
- n[t] = arguments[t];
2449
- var e = N(n);
2450
- return p(function(r, i) {
2451
- (e ? Q(n, r, e) : Q(n, r)).subscribe(i);
2452
- });
2453
- }
2454
- function nn(n, t) {
2455
- return p(function(e, r) {
2456
- var i = null, o = 0, u = !1, a = function() {
2457
- return u && !i && r.complete();
2458
- };
2459
- e.subscribe(v(r, function(c) {
2460
- i?.unsubscribe();
2461
- var f = 0, l = o++;
2462
- g(n(c, l)).subscribe(i = v(r, function(s) {
2463
- return r.next(t ? t(c, s, l, f++) : s);
2464
- }, function() {
2465
- i = null, a();
2466
- }));
2467
- }, function() {
2468
- u = !0, a();
2469
- }));
2470
- });
2471
- }
2472
- function Mr() {
2473
- return nn(O);
2474
- }
2475
- function qr(n, t) {
2476
- return x(t) ? nn(function() {
2477
- return n;
2478
- }, t) : nn(function() {
2479
- return n;
2480
- });
2481
- }
2482
- function $r(n, t) {
2483
- return p(function(e, r) {
2484
- var i = t;
2485
- return nn(function(o, u) {
2486
- return n(i, o, u);
2487
- }, function(o, u) {
2488
- return i = u, u;
2489
- })(e).subscribe(r), function() {
2490
- i = null;
2491
- };
2492
- });
2493
- }
2494
- function Dr(n) {
2495
- return p(function(t, e) {
2496
- g(n).subscribe(v(e, function() {
2497
- return e.complete();
2498
- }, T)), !e.closed && t.subscribe(e);
2499
- });
2500
- }
2501
- function Yr(n, t) {
2502
- return t === void 0 && (t = !1), p(function(e, r) {
2503
- var i = 0;
2504
- e.subscribe(v(r, function(o) {
2505
- var u = n(o, i++);
2506
- (u || t) && r.next(o), !u && r.complete();
2507
- }));
2508
- });
2509
- }
2510
- function Gr(n, t, e) {
2511
- var r = x(n) || t || e ? { next: n, error: t, complete: e } : n;
2512
- return r ? p(function(i, o) {
2513
- var u;
2514
- (u = r.subscribe) === null || u === void 0 || u.call(r);
2515
- var a = !0;
2516
- i.subscribe(v(o, function(c) {
2517
- var f;
2518
- (f = r.next) === null || f === void 0 || f.call(r, c), o.next(c);
2519
- }, function() {
2520
- var c;
2521
- a = !1, (c = r.complete) === null || c === void 0 || c.call(r), o.complete();
2522
- }, function(c) {
2523
- var f;
2524
- a = !1, (f = r.error) === null || f === void 0 || f.call(r, c), o.error(c);
2525
- }, function() {
2526
- var c, f;
2527
- a && ((c = r.unsubscribe) === null || c === void 0 || c.call(r)), (f = r.finalize) === null || f === void 0 || f.call(r);
2528
- }));
2529
- }) : O;
2530
- }
2531
- function ke(n, t) {
2532
- return p(function(e, r) {
2533
- var i = t ?? {}, o = i.leading, u = o === void 0 ? !0 : o, a = i.trailing, c = a === void 0 ? !1 : a, f = !1, l = null, s = null, h = !1, d = function() {
2534
- s?.unsubscribe(), s = null, c && (b(), h && r.complete());
2535
- }, y = function() {
2536
- s = null, h && r.complete();
2537
- }, m = function(w) {
2538
- return s = g(n(w)).subscribe(v(r, d, y));
2539
- }, b = function() {
2540
- if (f) {
2541
- f = !1;
2542
- var w = l;
2543
- l = null, r.next(w), !h && m(w);
2544
- }
2545
- };
2546
- e.subscribe(v(r, function(w) {
2547
- f = !0, l = w, !(s && !s.closed) && (u ? b() : m(w));
2548
- }, function() {
2549
- h = !0, !(c && f && s && !s.closed) && r.complete();
2550
- }));
2551
- });
2552
- }
2553
- function zr(n, t, e) {
2554
- t === void 0 && (t = W);
2555
- var r = Y(n, t);
2556
- return ke(function() {
2557
- return r;
2558
- }, e);
2559
- }
2560
- function Kr(n) {
2561
- return n === void 0 && (n = W), p(function(t, e) {
2562
- var r = n.now();
2563
- t.subscribe(v(e, function(i) {
2564
- var o = n.now(), u = o - r;
2565
- r = o, e.next(new Ce(i, u));
2566
- }));
2567
- });
2568
- }
2569
- var Ce = /* @__PURE__ */ (function() {
2570
- function n(t, e) {
2571
- this.value = t, this.interval = e;
2572
- }
2573
- return n;
2574
- })(), Pe = q(function(n) {
2575
- return function(e) {
2576
- e === void 0 && (e = null), n(this), this.message = "Timeout has occurred", this.name = "TimeoutError", this.info = e;
2577
- };
2578
- });
2579
- function Re(n, t) {
2580
- var e = hn(n) ? { first: n } : typeof n == "number" ? { each: n } : n, r = e.first, i = e.each, o = e.with, u = o === void 0 ? Ve : o, a = e.scheduler, c = a === void 0 ? t ?? W : a, f = e.meta, l = f === void 0 ? null : f;
2581
- if (r == null && i == null)
2582
- throw new TypeError("No timeout provided.");
2583
- return p(function(s, h) {
2584
- var d, y, m = null, b = 0, w = function(S) {
2585
- y = P(h, c, function() {
2586
- try {
2587
- d.unsubscribe(), g(u({
2588
- meta: l,
2589
- lastValue: m,
2590
- seen: b
2591
- })).subscribe(h);
2592
- } catch (k) {
2593
- h.error(k);
2594
- }
2595
- }, S);
2596
- };
2597
- d = s.subscribe(v(h, function(S) {
2598
- y?.unsubscribe(), b++, h.next(m = S), i > 0 && w(i);
2599
- }, void 0, void 0, function() {
2600
- y?.closed || y?.unsubscribe(), m = null;
2601
- })), !b && w(r != null ? typeof r == "number" ? r : +r - c.now() : i);
2602
- });
2603
- }
2604
- function Ve(n) {
2605
- throw new Pe(n);
2606
- }
2607
- function Zr(n, t, e) {
2608
- var r, i, o;
2609
- if (e = e ?? Kn, hn(n) ? r = n : typeof n == "number" && (i = n), t)
2610
- o = function() {
2611
- return t;
2612
- };
2613
- else
2614
- throw new TypeError("No observable provided to switch to");
2615
- if (r == null && i == null)
2616
- throw new TypeError("No timeout provided.");
2617
- return Re({
2618
- first: r,
2619
- each: i,
2620
- scheduler: e,
2621
- with: o
2622
- });
2623
- }
2624
- function Jr(n) {
2625
- return n === void 0 && (n = tn), z(function(t) {
2626
- return { value: t, timestamp: n.now() };
2627
- });
2628
- }
2629
- function Xr(n) {
2630
- return p(function(t, e) {
2631
- var r = new j();
2632
- e.next(r.asObservable());
2633
- var i = function(o) {
2634
- r.error(o), e.error(o);
2635
- };
2636
- return t.subscribe(v(e, function(o) {
2637
- return r?.next(o);
2638
- }, function() {
2639
- r.complete(), e.complete();
2640
- }, i)), g(n).subscribe(v(e, function() {
2641
- r.complete(), e.next(r = new j());
2642
- }, T, i)), function() {
2643
- r?.unsubscribe(), r = null;
2644
- };
2645
- });
2646
- }
2647
- function Br(n, t) {
2648
- t === void 0 && (t = 0);
2649
- var e = t > 0 ? t : n;
2650
- return p(function(r, i) {
2651
- var o = [new j()], u = [], a = 0;
2652
- i.next(o[0].asObservable()), r.subscribe(v(i, function(c) {
2653
- var f, l;
2654
- try {
2655
- for (var s = C(o), h = s.next(); !h.done; h = s.next()) {
2656
- var d = h.value;
2657
- d.next(c);
2658
- }
2659
- } catch (b) {
2660
- f = { error: b };
2661
- } finally {
2662
- try {
2663
- h && !h.done && (l = s.return) && l.call(s);
2664
- } finally {
2665
- if (f) throw f.error;
2666
- }
2667
- }
2668
- var y = a - n + 1;
2669
- if (y >= 0 && y % e === 0 && o.shift().complete(), ++a % e === 0) {
2670
- var m = new j();
2671
- o.push(m), i.next(m.asObservable());
2672
- }
2673
- }, function() {
2674
- for (; o.length > 0; )
2675
- o.shift().complete();
2676
- i.complete();
2677
- }, function(c) {
2678
- for (; o.length > 0; )
2679
- o.shift().error(c);
2680
- i.error(c);
2681
- }, function() {
2682
- u = null, o = null;
2683
- }));
2684
- });
2685
- }
2686
- function Qr(n) {
2687
- for (var t, e, r = [], i = 1; i < arguments.length; i++)
2688
- r[i - 1] = arguments[i];
2689
- var o = (t = N(r)) !== null && t !== void 0 ? t : W, u = (e = r[0]) !== null && e !== void 0 ? e : null, a = r[1] || 1 / 0;
2690
- return p(function(c, f) {
2691
- var l = [], s = !1, h = function(b) {
2692
- var w = b.window, S = b.subs;
2693
- w.complete(), S.unsubscribe(), _(l, b), s && d();
2694
- }, d = function() {
2695
- if (l) {
2696
- var b = new V();
2697
- f.add(b);
2698
- var w = new j(), S = {
2699
- window: w,
2700
- subs: b,
2701
- seen: 0
2702
- };
2703
- l.push(S), f.next(w.asObservable()), P(b, o, function() {
2704
- return h(S);
2705
- }, n);
2706
- }
2707
- };
2708
- u !== null && u >= 0 ? P(f, o, d, u, !0) : s = !0, d();
2709
- var y = function(b) {
2710
- return l.slice().forEach(b);
2711
- }, m = function(b) {
2712
- y(function(w) {
2713
- var S = w.window;
2714
- return b(S);
2715
- }), b(f), f.unsubscribe();
2716
- };
2717
- return c.subscribe(v(f, function(b) {
2718
- y(function(w) {
2719
- w.window.next(b), a <= ++w.seen && h(w);
2720
- });
2721
- }, function() {
2722
- return m(function(b) {
2723
- return b.complete();
2724
- });
2725
- }, function(b) {
2726
- return m(function(w) {
2727
- return w.error(b);
2728
- });
2729
- })), function() {
2730
- l = null;
2731
- };
2732
- });
2733
- }
2734
- function Hr(n, t) {
2735
- return p(function(e, r) {
2736
- var i = [], o = function(u) {
2737
- for (; 0 < i.length; )
2738
- i.shift().error(u);
2739
- r.error(u);
2740
- };
2741
- g(n).subscribe(v(r, function(u) {
2742
- var a = new j();
2743
- i.push(a);
2744
- var c = new V(), f = function() {
2745
- _(i, a), a.complete(), c.unsubscribe();
2746
- }, l;
2747
- try {
2748
- l = g(t(u));
2749
- } catch (s) {
2750
- o(s);
2751
- return;
2752
- }
2753
- r.next(a.asObservable()), c.add(l.subscribe(v(r, f, T, o)));
2754
- }, T)), e.subscribe(v(r, function(u) {
2755
- var a, c, f = i.slice();
2756
- try {
2757
- for (var l = C(f), s = l.next(); !s.done; s = l.next()) {
2758
- var h = s.value;
2759
- h.next(u);
2760
- }
2761
- } catch (d) {
2762
- a = { error: d };
2763
- } finally {
2764
- try {
2765
- s && !s.done && (c = l.return) && c.call(l);
2766
- } finally {
2767
- if (a) throw a.error;
2768
- }
2769
- }
2770
- }, function() {
2771
- for (; 0 < i.length; )
2772
- i.shift().complete();
2773
- r.complete();
2774
- }, o, function() {
2775
- for (; 0 < i.length; )
2776
- i.shift().unsubscribe();
2777
- }));
2778
- });
2779
- }
2780
- function ni(n) {
2781
- return p(function(t, e) {
2782
- var r, i, o = function(a) {
2783
- r.error(a), e.error(a);
2784
- }, u = function() {
2785
- i?.unsubscribe(), r?.complete(), r = new j(), e.next(r.asObservable());
2786
- var a;
2787
- try {
2788
- a = g(n());
2789
- } catch (c) {
2790
- o(c);
2791
- return;
2792
- }
2793
- a.subscribe(i = v(e, u, u, o));
2794
- };
2795
- u(), t.subscribe(v(e, function(a) {
2796
- return r.next(a);
2797
- }, function() {
2798
- r.complete(), e.complete();
2799
- }, o, function() {
2800
- i?.unsubscribe(), r = null;
2801
- }));
2802
- });
2803
- }
2804
- function ti() {
2805
- for (var n = [], t = 0; t < arguments.length; t++)
2806
- n[t] = arguments[t];
2807
- var e = en(n);
2808
- return p(function(r, i) {
2809
- for (var o = n.length, u = new Array(o), a = n.map(function() {
2810
- return !1;
2811
- }), c = !1, f = function(s) {
2812
- g(n[s]).subscribe(v(i, function(h) {
2813
- u[s] = h, !c && !a[s] && (a[s] = !0, (c = a.every(O)) && (a = null));
2814
- }, T));
2815
- }, l = 0; l < o; l++)
2816
- f(l);
2817
- r.subscribe(v(i, function(s) {
2818
- if (c) {
2819
- var h = I([s], E(u));
2820
- i.next(e ? e.apply(void 0, I([], E(h))) : h);
2821
- }
2822
- }));
2823
- });
2824
- }
2825
- function vt() {
2826
- for (var n = [], t = 0; t < arguments.length; t++)
2827
- n[t] = arguments[t];
2828
- var e = en(n), r = Z(n);
2829
- return r.length ? new A(function(i) {
2830
- var o = r.map(function() {
2831
- return [];
2832
- }), u = r.map(function() {
2833
- return !1;
2834
- });
2835
- i.add(function() {
2836
- o = u = null;
2837
- });
2838
- for (var a = function(f) {
2839
- g(r[f]).subscribe(v(i, function(l) {
2840
- if (o[f].push(l), o.every(function(h) {
2841
- return h.length;
2842
- })) {
2843
- var s = o.map(function(h) {
2844
- return h.shift();
2845
- });
2846
- i.next(e ? e.apply(void 0, I([], E(s))) : s), o.some(function(h, d) {
2847
- return !h.length && u[d];
2848
- }) && i.complete();
2849
- }
2850
- }, function() {
2851
- u[f] = !0, !o[f].length && i.complete();
2852
- }));
2853
- }, c = 0; !i.closed && c < r.length; c++)
2854
- a(c);
2855
- return function() {
2856
- o = u = null;
2857
- };
2858
- }) : J;
2859
- }
2860
- function We() {
2861
- for (var n = [], t = 0; t < arguments.length; t++)
2862
- n[t] = arguments[t];
2863
- return p(function(e, r) {
2864
- vt.apply(void 0, I([e], E(n))).subscribe(r);
2865
- });
2866
- }
2867
- function ei(n) {
2868
- return nt(vt, n);
2869
- }
2870
- function ri() {
2871
- for (var n = [], t = 0; t < arguments.length; t++)
2872
- n[t] = arguments[t];
2873
- return We.apply(void 0, I([], E(n)));
2874
- }
2875
- export {
2876
- Pt as audit,
2877
- _e as auditTime,
2878
- Ue as buffer,
2879
- Fe as bufferCount,
2880
- Ne as bufferTime,
2881
- Le as bufferToggle,
2882
- Me as bufferWhen,
2883
- Ut as catchError,
2884
- qe as combineAll,
2885
- tt as combineLatest,
2886
- te as combineLatestAll,
2887
- $e as combineLatestWith,
2888
- re as concat,
2889
- rt as concatAll,
2890
- An as concatMap,
2891
- De as concatMapTo,
2892
- Ye as concatWith,
2893
- it as connect,
2894
- Ge as count,
2895
- ze as debounce,
2896
- Ke as debounceTime,
2897
- mn as defaultIfEmpty,
2898
- Ze as delay,
2899
- ot as delayWhen,
2900
- Je as dematerialize,
2901
- Xe as distinct,
2902
- le as distinctUntilChanged,
2903
- Be as distinctUntilKeyChanged,
2904
- Qe as elementAt,
2905
- He as endWith,
2906
- nr as every,
2907
- tr as exhaust,
2908
- he as exhaustAll,
2909
- ft as exhaustMap,
2910
- er as expand,
2911
- D as filter,
2912
- rr as finalize,
2913
- ir as find,
2914
- or as findIndex,
2915
- ur as first,
2916
- vr as flatMap,
2917
- ar as groupBy,
2918
- ae as ignoreElements,
2919
- fr as isEmpty,
2920
- cr as last,
2921
- z as map,
2922
- fe as mapTo,
2923
- lr as materialize,
2924
- sr as max,
2925
- pe as merge,
2926
- et as mergeAll,
2927
- U as mergeMap,
2928
- hr as mergeMapTo,
2929
- dr as mergeScan,
2930
- pr as mergeWith,
2931
- yr as min,
2932
- lt as multicast,
2933
- Jn as observeOn,
2934
- mr as onErrorResumeNext,
2935
- br as pairwise,
2936
- wr as partition,
2937
- gr as pluck,
2938
- xr as publish,
2939
- Sr as publishBehavior,
2940
- Er as publishLast,
2941
- Ir as publishReplay,
2942
- Ar as race,
2943
- Ee as raceWith,
2944
- rn as reduce,
2945
- ye as refCount,
2946
- Tr as repeat,
2947
- jr as repeatWhen,
2948
- Or as retry,
2949
- kr as retryWhen,
2950
- Ie as sample,
2951
- Cr as sampleTime,
2952
- Pr as scan,
2953
- Rr as sequenceEqual,
2954
- Te as share,
2955
- Vr as shareReplay,
2956
- Wr as single,
2957
- _r as skip,
2958
- Ur as skipLast,
2959
- Fr as skipUntil,
2960
- Nr as skipWhile,
2961
- Lr as startWith,
2962
- Xn as subscribeOn,
2963
- Mr as switchAll,
2964
- nn as switchMap,
2965
- qr as switchMapTo,
2966
- $r as switchScan,
2967
- H as take,
2968
- de as takeLast,
2969
- Dr as takeUntil,
2970
- Yr as takeWhile,
2971
- Gr as tap,
2972
- ke as throttle,
2973
- zr as throttleTime,
2974
- bn as throwIfEmpty,
2975
- Kr as timeInterval,
2976
- Re as timeout,
2977
- Zr as timeoutWith,
2978
- Jr as timestamp,
2979
- ne as toArray,
2980
- Xr as window,
2981
- Br as windowCount,
2982
- Qr as windowTime,
2983
- Hr as windowToggle,
2984
- ni as windowWhen,
2985
- ti as withLatestFrom,
2986
- We as zip,
2987
- ei as zipAll,
2988
- ri as zipWith
2989
- };