@arcote.tech/arc 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
2
  var __getProtoOf = Object.getPrototypeOf;
3
+ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __toESM = (mod, isNodeMode, target) => {
@@ -18,9 +18,9 @@ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports,
18
18
 
19
19
  // ../../node_modules/rxjs/dist/cjs/internal/util/isFunction.js
20
20
  var require_isFunction = __commonJS((exports) => {
21
- var isFunction = function(value) {
21
+ function isFunction(value) {
22
22
  return typeof value === "function";
23
- };
23
+ }
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.isFunction = undefined;
26
26
  exports.isFunction = isFunction;
@@ -28,7 +28,7 @@ var require_isFunction = __commonJS((exports) => {
28
28
 
29
29
  // ../../node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js
30
30
  var require_createErrorClass = __commonJS((exports) => {
31
- var createErrorClass = function(createImpl) {
31
+ function createErrorClass(createImpl) {
32
32
  var _super = function(instance) {
33
33
  Error.call(instance);
34
34
  instance.stack = new Error().stack;
@@ -37,7 +37,7 @@ var require_createErrorClass = __commonJS((exports) => {
37
37
  ctorFunc.prototype = Object.create(Error.prototype);
38
38
  ctorFunc.prototype.constructor = ctorFunc;
39
39
  return ctorFunc;
40
- };
40
+ }
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
42
  exports.createErrorClass = undefined;
43
43
  exports.createErrorClass = createErrorClass;
@@ -62,12 +62,12 @@ var require_UnsubscriptionError = __commonJS((exports) => {
62
62
 
63
63
  // ../../node_modules/rxjs/dist/cjs/internal/util/arrRemove.js
64
64
  var require_arrRemove = __commonJS((exports) => {
65
- var arrRemove = function(arr, item) {
65
+ function arrRemove(arr, item) {
66
66
  if (arr) {
67
67
  var index = arr.indexOf(item);
68
68
  0 <= index && arr.splice(index, 1);
69
69
  }
70
- };
70
+ }
71
71
  Object.defineProperty(exports, "__esModule", { value: true });
72
72
  exports.arrRemove = undefined;
73
73
  exports.arrRemove = arrRemove;
@@ -75,16 +75,16 @@ var require_arrRemove = __commonJS((exports) => {
75
75
 
76
76
  // ../../node_modules/rxjs/dist/cjs/internal/Subscription.js
77
77
  var require_Subscription = __commonJS((exports) => {
78
- var isSubscription = function(value) {
78
+ function isSubscription(value) {
79
79
  return value instanceof Subscription || value && "closed" in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe);
80
- };
81
- var execFinalizer = function(finalizer) {
80
+ }
81
+ function execFinalizer(finalizer) {
82
82
  if (isFunction_1.isFunction(finalizer)) {
83
83
  finalizer();
84
84
  } else {
85
85
  finalizer.unsubscribe();
86
86
  }
87
- };
87
+ }
88
88
  var __values = exports && exports.__values || function(o) {
89
89
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
90
90
  if (m)
@@ -324,7 +324,7 @@ var require_timeoutProvider = __commonJS((exports) => {
324
324
 
325
325
  // ../../node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js
326
326
  var require_reportUnhandledError = __commonJS((exports) => {
327
- var reportUnhandledError = function(err) {
327
+ function reportUnhandledError(err) {
328
328
  timeoutProvider_1.timeoutProvider.setTimeout(function() {
329
329
  var onUnhandledError = config_1.config.onUnhandledError;
330
330
  if (onUnhandledError) {
@@ -333,7 +333,7 @@ var require_reportUnhandledError = __commonJS((exports) => {
333
333
  throw err;
334
334
  }
335
335
  });
336
- };
336
+ }
337
337
  Object.defineProperty(exports, "__esModule", { value: true });
338
338
  exports.reportUnhandledError = undefined;
339
339
  var config_1 = require_config();
@@ -343,8 +343,8 @@ var require_reportUnhandledError = __commonJS((exports) => {
343
343
 
344
344
  // ../../node_modules/rxjs/dist/cjs/internal/util/noop.js
345
345
  var require_noop = __commonJS((exports) => {
346
- var noop = function() {
347
- };
346
+ function noop() {
347
+ }
348
348
  Object.defineProperty(exports, "__esModule", { value: true });
349
349
  exports.noop = undefined;
350
350
  exports.noop = noop;
@@ -352,19 +352,19 @@ var require_noop = __commonJS((exports) => {
352
352
 
353
353
  // ../../node_modules/rxjs/dist/cjs/internal/NotificationFactories.js
354
354
  var require_NotificationFactories = __commonJS((exports) => {
355
- var errorNotification = function(error) {
355
+ function errorNotification(error) {
356
356
  return createNotification("E", undefined, error);
357
- };
358
- var nextNotification = function(value) {
357
+ }
358
+ function nextNotification(value) {
359
359
  return createNotification("N", value, undefined);
360
- };
361
- var createNotification = function(kind, value, error) {
360
+ }
361
+ function createNotification(kind, value, error) {
362
362
  return {
363
363
  kind,
364
364
  value,
365
365
  error
366
366
  };
367
- };
367
+ }
368
368
  Object.defineProperty(exports, "__esModule", { value: true });
369
369
  exports.createNotification = exports.nextNotification = exports.errorNotification = exports.COMPLETE_NOTIFICATION = undefined;
370
370
  exports.COMPLETE_NOTIFICATION = function() {
@@ -377,7 +377,7 @@ var require_NotificationFactories = __commonJS((exports) => {
377
377
 
378
378
  // ../../node_modules/rxjs/dist/cjs/internal/util/errorContext.js
379
379
  var require_errorContext = __commonJS((exports) => {
380
- var errorContext = function(cb) {
380
+ function errorContext(cb) {
381
381
  if (config_1.config.useDeprecatedSynchronousErrorHandling) {
382
382
  var isRoot = !context;
383
383
  if (isRoot) {
@@ -394,13 +394,13 @@ var require_errorContext = __commonJS((exports) => {
394
394
  } else {
395
395
  cb();
396
396
  }
397
- };
398
- var captureError = function(err) {
397
+ }
398
+ function captureError(err) {
399
399
  if (config_1.config.useDeprecatedSynchronousErrorHandling && context) {
400
400
  context.errorThrown = true;
401
401
  context.error = err;
402
402
  }
403
- };
403
+ }
404
404
  Object.defineProperty(exports, "__esModule", { value: true });
405
405
  exports.captureError = exports.errorContext = undefined;
406
406
  var config_1 = require_config();
@@ -411,25 +411,25 @@ var require_errorContext = __commonJS((exports) => {
411
411
 
412
412
  // ../../node_modules/rxjs/dist/cjs/internal/Subscriber.js
413
413
  var require_Subscriber = __commonJS((exports) => {
414
- var bind = function(fn, thisArg) {
414
+ function bind(fn, thisArg) {
415
415
  return _bind.call(fn, thisArg);
416
- };
417
- var handleUnhandledError = function(error) {
416
+ }
417
+ function handleUnhandledError(error) {
418
418
  if (config_1.config.useDeprecatedSynchronousErrorHandling) {
419
419
  errorContext_1.captureError(error);
420
420
  } else {
421
421
  reportUnhandledError_1.reportUnhandledError(error);
422
422
  }
423
- };
424
- var defaultErrorHandler = function(err) {
423
+ }
424
+ function defaultErrorHandler(err) {
425
425
  throw err;
426
- };
427
- var handleStoppedNotification = function(notification, subscriber) {
426
+ }
427
+ function handleStoppedNotification(notification, subscriber) {
428
428
  var onStoppedNotification = config_1.config.onStoppedNotification;
429
429
  onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function() {
430
430
  return onStoppedNotification(notification, subscriber);
431
431
  });
432
- };
432
+ }
433
433
  var __extends = exports && exports.__extends || function() {
434
434
  var extendStatics = function(d, b) {
435
435
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -620,9 +620,9 @@ var require_observable = __commonJS((exports) => {
620
620
 
621
621
  // ../../node_modules/rxjs/dist/cjs/internal/util/identity.js
622
622
  var require_identity = __commonJS((exports) => {
623
- var identity = function(x) {
623
+ function identity(x) {
624
624
  return x;
625
- };
625
+ }
626
626
  Object.defineProperty(exports, "__esModule", { value: true });
627
627
  exports.identity = undefined;
628
628
  exports.identity = identity;
@@ -630,14 +630,14 @@ var require_identity = __commonJS((exports) => {
630
630
 
631
631
  // ../../node_modules/rxjs/dist/cjs/internal/util/pipe.js
632
632
  var require_pipe = __commonJS((exports) => {
633
- var pipe = function() {
633
+ function pipe() {
634
634
  var fns = [];
635
635
  for (var _i = 0;_i < arguments.length; _i++) {
636
636
  fns[_i] = arguments[_i];
637
637
  }
638
638
  return pipeFromArray(fns);
639
- };
640
- var pipeFromArray = function(fns) {
639
+ }
640
+ function pipeFromArray(fns) {
641
641
  if (fns.length === 0) {
642
642
  return identity_1.identity;
643
643
  }
@@ -649,7 +649,7 @@ var require_pipe = __commonJS((exports) => {
649
649
  return fn(prev);
650
650
  }, input);
651
651
  };
652
- };
652
+ }
653
653
  Object.defineProperty(exports, "__esModule", { value: true });
654
654
  exports.pipeFromArray = exports.pipe = undefined;
655
655
  var identity_1 = require_identity();
@@ -659,16 +659,16 @@ var require_pipe = __commonJS((exports) => {
659
659
 
660
660
  // ../../node_modules/rxjs/dist/cjs/internal/Observable.js
661
661
  var require_Observable = __commonJS((exports) => {
662
- var getPromiseCtor = function(promiseCtor) {
662
+ function getPromiseCtor(promiseCtor) {
663
663
  var _a;
664
664
  return (_a = promiseCtor !== null && promiseCtor !== undefined ? promiseCtor : config_1.config.Promise) !== null && _a !== undefined ? _a : Promise;
665
- };
666
- var isObserver = function(value) {
665
+ }
666
+ function isObserver(value) {
667
667
  return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete);
668
- };
669
- var isSubscriber = function(value) {
668
+ }
669
+ function isSubscriber(value) {
670
670
  return value && value instanceof Subscriber_1.Subscriber || isObserver(value) && Subscription_1.isSubscription(value);
671
- };
671
+ }
672
672
  Object.defineProperty(exports, "__esModule", { value: true });
673
673
  exports.Observable = undefined;
674
674
  var Subscriber_1 = require_Subscriber();
@@ -763,10 +763,10 @@ var require_Observable = __commonJS((exports) => {
763
763
 
764
764
  // ../../node_modules/rxjs/dist/cjs/internal/util/lift.js
765
765
  var require_lift = __commonJS((exports) => {
766
- var hasLift = function(source) {
766
+ function hasLift(source) {
767
767
  return isFunction_1.isFunction(source === null || source === undefined ? undefined : source.lift);
768
- };
769
- var operate = function(init) {
768
+ }
769
+ function operate(init) {
770
770
  return function(source) {
771
771
  if (hasLift(source)) {
772
772
  return source.lift(function(liftedSource) {
@@ -779,7 +779,7 @@ var require_lift = __commonJS((exports) => {
779
779
  }
780
780
  throw new TypeError("Unable to lift unknown Observable type");
781
781
  };
782
- };
782
+ }
783
783
  Object.defineProperty(exports, "__esModule", { value: true });
784
784
  exports.operate = exports.hasLift = undefined;
785
785
  var isFunction_1 = require_isFunction();
@@ -789,9 +789,9 @@ var require_lift = __commonJS((exports) => {
789
789
 
790
790
  // ../../node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js
791
791
  var require_OperatorSubscriber = __commonJS((exports) => {
792
- var createOperatorSubscriber = function(destination, onNext, onComplete, onError, onFinalize) {
792
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
793
793
  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
794
- };
794
+ }
795
795
  var __extends = exports && exports.__extends || function() {
796
796
  var extendStatics = function(d, b) {
797
797
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -865,7 +865,7 @@ var require_OperatorSubscriber = __commonJS((exports) => {
865
865
 
866
866
  // ../../node_modules/rxjs/dist/cjs/internal/operators/refCount.js
867
867
  var require_refCount = __commonJS((exports) => {
868
- var refCount = function() {
868
+ function refCount() {
869
869
  return lift_1.operate(function(source, subscriber) {
870
870
  var connection = null;
871
871
  source._refCount++;
@@ -887,7 +887,7 @@ var require_refCount = __commonJS((exports) => {
887
887
  connection = source.connect();
888
888
  }
889
889
  });
890
- };
890
+ }
891
891
  Object.defineProperty(exports, "__esModule", { value: true });
892
892
  exports.refCount = undefined;
893
893
  var lift_1 = require_lift();
@@ -1067,18 +1067,18 @@ var require_animationFrameProvider = __commonJS((exports) => {
1067
1067
 
1068
1068
  // ../../node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js
1069
1069
  var require_animationFrames = __commonJS((exports) => {
1070
- var animationFrames = function(timestampProvider) {
1070
+ function animationFrames(timestampProvider) {
1071
1071
  return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES;
1072
- };
1073
- var animationFramesFactory = function(timestampProvider) {
1072
+ }
1073
+ function animationFramesFactory(timestampProvider) {
1074
1074
  return new Observable_1.Observable(function(subscriber) {
1075
1075
  var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
1076
1076
  var start = provider.now();
1077
- var id2 = 0;
1077
+ var id = 0;
1078
1078
  var run = function() {
1079
1079
  if (!subscriber.closed) {
1080
- id2 = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) {
1081
- id2 = 0;
1080
+ id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) {
1081
+ id = 0;
1082
1082
  var now = provider.now();
1083
1083
  subscriber.next({
1084
1084
  timestamp: timestampProvider ? now : timestamp,
@@ -1090,12 +1090,12 @@ var require_animationFrames = __commonJS((exports) => {
1090
1090
  };
1091
1091
  run();
1092
1092
  return function() {
1093
- if (id2) {
1094
- animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id2);
1093
+ if (id) {
1094
+ animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
1095
1095
  }
1096
1096
  };
1097
1097
  });
1098
- };
1098
+ }
1099
1099
  Object.defineProperty(exports, "__esModule", { value: true });
1100
1100
  exports.animationFrames = undefined;
1101
1101
  var Observable_1 = require_Observable();
@@ -1685,10 +1685,10 @@ var require_AsyncAction = __commonJS((exports) => {
1685
1685
  return this;
1686
1686
  }
1687
1687
  this.state = state;
1688
- var id2 = this.id;
1688
+ var id = this.id;
1689
1689
  var scheduler = this.scheduler;
1690
- if (id2 != null) {
1691
- this.id = this.recycleAsyncId(scheduler, id2, delay);
1690
+ if (id != null) {
1691
+ this.id = this.recycleAsyncId(scheduler, id, delay);
1692
1692
  }
1693
1693
  this.pending = true;
1694
1694
  this.delay = delay;
@@ -1701,15 +1701,15 @@ var require_AsyncAction = __commonJS((exports) => {
1701
1701
  }
1702
1702
  return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
1703
1703
  };
1704
- AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id2, delay) {
1704
+ AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id, delay) {
1705
1705
  if (delay === undefined) {
1706
1706
  delay = 0;
1707
1707
  }
1708
1708
  if (delay != null && this.delay === delay && this.pending === false) {
1709
- return id2;
1709
+ return id;
1710
1710
  }
1711
- if (id2 != null) {
1712
- intervalProvider_1.intervalProvider.clearInterval(id2);
1711
+ if (id != null) {
1712
+ intervalProvider_1.intervalProvider.clearInterval(id);
1713
1713
  }
1714
1714
  return;
1715
1715
  };
@@ -1741,13 +1741,13 @@ var require_AsyncAction = __commonJS((exports) => {
1741
1741
  };
1742
1742
  AsyncAction2.prototype.unsubscribe = function() {
1743
1743
  if (!this.closed) {
1744
- var _a = this, id2 = _a.id, scheduler = _a.scheduler;
1744
+ var _a = this, id = _a.id, scheduler = _a.scheduler;
1745
1745
  var actions = scheduler.actions;
1746
1746
  this.work = this.state = this.scheduler = null;
1747
1747
  this.pending = false;
1748
1748
  arrRemove_1.arrRemove(actions, this);
1749
- if (id2 != null) {
1750
- this.id = this.recycleAsyncId(scheduler, id2, null);
1749
+ if (id != null) {
1750
+ this.id = this.recycleAsyncId(scheduler, id, null);
1751
1751
  }
1752
1752
  this.delay = null;
1753
1753
  _super.prototype.unsubscribe.call(this);
@@ -1760,13 +1760,13 @@ var require_AsyncAction = __commonJS((exports) => {
1760
1760
 
1761
1761
  // ../../node_modules/rxjs/dist/cjs/internal/util/Immediate.js
1762
1762
  var require_Immediate = __commonJS((exports) => {
1763
- var findAndClearHandle = function(handle) {
1763
+ function findAndClearHandle(handle) {
1764
1764
  if (handle in activeHandles) {
1765
1765
  delete activeHandles[handle];
1766
1766
  return true;
1767
1767
  }
1768
1768
  return false;
1769
- };
1769
+ }
1770
1770
  Object.defineProperty(exports, "__esModule", { value: true });
1771
1771
  exports.TestTools = exports.Immediate = undefined;
1772
1772
  var nextHandle = 1;
@@ -1880,28 +1880,28 @@ var require_AsapAction = __commonJS((exports) => {
1880
1880
  _this.work = work;
1881
1881
  return _this;
1882
1882
  }
1883
- AsapAction2.prototype.requestAsyncId = function(scheduler, id2, delay) {
1883
+ AsapAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
1884
1884
  if (delay === undefined) {
1885
1885
  delay = 0;
1886
1886
  }
1887
1887
  if (delay !== null && delay > 0) {
1888
- return _super.prototype.requestAsyncId.call(this, scheduler, id2, delay);
1888
+ return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
1889
1889
  }
1890
1890
  scheduler.actions.push(this);
1891
1891
  return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
1892
1892
  };
1893
- AsapAction2.prototype.recycleAsyncId = function(scheduler, id2, delay) {
1893
+ AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
1894
1894
  var _a;
1895
1895
  if (delay === undefined) {
1896
1896
  delay = 0;
1897
1897
  }
1898
1898
  if (delay != null ? delay > 0 : this.delay > 0) {
1899
- return _super.prototype.recycleAsyncId.call(this, scheduler, id2, delay);
1899
+ return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
1900
1900
  }
1901
1901
  var actions = scheduler.actions;
1902
- if (id2 != null && ((_a = actions[actions.length - 1]) === null || _a === undefined ? undefined : _a.id) !== id2) {
1903
- immediateProvider_1.immediateProvider.clearImmediate(id2);
1904
- if (scheduler._scheduled === id2) {
1902
+ if (id != null && ((_a = actions[actions.length - 1]) === null || _a === undefined ? undefined : _a.id) !== id) {
1903
+ immediateProvider_1.immediateProvider.clearImmediate(id);
1904
+ if (scheduler._scheduled === id) {
1905
1905
  scheduler._scheduled = undefined;
1906
1906
  }
1907
1907
  }
@@ -2125,12 +2125,12 @@ var require_QueueAction = __commonJS((exports) => {
2125
2125
  QueueAction2.prototype.execute = function(state, delay) {
2126
2126
  return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
2127
2127
  };
2128
- QueueAction2.prototype.requestAsyncId = function(scheduler, id2, delay) {
2128
+ QueueAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
2129
2129
  if (delay === undefined) {
2130
2130
  delay = 0;
2131
2131
  }
2132
2132
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
2133
- return _super.prototype.requestAsyncId.call(this, scheduler, id2, delay);
2133
+ return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
2134
2134
  }
2135
2135
  scheduler.flush(this);
2136
2136
  return 0;
@@ -2221,29 +2221,29 @@ var require_AnimationFrameAction = __commonJS((exports) => {
2221
2221
  _this.work = work;
2222
2222
  return _this;
2223
2223
  }
2224
- AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id2, delay) {
2224
+ AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
2225
2225
  if (delay === undefined) {
2226
2226
  delay = 0;
2227
2227
  }
2228
2228
  if (delay !== null && delay > 0) {
2229
- return _super.prototype.requestAsyncId.call(this, scheduler, id2, delay);
2229
+ return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
2230
2230
  }
2231
2231
  scheduler.actions.push(this);
2232
2232
  return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function() {
2233
2233
  return scheduler.flush(undefined);
2234
2234
  }));
2235
2235
  };
2236
- AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id2, delay) {
2236
+ AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
2237
2237
  var _a;
2238
2238
  if (delay === undefined) {
2239
2239
  delay = 0;
2240
2240
  }
2241
2241
  if (delay != null ? delay > 0 : this.delay > 0) {
2242
- return _super.prototype.recycleAsyncId.call(this, scheduler, id2, delay);
2242
+ return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
2243
2243
  }
2244
2244
  var actions = scheduler.actions;
2245
- if (id2 != null && ((_a = actions[actions.length - 1]) === null || _a === undefined ? undefined : _a.id) !== id2) {
2246
- animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id2);
2245
+ if (id != null && ((_a = actions[actions.length - 1]) === null || _a === undefined ? undefined : _a.id) !== id) {
2246
+ animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
2247
2247
  scheduler._scheduled = undefined;
2248
2248
  }
2249
2249
  return;
@@ -2416,7 +2416,7 @@ var require_VirtualTimeScheduler = __commonJS((exports) => {
2416
2416
  return Subscription_1.Subscription.EMPTY;
2417
2417
  }
2418
2418
  };
2419
- VirtualAction2.prototype.requestAsyncId = function(scheduler, id2, delay) {
2419
+ VirtualAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
2420
2420
  if (delay === undefined) {
2421
2421
  delay = 0;
2422
2422
  }
@@ -2426,7 +2426,7 @@ var require_VirtualTimeScheduler = __commonJS((exports) => {
2426
2426
  actions.sort(VirtualAction2.sortActions);
2427
2427
  return 1;
2428
2428
  };
2429
- VirtualAction2.prototype.recycleAsyncId = function(scheduler, id2, delay) {
2429
+ VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
2430
2430
  if (delay === undefined) {
2431
2431
  delay = 0;
2432
2432
  }
@@ -2459,16 +2459,16 @@ var require_VirtualTimeScheduler = __commonJS((exports) => {
2459
2459
 
2460
2460
  // ../../node_modules/rxjs/dist/cjs/internal/observable/empty.js
2461
2461
  var require_empty = __commonJS((exports) => {
2462
- var empty = function(scheduler) {
2462
+ function empty(scheduler) {
2463
2463
  return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
2464
- };
2465
- var emptyScheduled = function(scheduler) {
2464
+ }
2465
+ function emptyScheduled(scheduler) {
2466
2466
  return new Observable_1.Observable(function(subscriber) {
2467
2467
  return scheduler.schedule(function() {
2468
2468
  return subscriber.complete();
2469
2469
  });
2470
2470
  });
2471
- };
2471
+ }
2472
2472
  Object.defineProperty(exports, "__esModule", { value: true });
2473
2473
  exports.empty = exports.EMPTY = undefined;
2474
2474
  var Observable_1 = require_Observable();
@@ -2480,9 +2480,9 @@ var require_empty = __commonJS((exports) => {
2480
2480
 
2481
2481
  // ../../node_modules/rxjs/dist/cjs/internal/util/isScheduler.js
2482
2482
  var require_isScheduler = __commonJS((exports) => {
2483
- var isScheduler = function(value) {
2483
+ function isScheduler(value) {
2484
2484
  return value && isFunction_1.isFunction(value.schedule);
2485
- };
2485
+ }
2486
2486
  Object.defineProperty(exports, "__esModule", { value: true });
2487
2487
  exports.isScheduler = undefined;
2488
2488
  var isFunction_1 = require_isFunction();
@@ -2491,18 +2491,18 @@ var require_isScheduler = __commonJS((exports) => {
2491
2491
 
2492
2492
  // ../../node_modules/rxjs/dist/cjs/internal/util/args.js
2493
2493
  var require_args = __commonJS((exports) => {
2494
- var last = function(arr) {
2494
+ function last(arr) {
2495
2495
  return arr[arr.length - 1];
2496
- };
2497
- var popResultSelector = function(args) {
2496
+ }
2497
+ function popResultSelector(args) {
2498
2498
  return isFunction_1.isFunction(last(args)) ? args.pop() : undefined;
2499
- };
2500
- var popScheduler = function(args) {
2499
+ }
2500
+ function popScheduler(args) {
2501
2501
  return isScheduler_1.isScheduler(last(args)) ? args.pop() : undefined;
2502
- };
2503
- var popNumber = function(args, defaultValue) {
2502
+ }
2503
+ function popNumber(args, defaultValue) {
2504
2504
  return typeof last(args) === "number" ? args.pop() : defaultValue;
2505
- };
2505
+ }
2506
2506
  Object.defineProperty(exports, "__esModule", { value: true });
2507
2507
  exports.popNumber = exports.popScheduler = exports.popResultSelector = undefined;
2508
2508
  var isFunction_1 = require_isFunction();
@@ -2523,9 +2523,9 @@ var require_isArrayLike = __commonJS((exports) => {
2523
2523
 
2524
2524
  // ../../node_modules/rxjs/dist/cjs/internal/util/isPromise.js
2525
2525
  var require_isPromise = __commonJS((exports) => {
2526
- var isPromise = function(value) {
2526
+ function isPromise(value) {
2527
2527
  return isFunction_1.isFunction(value === null || value === undefined ? undefined : value.then);
2528
- };
2528
+ }
2529
2529
  Object.defineProperty(exports, "__esModule", { value: true });
2530
2530
  exports.isPromise = undefined;
2531
2531
  var isFunction_1 = require_isFunction();
@@ -2534,9 +2534,9 @@ var require_isPromise = __commonJS((exports) => {
2534
2534
 
2535
2535
  // ../../node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js
2536
2536
  var require_isInteropObservable = __commonJS((exports) => {
2537
- var isInteropObservable = function(input) {
2537
+ function isInteropObservable(input) {
2538
2538
  return isFunction_1.isFunction(input[observable_1.observable]);
2539
- };
2539
+ }
2540
2540
  Object.defineProperty(exports, "__esModule", { value: true });
2541
2541
  exports.isInteropObservable = undefined;
2542
2542
  var observable_1 = require_observable();
@@ -2546,9 +2546,9 @@ var require_isInteropObservable = __commonJS((exports) => {
2546
2546
 
2547
2547
  // ../../node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js
2548
2548
  var require_isAsyncIterable = __commonJS((exports) => {
2549
- var isAsyncIterable = function(obj) {
2549
+ function isAsyncIterable(obj) {
2550
2550
  return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === undefined ? undefined : obj[Symbol.asyncIterator]);
2551
- };
2551
+ }
2552
2552
  Object.defineProperty(exports, "__esModule", { value: true });
2553
2553
  exports.isAsyncIterable = undefined;
2554
2554
  var isFunction_1 = require_isFunction();
@@ -2557,9 +2557,9 @@ var require_isAsyncIterable = __commonJS((exports) => {
2557
2557
 
2558
2558
  // ../../node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js
2559
2559
  var require_throwUnobservableError = __commonJS((exports) => {
2560
- var createInvalidObservableTypeError = function(input) {
2560
+ function createInvalidObservableTypeError(input) {
2561
2561
  return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
2562
- };
2562
+ }
2563
2563
  Object.defineProperty(exports, "__esModule", { value: true });
2564
2564
  exports.createInvalidObservableTypeError = undefined;
2565
2565
  exports.createInvalidObservableTypeError = createInvalidObservableTypeError;
@@ -2567,12 +2567,12 @@ var require_throwUnobservableError = __commonJS((exports) => {
2567
2567
 
2568
2568
  // ../../node_modules/rxjs/dist/cjs/internal/symbol/iterator.js
2569
2569
  var require_iterator = __commonJS((exports) => {
2570
- var getSymbolIterator = function() {
2570
+ function getSymbolIterator() {
2571
2571
  if (typeof Symbol !== "function" || !Symbol.iterator) {
2572
2572
  return "@@iterator";
2573
2573
  }
2574
2574
  return Symbol.iterator;
2575
- };
2575
+ }
2576
2576
  Object.defineProperty(exports, "__esModule", { value: true });
2577
2577
  exports.iterator = exports.getSymbolIterator = undefined;
2578
2578
  exports.getSymbolIterator = getSymbolIterator;
@@ -2581,9 +2581,9 @@ var require_iterator = __commonJS((exports) => {
2581
2581
 
2582
2582
  // ../../node_modules/rxjs/dist/cjs/internal/util/isIterable.js
2583
2583
  var require_isIterable = __commonJS((exports) => {
2584
- var isIterable = function(input) {
2584
+ function isIterable(input) {
2585
2585
  return isFunction_1.isFunction(input === null || input === undefined ? undefined : input[iterator_1.iterator]);
2586
- };
2586
+ }
2587
2587
  Object.defineProperty(exports, "__esModule", { value: true });
2588
2588
  exports.isIterable = undefined;
2589
2589
  var iterator_1 = require_iterator();
@@ -2593,7 +2593,7 @@ var require_isIterable = __commonJS((exports) => {
2593
2593
 
2594
2594
  // ../../node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js
2595
2595
  var require_isReadableStreamLike = __commonJS((exports) => {
2596
- var readableStreamLikeToAsyncGenerator = function(readableStream) {
2596
+ function readableStreamLikeToAsyncGenerator(readableStream) {
2597
2597
  return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
2598
2598
  var reader, _a, value, done;
2599
2599
  return __generator(this, function(_b) {
@@ -2632,10 +2632,10 @@ var require_isReadableStreamLike = __commonJS((exports) => {
2632
2632
  }
2633
2633
  });
2634
2634
  });
2635
- };
2636
- var isReadableStreamLike = function(obj) {
2635
+ }
2636
+ function isReadableStreamLike(obj) {
2637
2637
  return isFunction_1.isFunction(obj === null || obj === undefined ? undefined : obj.getReader);
2638
- };
2638
+ }
2639
2639
  var __generator = exports && exports.__generator || function(thisArg, body) {
2640
2640
  var _ = { label: 0, sent: function() {
2641
2641
  if (t[0] & 1)
@@ -2760,7 +2760,7 @@ var require_isReadableStreamLike = __commonJS((exports) => {
2760
2760
 
2761
2761
  // ../../node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js
2762
2762
  var require_innerFrom = __commonJS((exports) => {
2763
- var innerFrom = function(input) {
2763
+ function innerFrom(input) {
2764
2764
  if (input instanceof Observable_1.Observable) {
2765
2765
  return input;
2766
2766
  }
@@ -2785,8 +2785,8 @@ var require_innerFrom = __commonJS((exports) => {
2785
2785
  }
2786
2786
  }
2787
2787
  throw throwUnobservableError_1.createInvalidObservableTypeError(input);
2788
- };
2789
- var fromInteropObservable = function(obj) {
2788
+ }
2789
+ function fromInteropObservable(obj) {
2790
2790
  return new Observable_1.Observable(function(subscriber) {
2791
2791
  var obs = obj[observable_1.observable]();
2792
2792
  if (isFunction_1.isFunction(obs.subscribe)) {
@@ -2794,16 +2794,16 @@ var require_innerFrom = __commonJS((exports) => {
2794
2794
  }
2795
2795
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
2796
2796
  });
2797
- };
2798
- var fromArrayLike = function(array3) {
2797
+ }
2798
+ function fromArrayLike(array) {
2799
2799
  return new Observable_1.Observable(function(subscriber) {
2800
- for (var i = 0;i < array3.length && !subscriber.closed; i++) {
2801
- subscriber.next(array3[i]);
2800
+ for (var i = 0;i < array.length && !subscriber.closed; i++) {
2801
+ subscriber.next(array[i]);
2802
2802
  }
2803
2803
  subscriber.complete();
2804
2804
  });
2805
- };
2806
- var fromPromise = function(promise) {
2805
+ }
2806
+ function fromPromise(promise) {
2807
2807
  return new Observable_1.Observable(function(subscriber) {
2808
2808
  promise.then(function(value) {
2809
2809
  if (!subscriber.closed) {
@@ -2814,8 +2814,8 @@ var require_innerFrom = __commonJS((exports) => {
2814
2814
  return subscriber.error(err);
2815
2815
  }).then(null, reportUnhandledError_1.reportUnhandledError);
2816
2816
  });
2817
- };
2818
- var fromIterable = function(iterable) {
2817
+ }
2818
+ function fromIterable(iterable) {
2819
2819
  return new Observable_1.Observable(function(subscriber) {
2820
2820
  var e_1, _a;
2821
2821
  try {
@@ -2839,18 +2839,18 @@ var require_innerFrom = __commonJS((exports) => {
2839
2839
  }
2840
2840
  subscriber.complete();
2841
2841
  });
2842
- };
2843
- var fromAsyncIterable = function(asyncIterable) {
2842
+ }
2843
+ function fromAsyncIterable(asyncIterable) {
2844
2844
  return new Observable_1.Observable(function(subscriber) {
2845
2845
  process(asyncIterable, subscriber).catch(function(err) {
2846
2846
  return subscriber.error(err);
2847
2847
  });
2848
2848
  });
2849
- };
2850
- var fromReadableStreamLike = function(readableStream) {
2849
+ }
2850
+ function fromReadableStreamLike(readableStream) {
2851
2851
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
2852
- };
2853
- var process = function(asyncIterable, subscriber) {
2852
+ }
2853
+ function process(asyncIterable, subscriber) {
2854
2854
  var asyncIterable_1, asyncIterable_1_1;
2855
2855
  var e_2, _a;
2856
2856
  return __awaiter(this, undefined, undefined, function() {
@@ -2902,7 +2902,7 @@ var require_innerFrom = __commonJS((exports) => {
2902
2902
  }
2903
2903
  });
2904
2904
  });
2905
- };
2905
+ }
2906
2906
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
2907
2907
  function adopt(value) {
2908
2908
  return value instanceof P ? value : new P(function(resolve) {
@@ -3064,7 +3064,7 @@ var require_innerFrom = __commonJS((exports) => {
3064
3064
 
3065
3065
  // ../../node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js
3066
3066
  var require_executeSchedule = __commonJS((exports) => {
3067
- var executeSchedule = function(parentSubscription, scheduler, work, delay, repeat) {
3067
+ function executeSchedule(parentSubscription, scheduler, work, delay, repeat) {
3068
3068
  if (delay === undefined) {
3069
3069
  delay = 0;
3070
3070
  }
@@ -3083,7 +3083,7 @@ var require_executeSchedule = __commonJS((exports) => {
3083
3083
  if (!repeat) {
3084
3084
  return scheduleSubscription;
3085
3085
  }
3086
- };
3086
+ }
3087
3087
  Object.defineProperty(exports, "__esModule", { value: true });
3088
3088
  exports.executeSchedule = undefined;
3089
3089
  exports.executeSchedule = executeSchedule;
@@ -3091,7 +3091,7 @@ var require_executeSchedule = __commonJS((exports) => {
3091
3091
 
3092
3092
  // ../../node_modules/rxjs/dist/cjs/internal/operators/observeOn.js
3093
3093
  var require_observeOn = __commonJS((exports) => {
3094
- var observeOn = function(scheduler, delay) {
3094
+ function observeOn(scheduler, delay) {
3095
3095
  if (delay === undefined) {
3096
3096
  delay = 0;
3097
3097
  }
@@ -3110,7 +3110,7 @@ var require_observeOn = __commonJS((exports) => {
3110
3110
  }, delay);
3111
3111
  }));
3112
3112
  });
3113
- };
3113
+ }
3114
3114
  Object.defineProperty(exports, "__esModule", { value: true });
3115
3115
  exports.observeOn = undefined;
3116
3116
  var executeSchedule_1 = require_executeSchedule();
@@ -3121,7 +3121,7 @@ var require_observeOn = __commonJS((exports) => {
3121
3121
 
3122
3122
  // ../../node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js
3123
3123
  var require_subscribeOn = __commonJS((exports) => {
3124
- var subscribeOn = function(scheduler, delay) {
3124
+ function subscribeOn(scheduler, delay) {
3125
3125
  if (delay === undefined) {
3126
3126
  delay = 0;
3127
3127
  }
@@ -3130,7 +3130,7 @@ var require_subscribeOn = __commonJS((exports) => {
3130
3130
  return source.subscribe(subscriber);
3131
3131
  }, delay));
3132
3132
  });
3133
- };
3133
+ }
3134
3134
  Object.defineProperty(exports, "__esModule", { value: true });
3135
3135
  exports.subscribeOn = undefined;
3136
3136
  var lift_1 = require_lift();
@@ -3139,9 +3139,9 @@ var require_subscribeOn = __commonJS((exports) => {
3139
3139
 
3140
3140
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js
3141
3141
  var require_scheduleObservable = __commonJS((exports) => {
3142
- var scheduleObservable = function(input, scheduler) {
3142
+ function scheduleObservable(input, scheduler) {
3143
3143
  return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
3144
- };
3144
+ }
3145
3145
  Object.defineProperty(exports, "__esModule", { value: true });
3146
3146
  exports.scheduleObservable = undefined;
3147
3147
  var innerFrom_1 = require_innerFrom();
@@ -3152,9 +3152,9 @@ var require_scheduleObservable = __commonJS((exports) => {
3152
3152
 
3153
3153
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js
3154
3154
  var require_schedulePromise = __commonJS((exports) => {
3155
- var schedulePromise = function(input, scheduler) {
3155
+ function schedulePromise(input, scheduler) {
3156
3156
  return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
3157
- };
3157
+ }
3158
3158
  Object.defineProperty(exports, "__esModule", { value: true });
3159
3159
  exports.schedulePromise = undefined;
3160
3160
  var innerFrom_1 = require_innerFrom();
@@ -3165,7 +3165,7 @@ var require_schedulePromise = __commonJS((exports) => {
3165
3165
 
3166
3166
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js
3167
3167
  var require_scheduleArray = __commonJS((exports) => {
3168
- var scheduleArray = function(input, scheduler) {
3168
+ function scheduleArray(input, scheduler) {
3169
3169
  return new Observable_1.Observable(function(subscriber) {
3170
3170
  var i = 0;
3171
3171
  return scheduler.schedule(function() {
@@ -3179,7 +3179,7 @@ var require_scheduleArray = __commonJS((exports) => {
3179
3179
  }
3180
3180
  });
3181
3181
  });
3182
- };
3182
+ }
3183
3183
  Object.defineProperty(exports, "__esModule", { value: true });
3184
3184
  exports.scheduleArray = undefined;
3185
3185
  var Observable_1 = require_Observable();
@@ -3188,7 +3188,7 @@ var require_scheduleArray = __commonJS((exports) => {
3188
3188
 
3189
3189
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js
3190
3190
  var require_scheduleIterable = __commonJS((exports) => {
3191
- var scheduleIterable = function(input, scheduler) {
3191
+ function scheduleIterable(input, scheduler) {
3192
3192
  return new Observable_1.Observable(function(subscriber) {
3193
3193
  var iterator;
3194
3194
  executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
@@ -3214,7 +3214,7 @@ var require_scheduleIterable = __commonJS((exports) => {
3214
3214
  return isFunction_1.isFunction(iterator === null || iterator === undefined ? undefined : iterator.return) && iterator.return();
3215
3215
  };
3216
3216
  });
3217
- };
3217
+ }
3218
3218
  Object.defineProperty(exports, "__esModule", { value: true });
3219
3219
  exports.scheduleIterable = undefined;
3220
3220
  var Observable_1 = require_Observable();
@@ -3226,7 +3226,7 @@ var require_scheduleIterable = __commonJS((exports) => {
3226
3226
 
3227
3227
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js
3228
3228
  var require_scheduleAsyncIterable = __commonJS((exports) => {
3229
- var scheduleAsyncIterable = function(input, scheduler) {
3229
+ function scheduleAsyncIterable(input, scheduler) {
3230
3230
  if (!input) {
3231
3231
  throw new Error("Iterable cannot be null");
3232
3232
  }
@@ -3244,7 +3244,7 @@ var require_scheduleAsyncIterable = __commonJS((exports) => {
3244
3244
  }, 0, true);
3245
3245
  });
3246
3246
  });
3247
- };
3247
+ }
3248
3248
  Object.defineProperty(exports, "__esModule", { value: true });
3249
3249
  exports.scheduleAsyncIterable = undefined;
3250
3250
  var Observable_1 = require_Observable();
@@ -3254,9 +3254,9 @@ var require_scheduleAsyncIterable = __commonJS((exports) => {
3254
3254
 
3255
3255
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js
3256
3256
  var require_scheduleReadableStreamLike = __commonJS((exports) => {
3257
- var scheduleReadableStreamLike = function(input, scheduler) {
3257
+ function scheduleReadableStreamLike(input, scheduler) {
3258
3258
  return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler);
3259
- };
3259
+ }
3260
3260
  Object.defineProperty(exports, "__esModule", { value: true });
3261
3261
  exports.scheduleReadableStreamLike = undefined;
3262
3262
  var scheduleAsyncIterable_1 = require_scheduleAsyncIterable();
@@ -3266,7 +3266,7 @@ var require_scheduleReadableStreamLike = __commonJS((exports) => {
3266
3266
 
3267
3267
  // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js
3268
3268
  var require_scheduled = __commonJS((exports) => {
3269
- var scheduled = function(input, scheduler) {
3269
+ function scheduled(input, scheduler) {
3270
3270
  if (input != null) {
3271
3271
  if (isInteropObservable_1.isInteropObservable(input)) {
3272
3272
  return scheduleObservable_1.scheduleObservable(input, scheduler);
@@ -3288,7 +3288,7 @@ var require_scheduled = __commonJS((exports) => {
3288
3288
  }
3289
3289
  }
3290
3290
  throw throwUnobservableError_1.createInvalidObservableTypeError(input);
3291
- };
3291
+ }
3292
3292
  Object.defineProperty(exports, "__esModule", { value: true });
3293
3293
  exports.scheduled = undefined;
3294
3294
  var scheduleObservable_1 = require_scheduleObservable();
@@ -3309,9 +3309,9 @@ var require_scheduled = __commonJS((exports) => {
3309
3309
 
3310
3310
  // ../../node_modules/rxjs/dist/cjs/internal/observable/from.js
3311
3311
  var require_from = __commonJS((exports) => {
3312
- var from = function(input, scheduler) {
3312
+ function from(input, scheduler) {
3313
3313
  return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input);
3314
- };
3314
+ }
3315
3315
  Object.defineProperty(exports, "__esModule", { value: true });
3316
3316
  exports.from = undefined;
3317
3317
  var scheduled_1 = require_scheduled();
@@ -3321,14 +3321,14 @@ var require_from = __commonJS((exports) => {
3321
3321
 
3322
3322
  // ../../node_modules/rxjs/dist/cjs/internal/observable/of.js
3323
3323
  var require_of = __commonJS((exports) => {
3324
- var of = function() {
3324
+ function of() {
3325
3325
  var args = [];
3326
3326
  for (var _i = 0;_i < arguments.length; _i++) {
3327
3327
  args[_i] = arguments[_i];
3328
3328
  }
3329
3329
  var scheduler = args_1.popScheduler(args);
3330
3330
  return from_1.from(args, scheduler);
3331
- };
3331
+ }
3332
3332
  Object.defineProperty(exports, "__esModule", { value: true });
3333
3333
  exports.of = undefined;
3334
3334
  var args_1 = require_args();
@@ -3338,7 +3338,7 @@ var require_of = __commonJS((exports) => {
3338
3338
 
3339
3339
  // ../../node_modules/rxjs/dist/cjs/internal/observable/throwError.js
3340
3340
  var require_throwError = __commonJS((exports) => {
3341
- var throwError = function(errorOrErrorFactory, scheduler) {
3341
+ function throwError(errorOrErrorFactory, scheduler) {
3342
3342
  var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() {
3343
3343
  return errorOrErrorFactory;
3344
3344
  };
@@ -3348,7 +3348,7 @@ var require_throwError = __commonJS((exports) => {
3348
3348
  return new Observable_1.Observable(scheduler ? function(subscriber) {
3349
3349
  return scheduler.schedule(init, 0, subscriber);
3350
3350
  } : init);
3351
- };
3351
+ }
3352
3352
  Object.defineProperty(exports, "__esModule", { value: true });
3353
3353
  exports.throwError = undefined;
3354
3354
  var Observable_1 = require_Observable();
@@ -3358,14 +3358,14 @@ var require_throwError = __commonJS((exports) => {
3358
3358
 
3359
3359
  // ../../node_modules/rxjs/dist/cjs/internal/Notification.js
3360
3360
  var require_Notification = __commonJS((exports) => {
3361
- var observeNotification = function(notification, observer) {
3361
+ function observeNotification(notification, observer) {
3362
3362
  var _a, _b, _c;
3363
3363
  var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;
3364
3364
  if (typeof kind !== "string") {
3365
3365
  throw new TypeError('Invalid notification, missing "kind"');
3366
3366
  }
3367
3367
  kind === "N" ? (_a = observer.next) === null || _a === undefined || _a.call(observer, value) : kind === "E" ? (_b = observer.error) === null || _b === undefined || _b.call(observer, error) : (_c = observer.complete) === null || _c === undefined || _c.call(observer);
3368
- };
3368
+ }
3369
3369
  Object.defineProperty(exports, "__esModule", { value: true });
3370
3370
  exports.observeNotification = exports.Notification = exports.NotificationKind = undefined;
3371
3371
  var empty_1 = require_empty();
@@ -3424,9 +3424,9 @@ var require_Notification = __commonJS((exports) => {
3424
3424
 
3425
3425
  // ../../node_modules/rxjs/dist/cjs/internal/util/isObservable.js
3426
3426
  var require_isObservable = __commonJS((exports) => {
3427
- var isObservable = function(obj) {
3427
+ function isObservable(obj) {
3428
3428
  return !!obj && (obj instanceof Observable_1.Observable || isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe));
3429
- };
3429
+ }
3430
3430
  Object.defineProperty(exports, "__esModule", { value: true });
3431
3431
  exports.isObservable = undefined;
3432
3432
  var Observable_1 = require_Observable();
@@ -3450,7 +3450,7 @@ var require_EmptyError = __commonJS((exports) => {
3450
3450
 
3451
3451
  // ../../node_modules/rxjs/dist/cjs/internal/lastValueFrom.js
3452
3452
  var require_lastValueFrom = __commonJS((exports) => {
3453
- var lastValueFrom = function(source, config) {
3453
+ function lastValueFrom(source, config) {
3454
3454
  var hasConfig = typeof config === "object";
3455
3455
  return new Promise(function(resolve, reject) {
3456
3456
  var _hasValue = false;
@@ -3472,7 +3472,7 @@ var require_lastValueFrom = __commonJS((exports) => {
3472
3472
  }
3473
3473
  });
3474
3474
  });
3475
- };
3475
+ }
3476
3476
  Object.defineProperty(exports, "__esModule", { value: true });
3477
3477
  exports.lastValueFrom = undefined;
3478
3478
  var EmptyError_1 = require_EmptyError();
@@ -3481,7 +3481,7 @@ var require_lastValueFrom = __commonJS((exports) => {
3481
3481
 
3482
3482
  // ../../node_modules/rxjs/dist/cjs/internal/firstValueFrom.js
3483
3483
  var require_firstValueFrom = __commonJS((exports) => {
3484
- var firstValueFrom = function(source, config) {
3484
+ function firstValueFrom(source, config) {
3485
3485
  var hasConfig = typeof config === "object";
3486
3486
  return new Promise(function(resolve, reject) {
3487
3487
  var subscriber = new Subscriber_1.SafeSubscriber({
@@ -3500,7 +3500,7 @@ var require_firstValueFrom = __commonJS((exports) => {
3500
3500
  });
3501
3501
  source.subscribe(subscriber);
3502
3502
  });
3503
- };
3503
+ }
3504
3504
  Object.defineProperty(exports, "__esModule", { value: true });
3505
3505
  exports.firstValueFrom = undefined;
3506
3506
  var EmptyError_1 = require_EmptyError();
@@ -3552,9 +3552,9 @@ var require_SequenceError = __commonJS((exports) => {
3552
3552
 
3553
3553
  // ../../node_modules/rxjs/dist/cjs/internal/util/isDate.js
3554
3554
  var require_isDate = __commonJS((exports) => {
3555
- var isValidDate = function(value) {
3555
+ function isValidDate(value) {
3556
3556
  return value instanceof Date && !isNaN(value);
3557
- };
3557
+ }
3558
3558
  Object.defineProperty(exports, "__esModule", { value: true });
3559
3559
  exports.isValidDate = undefined;
3560
3560
  exports.isValidDate = isValidDate;
@@ -3562,7 +3562,7 @@ var require_isDate = __commonJS((exports) => {
3562
3562
 
3563
3563
  // ../../node_modules/rxjs/dist/cjs/internal/operators/timeout.js
3564
3564
  var require_timeout = __commonJS((exports) => {
3565
- var timeout = function(config, schedulerArg) {
3565
+ function timeout(config, schedulerArg) {
3566
3566
  var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config, first = _a.first, each = _a.each, _b = _a.with, _with = _b === undefined ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === undefined ? schedulerArg !== null && schedulerArg !== undefined ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === undefined ? null : _d;
3567
3567
  if (first == null && each == null) {
3568
3568
  throw new TypeError("No timeout provided.");
@@ -3599,10 +3599,10 @@ var require_timeout = __commonJS((exports) => {
3599
3599
  }));
3600
3600
  !seen && startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each);
3601
3601
  });
3602
- };
3603
- var timeoutErrorFactory = function(info) {
3602
+ }
3603
+ function timeoutErrorFactory(info) {
3604
3604
  throw new exports.TimeoutError(info);
3605
- };
3605
+ }
3606
3606
  Object.defineProperty(exports, "__esModule", { value: true });
3607
3607
  exports.timeout = exports.TimeoutError = undefined;
3608
3608
  var async_1 = require_async();
@@ -3628,14 +3628,14 @@ var require_timeout = __commonJS((exports) => {
3628
3628
 
3629
3629
  // ../../node_modules/rxjs/dist/cjs/internal/operators/map.js
3630
3630
  var require_map = __commonJS((exports) => {
3631
- var map = function(project, thisArg) {
3631
+ function map(project, thisArg) {
3632
3632
  return lift_1.operate(function(source, subscriber) {
3633
3633
  var index = 0;
3634
3634
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
3635
3635
  subscriber.next(project.call(thisArg, value, index++));
3636
3636
  }));
3637
3637
  });
3638
- };
3638
+ }
3639
3639
  Object.defineProperty(exports, "__esModule", { value: true });
3640
3640
  exports.map = undefined;
3641
3641
  var lift_1 = require_lift();
@@ -3645,14 +3645,14 @@ var require_map = __commonJS((exports) => {
3645
3645
 
3646
3646
  // ../../node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js
3647
3647
  var require_mapOneOrManyArgs = __commonJS((exports) => {
3648
- var callOrApply = function(fn, args) {
3648
+ function callOrApply(fn, args) {
3649
3649
  return isArray(args) ? fn.apply(undefined, __spreadArray([], __read(args))) : fn(args);
3650
- };
3651
- var mapOneOrManyArgs = function(fn) {
3650
+ }
3651
+ function mapOneOrManyArgs(fn) {
3652
3652
  return map_1.map(function(args) {
3653
3653
  return callOrApply(fn, args);
3654
3654
  });
3655
- };
3655
+ }
3656
3656
  var __read = exports && exports.__read || function(o, n) {
3657
3657
  var m = typeof Symbol === "function" && o[Symbol.iterator];
3658
3658
  if (!m)
@@ -3688,7 +3688,7 @@ var require_mapOneOrManyArgs = __commonJS((exports) => {
3688
3688
 
3689
3689
  // ../../node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js
3690
3690
  var require_bindCallbackInternals = __commonJS((exports) => {
3691
- var bindCallbackInternals = function(isNodeStyle, callbackFunc, resultSelector, scheduler) {
3691
+ function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) {
3692
3692
  if (resultSelector) {
3693
3693
  if (isScheduler_1.isScheduler(resultSelector)) {
3694
3694
  scheduler = resultSelector;
@@ -3753,7 +3753,7 @@ var require_bindCallbackInternals = __commonJS((exports) => {
3753
3753
  return subs;
3754
3754
  });
3755
3755
  };
3756
- };
3756
+ }
3757
3757
  var __read = exports && exports.__read || function(o, n) {
3758
3758
  var m = typeof Symbol === "function" && o[Symbol.iterator];
3759
3759
  if (!m)
@@ -3793,9 +3793,9 @@ var require_bindCallbackInternals = __commonJS((exports) => {
3793
3793
 
3794
3794
  // ../../node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js
3795
3795
  var require_bindCallback = __commonJS((exports) => {
3796
- var bindCallback = function(callbackFunc, resultSelector, scheduler) {
3796
+ function bindCallback(callbackFunc, resultSelector, scheduler) {
3797
3797
  return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler);
3798
- };
3798
+ }
3799
3799
  Object.defineProperty(exports, "__esModule", { value: true });
3800
3800
  exports.bindCallback = undefined;
3801
3801
  var bindCallbackInternals_1 = require_bindCallbackInternals();
@@ -3804,9 +3804,9 @@ var require_bindCallback = __commonJS((exports) => {
3804
3804
 
3805
3805
  // ../../node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js
3806
3806
  var require_bindNodeCallback = __commonJS((exports) => {
3807
- var bindNodeCallback = function(callbackFunc, resultSelector, scheduler) {
3807
+ function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
3808
3808
  return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler);
3809
- };
3809
+ }
3810
3810
  Object.defineProperty(exports, "__esModule", { value: true });
3811
3811
  exports.bindNodeCallback = undefined;
3812
3812
  var bindCallbackInternals_1 = require_bindCallbackInternals();
@@ -3815,7 +3815,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
3815
3815
 
3816
3816
  // ../../node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js
3817
3817
  var require_argsArgArrayOrObject = __commonJS((exports) => {
3818
- var argsArgArrayOrObject = function(args) {
3818
+ function argsArgArrayOrObject(args) {
3819
3819
  if (args.length === 1) {
3820
3820
  var first_1 = args[0];
3821
3821
  if (isArray(first_1)) {
@@ -3832,10 +3832,10 @@ var require_argsArgArrayOrObject = __commonJS((exports) => {
3832
3832
  }
3833
3833
  }
3834
3834
  return { args, keys: null };
3835
- };
3836
- var isPOJO = function(obj) {
3835
+ }
3836
+ function isPOJO(obj) {
3837
3837
  return obj && typeof obj === "object" && getPrototypeOf(obj) === objectProto;
3838
- };
3838
+ }
3839
3839
  Object.defineProperty(exports, "__esModule", { value: true });
3840
3840
  exports.argsArgArrayOrObject = undefined;
3841
3841
  var isArray = Array.isArray;
@@ -3847,11 +3847,11 @@ var require_argsArgArrayOrObject = __commonJS((exports) => {
3847
3847
 
3848
3848
  // ../../node_modules/rxjs/dist/cjs/internal/util/createObject.js
3849
3849
  var require_createObject = __commonJS((exports) => {
3850
- var createObject = function(keys, values) {
3850
+ function createObject(keys, values) {
3851
3851
  return keys.reduce(function(result, key, i) {
3852
3852
  return result[key] = values[i], result;
3853
3853
  }, {});
3854
- };
3854
+ }
3855
3855
  Object.defineProperty(exports, "__esModule", { value: true });
3856
3856
  exports.createObject = undefined;
3857
3857
  exports.createObject = createObject;
@@ -3859,7 +3859,7 @@ var require_createObject = __commonJS((exports) => {
3859
3859
 
3860
3860
  // ../../node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js
3861
3861
  var require_combineLatest = __commonJS((exports) => {
3862
- var combineLatest = function() {
3862
+ function combineLatest() {
3863
3863
  var args = [];
3864
3864
  for (var _i = 0;_i < arguments.length; _i++) {
3865
3865
  args[_i] = arguments[_i];
@@ -3874,8 +3874,8 @@ var require_combineLatest = __commonJS((exports) => {
3874
3874
  return createObject_1.createObject(keys, values);
3875
3875
  } : identity_1.identity));
3876
3876
  return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
3877
- };
3878
- var combineLatestInit = function(observables, scheduler, valueTransform) {
3877
+ }
3878
+ function combineLatestInit(observables, scheduler, valueTransform) {
3879
3879
  if (valueTransform === undefined) {
3880
3880
  valueTransform = identity_1.identity;
3881
3881
  }
@@ -3910,14 +3910,14 @@ var require_combineLatest = __commonJS((exports) => {
3910
3910
  }
3911
3911
  }, subscriber);
3912
3912
  };
3913
- };
3914
- var maybeSchedule = function(scheduler, execute, subscription) {
3913
+ }
3914
+ function maybeSchedule(scheduler, execute, subscription) {
3915
3915
  if (scheduler) {
3916
3916
  executeSchedule_1.executeSchedule(subscription, scheduler, execute);
3917
3917
  } else {
3918
3918
  execute();
3919
3919
  }
3920
- };
3920
+ }
3921
3921
  Object.defineProperty(exports, "__esModule", { value: true });
3922
3922
  exports.combineLatestInit = exports.combineLatest = undefined;
3923
3923
  var Observable_1 = require_Observable();
@@ -3935,7 +3935,7 @@ var require_combineLatest = __commonJS((exports) => {
3935
3935
 
3936
3936
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js
3937
3937
  var require_mergeInternals = __commonJS((exports) => {
3938
- var mergeInternals = function(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
3938
+ function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
3939
3939
  var buffer = [];
3940
3940
  var active = 0;
3941
3941
  var index = 0;
@@ -3992,7 +3992,7 @@ var require_mergeInternals = __commonJS((exports) => {
3992
3992
  return function() {
3993
3993
  additionalFinalizer === null || additionalFinalizer === undefined || additionalFinalizer();
3994
3994
  };
3995
- };
3995
+ }
3996
3996
  Object.defineProperty(exports, "__esModule", { value: true });
3997
3997
  exports.mergeInternals = undefined;
3998
3998
  var innerFrom_1 = require_innerFrom();
@@ -4003,7 +4003,7 @@ var require_mergeInternals = __commonJS((exports) => {
4003
4003
 
4004
4004
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js
4005
4005
  var require_mergeMap = __commonJS((exports) => {
4006
- var mergeMap = function(project, resultSelector, concurrent) {
4006
+ function mergeMap(project, resultSelector, concurrent) {
4007
4007
  if (concurrent === undefined) {
4008
4008
  concurrent = Infinity;
4009
4009
  }
@@ -4019,7 +4019,7 @@ var require_mergeMap = __commonJS((exports) => {
4019
4019
  return lift_1.operate(function(source, subscriber) {
4020
4020
  return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent);
4021
4021
  });
4022
- };
4022
+ }
4023
4023
  Object.defineProperty(exports, "__esModule", { value: true });
4024
4024
  exports.mergeMap = undefined;
4025
4025
  var map_1 = require_map();
@@ -4032,12 +4032,12 @@ var require_mergeMap = __commonJS((exports) => {
4032
4032
 
4033
4033
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js
4034
4034
  var require_mergeAll = __commonJS((exports) => {
4035
- var mergeAll = function(concurrent) {
4035
+ function mergeAll(concurrent) {
4036
4036
  if (concurrent === undefined) {
4037
4037
  concurrent = Infinity;
4038
4038
  }
4039
4039
  return mergeMap_1.mergeMap(identity_1.identity, concurrent);
4040
- };
4040
+ }
4041
4041
  Object.defineProperty(exports, "__esModule", { value: true });
4042
4042
  exports.mergeAll = undefined;
4043
4043
  var mergeMap_1 = require_mergeMap();
@@ -4047,9 +4047,9 @@ var require_mergeAll = __commonJS((exports) => {
4047
4047
 
4048
4048
  // ../../node_modules/rxjs/dist/cjs/internal/operators/concatAll.js
4049
4049
  var require_concatAll = __commonJS((exports) => {
4050
- var concatAll = function() {
4050
+ function concatAll() {
4051
4051
  return mergeAll_1.mergeAll(1);
4052
- };
4052
+ }
4053
4053
  Object.defineProperty(exports, "__esModule", { value: true });
4054
4054
  exports.concatAll = undefined;
4055
4055
  var mergeAll_1 = require_mergeAll();
@@ -4058,13 +4058,13 @@ var require_concatAll = __commonJS((exports) => {
4058
4058
 
4059
4059
  // ../../node_modules/rxjs/dist/cjs/internal/observable/concat.js
4060
4060
  var require_concat = __commonJS((exports) => {
4061
- var concat = function() {
4061
+ function concat() {
4062
4062
  var args = [];
4063
4063
  for (var _i = 0;_i < arguments.length; _i++) {
4064
4064
  args[_i] = arguments[_i];
4065
4065
  }
4066
4066
  return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args)));
4067
- };
4067
+ }
4068
4068
  Object.defineProperty(exports, "__esModule", { value: true });
4069
4069
  exports.concat = undefined;
4070
4070
  var concatAll_1 = require_concatAll();
@@ -4075,11 +4075,11 @@ var require_concat = __commonJS((exports) => {
4075
4075
 
4076
4076
  // ../../node_modules/rxjs/dist/cjs/internal/observable/defer.js
4077
4077
  var require_defer = __commonJS((exports) => {
4078
- var defer = function(observableFactory) {
4078
+ function defer(observableFactory) {
4079
4079
  return new Observable_1.Observable(function(subscriber) {
4080
4080
  innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber);
4081
4081
  });
4082
- };
4082
+ }
4083
4083
  Object.defineProperty(exports, "__esModule", { value: true });
4084
4084
  exports.defer = undefined;
4085
4085
  var Observable_1 = require_Observable();
@@ -4089,7 +4089,7 @@ var require_defer = __commonJS((exports) => {
4089
4089
 
4090
4090
  // ../../node_modules/rxjs/dist/cjs/internal/observable/connectable.js
4091
4091
  var require_connectable = __commonJS((exports) => {
4092
- var connectable = function(source, config) {
4092
+ function connectable(source, config) {
4093
4093
  if (config === undefined) {
4094
4094
  config = DEFAULT_CONFIG;
4095
4095
  }
@@ -4113,7 +4113,7 @@ var require_connectable = __commonJS((exports) => {
4113
4113
  return connection;
4114
4114
  };
4115
4115
  return result;
4116
- };
4116
+ }
4117
4117
  Object.defineProperty(exports, "__esModule", { value: true });
4118
4118
  exports.connectable = undefined;
4119
4119
  var Subject_1 = require_Subject();
@@ -4130,7 +4130,7 @@ var require_connectable = __commonJS((exports) => {
4130
4130
 
4131
4131
  // ../../node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js
4132
4132
  var require_forkJoin = __commonJS((exports) => {
4133
- var forkJoin = function() {
4133
+ function forkJoin() {
4134
4134
  var args = [];
4135
4135
  for (var _i = 0;_i < arguments.length; _i++) {
4136
4136
  args[_i] = arguments[_i];
@@ -4170,7 +4170,7 @@ var require_forkJoin = __commonJS((exports) => {
4170
4170
  }
4171
4171
  });
4172
4172
  return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
4173
- };
4173
+ }
4174
4174
  Object.defineProperty(exports, "__esModule", { value: true });
4175
4175
  exports.forkJoin = undefined;
4176
4176
  var Observable_1 = require_Observable();
@@ -4185,7 +4185,7 @@ var require_forkJoin = __commonJS((exports) => {
4185
4185
 
4186
4186
  // ../../node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js
4187
4187
  var require_fromEvent = __commonJS((exports) => {
4188
- var fromEvent = function(target, eventName, options, resultSelector) {
4188
+ function fromEvent(target, eventName, options, resultSelector) {
4189
4189
  if (isFunction_1.isFunction(options)) {
4190
4190
  resultSelector = options;
4191
4191
  options = undefined;
@@ -4221,23 +4221,23 @@ var require_fromEvent = __commonJS((exports) => {
4221
4221
  return remove(handler);
4222
4222
  };
4223
4223
  });
4224
- };
4225
- var toCommonHandlerRegistry = function(target, eventName) {
4224
+ }
4225
+ function toCommonHandlerRegistry(target, eventName) {
4226
4226
  return function(methodName) {
4227
4227
  return function(handler) {
4228
4228
  return target[methodName](eventName, handler);
4229
4229
  };
4230
4230
  };
4231
- };
4232
- var isNodeStyleEventEmitter = function(target) {
4231
+ }
4232
+ function isNodeStyleEventEmitter(target) {
4233
4233
  return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener);
4234
- };
4235
- var isJQueryStyleEventEmitter = function(target) {
4234
+ }
4235
+ function isJQueryStyleEventEmitter(target) {
4236
4236
  return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off);
4237
- };
4238
- var isEventTarget = function(target) {
4237
+ }
4238
+ function isEventTarget(target) {
4239
4239
  return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener);
4240
- };
4240
+ }
4241
4241
  var __read = exports && exports.__read || function(o, n) {
4242
4242
  var m = typeof Symbol === "function" && o[Symbol.iterator];
4243
4243
  if (!m)
@@ -4275,7 +4275,7 @@ var require_fromEvent = __commonJS((exports) => {
4275
4275
 
4276
4276
  // ../../node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js
4277
4277
  var require_fromEventPattern = __commonJS((exports) => {
4278
- var fromEventPattern = function(addHandler, removeHandler, resultSelector) {
4278
+ function fromEventPattern(addHandler, removeHandler, resultSelector) {
4279
4279
  if (resultSelector) {
4280
4280
  return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
4281
4281
  }
@@ -4292,7 +4292,7 @@ var require_fromEventPattern = __commonJS((exports) => {
4292
4292
  return removeHandler(handler, retValue);
4293
4293
  } : undefined;
4294
4294
  });
4295
- };
4295
+ }
4296
4296
  Object.defineProperty(exports, "__esModule", { value: true });
4297
4297
  exports.fromEventPattern = undefined;
4298
4298
  var Observable_1 = require_Observable();
@@ -4303,7 +4303,7 @@ var require_fromEventPattern = __commonJS((exports) => {
4303
4303
 
4304
4304
  // ../../node_modules/rxjs/dist/cjs/internal/observable/generate.js
4305
4305
  var require_generate = __commonJS((exports) => {
4306
- var generate = function(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) {
4306
+ function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) {
4307
4307
  var _a, _b;
4308
4308
  var resultSelector;
4309
4309
  var initialState;
@@ -4343,7 +4343,7 @@ var require_generate = __commonJS((exports) => {
4343
4343
  return defer_1.defer(scheduler ? function() {
4344
4344
  return scheduleIterable_1.scheduleIterable(gen(), scheduler);
4345
4345
  } : gen);
4346
- };
4346
+ }
4347
4347
  var __generator = exports && exports.__generator || function(thisArg, body) {
4348
4348
  var _ = { label: 0, sent: function() {
4349
4349
  if (t[0] & 1)
@@ -4431,11 +4431,11 @@ var require_generate = __commonJS((exports) => {
4431
4431
 
4432
4432
  // ../../node_modules/rxjs/dist/cjs/internal/observable/iif.js
4433
4433
  var require_iif = __commonJS((exports) => {
4434
- var iif = function(condition, trueResult, falseResult) {
4434
+ function iif(condition, trueResult, falseResult) {
4435
4435
  return defer_1.defer(function() {
4436
4436
  return condition() ? trueResult : falseResult;
4437
4437
  });
4438
- };
4438
+ }
4439
4439
  Object.defineProperty(exports, "__esModule", { value: true });
4440
4440
  exports.iif = undefined;
4441
4441
  var defer_1 = require_defer();
@@ -4444,7 +4444,7 @@ var require_iif = __commonJS((exports) => {
4444
4444
 
4445
4445
  // ../../node_modules/rxjs/dist/cjs/internal/observable/timer.js
4446
4446
  var require_timer = __commonJS((exports) => {
4447
- var timer = function(dueTime, intervalOrScheduler, scheduler) {
4447
+ function timer(dueTime, intervalOrScheduler, scheduler) {
4448
4448
  if (dueTime === undefined) {
4449
4449
  dueTime = 0;
4450
4450
  }
@@ -4476,7 +4476,7 @@ var require_timer = __commonJS((exports) => {
4476
4476
  }
4477
4477
  }, due);
4478
4478
  });
4479
- };
4479
+ }
4480
4480
  Object.defineProperty(exports, "__esModule", { value: true });
4481
4481
  exports.timer = undefined;
4482
4482
  var Observable_1 = require_Observable();
@@ -4488,7 +4488,7 @@ var require_timer = __commonJS((exports) => {
4488
4488
 
4489
4489
  // ../../node_modules/rxjs/dist/cjs/internal/observable/interval.js
4490
4490
  var require_interval = __commonJS((exports) => {
4491
- var interval = function(period, scheduler) {
4491
+ function interval(period, scheduler) {
4492
4492
  if (period === undefined) {
4493
4493
  period = 0;
4494
4494
  }
@@ -4499,7 +4499,7 @@ var require_interval = __commonJS((exports) => {
4499
4499
  period = 0;
4500
4500
  }
4501
4501
  return timer_1.timer(period, period, scheduler);
4502
- };
4502
+ }
4503
4503
  Object.defineProperty(exports, "__esModule", { value: true });
4504
4504
  exports.interval = undefined;
4505
4505
  var async_1 = require_async();
@@ -4509,7 +4509,7 @@ var require_interval = __commonJS((exports) => {
4509
4509
 
4510
4510
  // ../../node_modules/rxjs/dist/cjs/internal/observable/merge.js
4511
4511
  var require_merge = __commonJS((exports) => {
4512
- var merge = function() {
4512
+ function merge() {
4513
4513
  var args = [];
4514
4514
  for (var _i = 0;_i < arguments.length; _i++) {
4515
4515
  args[_i] = arguments[_i];
@@ -4518,7 +4518,7 @@ var require_merge = __commonJS((exports) => {
4518
4518
  var concurrent = args_1.popNumber(args, Infinity);
4519
4519
  var sources = args;
4520
4520
  return !sources.length ? empty_1.EMPTY : sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler));
4521
- };
4521
+ }
4522
4522
  Object.defineProperty(exports, "__esModule", { value: true });
4523
4523
  exports.merge = undefined;
4524
4524
  var mergeAll_1 = require_mergeAll();
@@ -4531,9 +4531,9 @@ var require_merge = __commonJS((exports) => {
4531
4531
 
4532
4532
  // ../../node_modules/rxjs/dist/cjs/internal/observable/never.js
4533
4533
  var require_never = __commonJS((exports) => {
4534
- var never = function() {
4534
+ function never() {
4535
4535
  return exports.NEVER;
4536
- };
4536
+ }
4537
4537
  Object.defineProperty(exports, "__esModule", { value: true });
4538
4538
  exports.never = exports.NEVER = undefined;
4539
4539
  var Observable_1 = require_Observable();
@@ -4544,9 +4544,9 @@ var require_never = __commonJS((exports) => {
4544
4544
 
4545
4545
  // ../../node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js
4546
4546
  var require_argsOrArgArray = __commonJS((exports) => {
4547
- var argsOrArgArray = function(args) {
4547
+ function argsOrArgArray(args) {
4548
4548
  return args.length === 1 && isArray(args[0]) ? args[0] : args;
4549
- };
4549
+ }
4550
4550
  Object.defineProperty(exports, "__esModule", { value: true });
4551
4551
  exports.argsOrArgArray = undefined;
4552
4552
  var isArray = Array.isArray;
@@ -4555,7 +4555,7 @@ var require_argsOrArgArray = __commonJS((exports) => {
4555
4555
 
4556
4556
  // ../../node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js
4557
4557
  var require_onErrorResumeNext = __commonJS((exports) => {
4558
- var onErrorResumeNext = function() {
4558
+ function onErrorResumeNext() {
4559
4559
  var sources = [];
4560
4560
  for (var _i = 0;_i < arguments.length; _i++) {
4561
4561
  sources[_i] = arguments[_i];
@@ -4581,7 +4581,7 @@ var require_onErrorResumeNext = __commonJS((exports) => {
4581
4581
  };
4582
4582
  subscribeNext();
4583
4583
  });
4584
- };
4584
+ }
4585
4585
  Object.defineProperty(exports, "__esModule", { value: true });
4586
4586
  exports.onErrorResumeNext = undefined;
4587
4587
  var Observable_1 = require_Observable();
@@ -4594,9 +4594,9 @@ var require_onErrorResumeNext = __commonJS((exports) => {
4594
4594
 
4595
4595
  // ../../node_modules/rxjs/dist/cjs/internal/observable/pairs.js
4596
4596
  var require_pairs = __commonJS((exports) => {
4597
- var pairs = function(obj, scheduler) {
4597
+ function pairs(obj, scheduler) {
4598
4598
  return from_1.from(Object.entries(obj), scheduler);
4599
- };
4599
+ }
4600
4600
  Object.defineProperty(exports, "__esModule", { value: true });
4601
4601
  exports.pairs = undefined;
4602
4602
  var from_1 = require_from();
@@ -4605,11 +4605,11 @@ var require_pairs = __commonJS((exports) => {
4605
4605
 
4606
4606
  // ../../node_modules/rxjs/dist/cjs/internal/util/not.js
4607
4607
  var require_not = __commonJS((exports) => {
4608
- var not = function(pred, thisArg) {
4608
+ function not(pred, thisArg) {
4609
4609
  return function(value, index) {
4610
4610
  return !pred.call(thisArg, value, index);
4611
4611
  };
4612
- };
4612
+ }
4613
4613
  Object.defineProperty(exports, "__esModule", { value: true });
4614
4614
  exports.not = undefined;
4615
4615
  exports.not = not;
@@ -4617,14 +4617,14 @@ var require_not = __commonJS((exports) => {
4617
4617
 
4618
4618
  // ../../node_modules/rxjs/dist/cjs/internal/operators/filter.js
4619
4619
  var require_filter = __commonJS((exports) => {
4620
- var filter = function(predicate, thisArg) {
4620
+ function filter(predicate, thisArg) {
4621
4621
  return lift_1.operate(function(source, subscriber) {
4622
4622
  var index = 0;
4623
4623
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
4624
4624
  return predicate.call(thisArg, value, index++) && subscriber.next(value);
4625
4625
  }));
4626
4626
  });
4627
- };
4627
+ }
4628
4628
  Object.defineProperty(exports, "__esModule", { value: true });
4629
4629
  exports.filter = undefined;
4630
4630
  var lift_1 = require_lift();
@@ -4634,9 +4634,9 @@ var require_filter = __commonJS((exports) => {
4634
4634
 
4635
4635
  // ../../node_modules/rxjs/dist/cjs/internal/observable/partition.js
4636
4636
  var require_partition = __commonJS((exports) => {
4637
- var partition = function(source, predicate, thisArg) {
4637
+ function partition(source, predicate, thisArg) {
4638
4638
  return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))];
4639
- };
4639
+ }
4640
4640
  Object.defineProperty(exports, "__esModule", { value: true });
4641
4641
  exports.partition = undefined;
4642
4642
  var not_1 = require_not();
@@ -4647,15 +4647,15 @@ var require_partition = __commonJS((exports) => {
4647
4647
 
4648
4648
  // ../../node_modules/rxjs/dist/cjs/internal/observable/race.js
4649
4649
  var require_race = __commonJS((exports) => {
4650
- var race = function() {
4650
+ function race() {
4651
4651
  var sources = [];
4652
4652
  for (var _i = 0;_i < arguments.length; _i++) {
4653
4653
  sources[_i] = arguments[_i];
4654
4654
  }
4655
4655
  sources = argsOrArgArray_1.argsOrArgArray(sources);
4656
4656
  return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources));
4657
- };
4658
- var raceInit = function(sources) {
4657
+ }
4658
+ function raceInit(sources) {
4659
4659
  return function(subscriber) {
4660
4660
  var subscriptions = [];
4661
4661
  var _loop_1 = function(i2) {
@@ -4673,7 +4673,7 @@ var require_race = __commonJS((exports) => {
4673
4673
  _loop_1(i);
4674
4674
  }
4675
4675
  };
4676
- };
4676
+ }
4677
4677
  Object.defineProperty(exports, "__esModule", { value: true });
4678
4678
  exports.raceInit = exports.race = undefined;
4679
4679
  var Observable_1 = require_Observable();
@@ -4686,7 +4686,7 @@ var require_race = __commonJS((exports) => {
4686
4686
 
4687
4687
  // ../../node_modules/rxjs/dist/cjs/internal/observable/range.js
4688
4688
  var require_range = __commonJS((exports) => {
4689
- var range = function(start, count, scheduler) {
4689
+ function range(start, count, scheduler) {
4690
4690
  if (count == null) {
4691
4691
  count = start;
4692
4692
  start = 0;
@@ -4712,7 +4712,7 @@ var require_range = __commonJS((exports) => {
4712
4712
  }
4713
4713
  subscriber.complete();
4714
4714
  });
4715
- };
4715
+ }
4716
4716
  Object.defineProperty(exports, "__esModule", { value: true });
4717
4717
  exports.range = undefined;
4718
4718
  var Observable_1 = require_Observable();
@@ -4722,7 +4722,7 @@ var require_range = __commonJS((exports) => {
4722
4722
 
4723
4723
  // ../../node_modules/rxjs/dist/cjs/internal/observable/using.js
4724
4724
  var require_using = __commonJS((exports) => {
4725
- var using = function(resourceFactory, observableFactory) {
4725
+ function using(resourceFactory, observableFactory) {
4726
4726
  return new Observable_1.Observable(function(subscriber) {
4727
4727
  var resource = resourceFactory();
4728
4728
  var result = observableFactory(resource);
@@ -4734,7 +4734,7 @@ var require_using = __commonJS((exports) => {
4734
4734
  }
4735
4735
  };
4736
4736
  });
4737
- };
4737
+ }
4738
4738
  Object.defineProperty(exports, "__esModule", { value: true });
4739
4739
  exports.using = undefined;
4740
4740
  var Observable_1 = require_Observable();
@@ -4745,7 +4745,7 @@ var require_using = __commonJS((exports) => {
4745
4745
 
4746
4746
  // ../../node_modules/rxjs/dist/cjs/internal/observable/zip.js
4747
4747
  var require_zip = __commonJS((exports) => {
4748
- var zip = function() {
4748
+ function zip() {
4749
4749
  var args = [];
4750
4750
  for (var _i = 0;_i < arguments.length; _i++) {
4751
4751
  args[_i] = arguments[_i];
@@ -4790,7 +4790,7 @@ var require_zip = __commonJS((exports) => {
4790
4790
  buffers = completed = null;
4791
4791
  };
4792
4792
  }) : empty_1.EMPTY;
4793
- };
4793
+ }
4794
4794
  var __read = exports && exports.__read || function(o, n) {
4795
4795
  var m = typeof Symbol === "function" && o[Symbol.iterator];
4796
4796
  if (!m)
@@ -4835,7 +4835,7 @@ var require_types = __commonJS((exports) => {
4835
4835
 
4836
4836
  // ../../node_modules/rxjs/dist/cjs/internal/operators/audit.js
4837
4837
  var require_audit = __commonJS((exports) => {
4838
- var audit = function(durationSelector) {
4838
+ function audit(durationSelector) {
4839
4839
  return lift_1.operate(function(source, subscriber) {
4840
4840
  var hasValue = false;
4841
4841
  var lastValue = null;
@@ -4867,7 +4867,7 @@ var require_audit = __commonJS((exports) => {
4867
4867
  (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
4868
4868
  }));
4869
4869
  });
4870
- };
4870
+ }
4871
4871
  Object.defineProperty(exports, "__esModule", { value: true });
4872
4872
  exports.audit = undefined;
4873
4873
  var lift_1 = require_lift();
@@ -4878,14 +4878,14 @@ var require_audit = __commonJS((exports) => {
4878
4878
 
4879
4879
  // ../../node_modules/rxjs/dist/cjs/internal/operators/auditTime.js
4880
4880
  var require_auditTime = __commonJS((exports) => {
4881
- var auditTime = function(duration, scheduler) {
4881
+ function auditTime(duration, scheduler) {
4882
4882
  if (scheduler === undefined) {
4883
4883
  scheduler = async_1.asyncScheduler;
4884
4884
  }
4885
4885
  return audit_1.audit(function() {
4886
4886
  return timer_1.timer(duration, scheduler);
4887
4887
  });
4888
- };
4888
+ }
4889
4889
  Object.defineProperty(exports, "__esModule", { value: true });
4890
4890
  exports.auditTime = undefined;
4891
4891
  var async_1 = require_async();
@@ -4896,7 +4896,7 @@ var require_auditTime = __commonJS((exports) => {
4896
4896
 
4897
4897
  // ../../node_modules/rxjs/dist/cjs/internal/operators/buffer.js
4898
4898
  var require_buffer = __commonJS((exports) => {
4899
- var buffer = function(closingNotifier) {
4899
+ function buffer(closingNotifier) {
4900
4900
  return lift_1.operate(function(source, subscriber) {
4901
4901
  var currentBuffer = [];
4902
4902
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
@@ -4914,7 +4914,7 @@ var require_buffer = __commonJS((exports) => {
4914
4914
  currentBuffer = null;
4915
4915
  };
4916
4916
  });
4917
- };
4917
+ }
4918
4918
  Object.defineProperty(exports, "__esModule", { value: true });
4919
4919
  exports.buffer = undefined;
4920
4920
  var lift_1 = require_lift();
@@ -4926,7 +4926,7 @@ var require_buffer = __commonJS((exports) => {
4926
4926
 
4927
4927
  // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js
4928
4928
  var require_bufferCount = __commonJS((exports) => {
4929
- var bufferCount = function(bufferSize, startBufferEvery) {
4929
+ function bufferCount(bufferSize, startBufferEvery) {
4930
4930
  if (startBufferEvery === undefined) {
4931
4931
  startBufferEvery = null;
4932
4932
  }
@@ -5002,7 +5002,7 @@ var require_bufferCount = __commonJS((exports) => {
5002
5002
  buffers = null;
5003
5003
  }));
5004
5004
  });
5005
- };
5005
+ }
5006
5006
  var __values = exports && exports.__values || function(o) {
5007
5007
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5008
5008
  if (m)
@@ -5027,7 +5027,7 @@ var require_bufferCount = __commonJS((exports) => {
5027
5027
 
5028
5028
  // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js
5029
5029
  var require_bufferTime = __commonJS((exports) => {
5030
- var bufferTime = function(bufferTimeSpan) {
5030
+ function bufferTime(bufferTimeSpan) {
5031
5031
  var _a, _b;
5032
5032
  var otherArgs = [];
5033
5033
  for (var _i = 1;_i < arguments.length; _i++) {
@@ -5100,7 +5100,7 @@ var require_bufferTime = __commonJS((exports) => {
5100
5100
  });
5101
5101
  source.subscribe(bufferTimeSubscriber);
5102
5102
  });
5103
- };
5103
+ }
5104
5104
  var __values = exports && exports.__values || function(o) {
5105
5105
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5106
5106
  if (m)
@@ -5129,7 +5129,7 @@ var require_bufferTime = __commonJS((exports) => {
5129
5129
 
5130
5130
  // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js
5131
5131
  var require_bufferToggle = __commonJS((exports) => {
5132
- var bufferToggle = function(openings, closingSelector) {
5132
+ function bufferToggle(openings, closingSelector) {
5133
5133
  return lift_1.operate(function(source, subscriber) {
5134
5134
  var buffers = [];
5135
5135
  innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) {
@@ -5168,7 +5168,7 @@ var require_bufferToggle = __commonJS((exports) => {
5168
5168
  subscriber.complete();
5169
5169
  }));
5170
5170
  });
5171
- };
5171
+ }
5172
5172
  var __values = exports && exports.__values || function(o) {
5173
5173
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5174
5174
  if (m)
@@ -5196,7 +5196,7 @@ var require_bufferToggle = __commonJS((exports) => {
5196
5196
 
5197
5197
  // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js
5198
5198
  var require_bufferWhen = __commonJS((exports) => {
5199
- var bufferWhen = function(closingSelector) {
5199
+ function bufferWhen(closingSelector) {
5200
5200
  return lift_1.operate(function(source, subscriber) {
5201
5201
  var buffer = null;
5202
5202
  var closingSubscriber = null;
@@ -5217,7 +5217,7 @@ var require_bufferWhen = __commonJS((exports) => {
5217
5217
  return buffer = closingSubscriber = null;
5218
5218
  }));
5219
5219
  });
5220
- };
5220
+ }
5221
5221
  Object.defineProperty(exports, "__esModule", { value: true });
5222
5222
  exports.bufferWhen = undefined;
5223
5223
  var lift_1 = require_lift();
@@ -5229,7 +5229,7 @@ var require_bufferWhen = __commonJS((exports) => {
5229
5229
 
5230
5230
  // ../../node_modules/rxjs/dist/cjs/internal/operators/catchError.js
5231
5231
  var require_catchError = __commonJS((exports) => {
5232
- var catchError = function(selector) {
5232
+ function catchError(selector) {
5233
5233
  return lift_1.operate(function(source, subscriber) {
5234
5234
  var innerSub = null;
5235
5235
  var syncUnsub = false;
@@ -5250,7 +5250,7 @@ var require_catchError = __commonJS((exports) => {
5250
5250
  handledResult.subscribe(subscriber);
5251
5251
  }
5252
5252
  });
5253
- };
5253
+ }
5254
5254
  Object.defineProperty(exports, "__esModule", { value: true });
5255
5255
  exports.catchError = undefined;
5256
5256
  var innerFrom_1 = require_innerFrom();
@@ -5261,7 +5261,7 @@ var require_catchError = __commonJS((exports) => {
5261
5261
 
5262
5262
  // ../../node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js
5263
5263
  var require_scanInternals = __commonJS((exports) => {
5264
- var scanInternals = function(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
5264
+ function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
5265
5265
  return function(source, subscriber) {
5266
5266
  var hasState = hasSeed;
5267
5267
  var state = seed;
@@ -5275,7 +5275,7 @@ var require_scanInternals = __commonJS((exports) => {
5275
5275
  subscriber.complete();
5276
5276
  }));
5277
5277
  };
5278
- };
5278
+ }
5279
5279
  Object.defineProperty(exports, "__esModule", { value: true });
5280
5280
  exports.scanInternals = undefined;
5281
5281
  var OperatorSubscriber_1 = require_OperatorSubscriber();
@@ -5284,9 +5284,9 @@ var require_scanInternals = __commonJS((exports) => {
5284
5284
 
5285
5285
  // ../../node_modules/rxjs/dist/cjs/internal/operators/reduce.js
5286
5286
  var require_reduce = __commonJS((exports) => {
5287
- var reduce = function(accumulator, seed) {
5287
+ function reduce(accumulator, seed) {
5288
5288
  return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true));
5289
- };
5289
+ }
5290
5290
  Object.defineProperty(exports, "__esModule", { value: true });
5291
5291
  exports.reduce = undefined;
5292
5292
  var scanInternals_1 = require_scanInternals();
@@ -5296,11 +5296,11 @@ var require_reduce = __commonJS((exports) => {
5296
5296
 
5297
5297
  // ../../node_modules/rxjs/dist/cjs/internal/operators/toArray.js
5298
5298
  var require_toArray = __commonJS((exports) => {
5299
- var toArray = function() {
5299
+ function toArray() {
5300
5300
  return lift_1.operate(function(source, subscriber) {
5301
5301
  reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber);
5302
5302
  });
5303
- };
5303
+ }
5304
5304
  Object.defineProperty(exports, "__esModule", { value: true });
5305
5305
  exports.toArray = undefined;
5306
5306
  var reduce_1 = require_reduce();
@@ -5313,11 +5313,11 @@ var require_toArray = __commonJS((exports) => {
5313
5313
 
5314
5314
  // ../../node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js
5315
5315
  var require_joinAllInternals = __commonJS((exports) => {
5316
- var joinAllInternals = function(joinFn, project) {
5316
+ function joinAllInternals(joinFn, project) {
5317
5317
  return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function(sources) {
5318
5318
  return joinFn(sources);
5319
5319
  }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity);
5320
- };
5320
+ }
5321
5321
  Object.defineProperty(exports, "__esModule", { value: true });
5322
5322
  exports.joinAllInternals = undefined;
5323
5323
  var identity_1 = require_identity();
@@ -5330,9 +5330,9 @@ var require_joinAllInternals = __commonJS((exports) => {
5330
5330
 
5331
5331
  // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js
5332
5332
  var require_combineLatestAll = __commonJS((exports) => {
5333
- var combineLatestAll = function(project) {
5333
+ function combineLatestAll(project) {
5334
5334
  return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project);
5335
- };
5335
+ }
5336
5336
  Object.defineProperty(exports, "__esModule", { value: true });
5337
5337
  exports.combineLatestAll = undefined;
5338
5338
  var combineLatest_1 = require_combineLatest();
@@ -5350,7 +5350,7 @@ var require_combineAll = __commonJS((exports) => {
5350
5350
 
5351
5351
  // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js
5352
5352
  var require_combineLatest2 = __commonJS((exports) => {
5353
- var combineLatest = function() {
5353
+ function combineLatest() {
5354
5354
  var args = [];
5355
5355
  for (var _i = 0;_i < arguments.length; _i++) {
5356
5356
  args[_i] = arguments[_i];
@@ -5359,7 +5359,7 @@ var require_combineLatest2 = __commonJS((exports) => {
5359
5359
  return resultSelector ? pipe_1.pipe(combineLatest.apply(undefined, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : lift_1.operate(function(source, subscriber) {
5360
5360
  combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber);
5361
5361
  });
5362
- };
5362
+ }
5363
5363
  var __read = exports && exports.__read || function(o, n) {
5364
5364
  var m = typeof Symbol === "function" && o[Symbol.iterator];
5365
5365
  if (!m)
@@ -5399,13 +5399,13 @@ var require_combineLatest2 = __commonJS((exports) => {
5399
5399
 
5400
5400
  // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js
5401
5401
  var require_combineLatestWith = __commonJS((exports) => {
5402
- var combineLatestWith = function() {
5402
+ function combineLatestWith() {
5403
5403
  var otherSources = [];
5404
5404
  for (var _i = 0;_i < arguments.length; _i++) {
5405
5405
  otherSources[_i] = arguments[_i];
5406
5406
  }
5407
5407
  return combineLatest_1.combineLatest.apply(undefined, __spreadArray([], __read(otherSources)));
5408
- };
5408
+ }
5409
5409
  var __read = exports && exports.__read || function(o, n) {
5410
5410
  var m = typeof Symbol === "function" && o[Symbol.iterator];
5411
5411
  if (!m)
@@ -5440,9 +5440,9 @@ var require_combineLatestWith = __commonJS((exports) => {
5440
5440
 
5441
5441
  // ../../node_modules/rxjs/dist/cjs/internal/operators/concatMap.js
5442
5442
  var require_concatMap = __commonJS((exports) => {
5443
- var concatMap = function(project, resultSelector) {
5443
+ function concatMap(project, resultSelector) {
5444
5444
  return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1);
5445
- };
5445
+ }
5446
5446
  Object.defineProperty(exports, "__esModule", { value: true });
5447
5447
  exports.concatMap = undefined;
5448
5448
  var mergeMap_1 = require_mergeMap();
@@ -5452,13 +5452,13 @@ var require_concatMap = __commonJS((exports) => {
5452
5452
 
5453
5453
  // ../../node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js
5454
5454
  var require_concatMapTo = __commonJS((exports) => {
5455
- var concatMapTo = function(innerObservable, resultSelector) {
5455
+ function concatMapTo(innerObservable, resultSelector) {
5456
5456
  return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function() {
5457
5457
  return innerObservable;
5458
5458
  }, resultSelector) : concatMap_1.concatMap(function() {
5459
5459
  return innerObservable;
5460
5460
  });
5461
- };
5461
+ }
5462
5462
  Object.defineProperty(exports, "__esModule", { value: true });
5463
5463
  exports.concatMapTo = undefined;
5464
5464
  var concatMap_1 = require_concatMap();
@@ -5468,7 +5468,7 @@ var require_concatMapTo = __commonJS((exports) => {
5468
5468
 
5469
5469
  // ../../node_modules/rxjs/dist/cjs/internal/operators/concat.js
5470
5470
  var require_concat2 = __commonJS((exports) => {
5471
- var concat = function() {
5471
+ function concat() {
5472
5472
  var args = [];
5473
5473
  for (var _i = 0;_i < arguments.length; _i++) {
5474
5474
  args[_i] = arguments[_i];
@@ -5477,7 +5477,7 @@ var require_concat2 = __commonJS((exports) => {
5477
5477
  return lift_1.operate(function(source, subscriber) {
5478
5478
  concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
5479
5479
  });
5480
- };
5480
+ }
5481
5481
  var __read = exports && exports.__read || function(o, n) {
5482
5482
  var m = typeof Symbol === "function" && o[Symbol.iterator];
5483
5483
  if (!m)
@@ -5515,13 +5515,13 @@ var require_concat2 = __commonJS((exports) => {
5515
5515
 
5516
5516
  // ../../node_modules/rxjs/dist/cjs/internal/operators/concatWith.js
5517
5517
  var require_concatWith = __commonJS((exports) => {
5518
- var concatWith = function() {
5518
+ function concatWith() {
5519
5519
  var otherSources = [];
5520
5520
  for (var _i = 0;_i < arguments.length; _i++) {
5521
5521
  otherSources[_i] = arguments[_i];
5522
5522
  }
5523
5523
  return concat_1.concat.apply(undefined, __spreadArray([], __read(otherSources)));
5524
- };
5524
+ }
5525
5525
  var __read = exports && exports.__read || function(o, n) {
5526
5526
  var m = typeof Symbol === "function" && o[Symbol.iterator];
5527
5527
  if (!m)
@@ -5556,11 +5556,11 @@ var require_concatWith = __commonJS((exports) => {
5556
5556
 
5557
5557
  // ../../node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js
5558
5558
  var require_fromSubscribable = __commonJS((exports) => {
5559
- var fromSubscribable = function(subscribable) {
5559
+ function fromSubscribable(subscribable) {
5560
5560
  return new Observable_1.Observable(function(subscriber) {
5561
5561
  return subscribable.subscribe(subscriber);
5562
5562
  });
5563
- };
5563
+ }
5564
5564
  Object.defineProperty(exports, "__esModule", { value: true });
5565
5565
  exports.fromSubscribable = undefined;
5566
5566
  var Observable_1 = require_Observable();
@@ -5569,7 +5569,7 @@ var require_fromSubscribable = __commonJS((exports) => {
5569
5569
 
5570
5570
  // ../../node_modules/rxjs/dist/cjs/internal/operators/connect.js
5571
5571
  var require_connect = __commonJS((exports) => {
5572
- var connect = function(selector, config) {
5572
+ function connect(selector, config) {
5573
5573
  if (config === undefined) {
5574
5574
  config = DEFAULT_CONFIG;
5575
5575
  }
@@ -5579,7 +5579,7 @@ var require_connect = __commonJS((exports) => {
5579
5579
  innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
5580
5580
  subscriber.add(source.subscribe(subject));
5581
5581
  });
5582
- };
5582
+ }
5583
5583
  Object.defineProperty(exports, "__esModule", { value: true });
5584
5584
  exports.connect = undefined;
5585
5585
  var Subject_1 = require_Subject();
@@ -5596,11 +5596,11 @@ var require_connect = __commonJS((exports) => {
5596
5596
 
5597
5597
  // ../../node_modules/rxjs/dist/cjs/internal/operators/count.js
5598
5598
  var require_count = __commonJS((exports) => {
5599
- var count = function(predicate) {
5599
+ function count(predicate) {
5600
5600
  return reduce_1.reduce(function(total, value, i) {
5601
5601
  return !predicate || predicate(value, i) ? total + 1 : total;
5602
5602
  }, 0);
5603
- };
5603
+ }
5604
5604
  Object.defineProperty(exports, "__esModule", { value: true });
5605
5605
  exports.count = undefined;
5606
5606
  var reduce_1 = require_reduce();
@@ -5609,7 +5609,7 @@ var require_count = __commonJS((exports) => {
5609
5609
 
5610
5610
  // ../../node_modules/rxjs/dist/cjs/internal/operators/debounce.js
5611
5611
  var require_debounce = __commonJS((exports) => {
5612
- var debounce = function(durationSelector) {
5612
+ function debounce(durationSelector) {
5613
5613
  return lift_1.operate(function(source, subscriber) {
5614
5614
  var hasValue = false;
5615
5615
  var lastValue = null;
@@ -5637,7 +5637,7 @@ var require_debounce = __commonJS((exports) => {
5637
5637
  lastValue = durationSubscriber = null;
5638
5638
  }));
5639
5639
  });
5640
- };
5640
+ }
5641
5641
  Object.defineProperty(exports, "__esModule", { value: true });
5642
5642
  exports.debounce = undefined;
5643
5643
  var lift_1 = require_lift();
@@ -5649,7 +5649,7 @@ var require_debounce = __commonJS((exports) => {
5649
5649
 
5650
5650
  // ../../node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js
5651
5651
  var require_debounceTime = __commonJS((exports) => {
5652
- var debounceTime = function(dueTime, scheduler) {
5652
+ function debounceTime(dueTime, scheduler) {
5653
5653
  if (scheduler === undefined) {
5654
5654
  scheduler = async_1.asyncScheduler;
5655
5655
  }
@@ -5690,7 +5690,7 @@ var require_debounceTime = __commonJS((exports) => {
5690
5690
  lastValue = activeTask = null;
5691
5691
  }));
5692
5692
  });
5693
- };
5693
+ }
5694
5694
  Object.defineProperty(exports, "__esModule", { value: true });
5695
5695
  exports.debounceTime = undefined;
5696
5696
  var async_1 = require_async();
@@ -5701,7 +5701,7 @@ var require_debounceTime = __commonJS((exports) => {
5701
5701
 
5702
5702
  // ../../node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js
5703
5703
  var require_defaultIfEmpty = __commonJS((exports) => {
5704
- var defaultIfEmpty = function(defaultValue) {
5704
+ function defaultIfEmpty(defaultValue) {
5705
5705
  return lift_1.operate(function(source, subscriber) {
5706
5706
  var hasValue = false;
5707
5707
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
@@ -5714,7 +5714,7 @@ var require_defaultIfEmpty = __commonJS((exports) => {
5714
5714
  subscriber.complete();
5715
5715
  }));
5716
5716
  });
5717
- };
5717
+ }
5718
5718
  Object.defineProperty(exports, "__esModule", { value: true });
5719
5719
  exports.defaultIfEmpty = undefined;
5720
5720
  var lift_1 = require_lift();
@@ -5724,7 +5724,7 @@ var require_defaultIfEmpty = __commonJS((exports) => {
5724
5724
 
5725
5725
  // ../../node_modules/rxjs/dist/cjs/internal/operators/take.js
5726
5726
  var require_take = __commonJS((exports) => {
5727
- var take = function(count) {
5727
+ function take(count) {
5728
5728
  return count <= 0 ? function() {
5729
5729
  return empty_1.EMPTY;
5730
5730
  } : lift_1.operate(function(source, subscriber) {
@@ -5738,7 +5738,7 @@ var require_take = __commonJS((exports) => {
5738
5738
  }
5739
5739
  }));
5740
5740
  });
5741
- };
5741
+ }
5742
5742
  Object.defineProperty(exports, "__esModule", { value: true });
5743
5743
  exports.take = undefined;
5744
5744
  var empty_1 = require_empty();
@@ -5749,11 +5749,11 @@ var require_take = __commonJS((exports) => {
5749
5749
 
5750
5750
  // ../../node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js
5751
5751
  var require_ignoreElements = __commonJS((exports) => {
5752
- var ignoreElements = function() {
5752
+ function ignoreElements() {
5753
5753
  return lift_1.operate(function(source, subscriber) {
5754
5754
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop));
5755
5755
  });
5756
- };
5756
+ }
5757
5757
  Object.defineProperty(exports, "__esModule", { value: true });
5758
5758
  exports.ignoreElements = undefined;
5759
5759
  var lift_1 = require_lift();
@@ -5764,11 +5764,11 @@ var require_ignoreElements = __commonJS((exports) => {
5764
5764
 
5765
5765
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mapTo.js
5766
5766
  var require_mapTo = __commonJS((exports) => {
5767
- var mapTo = function(value) {
5767
+ function mapTo(value) {
5768
5768
  return map_1.map(function() {
5769
5769
  return value;
5770
5770
  });
5771
- };
5771
+ }
5772
5772
  Object.defineProperty(exports, "__esModule", { value: true });
5773
5773
  exports.mapTo = undefined;
5774
5774
  var map_1 = require_map();
@@ -5777,7 +5777,7 @@ var require_mapTo = __commonJS((exports) => {
5777
5777
 
5778
5778
  // ../../node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js
5779
5779
  var require_delayWhen = __commonJS((exports) => {
5780
- var delayWhen = function(delayDurationSelector, subscriptionDelay) {
5780
+ function delayWhen(delayDurationSelector, subscriptionDelay) {
5781
5781
  if (subscriptionDelay) {
5782
5782
  return function(source) {
5783
5783
  return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
@@ -5786,7 +5786,7 @@ var require_delayWhen = __commonJS((exports) => {
5786
5786
  return mergeMap_1.mergeMap(function(value, index) {
5787
5787
  return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value));
5788
5788
  });
5789
- };
5789
+ }
5790
5790
  Object.defineProperty(exports, "__esModule", { value: true });
5791
5791
  exports.delayWhen = undefined;
5792
5792
  var concat_1 = require_concat();
@@ -5800,7 +5800,7 @@ var require_delayWhen = __commonJS((exports) => {
5800
5800
 
5801
5801
  // ../../node_modules/rxjs/dist/cjs/internal/operators/delay.js
5802
5802
  var require_delay = __commonJS((exports) => {
5803
- var delay = function(due, scheduler) {
5803
+ function delay(due, scheduler) {
5804
5804
  if (scheduler === undefined) {
5805
5805
  scheduler = async_1.asyncScheduler;
5806
5806
  }
@@ -5808,7 +5808,7 @@ var require_delay = __commonJS((exports) => {
5808
5808
  return delayWhen_1.delayWhen(function() {
5809
5809
  return duration;
5810
5810
  });
5811
- };
5811
+ }
5812
5812
  Object.defineProperty(exports, "__esModule", { value: true });
5813
5813
  exports.delay = undefined;
5814
5814
  var async_1 = require_async();
@@ -5819,13 +5819,13 @@ var require_delay = __commonJS((exports) => {
5819
5819
 
5820
5820
  // ../../node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js
5821
5821
  var require_dematerialize = __commonJS((exports) => {
5822
- var dematerialize = function() {
5822
+ function dematerialize() {
5823
5823
  return lift_1.operate(function(source, subscriber) {
5824
5824
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(notification) {
5825
5825
  return Notification_1.observeNotification(notification, subscriber);
5826
5826
  }));
5827
5827
  });
5828
- };
5828
+ }
5829
5829
  Object.defineProperty(exports, "__esModule", { value: true });
5830
5830
  exports.dematerialize = undefined;
5831
5831
  var Notification_1 = require_Notification();
@@ -5836,7 +5836,7 @@ var require_dematerialize = __commonJS((exports) => {
5836
5836
 
5837
5837
  // ../../node_modules/rxjs/dist/cjs/internal/operators/distinct.js
5838
5838
  var require_distinct = __commonJS((exports) => {
5839
- var distinct = function(keySelector, flushes) {
5839
+ function distinct(keySelector, flushes) {
5840
5840
  return lift_1.operate(function(source, subscriber) {
5841
5841
  var distinctKeys = new Set;
5842
5842
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
@@ -5850,7 +5850,7 @@ var require_distinct = __commonJS((exports) => {
5850
5850
  return distinctKeys.clear();
5851
5851
  }, noop_1.noop));
5852
5852
  });
5853
- };
5853
+ }
5854
5854
  Object.defineProperty(exports, "__esModule", { value: true });
5855
5855
  exports.distinct = undefined;
5856
5856
  var lift_1 = require_lift();
@@ -5862,7 +5862,7 @@ var require_distinct = __commonJS((exports) => {
5862
5862
 
5863
5863
  // ../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js
5864
5864
  var require_distinctUntilChanged = __commonJS((exports) => {
5865
- var distinctUntilChanged = function(comparator, keySelector) {
5865
+ function distinctUntilChanged(comparator, keySelector) {
5866
5866
  if (keySelector === undefined) {
5867
5867
  keySelector = identity_1.identity;
5868
5868
  }
@@ -5879,10 +5879,10 @@ var require_distinctUntilChanged = __commonJS((exports) => {
5879
5879
  }
5880
5880
  }));
5881
5881
  });
5882
- };
5883
- var defaultCompare = function(a, b) {
5882
+ }
5883
+ function defaultCompare(a, b) {
5884
5884
  return a === b;
5885
- };
5885
+ }
5886
5886
  Object.defineProperty(exports, "__esModule", { value: true });
5887
5887
  exports.distinctUntilChanged = undefined;
5888
5888
  var identity_1 = require_identity();
@@ -5893,11 +5893,11 @@ var require_distinctUntilChanged = __commonJS((exports) => {
5893
5893
 
5894
5894
  // ../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js
5895
5895
  var require_distinctUntilKeyChanged = __commonJS((exports) => {
5896
- var distinctUntilKeyChanged = function(key, compare) {
5896
+ function distinctUntilKeyChanged(key, compare) {
5897
5897
  return distinctUntilChanged_1.distinctUntilChanged(function(x, y) {
5898
5898
  return compare ? compare(x[key], y[key]) : x[key] === y[key];
5899
5899
  });
5900
- };
5900
+ }
5901
5901
  Object.defineProperty(exports, "__esModule", { value: true });
5902
5902
  exports.distinctUntilKeyChanged = undefined;
5903
5903
  var distinctUntilChanged_1 = require_distinctUntilChanged();
@@ -5906,7 +5906,7 @@ var require_distinctUntilKeyChanged = __commonJS((exports) => {
5906
5906
 
5907
5907
  // ../../node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js
5908
5908
  var require_throwIfEmpty = __commonJS((exports) => {
5909
- var throwIfEmpty = function(errorFactory) {
5909
+ function throwIfEmpty(errorFactory) {
5910
5910
  if (errorFactory === undefined) {
5911
5911
  errorFactory = defaultErrorFactory;
5912
5912
  }
@@ -5919,10 +5919,10 @@ var require_throwIfEmpty = __commonJS((exports) => {
5919
5919
  return hasValue ? subscriber.complete() : subscriber.error(errorFactory());
5920
5920
  }));
5921
5921
  });
5922
- };
5923
- var defaultErrorFactory = function() {
5922
+ }
5923
+ function defaultErrorFactory() {
5924
5924
  return new EmptyError_1.EmptyError;
5925
- };
5925
+ }
5926
5926
  Object.defineProperty(exports, "__esModule", { value: true });
5927
5927
  exports.throwIfEmpty = undefined;
5928
5928
  var EmptyError_1 = require_EmptyError();
@@ -5933,7 +5933,7 @@ var require_throwIfEmpty = __commonJS((exports) => {
5933
5933
 
5934
5934
  // ../../node_modules/rxjs/dist/cjs/internal/operators/elementAt.js
5935
5935
  var require_elementAt = __commonJS((exports) => {
5936
- var elementAt = function(index, defaultValue) {
5936
+ function elementAt(index, defaultValue) {
5937
5937
  if (index < 0) {
5938
5938
  throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;
5939
5939
  }
@@ -5945,7 +5945,7 @@ var require_elementAt = __commonJS((exports) => {
5945
5945
  return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;
5946
5946
  }));
5947
5947
  };
5948
- };
5948
+ }
5949
5949
  Object.defineProperty(exports, "__esModule", { value: true });
5950
5950
  exports.elementAt = undefined;
5951
5951
  var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError();
@@ -5958,7 +5958,7 @@ var require_elementAt = __commonJS((exports) => {
5958
5958
 
5959
5959
  // ../../node_modules/rxjs/dist/cjs/internal/operators/endWith.js
5960
5960
  var require_endWith = __commonJS((exports) => {
5961
- var endWith = function() {
5961
+ function endWith() {
5962
5962
  var values = [];
5963
5963
  for (var _i = 0;_i < arguments.length; _i++) {
5964
5964
  values[_i] = arguments[_i];
@@ -5966,7 +5966,7 @@ var require_endWith = __commonJS((exports) => {
5966
5966
  return function(source) {
5967
5967
  return concat_1.concat(source, of_1.of.apply(undefined, __spreadArray([], __read(values))));
5968
5968
  };
5969
- };
5969
+ }
5970
5970
  var __read = exports && exports.__read || function(o, n) {
5971
5971
  var m = typeof Symbol === "function" && o[Symbol.iterator];
5972
5972
  if (!m)
@@ -6002,7 +6002,7 @@ var require_endWith = __commonJS((exports) => {
6002
6002
 
6003
6003
  // ../../node_modules/rxjs/dist/cjs/internal/operators/every.js
6004
6004
  var require_every = __commonJS((exports) => {
6005
- var every = function(predicate, thisArg) {
6005
+ function every(predicate, thisArg) {
6006
6006
  return lift_1.operate(function(source, subscriber) {
6007
6007
  var index = 0;
6008
6008
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
@@ -6015,7 +6015,7 @@ var require_every = __commonJS((exports) => {
6015
6015
  subscriber.complete();
6016
6016
  }));
6017
6017
  });
6018
- };
6018
+ }
6019
6019
  Object.defineProperty(exports, "__esModule", { value: true });
6020
6020
  exports.every = undefined;
6021
6021
  var lift_1 = require_lift();
@@ -6025,7 +6025,7 @@ var require_every = __commonJS((exports) => {
6025
6025
 
6026
6026
  // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js
6027
6027
  var require_exhaustMap = __commonJS((exports) => {
6028
- var exhaustMap = function(project, resultSelector) {
6028
+ function exhaustMap(project, resultSelector) {
6029
6029
  if (resultSelector) {
6030
6030
  return function(source) {
6031
6031
  return source.pipe(exhaustMap(function(a, i) {
@@ -6052,7 +6052,7 @@ var require_exhaustMap = __commonJS((exports) => {
6052
6052
  !innerSub && subscriber.complete();
6053
6053
  }));
6054
6054
  });
6055
- };
6055
+ }
6056
6056
  Object.defineProperty(exports, "__esModule", { value: true });
6057
6057
  exports.exhaustMap = undefined;
6058
6058
  var map_1 = require_map();
@@ -6064,9 +6064,9 @@ var require_exhaustMap = __commonJS((exports) => {
6064
6064
 
6065
6065
  // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js
6066
6066
  var require_exhaustAll = __commonJS((exports) => {
6067
- var exhaustAll = function() {
6067
+ function exhaustAll() {
6068
6068
  return exhaustMap_1.exhaustMap(identity_1.identity);
6069
- };
6069
+ }
6070
6070
  Object.defineProperty(exports, "__esModule", { value: true });
6071
6071
  exports.exhaustAll = undefined;
6072
6072
  var exhaustMap_1 = require_exhaustMap();
@@ -6084,7 +6084,7 @@ var require_exhaust = __commonJS((exports) => {
6084
6084
 
6085
6085
  // ../../node_modules/rxjs/dist/cjs/internal/operators/expand.js
6086
6086
  var require_expand = __commonJS((exports) => {
6087
- var expand = function(project, concurrent, scheduler) {
6087
+ function expand(project, concurrent, scheduler) {
6088
6088
  if (concurrent === undefined) {
6089
6089
  concurrent = Infinity;
6090
6090
  }
@@ -6092,7 +6092,7 @@ var require_expand = __commonJS((exports) => {
6092
6092
  return lift_1.operate(function(source, subscriber) {
6093
6093
  return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler);
6094
6094
  });
6095
- };
6095
+ }
6096
6096
  Object.defineProperty(exports, "__esModule", { value: true });
6097
6097
  exports.expand = undefined;
6098
6098
  var lift_1 = require_lift();
@@ -6102,7 +6102,7 @@ var require_expand = __commonJS((exports) => {
6102
6102
 
6103
6103
  // ../../node_modules/rxjs/dist/cjs/internal/operators/finalize.js
6104
6104
  var require_finalize = __commonJS((exports) => {
6105
- var finalize = function(callback) {
6105
+ function finalize(callback) {
6106
6106
  return lift_1.operate(function(source, subscriber) {
6107
6107
  try {
6108
6108
  source.subscribe(subscriber);
@@ -6110,7 +6110,7 @@ var require_finalize = __commonJS((exports) => {
6110
6110
  subscriber.add(callback);
6111
6111
  }
6112
6112
  });
6113
- };
6113
+ }
6114
6114
  Object.defineProperty(exports, "__esModule", { value: true });
6115
6115
  exports.finalize = undefined;
6116
6116
  var lift_1 = require_lift();
@@ -6119,10 +6119,10 @@ var require_finalize = __commonJS((exports) => {
6119
6119
 
6120
6120
  // ../../node_modules/rxjs/dist/cjs/internal/operators/find.js
6121
6121
  var require_find = __commonJS((exports) => {
6122
- var find = function(predicate, thisArg) {
6122
+ function find(predicate, thisArg) {
6123
6123
  return lift_1.operate(createFind(predicate, thisArg, "value"));
6124
- };
6125
- var createFind = function(predicate, thisArg, emit) {
6124
+ }
6125
+ function createFind(predicate, thisArg, emit) {
6126
6126
  var findIndex = emit === "index";
6127
6127
  return function(source, subscriber) {
6128
6128
  var index = 0;
@@ -6137,7 +6137,7 @@ var require_find = __commonJS((exports) => {
6137
6137
  subscriber.complete();
6138
6138
  }));
6139
6139
  };
6140
- };
6140
+ }
6141
6141
  Object.defineProperty(exports, "__esModule", { value: true });
6142
6142
  exports.createFind = exports.find = undefined;
6143
6143
  var lift_1 = require_lift();
@@ -6148,9 +6148,9 @@ var require_find = __commonJS((exports) => {
6148
6148
 
6149
6149
  // ../../node_modules/rxjs/dist/cjs/internal/operators/findIndex.js
6150
6150
  var require_findIndex = __commonJS((exports) => {
6151
- var findIndex = function(predicate, thisArg) {
6151
+ function findIndex(predicate, thisArg) {
6152
6152
  return lift_1.operate(find_1.createFind(predicate, thisArg, "index"));
6153
- };
6153
+ }
6154
6154
  Object.defineProperty(exports, "__esModule", { value: true });
6155
6155
  exports.findIndex = undefined;
6156
6156
  var lift_1 = require_lift();
@@ -6160,7 +6160,7 @@ var require_findIndex = __commonJS((exports) => {
6160
6160
 
6161
6161
  // ../../node_modules/rxjs/dist/cjs/internal/operators/first.js
6162
6162
  var require_first = __commonJS((exports) => {
6163
- var first = function(predicate, defaultValue) {
6163
+ function first(predicate, defaultValue) {
6164
6164
  var hasDefaultValue = arguments.length >= 2;
6165
6165
  return function(source) {
6166
6166
  return source.pipe(predicate ? filter_1.filter(function(v, i) {
@@ -6169,7 +6169,7 @@ var require_first = __commonJS((exports) => {
6169
6169
  return new EmptyError_1.EmptyError;
6170
6170
  }));
6171
6171
  };
6172
- };
6172
+ }
6173
6173
  Object.defineProperty(exports, "__esModule", { value: true });
6174
6174
  exports.first = undefined;
6175
6175
  var EmptyError_1 = require_EmptyError();
@@ -6183,7 +6183,7 @@ var require_first = __commonJS((exports) => {
6183
6183
 
6184
6184
  // ../../node_modules/rxjs/dist/cjs/internal/operators/groupBy.js
6185
6185
  var require_groupBy = __commonJS((exports) => {
6186
- var groupBy = function(keySelector, elementOrOptions, duration, connector) {
6186
+ function groupBy(keySelector, elementOrOptions, duration, connector) {
6187
6187
  return lift_1.operate(function(source, subscriber) {
6188
6188
  var element;
6189
6189
  if (!elementOrOptions || typeof elementOrOptions === "function") {
@@ -6249,7 +6249,7 @@ var require_groupBy = __commonJS((exports) => {
6249
6249
  return result;
6250
6250
  }
6251
6251
  });
6252
- };
6252
+ }
6253
6253
  Object.defineProperty(exports, "__esModule", { value: true });
6254
6254
  exports.groupBy = undefined;
6255
6255
  var Observable_1 = require_Observable();
@@ -6262,7 +6262,7 @@ var require_groupBy = __commonJS((exports) => {
6262
6262
 
6263
6263
  // ../../node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js
6264
6264
  var require_isEmpty = __commonJS((exports) => {
6265
- var isEmpty = function() {
6265
+ function isEmpty() {
6266
6266
  return lift_1.operate(function(source, subscriber) {
6267
6267
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
6268
6268
  subscriber.next(false);
@@ -6272,7 +6272,7 @@ var require_isEmpty = __commonJS((exports) => {
6272
6272
  subscriber.complete();
6273
6273
  }));
6274
6274
  });
6275
- };
6275
+ }
6276
6276
  Object.defineProperty(exports, "__esModule", { value: true });
6277
6277
  exports.isEmpty = undefined;
6278
6278
  var lift_1 = require_lift();
@@ -6282,7 +6282,7 @@ var require_isEmpty = __commonJS((exports) => {
6282
6282
 
6283
6283
  // ../../node_modules/rxjs/dist/cjs/internal/operators/takeLast.js
6284
6284
  var require_takeLast = __commonJS((exports) => {
6285
- var takeLast = function(count) {
6285
+ function takeLast(count) {
6286
6286
  return count <= 0 ? function() {
6287
6287
  return empty_1.EMPTY;
6288
6288
  } : lift_1.operate(function(source, subscriber) {
@@ -6313,7 +6313,7 @@ var require_takeLast = __commonJS((exports) => {
6313
6313
  buffer = null;
6314
6314
  }));
6315
6315
  });
6316
- };
6316
+ }
6317
6317
  var __values = exports && exports.__values || function(o) {
6318
6318
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6319
6319
  if (m)
@@ -6338,7 +6338,7 @@ var require_takeLast = __commonJS((exports) => {
6338
6338
 
6339
6339
  // ../../node_modules/rxjs/dist/cjs/internal/operators/last.js
6340
6340
  var require_last = __commonJS((exports) => {
6341
- var last = function(predicate, defaultValue) {
6341
+ function last(predicate, defaultValue) {
6342
6342
  var hasDefaultValue = arguments.length >= 2;
6343
6343
  return function(source) {
6344
6344
  return source.pipe(predicate ? filter_1.filter(function(v, i) {
@@ -6347,7 +6347,7 @@ var require_last = __commonJS((exports) => {
6347
6347
  return new EmptyError_1.EmptyError;
6348
6348
  }));
6349
6349
  };
6350
- };
6350
+ }
6351
6351
  Object.defineProperty(exports, "__esModule", { value: true });
6352
6352
  exports.last = undefined;
6353
6353
  var EmptyError_1 = require_EmptyError();
@@ -6361,7 +6361,7 @@ var require_last = __commonJS((exports) => {
6361
6361
 
6362
6362
  // ../../node_modules/rxjs/dist/cjs/internal/operators/materialize.js
6363
6363
  var require_materialize = __commonJS((exports) => {
6364
- var materialize = function() {
6364
+ function materialize() {
6365
6365
  return lift_1.operate(function(source, subscriber) {
6366
6366
  source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
6367
6367
  subscriber.next(Notification_1.Notification.createNext(value));
@@ -6373,7 +6373,7 @@ var require_materialize = __commonJS((exports) => {
6373
6373
  subscriber.complete();
6374
6374
  }));
6375
6375
  });
6376
- };
6376
+ }
6377
6377
  Object.defineProperty(exports, "__esModule", { value: true });
6378
6378
  exports.materialize = undefined;
6379
6379
  var Notification_1 = require_Notification();
@@ -6384,13 +6384,13 @@ var require_materialize = __commonJS((exports) => {
6384
6384
 
6385
6385
  // ../../node_modules/rxjs/dist/cjs/internal/operators/max.js
6386
6386
  var require_max = __commonJS((exports) => {
6387
- var max = function(comparer) {
6387
+ function max(comparer) {
6388
6388
  return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) {
6389
6389
  return comparer(x, y) > 0 ? x : y;
6390
6390
  } : function(x, y) {
6391
6391
  return x > y ? x : y;
6392
6392
  });
6393
- };
6393
+ }
6394
6394
  Object.defineProperty(exports, "__esModule", { value: true });
6395
6395
  exports.max = undefined;
6396
6396
  var reduce_1 = require_reduce();
@@ -6408,7 +6408,7 @@ var require_flatMap = __commonJS((exports) => {
6408
6408
 
6409
6409
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js
6410
6410
  var require_mergeMapTo = __commonJS((exports) => {
6411
- var mergeMapTo = function(innerObservable, resultSelector, concurrent) {
6411
+ function mergeMapTo(innerObservable, resultSelector, concurrent) {
6412
6412
  if (concurrent === undefined) {
6413
6413
  concurrent = Infinity;
6414
6414
  }
@@ -6423,7 +6423,7 @@ var require_mergeMapTo = __commonJS((exports) => {
6423
6423
  return mergeMap_1.mergeMap(function() {
6424
6424
  return innerObservable;
6425
6425
  }, concurrent);
6426
- };
6426
+ }
6427
6427
  Object.defineProperty(exports, "__esModule", { value: true });
6428
6428
  exports.mergeMapTo = undefined;
6429
6429
  var mergeMap_1 = require_mergeMap();
@@ -6433,7 +6433,7 @@ var require_mergeMapTo = __commonJS((exports) => {
6433
6433
 
6434
6434
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js
6435
6435
  var require_mergeScan = __commonJS((exports) => {
6436
- var mergeScan = function(accumulator, seed, concurrent) {
6436
+ function mergeScan(accumulator, seed, concurrent) {
6437
6437
  if (concurrent === undefined) {
6438
6438
  concurrent = Infinity;
6439
6439
  }
@@ -6447,7 +6447,7 @@ var require_mergeScan = __commonJS((exports) => {
6447
6447
  return state = null;
6448
6448
  });
6449
6449
  });
6450
- };
6450
+ }
6451
6451
  Object.defineProperty(exports, "__esModule", { value: true });
6452
6452
  exports.mergeScan = undefined;
6453
6453
  var lift_1 = require_lift();
@@ -6457,7 +6457,7 @@ var require_mergeScan = __commonJS((exports) => {
6457
6457
 
6458
6458
  // ../../node_modules/rxjs/dist/cjs/internal/operators/merge.js
6459
6459
  var require_merge2 = __commonJS((exports) => {
6460
- var merge = function() {
6460
+ function merge() {
6461
6461
  var args = [];
6462
6462
  for (var _i = 0;_i < arguments.length; _i++) {
6463
6463
  args[_i] = arguments[_i];
@@ -6468,7 +6468,7 @@ var require_merge2 = __commonJS((exports) => {
6468
6468
  return lift_1.operate(function(source, subscriber) {
6469
6469
  mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
6470
6470
  });
6471
- };
6471
+ }
6472
6472
  var __read = exports && exports.__read || function(o, n) {
6473
6473
  var m = typeof Symbol === "function" && o[Symbol.iterator];
6474
6474
  if (!m)
@@ -6507,13 +6507,13 @@ var require_merge2 = __commonJS((exports) => {
6507
6507
 
6508
6508
  // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js
6509
6509
  var require_mergeWith = __commonJS((exports) => {
6510
- var mergeWith = function() {
6510
+ function mergeWith() {
6511
6511
  var otherSources = [];
6512
6512
  for (var _i = 0;_i < arguments.length; _i++) {
6513
6513
  otherSources[_i] = arguments[_i];
6514
6514
  }
6515
6515
  return merge_1.merge.apply(undefined, __spreadArray([], __read(otherSources)));
6516
- };
6516
+ }
6517
6517
  var __read = exports && exports.__read || function(o, n) {
6518
6518
  var m = typeof Symbol === "function" && o[Symbol.iterator];
6519
6519
  if (!m)
@@ -6548,13 +6548,13 @@ var require_mergeWith = __commonJS((exports) => {
6548
6548
 
6549
6549
  // ../../node_modules/rxjs/dist/cjs/internal/operators/min.js
6550
6550
  var require_min = __commonJS((exports) => {
6551
- var min = function(comparer) {
6551
+ function min(comparer) {
6552
6552
  return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) {
6553
6553
  return comparer(x, y) < 0 ? x : y;
6554
6554
  } : function(x, y) {
6555
6555
  return x < y ? x : y;
6556
6556
  });
6557
- };
6557
+ }
6558
6558
  Object.defineProperty(exports, "__esModule", { value: true });
6559
6559
  exports.min = undefined;
6560
6560
  var reduce_1 = require_reduce();
@@ -6564,7 +6564,7 @@ var require_min = __commonJS((exports) => {
6564
6564
 
6565
6565
  // ../../node_modules/rxjs/dist/cjs/internal/operators/multicast.js
6566
6566
  var require_multicast = __commonJS((exports) => {
6567
- var multicast = function(subjectOrSubjectFactory, selector) {
6567
+ function multicast(subjectOrSubjectFactory, selector) {
6568
6568
  var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function() {
6569
6569
  return subjectOrSubjectFactory;
6570
6570
  };
@@ -6576,7 +6576,7 @@ var require_multicast = __commonJS((exports) => {
6576
6576
  return function(source) {
6577
6577
  return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory);
6578
6578
  };
6579
- };
6579
+ }
6580
6580
  Object.defineProperty(exports, "__esModule", { value: true });
6581
6581
  exports.multicast = undefined;
6582
6582
  var ConnectableObservable_1 = require_ConnectableObservable();
@@ -6587,7 +6587,7 @@ var require_multicast = __commonJS((exports) => {
6587
6587
 
6588
6588
  // ../../node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js
6589
6589
  var require_onErrorResumeNextWith = __commonJS((exports) => {
6590
- var onErrorResumeNextWith = function() {
6590
+ function onErrorResumeNextWith() {
6591
6591
  var sources = [];
6592
6592
  for (var _i = 0;_i < arguments.length; _i++) {
6593
6593
  sources[_i] = arguments[_i];
@@ -6596,7 +6596,7 @@ var require_onErrorResumeNextWith = __commonJS((exports) => {
6596
6596
  return function(source) {
6597
6597
  return onErrorResumeNext_1.onErrorResumeNext.apply(undefined, __spreadArray([source], __read(nextSources)));
6598
6598
  };
6599
- };
6599
+ }
6600
6600
  var __read = exports && exports.__read || function(o, n) {
6601
6601
  var m = typeof Symbol === "function" && o[Symbol.iterator];
6602
6602
  if (!m)
@@ -6633,7 +6633,7 @@ var require_onErrorResumeNextWith = __commonJS((exports) => {
6633
6633
 
6634
6634
  // ../../node_modules/rxjs/dist/cjs/internal/operators/pairwise.js
6635
6635
  var require_pairwise = __commonJS((exports) => {
6636
- var pairwise = function() {
6636
+ function pairwise() {
6637
6637
  return lift_1.operate(function(source, subscriber) {
6638
6638
  var prev;
6639
6639
  var hasPrev = false;
@@ -6644,7 +6644,7 @@ var require_pairwise = __commonJS((exports) => {
6644
6644
  hasPrev = true;
6645
6645
  }));
6646
6646
  });
6647
- };
6647
+ }
6648
6648
  Object.defineProperty(exports, "__esModule", { value: true });
6649
6649
  exports.pairwise = undefined;
6650
6650
  var lift_1 = require_lift();
@@ -6654,7 +6654,7 @@ var require_pairwise = __commonJS((exports) => {
6654
6654
 
6655
6655
  // ../../node_modules/rxjs/dist/cjs/internal/operators/pluck.js
6656
6656
  var require_pluck = __commonJS((exports) => {
6657
- var pluck = function() {
6657
+ function pluck() {
6658
6658
  var properties = [];
6659
6659
  for (var _i = 0;_i < arguments.length; _i++) {
6660
6660
  properties[_i] = arguments[_i];
@@ -6675,7 +6675,7 @@ var require_pluck = __commonJS((exports) => {
6675
6675
  }
6676
6676
  return currentProp;
6677
6677
  });
6678
- };
6678
+ }
6679
6679
  Object.defineProperty(exports, "__esModule", { value: true });
6680
6680
  exports.pluck = undefined;
6681
6681
  var map_1 = require_map();
@@ -6684,13 +6684,13 @@ var require_pluck = __commonJS((exports) => {
6684
6684
 
6685
6685
  // ../../node_modules/rxjs/dist/cjs/internal/operators/publish.js
6686
6686
  var require_publish = __commonJS((exports) => {
6687
- var publish = function(selector) {
6687
+ function publish(selector) {
6688
6688
  return selector ? function(source) {
6689
6689
  return connect_1.connect(selector)(source);
6690
6690
  } : function(source) {
6691
6691
  return multicast_1.multicast(new Subject_1.Subject)(source);
6692
6692
  };
6693
- };
6693
+ }
6694
6694
  Object.defineProperty(exports, "__esModule", { value: true });
6695
6695
  exports.publish = undefined;
6696
6696
  var Subject_1 = require_Subject();
@@ -6701,14 +6701,14 @@ var require_publish = __commonJS((exports) => {
6701
6701
 
6702
6702
  // ../../node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
6703
6703
  var require_publishBehavior = __commonJS((exports) => {
6704
- var publishBehavior = function(initialValue) {
6704
+ function publishBehavior(initialValue) {
6705
6705
  return function(source) {
6706
6706
  var subject = new BehaviorSubject_1.BehaviorSubject(initialValue);
6707
6707
  return new ConnectableObservable_1.ConnectableObservable(source, function() {
6708
6708
  return subject;
6709
6709
  });
6710
6710
  };
6711
- };
6711
+ }
6712
6712
  Object.defineProperty(exports, "__esModule", { value: true });
6713
6713
  exports.publishBehavior = undefined;
6714
6714
  var BehaviorSubject_1 = require_BehaviorSubject();
@@ -6718,14 +6718,14 @@ var require_publishBehavior = __commonJS((exports) => {
6718
6718
 
6719
6719
  // ../../node_modules/rxjs/dist/cjs/internal/operators/publishLast.js
6720
6720
  var require_publishLast = __commonJS((exports) => {
6721
- var publishLast = function() {
6721
+ function publishLast() {
6722
6722
  return function(source) {
6723
6723
  var subject = new AsyncSubject_1.AsyncSubject;
6724
6724
  return new ConnectableObservable_1.ConnectableObservable(source, function() {
6725
6725
  return subject;
6726
6726
  });
6727
6727
  };
6728
- };
6728
+ }
6729
6729
  Object.defineProperty(exports, "__esModule", { value: true });
6730
6730
  exports.publishLast = undefined;
6731
6731
  var AsyncSubject_1 = require_AsyncSubject();
@@ -6735,7 +6735,7 @@ var require_publishLast = __commonJS((exports) => {
6735
6735
 
6736
6736
  // ../../node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js
6737
6737
  var require_publishReplay = __commonJS((exports) => {
6738
- var publishReplay = function(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
6738
+ function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
6739
6739
  if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) {
6740
6740
  timestampProvider = selectorOrScheduler;
6741
6741
  }
@@ -6743,7 +6743,7 @@ var require_publishReplay = __commonJS((exports) => {
6743
6743
  return function(source) {
6744
6744
  return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source);
6745
6745
  };
6746
- };
6746
+ }
6747
6747
  Object.defineProperty(exports, "__esModule", { value: true });
6748
6748
  exports.publishReplay = undefined;
6749
6749
  var ReplaySubject_1 = require_ReplaySubject();
@@ -6754,7 +6754,7 @@ var require_publishReplay = __commonJS((exports) => {
6754
6754
 
6755
6755
  // ../../node_modules/rxjs/dist/cjs/internal/operators/raceWith.js
6756
6756
  var require_raceWith = __commonJS((exports) => {
6757
- var raceWith = function() {
6757
+ function raceWith() {
6758
6758
  var otherSources = [];
6759
6759
  for (var _i = 0;_i < arguments.length; _i++) {
6760
6760
  otherSources[_i] = arguments[_i];
@@ -6762,7 +6762,7 @@ var require_raceWith = __commonJS((exports) => {
6762
6762
  return !otherSources.length ? identity_1.identity : lift_1.operate(function(source, subscriber) {
6763
6763
  race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber);
6764
6764
  });
6765
- };
6765
+ }
6766
6766
  var __read = exports && exports.__read || function(o, n) {
6767
6767
  var m = typeof Symbol === "function" && o[Symbol.iterator];
6768
6768
  if (!m)
@@ -6799,7 +6799,7 @@ var require_raceWith = __commonJS((exports) => {
6799
6799
 
6800
6800
  // ../../node_modules/rxjs/dist/cjs/internal/operators/repeat.js
6801
6801
  var require_repeat = __commonJS((exports) => {
6802
- var repeat = function(countOrConfig) {
6802
+ function repeat(countOrConfig) {
6803
6803
  var _a;
6804
6804
  var count = Infinity;
6805
6805
  var delay;
@@ -6848,7 +6848,7 @@ var require_repeat = __commonJS((exports) => {
6848
6848
  };
6849
6849
  subscribeToSource();
6850
6850
  });
6851
- };
6851
+ }
6852
6852
  Object.defineProperty(exports, "__esModule", { value: true });
6853
6853
  exports.repeat = undefined;
6854
6854
  var empty_1 = require_empty();
@@ -6861,7 +6861,7 @@ var require_repeat = __commonJS((exports) => {
6861
6861
 
6862
6862
  // ../../node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js
6863
6863
  var require_repeatWhen = __commonJS((exports) => {
6864
- var repeatWhen = function(notifier) {
6864
+ function repeatWhen(notifier) {
6865
6865
  return lift_1.operate(function(source, subscriber) {
6866
6866
  var innerSub;
6867
6867
  var syncResub = false;
@@ -6902,7 +6902,7 @@ var require_repeatWhen = __commonJS((exports) => {
6902
6902
  };
6903
6903
  subscribeForRepeatWhen();
6904
6904
  });
6905
- };
6905
+ }
6906
6906
  Object.defineProperty(exports, "__esModule", { value: true });
6907
6907
  exports.repeatWhen = undefined;
6908
6908
  var innerFrom_1 = require_innerFrom();
@@ -6914,7 +6914,7 @@ var require_repeatWhen = __commonJS((exports) => {
6914
6914
 
6915
6915
  // ../../node_modules/rxjs/dist/cjs/internal/operators/retry.js
6916
6916
  var require_retry = __commonJS((exports) => {
6917
- var retry = function(configOrCount) {
6917
+ function retry(configOrCount) {
6918
6918
  if (configOrCount === undefined) {
6919
6919
  configOrCount = Infinity;
6920
6920
  }
@@ -6972,7 +6972,7 @@ var require_retry = __commonJS((exports) => {
6972
6972
  };
6973
6973
  subscribeForRetry();
6974
6974
  });
6975
- };
6975
+ }
6976
6976
  Object.defineProperty(exports, "__esModule", { value: true });
6977
6977
  exports.retry = undefined;
6978
6978
  var lift_1 = require_lift();
@@ -6985,7 +6985,7 @@ var require_retry = __commonJS((exports) => {
6985
6985
 
6986
6986
  // ../../node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js
6987
6987
  var require_retryWhen = __commonJS((exports) => {
6988
- var retryWhen = function(notifier) {
6988
+ function retryWhen(notifier) {
6989
6989
  return lift_1.operate(function(source, subscriber) {
6990
6990
  var innerSub;
6991
6991
  var syncResub = false;
@@ -7011,7 +7011,7 @@ var require_retryWhen = __commonJS((exports) => {
7011
7011
  };
7012
7012
  subscribeForRetryWhen();
7013
7013
  });
7014
- };
7014
+ }
7015
7015
  Object.defineProperty(exports, "__esModule", { value: true });
7016
7016
  exports.retryWhen = undefined;
7017
7017
  var innerFrom_1 = require_innerFrom();
@@ -7023,7 +7023,7 @@ var require_retryWhen = __commonJS((exports) => {
7023
7023
 
7024
7024
  // ../../node_modules/rxjs/dist/cjs/internal/operators/sample.js
7025
7025
  var require_sample = __commonJS((exports) => {
7026
- var sample = function(notifier) {
7026
+ function sample(notifier) {
7027
7027
  return lift_1.operate(function(source, subscriber) {
7028
7028
  var hasValue = false;
7029
7029
  var lastValue = null;
@@ -7040,7 +7040,7 @@ var require_sample = __commonJS((exports) => {
7040
7040
  }
7041
7041
  }, noop_1.noop));
7042
7042
  });
7043
- };
7043
+ }
7044
7044
  Object.defineProperty(exports, "__esModule", { value: true });
7045
7045
  exports.sample = undefined;
7046
7046
  var innerFrom_1 = require_innerFrom();
@@ -7052,12 +7052,12 @@ var require_sample = __commonJS((exports) => {
7052
7052
 
7053
7053
  // ../../node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js
7054
7054
  var require_sampleTime = __commonJS((exports) => {
7055
- var sampleTime = function(period, scheduler) {
7055
+ function sampleTime(period, scheduler) {
7056
7056
  if (scheduler === undefined) {
7057
7057
  scheduler = async_1.asyncScheduler;
7058
7058
  }
7059
7059
  return sample_1.sample(interval_1.interval(period, scheduler));
7060
- };
7060
+ }
7061
7061
  Object.defineProperty(exports, "__esModule", { value: true });
7062
7062
  exports.sampleTime = undefined;
7063
7063
  var async_1 = require_async();
@@ -7068,9 +7068,9 @@ var require_sampleTime = __commonJS((exports) => {
7068
7068
 
7069
7069
  // ../../node_modules/rxjs/dist/cjs/internal/operators/scan.js
7070
7070
  var require_scan = __commonJS((exports) => {
7071
- var scan = function(accumulator, seed) {
7071
+ function scan(accumulator, seed) {
7072
7072
  return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true));
7073
- };
7073
+ }
7074
7074
  Object.defineProperty(exports, "__esModule", { value: true });
7075
7075
  exports.scan = undefined;
7076
7076
  var lift_1 = require_lift();
@@ -7080,7 +7080,7 @@ var require_scan = __commonJS((exports) => {
7080
7080
 
7081
7081
  // ../../node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js
7082
7082
  var require_sequenceEqual = __commonJS((exports) => {
7083
- var sequenceEqual = function(compareTo, comparator) {
7083
+ function sequenceEqual(compareTo, comparator) {
7084
7084
  if (comparator === undefined) {
7085
7085
  comparator = function(a, b) {
7086
7086
  return a === b;
@@ -7112,13 +7112,13 @@ var require_sequenceEqual = __commonJS((exports) => {
7112
7112
  source.subscribe(createSubscriber(aState, bState));
7113
7113
  innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState));
7114
7114
  });
7115
- };
7116
- var createState = function() {
7115
+ }
7116
+ function createState() {
7117
7117
  return {
7118
7118
  buffer: [],
7119
7119
  complete: false
7120
7120
  };
7121
- };
7121
+ }
7122
7122
  Object.defineProperty(exports, "__esModule", { value: true });
7123
7123
  exports.sequenceEqual = undefined;
7124
7124
  var lift_1 = require_lift();
@@ -7129,7 +7129,7 @@ var require_sequenceEqual = __commonJS((exports) => {
7129
7129
 
7130
7130
  // ../../node_modules/rxjs/dist/cjs/internal/operators/share.js
7131
7131
  var require_share = __commonJS((exports) => {
7132
- var share = function(options) {
7132
+ function share(options) {
7133
7133
  if (options === undefined) {
7134
7134
  options = {};
7135
7135
  }
@@ -7192,8 +7192,8 @@ var require_share = __commonJS((exports) => {
7192
7192
  }
7193
7193
  })(wrapperSource);
7194
7194
  };
7195
- };
7196
- var handleReset = function(reset, on) {
7195
+ }
7196
+ function handleReset(reset, on) {
7197
7197
  var args = [];
7198
7198
  for (var _i = 2;_i < arguments.length; _i++) {
7199
7199
  args[_i - 2] = arguments[_i];
@@ -7212,7 +7212,7 @@ var require_share = __commonJS((exports) => {
7212
7212
  }
7213
7213
  });
7214
7214
  return innerFrom_1.innerFrom(on.apply(undefined, __spreadArray([], __read(args)))).subscribe(onSubscriber);
7215
- };
7215
+ }
7216
7216
  var __read = exports && exports.__read || function(o, n) {
7217
7217
  var m = typeof Symbol === "function" && o[Symbol.iterator];
7218
7218
  if (!m)
@@ -7250,7 +7250,7 @@ var require_share = __commonJS((exports) => {
7250
7250
 
7251
7251
  // ../../node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js
7252
7252
  var require_shareReplay = __commonJS((exports) => {
7253
- var shareReplay = function(configOrBufferSize, windowTime, scheduler) {
7253
+ function shareReplay(configOrBufferSize, windowTime, scheduler) {
7254
7254
  var _a, _b, _c;
7255
7255
  var bufferSize;
7256
7256
  var refCount = false;
@@ -7267,7 +7267,7 @@ var require_shareReplay = __commonJS((exports) => {
7267
7267
  resetOnComplete: false,
7268
7268
  resetOnRefCountZero: refCount
7269
7269
  });
7270
- };
7270
+ }
7271
7271
  Object.defineProperty(exports, "__esModule", { value: true });
7272
7272
  exports.shareReplay = undefined;
7273
7273
  var ReplaySubject_1 = require_ReplaySubject();
@@ -7277,7 +7277,7 @@ var require_shareReplay = __commonJS((exports) => {
7277
7277
 
7278
7278
  // ../../node_modules/rxjs/dist/cjs/internal/operators/single.js
7279
7279
  var require_single = __commonJS((exports) => {
7280
- var single = function(predicate) {
7280
+ function single(predicate) {
7281
7281
  return lift_1.operate(function(source, subscriber) {
7282
7282
  var hasValue = false;
7283
7283
  var singleValue;
@@ -7299,7 +7299,7 @@ var require_single = __commonJS((exports) => {
7299
7299
  }
7300
7300
  }));
7301
7301
  });
7302
- };
7302
+ }
7303
7303
  Object.defineProperty(exports, "__esModule", { value: true });
7304
7304
  exports.single = undefined;
7305
7305
  var EmptyError_1 = require_EmptyError();
@@ -7312,11 +7312,11 @@ var require_single = __commonJS((exports) => {
7312
7312
 
7313
7313
  // ../../node_modules/rxjs/dist/cjs/internal/operators/skip.js
7314
7314
  var require_skip = __commonJS((exports) => {
7315
- var skip = function(count) {
7315
+ function skip(count) {
7316
7316
  return filter_1.filter(function(_, index) {
7317
7317
  return count <= index;
7318
7318
  });
7319
- };
7319
+ }
7320
7320
  Object.defineProperty(exports, "__esModule", { value: true });
7321
7321
  exports.skip = undefined;
7322
7322
  var filter_1 = require_filter();
@@ -7325,7 +7325,7 @@ var require_skip = __commonJS((exports) => {
7325
7325
 
7326
7326
  // ../../node_modules/rxjs/dist/cjs/internal/operators/skipLast.js
7327
7327
  var require_skipLast = __commonJS((exports) => {
7328
- var skipLast = function(skipCount) {
7328
+ function skipLast(skipCount) {
7329
7329
  return skipCount <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) {
7330
7330
  var ring = new Array(skipCount);
7331
7331
  var seen = 0;
@@ -7344,7 +7344,7 @@ var require_skipLast = __commonJS((exports) => {
7344
7344
  ring = null;
7345
7345
  };
7346
7346
  });
7347
- };
7347
+ }
7348
7348
  Object.defineProperty(exports, "__esModule", { value: true });
7349
7349
  exports.skipLast = undefined;
7350
7350
  var identity_1 = require_identity();
@@ -7355,7 +7355,7 @@ var require_skipLast = __commonJS((exports) => {
7355
7355
 
7356
7356
  // ../../node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js
7357
7357
  var require_skipUntil = __commonJS((exports) => {
7358
- var skipUntil = function(notifier) {
7358
+ function skipUntil(notifier) {
7359
7359
  return lift_1.operate(function(source, subscriber) {
7360
7360
  var taking = false;
7361
7361
  var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
@@ -7367,7 +7367,7 @@ var require_skipUntil = __commonJS((exports) => {
7367
7367
  return taking && subscriber.next(value);
7368
7368
  }));
7369
7369
  });
7370
- };
7370
+ }
7371
7371
  Object.defineProperty(exports, "__esModule", { value: true });
7372
7372
  exports.skipUntil = undefined;
7373
7373
  var lift_1 = require_lift();
@@ -7379,7 +7379,7 @@ var require_skipUntil = __commonJS((exports) => {
7379
7379
 
7380
7380
  // ../../node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js
7381
7381
  var require_skipWhile = __commonJS((exports) => {
7382
- var skipWhile = function(predicate) {
7382
+ function skipWhile(predicate) {
7383
7383
  return lift_1.operate(function(source, subscriber) {
7384
7384
  var taking = false;
7385
7385
  var index = 0;
@@ -7387,7 +7387,7 @@ var require_skipWhile = __commonJS((exports) => {
7387
7387
  return (taking || (taking = !predicate(value, index++))) && subscriber.next(value);
7388
7388
  }));
7389
7389
  });
7390
- };
7390
+ }
7391
7391
  Object.defineProperty(exports, "__esModule", { value: true });
7392
7392
  exports.skipWhile = undefined;
7393
7393
  var lift_1 = require_lift();
@@ -7397,7 +7397,7 @@ var require_skipWhile = __commonJS((exports) => {
7397
7397
 
7398
7398
  // ../../node_modules/rxjs/dist/cjs/internal/operators/startWith.js
7399
7399
  var require_startWith = __commonJS((exports) => {
7400
- var startWith = function() {
7400
+ function startWith() {
7401
7401
  var values = [];
7402
7402
  for (var _i = 0;_i < arguments.length; _i++) {
7403
7403
  values[_i] = arguments[_i];
@@ -7406,7 +7406,7 @@ var require_startWith = __commonJS((exports) => {
7406
7406
  return lift_1.operate(function(source, subscriber) {
7407
7407
  (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber);
7408
7408
  });
7409
- };
7409
+ }
7410
7410
  Object.defineProperty(exports, "__esModule", { value: true });
7411
7411
  exports.startWith = undefined;
7412
7412
  var concat_1 = require_concat();
@@ -7417,7 +7417,7 @@ var require_startWith = __commonJS((exports) => {
7417
7417
 
7418
7418
  // ../../node_modules/rxjs/dist/cjs/internal/operators/switchMap.js
7419
7419
  var require_switchMap = __commonJS((exports) => {
7420
- var switchMap = function(project, resultSelector) {
7420
+ function switchMap(project, resultSelector) {
7421
7421
  return lift_1.operate(function(source, subscriber) {
7422
7422
  var innerSubscriber = null;
7423
7423
  var index = 0;
@@ -7440,7 +7440,7 @@ var require_switchMap = __commonJS((exports) => {
7440
7440
  checkComplete();
7441
7441
  }));
7442
7442
  });
7443
- };
7443
+ }
7444
7444
  Object.defineProperty(exports, "__esModule", { value: true });
7445
7445
  exports.switchMap = undefined;
7446
7446
  var innerFrom_1 = require_innerFrom();
@@ -7451,9 +7451,9 @@ var require_switchMap = __commonJS((exports) => {
7451
7451
 
7452
7452
  // ../../node_modules/rxjs/dist/cjs/internal/operators/switchAll.js
7453
7453
  var require_switchAll = __commonJS((exports) => {
7454
- var switchAll = function() {
7454
+ function switchAll() {
7455
7455
  return switchMap_1.switchMap(identity_1.identity);
7456
- };
7456
+ }
7457
7457
  Object.defineProperty(exports, "__esModule", { value: true });
7458
7458
  exports.switchAll = undefined;
7459
7459
  var switchMap_1 = require_switchMap();
@@ -7463,13 +7463,13 @@ var require_switchAll = __commonJS((exports) => {
7463
7463
 
7464
7464
  // ../../node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js
7465
7465
  var require_switchMapTo = __commonJS((exports) => {
7466
- var switchMapTo = function(innerObservable, resultSelector) {
7466
+ function switchMapTo(innerObservable, resultSelector) {
7467
7467
  return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function() {
7468
7468
  return innerObservable;
7469
7469
  }, resultSelector) : switchMap_1.switchMap(function() {
7470
7470
  return innerObservable;
7471
7471
  });
7472
- };
7472
+ }
7473
7473
  Object.defineProperty(exports, "__esModule", { value: true });
7474
7474
  exports.switchMapTo = undefined;
7475
7475
  var switchMap_1 = require_switchMap();
@@ -7479,7 +7479,7 @@ var require_switchMapTo = __commonJS((exports) => {
7479
7479
 
7480
7480
  // ../../node_modules/rxjs/dist/cjs/internal/operators/switchScan.js
7481
7481
  var require_switchScan = __commonJS((exports) => {
7482
- var switchScan = function(accumulator, seed) {
7482
+ function switchScan(accumulator, seed) {
7483
7483
  return lift_1.operate(function(source, subscriber) {
7484
7484
  var state = seed;
7485
7485
  switchMap_1.switchMap(function(value, index) {
@@ -7491,7 +7491,7 @@ var require_switchScan = __commonJS((exports) => {
7491
7491
  state = null;
7492
7492
  };
7493
7493
  });
7494
- };
7494
+ }
7495
7495
  Object.defineProperty(exports, "__esModule", { value: true });
7496
7496
  exports.switchScan = undefined;
7497
7497
  var switchMap_1 = require_switchMap();
@@ -7501,14 +7501,14 @@ var require_switchScan = __commonJS((exports) => {
7501
7501
 
7502
7502
  // ../../node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js
7503
7503
  var require_takeUntil = __commonJS((exports) => {
7504
- var takeUntil = function(notifier) {
7504
+ function takeUntil(notifier) {
7505
7505
  return lift_1.operate(function(source, subscriber) {
7506
7506
  innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
7507
7507
  return subscriber.complete();
7508
7508
  }, noop_1.noop));
7509
7509
  !subscriber.closed && source.subscribe(subscriber);
7510
7510
  });
7511
- };
7511
+ }
7512
7512
  Object.defineProperty(exports, "__esModule", { value: true });
7513
7513
  exports.takeUntil = undefined;
7514
7514
  var lift_1 = require_lift();
@@ -7520,7 +7520,7 @@ var require_takeUntil = __commonJS((exports) => {
7520
7520
 
7521
7521
  // ../../node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js
7522
7522
  var require_takeWhile = __commonJS((exports) => {
7523
- var takeWhile = function(predicate, inclusive) {
7523
+ function takeWhile(predicate, inclusive) {
7524
7524
  if (inclusive === undefined) {
7525
7525
  inclusive = false;
7526
7526
  }
@@ -7532,7 +7532,7 @@ var require_takeWhile = __commonJS((exports) => {
7532
7532
  !result && subscriber.complete();
7533
7533
  }));
7534
7534
  });
7535
- };
7535
+ }
7536
7536
  Object.defineProperty(exports, "__esModule", { value: true });
7537
7537
  exports.takeWhile = undefined;
7538
7538
  var lift_1 = require_lift();
@@ -7542,7 +7542,7 @@ var require_takeWhile = __commonJS((exports) => {
7542
7542
 
7543
7543
  // ../../node_modules/rxjs/dist/cjs/internal/operators/tap.js
7544
7544
  var require_tap = __commonJS((exports) => {
7545
- var tap = function(observerOrNext, error, complete) {
7545
+ function tap(observerOrNext, error, complete) {
7546
7546
  var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete ? { next: observerOrNext, error, complete } : observerOrNext;
7547
7547
  return tapObserver ? lift_1.operate(function(source, subscriber) {
7548
7548
  var _a;
@@ -7570,7 +7570,7 @@ var require_tap = __commonJS((exports) => {
7570
7570
  (_b = tapObserver.finalize) === null || _b === undefined || _b.call(tapObserver);
7571
7571
  }));
7572
7572
  }) : identity_1.identity;
7573
- };
7573
+ }
7574
7574
  Object.defineProperty(exports, "__esModule", { value: true });
7575
7575
  exports.tap = undefined;
7576
7576
  var isFunction_1 = require_isFunction();
@@ -7582,7 +7582,7 @@ var require_tap = __commonJS((exports) => {
7582
7582
 
7583
7583
  // ../../node_modules/rxjs/dist/cjs/internal/operators/throttle.js
7584
7584
  var require_throttle = __commonJS((exports) => {
7585
- var throttle = function(durationSelector, config) {
7585
+ function throttle(durationSelector, config) {
7586
7586
  return lift_1.operate(function(source, subscriber) {
7587
7587
  var _a = config !== null && config !== undefined ? config : {}, _b = _a.leading, leading = _b === undefined ? true : _b, _c = _a.trailing, trailing = _c === undefined ? false : _c;
7588
7588
  var hasValue = false;
@@ -7622,7 +7622,7 @@ var require_throttle = __commonJS((exports) => {
7622
7622
  !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
7623
7623
  }));
7624
7624
  });
7625
- };
7625
+ }
7626
7626
  Object.defineProperty(exports, "__esModule", { value: true });
7627
7627
  exports.throttle = undefined;
7628
7628
  var lift_1 = require_lift();
@@ -7633,7 +7633,7 @@ var require_throttle = __commonJS((exports) => {
7633
7633
 
7634
7634
  // ../../node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js
7635
7635
  var require_throttleTime = __commonJS((exports) => {
7636
- var throttleTime = function(duration, scheduler, config) {
7636
+ function throttleTime(duration, scheduler, config) {
7637
7637
  if (scheduler === undefined) {
7638
7638
  scheduler = async_1.asyncScheduler;
7639
7639
  }
@@ -7641,7 +7641,7 @@ var require_throttleTime = __commonJS((exports) => {
7641
7641
  return throttle_1.throttle(function() {
7642
7642
  return duration$;
7643
7643
  }, config);
7644
- };
7644
+ }
7645
7645
  Object.defineProperty(exports, "__esModule", { value: true });
7646
7646
  exports.throttleTime = undefined;
7647
7647
  var async_1 = require_async();
@@ -7652,7 +7652,7 @@ var require_throttleTime = __commonJS((exports) => {
7652
7652
 
7653
7653
  // ../../node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js
7654
7654
  var require_timeInterval = __commonJS((exports) => {
7655
- var timeInterval = function(scheduler) {
7655
+ function timeInterval(scheduler) {
7656
7656
  if (scheduler === undefined) {
7657
7657
  scheduler = async_1.asyncScheduler;
7658
7658
  }
@@ -7665,7 +7665,7 @@ var require_timeInterval = __commonJS((exports) => {
7665
7665
  subscriber.next(new TimeInterval(value, interval));
7666
7666
  }));
7667
7667
  });
7668
- };
7668
+ }
7669
7669
  Object.defineProperty(exports, "__esModule", { value: true });
7670
7670
  exports.TimeInterval = exports.timeInterval = undefined;
7671
7671
  var async_1 = require_async();
@@ -7684,7 +7684,7 @@ var require_timeInterval = __commonJS((exports) => {
7684
7684
 
7685
7685
  // ../../node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js
7686
7686
  var require_timeoutWith = __commonJS((exports) => {
7687
- var timeoutWith = function(due, withObservable, scheduler) {
7687
+ function timeoutWith(due, withObservable, scheduler) {
7688
7688
  var first;
7689
7689
  var each;
7690
7690
  var _with;
@@ -7710,7 +7710,7 @@ var require_timeoutWith = __commonJS((exports) => {
7710
7710
  scheduler,
7711
7711
  with: _with
7712
7712
  });
7713
- };
7713
+ }
7714
7714
  Object.defineProperty(exports, "__esModule", { value: true });
7715
7715
  exports.timeoutWith = undefined;
7716
7716
  var async_1 = require_async();
@@ -7721,14 +7721,14 @@ var require_timeoutWith = __commonJS((exports) => {
7721
7721
 
7722
7722
  // ../../node_modules/rxjs/dist/cjs/internal/operators/timestamp.js
7723
7723
  var require_timestamp = __commonJS((exports) => {
7724
- var timestamp = function(timestampProvider) {
7724
+ function timestamp(timestampProvider) {
7725
7725
  if (timestampProvider === undefined) {
7726
7726
  timestampProvider = dateTimestampProvider_1.dateTimestampProvider;
7727
7727
  }
7728
7728
  return map_1.map(function(value) {
7729
7729
  return { value, timestamp: timestampProvider.now() };
7730
7730
  });
7731
- };
7731
+ }
7732
7732
  Object.defineProperty(exports, "__esModule", { value: true });
7733
7733
  exports.timestamp = undefined;
7734
7734
  var dateTimestampProvider_1 = require_dateTimestampProvider();
@@ -7738,7 +7738,7 @@ var require_timestamp = __commonJS((exports) => {
7738
7738
 
7739
7739
  // ../../node_modules/rxjs/dist/cjs/internal/operators/window.js
7740
7740
  var require_window = __commonJS((exports) => {
7741
- var window2 = function(windowBoundaries) {
7741
+ function window2(windowBoundaries) {
7742
7742
  return lift_1.operate(function(source, subscriber) {
7743
7743
  var windowSubject = new Subject_1.Subject;
7744
7744
  subscriber.next(windowSubject.asObservable());
@@ -7761,7 +7761,7 @@ var require_window = __commonJS((exports) => {
7761
7761
  windowSubject = null;
7762
7762
  };
7763
7763
  });
7764
- };
7764
+ }
7765
7765
  Object.defineProperty(exports, "__esModule", { value: true });
7766
7766
  exports.window = undefined;
7767
7767
  var Subject_1 = require_Subject();
@@ -7774,7 +7774,7 @@ var require_window = __commonJS((exports) => {
7774
7774
 
7775
7775
  // ../../node_modules/rxjs/dist/cjs/internal/operators/windowCount.js
7776
7776
  var require_windowCount = __commonJS((exports) => {
7777
- var windowCount = function(windowSize, startWindowEvery) {
7777
+ function windowCount(windowSize, startWindowEvery) {
7778
7778
  if (startWindowEvery === undefined) {
7779
7779
  startWindowEvery = 0;
7780
7780
  }
@@ -7826,7 +7826,7 @@ var require_windowCount = __commonJS((exports) => {
7826
7826
  windows = null;
7827
7827
  }));
7828
7828
  });
7829
- };
7829
+ }
7830
7830
  var __values = exports && exports.__values || function(o) {
7831
7831
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
7832
7832
  if (m)
@@ -7851,7 +7851,7 @@ var require_windowCount = __commonJS((exports) => {
7851
7851
 
7852
7852
  // ../../node_modules/rxjs/dist/cjs/internal/operators/windowTime.js
7853
7853
  var require_windowTime = __commonJS((exports) => {
7854
- var windowTime = function(windowTimeSpan) {
7854
+ function windowTime(windowTimeSpan) {
7855
7855
  var _a, _b;
7856
7856
  var otherArgs = [];
7857
7857
  for (var _i = 1;_i < arguments.length; _i++) {
@@ -7922,7 +7922,7 @@ var require_windowTime = __commonJS((exports) => {
7922
7922
  windowRecords = null;
7923
7923
  };
7924
7924
  });
7925
- };
7925
+ }
7926
7926
  Object.defineProperty(exports, "__esModule", { value: true });
7927
7927
  exports.windowTime = undefined;
7928
7928
  var Subject_1 = require_Subject();
@@ -7938,7 +7938,7 @@ var require_windowTime = __commonJS((exports) => {
7938
7938
 
7939
7939
  // ../../node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js
7940
7940
  var require_windowToggle = __commonJS((exports) => {
7941
- var windowToggle = function(openings, closingSelector) {
7941
+ function windowToggle(openings, closingSelector) {
7942
7942
  return lift_1.operate(function(source, subscriber) {
7943
7943
  var windows = [];
7944
7944
  var handleError = function(err) {
@@ -7996,7 +7996,7 @@ var require_windowToggle = __commonJS((exports) => {
7996
7996
  }
7997
7997
  }));
7998
7998
  });
7999
- };
7999
+ }
8000
8000
  var __values = exports && exports.__values || function(o) {
8001
8001
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
8002
8002
  if (m)
@@ -8025,7 +8025,7 @@ var require_windowToggle = __commonJS((exports) => {
8025
8025
 
8026
8026
  // ../../node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js
8027
8027
  var require_windowWhen = __commonJS((exports) => {
8028
- var windowWhen = function(closingSelector) {
8028
+ function windowWhen(closingSelector) {
8029
8029
  return lift_1.operate(function(source, subscriber) {
8030
8030
  var window2;
8031
8031
  var closingSubscriber;
@@ -8058,7 +8058,7 @@ var require_windowWhen = __commonJS((exports) => {
8058
8058
  window2 = null;
8059
8059
  }));
8060
8060
  });
8061
- };
8061
+ }
8062
8062
  Object.defineProperty(exports, "__esModule", { value: true });
8063
8063
  exports.windowWhen = undefined;
8064
8064
  var Subject_1 = require_Subject();
@@ -8070,7 +8070,7 @@ var require_windowWhen = __commonJS((exports) => {
8070
8070
 
8071
8071
  // ../../node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js
8072
8072
  var require_withLatestFrom = __commonJS((exports) => {
8073
- var withLatestFrom = function() {
8073
+ function withLatestFrom() {
8074
8074
  var inputs = [];
8075
8075
  for (var _i = 0;_i < arguments.length; _i++) {
8076
8076
  inputs[_i] = arguments[_i];
@@ -8102,7 +8102,7 @@ var require_withLatestFrom = __commonJS((exports) => {
8102
8102
  }
8103
8103
  }));
8104
8104
  });
8105
- };
8105
+ }
8106
8106
  var __read = exports && exports.__read || function(o, n) {
8107
8107
  var m = typeof Symbol === "function" && o[Symbol.iterator];
8108
8108
  if (!m)
@@ -8142,9 +8142,9 @@ var require_withLatestFrom = __commonJS((exports) => {
8142
8142
 
8143
8143
  // ../../node_modules/rxjs/dist/cjs/internal/operators/zipAll.js
8144
8144
  var require_zipAll = __commonJS((exports) => {
8145
- var zipAll = function(project) {
8145
+ function zipAll(project) {
8146
8146
  return joinAllInternals_1.joinAllInternals(zip_1.zip, project);
8147
- };
8147
+ }
8148
8148
  Object.defineProperty(exports, "__esModule", { value: true });
8149
8149
  exports.zipAll = undefined;
8150
8150
  var zip_1 = require_zip();
@@ -8154,7 +8154,7 @@ var require_zipAll = __commonJS((exports) => {
8154
8154
 
8155
8155
  // ../../node_modules/rxjs/dist/cjs/internal/operators/zip.js
8156
8156
  var require_zip2 = __commonJS((exports) => {
8157
- var zip = function() {
8157
+ function zip() {
8158
8158
  var sources = [];
8159
8159
  for (var _i = 0;_i < arguments.length; _i++) {
8160
8160
  sources[_i] = arguments[_i];
@@ -8162,7 +8162,7 @@ var require_zip2 = __commonJS((exports) => {
8162
8162
  return lift_1.operate(function(source, subscriber) {
8163
8163
  zip_1.zip.apply(undefined, __spreadArray([source], __read(sources))).subscribe(subscriber);
8164
8164
  });
8165
- };
8165
+ }
8166
8166
  var __read = exports && exports.__read || function(o, n) {
8167
8167
  var m = typeof Symbol === "function" && o[Symbol.iterator];
8168
8168
  if (!m)
@@ -8198,13 +8198,13 @@ var require_zip2 = __commonJS((exports) => {
8198
8198
 
8199
8199
  // ../../node_modules/rxjs/dist/cjs/internal/operators/zipWith.js
8200
8200
  var require_zipWith = __commonJS((exports) => {
8201
- var zipWith = function() {
8201
+ function zipWith() {
8202
8202
  var otherInputs = [];
8203
8203
  for (var _i = 0;_i < arguments.length; _i++) {
8204
8204
  otherInputs[_i] = arguments[_i];
8205
8205
  }
8206
8206
  return zip_1.zip.apply(undefined, __spreadArray([], __read(otherInputs)));
8207
- };
8207
+ }
8208
8208
  var __read = exports && exports.__read || function(o, n) {
8209
8209
  var m = typeof Symbol === "function" && o[Symbol.iterator];
8210
8210
  if (!m)
@@ -8949,351 +8949,97 @@ var require_cjs = __commonJS((exports) => {
8949
8949
  } });
8950
8950
  });
8951
8951
 
8952
- // elements/optional.ts
8953
- class ArcOptional {
8954
- parent;
8955
- constructor(parent) {
8956
- this.parent = parent;
8957
- }
8958
- parse(value) {
8959
- if (!value)
8960
- return;
8961
- return this.parent.parse(value);
8952
+ // ../../node_modules/mutative/dist/mutative.esm.mjs
8953
+ function latest(proxyDraft) {
8954
+ var _a;
8955
+ return (_a = proxyDraft.copy) !== null && _a !== undefined ? _a : proxyDraft.original;
8956
+ }
8957
+ function isDraft(target) {
8958
+ return !!getProxyDraft(target);
8959
+ }
8960
+ function getProxyDraft(value) {
8961
+ if (typeof value !== "object")
8962
+ return null;
8963
+ return value === null || value === undefined ? undefined : value[PROXY_DRAFT];
8964
+ }
8965
+ function getValue(value) {
8966
+ var _a;
8967
+ const proxyDraft = getProxyDraft(value);
8968
+ return proxyDraft ? (_a = proxyDraft.copy) !== null && _a !== undefined ? _a : proxyDraft.original : value;
8969
+ }
8970
+ function isDraftable(value, options) {
8971
+ if (!value || typeof value !== "object")
8972
+ return false;
8973
+ let markResult;
8974
+ return Object.getPrototypeOf(value) === Object.prototype || Array.isArray(value) || value instanceof Map || value instanceof Set || !!(options === null || options === undefined ? undefined : options.mark) && ((markResult = options.mark(value, dataTypes)) === dataTypes.immutable || typeof markResult === "function");
8975
+ }
8976
+ function getPath(target, path = []) {
8977
+ if (Object.hasOwnProperty.call(target, "key")) {
8978
+ const proxyDraft = getProxyDraft(get(target.parent.copy, target.key));
8979
+ if (proxyDraft !== null && (proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.original) !== target.original) {
8980
+ return null;
8981
+ }
8982
+ path.push(target.parent.type === 3 ? Array.from(target.parent.setMap.keys()).indexOf(target.key) : target.key);
8962
8983
  }
8963
- serialize(value) {
8964
- if (value)
8965
- return this.parent.serialize(value);
8966
- return;
8984
+ if (target.parent) {
8985
+ return getPath(target.parent, path);
8967
8986
  }
8968
- deserialize(value) {
8969
- if (!value)
8970
- return;
8971
- return this.parent.deserialize(value);
8987
+ return path.reverse();
8988
+ }
8989
+ function getType(target) {
8990
+ if (Array.isArray(target))
8991
+ return 1;
8992
+ if (target instanceof Map)
8993
+ return 2;
8994
+ if (target instanceof Set)
8995
+ return 3;
8996
+ return 0;
8997
+ }
8998
+ function get(target, key) {
8999
+ return getType(target) === 2 ? target.get(key) : target[key];
9000
+ }
9001
+ function set(target, key, value) {
9002
+ const type = getType(target);
9003
+ if (type === 2) {
9004
+ target.set(key, value);
9005
+ } else {
9006
+ target[key] = value;
8972
9007
  }
8973
9008
  }
8974
-
8975
- // elements/branded.ts
8976
- class ArcBranded {
8977
- parent;
8978
- brand;
8979
- constructor(parent, brand) {
8980
- this.parent = parent;
8981
- this.brand = brand;
8982
- }
8983
- serialize(value) {
8984
- return this.parent.serialize(value);
8985
- }
8986
- deserialize(value) {
8987
- return this.parent.deserialize(value);
8988
- }
8989
- parse(value) {
8990
- return this.parent.parse(value);
8991
- }
8992
- optional() {
8993
- return new ArcOptional(this);
8994
- }
8995
- }
8996
-
8997
- // elements/default.ts
8998
- class ArcDefault {
8999
- parent;
9000
- defaultValueOrCallback;
9001
- constructor(parent, defaultValueOrCallback) {
9002
- this.parent = parent;
9003
- this.defaultValueOrCallback = defaultValueOrCallback;
9004
- }
9005
- parse(value) {
9006
- if (value)
9007
- return this.parent.parse(value);
9008
- if (typeof this.defaultValueOrCallback === "function") {
9009
- return this.defaultValueOrCallback();
9010
- } else
9011
- return this.defaultValueOrCallback;
9012
- }
9013
- serialize(value) {
9014
- return this.parent.serialize(value);
9015
- }
9016
- deserialize(value) {
9017
- if (value)
9018
- return this.parent.deserialize(value);
9019
- if (typeof this.defaultValueOrCallback === "function") {
9020
- return this.defaultValueOrCallback();
9021
- } else
9022
- return this.defaultValueOrCallback;
9023
- }
9024
- }
9025
-
9026
- // elements/abstract.ts
9027
- class ArcAbstract {
9028
- default(defaultValueOrCallback) {
9029
- return new ArcDefault(this, defaultValueOrCallback);
9030
- }
9031
- optional() {
9032
- return new ArcOptional(this);
9033
- }
9034
- branded(name) {
9035
- return new ArcBranded(this, name);
9036
- }
9037
- }
9038
-
9039
- // elements/object.ts
9040
- function object(element) {
9041
- return new ArcObject(element);
9042
- }
9043
-
9044
- class ArcObject extends ArcAbstract {
9045
- rawShape;
9046
- constructor(rawShape) {
9047
- super();
9048
- this.rawShape = rawShape;
9049
- }
9050
- parse(value) {
9051
- return Object.entries(this.rawShape).reduce((acc, [key, element]) => {
9052
- acc[key] = element.parse(value[key]);
9053
- return acc;
9054
- }, {});
9055
- }
9056
- serialize(value) {
9057
- return Object.entries(value).reduce((acc, [key, value2]) => {
9058
- if (!this.rawShape[key]) {
9059
- acc[key] = value2;
9060
- } else {
9061
- acc[key] = this.rawShape[key].serialize(value2);
9062
- }
9063
- return acc;
9064
- }, {});
9065
- }
9066
- deserialize(value) {
9067
- return Object.fromEntries(Object.entries(this.rawShape).filter(([key]) => (key in value)).map(([key, element]) => [key, element.deserialize(value[key])]));
9068
- }
9069
- deserializePath(path, value) {
9070
- if (path.length === 0) {
9071
- return this.deserialize(value);
9072
- }
9073
- const [key, ...restPath] = path;
9074
- const element = this.rawShape[key];
9075
- if (!element) {
9076
- console.warn(`No element found for key: ${key}`);
9077
- return value;
9078
- }
9079
- if (element instanceof ArcObject || element instanceof ArcArray) {
9080
- return element.deserializePath(restPath, value);
9081
- }
9082
- return element.deserialize(value);
9083
- }
9084
- }
9085
-
9086
- // elements/array.ts
9087
- function array2(element) {
9088
- return new ArcArray(element);
9089
- }
9090
-
9091
- class ArcArray extends ArcAbstract {
9092
- parent;
9093
- constructor(parent) {
9094
- super();
9095
- this.parent = parent;
9096
- }
9097
- parse(value) {
9098
- return value.map((v) => this.parent.parse(v));
9099
- }
9100
- serialize(value) {
9101
- return value.map((v) => this.parent.serialize(v));
9102
- }
9103
- deserialize(value) {
9104
- return value.map((v) => this.parent.deserialize(v));
9105
- }
9106
- deserializePath(path, value) {
9107
- if (path.length === 0) {
9108
- return this.deserialize(value);
9109
- }
9110
- if (this.parent instanceof ArcObject || this.parent instanceof ArcArray) {
9111
- return this.parent.deserializePath(path, value);
9112
- }
9113
- return this.parent.deserialize(value);
9114
- }
9115
- }
9116
- // elements/date.ts
9117
- function date() {
9118
- return new ArcDate;
9119
- }
9120
-
9121
- class ArcDate extends ArcAbstract {
9122
- constructor() {
9123
- super();
9124
- }
9125
- parse(value) {
9126
- return new Date(value);
9127
- }
9128
- serialize(value) {
9129
- return value.toString();
9130
- }
9131
- deserialize(value) {
9132
- return new Date(value);
9133
- }
9134
- }
9135
- // elements/abstract-primitive.ts
9136
- class ArcPrimitive extends ArcAbstract {
9137
- constructor() {
9138
- super();
9139
- }
9140
- serialize(value) {
9141
- return value;
9142
- }
9143
- parse(value) {
9144
- return value;
9145
- }
9146
- deserialize(value) {
9147
- return value;
9148
- }
9149
- }
9150
-
9151
- // elements/string.ts
9152
- function string() {
9153
- return new ArcString;
9154
- }
9155
-
9156
- class ArcString extends ArcPrimitive {
9157
- }
9158
-
9159
- // elements/id.ts
9160
- function id(name) {
9161
- return new ArcId(name);
9162
- }
9163
-
9164
- class ArcId extends ArcBranded {
9165
- constructor(name) {
9166
- super(string(), name);
9167
- }
9168
- generate() {
9169
- var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
9170
- return timestamp + "xxxxxxxxxxxxxxxx".replace(/[x]/g, function() {
9171
- return (Math.random() * 16 | 0).toString(16);
9172
- }).toLowerCase();
9173
- }
9174
- }
9175
- // elements/number.ts
9176
- function number() {
9177
- return new ArcNumber;
9178
- }
9179
-
9180
- class ArcNumber extends ArcPrimitive {
9181
- }
9182
- // elements/string-enum.ts
9183
- function stringEnum(...values) {
9184
- return new ArcStringEnum(values);
9185
- }
9186
-
9187
- class ArcStringEnum extends ArcAbstract {
9188
- values;
9189
- constructor(values) {
9190
- super();
9191
- this.values = values;
9192
- }
9193
- parse(value) {
9194
- return value;
9195
- }
9196
- serialize(value) {
9197
- return value;
9198
- }
9199
- deserialize(value) {
9200
- return value;
9201
- }
9202
- getEnumerators() {
9203
- return this.values;
9204
- }
9205
- }
9206
- // ../../node_modules/mutative/dist/mutative.esm.mjs
9207
- var latest = function(proxyDraft) {
9208
- var _a;
9209
- return (_a = proxyDraft.copy) !== null && _a !== undefined ? _a : proxyDraft.original;
9210
- };
9211
- var isDraft = function(target) {
9212
- return !!getProxyDraft(target);
9213
- };
9214
- var getProxyDraft = function(value) {
9215
- if (typeof value !== "object")
9216
- return null;
9217
- return value === null || value === undefined ? undefined : value[PROXY_DRAFT];
9218
- };
9219
- var getValue = function(value) {
9220
- var _a;
9221
- const proxyDraft = getProxyDraft(value);
9222
- return proxyDraft ? (_a = proxyDraft.copy) !== null && _a !== undefined ? _a : proxyDraft.original : value;
9223
- };
9224
- var isDraftable = function(value, options) {
9225
- if (!value || typeof value !== "object")
9226
- return false;
9227
- let markResult;
9228
- return Object.getPrototypeOf(value) === Object.prototype || Array.isArray(value) || value instanceof Map || value instanceof Set || !!(options === null || options === undefined ? undefined : options.mark) && ((markResult = options.mark(value, dataTypes)) === dataTypes.immutable || typeof markResult === "function");
9229
- };
9230
- var getPath = function(target, path = []) {
9231
- if (Object.hasOwnProperty.call(target, "key")) {
9232
- const proxyDraft = getProxyDraft(get(target.parent.copy, target.key));
9233
- if (proxyDraft !== null && (proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.original) !== target.original) {
9234
- return null;
9235
- }
9236
- path.push(target.parent.type === 3 ? Array.from(target.parent.setMap.keys()).indexOf(target.key) : target.key);
9237
- }
9238
- if (target.parent) {
9239
- return getPath(target.parent, path);
9240
- }
9241
- return path.reverse();
9242
- };
9243
- var getType = function(target) {
9244
- if (Array.isArray(target))
9245
- return 1;
9246
- if (target instanceof Map)
9247
- return 2;
9248
- if (target instanceof Set)
9249
- return 3;
9250
- return 0;
9251
- };
9252
- var get = function(target, key) {
9253
- return getType(target) === 2 ? target.get(key) : target[key];
9254
- };
9255
- var set = function(target, key, value) {
9256
- const type = getType(target);
9257
- if (type === 2) {
9258
- target.set(key, value);
9259
- } else {
9260
- target[key] = value;
9261
- }
9262
- };
9263
- var peek = function(target, key) {
9009
+ function peek(target, key) {
9264
9010
  const state = getProxyDraft(target);
9265
9011
  const source = state ? latest(state) : target;
9266
9012
  return source[key];
9267
- };
9268
- var isEqual = function(x, y) {
9013
+ }
9014
+ function isEqual(x, y) {
9269
9015
  if (x === y) {
9270
9016
  return x !== 0 || 1 / x === 1 / y;
9271
9017
  } else {
9272
9018
  return x !== x && y !== y;
9273
9019
  }
9274
- };
9275
- var revokeProxy = function(proxyDraft) {
9020
+ }
9021
+ function revokeProxy(proxyDraft) {
9276
9022
  if (!proxyDraft)
9277
9023
  return;
9278
9024
  while (proxyDraft.finalities.revoke.length > 0) {
9279
9025
  const revoke = proxyDraft.finalities.revoke.pop();
9280
9026
  revoke();
9281
9027
  }
9282
- };
9283
- var escapePath = function(path, pathAsArray) {
9028
+ }
9029
+ function escapePath(path, pathAsArray) {
9284
9030
  return pathAsArray ? path : [""].concat(path).map((_item) => {
9285
9031
  const item = `${_item}`;
9286
9032
  if (item.indexOf("/") === -1 && item.indexOf("~") === -1)
9287
9033
  return item;
9288
9034
  return item.replace(/~/g, "~0").replace(/\//g, "~1");
9289
9035
  }).join("/");
9290
- };
9291
- var unescapePath = function(path) {
9036
+ }
9037
+ function unescapePath(path) {
9292
9038
  if (Array.isArray(path))
9293
9039
  return path;
9294
9040
  return path.split("/").map((_item) => _item.replace(/~1/g, "/").replace(/~0/g, "~")).slice(1);
9295
- };
9296
- var strictCopy = function(target) {
9041
+ }
9042
+ function strictCopy(target) {
9297
9043
  const copy = Object.create(Object.getPrototypeOf(target));
9298
9044
  Reflect.ownKeys(target).forEach((key) => {
9299
9045
  let desc = Reflect.getOwnPropertyDescriptor(target, key);
@@ -9315,8 +9061,8 @@ var strictCopy = function(target) {
9315
9061
  Reflect.defineProperty(copy, key, desc);
9316
9062
  });
9317
9063
  return copy;
9318
- };
9319
- var shallowCopy = function(original, options) {
9064
+ }
9065
+ function shallowCopy(original, options) {
9320
9066
  let markResult;
9321
9067
  if (Array.isArray(original)) {
9322
9068
  return Array.prototype.concat.call(original);
@@ -9348,13 +9094,13 @@ var shallowCopy = function(original, options) {
9348
9094
  } else {
9349
9095
  throw new Error(`Please check mark() to ensure that it is a stable marker draftable function.`);
9350
9096
  }
9351
- };
9352
- var ensureShallowCopy = function(target) {
9097
+ }
9098
+ function ensureShallowCopy(target) {
9353
9099
  if (target.copy)
9354
9100
  return;
9355
9101
  target.copy = shallowCopy(target.original, target.options);
9356
- };
9357
- var deepClone = function(target) {
9102
+ }
9103
+ function deepClone(target) {
9358
9104
  if (!isDraftable(target))
9359
9105
  return getValue(target);
9360
9106
  if (Array.isArray(target))
@@ -9367,11 +9113,11 @@ var deepClone = function(target) {
9367
9113
  for (const key in target)
9368
9114
  copy[key] = deepClone(target[key]);
9369
9115
  return copy;
9370
- };
9371
- var cloneIfNeeded = function(target) {
9116
+ }
9117
+ function cloneIfNeeded(target) {
9372
9118
  return isDraft(target) ? deepClone(target) : target;
9373
- };
9374
- var markChanged = function(proxyDraft) {
9119
+ }
9120
+ function markChanged(proxyDraft) {
9375
9121
  var _a;
9376
9122
  proxyDraft.assignedMap = (_a = proxyDraft.assignedMap) !== null && _a !== undefined ? _a : new Map;
9377
9123
  if (!proxyDraft.operated) {
@@ -9380,11 +9126,11 @@ var markChanged = function(proxyDraft) {
9380
9126
  markChanged(proxyDraft.parent);
9381
9127
  }
9382
9128
  }
9383
- };
9384
- var throwFrozenError = function() {
9129
+ }
9130
+ function throwFrozenError() {
9385
9131
  throw new Error("Cannot modify frozen object");
9386
- };
9387
- var deepFreeze = function(target, subKey, updatedValues, stack, keys) {
9132
+ }
9133
+ function deepFreeze(target, subKey, updatedValues, stack, keys) {
9388
9134
  {
9389
9135
  updatedValues = updatedValues !== null && updatedValues !== undefined ? updatedValues : new WeakMap;
9390
9136
  stack = stack !== null && stack !== undefined ? stack : [];
@@ -9452,11 +9198,11 @@ var deepFreeze = function(target, subKey, updatedValues, stack, keys) {
9452
9198
  stack.pop();
9453
9199
  keys.pop();
9454
9200
  }
9455
- };
9456
- var has = function(target, key) {
9201
+ }
9202
+ function has(target, key) {
9457
9203
  return target instanceof Map ? target.has(key) : Object.prototype.hasOwnProperty.call(target, key);
9458
- };
9459
- var getDescriptor = function(target, key) {
9204
+ }
9205
+ function getDescriptor(target, key) {
9460
9206
  if (key in target) {
9461
9207
  let prototype = Reflect.getPrototypeOf(target);
9462
9208
  while (prototype) {
@@ -9467,8 +9213,8 @@ var getDescriptor = function(target, key) {
9467
9213
  }
9468
9214
  }
9469
9215
  return;
9470
- };
9471
- var forEach = function(target, iter) {
9216
+ }
9217
+ function forEach(target, iter) {
9472
9218
  const type = getType(target);
9473
9219
  if (type === 0) {
9474
9220
  Reflect.ownKeys(target).forEach((key) => {
@@ -9483,8 +9229,8 @@ var forEach = function(target, iter) {
9483
9229
  } else {
9484
9230
  target.forEach((entry, index) => iter(index, entry, target));
9485
9231
  }
9486
- };
9487
- var handleValue = function(target, handledSet, options) {
9232
+ }
9233
+ function handleValue(target, handledSet, options) {
9488
9234
  if (isDraft(target) || !isDraftable(target, options) || handledSet.has(target) || Object.isFrozen(target))
9489
9235
  return;
9490
9236
  const isSet = target instanceof Set;
@@ -9509,22 +9255,22 @@ var handleValue = function(target, handledSet, options) {
9509
9255
  set2.add(setMap.has(value) ? setMap.get(value) : value);
9510
9256
  });
9511
9257
  }
9512
- };
9513
- var finalizeAssigned = function(proxyDraft, key) {
9258
+ }
9259
+ function finalizeAssigned(proxyDraft, key) {
9514
9260
  const copy = proxyDraft.type === 3 ? proxyDraft.setMap : proxyDraft.copy;
9515
9261
  if (proxyDraft.finalities.revoke.length > 1 && proxyDraft.assignedMap.get(key) && copy) {
9516
9262
  handleValue(get(copy, key), proxyDraft.finalities.handledSet, proxyDraft.options);
9517
9263
  }
9518
- };
9519
- var finalizeSetValue = function(target) {
9264
+ }
9265
+ function finalizeSetValue(target) {
9520
9266
  if (target.type === 3 && target.copy) {
9521
9267
  target.copy.clear();
9522
9268
  target.setMap.forEach((value) => {
9523
9269
  target.copy.add(getValue(value));
9524
9270
  });
9525
9271
  }
9526
- };
9527
- var finalizePatches = function(target, generatePatches, patches, inversePatches) {
9272
+ }
9273
+ function finalizePatches(target, generatePatches, patches, inversePatches) {
9528
9274
  const shouldFinalize = target.operated && target.assignedMap && target.assignedMap.size > 0 && !target.finalized;
9529
9275
  if (shouldFinalize) {
9530
9276
  if (patches && inversePatches) {
@@ -9535,8 +9281,8 @@ var finalizePatches = function(target, generatePatches, patches, inversePatches)
9535
9281
  }
9536
9282
  target.finalized = true;
9537
9283
  }
9538
- };
9539
- var markFinalization = function(target, key, value, generatePatches) {
9284
+ }
9285
+ function markFinalization(target, key, value, generatePatches) {
9540
9286
  const proxyDraft = getProxyDraft(value);
9541
9287
  if (proxyDraft) {
9542
9288
  if (!proxyDraft.callbacks) {
@@ -9573,8 +9319,8 @@ var markFinalization = function(target, key, value, generatePatches) {
9573
9319
  }
9574
9320
  });
9575
9321
  }
9576
- };
9577
- var generateArrayPatches = function(proxyState, basePath, patches, inversePatches, pathAsArray) {
9322
+ }
9323
+ function generateArrayPatches(proxyState, basePath, patches, inversePatches, pathAsArray) {
9578
9324
  let { original, assignedMap, options } = proxyState;
9579
9325
  let copy = proxyState.copy;
9580
9326
  if (copy.length < original.length) {
@@ -9627,8 +9373,8 @@ var generateArrayPatches = function(proxyState, basePath, patches, inversePatche
9627
9373
  }
9628
9374
  }
9629
9375
  }
9630
- };
9631
- var generatePatchesFromAssigned = function({ original, copy, assignedMap }, basePath, patches, inversePatches, pathAsArray) {
9376
+ }
9377
+ function generatePatchesFromAssigned({ original, copy, assignedMap }, basePath, patches, inversePatches, pathAsArray) {
9632
9378
  assignedMap.forEach((assignedValue, key) => {
9633
9379
  const originalValue = get(original, key);
9634
9380
  const value = cloneIfNeeded(get(copy, key));
@@ -9640,8 +9386,8 @@ var generatePatchesFromAssigned = function({ original, copy, assignedMap }, base
9640
9386
  patches.push(op === Operation.Remove ? { op, path } : { op, path, value });
9641
9387
  inversePatches.push(op === Operation.Add ? { op: Operation.Remove, path } : op === Operation.Remove ? { op: Operation.Add, path, value: originalValue } : { op: Operation.Replace, path, value: originalValue });
9642
9388
  });
9643
- };
9644
- var generateSetPatches = function({ original, copy }, basePath, patches, inversePatches, pathAsArray) {
9389
+ }
9390
+ function generateSetPatches({ original, copy }, basePath, patches, inversePatches, pathAsArray) {
9645
9391
  let index = 0;
9646
9392
  original.forEach((value) => {
9647
9393
  if (!copy.has(value)) {
@@ -9678,8 +9424,8 @@ var generateSetPatches = function({ original, copy }, basePath, patches, inverse
9678
9424
  }
9679
9425
  index += 1;
9680
9426
  });
9681
- };
9682
- var generatePatches = function(proxyState, basePath, patches, inversePatches) {
9427
+ }
9428
+ function generatePatches(proxyState, basePath, patches, inversePatches) {
9683
9429
  const { pathAsArray = true } = proxyState.options.enablePatches;
9684
9430
  switch (proxyState.type) {
9685
9431
  case 0:
@@ -9690,8 +9436,8 @@ var generatePatches = function(proxyState, basePath, patches, inversePatches) {
9690
9436
  case 3:
9691
9437
  return generateSetPatches(proxyState, basePath, patches, inversePatches, pathAsArray);
9692
9438
  }
9693
- };
9694
- var createDraft = function(createDraftOptions) {
9439
+ }
9440
+ function createDraft(createDraftOptions) {
9695
9441
  const { original, parentDraft, key, finalities, options } = createDraftOptions;
9696
9442
  const type = getType(original);
9697
9443
  const proxyDraft = {
@@ -9745,8 +9491,8 @@ var createDraft = function(createDraftOptions) {
9745
9491
  });
9746
9492
  }
9747
9493
  return proxy;
9748
- };
9749
- var finalizeDraft = function(result, returnedValue, patches, inversePatches, enableAutoFreeze) {
9494
+ }
9495
+ function finalizeDraft(result, returnedValue, patches, inversePatches, enableAutoFreeze) {
9750
9496
  var _a;
9751
9497
  const proxyDraft = getProxyDraft(result);
9752
9498
  const original = (_a = proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.original) !== null && _a !== undefined ? _a : result;
@@ -9768,8 +9514,8 @@ var finalizeDraft = function(result, returnedValue, patches, inversePatches, ena
9768
9514
  patches && hasReturnedValue ? [{ op: Operation.Replace, path: [], value: returnedValue[0] }] : patches,
9769
9515
  inversePatches && hasReturnedValue ? [{ op: Operation.Replace, path: [], value: original }] : inversePatches
9770
9516
  ];
9771
- };
9772
- var draftify = function(baseState, options) {
9517
+ }
9518
+ function draftify(baseState, options) {
9773
9519
  var _a;
9774
9520
  const finalities = {
9775
9521
  draft: [],
@@ -9796,8 +9542,8 @@ var draftify = function(baseState, options) {
9796
9542
  return options.enablePatches ? [finalizedState, finalizedPatches, finalizedInversePatches] : finalizedState;
9797
9543
  }
9798
9544
  ];
9799
- };
9800
- var handleReturnValue = function(options) {
9545
+ }
9546
+ function handleReturnValue(options) {
9801
9547
  const { rootDraft, value, useRawReturn = false, isRoot = true } = options;
9802
9548
  forEach(value, (key, item, source) => {
9803
9549
  const proxyDraft = getProxyDraft(item);
@@ -9824,8 +9570,8 @@ var handleReturnValue = function(options) {
9824
9570
  console.warn(`The return value contains drafts, please don't use 'rawReturn()' to wrap the return value.`);
9825
9571
  }
9826
9572
  }
9827
- };
9828
- var getCurrent = function(target) {
9573
+ }
9574
+ function getCurrent(target) {
9829
9575
  const proxyDraft = getProxyDraft(target);
9830
9576
  if (!isDraftable(target, proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.options))
9831
9577
  return target;
@@ -9857,14 +9603,14 @@ var getCurrent = function(target) {
9857
9603
  }
9858
9604
  });
9859
9605
  return type === 3 ? new Set(currentValue) : currentValue;
9860
- };
9861
- var current = function(target) {
9606
+ }
9607
+ function current(target) {
9862
9608
  if (!isDraft(target)) {
9863
9609
  throw new Error(`current() is only used for Draft, parameter: ${target}`);
9864
9610
  }
9865
9611
  return getCurrent(target);
9866
- };
9867
- var apply = function(state, patches, applyOptions) {
9612
+ }
9613
+ function apply(state, patches, applyOptions) {
9868
9614
  let i;
9869
9615
  for (i = patches.length - 1;i >= 0; i -= 1) {
9870
9616
  const { value, op, path } = patches[i];
@@ -9943,7 +9689,7 @@ var apply = function(state, patches, applyOptions) {
9943
9689
  return state;
9944
9690
  }
9945
9691
  return create(state, mutate, Object.assign(Object.assign({}, applyOptions), { enablePatches: false }));
9946
- };
9692
+ }
9947
9693
  var Operation = {
9948
9694
  Remove: "remove",
9949
9695
  Replace: "replace",
@@ -10518,8 +10264,8 @@ class QueryCollectionResult {
10518
10264
  constructor(result) {
10519
10265
  this.result = result;
10520
10266
  }
10521
- get(id2) {
10522
- return this.result.find((r) => r._id === id2);
10267
+ get(id) {
10268
+ return this.result.find((r) => r._id === id);
10523
10269
  }
10524
10270
  map(callbackfn) {
10525
10271
  return this.result.map(callbackfn);
@@ -10649,10 +10395,10 @@ class ArcIndexedItemsQueryBuilder extends ArcManyItemsQueryBuilder {
10649
10395
 
10650
10396
  // collection/queries/one-item.ts
10651
10397
  class ArcOneItemQuery extends ArcCollectionQuery {
10652
- id2;
10653
- constructor(collection, id2) {
10398
+ id;
10399
+ constructor(collection, id) {
10654
10400
  super(collection);
10655
- this.id = id2;
10401
+ this.id = id;
10656
10402
  }
10657
10403
  onChange(change) {
10658
10404
  if (change.type === "delete" && change.id === this.id)
@@ -10671,11 +10417,11 @@ class ArcOneItemQuery extends ArcCollectionQuery {
10671
10417
  // collection/query-builders/one-item.ts
10672
10418
  class ArcOneItemQueryBuilder extends ArcQueryBuilder {
10673
10419
  collection;
10674
- id2;
10675
- constructor(collection, id2) {
10420
+ id;
10421
+ constructor(collection, id) {
10676
10422
  super();
10677
10423
  this.collection = collection;
10678
- this.id = id2;
10424
+ this.id = id;
10679
10425
  }
10680
10426
  toQuery() {
10681
10427
  return new ArcOneItemQuery(this.collection, this.id);
@@ -10683,17 +10429,17 @@ class ArcOneItemQueryBuilder extends ArcQueryBuilder {
10683
10429
  }
10684
10430
 
10685
10431
  // collection/collection.ts
10686
- function collection(name, id2, schema) {
10687
- return new ArcCollection(name, id2, schema);
10432
+ function collection(name, id, schema) {
10433
+ return new ArcCollection(name, id, schema);
10688
10434
  }
10689
10435
 
10690
10436
  class ArcCollection {
10691
10437
  name;
10692
- id2;
10438
+ id;
10693
10439
  schema;
10694
- constructor(name, id2, schema) {
10440
+ constructor(name, id, schema) {
10695
10441
  this.name = name;
10696
- this.id = id2;
10442
+ this.id = id;
10697
10443
  this.schema = schema;
10698
10444
  }
10699
10445
  serialize(data) {
@@ -10711,37 +10457,37 @@ class ArcCollection {
10711
10457
  queryBuilder() {
10712
10458
  return {
10713
10459
  all: () => new ArcAllItemsQueryBuilder(this),
10714
- one: (id2) => new ArcOneItemQueryBuilder(this, id2)
10460
+ one: (id) => new ArcOneItemQueryBuilder(this, id)
10715
10461
  };
10716
10462
  }
10717
10463
  commandContext(transaction, changes, getDraft) {
10718
10464
  return {
10719
10465
  add: (data) => {
10720
- const id2 = this.id.generate();
10466
+ const id = this.id.generate();
10721
10467
  const parsed = this.schema.parse(data);
10722
10468
  const body = {
10723
- _id: id2,
10469
+ _id: id,
10724
10470
  ...parsed
10725
10471
  };
10726
10472
  changes.push({ type: "set", collection: this.name, body });
10727
- return { id: id2 };
10473
+ return { id };
10728
10474
  },
10729
- remove: (id2) => {
10730
- changes.push({ type: "delete", collection: this.name, id: id2 });
10475
+ remove: (id) => {
10476
+ changes.push({ type: "delete", collection: this.name, id });
10731
10477
  return { success: true };
10732
10478
  },
10733
- set: (id2, data) => {
10479
+ set: (id, data) => {
10734
10480
  const parsed = this.schema.parse(data);
10735
10481
  const body = {
10736
- _id: id2,
10482
+ _id: id,
10737
10483
  ...parsed
10738
10484
  };
10739
10485
  changes.push({ type: "set", collection: this.name, body });
10740
10486
  return { success: true };
10741
10487
  },
10742
- one: async (id2) => {
10743
- const object3 = await transaction.findById(this, id2);
10744
- return getDraft(this.name, object3);
10488
+ one: async (id) => {
10489
+ const object = await transaction.findById(this, id);
10490
+ return getDraft(this.name, object);
10745
10491
  }
10746
10492
  };
10747
10493
  }
@@ -10776,8 +10522,8 @@ class ArcCollection {
10776
10522
 
10777
10523
  class ArcIndexedCollection extends ArcCollection {
10778
10524
  indexes;
10779
- constructor(name, id2, schema, indexes) {
10780
- super(name, id2, schema);
10525
+ constructor(name, id, schema, indexes) {
10526
+ super(name, id, schema);
10781
10527
  this.indexes = indexes;
10782
10528
  }
10783
10529
  queryBuilder() {
@@ -10804,46 +10550,46 @@ class ArcContext {
10804
10550
  collectionsMap;
10805
10551
  constructor(collections) {
10806
10552
  this.collections = collections;
10807
- this.collectionsMap = Object.fromEntries(collections.map((collection2) => [collection2.name, collection2]));
10553
+ this.collectionsMap = Object.fromEntries(collections.map((collection3) => [collection3.name, collection3]));
10808
10554
  }
10809
10555
  queryBuilder() {
10810
10556
  return new Proxy({}, {
10811
10557
  get: (target, name) => {
10812
- const collection2 = this.collectionsMap[name];
10813
- if (!collection2) {
10558
+ const collection3 = this.collectionsMap[name];
10559
+ if (!collection3) {
10814
10560
  throw new Error(`Collection "${name}" not found`);
10815
10561
  }
10816
- return collection2.queryBuilder();
10562
+ return collection3.queryBuilder();
10817
10563
  }
10818
10564
  });
10819
10565
  }
10820
10566
  commandContext(transaction) {
10821
10567
  const changes = [];
10822
10568
  const collectionDrafts = [];
10823
- function getDraft(collection2, base) {
10569
+ function getDraft(collection3, base) {
10824
10570
  const [draft, finalize2] = create(base, { enablePatches: true });
10825
10571
  collectionDrafts.push({
10826
- collection: collection2,
10572
+ collection: collection3,
10827
10573
  finalize: finalize2
10828
10574
  });
10829
10575
  return draft;
10830
10576
  }
10831
10577
  const contextProxy = new Proxy({}, {
10832
10578
  get: (target, name) => {
10833
- const collection2 = this.collectionsMap[name];
10834
- if (!collection2) {
10579
+ const collection3 = this.collectionsMap[name];
10580
+ if (!collection3) {
10835
10581
  throw new Error(`Collection "${name}" not found`);
10836
10582
  }
10837
- return collection2.commandContext(transaction, changes, getDraft);
10583
+ return collection3.commandContext(transaction, changes, getDraft);
10838
10584
  }
10839
10585
  });
10840
10586
  function finalize() {
10841
- for (const { finalize: finalize2, collection: collection2 } of collectionDrafts) {
10842
- const [object3, patches, inversePatches] = finalize2();
10587
+ for (const { finalize: finalize2, collection: collection3 } of collectionDrafts) {
10588
+ const [object, patches, inversePatches] = finalize2();
10843
10589
  changes.push({
10844
10590
  type: "mutate",
10845
- collection: collection2,
10846
- id: object3._id,
10591
+ collection: collection3,
10592
+ id: object._id,
10847
10593
  patches
10848
10594
  });
10849
10595
  }
@@ -10852,11 +10598,11 @@ class ArcContext {
10852
10598
  return { context: contextProxy, finalize };
10853
10599
  }
10854
10600
  async applyChange(transaction, change, events) {
10855
- const collection2 = this.collectionsMap[change.collection];
10856
- if (!collection2) {
10601
+ const collection3 = this.collectionsMap[change.collection];
10602
+ if (!collection3) {
10857
10603
  throw new Error(`Collection "${change.collection}" not found`);
10858
10604
  }
10859
- return collection2.applyChange(transaction, change, events);
10605
+ return collection3.applyChange(transaction, change, events);
10860
10606
  }
10861
10607
  withCommands(commands) {
10862
10608
  return new ArcContextWithCommands(this.collections, commands);
@@ -10870,19 +10616,273 @@ class ArcContextWithCommands extends ArcContext {
10870
10616
  this.commands = commands;
10871
10617
  }
10872
10618
  }
10619
+ // elements/optional.ts
10620
+ class ArcOptional {
10621
+ parent;
10622
+ constructor(parent) {
10623
+ this.parent = parent;
10624
+ }
10625
+ parse(value) {
10626
+ if (!value)
10627
+ return;
10628
+ return this.parent.parse(value);
10629
+ }
10630
+ serialize(value) {
10631
+ if (value)
10632
+ return this.parent.serialize(value);
10633
+ return;
10634
+ }
10635
+ deserialize(value) {
10636
+ if (!value)
10637
+ return;
10638
+ return this.parent.deserialize(value);
10639
+ }
10640
+ }
10641
+
10642
+ // elements/branded.ts
10643
+ class ArcBranded {
10644
+ parent;
10645
+ brand;
10646
+ constructor(parent, brand) {
10647
+ this.parent = parent;
10648
+ this.brand = brand;
10649
+ }
10650
+ serialize(value) {
10651
+ return this.parent.serialize(value);
10652
+ }
10653
+ deserialize(value) {
10654
+ return this.parent.deserialize(value);
10655
+ }
10656
+ parse(value) {
10657
+ return this.parent.parse(value);
10658
+ }
10659
+ optional() {
10660
+ return new ArcOptional(this);
10661
+ }
10662
+ }
10663
+
10664
+ // elements/default.ts
10665
+ class ArcDefault {
10666
+ parent;
10667
+ defaultValueOrCallback;
10668
+ constructor(parent, defaultValueOrCallback) {
10669
+ this.parent = parent;
10670
+ this.defaultValueOrCallback = defaultValueOrCallback;
10671
+ }
10672
+ parse(value) {
10673
+ if (value)
10674
+ return this.parent.parse(value);
10675
+ if (typeof this.defaultValueOrCallback === "function") {
10676
+ return this.defaultValueOrCallback();
10677
+ } else
10678
+ return this.defaultValueOrCallback;
10679
+ }
10680
+ serialize(value) {
10681
+ return this.parent.serialize(value);
10682
+ }
10683
+ deserialize(value) {
10684
+ if (value)
10685
+ return this.parent.deserialize(value);
10686
+ if (typeof this.defaultValueOrCallback === "function") {
10687
+ return this.defaultValueOrCallback();
10688
+ } else
10689
+ return this.defaultValueOrCallback;
10690
+ }
10691
+ }
10692
+
10693
+ // elements/abstract.ts
10694
+ class ArcAbstract {
10695
+ default(defaultValueOrCallback) {
10696
+ return new ArcDefault(this, defaultValueOrCallback);
10697
+ }
10698
+ optional() {
10699
+ return new ArcOptional(this);
10700
+ }
10701
+ branded(name) {
10702
+ return new ArcBranded(this, name);
10703
+ }
10704
+ }
10705
+
10706
+ // elements/object.ts
10707
+ function object(element) {
10708
+ return new ArcObject(element);
10709
+ }
10710
+
10711
+ class ArcObject extends ArcAbstract {
10712
+ rawShape;
10713
+ constructor(rawShape) {
10714
+ super();
10715
+ this.rawShape = rawShape;
10716
+ }
10717
+ parse(value) {
10718
+ return Object.entries(this.rawShape).reduce((acc, [key, element]) => {
10719
+ acc[key] = element.parse(value[key]);
10720
+ return acc;
10721
+ }, {});
10722
+ }
10723
+ serialize(value) {
10724
+ return Object.entries(value).reduce((acc, [key, value2]) => {
10725
+ if (!this.rawShape[key]) {
10726
+ acc[key] = value2;
10727
+ } else {
10728
+ acc[key] = this.rawShape[key].serialize(value2);
10729
+ }
10730
+ return acc;
10731
+ }, {});
10732
+ }
10733
+ deserialize(value) {
10734
+ return Object.fromEntries(Object.entries(this.rawShape).filter(([key]) => (key in value)).map(([key, element]) => [key, element.deserialize(value[key])]));
10735
+ }
10736
+ deserializePath(path, value) {
10737
+ if (path.length === 0) {
10738
+ return this.deserialize(value);
10739
+ }
10740
+ const [key, ...restPath] = path;
10741
+ const element = this.rawShape[key];
10742
+ if (!element) {
10743
+ console.warn(`No element found for key: ${key}`);
10744
+ return value;
10745
+ }
10746
+ if (element instanceof ArcObject || element instanceof ArcArray) {
10747
+ return element.deserializePath(restPath, value);
10748
+ }
10749
+ return element.deserialize(value);
10750
+ }
10751
+ }
10752
+
10753
+ // elements/array.ts
10754
+ function array2(element) {
10755
+ return new ArcArray(element);
10756
+ }
10757
+
10758
+ class ArcArray extends ArcAbstract {
10759
+ parent;
10760
+ constructor(parent) {
10761
+ super();
10762
+ this.parent = parent;
10763
+ }
10764
+ parse(value) {
10765
+ return value.map((v) => this.parent.parse(v));
10766
+ }
10767
+ serialize(value) {
10768
+ return value.map((v) => this.parent.serialize(v));
10769
+ }
10770
+ deserialize(value) {
10771
+ return value.map((v) => this.parent.deserialize(v));
10772
+ }
10773
+ deserializePath(path, value) {
10774
+ if (path.length === 0) {
10775
+ return this.deserialize(value);
10776
+ }
10777
+ if (this.parent instanceof ArcObject || this.parent instanceof ArcArray) {
10778
+ return this.parent.deserializePath(path, value);
10779
+ }
10780
+ return this.parent.deserialize(value);
10781
+ }
10782
+ }
10783
+ // elements/date.ts
10784
+ function date() {
10785
+ return new ArcDate;
10786
+ }
10787
+
10788
+ class ArcDate extends ArcAbstract {
10789
+ constructor() {
10790
+ super();
10791
+ }
10792
+ parse(value) {
10793
+ return new Date(value);
10794
+ }
10795
+ serialize(value) {
10796
+ return value.toString();
10797
+ }
10798
+ deserialize(value) {
10799
+ return new Date(value);
10800
+ }
10801
+ }
10802
+ // elements/abstract-primitive.ts
10803
+ class ArcPrimitive extends ArcAbstract {
10804
+ constructor() {
10805
+ super();
10806
+ }
10807
+ serialize(value) {
10808
+ return value;
10809
+ }
10810
+ parse(value) {
10811
+ return value;
10812
+ }
10813
+ deserialize(value) {
10814
+ return value;
10815
+ }
10816
+ }
10817
+
10818
+ // elements/string.ts
10819
+ function string() {
10820
+ return new ArcString;
10821
+ }
10822
+
10823
+ class ArcString extends ArcPrimitive {
10824
+ }
10825
+
10826
+ // elements/id.ts
10827
+ function id(name) {
10828
+ return new ArcId(name);
10829
+ }
10830
+
10831
+ class ArcId extends ArcBranded {
10832
+ constructor(name) {
10833
+ super(string(), name);
10834
+ }
10835
+ generate() {
10836
+ var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
10837
+ return timestamp + "xxxxxxxxxxxxxxxx".replace(/[x]/g, function() {
10838
+ return (Math.random() * 16 | 0).toString(16);
10839
+ }).toLowerCase();
10840
+ }
10841
+ }
10842
+ // elements/number.ts
10843
+ function number() {
10844
+ return new ArcNumber;
10845
+ }
10846
+
10847
+ class ArcNumber extends ArcPrimitive {
10848
+ }
10849
+ // elements/string-enum.ts
10850
+ function stringEnum(...values) {
10851
+ return new ArcStringEnum(values);
10852
+ }
10853
+
10854
+ class ArcStringEnum extends ArcAbstract {
10855
+ values;
10856
+ constructor(values) {
10857
+ super();
10858
+ this.values = values;
10859
+ }
10860
+ parse(value) {
10861
+ return value;
10862
+ }
10863
+ serialize(value) {
10864
+ return value;
10865
+ }
10866
+ deserialize(value) {
10867
+ return value;
10868
+ }
10869
+ getEnumerators() {
10870
+ return this.values;
10871
+ }
10872
+ }
10873
10873
  // model/model.ts
10874
10874
  var import_rxjs2 = __toESM(require_cjs(), 1);
10875
- function model(context2, dependencies) {
10876
- return new ArcModel(context2, dependencies.dbAdapterFactory, dependencies.rtcAdapterFactory);
10875
+ function model(context3, dependencies) {
10876
+ return new ArcModel(context3, dependencies.dbAdapterFactory, dependencies.rtcAdapterFactory);
10877
10877
  }
10878
10878
 
10879
10879
  class ArcModel {
10880
- context2;
10880
+ context3;
10881
10881
  rtc;
10882
10882
  dbAdapterPromise;
10883
10883
  changes$ = new import_rxjs2.Subject;
10884
- constructor(context2, dbAdapterFactory, rtcAdapterFactory) {
10885
- this.context = context2;
10884
+ constructor(context3, dbAdapterFactory, rtcAdapterFactory) {
10885
+ this.context = context3;
10886
10886
  this.rtc = rtcAdapterFactory(this);
10887
10887
  this.dbAdapterPromise = dbAdapterFactory(this.context);
10888
10888
  }
@@ -10915,8 +10915,8 @@ class ArcModel {
10915
10915
  async executeCommand(command, ...args) {
10916
10916
  const dbAdapter = await this.dbAdapterPromise;
10917
10917
  const transaction = await dbAdapter.readWriteTransaction(this.context.collections);
10918
- const { context: context2, finalize } = await this.context.commandContext(transaction);
10919
- const result = await command(context2, ...args);
10918
+ const { context: context3, finalize } = await this.context.commandContext(transaction);
10919
+ const result = await command(context3, ...args);
10920
10920
  const changes = await finalize();
10921
10921
  await this.applyChangesForTransaction(transaction, changes);
10922
10922
  this.rtc.commandExecuted(command.name, changes);
@@ -10972,13 +10972,13 @@ function deserializeChanges(changes, getCollection) {
10972
10972
 
10973
10973
  // rtc/client.ts
10974
10974
  class RTCClient {
10975
- model2;
10975
+ model3;
10976
10976
  _socket;
10977
10977
  openSocket;
10978
10978
  reconnectAttempts = 0;
10979
10979
  maxReconnectAttempts = 5;
10980
- constructor(model2) {
10981
- this.model = model2;
10980
+ constructor(model3) {
10981
+ this.model = model3;
10982
10982
  this.connect();
10983
10983
  }
10984
10984
  connect() {
@@ -11024,20 +11024,20 @@ class RTCClient {
11024
11024
  switch (message.type) {
11025
11025
  case "sync-result":
11026
11026
  {
11027
- const { collection: collection2, items } = message;
11028
- const c = this.model.getCollection(collection2);
11027
+ const { collection: collection3, items } = message;
11028
+ const c = this.model.getCollection(collection3);
11029
11029
  if (!c) {
11030
- console.error(`Collection ${collection2} not found`);
11030
+ console.error(`Collection ${collection3} not found`);
11031
11031
  return;
11032
11032
  }
11033
11033
  const deserializedItems = items.map((item) => c.schema.deserialize(item));
11034
11034
  this.model.executeCommand(async (ctx) => {
11035
11035
  for (const item of deserializedItems) {
11036
- const id2 = item._id;
11036
+ const id3 = item._id;
11037
11037
  if (!item)
11038
- await ctx[collection2].remove(id2);
11038
+ await ctx[collection3].remove(id3);
11039
11039
  else
11040
- await ctx[collection2].set(id2, item);
11040
+ await ctx[collection3].set(id3, item);
11041
11041
  }
11042
11042
  });
11043
11043
  }
@@ -11058,8 +11058,8 @@ class RTCClient {
11058
11058
  socket.send(JSON.stringify(message));
11059
11059
  }
11060
11060
  }
11061
- var rtcClientFactory = (model2) => {
11062
- return new RTCClient(model2);
11061
+ var rtcClientFactory = (model3) => {
11062
+ return new RTCClient(model3);
11063
11063
  };
11064
11064
  export {
11065
11065
  stringEnum,
@@ -11074,9 +11074,16 @@ export {
11074
11074
  context,
11075
11075
  collection,
11076
11076
  array2 as array,
11077
+ ArcStringEnum,
11077
11078
  ArcString,
11079
+ ArcOptional,
11080
+ ArcObject,
11078
11081
  ArcNumber,
11079
11082
  ArcModel,
11083
+ ArcIndexedCollection,
11084
+ ArcId,
11080
11085
  ArcDate,
11081
- ArcCollectionQuery
11086
+ ArcCollectionQuery,
11087
+ ArcBranded,
11088
+ ArcArray
11082
11089
  };