@egen-civitas/esm-app-shell 1.0.0 → 1.0.2

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.
Files changed (36) hide show
  1. package/README.md +48 -0
  2. package/dist/{35000e3020f91f54.js → 09a305e14c26aa4c.js} +1 -1
  3. package/dist/{35000e3020f91f54.js.map → 09a305e14c26aa4c.js.map} +1 -1
  4. package/dist/1a3a2203030dffe6.js +1 -1
  5. package/dist/1fca772e19e3c1b6.js +1 -0
  6. package/dist/{cfcffab5131ca6fe.js.map → 1fca772e19e3c1b6.js.map} +1 -1
  7. package/dist/27bce5d96d2f77ca.js +1 -0
  8. package/dist/27bce5d96d2f77ca.js.map +1 -0
  9. package/dist/3226b9dce374cfd8.js +1 -1
  10. package/dist/3226b9dce374cfd8.js.map +1 -1
  11. package/dist/{a4194a868fe7dab1.js → 502a9fc73519b790.js} +1 -1
  12. package/dist/{a4194a868fe7dab1.js.map → 502a9fc73519b790.js.map} +1 -1
  13. package/dist/{db79de974b1f9d2a.js → 57b9ecf632f0e340.js} +1 -1
  14. package/dist/{db79de974b1f9d2a.js.map → 57b9ecf632f0e340.js.map} +1 -1
  15. package/dist/{1c23ca786a6e4ebd.js → 6aadb9a4eef827fb.js} +1 -1
  16. package/dist/{1c23ca786a6e4ebd.js.map → 6aadb9a4eef827fb.js.map} +1 -1
  17. package/dist/83dac8ce5a42f6f7.js +1 -1
  18. package/dist/8fec4ca250238f97.js +1 -0
  19. package/dist/8fec4ca250238f97.js.map +1 -0
  20. package/dist/99e304b895626c07.js +1 -0
  21. package/dist/99e304b895626c07.js.map +1 -0
  22. package/dist/a3487e3a30f88260.js +1 -0
  23. package/dist/a3487e3a30f88260.js.map +1 -0
  24. package/dist/{b09cf978bcb092af.js → e30dd69f1360bbc1.js} +1 -1
  25. package/dist/{b09cf978bcb092af.js.map → e30dd69f1360bbc1.js.map} +1 -1
  26. package/dist/{egen.0d895e3349f973d3.js → egen.d17915ddd051e2ef.js} +2 -2
  27. package/dist/{egen.0d895e3349f973d3.js.map → egen.d17915ddd051e2ef.js.map} +1 -1
  28. package/dist/index.html +1 -1
  29. package/package.json +2 -2
  30. package/dist/194ffd94e3874968.js +0 -1
  31. package/dist/194ffd94e3874968.js.map +0 -1
  32. package/dist/4bbcdc5943a035be.js +0 -1
  33. package/dist/4bbcdc5943a035be.js.map +0 -1
  34. package/dist/654f4db62745a0eb.js +0 -1
  35. package/dist/654f4db62745a0eb.js.map +0 -1
  36. package/dist/cfcffab5131ca6fe.js +0 -1
@@ -1 +0,0 @@
1
- (self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["9923"],{648(e,t){var r,n;r=this,n=function(){return function(e,t,r){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=r();return this.format(e)===t.format(e)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=n():"function"==typeof define&&define.amd?define(n):(r="u">typeof globalThis?globalThis:r||self).dayjs_plugin_isToday=n()},8279(e,t,r){"use strict";var n=r(6233);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},4131(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(1138);t.AsyncSubject=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return o(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),s.Subscription.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.Subject)},9553(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(3658);t.BehaviorSubject=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new s.ObjectUnsubscribedError},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.Subject)},4921(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSubscriber=function(e){function t(t,r,n){var o=e.call(this)||this;return o.parent=t,o.outerValue=r,o.outerIndex=n,o.index=0,o}return o(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(r(7097).Subscriber)},8292(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(1684),i=r(2200),s=r(9923);(n=t.NotificationKind||(t.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C",t.Notification=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){switch(this.kind){case"N":return i.of(this.value);case"E":return s.throwError(this.error);case"C":return o.empty()}throw Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},7154(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6012),o=r(4665),i=r(4227),s=r(7654),u=r(3657);function a(e){if(e||(e=u.config.Promise||Promise),!e)throw Error("no Promise impl found");return e}t.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this.operator,i=o.toSubscriber(e,t,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||u.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),n.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=a(t))(function(t,n){var o;o=r.subscribe(function(t){try{e(t)}catch(e){n(e),o&&o.unsubscribe()}},n,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=a(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}()},4109(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3657),o=r(2618);t.empty={closed:!0,next:function(e){},error:function(e){if(n.config.useDeprecatedSynchronousErrorHandling)throw e;o.hostReportError(e)},complete:function(){}}},5238(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.OuterSubscriber=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r(7097).Subscriber)},2462(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(3954),u=r(1138),a=r(4436),c=r(3658),l=r(2746);t.ReplaySubject=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0);var o=e.call(this)||this;return o.scheduler=n,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=t<1?1:t,o._windowTime=r<1?1:r,r===1/0?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return o(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var r=this._events;r.push(t),r.length>this._bufferSize&&r.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new f(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=n.length;if(this.closed)throw new c.ObjectUnsubscribedError;if(this.isStopped||this.hasError?t=u.Subscription.EMPTY:(this.observers.push(e),t=new l.SubjectSubscription(this,e)),o&&e.add(e=new a.ObserveOnSubscriber(e,o)),r)for(var s=0;s<i&&!e.closed;s++)e.next(n[s]);else for(var s=0;s<i&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||s.queue).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,r=this._windowTime,n=this._events,o=n.length,i=0;i<o&&!(e-n[i].time<r);)i++;return o>t&&(i=Math.max(i,o-t)),i>0&&n.splice(0,i),n},t}(i.Subject);var f=function(e,t){this.time=e,this.value=t}},3054(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=function(){function e(t,r){void 0===r&&(r=e.now),this.SchedulerAction=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},e.now=function(){return Date.now()},e}()},7127(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7154),s=r(7097),u=r(1138),a=r(3658),c=r(2746),l=r(3798),f=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return o(t,e),t}(s.Subscriber);t.SubjectSubscriber=f;var h=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype[l.rxSubscriber]=function(){return new f(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),o=0;o<r;o++)n[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,r=t.length,n=t.slice(),o=0;o<r;o++)n[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,r=e.slice(),n=0;n<t;n++)r[n].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(!this.closed)return e.prototype._trySubscribe.call(this,t);throw new a.ObjectUnsubscribedError},t.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),u.Subscription.EMPTY):this.isStopped?(e.complete(),u.Subscription.EMPTY):(this.observers.push(e),new c.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(i.Observable);t.Subject=h;var p=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return o(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):u.Subscription.EMPTY},t}(h);t.AnonymousSubject=p},2746(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubjectSubscription=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return o(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(r(1138).Subscription)},7097(e,t,r){"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||n({__proto__:[]},Array)&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var s=r(7894),u=r(4109),a=r(1138),c=r(3798),l=r(3657),f=r(2618),h=function(e){function t(r,o,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=u.empty;break;case 1:if(!r){s.destination=u.empty;break}if((void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"){n(r,t)?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new p(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new p(s,r,o,i)}return s}return i(t,e),t.prototype[c.rxSubscriber]=function(){return this},t.create=function(e,r,n){var o=new t(e,r,n);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.Subscription);t.Subscriber=h;var p=function(e){function t(t,r,n,o){var i,a=e.call(this)||this;a._parentSubscriber=t;var c=a;return s.isFunction(r)?i=r:r&&(i=r.next,n=r.error,o=r.complete,r!==u.empty&&(c=Object.create(r),s.isFunction(c.unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=i,a._error=n,a._complete=o,a}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,r=l.config.useDeprecatedSynchronousErrorHandling;if(this._error)r&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):f.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;f.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.config.useDeprecatedSynchronousErrorHandling)throw e;f.hostReportError(e)}},t.prototype.__tryOrSetError=function(e,t,r){if(!l.config.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,r)}catch(t){if(l.config.useDeprecatedSynchronousErrorHandling)return e.syncErrorValue=t,e.syncErrorThrown=!0,!0;return f.hostReportError(t),!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(h);t.SafeSubscriber=p},1138(e,t,r){"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}Object.defineProperty(t,"__esModule",{value:!0});var o=r(9109),i=r(5393),s=r(7894),u=r(6384);function a(e){return e.reduce(function(e,t){return e.concat(n(t,u.UnsubscriptionError)?t.errors:t)},[])}t.Subscription=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,r=this._parentOrParents,c=this._ctorUnsubscribe,l=this._unsubscribe,f=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n(r,t))r.remove(this);else if(null!==r)for(var h=0;h<r.length;++h)r[h].remove(this);if(s.isFunction(l)){c&&(this._unsubscribe=void 0);try{l.call(this)}catch(t){e=n(t,u.UnsubscriptionError)?a(t.errors):[t]}}if(o.isArray(f))for(var h=-1,p=f.length;++h<p;){var d=f[h];if(i.isObject(d))try{d.unsubscribe()}catch(t){e=e||[],n(t,u.UnsubscriptionError)?e=e.concat(a(t.errors)):e.push(t)}}if(e)throw new u.UnsubscriptionError(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!n(r,t)){var o=r;(r=new t)._subscriptions=[o]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(n(i,t)){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[r]:s.push(r),r},t.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},(e=new t).closed=!0,t.EMPTY=e,t}()},3657(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=!1;t.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):r&&console.log("RxJS: Back to a better error behavior. Thank you. <3"),r=value},get useDeprecatedSynchronousErrorHandling(){return r}}},8255(e,t,r){"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||n({__proto__:[]},Array)&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var s=r(7097),u=r(7154),a=r(3997);t.SimpleInnerSubscriber=function(e){function t(t){var r=e.call(this)||this;return r.parent=t,r}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(s.Subscriber),t.ComplexInnerSubscriber=function(e){function t(t,r,n){var o=e.call(this)||this;return o.parent=t,o.outerValue=r,o.outerIndex=n,o}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(s.Subscriber),t.SimpleOuterSubscriber=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(s.Subscriber),t.ComplexOuterSubscriber=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,r,n){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(s.Subscriber),t.innerSubscribe=function(e,t){var r;if(!t.closed){if(n(e,u.Observable))return e.subscribe(t);try{r=a.subscribeTo(e)(t)}catch(e){t.error(e)}return r}}},9226(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var s=r(7127),u=r(7154),a=r(7097),c=r(1138),l=r(9509),f=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new c.Subscription).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=c.Subscription.EMPTY)),e},t.prototype.refCount=function(){return l.refCount()(this)},t}(u.Observable);t.ConnectableObservable=f,t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(o=f.prototype)._subscribe},_isComplete:{value:o._isComplete,writable:!0},getSubject:{value:o.getSubject},connect:{value:o.connect},refCount:{value:o.refCount}};var h=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return i(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(s.SubjectSubscriber);(function(e){this.connectable=e}).prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new p(e,r),o=t.subscribe(n);return n.closed||(n.connection=r.connect()),o};var p=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0||(e._refCount=t-1,t>1)){this.connection=null;return}var r=this.connection,n=e._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},t}(a.Subscriber)},6213(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7154),s=r(8752),u=r(2651);t.SubscribeOnObservable=function(e){function t(t,r,n){void 0===r&&(r=0),void 0===n&&(n=s.asap);var o=e.call(this)||this;return o.source=t,o.delayTime=r,o.scheduler=n,(!u.isNumeric(r)||r<0)&&(o.delayTime=0),n&&"function"==typeof n.schedule||(o.scheduler=s.asap),o}return o(t,e),t.create=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=s.asap),new t(e,r,n)},t.dispatch=function(e){var t=e.source,r=e.subscriber;return this.add(t.subscribe(r))},t.prototype._subscribe=function(e){var r=this.delayTime,n=this.source;return this.scheduler.schedule(t.dispatch,r,{source:n,subscriber:e})},t}(i.Observable)},2115(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(9489),s=r(9109),u=r(5238),a=r(8632),c=r(2060),l={};t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=void 0,n=void 0;return i.isScheduler(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&s.isArray(e[0])&&(e=e[0]),c.fromArray(e,n).lift(new f(r))};var f=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.resultSelector))},e}();t.CombineLatestOperator=f;var h=function(e){function t(t,r){var n=e.call(this,t)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return o(t,e),t.prototype._next=function(e){this.values.push(l),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var r=0;r<t;r++){var n=e[r];this.add(a.subscribeToResult(this,n,void 0,r))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,r){var n=this.values,o=n[r],i=this.toRespond?o===l?--this.toRespond:this.toRespond:0;n[r]=t,0===i&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(u.OuterSubscriber);t.CombineLatestSubscriber=h},8093(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2200),o=r(7930);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concatAll()(n.of.apply(void 0,e))}},6349(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(9001),i=r(1684);t.defer=function(e){return new n.Observable(function(t){var r;try{r=e()}catch(e){t.error(e);return}return(r?o.from(r):i.empty()).subscribe(t)})}},1684(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154);t.EMPTY=new n.Observable(function(e){return e.complete()}),t.empty=function(e){var r;return e?(r=e,new n.Observable(function(e){return r.schedule(function(){return e.complete()})})):t.EMPTY}},9001(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(3997),i=r(204);t.from=function(e,t){var r;return t?i.scheduled(e,t):(null!=(r=n.Observable)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)?e:new n.Observable(o.subscribeTo(e))}},2060(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(9128),i=r(4101);t.fromArray=function(e,t){return t?i.scheduleArray(e,t):new n.Observable(o.subscribeToArray(e))}},1861(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(9489),i=r(8914),s=r(2060);t.merge=function(){for(var e,t,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var a=1/0,c=null,l=r[r.length-1];return(o.isScheduler(l)?(c=r.pop(),r.length>1&&"number"==typeof r[r.length-1]&&(a=r.pop())):"number"==typeof l&&(a=r.pop()),null===c&&1===r.length&&(e=r[0],null!=(t=n.Observable)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t))?r[0]:i.mergeAll(a)(s.fromArray(r,c))}},2200(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9489),o=r(2060),i=r(4101);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return n.isScheduler(r)?(e.pop(),i.scheduleArray(e,r)):o.fromArray(e)}},2964(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(9109),s=r(2060),u=r(5238),a=r(8632);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length)if(!i.isArray(e[0]))return e[0];else e=e[0];return s.fromArray(e,void 0).lift(new c)};var c=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}();t.RaceOperator=c;var l=function(e){function t(t){var r=e.call(this,t)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return o(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var r=0;r<t&&!this.hasFirst;r++){var n=e[r],o=a.subscribeToResult(this,n,void 0,r);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}},t.prototype.notifyNext=function(e,t,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var o=this.subscriptions[n];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(t)},t}(u.OuterSubscriber);t.RaceSubscriber=l},9923(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154);function o(e){var t=e.error;e.subscriber.error(t)}t.throwError=function(e,t){return new n.Observable(t?function(r){return t.schedule(o,0,{error:e,subscriber:r})}:function(t){return t.error(e)})}},4888(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(7661),i=r(2651),s=r(9489);function u(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}t.timer=function(e,t,r){void 0===e&&(e=0);var a=-1;return i.isNumeric(t)?a=1>Number(t)&&1||Number(t):s.isScheduler(t)&&(r=t),s.isScheduler(r)||(r=o.async),new n.Observable(function(t){var n=i.isNumeric(e)?e:e-r.now();return r.schedule(u,n,{index:0,period:a,subscriber:t})})}},3834(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2060),s=r(9109),u=r(7097),a=r(2648),c=r(8255);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return"function"==typeof r&&e.pop(),i.fromArray(e,void 0).lift(new l(r))};var l=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.resultSelector))},e}();t.ZipOperator=l;var f=function(e){function t(t,r,n){void 0===n&&(n=Object.create(null));var o=e.call(this,t)||this;return o.resultSelector=r,o.iterators=[],o.active=0,o.resultSelector="function"==typeof r?r:void 0,o}return o(t,e),t.prototype._next=function(e){var t=this.iterators;s.isArray(e)?t.push(new p(e)):"function"==typeof e[a.iterator]?t.push(new h(e[a.iterator]())):t.push(new d(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0===t)return void this.destination.complete();this.active=t;for(var r=0;r<t;r++){var n=e[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++){var o=e[n];if("function"==typeof o.hasValue&&!o.hasValue())return}for(var i=!1,s=[],n=0;n<t;n++){var o=e[n],u=o.next();if(o.hasCompleted()&&(i=!0),u.done)return void r.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):r.next(s),i&&r.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(u.Subscriber);t.ZipSubscriber=f;var h=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return!!(e&&e.done)},e}(),p=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),d=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.parent=r,o.observable=n,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return o(t,e),t.prototype[a.iterator]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return c.innerSubscribe(this.observable,new c.SimpleInnerSubscriber(this))},t}(c.SimpleOuterSubscriber)},6278(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.audit=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.durationSelector=r,n.hasValue=!1,n}return o(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var r=i.innerSubscribe(t,new i.SimpleInnerSubscriber(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,r=this.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(i.SimpleOuterSubscriber)},643(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7661),o=r(6278),i=r(4888);t.auditTime=function(e,t){return void 0===t&&(t=n.async),o.audit(function(){return i.timer(e,t)})}},4987(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.buffer=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.closingNotifier))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.buffer=[],n.add(i.innerSubscribe(r,new i.SimpleInnerSubscriber(n))),n}return o(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(i.SimpleOuterSubscriber)},7288(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.bufferCount=function(e,t){return void 0===t&&(t=null),function(r){return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,t&&e!==t?this.subscriberClass=a:this.subscriberClass=u}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.bufferSize=r,n.buffer=[],n}return o(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(i.Subscriber),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.bufferSize=r,o.startBufferEvery=n,o.buffers=[],o.count=0,o}return o(t,e),t.prototype._next=function(e){var t=this.bufferSize,r=this.startBufferEvery,n=this.buffers,o=this.count;this.count++,o%r==0&&n.push([]);for(var i=n.length;i--;){var s=n[i];s.push(e),s.length===t&&(n.splice(i,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this.buffers,r=this.destination;t.length>0;){var n=t.shift();n.length>0&&r.next(n)}e.prototype._complete.call(this)},t}(i.Subscriber)},9118(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7661),s=r(7097),u=r(9489);t.bufferTime=function(e){var t=arguments.length,r=i.async;u.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],t--);var n=null;t>=2&&(n=arguments[1]);var o=1/0;return t>=3&&(o=arguments[2]),function(t){return t.lift(new a(e,n,o,r))}};var a=function(){function e(e,t,r,n){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),c=function(){this.buffer=[]},l=function(e){function t(t,r,n,o,i){var s=e.call(this,t)||this;s.bufferTimeSpan=r,s.bufferCreationInterval=n,s.maxBufferSize=o,s.scheduler=i,s.contexts=[];var u=s.openContext();return s.timespanOnly=null==n||n<0,s.timespanOnly?s.add(u.closeAction=i.schedule(f,r,{subscriber:s,context:u,bufferTimeSpan:r})):(s.add(u.closeAction=i.schedule(p,r,{subscriber:s,context:u})),s.add(i.schedule(h,n,{bufferTimeSpan:r,bufferCreationInterval:n,subscriber:s,scheduler:i}))),s}return o(t,e),t.prototype._next=function(e){for(var t,r=this.contexts,n=r.length,o=0;o<n;o++){var i=r[o],s=i.buffer;s.push(e),s.length==this.maxBufferSize&&(t=i)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,r=this.destination;t.length>0;){var n=t.shift();r.next(n.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:e,bufferTimeSpan:r};this.add(e.closeAction=this.scheduler.schedule(f,r,n))}},t.prototype.openContext=function(){var e=new c;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(s.Subscriber);function f(e){var t=e.subscriber,r=e.context;r&&t.closeContext(r),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function h(e){var t=e.bufferCreationInterval,r=e.bufferTimeSpan,n=e.subscriber,o=e.scheduler,i=n.openContext();n.closed||(n.add(i.closeAction=o.schedule(p,r,{subscriber:n,context:i})),this.schedule(e,t))}function p(e){var t=e.subscriber,r=e.context;t.closeContext(r)}},4623(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1138),s=r(8632),u=r(5238);t.bufferToggle=function(e,t){return function(r){return r.lift(new a(e,t))}};var a=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.openings,this.closingSelector))},e}(),c=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.closingSelector=n,o.contexts=[],o.add(s.subscribeToResult(o,r)),o}return o(t,e),t.prototype._next=function(e){for(var t=this.contexts,r=t.length,n=0;n<r;n++)t[n].buffer.push(e)},t.prototype._error=function(t){for(var r=this.contexts;r.length>0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var r=t.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var r=e.buffer,n=e.subscription;this.destination.next(r),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,r=new i.Subscription,n={buffer:[],subscription:r};t.push(n);var o=s.subscribeToResult(this,e,n);!o||o.closed?this.closeBuffer(n):(o.context=n,this.add(o),r.add(o))},t}(u.OuterSubscriber)},2771(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1138),s=r(8255);t.bufferWhen=function(e){return function(t){return t.lift(new u(e))}};var u=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.closingSelector))},e}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.closingSelector=r,n.subscribing=!1,n.openBuffer(),n}return o(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{e=(0,this.closingSelector)()}catch(e){return this.error(e)}t=new i.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(s.innerSubscribe(e,new s.SimpleInnerSubscriber(this))),this.subscribing=!1},t}(s.SimpleOuterSubscriber)},7610(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.catchError=function(e){return function(t){var r=new s(e),n=t.lift(r);return r.caught=n}};var s=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.selector,this.caught))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.selector=r,o.caught=n,o}return o(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(t){e.prototype.error.call(this,t);return}this._unsubscribeAndRecycle();var n=new i.SimpleInnerSubscriber(this);this.add(n);var o=i.innerSubscribe(r,n);o!==n&&this.add(o)}},t}(i.SimpleOuterSubscriber)},3101(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2115);t.combineAll=function(e){return function(t){return t.lift(new n.CombineLatestOperator(e))}}},6923(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9109),o=r(2115),i=r(9001);t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&n.isArray(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(i.from([t].concat(e)),new o.CombineLatestOperator(r))}}},325(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8093);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(n.concat.apply(void 0,[t].concat(e)))}}},7930(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8914);t.concatAll=function(){return n.mergeAll(1)}},9091(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5643);t.concatMap=function(e,t){return n.mergeMap(e,t,1)}},2710(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9091);t.concatMapTo=function(e,t){return n.concatMap(function(){return e},t)}},8786(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.count=function(e){return function(t){return t.lift(new s(e,t))}};var s=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.source))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.predicate=r,o.source=n,o.count=0,o.index=0,o}return o(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){this.destination.error(e);return}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(i.Subscriber)},8966(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.debounce=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.durationSelector=r,n.hasValue=!1,n}return o(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var r=this.durationSubscription;this.value=e,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),(r=i.innerSubscribe(t,new i.SimpleInnerSubscriber(this)))&&!r.closed&&this.add(this.durationSubscription=r)},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(i.SimpleOuterSubscriber)},8387(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(7661);t.debounceTime=function(e,t){return void 0===t&&(t=s.async),function(r){return r.lift(new u(e,t))}};var u=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.dueTime,this.scheduler))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.dueTime=r,o.scheduler=n,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return o(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.Subscriber);function c(e){e.debouncedNext()}},1974(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.defaultValue))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.defaultValue=r,n.isEmpty=!0,n}return o(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(i.Subscriber)},926(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7661),s=r(8710),u=r(7097),a=r(8292);t.delay=function(e,t){void 0===t&&(t=i.async);var r=s.isDate(e)?e-t.now():Math.abs(e);return function(e){return e.lift(new c(r,t))}};var c=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.delay,this.scheduler))},e}(),l=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.delay=r,o.scheduler=n,o.queue=[],o.active=!1,o.errored=!1,o}return o(t,e),t.dispatch=function(e){for(var t=e.source,r=t.queue,n=e.scheduler,o=e.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,r=new f(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(a.Notification.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete()),this.unsubscribe()},t}(u.Subscriber),f=function(e,t){this.time=e,this.notification=t}},1058(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(7154),u=r(5238),a=r(8632);t.delayWhen=function(e,t){return t?function(r){return new f(r,t).lift(new c(e))}:function(t){return t.lift(new c(e))}};var c=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.delayDurationSelector))},e}(),l=function(e){function t(t,r){var n=e.call(this,t)||this;return n.delayDurationSelector=r,n.completed=!1,n.delayNotifierSubscriptions=[],n.index=0,n}return o(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(e),this.removeSubscription(o),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var r=this.delayDurationSelector(e,t);r&&this.tryDelay(r,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return -1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var r=a.subscribeToResult(this,e,t);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(u.OuterSubscriber),f=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subscriptionDelay=r,n}return o(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new h(e,this.source))},t}(s.Observable),h=function(e){function t(t,r){var n=e.call(this)||this;return n.parent=t,n.source=r,n.sourceSubscribed=!1,n}return o(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(i.Subscriber)},2045(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.dematerialize=function(){return function(e){return e.lift(new s)}};var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(i.Subscriber)},6961(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.distinct=function(e,t){return function(r){return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.keySelector,this.flushes))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.keySelector=r,o.values=new Set,n&&o.add(i.innerSubscribe(n,new i.SimpleInnerSubscriber(o))),o}return o(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,r=this.destination;try{t=this.keySelector(e)}catch(e){r.error(e);return}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var r=this.values;r.has(e)||(r.add(e),this.destination.next(t))},t}(i.SimpleOuterSubscriber);t.DistinctSubscriber=u},6693(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.distinctUntilChanged=function(e,t){return function(r){return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.compare,this.keySelector))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.keySelector=n,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return o(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){try{var t,r=this.keySelector;t=r?r(e):e}catch(e){return this.destination.error(e)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))},t}(i.Subscriber)},2296(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6693);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}},8876(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2021),o=r(7851),i=r(8777),s=r(1974),u=r(5450);t.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(a){return a.pipe(o.filter(function(t,r){return r===e}),u.take(1),r?s.defaultIfEmpty(t):i.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}},1148(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8093),o=r(2200);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return n.concat(t,o.of.apply(void 0,e))}}},4434(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.every=function(e,t){return function(r){return r.lift(new s(e,t,r))}};var s=function(){function e(e,t,r){this.predicate=e,this.thisArg=t,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg,this.source))},e}(),u=function(e){function t(t,r,n,o){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.source=o,i.index=0,i.thisArg=n||i,i}return o(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){this.destination.error(e);return}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(i.Subscriber)},8811(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.exhaust=function(){return function(e){return e.lift(new s)}};var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){var r=e.call(this,t)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return o(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(i.innerSubscribe(e,new i.SimpleInnerSubscriber(this))))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(i.SimpleOuterSubscriber)},2429(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2827),s=r(9001),u=r(8255);t.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e(function(e,n){return s.from(t(e,n)).pipe(i.map(function(t,o){return r(e,t,n,o)}))}))}:function(e){return e.lift(new a(t))}};var a=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project))},e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.project=r,n.hasSubscription=!1,n.hasCompleted=!1,n.index=0,n}return o(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){this.destination.error(e);return}this.hasSubscription=!0,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new u.SimpleInnerSubscriber(this),r=this.destination;r.add(t);var n=u.innerSubscribe(e,t);n!==t&&r.add(n)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(u.SimpleOuterSubscriber)},7409(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=1>(t||0)?1/0:t,function(n){return n.lift(new s(e,t,r))}};var s=function(){function e(e,t,r){this.project=e,this.concurrent=t,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.concurrent,this.scheduler))},e}();t.ExpandOperator=s;var u=function(e){function t(t,r,n,o){var i=e.call(this,t)||this;return i.project=r,i.concurrent=n,i.scheduler=o,i.index=0,i.active=0,i.hasCompleted=!1,n<1/0&&(i.buffer=[]),i}return o(t,e),t.dispatch=function(e){var t=e.subscriber,r=e.result,n=e.value,o=e.index;t.subscribeToProjection(r,n,o)},t.prototype._next=function(e){var r=this.destination;if(r.closed)return void this._complete();var n=this.index++;if(this.active<this.concurrent){r.next(e);try{var o=(0,this.project)(e,n);this.scheduler?this.destination.add(this.scheduler.schedule(t.dispatch,0,{subscriber:this,result:o,value:e,index:n})):this.subscribeToProjection(o,e,n)}catch(e){r.error(e)}}else this.buffer.push(e)},t.prototype.subscribeToProjection=function(e,t,r){this.active++,this.destination.add(i.innerSubscribe(e,new i.SimpleInnerSubscriber(this)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this._next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(i.SimpleOuterSubscriber);t.ExpandSubscriber=u},7851(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.filter=function(e,t){return function(r){return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.predicate=r,o.thisArg=n,o.count=0,o}return o(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(i.Subscriber)},7183(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(1138);t.finalize=function(e){return function(t){return t.lift(new u(e))}};var u=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.callback))},e}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.add(new s.Subscription(r)),n}return o(t,e),t}(i.Subscriber)},8054(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.find=function(e,t){if("function"!=typeof e)throw TypeError("predicate is not a function");return function(r){return r.lift(new s(e,r,!1,t))}};var s=function(){function e(e,t,r,n){this.predicate=e,this.source=t,this.yieldIndex=r,this.thisArg=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}();t.FindValueOperator=s;var u=function(e){function t(t,r,n,o,i){var s=e.call(this,t)||this;return s.predicate=r,s.source=n,s.yieldIndex=o,s.thisArg=i,s.index=0,s}return o(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,r=this.thisArg,n=this.index++;try{t.call(r||this,e,n,this.source)&&this.notifyComplete(this.yieldIndex?n:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(i.Subscriber);t.FindValueSubscriber=u},384(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8054);t.findIndex=function(e,t){return function(r){return r.lift(new n.FindValueOperator(e,r,!0,t))}}},8663(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2747),o=r(7851),i=r(5450),s=r(1974),u=r(8777),a=r(9156);t.first=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?o.filter(function(t,r){return e(t,r,c)}):a.identity,i.take(1),r?s.defaultIfEmpty(t):u.throwIfEmpty(function(){return new n.EmptyError}))}}},6659(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(1138),u=r(7154),a=r(7127);t.groupBy=function(e,t,r,n){return function(o){return o.lift(new c(e,t,r,n))}};var c=function(){function e(e,t,r,n){this.keySelector=e,this.elementSelector=t,this.durationSelector=r,this.subjectSelector=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,r,n,o,i){var s=e.call(this,t)||this;return s.keySelector=r,s.elementSelector=n,s.durationSelector=o,s.subjectSelector=i,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return o(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){this.error(e);return}this._group(e,t)},t.prototype._group=function(e,t){var r,n=this.groups;n||(n=this.groups=new Map);var o=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!o){o=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(t,o);var i=new h(t,o,this);if(this.destination.next(i),this.durationSelector){var s=void 0;try{s=this.durationSelector(new h(t,o))}catch(e){this.error(e);return}this.add(s.subscribe(new f(t,o,this)))}}o.closed||o.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,r){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.Subscriber),f=function(e){function t(t,r,n){var o=e.call(this,r)||this;return o.key=t,o.group=r,o.parent=n,o}return o(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.Subscriber),h=function(e){function t(t,r,n){var o=e.call(this)||this;return o.key=t,o.groupSubject=r,o.refCountSubscription=n,o}return o(t,e),t.prototype._subscribe=function(e){var t=new s.Subscription,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&t.add(new p(r)),t.add(n.subscribe(e)),t},t}(u.Observable);t.GroupedObservable=h;var p=function(e){function t(t){var r=e.call(this)||this;return r.parent=t,t.count++,r}return o(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(s.Subscription)},6494(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.ignoreElements=function(){return function(e){return e.lift(new s)}};var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._next=function(e){},t}(i.Subscriber)},7240(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.isEmpty=function(){return function(e){return e.lift(new s)}};var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(i.Subscriber)},7801(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2747),o=r(7851),i=r(950),s=r(8777),u=r(1974),a=r(9156);t.last=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?o.filter(function(t,r){return e(t,r,c)}):a.identity,i.takeLast(1),r?u.defaultIfEmpty(t):s.throwIfEmpty(function(){return new n.EmptyError}))}}},2827(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.map=function(e,t){return function(r){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))},e}();t.MapOperator=s;var u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.project=r,o.count=0,o.thisArg=n||o,o}return o(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(i.Subscriber)},4078(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.mapTo=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.value))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.value=r,n}return o(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(i.Subscriber)},5604(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(8292);t.materialize=function(){return function(e){return e.lift(new u)}};var u=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype._next=function(e){this.destination.next(s.Notification.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(s.Notification.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(s.Notification.createComplete()),e.complete()},t}(i.Subscriber)},5699(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7103);t.max=function(e){return n.reduce("function"==typeof e?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},5709(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1861);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(n.merge.apply(void 0,[t].concat(e)))}}},8914(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5643),o=r(9156);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(o.identity,e)}},5643(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2827),s=r(9001),u=r(8255);function a(e,t,r){return(void 0===r&&(r=1/0),"function"==typeof t)?function(n){return n.pipe(a(function(r,n){return s.from(e(r,n)).pipe(i.map(function(e,o){return t(r,e,n,o)}))},r))}:("number"==typeof t&&(r=t),function(t){return t.lift(new c(e,r))})}t.mergeMap=a;var c=function(){function e(e,t){void 0===t&&(t=1/0),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))},e}();t.MergeMapOperator=c;var l=function(e){function t(t,r,n){void 0===n&&(n=1/0);var o=e.call(this,t)||this;return o.project=r,o.concurrent=n,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){this.destination.error(e);return}this.active++,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new u.SimpleInnerSubscriber(this),r=this.destination;r.add(t);var n=u.innerSubscribe(e,t);n!==t&&r.add(n)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(u.SimpleOuterSubscriber);t.MergeMapSubscriber=l,t.flatMap=a},5006(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5643);t.mergeMapTo=function(e,t,r){return(void 0===r&&(r=1/0),"function"==typeof t)?n.mergeMap(function(){return e},t,r):("number"==typeof t&&(r=t),n.mergeMap(function(){return e},r))}},7924(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),function(n){return n.lift(new s(e,t,r))}};var s=function(){function e(e,t,r){this.accumulator=e,this.seed=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.accumulator,this.seed,this.concurrent))},e}();t.MergeScanOperator=s;var u=function(e){function t(t,r,n,o){var i=e.call(this,t)||this;return i.accumulator=r,i.acc=n,i.concurrent=o,i.hasValue=!1,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return o(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,r=this.destination,n=void 0;try{n=(0,this.accumulator)(this.acc,e,t)}catch(e){return r.error(e)}this.active++,this._innerSub(n)}else this.buffer.push(e)},t.prototype._innerSub=function(e){var t=new i.SimpleInnerSubscriber(this),r=this.destination;r.add(t);var n=i.innerSubscribe(e,t);n!==t&&r.add(n)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.SimpleOuterSubscriber);t.MergeScanSubscriber=u},4049(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7103);t.min=function(e){return n.reduce("function"==typeof e?function(t,r){return 0>e(t,r)?t:r}:function(e,t){return e<t?e:t})}},6683(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9226);t.multicast=function(e,t){return function(r){if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new o(i,t));var i,s=Object.create(r,n.connectableObservableDescriptor);return s.source=r,s.subjectFactory=i,s}};var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(e);return o.add(t.subscribe(n)),o},e}();t.MulticastOperator=o},4436(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(8292);t.observeOn=function(e,t){return void 0===t&&(t=0),function(r){return r.lift(new u(e,t))}};var u=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=u;var a=function(e){function t(t,r,n){void 0===n&&(n=0);var o=e.call(this,t)||this;return o.scheduler=r,o.delay=n,o}return o(t,e),t.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new c(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(s.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(s.Notification.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete()),this.unsubscribe()},t}(i.Subscriber);t.ObserveOnSubscriber=a;var c=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=c},4058(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(9001),s=r(9109),u=r(8255);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&s.isArray(e[0])&&(e=e[0]),function(t){return t.lift(new a(e))}},t.onErrorResumeNextStatic=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=void 0;return 1===e.length&&s.isArray(e[0])&&(e=e[0]),r=e.shift(),i.from(r).lift(new a(e))};var a=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.nextSources))},e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.destination=t,n.nextSources=r,n}return o(t,e),t.prototype.notifyError=function(){this.subscribeToNextSource()},t.prototype.notifyComplete=function(){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new u.SimpleInnerSubscriber(this),r=this.destination;r.add(t);var n=u.innerSubscribe(e,t);n!==t&&r.add(n)}else this.destination.complete()},t}(u.SimpleOuterSubscriber)},4253(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.pairwise=function(){return function(e){return e.lift(new s)}};var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){var r=e.call(this,t)||this;return r.hasPrev=!1,r}return o(t,e),t.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},t}(i.Subscriber)},4255(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1985),o=r(7851);t.partition=function(e,t){return function(r){return[o.filter(e,t)(r),o.filter(n.not(e,t))(r)]}}},8356(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2827);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw Error("list of properties cannot be empty.");return function(t){var o,i;return n.map((o=e,i=r,function(e){for(var t=e,r=0;r<i;r++){var n=null!=t?t[o[r]]:void 0;if(void 0===n)return;t=n}return t}))(t)}}},626(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7127),o=r(6683);t.publish=function(e){return e?o.multicast(function(){return new n.Subject},e):o.multicast(new n.Subject)}},6880(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9553),o=r(6683);t.publishBehavior=function(e){return function(t){return o.multicast(new n.BehaviorSubject(e))(t)}}},2158(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4131),o=r(6683);t.publishLast=function(){return function(e){return o.multicast(new n.AsyncSubject)(e)}}},2337(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2462),o=r(6683);t.publishReplay=function(e,t,r,i){r&&"function"!=typeof r&&(i=r);var s="function"==typeof r?r:void 0,u=new n.ReplaySubject(e,t,i);return function(e){return o.multicast(function(){return u},s)(e)}}},1596(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9109),o=r(2964);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&n.isArray(e[0])&&(e=e[0]),t.lift.call(o.race.apply(void 0,[t].concat(e)))}}},7103(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(740),o=r(950),i=r(1974),s=r(7654);t.reduce=function(e,t){return arguments.length>=2?function(r){return s.pipe(n.scan(e,t),o.takeLast(1),i.defaultIfEmpty(t))(r)}:function(t){return s.pipe(n.scan(function(t,r,n){return e(t,r,n+1)}),o.takeLast(1))(t)}}},9509(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.refCount=function(){return function(e){return e.lift(new s(e))}};var s=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new u(e,r),o=t.subscribe(n);return n.closed||(n.connection=r.connect()),o},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0||(e._refCount=t-1,t>1)){this.connection=null;return}var r=this.connection,n=e._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},t}(i.Subscriber)},1198(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(1684);t.repeat=function(e){return void 0===e&&(e=-1),function(t){return 0===e?s.empty():e<0?t.lift(new u(-1,t)):t.lift(new u(e-1,t))}};var u=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.count,this.source))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.count=r,o.source=n,o}return o(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return e.prototype.complete.call(this);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(i.Subscriber)},130(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(8255);t.repeatWhen=function(e){return function(t){return t.lift(new u(e))}};var u=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.notifier,t))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.notifier=r,o.source=n,o.sourceIsBeingSubscribedTo=!0,o}return o(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){this.notifications=new i.Subject;try{var t;t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=s.innerSubscribe(t,new s.SimpleInnerSubscriber(this))},t}(s.SimpleOuterSubscriber)},4607(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.retry=function(e){return void 0===e&&(e=-1),function(t){return t.lift(new s(e,t))}};var s=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.count,this.source))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.count=r,o.source=n,o}return o(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return e.prototype.error.call(this,t);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},t}(i.Subscriber)},6351(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(8255);t.retryWhen=function(e){return function(t){return t.lift(new u(e,t))}};var u=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.notifier,this.source))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.notifier=r,o.source=n,o}return o(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=this.errors,n=this.retries,o=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{r=new i.Subject;try{n=(0,this.notifier)(r)}catch(t){return e.prototype.error.call(this,t)}o=s.innerSubscribe(n,new s.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=o,r.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(s.SimpleOuterSubscriber)},5607(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.sample=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var r=new u(e),n=t.subscribe(r);return n.add(i.innerSubscribe(this.notifier,new i.SimpleInnerSubscriber(r))),n},e}(),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return o(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(i.SimpleOuterSubscriber)},8226(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(7661);t.sampleTime=function(e,t){return void 0===t&&(t=s.async),function(r){return r.lift(new u(e,t))}};var u=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.period,this.scheduler))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.period=r,o.scheduler=n,o.hasValue=!1,o.add(n.schedule(c,r,{subscriber:o,period:r})),o}return o(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(i.Subscriber);function c(e){var t=e.subscriber,r=e.period;t.notifyNext(),this.schedule(e,r)}},740(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.scan=function(e,t){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new s(e,t,r))}};var s=function(){function e(e,t,r){void 0===r&&(r=!1),this.accumulator=e,this.seed=t,this.hasSeed=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.accumulator,this.seed,this.hasSeed))},e}(),u=function(e){function t(t,r,n,o){var i=e.call(this,t)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return o(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(i.Subscriber)},7818(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.sequenceEqual=function(e,t){return function(r){return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.compareTo,this.comparator))},e}();t.SequenceEqualOperator=s;var u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.compareTo=r,o.comparator=n,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(r.subscribe(new a(t,o))),o}return o(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,r=this.comparator;e.length>0&&t.length>0;){var n=e.shift(),o=t.shift(),i=!1;try{i=r?r(n,o):n===o}catch(e){this.destination.error(e)}i||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(i.Subscriber);t.SequenceEqualSubscriber=u;var a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.parent=r,n}return o(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(i.Subscriber)},9882(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6683),o=r(9509),i=r(7127);function s(){return new i.Subject}t.share=function(){return function(e){return o.refCount()(n.multicast(s)(e))}}},9945(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2462);t.shareReplay=function(e,t,r){var o;return o=e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:r},function(e){var t,r,i,s,u,a,c,l,f,h,p,d;return e.lift((u=void 0===(s=(t=o).bufferSize)?1/0:s,c=void 0===(a=t.windowTime)?1/0:a,l=t.refCount,f=t.scheduler,h=0,p=!1,d=!1,function(e){var t;h++,!r||p?(p=!1,t=(r=new n.ReplaySubject(u,c,f)).subscribe(this),i=e.subscribe({next:function(e){r.next(e)},error:function(e){p=!0,r.error(e)},complete:function(){d=!0,i=void 0,r.complete()}}),d&&(i=void 0)):t=r.subscribe(this),this.add(function(){h--,t.unsubscribe(),t=void 0,i&&!d&&l&&0===h&&(i.unsubscribe(),i=void 0,r=void 0)})}))}}},2085(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(2747);t.single=function(e){return function(t){return t.lift(new u(e,t))}};var u=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.source))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.predicate=r,o.source=n,o.seenValue=!1,o.index=0,o}return o(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new s.EmptyError)},t}(i.Subscriber)},3354(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.skip=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return o(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(i.Subscriber)},2022(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(2021);t.skipLast=function(e){return function(t){return t.lift(new u(e))}};var u=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new i.Subscriber(e)):t.subscribe(new a(e,this._skipCount))},e}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n._skipCount=r,n._count=0,n._ring=Array(r),n}return o(t,e),t.prototype._next=function(e){var t=this._skipCount,r=this._count++;if(r<t)this._ring[r]=e;else{var n=r%t,o=this._ring,i=o[n];o[n]=e,this.destination.next(i)}},t}(i.Subscriber)},3120(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.skipUntil=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;n.hasValue=!1;var o=new i.SimpleInnerSubscriber(n);n.add(o),n.innerSubscription=o;var s=i.innerSubscribe(r,o);return s!==o&&(n.add(s),n.innerSubscription=s),n}return o(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(i.SimpleOuterSubscriber)},6525(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.skipWhile=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate))},e}(),u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.predicate=r,n.skipping=!0,n.index=0,n}return o(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=!!t}catch(e){this.destination.error(e)}},t}(i.Subscriber)},5921(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8093),o=r(9489);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return o.isScheduler(r)?(e.pop(),function(t){return n.concat(e,t,r)}):function(t){return n.concat(e,t)}}},7044(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6213);t.subscribeOn=function(e,t){return void 0===t&&(t=0),function(r){return r.lift(new o(e,t))}};var o=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new n.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},e}()},5018(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6179),o=r(9156);t.switchAll=function(){return n.switchMap(o.identity)}},6179(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2827),s=r(9001),u=r(8255);t.switchMap=function e(t,r){return"function"==typeof r?function(n){return n.pipe(e(function(e,n){return s.from(t(e,n)).pipe(i.map(function(t,o){return r(e,t,n,o)}))}))}:function(e){return e.lift(new a(t))}};var a=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project))},e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.project=r,n.index=0,n}return o(t,e),t.prototype._next=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){this.destination.error(e);return}this._innerSub(t)},t.prototype._innerSub=function(e){var t=this.innerSubscription;t&&t.unsubscribe();var r=new u.SimpleInnerSubscriber(this),n=this.destination;n.add(r),this.innerSubscription=u.innerSubscribe(e,r),this.innerSubscription!==r&&n.add(this.innerSubscription)},t.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=void 0},t.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e){this.destination.next(e)},t}(u.SimpleOuterSubscriber)},9462(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6179);t.switchMapTo=function(e,t){return t?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}},5450(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(2021),u=r(1684);t.take=function(e){return function(t){return 0===e?u.empty():t.lift(new a(e))}};var a=function(){function e(e){if(this.total=e,this.total<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.total))},e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return o(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(i.Subscriber)},950(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(2021),u=r(1684);t.takeLast=function(e){return function(t){return 0===e?u.empty():t.lift(new a(e))}};var a=function(){function e(e){if(this.total=e,this.total<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.total))},e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.ring=[],n.count=0,n}return o(t,e),t.prototype._next=function(e){var t=this.ring,r=this.total,n=this.count++;t.length<r?t.push(e):t[n%r]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=t++%r;e.next(n[i])}e.complete()},t}(i.Subscriber)},1824(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.takeUntil=function(e){return function(t){return t.lift(new s(e))}};var s=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var r=new u(e),n=i.innerSubscribe(this.notifier,new i.SimpleInnerSubscriber(r));return n&&!r.seenValue?(r.add(n),t.subscribe(r)):r},e}(),u=function(e){function t(t){var r=e.call(this,t)||this;return r.seenValue=!1,r}return o(t,e),t.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(i.SimpleOuterSubscriber)},7373(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097);t.takeWhile=function(e,t){return void 0===t&&(t=!1),function(r){return r.lift(new s(e,t))}};var s=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.inclusive))},e}(),u=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.predicate=r,o.inclusive=n,o.index=0,o}return o(t,e),t.prototype._next=function(e){var t,r=this.destination;try{t=this.predicate(e,this.index++)}catch(e){r.error(e);return}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var r=this.destination;t?r.next(e):(this.inclusive&&r.next(e),r.complete())},t}(i.Subscriber)},1032(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(898),u=r(7894);t.tap=function(e,t,r){return function(n){return n.lift(new a(e,t,r))}};var a=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))},e}(),c=function(e){function t(t,r,n,o){var i=e.call(this,t)||this;return i._tapNext=s.noop,i._tapError=s.noop,i._tapComplete=s.noop,i._tapError=n||s.noop,i._tapComplete=o||s.noop,u.isFunction(r)?(i._context=i,i._tapNext=r):r&&(i._context=r,i._tapNext=r.next||s.noop,i._tapError=r.error||s.noop,i._tapComplete=r.complete||s.noop),i}return o(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(i.Subscriber)},6249(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(8255);t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=function(e,r){return void 0===r&&(r=t.defaultThrottleConfig),function(t){return t.lift(new s(e,!!r.leading,!!r.trailing))}};var s=function(){function e(e,t,r){this.durationSelector=e,this.leading=t,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector,this.leading,this.trailing))},e}(),u=function(e){function t(t,r,n,o){var i=e.call(this,t)||this;return i.destination=t,i.durationSelector=r,i._leading=n,i._trailing=o,i._hasValue=!1,i}return o(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=i.innerSubscribe(t,new i.SimpleInnerSubscriber(this)))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()},t.prototype.notifyNext=function(){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(i.SimpleOuterSubscriber)},5708(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(7661),u=r(6249);t.throttleTime=function(e,t,r){return void 0===t&&(t=s.async),void 0===r&&(r=u.defaultThrottleConfig),function(n){return n.lift(new a(e,t,r.leading,r.trailing))}};var a=function(){function e(e,t,r,n){this.duration=e,this.scheduler=t,this.leading=r,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),c=function(e){function t(t,r,n,o,i){var s=e.call(this,t)||this;return s.duration=r,s.scheduler=n,s.leading=o,s.trailing=i,s._hasTrailingValue=!1,s._trailingValue=null,s}return o(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},t.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(i.Subscriber);function l(e){e.subscriber.clearThrottle()}},8777(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2747),s=r(7097);t.throwIfEmpty=function(e){return void 0===e&&(e=c),function(t){return t.lift(new u(e))}};var u=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.errorFactory))},e}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.errorFactory=r,n.hasValue=!1,n}return o(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(s.Subscriber);function c(){return new i.EmptyError}},7093(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7661),o=r(740),i=r(6349),s=r(2827);t.timeInterval=function(e){return void 0===e&&(e=n.async),function(t){return i.defer(function(){return t.pipe(o.scan(function(t,r){var n=t.current;return{value:r,current:e.now(),last:n}},{current:e.now(),value:void 0,last:void 0}),s.map(function(e){var t=e.current,r=e.last;return new u(e.value,t-r)}))})}};var u=function(e,t){this.value=e,this.interval=t};t.TimeInterval=u},9846(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7661),o=r(6490),i=r(2706),s=r(9923);t.timeout=function(e,t){return void 0===t&&(t=n.async),i.timeoutWith(e,s.throwError(new o.TimeoutError),t)}},2706(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7661),s=r(8710),u=r(8255);t.timeoutWith=function(e,t,r){return void 0===r&&(r=i.async),function(n){var o=s.isDate(e),i=o?e-r.now():Math.abs(e);return n.lift(new a(i,o,t,r))}};var a=function(){function e(e,t,r,n){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),c=function(e){function t(t,r,n,o,i){var s=e.call(this,t)||this;return s.absoluteTimeout=r,s.waitFor=n,s.withObservable=o,s.scheduler=i,s.scheduleTimeout(),s}return o(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(u.innerSubscribe(t,new u.SimpleInnerSubscriber(e)))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},t}(u.SimpleOuterSubscriber)},8133(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7661),o=r(2827);t.timestamp=function(e){return void 0===e&&(e=n.async),o.map(function(t){return new i(t,e.now())})};var i=function(e,t){this.value=e,this.timestamp=t};t.Timestamp=i},3291(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7103);function o(e,t,r){return 0===r?[t]:(e.push(t),e)}t.toArray=function(){return n.reduce(o,[])}},8697(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(8255);t.window=function(e){return function(t){return t.lift(new u(e))}};var u=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var r=new a(e),n=t.subscribe(r);return n.closed||r.add(s.innerSubscribe(this.windowBoundaries,new s.SimpleInnerSubscriber(r))),n},e}(),a=function(e){function t(t){var r=e.call(this,t)||this;return r.window=new i.Subject,t.next(r.window),r}return o(t,e),t.prototype.notifyNext=function(){this.openWindow()},t.prototype.notifyError=function(e){this._error(e)},t.prototype.notifyComplete=function(){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,r=this.window=new i.Subject;t.next(r)},t}(s.SimpleOuterSubscriber)},4870(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7097),s=r(7127);t.windowCount=function(e,t){return void 0===t&&(t=0),function(r){return r.lift(new u(e,t))}};var u=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.windowSize,this.startWindowEvery))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.destination=t,o.windowSize=r,o.startWindowEvery=n,o.windows=[new s.Subject],o.count=0,t.next(o.windows[0]),o}return o(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,o=this.windows,i=o.length,u=0;u<i&&!this.closed;u++)o[u].next(e);var a=this.count-n+1;if(a>=0&&a%t==0&&!this.closed&&o.shift().complete(),++this.count%t==0&&!this.closed){var c=new s.Subject;o.push(c),r.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(i.Subscriber)},5372(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(7661),u=r(7097),a=r(2651),c=r(9489);t.windowTime=function(e){var t=s.async,r=null,n=1/0;return c.isScheduler(arguments[3])&&(t=arguments[3]),c.isScheduler(arguments[2])?t=arguments[2]:a.isNumeric(arguments[2])&&(n=Number(arguments[2])),c.isScheduler(arguments[1])?t=arguments[1]:a.isNumeric(arguments[1])&&(r=Number(arguments[1])),function(o){return o.lift(new l(e,r,n,t))}};var l=function(){function e(e,t,r,n){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return o(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(i.Subject),h=function(e){function t(t,r,n,o,i){var s=e.call(this,t)||this;s.destination=t,s.windowTimeSpan=r,s.windowCreationInterval=n,s.maxWindowSize=o,s.scheduler=i,s.windows=[];var u=s.openWindow();return null!==n&&n>=0?(s.add(i.schedule(y,r,{subscriber:s,window:u,context:null})),s.add(i.schedule(d,n,{windowTimeSpan:r,windowCreationInterval:n,subscriber:s,scheduler:i}))):s.add(i.schedule(p,r,{subscriber:s,window:u,windowTimeSpan:r})),s}return o(t,e),t.prototype._next=function(e){for(var t=this.windows,r=t.length,n=0;n<r;n++){var o=t[n];!o.closed&&(o.next(e),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new f;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(u.Subscriber);function p(e){var t=e.subscriber,r=e.windowTimeSpan,n=e.window;n&&t.closeWindow(n),e.window=t.openWindow(),this.schedule(e,r)}function d(e){var t=e.windowTimeSpan,r=e.subscriber,n=e.scheduler,o=e.windowCreationInterval,i=r.openWindow(),s={action:this,subscription:null};s.subscription=n.schedule(y,t,{subscriber:r,window:i,context:s}),this.add(s.subscription),this.schedule(e,o)}function y(e){var t=e.subscriber,r=e.window,n=e.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),t.closeWindow(r)}},7473(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(1138),u=r(5238),a=r(8632);t.windowToggle=function(e,t){return function(r){return r.lift(new c(e,t))}};var c=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.openings,this.closingSelector))},e}(),l=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.openings=r,o.closingSelector=n,o.contexts=[],o.add(o.openSubscription=a.subscribeToResult(o,r,r)),o}return o(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var r=t.length,n=0;n<r;n++)t[n].window.next(e)},t.prototype._error=function(t){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,o=-1;++o<n;){var i=r[o];i.window.error(t),i.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,n=-1;++n<r;){var o=t[n];o.window.complete(),o.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,r=-1;++r<t;){var n=e[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,r,n,o){if(e===this.openings){var u=void 0;try{u=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var c=new i.Subject,l=new s.Subscription,f={window:c,subscription:l};this.contexts.push(f);var h=a.subscribeToResult(this,u,f);h.closed?this.closeWindow(this.contexts.length-1):(h.context=f,l.add(h)),this.destination.next(c)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,r=t[e],n=r.window,o=r.subscription;t.splice(e,1),n.complete(),o.unsubscribe()}},t}(u.OuterSubscriber)},2561(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7127),s=r(5238),u=r(8632);t.windowWhen=function(e){return function(t){return t.lift(new a(e))}};var a=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.closingSelector))},e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.destination=t,n.closingSelector=r,n.openWindow(),n}return o(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.openWindow(o)},t.prototype.notifyError=function(e){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t,r=this.window;r&&r.complete();var n=this.window=new i.Subject;this.destination.next(n);try{t=(0,this.closingSelector)()}catch(e){this.destination.error(e),this.window.error(e);return}this.add(this.closingNotification=u.subscribeToResult(this,t))},t}(s.OuterSubscriber)},329(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(5238),s=r(8632);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var r;return"function"==typeof e[e.length-1]&&(r=e.pop()),t.lift(new u(e,r))}};var u=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.observables,this.project))},e}(),a=function(e){function t(t,r,n){var o=e.call(this,t)||this;o.observables=r,o.project=n,o.toRespond=[];var i=r.length;o.values=Array(i);for(var u=0;u<i;u++)o.toRespond.push(u);for(var u=0;u<i;u++){var a=r[u];o.add(s.subscribeToResult(o,a,void 0,u))}return o}return o(t,e),t.prototype.notifyNext=function(e,t,r){this.values[r]=t;var n=this.toRespond;if(n.length>0){var o=n.indexOf(r);-1!==o&&n.splice(o,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(i.OuterSubscriber)},3410(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3834);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(n.zip.apply(void 0,[t].concat(e)))}}},4327(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3834);t.zipAll=function(e){return function(t){return t.lift(new n.ZipOperator(e))}}},4101(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(1138);t.scheduleArray=function(e,t){return new n.Observable(function(r){var n=new o.Subscription,i=0;return n.add(t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||n.add(this.schedule()))})),n})}},8540(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(1138),i=r(2648);t.scheduleIterable=function(e,t){if(!e)throw Error("Iterable cannot be null");return new n.Observable(function(r){var n,s=new o.Subscription;return s.add(function(){n&&"function"==typeof n.return&&n.return()}),s.add(t.schedule(function(){n=e[i.iterator](),s.add(t.schedule(function(){if(!r.closed){try{var e,t,o=n.next();e=o.value,t=o.done}catch(e){r.error(e);return}t?r.complete():(r.next(e),this.schedule())}}))})),s})}},5771(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(1138),i=r(4227);t.scheduleObservable=function(e,t){return new n.Observable(function(r){var n=new o.Subscription;return n.add(t.schedule(function(){var o=e[i.observable]();n.add(o.subscribe({next:function(e){n.add(t.schedule(function(){return r.next(e)}))},error:function(e){n.add(t.schedule(function(){return r.error(e)}))},complete:function(){n.add(t.schedule(function(){return r.complete()}))}}))})),n})}},1481(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7154),o=r(1138);t.schedulePromise=function(e,t){return new n.Observable(function(r){var n=new o.Subscription;return n.add(t.schedule(function(){return e.then(function(e){n.add(t.schedule(function(){r.next(e),n.add(t.schedule(function(){return r.complete()}))}))},function(e){n.add(t.schedule(function(){return r.error(e)}))})})),n})}},204(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5771),o=r(1481),i=r(4101),s=r(8540),u=r(2808),a=r(7321),c=r(4370),l=r(4892);t.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return n.scheduleObservable(e,t);else if(a.isPromise(e))return o.schedulePromise(e,t);else if(c.isArrayLike(e))return i.scheduleArray(e,t);else if(l.isIterable(e)||"string"==typeof e)return s.scheduleIterable(e,t)}throw TypeError((null!==e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||e)+" is not observable")}},7035(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=function(e){function t(t,r){return e.call(this)||this}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(1138).Subscription)},2058(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(433);t.AsapAction=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return o(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=i.Immediate.setImmediate(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(i.Immediate.clearImmediate(r),t.scheduled=void 0)},t}(r(3247).AsyncAction)},367(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},t}(r(4548).AsyncScheduler)},3247(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return o(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(e){r=!0,n=!!e&&e||Error(e)}if(r)return this.unsubscribe(),n},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(r(7035).Action)},4548(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3054);t.AsyncScheduler=function(e){function t(r,n){void 0===n&&(n=i.Scheduler.now);var o=e.call(this,r,function(){return t.delegate&&t.delegate!==o?t.delegate.now():n()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o(t,e),t.prototype.schedule=function(r,n,o){return(void 0===n&&(n=0),t.delegate&&t.delegate!==this)?t.delegate.schedule(r,n,o):e.prototype.schedule.call(this,r,n,o)},t.prototype.flush=function(e){var t,r=this.actions;if(this.active)return void r.push(e);this.active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this.active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(i.Scheduler)},5976(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return o(t,e),t.prototype.schedule=function(t,r){return(void 0===r&&(r=0),r>0)?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(r(3247).AsyncAction)},9865(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){var r,o;return(n=Object.setPrototypeOf||(r={__proto__:[]},(null!=(o=Array)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o)&&function(e,t){e.__proto__=t})||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(r(4548).AsyncScheduler)},8752(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2058);t.asapScheduler=new(r(367)).AsapScheduler(n.AsapAction),t.asap=t.asapScheduler},7661(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3247);t.asyncScheduler=new(r(4548)).AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},3954(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5976);t.queueScheduler=new(r(9865)).QueueScheduler(n.QueueAction),t.queue=t.queueScheduler},2648(e,t){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.getSymbolIterator=r,t.iterator=r(),t.$$iterator=t.iterator},4227(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},3798(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),t.$$rxSubscriber=t.rxSubscriber},2021(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},2747(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},433(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=1,n=Promise.resolve(),o={};function i(e){return e in o&&(delete o[e],!0)}t.Immediate={setImmediate:function(e){var t=r++;return o[t]=!0,n.then(function(){return i(t)&&e()}),t},clearImmediate:function(e){i(e)}},t.TestTools={pending:function(){return Object.keys(o).length}}},3658(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},6490(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},6384(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},6012(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7097);t.canReportError=function(e){for(;e;){var t,r=e,o=r.closed,i=r.destination,s=r.isStopped;if(o||s)return!1;e=i&&(null!=(t=n.Subscriber)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](i):i instanceof t)?i:null}return!0}},2618(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hostReportError=function(e){setTimeout(function(){throw e},0)}},9156(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=function(e){return e}},9109(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},4370(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},8710(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDate=function(e){var t;return(null!=(t=Date)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&!isNaN(+e)}},7894(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},2808(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4227);t.isInteropObservable=function(e){return e&&"function"==typeof e[n.observable]}},4892(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2648);t.isIterable=function(e){return e&&"function"==typeof e[n.iterator]}},2651(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9109);t.isNumeric=function(e){return!n.isArray(e)&&e-parseFloat(e)+1>=0}},5393(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return null!==e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"}},7321(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},9489(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=function(e){return e&&"function"==typeof e.schedule}},898(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){}},1985(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=function(e,t){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}},7654(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9156);function o(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)},t.pipeFromArray=o},3997(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9128),o=r(4320),i=r(107),s=r(352),u=r(4370),a=r(7321),c=r(5393),l=r(2648),f=r(4227);t.subscribeTo=function(e){if(e&&"function"==typeof e[f.observable])return s.subscribeToObservable(e);if(u.isArrayLike(e))return n.subscribeToArray(e);if(a.isPromise(e))return o.subscribeToPromise(e);if(e&&"function"==typeof e[l.iterator])return i.subscribeToIterable(e);throw TypeError("You provided "+(c.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},9128(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeToArray=function(e){return function(t){for(var r=0,n=e.length;r<n&&!t.closed;r++)t.next(e[r]);t.complete()}}},107(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2648);t.subscribeToIterable=function(e){return function(t){for(var r=e[n.iterator]();;){var o=void 0;try{o=r.next()}catch(e){return t.error(e),t}if(o.done){t.complete();break}if(t.next(o.value),t.closed)break}return"function"==typeof r.return&&t.add(function(){r.return&&r.return()}),t}}},352(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4227);t.subscribeToObservable=function(e){return function(t){var r=e[n.observable]();if("function"==typeof r.subscribe)return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")}}},4320(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2618);t.subscribeToPromise=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,n.hostReportError),t}}},8632(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4921),o=r(3997),i=r(7154);t.subscribeToResult=function(e,t,r,s,u){if(void 0===u&&(u=new n.InnerSubscriber(e,r,s)),!u.closed){var a;return(null!=(a=i.Observable)&&"u">typeof Symbol&&a[Symbol.hasInstance]?!!a[Symbol.hasInstance](t):t instanceof a)?t.subscribe(u):o.subscribeTo(t)(u)}}},4665(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7097),o=r(3798),i=r(4109);t.toSubscriber=function(e,t,r){if(e){var s;if(null!=(s=n.Subscriber)&&"u">typeof Symbol&&s[Symbol.hasInstance]?!!s[Symbol.hasInstance](e):e instanceof s)return e;if(e[o.rxSubscriber])return e[o.rxSubscriber]()}return e||t||r?new n.Subscriber(e,t,r):new n.Subscriber(i.empty)}},2719(e,t,r){"use strict";r(6278).audit,r(643).auditTime,r(4987).buffer,r(7288).bufferCount,r(9118).bufferTime,r(4623).bufferToggle,r(2771).bufferWhen,r(7610).catchError,r(3101).combineAll,r(6923).combineLatest,r(325).concat,r(7930).concatAll,r(9091).concatMap,r(2710).concatMapTo,r(8786).count,r(8966).debounce,r(8387).debounceTime,r(1974).defaultIfEmpty,r(926).delay,r(1058).delayWhen,r(2045).dematerialize,r(6961).distinct,r(6693).distinctUntilChanged,r(2296).distinctUntilKeyChanged,r(8876).elementAt,r(1148).endWith,r(4434).every,r(8811).exhaust,r(2429).exhaustMap,r(7409).expand,r(7851).filter,r(7183).finalize,r(8054).find,r(384).findIndex,r(8663).first,r(6659).groupBy,r(6494).ignoreElements,r(7240).isEmpty,r(7801).last,t.map=r(2827).map,r(4078).mapTo,r(5604).materialize,r(5699).max,r(5709).merge,r(8914).mergeAll;var n=r(5643);n.mergeMap,n.flatMap,r(5006).mergeMapTo,r(7924).mergeScan,r(4049).min,r(6683).multicast,r(4436).observeOn,r(4058).onErrorResumeNext,r(4253).pairwise,r(4255).partition,r(8356).pluck,r(626).publish,r(6880).publishBehavior,r(2158).publishLast,r(2337).publishReplay,r(1596).race,r(7103).reduce,r(1198).repeat,r(130).repeatWhen,r(4607).retry,r(6351).retryWhen,r(9509).refCount,r(5607).sample,r(8226).sampleTime,r(740).scan,r(7818).sequenceEqual,r(9882).share,r(9945).shareReplay,r(2085).single,r(3354).skip,r(2022).skipLast,r(3120).skipUntil,r(6525).skipWhile,r(5921).startWith,r(7044).subscribeOn,r(5018).switchAll,r(6179).switchMap,r(9462).switchMapTo,t.take=r(5450).take,r(950).takeLast,r(1824).takeUntil,r(7373).takeWhile,r(1032).tap,r(6249).throttle,r(5708).throttleTime,r(8777).throwIfEmpty,r(7093).timeInterval,r(9846).timeout,r(2706).timeoutWith,r(8133).timestamp,r(3291).toArray,r(8697).window,r(4870).windowCount,r(5372).windowTime,r(7473).windowToggle,r(2561).windowWhen,r(329).withLatestFrom,r(3410).zip,r(4327).zipAll},3642(e,t,r){"use strict";var n=r(5845),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,u=n.useLayoutEffect,a=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,l=n[1];return u(function(){o.value=r,o.getSnapshot=t,c(o)&&l({inst:o})},[e,r,t]),s(function(){return c(o)&&l({inst:o}),e(function(){c(o)&&l({inst:o})})},[e]),a(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},8597(e,t,r){"use strict";e.exports=r(3642)},188(e,t,r){"use strict";r.d(t,{A:()=>a});let n="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);for(var o,i=new Uint8Array(16),s=[],u=0;u<256;++u)s.push((u+256).toString(16).slice(1));let a=function(e,t,r){if(n&&!t&&!e)return n();var u=(e=e||{}).random||(e.rng||function(){if(!o&&!(o="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)})();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=u[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}(u)}},5794(e,t,r){"use strict";r.d(t,{D3:()=>f,jj:()=>h,uA:()=>l,B4:()=>d,sM:()=>p,jX:()=>c});var n=r(7988);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var a={flags:function(){var e={},t=!0,r=!1,n=void 0;try{for(var o,i=Object.keys(localStorage)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var u=o.value;if(u.startsWith("egen:feature-flag:")){var a=u.replace("egen:feature-flag:",""),c=JSON.parse(localStorage.getItem("egen:feature-flag-meta:".concat(a))||"{}");e[a]=s({enabled:"true"===localStorage.getItem(u)},c)}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}()},c=(0,n.getGlobalStore)("feature-flags",a);function l(e,t,r){c.setState(function(n){var o,a;return{flags:u(s({},n.flags),i({},e,{enabled:null!=(o=null==(a=n.flags[e])?void 0:a.enabled)&&o,label:t,description:r}))}})}function f(){var e=c.getState().flags;Object.keys(localStorage).filter(function(e){return e.startsWith("egen:feature-flag:")}).forEach(function(t){var r=t.replace("egen:feature-flag:","");e[r]||(localStorage.removeItem(t),localStorage.removeItem("egen:feature-flag-meta:".concat(r)))})}function h(e){return c.getState().flags[e].enabled}function p(e,t){c.subscribe(function(r){t(r.flags[e].enabled)})}function d(e,t){c.setState(function(r){return{flags:u(s({},r.flags),i({},e,u(s({},r.flags[e]),{enabled:t})))}})}c.subscribe(function(e){var t=!0,r=!1,n=void 0;try{for(var i,s=Object.entries(e.flags)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var u,a=(u=i.value,function(e){if(Array.isArray(e))return e}(u)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(u)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,2)}}(u)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];localStorage.setItem("egen:feature-flag:".concat(c),l.enabled.toString()),localStorage.setItem("egen:feature-flag-meta:".concat(c),JSON.stringify({label:l.label,description:l.description}))}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}})},7488(e,t,r){"use strict";r.d(t,{Ay:()=>l,BE:()=>c});var n=r(5845),o=r.n(n),i=r(8597),s=r(4873);let u=o().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),a={dedupe:!0},c=s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig}),l=(0,s.withArgs)((e,t,r)=>{let{cache:o,compare:c,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:p,refreshInterval:d,refreshWhenHidden:y,refreshWhenOffline:b,keepPreviousData:v}=r,[m,g,w,S]=s.SWRGlobalState.get(o),[O,x]=(0,s.serialize)(e),E=(0,n.useRef)(!1),j=(0,n.useRef)(!1),P=(0,n.useRef)(O),I=(0,n.useRef)(t),A=(0,n.useRef)(r),C=()=>A.current.isVisible()&&A.current.isOnline(),[k,T,R,D]=(0,s.createCacheHelper)(o,O),M=(0,n.useRef)({}).current,N=(0,s.isUndefined)(f)?r.fallback[O]:f,B=(e,t)=>{for(let r in M)if("data"===r){if(!c(e[r],t[r])&&(!(0,s.isUndefined)(e[r])||!c(G,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},U=(0,n.useMemo)(()=>{let e=!!O&&!!t&&((0,s.isUndefined)(h)?!A.current.isPaused()&&!l&&(!!(0,s.isUndefined)(p)||p):h),r=t=>{let r=(0,s.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=k(),o=D(),i=r(n),u=n===o?i:r(o),a=i;return[()=>{let e=r(k());return B(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>u]},[o,O]),V=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>R(O,(t,r)=>{B(r,t)||e()}),[o,O]),U[0],U[1]),F=!E.current,L=m[O]&&m[O].length>0,K=V.data,W=(0,s.isUndefined)(K)?N:K,q=V.error,z=(0,n.useRef)(W),G=v?(0,s.isUndefined)(K)?z.current:K:W,H=(!L||!!(0,s.isUndefined)(q))&&(F&&!(0,s.isUndefined)(h)?h:!A.current.isPaused()&&(l?!(0,s.isUndefined)(W)&&p:(0,s.isUndefined)(W)||p)),$=!!(O&&t&&F&&H),Y=(0,s.isUndefined)(V.isValidating)?$:V.isValidating,X=(0,s.isUndefined)(V.isLoading)?$:V.isLoading,Q=(0,n.useCallback)(async e=>{let t,n,o=I.current;if(!O||!o||j.current||A.current.isPaused())return!1;let i=!0,u=e||{},a=!w[O]||!u.dedupe,l=()=>s.IS_REACT_LEGACY?!j.current&&O===P.current&&E.current:O===P.current,f={isValidating:!1,isLoading:!1},h=()=>{T(f)},p=()=>{let e=w[O];e&&e[1]===n&&delete w[O]},d={isValidating:!0};(0,s.isUndefined)(k().data)&&(d.isLoading=!0);try{if(a&&(T(d),r.loadingTimeout&&(0,s.isUndefined)(k().data)&&setTimeout(()=>{i&&l()&&A.current.onLoadingSlow(O,r)},r.loadingTimeout),w[O]=[o(x),(0,s.getTimestamp)()]),[t,n]=w[O],t=await t,a&&setTimeout(p,r.dedupingInterval),!w[O]||w[O][1]!==n)return a&&l()&&A.current.onDiscarded(O),!1;f.error=s.UNDEFINED;let e=g[O];if(!(0,s.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),a&&l()&&A.current.onDiscarded(O),!1;let u=k().data;f.data=c(u,t)?u:t,a&&l()&&A.current.onSuccess(t,O,r)}catch(r){p();let e=A.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,a&&l()&&(e.onError(r,O,e),(!0===t||(0,s.isFunction)(t)&&t(r))&&(!A.current.revalidateOnFocus||!A.current.revalidateOnReconnect||C())&&e.onErrorRetry(r,O,e,e=>{let t=m[O];t&&t[0]&&t[0](s.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return i=!1,h(),!0},[O,o]),J=(0,n.useCallback)((...e)=>(0,s.internalMutate)(o,P.current,...e),[]);if((0,s.useIsomorphicLayoutEffect)(()=>{I.current=t,A.current=r,(0,s.isUndefined)(K)||(z.current=K)}),(0,s.useIsomorphicLayoutEffect)(()=>{if(!O)return;let e=Q.bind(s.UNDEFINED,a),t=0,r=(0,s.subscribeCallback)(O,m,(r,n={})=>{if(r==s.revalidateEvents.FOCUS_EVENT){let r=Date.now();A.current.revalidateOnFocus&&r>t&&C()&&(t=r+A.current.focusThrottleInterval,e())}else if(r==s.revalidateEvents.RECONNECT_EVENT)A.current.revalidateOnReconnect&&C()&&e();else if(r==s.revalidateEvents.MUTATE_EVENT)return Q();else if(r==s.revalidateEvents.ERROR_REVALIDATE_EVENT)return Q(n)});return j.current=!1,P.current=O,E.current=!0,T({_k:x}),H&&((0,s.isUndefined)(W)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{j.current=!0,r()}},[O]),(0,s.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,s.isFunction)(d)?d(k().data):d;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!k().error&&(y||A.current.isVisible())&&(b||A.current.isOnline())?Q(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[d,y,b,O]),(0,n.useDebugValue)(G),l&&(0,s.isUndefined)(W)&&O){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");I.current=t,A.current=r,j.current=!1;let e=S[O];if((0,s.isUndefined)(e)||u(J(e)),(0,s.isUndefined)(q)){let e=Q(a);(0,s.isUndefined)(G)||(e.status="fulfilled",e.value=!0),u(e)}else throw q}return{mutate:J,get data(){return M.data=!0,G},get error(){return M.error=!0,q},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,X}}})},6269(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(5845),o=r.n(n),i=r(8597),s=r(4873);let u=o().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),a={dedupe:!0};s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig});let c=(0,s.withArgs)((e,t,r)=>{let{cache:o,compare:c,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:p,refreshInterval:d,refreshWhenHidden:y,refreshWhenOffline:b,keepPreviousData:v}=r,[m,g,w,S]=s.SWRGlobalState.get(o),[O,x]=(0,s.serialize)(e),E=(0,n.useRef)(!1),j=(0,n.useRef)(!1),P=(0,n.useRef)(O),I=(0,n.useRef)(t),A=(0,n.useRef)(r),C=()=>A.current.isVisible()&&A.current.isOnline(),[k,T,R,D]=(0,s.createCacheHelper)(o,O),M=(0,n.useRef)({}).current,N=(0,s.isUndefined)(f)?r.fallback[O]:f,B=(e,t)=>{for(let r in M)if("data"===r){if(!c(e[r],t[r])&&(!(0,s.isUndefined)(e[r])||!c(G,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},U=(0,n.useMemo)(()=>{let e=!!O&&!!t&&((0,s.isUndefined)(h)?!A.current.isPaused()&&!l&&(!!(0,s.isUndefined)(p)||p):h),r=t=>{let r=(0,s.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=k(),o=D(),i=r(n),u=n===o?i:r(o),a=i;return[()=>{let e=r(k());return B(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>u]},[o,O]),V=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>R(O,(t,r)=>{B(r,t)||e()}),[o,O]),U[0],U[1]),F=!E.current,L=m[O]&&m[O].length>0,K=V.data,W=(0,s.isUndefined)(K)?N:K,q=V.error,z=(0,n.useRef)(W),G=v?(0,s.isUndefined)(K)?z.current:K:W,H=(!L||!!(0,s.isUndefined)(q))&&(F&&!(0,s.isUndefined)(h)?h:!A.current.isPaused()&&(l?!(0,s.isUndefined)(W)&&p:(0,s.isUndefined)(W)||p)),$=!!(O&&t&&F&&H),Y=(0,s.isUndefined)(V.isValidating)?$:V.isValidating,X=(0,s.isUndefined)(V.isLoading)?$:V.isLoading,Q=(0,n.useCallback)(async e=>{let t,n,o=I.current;if(!O||!o||j.current||A.current.isPaused())return!1;let i=!0,u=e||{},a=!w[O]||!u.dedupe,l=()=>s.IS_REACT_LEGACY?!j.current&&O===P.current&&E.current:O===P.current,f={isValidating:!1,isLoading:!1},h=()=>{T(f)},p=()=>{let e=w[O];e&&e[1]===n&&delete w[O]},d={isValidating:!0};(0,s.isUndefined)(k().data)&&(d.isLoading=!0);try{if(a&&(T(d),r.loadingTimeout&&(0,s.isUndefined)(k().data)&&setTimeout(()=>{i&&l()&&A.current.onLoadingSlow(O,r)},r.loadingTimeout),w[O]=[o(x),(0,s.getTimestamp)()]),[t,n]=w[O],t=await t,a&&setTimeout(p,r.dedupingInterval),!w[O]||w[O][1]!==n)return a&&l()&&A.current.onDiscarded(O),!1;f.error=s.UNDEFINED;let e=g[O];if(!(0,s.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),a&&l()&&A.current.onDiscarded(O),!1;let u=k().data;f.data=c(u,t)?u:t,a&&l()&&A.current.onSuccess(t,O,r)}catch(r){p();let e=A.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,a&&l()&&(e.onError(r,O,e),(!0===t||(0,s.isFunction)(t)&&t(r))&&(!A.current.revalidateOnFocus||!A.current.revalidateOnReconnect||C())&&e.onErrorRetry(r,O,e,e=>{let t=m[O];t&&t[0]&&t[0](s.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return i=!1,h(),!0},[O,o]),J=(0,n.useCallback)((...e)=>(0,s.internalMutate)(o,P.current,...e),[]);if((0,s.useIsomorphicLayoutEffect)(()=>{I.current=t,A.current=r,(0,s.isUndefined)(K)||(z.current=K)}),(0,s.useIsomorphicLayoutEffect)(()=>{if(!O)return;let e=Q.bind(s.UNDEFINED,a),t=0,r=(0,s.subscribeCallback)(O,m,(r,n={})=>{if(r==s.revalidateEvents.FOCUS_EVENT){let r=Date.now();A.current.revalidateOnFocus&&r>t&&C()&&(t=r+A.current.focusThrottleInterval,e())}else if(r==s.revalidateEvents.RECONNECT_EVENT)A.current.revalidateOnReconnect&&C()&&e();else if(r==s.revalidateEvents.MUTATE_EVENT)return Q();else if(r==s.revalidateEvents.ERROR_REVALIDATE_EVENT)return Q(n)});return j.current=!1,P.current=O,E.current=!0,T({_k:x}),H&&((0,s.isUndefined)(W)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{j.current=!0,r()}},[O]),(0,s.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,s.isFunction)(d)?d(k().data):d;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!k().error&&(y||A.current.isVisible())&&(b||A.current.isOnline())?Q(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[d,y,b,O]),(0,n.useDebugValue)(G),l&&(0,s.isUndefined)(W)&&O){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");I.current=t,A.current=r,j.current=!1;let e=S[O];if((0,s.isUndefined)(e)||u(J(e)),(0,s.isUndefined)(q)){let e=Q(a);(0,s.isUndefined)(G)||(e.status="fulfilled",e.value=!0),u(e)}else throw q}return{mutate:J,get data(){return M.data=!0,G},get error(){return M.error=!0,q},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,X}}}),l=(0,s.withMiddleware)(c,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)))},3709(e,t,r){"use strict";r.d(t,{Ay:()=>f});var n=r(5845),o=r.n(n),i=r(8597),s=r(4873);let u=o().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),a={dedupe:!0};s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig});let c=(0,s.withArgs)((e,t,r)=>{let{cache:o,compare:c,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:p,refreshInterval:d,refreshWhenHidden:y,refreshWhenOffline:b,keepPreviousData:v}=r,[m,g,w,S]=s.SWRGlobalState.get(o),[O,x]=(0,s.serialize)(e),E=(0,n.useRef)(!1),j=(0,n.useRef)(!1),P=(0,n.useRef)(O),I=(0,n.useRef)(t),A=(0,n.useRef)(r),C=()=>A.current.isVisible()&&A.current.isOnline(),[k,T,R,D]=(0,s.createCacheHelper)(o,O),M=(0,n.useRef)({}).current,N=(0,s.isUndefined)(f)?r.fallback[O]:f,B=(e,t)=>{for(let r in M)if("data"===r){if(!c(e[r],t[r])&&(!(0,s.isUndefined)(e[r])||!c(G,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},U=(0,n.useMemo)(()=>{let e=!!O&&!!t&&((0,s.isUndefined)(h)?!A.current.isPaused()&&!l&&(!!(0,s.isUndefined)(p)||p):h),r=t=>{let r=(0,s.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=k(),o=D(),i=r(n),u=n===o?i:r(o),a=i;return[()=>{let e=r(k());return B(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>u]},[o,O]),V=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>R(O,(t,r)=>{B(r,t)||e()}),[o,O]),U[0],U[1]),F=!E.current,L=m[O]&&m[O].length>0,K=V.data,W=(0,s.isUndefined)(K)?N:K,q=V.error,z=(0,n.useRef)(W),G=v?(0,s.isUndefined)(K)?z.current:K:W,H=(!L||!!(0,s.isUndefined)(q))&&(F&&!(0,s.isUndefined)(h)?h:!A.current.isPaused()&&(l?!(0,s.isUndefined)(W)&&p:(0,s.isUndefined)(W)||p)),$=!!(O&&t&&F&&H),Y=(0,s.isUndefined)(V.isValidating)?$:V.isValidating,X=(0,s.isUndefined)(V.isLoading)?$:V.isLoading,Q=(0,n.useCallback)(async e=>{let t,n,o=I.current;if(!O||!o||j.current||A.current.isPaused())return!1;let i=!0,u=e||{},a=!w[O]||!u.dedupe,l=()=>s.IS_REACT_LEGACY?!j.current&&O===P.current&&E.current:O===P.current,f={isValidating:!1,isLoading:!1},h=()=>{T(f)},p=()=>{let e=w[O];e&&e[1]===n&&delete w[O]},d={isValidating:!0};(0,s.isUndefined)(k().data)&&(d.isLoading=!0);try{if(a&&(T(d),r.loadingTimeout&&(0,s.isUndefined)(k().data)&&setTimeout(()=>{i&&l()&&A.current.onLoadingSlow(O,r)},r.loadingTimeout),w[O]=[o(x),(0,s.getTimestamp)()]),[t,n]=w[O],t=await t,a&&setTimeout(p,r.dedupingInterval),!w[O]||w[O][1]!==n)return a&&l()&&A.current.onDiscarded(O),!1;f.error=s.UNDEFINED;let e=g[O];if(!(0,s.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),a&&l()&&A.current.onDiscarded(O),!1;let u=k().data;f.data=c(u,t)?u:t,a&&l()&&A.current.onSuccess(t,O,r)}catch(r){p();let e=A.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,a&&l()&&(e.onError(r,O,e),(!0===t||(0,s.isFunction)(t)&&t(r))&&(!A.current.revalidateOnFocus||!A.current.revalidateOnReconnect||C())&&e.onErrorRetry(r,O,e,e=>{let t=m[O];t&&t[0]&&t[0](s.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return i=!1,h(),!0},[O,o]),J=(0,n.useCallback)((...e)=>(0,s.internalMutate)(o,P.current,...e),[]);if((0,s.useIsomorphicLayoutEffect)(()=>{I.current=t,A.current=r,(0,s.isUndefined)(K)||(z.current=K)}),(0,s.useIsomorphicLayoutEffect)(()=>{if(!O)return;let e=Q.bind(s.UNDEFINED,a),t=0,r=(0,s.subscribeCallback)(O,m,(r,n={})=>{if(r==s.revalidateEvents.FOCUS_EVENT){let r=Date.now();A.current.revalidateOnFocus&&r>t&&C()&&(t=r+A.current.focusThrottleInterval,e())}else if(r==s.revalidateEvents.RECONNECT_EVENT)A.current.revalidateOnReconnect&&C()&&e();else if(r==s.revalidateEvents.MUTATE_EVENT)return Q();else if(r==s.revalidateEvents.ERROR_REVALIDATE_EVENT)return Q(n)});return j.current=!1,P.current=O,E.current=!0,T({_k:x}),H&&((0,s.isUndefined)(W)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{j.current=!0,r()}},[O]),(0,s.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,s.isFunction)(d)?d(k().data):d;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!k().error&&(y||A.current.isVisible())&&(b||A.current.isOnline())?Q(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[d,y,b,O]),(0,n.useDebugValue)(G),l&&(0,s.isUndefined)(W)&&O){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");I.current=t,A.current=r,j.current=!1;let e=S[O];if((0,s.isUndefined)(e)||u(J(e)),(0,s.isUndefined)(q)){let e=Q(a);(0,s.isUndefined)(G)||(e.status="fulfilled",e.value=!0),u(e)}else throw q}return{mutate:J,get data(){return M.data=!0,G},get error(){return M.error=!0,q},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,X}}}),l=Promise.resolve(),f=(0,s.withMiddleware)(c,e=>(t,r,o)=>{let u,a=(0,n.useRef)(!1),{cache:c,initialSize:f=1,revalidateAll:h=!1,persistSize:p=!1,revalidateFirstPage:d=!0,revalidateOnMount:y=!1,parallel:b=!1}=o,[,,,v]=s.SWRGlobalState.get(s.cache);try{(u=(0,s.serialize)(t?t(0,null):null)[0])&&(u=s.INFINITE_PREFIX+u)}catch(e){}let[m,g,w]=(0,s.createCacheHelper)(c,u),S=(0,n.useCallback)(()=>(0,s.isUndefined)(m()._l)?f:m()._l,[c,u,f]);(0,i.useSyncExternalStore)((0,n.useCallback)(e=>u?w(u,()=>{e()}):()=>{},[c,u]),S,S);let O=(0,n.useCallback)(()=>{let e=m()._l;return(0,s.isUndefined)(e)?f:e},[u,f]),x=(0,n.useRef)(O());(0,s.useIsomorphicLayoutEffect)(()=>{if(!a.current){a.current=!0;return}u&&g({_l:p?x.current:O()})},[u,c]);let E=y&&!a.current,j=e(u,async e=>{let n=m()._i,i=m()._r;g({_r:s.UNDEFINED});let u=[],a=O(),[l]=(0,s.createCacheHelper)(c,e),f=l().data,p=[],y=null;for(let e=0;e<a;++e){let[a,l]=(0,s.serialize)(t(e,b?null:y));if(!a)break;let[m,g]=(0,s.createCacheHelper)(c,a),w=m().data,S=h||n||(0,s.isUndefined)(w)||d&&!e&&!(0,s.isUndefined)(f)||E||f&&!(0,s.isUndefined)(f[e])&&!o.compare(f[e],w);if(r&&("function"==typeof i?i(w,l):S)){let t=async()=>{if(a in v){let e=v[a];delete v[a],w=await e}else w=await r(l);g({data:w,_k:l}),u[e]=w};b?p.push(t):await t()}else u[e]=w;b||(y=w)}return b&&await Promise.all(p.map(e=>e())),g({_i:s.UNDEFINED}),u},o),P=(0,n.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return u?(n&&((0,s.isUndefined)(e)?g({_i:!0,_r:r.revalidate}):g({_i:!1,_r:r.revalidate})),arguments.length?j.mutate(e,{...r,revalidate:n}):j.mutate()):l},[u,c]),I=(0,n.useCallback)(e=>{let r;if(!u)return l;let[,n]=(0,s.createCacheHelper)(c,u);if((0,s.isFunction)(e)?r=e(O()):"number"==typeof e&&(r=e),"number"!=typeof r)return l;n({_l:r}),x.current=r;let o=[],[i]=(0,s.createCacheHelper)(c,u),a=null;for(let e=0;e<r;++e){let[r]=(0,s.serialize)(t(e,a)),[n]=(0,s.createCacheHelper)(c,r),u=r?n().data:s.UNDEFINED;if((0,s.isUndefined)(u))return P(i().data);o.push(u),a=u}return P(o)},[u,c,P,O]);return{size:O(),setSize:I,mutate:P,get data(){return j.data},get error(){return j.error},get isValidating(){return j.isValidating},get isLoading(){return j.isLoading}}})},4356(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}r.d(t,{A:()=>l});var u=function(){function e(){o(this,e)}return s(e,[{key:"add",value:function(e,t,r){if("string"!=typeof arguments[0])for(var n in arguments[0])this.add(n,arguments[0][n],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][r?"unshift":"push"](t)},this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}]),e}(),a=function(){function e(t){o(this,e),this.jsep=t,this.registered={}}return s(e,[{key:"register",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(t){if((void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||!t.name||!t.init)throw Error("Invalid JSEP plugin format");e.registered[t.name]||(t.init(e.jsep),e.registered[t.name]=t)})}}]),e}(),c=function(){function e(t){o(this,e),this.expr=t,this.index=0}return s(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(e){var t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}},{key:"runHook",value:function(t,r){if(e.hooks[t]){var n={context:this,node:r};return e.hooks.run(t,n),n.node}return r}},{key:"searchHook",value:function(t){if(e.hooks[t]){var r={context:this};return e.hooks[t].find(function(e){return e.call(r.context,r),r.node}),r.node}}},{key:"gobbleSpaces",value:function(){for(var t=this.code;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var t=this.gobbleExpressions(),r=1===t.length?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",r)}},{key:"gobbleExpressions",value:function(t){for(var r,n,o=[];this.index<this.expr.length;)if((r=this.code)===e.SEMCOL_CODE||r===e.COMMA_CODE)this.index++;else if(n=this.gobbleExpression())o.push(n);else if(this.index<this.expr.length){if(r===t)break;this.throwError('Unexpected "'+this.char+'"')}return o}},{key:"gobbleExpression",value:function(){var e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var t=this.expr.substr(this.index,e.max_binop_len),r=t.length;r>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=r,t;t=t.substr(0,--r)}return!1}},{key:"gobbleBinaryExpression",value:function(){var t,r,n,o,i,s,u,a,c,l;if(!(s=this.gobbleToken())||!(r=this.gobbleBinaryOp()))return s;for(i={value:r,prec:e.binaryPrecedence(r),right_a:e.right_associative.has(r)},(u=this.gobbleToken())||this.throwError("Expected expression after "+r),o=[s,i,u];r=this.gobbleBinaryOp();){if(0===(n=e.binaryPrecedence(r))){this.index-=r.length;break}for(i={value:r,prec:n,right_a:e.right_associative.has(r)},c=r;o.length>2&&(l=o[o.length-2],i.right_a&&l.right_a?n>l.prec:n<=l.prec);)u=o.pop(),r=o.pop().value,s=o.pop(),t={type:e.BINARY_EXP,operator:r,left:s,right:u},o.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+c),o.push(i,t)}for(a=o.length-1,t=o[a];a>1;)t={type:e.BINARY_EXP,operator:o[a-1].value,left:o[a-2],right:t},a-=2;return t}},{key:"gobbleToken",value:function(){var t,r,n,o;if(this.gobbleSpaces(),o=this.searchHook("gobble-token"))return this.runHook("after-token",o);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)o=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)o=this.gobbleArray();else{for(n=(r=this.expr.substr(this.index,e.max_unop_len)).length;n>0;){if(e.unary_ops.hasOwnProperty(r)&&(!e.isIdentifierStart(this.code)||this.index+r.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+r.length)))){this.index+=n;var i=this.gobbleToken();return i||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:r,argument:i,prefix:!0})}r=r.substr(0,--n)}e.isIdentifierStart(t)?(o=this.gobbleIdentifier(),e.literals.hasOwnProperty(o.name)?o={type:e.LITERAL,value:e.literals[o.name],raw:o.name}:o.name===e.this_str&&(o={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(o=this.gobbleGroup())}return o?(o=this.gobbleTokenProperty(o),this.runHook("after-token",o)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(t){this.gobbleSpaces();for(var r=this.code;r===e.PERIOD_CODE||r===e.OBRACK_CODE||r===e.OPAREN_CODE||r===e.QUMARK_CODE;){var n=void 0;if(r===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),r=this.code}this.index++,r===e.OBRACK_CODE?((t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(r=this.code)!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):r===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(r===e.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),n&&(t.optional=!0),this.gobbleSpaces(),r=this.code}return t}},{key:"gobbleNumericLiteral",value:function(){for(var t,r,n="";e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(n+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(n+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(n+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+n+this.char+")")}return r=this.code,e.isIdentifierStart(r)?this.throwError("Variable names cannot start with a number ("+n+this.char+")"):(r===e.PERIOD_CODE||1===n.length&&n.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(n),raw:n}}},{key:"gobbleStringLiteral",value:function(){for(var t="",r=this.index,n=this.expr.charAt(this.index++),o=!1;this.index<this.expr.length;){var i=this.expr.charAt(this.index++);if(i===n){o=!0;break}if("\\"===i)switch(i=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=i}else t+=i}return o||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(r,this.index)}}},{key:"gobbleIdentifier",value:function(){var t=this.code,r=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,e.isIdentifierPart(t))this.index++;else break;return{type:e.IDENTIFIER,name:this.expr.slice(r,this.index)}}},{key:"gobbleArguments",value:function(t){for(var r=[],n=!1,o=0;this.index<this.expr.length;){this.gobbleSpaces();var i=this.code;if(i===t){n=!0,this.index++,t===e.CPAREN_CODE&&o&&o>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(i===e.COMMA_CODE){if(this.index++,++o!==r.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(var s=r.length;s<o;s++)r.push(null)}}else if(r.length!==o&&0!==o)this.throwError("Expected comma");else{var u=this.gobbleExpression();u&&u.type!==e.COMPOUND||this.throwError("Expected comma"),r.push(u)}}return n||this.throwError("Expected "+String.fromCharCode(t)),r}},{key:"gobbleGroup",value:function(){this.index++;var t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:e.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.4.0"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}},{key:"addBinaryOp",value:function(t,r,n){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=r,n?e.right_associative.add(t):e.right_associative.delete(t),e}},{key:"addIdentifierChar",value:function(t){return e.additional_identifier_chars.add(t),e}},{key:"addLiteral",value:function(t,r){return e.literals[t]=r,e}},{key:"removeUnaryOp",value:function(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(t){return e.additional_identifier_chars.delete(t),e}},{key:"removeBinaryOp",value:function(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(t){return delete e.literals[t],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(t){return new e(t).parse()}},{key:"getMaxKeyLen",value:function(e){var t,r;return(t=Math).max.apply(t,[0].concat(function(e){if(Array.isArray(e))return n(e)}(r=Object.keys(e).map(function(e){return e.length}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e){if(e){if("string"==typeof e)return n(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}},{key:"isDecimalDigit",value:function(e){return e>=48&&e<=57}},{key:"binaryPrecedence",value:function(t){return e.binary_ops[t]||0}},{key:"isIdentifierStart",value:function(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}},{key:"isIdentifierPart",value:function(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}}]),e}();Object.assign(c,{hooks:new u,plugins:new a(c),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),c.max_unop_len=c.getMaxKeyLen(c.unary_ops),c.max_binop_len=c.getMaxKeyLen(c.binary_ops);var l=function(e){return new c(e).parse()},f=Object.getOwnPropertyNames(function e(){o(this,e)});Object.getOwnPropertyNames(c).filter(function(e){return!f.includes(e)&&void 0===l[e]}).forEach(function(e){l[e]=c[e]}),l.Jsep=c,l.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var o=this.gobbleExpression();if(o||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:o},r.operator&&e.binary_ops[r.operator]<=.9){for(var i=r;i.right.operator&&e.binary_ops[i.right.operator]<=.9;)i=i.right;t.node.test=i.right,i.right=t.node,t.node=r}}else this.throwError("Expected :")}})}})},7403(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(2102);let o=(0,r(6317).A)(function(e,t,r){(0,n.A)(e,t,r)})},2879(e,t,r){"use strict";function n(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return void 0===e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":n(e)})(e)}function u(e){return(u="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return void 0===e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":n(e)})(e)}function a(e,t){var r;if("function"!=typeof(r=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var r="single-spa-application:".concat(t);return function(){var e=document.getElementById(r);return e||((e=document.createElement("div")).id=r,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(u(r)));return function(){var e,n=r(t);if(null!=(e=HTMLElement)&&"u">typeof Symbol&&e[Symbol.hasInstance]?!e[Symbol.hasInstance](n):!(n instanceof e))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(u(n)));return n}}r.d(t,{A:()=>f,i:()=>c});var c=null;try{c=require("react").createContext()}catch(e){}var l={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function f(e){if("object"!==s(e))throw Error("single-spa-react requires a configuration object");var t,r=i(i({},l),e);if(!r.React)throw Error("single-spa-react must be passed opts.React");if(!r.ReactDOM&&!r.ReactDOMClient)throw Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(r.renderType||(null!=(t=r.ReactDOMClient)&&t.createRoot?r.renderType="createRoot":r.renderType="render"),!r.rootComponent&&!r.loadRootComponent)throw Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(r.errorBoundary&&"function"!=typeof r.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!c&&r.React.createContext&&(c=r.React.createContext()),r.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(r);var n={bootstrap:h.bind(null,r),mount:p.bind(null,r),unmount:d.bind(null,r)};return r.parcelCanUpdate&&(n.update=y.bind(null,r)),n}function h(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(t){e.rootComponent=t})}function p(e,t){return new Promise(function(r,n){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o,i=v(e,t,function(){r(this)}),s=a(e,t)(),u=function(e){var t=e.reactDom,r=e.renderType,n=e.elementToRender,o=e.domElement,i=t[r];if("function"!=typeof i)throw Error('renderType "'.concat(r,'" did not return a function.'));switch(r){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var s=i(o);return s.render(n),s;case"hydrateRoot":return i(o,n);default:return i(n,o),null}}({elementToRender:i,domElement:s,reactDom:b(e),renderType:"function"==typeof(o=e).renderType?o.renderType():o.renderType});e.domElements[t.name]=s,e.renderResults[t.name]=u})}function d(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():b(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function y(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=v(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var i=a(e,t)();b(e).render(n,i)}})}function b(e){return e.ReactDOMClient||e.ReactDOM}function v(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=c?e.React.createElement(c.Provider,{value:t},n):n;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function r(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},r.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return r.prototype=Object.create(e.React.Component.prototype),r.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},r.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},r}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,i(i({},t),{},{mountFinished:r,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(e){return e()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}},3447(e,t,r){"use strict";r.d(t,{mI:()=>w,ly:()=>B,dZ:()=>m,rm:()=>U,Bv:()=>c,Vs:()=>x,cD:()=>l,KU:()=>a,XM:()=>M,Ty:()=>j,E$:()=>O,TG:()=>A,qd:()=>C,pJ:()=>k,SY:()=>f,R5:()=>D,g8:()=>g,iS:()=>E,r_:()=>R,Zu:()=>u,bS:()=>N});var n,o,i=r(7530);function s(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}var u="".concat(i.restBaseUrl,"/attachment");function a(e,t){return(0,i.egenFetch)("".concat(u,"/").concat(e),{signal:t.signal})}function c(e,t,r){return(0,i.egenFetch)("".concat(u,"?entity=").concat(e,"&includeOrphan=").concat(t),{signal:r.signal})}function l(e,t){var r;return(r=function(){var r;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(n){return(r=new FormData).append("fileCaption",t.fileDescription),r.append("entity",e),t.file?r.append("file",t.file,t.fileName):(r.append("file",new File([""],t.fileName),t.fileName),r.append("base64Content",t.base64Content)),[2,(0,i.egenFetch)("".concat(u),{method:"POST",body:r})]})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function u(e){s(i,n,o,u,a,"next",e)}function a(e){s(i,n,o,u,a,"throw",e)}u(void 0)})})()}function f(e,t){return(0,i.egenFetch)("".concat(u,"/").concat(e),{method:"DELETE",signal:t.signal})}var h=r(6563);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function y(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){d(i,n,o,s,u,"next",e)}function u(e){d(i,n,o,s,u,"throw",e)}s(void 0)})}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,u=!1;try{for(o=o.call(e);!(s=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){u=!0,n=e}finally{try{s||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function m(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return y(function(){var n,o,s,u;return v(this,function(a){switch(a.label){case 0:var c;if(!e)return[3,2];return n=null,[4,Promise.all([(0,i.egenFetch)("".concat(i.fhirBaseUrl,"/Entity/").concat(e),t).catch(function(e){return n=e}),r?(c=e,y(function(){var e,t;return v(this,function(r){switch(r.label){case 0:return[4,(0,h.pb)("entity-registration")];case 1:return[2,null!=(e=null==(t=r.sent().find(function(e){return e.fhirEntity.id===c}))?void 0:t.fhirEntity)?e:null]}})})()):Promise.resolve(null)])];case 1:if(s=(o=b.apply(void 0,[a.sent(),2]))[0],u=o[1],s.ok)return[2,s.data];if(u)return[2,u];if(n)throw n;a.label=2;case 2:return[2,null]}})})()}function g(e,t){var r=new CustomEvent("egen:".concat(e),{detail:null!=t?t:void 0,cancelable:!0,bubbles:!0});return window.dispatchEvent(r)}function w(e,t){var r=function(e){t("detail"in e&&null!==e.detail?e.detail:void 0)};return window.addEventListener("egen:".concat(e),r),function(){window.removeEventListener("egen:".concat(e),r)}}var S=r(2719);function O(e){return{uuid:e.uuid,display:e.display}}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=new URLSearchParams;e&&r.set("tag",e),t&&r.set("q",t);var n=r.toString(),o="".concat(i.restBaseUrl,"/location").concat(n?"?"+n:"");return(0,i.egenObservableFetch)(o).pipe((0,S.map)(function(e){return e.data.results.map(O)})).pipe((0,S.take)(1))}function E(e){return{uuid:e.uuid,display:e.display,name:e.name}}function j(){return(0,i.egenObservableFetch)("".concat(i.restBaseUrl,"/sessiontype")).pipe((0,S.map)(function(e){return e.data.results.map(E)})).pipe((0,S.take)(1))}var P=r(7988),I=r(6900),A=((n={}).NEW="startSession",n.EDIT="editSession",n.LOADING="loadingSession",n),C=((o={}).NOTSTARTED="notStarted",o.ONGOING="ongoing",o),k="custom:(uuid,display,voided,indication,startDatetime,stopDatetime,interactions:(uuid,display,interactionDatetime,form:(uuid,name),location:ref,interactionType:ref,interactionHandlers:(uuid,display,handler:(uuid,display))),entity:(uuid,display),sessionType:(uuid,name,display),attributes:(uuid,display,attributeType:(name,datatypeClassname,uuid),value),location:(uuid,name,display))",T=function(){try{return JSON.parse(sessionStorage.getItem("egen:sessionStoreState")||"null")}catch(e){return null}}()||{entityUuid:null,manuallySetSessionUuid:null,mutateSessionCallbacks:{}};function R(){return(0,P.getGlobalStore)("session",T)}function D(e,t){R().setState({entityUuid:e,manuallySetSessionUuid:t})}function M(e,t){return(0,i.egenFetch)("".concat(i.restBaseUrl,"/session"),{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function N(e,t,r){return(0,i.egenFetch)("".concat(i.restBaseUrl,"/session/").concat(e),{signal:r.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})}function B(e,t,r){return(0,i.egenFetch)("".concat(i.restBaseUrl,"/session?entity=").concat(e,"&v=").concat(null!=r?r:k),{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}})}R().subscribe(function(e){var t;t=e,sessionStorage.setItem("egen:sessionStoreState",JSON.stringify(t))});var U=new I.BehaviorSubject(null)},6014(e,t,r){"use strict";r.d(t,{dX:()=>x,wE:()=>I,_3:()=>g,uN:()=>P,$F:()=>E,Gz:()=>O,eb:()=>S,Sj:()=>j,mv:()=>w,PQ:()=>n.A});var n=r(4356),o="ArrowFunctionExpression";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=r(4693);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){c(i,n,o,s,u,"next",e)}function u(e){c(i,n,o,s,u,"throw",e)}s(void 0)})}}function f(e,t,r){return(f=v()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function h(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function m(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(e,t,A)}function w(e){return l(function(e){var t=arguments;return m(this,function(r){return[2,P(e,t.length>1&&void 0!==t[1]?t[1]:{},A)]})}).apply(this,arguments)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(e,t,C)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(e,t,C)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(e,t,k)}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(e,t,k)}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&((void 0===e?"undefined":b(e))!=="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");if("string"==typeof e&&0===e.trim().length)throw{type:"Empty expression",message:"Expression cannot be an empty string"};null==t&&(t={});var o=D(t,u.z),i=T("string"==typeof e?(0,n.A)(e):e,o);if(r(i))return i;throw{type:"Invalid result",message:"string"==typeof e?"The expression ".concat(e," did not produce a valid result"):"The expression did not produce a valid result"}}function P(e,t){return l(function(e){var t,r,o,i=arguments;return m(this,function(s){if(t=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2?i[2]:void 0,"string"!=typeof e&&((void 0===e?"undefined":b(e))!=="object"||!e||!("type"in e)))return[2,Promise.reject("Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string."))];if("string"==typeof e&&0===e.trim().length)throw{type:"Empty expression",message:"Expression cannot be an empty string"};return null==t&&(t={}),o=D(t,u.f),[2,Promise.resolve(T("string"==typeof e?(0,n.A)(e):e,o)).then(function(t){if(r(t))return t;throw{type:"Invalid result",message:"string"==typeof e?"The expression ".concat(e," did not produce a valid result"):"The expression did not produce a valid result"}})]})}).apply(this,arguments)}function I(e){return(0,n.A)(e)}function A(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||null==e||h(e,Date)}function C(e){return"boolean"==typeof e}function k(e){return"number"==typeof e}function T(e,t){switch(e.type){case"UnaryExpression":var r,n,o,i,s,u,a,c,l,p,d=e,v=t,m=T(d.argument,v);switch(d.operator){case"+":return+m;case"-":return-m;case"~":return~m;case"!":return!m;default:throw"Expression evaluator does not support operator '".concat(d.operator,"''")}case"BinaryExpression":var g=e,w=t,S=T(g.left,w),O=T(g.right,w);switch(g.operator){case"+":return S+O;case"-":return S-O;case"*":return S*O;case"/":return S/O;case"%":return S%O;case"**":return Math.pow(S,O);case"==":return S==O;case"===":return S===O;case"!=":return S!=O;case"!==":return S!==O;case">":return S>O;case">=":return S>=O;case"<":return S<O;case"<=":return S<=O;case"in":return S in O;case"&&":return S&&O;case"||":return S||O;case"??":return null!=S?S:O;default:throw"Expression evaluator does not support operator '".concat(g.operator,"' operator")}case"ConditionalExpression":return x=e,E=t,T(x.test,E)?T(x.consequent,E):T(x.alternate,E);case"CallExpression":var x,E,j,P=e,I=t,A=null==(j=P.arguments)?void 0:j.map(M(I)),C=T(P.callee,I);if(C){if("function"!=typeof C)throw"".concat(B(P.callee)," is not a function")}else throw"No function named ".concat(B(P.callee)," is defined in this context");return C.apply(void 0,y(A));case"ArrowFunctionExpression":return U=e,V=t,W=null!=(F=null==(K=U.params)?void 0:K.map(function(e){if("Identifier"===e.type)return e.name;throw"Cannot handle parameter of type ".concat(e.type)}))?F:[],(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length<W.length)throw"Required argument(s) ".concat(W.slice(t.length,-1).join(", ")," were not provided");var n=Object.fromEntries(W.reduce(function(e,r,n){var o=t[n];return function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||null===t||h(t,RegExp))return!0;if((void 0===t?"undefined":b(t))==="object"){var r=!0,n=!1,o=void 0;try{for(var i,s=Object.keys(t)[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value;if(!e(t[u]))return!1}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return!0}if(Array.isArray(t)){var a=!0,c=!1,l=void 0;try{for(var f,p=t[Symbol.iterator]();!(a=(f=p.next()).done);a=!0){var d=f.value;if(!e(d))return!1}}catch(e){c=!0,l=e}finally{try{a||null==p.return||p.return()}finally{if(c)throw l}}}return!1}(o)&&e.push([r,o]),e},[]));return T(U.body,V.addVariables(n))}).bind(null!=(L=V.thisObj)?L:null);case"MemberExpression":return function(e,t){var r,n=T(e.object,t);if(void 0===n)switch(e.object.type){case"Identifier":var o=R(e.object,t);throw ReferenceError("ReferenceError: ".concat(o," is not defined"));case"MemberExpression":var i=R(e.property,t);throw TypeError("TypeError: cannot read properties of undefined (reading '".concat(i,"')"));default:throw"VisitMemberExpression does not support operator '".concat(e.object.type,"' type")}var s=n;if("string"==typeof n)s=String.prototype;else if("number"==typeof n)s=Number.prototype;else if("function"==typeof n);else if((void 0===n?"undefined":b(n))!=="object")throw"VisitMemberExpression does not support member access on type ".concat(void 0===n?"undefined":b(n));switch(t.thisObj=s,e.property.type){case"Identifier":case"MemberExpression":r=T(e.property,t);break;default:var u=T(e.property,t);if(void 0===u)throw{type:"Illegal property access",message:"No property was supplied to the property access"};N(u),r=n[u]}return"function"==typeof r?r.bind(n):r}(e,t);case"ArrayExpression":return q=e,z=t,null==(G=q.elements)?void 0:G.map(M(z));case"SequenceExpression":return H=e,$=t,(Y=H.expressions.map(M($)))[Y.length-1];case"NewExpression":var k=e,D=t;if(k.callee&&"Identifier"===k.callee.type){var U,V,F,L,K,W,q,z,G,H,$,Y,X,Q=null==(X=k.arguments)?void 0:X.map(M(D));switch(k.callee.name){case"Date":return f(Date,y(Q));case"RegExp":return f(RegExp,y(Q));default:throw"Cannot instantiate object of type ".concat(k.callee.name)}}if(k.callee)throw"new must be called with either Date or RegExp";throw'Could not handle "new" without a specified class';case"Literal":return N((r=e).value),r.value;case"Identifier":var J=e,Z=t;N(J.name);var ee=Z.thisObj;if(ee&&((void 0===ee?"undefined":b(ee))==="object"||"function"==typeof ee)&&J.name in ee){var et=ee[J.name];return N(et),et}if(Z.variables&&J.name in Z.variables){var er=Z.variables[J.name];return N(er),er}return J.name in Z.globals?Z.globals[J.name]:void 0;case"TemplateLiteral":return n=e,o=t,c=null!=(i=null==(u=n.expressions)?void 0:u.map(M(o)))?i:[],(l=null!=(s=null==(a=n.quasis)?void 0:a.map(M(o)))?s:[]).filter(function(e){return!e.tail}).map(function(e){return e.value}).join("")+c.join("")+l.filter(function(e){return e.tail}).map(function(e){return e.value}).join("");case"TemplateElement":return{value:(p=e).cooked,tail:p.tail};default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function R(e,t){switch(e.type){case"Literal":return e.value;case"Identifier":return e.name;case"MemberExpression":return R(e.property,t);default:throw"VisitExpressionName does not support expression of type '".concat(e.type,"'")}}function D(e,t){var r={thisObj:void 0,variables:p({},e),globals:p({},t),addVariables:function(e){return this.variables=p({},this.variables,e),this}};return r.addVariables.bind(r),r}function M(e){return function(t){return null===t?null:T(t,e)}}function N(e){if("__proto__"===e||"prototype"===e||"constructor"===e)throw{type:"Illegal property access",message:"Cannot access the ".concat(e," property of objects")}}function B(e){if(!e)return null;if("MemberExpression"===e.type){var t;return null==(t=e.property)?void 0:t.name}return e.name}n.A.plugins.register({name:"arrow",init:function(e){e.addBinaryOp("=>",.1,!0),e.hooks.add("gobble-expression",function(t){if(this.gobbleSpaces(),this.code===e.OPAREN_CODE){var r=this.index;if(this.index++,this.gobbleSpaces(),this.code===e.CPAREN_CODE){this.index++;var n=this.gobbleBinaryOp();if("=>"===n){var i=this.gobbleBinaryExpression();i||this.throwError("Expected expression after "+n),t.node={type:o,params:null,body:i};return}}this.index=r}}),e.hooks.add("after-expression",function(t){!function t(r){r&&(Object.values(r).forEach(function(e){e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&t(e)}),"=>"===r.operator&&(r.type=o,r.params=r.left?[r.left]:null,r.body=r.right,r.params&&r.params[0].type===e.SEQUENCE_EXP&&(r.params=r.params[0].expressions),delete r.left,delete r.right,delete r.operator))}(t.node)})}}),n.A.plugins.register({name:"new",init:function(e){e.addUnaryOp("new"),e.hooks.add("after-token",function(t){var r=t.node;if(r&&"new"===r.operator){r.argument&&[e.CALL_EXP,e.MEMBER_EXP].includes(r.argument.type)||this.throwError("Expected new function()"),t.node=r.argument;for(var n=t.node;n.type===e.MEMBER_EXP||n.type===e.CALL_EXP&&n.callee.type===e.MEMBER_EXP;)n=n.type===e.MEMBER_EXP?n.object:n.callee.object;n.type="NewExpression"}})}}),n.A.plugins.register({name:"numbers",init:function(e){function t(e){return"x"===e||"X"===e?(this.index+=2,[[48,57],[65,70],[97,102]]):"b"===e||"B"===e?(this.index+=2,[[48,49]]):"o"===e||"O"===e||e>="0"&&e<="7"?(this.index+=e<="7"?1:2,[[48,55]]):null}function r(t){var r=this,n=this.index,o="",i=function(){for(;e.isDecimalDigit(r.code)||95===r.code;)95===r.code?r.index++:o+=r.expr.charAt(r.index++)};i(),this.code===e.PERIOD_CODE&&(o+=this.expr.charAt(this.index++),i());var s=this.char;("e"===s||"E"===s)&&(o+=this.expr.charAt(this.index++),("+"===(s=this.char)||"-"===s)&&(o+=this.expr.charAt(this.index++)),i(),e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+o+this.char+")"));var u=this.code;if(e.isIdentifierStart(u))this.throwError("Variable names cannot start with a number ("+o+this.char+")");else if(u===e.PERIOD_CODE){o.length>1&&this.throwError("Unexpected period ".concat(JSON.stringify({chCode:u,number:o},null,2))),this.index=n;return}t.node={type:e.LITERAL,value:parseFloat(o),raw:this.expr.substring(n,this.index)}}e.hooks.add("gobble-token",function(n){if(48===this.code){var o=this.index,s=this.expr.charAt(this.index+1),u=t.call(this,s);if(u){for(var a,c,l,f="";a=this.code,c=u,95===a||c.some(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return i(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],n=t[1];return a>=r&&a<=n});)95===this.code?this.index++:f+=this.expr.charAt(this.index++);if(e.isIdentifierPart(this.code)){if(e.isDecimalDigit(this.code)&&e.isDecimalDigit(s.charCodeAt(0))){this.index=o+1,r.call(this,n);return}this.throwError("unexpected char within number")}n.node={type:e.LITERAL,value:parseInt(f,"x"===(l=s)||"X"===l?16:"b"===l||"B"===l?2:8),raw:this.expr.substring(o,this.index)}}}else(e.isDecimalDigit(this.code)||this.code===e.PERIOD_CODE)&&r.call(this,n)})}}),n.A.plugins.register({name:"regex",init:function(e){e.hooks.add("gobble-token",function(t){if(47===this.code){for(var r=++this.index,n=!1;this.index<this.expr.length;){if(47===this.code&&!n){for(var o=this.expr.slice(r,this.index),i="";++this.index<this.expr.length;){var s=this.code;if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57)i+=this.char;else break}var u=void 0;try{u=new RegExp(o,i)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:u,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?n=!0:n&&this.code===e.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}}),n.A.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var o=this.gobbleExpression();if(o||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:o},r.operator&&e.binary_ops[r.operator]<=.9){for(var i=r;i.right.operator&&e.binary_ops[i.right.operator]<=.9;)i=i.right;t.node.test=i.right,i.right=t.node,t.node=r}}else this.throwError("Expected :")}})}}),n.A.plugins.register({name:"jsepTemplateLiteral",init:function(e){function t(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(96===this.code){for(var r={type:"TemplateLiteral",quasis:[],expressions:[]},n="",o="",i=!1,u=this.expr.length,a=function(){return r.quasis.push({type:"TemplateElement",value:{raw:o,cooked:n},tail:i})};this.index<u;){var c,l,f=this.expr.charAt(++this.index);if("`"===f)return this.index+=1,i=!0,a(),e.node=r,t&&(e.node=this.gobbleTokenProperty(e.node)),e.node;if("$"===f&&"{"===this.expr.charAt(this.index+1))this.index+=2,a(),o="",n="",(l=r.expressions).push.apply(l,function(e){if(Array.isArray(e))return s(e)}(c=this.gobbleExpressions(125))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),125!==this.code&&this.throwError("unclosed ${");else if("\\"===f)switch(o+=f,f=this.expr.charAt(++this.index),o+=f,f){case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+=" ";break;case"b":n+="\b";break;case"f":n+="\f";break;case"v":n+="\v";break;default:n+=f}else n+=f,o+=f}this.throwError("Unclosed `")}}e.hooks.add("gobble-token",t),e.hooks.add("after-token",function(r){if((r.node.type===e.IDENTIFIER||r.node.type===e.MEMBER_EXP)&&96===this.code)return r.node={type:"TaggedTemplateExpression",tag:r.node,quasi:t.bind(this)(r,!1)},r.node=this.gobbleTokenProperty(r.node),r.node})}}),n.A.addBinaryOp("in",7),n.A.addBinaryOp("??",1)},4693(e,t,r){"use strict";r.d(t,{f:()=>s,z:()=>i});var n,o,i={Array:Array,Boolean:Boolean,Symbol:Symbol,Infinity:1/0,NaN:NaN,Math:Math,Number:Number,BigInt:BigInt,String:String,RegExp:RegExp,JSON:JSON,isFinite:isFinite,isNaN:isNaN,parseFloat:parseFloat,parseInt:parseInt,decodeURI:decodeURI,encodeURI:encodeURI,encodeURIComponent:encodeURIComponent,Object:{__proto__:void 0,assign:Object.assign.bind(null),fromEntries:Object.fromEntries.bind(null),hasOwn:Object.hasOwn.bind(null),keys:Object.keys.bind(null),is:Object.is.bind(null),values:Object.values.bind(null)}},s=(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},i),o=o={Promise:Promise},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n)},7477(e,t,r){"use strict";r.d(t,{J_:()=>ed,zx:()=>W,ES:()=>D,FY:()=>q,zF:()=>v,Uh:()=>eg,io:()=>ea,Ef:()=>h,wG:()=>eI,Qb:()=>e_,dO:()=>f,o1:()=>eb,rD:()=>em,Vx:()=>$,sr:()=>Y,YX:()=>ev,Tj:()=>N,Gp:()=>H,K0:()=>U,Q_:()=>ef,a9:()=>y,xg:()=>M,DQ:()=>b,Ml:()=>ey,Xb:()=>el,Fg:()=>J,VK:()=>B,pm:()=>eu,Ju:()=>Q,cL:()=>G,ap:()=>z,Yo:()=>V,No:()=>F});var n=r(7530),o=r(5918),i=r(6014),s=r(5794),u=r(9726),a=r(2316),c=r(4809),l=r(7403);function f(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return h((0,a.s)(),e,t)}function h(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(e?t:r)}var p=r(7988),d=(0,p.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),y=function(){return(0,p.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})};function b(e){var t=d.getState(),r=e(t);r!==t&&d.setState(r)}var v=function(){return(0,p.getGlobalStore)("extensions",{slots:{}})};function m(e){var t=[],r=!0,n=!1,i=void 0;try{for(var s,u=Object.values(e.extensions)[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var a=s.value,l=!0,f=!1,h=void 0;try{for(var p,d=a.instances[Symbol.iterator]();!(l=(p=d.next()).done);l=!0){var y=p.value;t.push({slotModuleName:y.slotModuleName,extensionModuleName:a.moduleName,slotName:y.slotName,extensionId:y.id})}}catch(e){f=!0,h=e}finally{try{l||null==d.return||d.return()}finally{if(f)throw h}}}}catch(e){n=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(n)throw i}}(0,c.A)(o.configExtensionStore.getState().mountedExtensions,t)||o.configExtensionStore.setState({mountedExtensions:t})}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){w(e,t,r[t])})}return e}function O(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,u=!1;try{for(o=o.call(e);!(s=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){u=!0,n=e}finally{try{s||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,t)||j(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}}m(d.getState()),d.subscribe(m);var P=y(),I=v(),A=(0,o.getExtensionSlotsConfigStore)(),C=(0,o.getExtensionsConfigStore)();function k(e,t,r,n,i){var s={},u=(0,a.s)(),l=Object.entries(n.flags).filter(function(e){return x(e,2)[1].enabled}).map(function(e){return x(e,1)[0]}),f=!0,h=!1,p=void 0;try{for(var d,y=Object.entries(e.slots)[Symbol.iterator]();!(f=(d=y.next()).done);f=!0){var b=x(d.value,2),v=b[0],m=b[1],g=(0,o.getExtensionSlotConfigFromStore)(t,m.name).config,w=K(v,e,g,r,l,u,i.session);s[v]={moduleName:m.moduleName,assignedExtensions:w}}}catch(e){h=!0,p=e}finally{try{f||null==y.return||y.return()}finally{if(h)throw p}}(0,c.A)(I.getState().slots,s)||I.setState({slots:s})}function T(){k(P.getState(),A.getState(),C.getState(),s.jX.getState(),n.sessionStore.getState())}function R(e,t,r){return{moduleName:t,name:e,attachedIds:[],config:null,state:r}}function D(e){return x(e.split("#"),1)[0]}function M(e,t){var r=D(t);return e.extensions[r]}function N(e){return M(P.getState(),e)}P.subscribe(function(e){k(e,A.getState(),C.getState(),s.jX.getState(),n.sessionStore.getState())}),A.subscribe(function(e){k(P.getState(),e,C.getState(),s.jX.getState(),n.sessionStore.getState())}),C.subscribe(function(e){k(P.getState(),A.getState(),e,s.jX.getState(),n.sessionStore.getState())}),s.jX.subscribe(function(e){k(P.getState(),A.getState(),C.getState(),e,n.sessionStore.getState())}),n.sessionStore.subscribe(function(e){k(P.getState(),A.getState(),C.getState(),s.jX.getState(),e)}),T(),(0,u.gj)(T);var B=function(e){return P.setState(function(t){return t.extensions[e.name]=O(S({},e),{instances:[]}),t})};function U(e,t){b(function(r){var n=r.slots[e];return n?O(S({},r),{slots:O(S({},r.slots),w({},e,O(S({},n),{attachedIds:E(n.attachedIds).concat([t])})))}):O(S({},r),{slots:O(S({},r.slots),w({},e,O(S({},R(e)),{attachedIds:[t]})))})})}function V(e,t){b(function(r){var n=r.slots[e];return n&&n.attachedIds.includes(t)?O(S({},r),{slots:O(S({},r.slots),w({},e,O(S({},n),{attachedIds:n.attachedIds.filter(function(e){return e!==t})})))}):r})}function F(e){b(function(t){var r=t.slots[e];return r?O(S({},t),{slots:O(S({},t.slots),w({},e,O(S({},r),{attachedIds:[]})))}):t})}function L(e,t,r,n){var o=t.indexOf(e);if(-1!==o)return o;if(void 0!==r)return 1e3+r;var i=n.indexOf(e);return -1!==i?2e3+i:-1}function K(e,t,r,s,u,a,c){var f=(g=r,w=t.slots[e].attachedIds,O=g.add||[],x=g.remove||[],j=g.order||[],I=P.getState().extensions,E(w).concat(E(O)).filter(function(e){return!x.includes(e)}).sort(function(e,t){var r,n,o=L(e,j,null==(r=I[D(e)])?void 0:r.order,w),i=L(t,j,null==(n=I[D(t)])?void 0:n.order,w);return -1===i?-1:-1===o?1:o-i})),p=[],d=null==(A=t.slots[e])?void 0:A.state,y=d&&(void 0===d?"undefined":d&&"u">typeof Symbol&&d.constructor===Symbol?"symbol":typeof d)=="object"?S({session:c},d):{session:c},b=!0,v=!1,m=void 0;try{for(var g,w,O,x,j,I,A,C,k=f[Symbol.iterator]();!(b=(C=k.next()).done);b=!0){var T=C.value,R=(0,o.getExtensionConfigFromStore)(s,e,T).config,M=(0,o.getExtensionConfigFromExtensionSlotStore)(r,e,T),N=(0,l.A)(R,M),B=D(T),U=t.extensions[B];if(U){var V,F,K,W,q,z,G,H,$,Y,X=null!=(V=null!=(F=null==N||null==(G=N["Display conditions"])?void 0:G.privileges)?F:U.privileges)?V:[];if(X&&("string"==typeof X||Array.isArray(X)&&X.length>0)&&(!(null==c?void 0:c.user)||!(0,n.userHasAccess)(X,c.user)))continue;var Q=(null==N||null==(H=N["Display conditions"])?void 0:H.expression)||U.displayExpression;if(void 0!==Q&&"string"==typeof Q&&Q.trim().length>0)try{if(!(0,i.eb)(Q,y))continue}catch(t){console.error("Error while evaluating expression '".concat(Q,"' for extension ").concat(B," in slot ").concat(e),t);continue}if(U.featureFlag&&!u.includes(U.featureFlag)||window.offlineEnabled&&!h(a,U.online,U.offline))continue;p.push({id:T,name:B,moduleName:U.moduleName,config:N,featureFlag:U.featureFlag,meta:U.meta,online:null==(K=null!=(W=null==N||null==($=N["Display conditions"])?void 0:$.online)?W:U.online)||K,offline:null!=(q=null!=(z=null==N||null==(Y=N["Display conditions"])?void 0:Y.offline)?z:U.offline)&&q})}}}catch(e){v=!0,m=e}finally{try{b||null==k.return||k.return()}finally{if(v)throw m}}return p}function W(e){var t=P.getState(),r=(0,o.getExtensionSlotConfig)(e).config,i=C.getState(),u=s.jX.getState(),c=n.sessionStore.getState(),l=(0,a.s)();return K(e,t,r,i,Object.entries(u.flags).filter(function(e){return x(e,2)[1].enabled}).map(function(e){return x(e,1)[0]}),l,c.session)}var q=function(e,t,r){return P.setState(function(n){var o,i=null==(o=n.slots[t])?void 0:o.moduleName;if(i&&i!=e)return console.warn("An extension slot with the name '".concat(t,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(i,".")),n;if(i&&i==e)return n;if(n.slots[t])return O(S({},n),{slots:O(S({},n.slots),w({},t,O(S({},n.slots[t]),{moduleName:e,state:r})))});var s=R(t,e,r);return O(S({},n),{slots:O(S({},n.slots),w({},t,S({},s)))})})};function z(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];P.setState(function(n){var o=r?(0,l.A)(n.slots[e].state,t):t;return O(S({},n),{slots:O(S({},n.slots),w({},e,O(S({},n.slots[e]),{state:o})))})})}var G=function(){return I.setState(function(){return{slots:{},extensions:{}}})},H=(0,p.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase,mode:"normal"});function $(e){var t=e.name,r=e.basePath,n=e.mode,o=e.componentContext,i=e.state;H.setState({slotName:t,basePath:r,mode:null!=n?n:"normal",componentContext:o,state:i})}function Y(e){H.getState().slotName===e&&H.setState(H.getInitialState(),!0)}var X=(0,p.createGlobalStore)("modalRegistry",{modals:{}});function Q(e){X.setState(function(t){return t.modals[e.name]=e,t})}function J(e){var t=X.getState().modals[e];if(!t){var r=N(e);r&&(t={name:e,load:r.load,moduleName:r.moduleName},console.warn("Modal ".concat(e,' was registered as an extension. This is deprecated and will be removed in the future. Please register it in the "modals" section of routes.json instead of the "extensions" section.')),Q(t))}return t}var Z=r(5565);function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){et(e,t,r[t])})}return e}function en(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function eo(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return ee(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ee(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ei=(0,p.createGlobalStore)("workspaceRegistrations",{workspaces:{}}),es=(0,p.createGlobalStore)("workspaceGroups",{workspaceGroups:{}});function eu(e){ei.setState(function(t){var r,n,o,i,s,u;return{workspaces:en(er({},t.workspaces),et({},e.name,en(er({},e),{load:e.load,preferredWindowSize:null!=(r=e.preferredWindowSize)?r:"normal",type:null!=(n=e.type)?n:"form",canHide:null!=(o=e.canHide)&&o,canMaximize:null!=(i=e.canMaximize)&&i,width:null!=(s=e.width)?s:"narrow",groups:null!=(u=e.groups)?u:[]})))}})}function ea(e){es.setState(function(t){var r=t.workspaceGroups[e.name];return r?{workspaceGroups:en(er({},t.workspaceGroups),et({},e.name,en(er({},r),{members:Array.from(new Set(eo(r.members).concat(eo(e.members))))})))}:{workspaceGroups:en(er({},t.workspaceGroups),et({},e.name,{name:e.name,members:e.members}))}})}var ec=new Set;function el(e){var t=ei.getState().workspaces;if(t[e])return t[e];var r,n,o,i,s,u,a,c,l,f,h,p,d=N(e);if(d)return ec.has(e)||(console.warn("The workspace '".concat(e,'\' is registered as an extension. This is deprecated. Please register it in the "workspaces" section of the routes.json file.')),ec.add(e)),{name:d.name,title:function(e){var t,r=null==e||null==(t=e.meta)?void 0:t.title;return"string"==typeof r?r:r&&(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"?(0,Z.t)(e.moduleName,r.key,r.default):e.name}(d),moduleName:d.moduleName,preferredWindowSize:null!=(r=null==(a=d.meta)?void 0:a.screenSize)?r:"normal",load:d.load,type:null!=(n=null==(c=d.meta)?void 0:c.type)?n:"form",canHide:null!=(o=null==(l=d.meta)?void 0:l.canHide)&&o,canMaximize:null!=(i=null==(f=d.meta)?void 0:f.canMaximize)&&i,width:null!=(s=null==(h=d.meta)?void 0:h.width)?s:"narrow",groups:null!=(u=null==(p=d.meta)?void 0:p.groups)?u:[]};throw Error("No workspace named '".concat(e,"' has been registered."))}function ef(e){var t=es.getState().workspaceGroups;if(t[e])return t[e];throw Error("No workspace group named '".concat(e,"' has been registered."))}function eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ep(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var ed=(0,p.createGlobalStore)("workspace2",{registeredGroupsByName:{},registeredWindowsByName:{},registeredWorkspacesByName:{},openedGroup:null,openedWindows:[],workspaceTitleByWorkspaceName:{},isMostRecentlyOpenedWindowHidden:!1});function ey(e){var t=ed.getState(),r=t.registeredWorkspacesByName,n=t.registeredWindowsByName,o=r[e];if(o){var i=n[o.window];if(i)return i;throw Error("No workspace window found with name: ".concat(o.window," for workspace: ").concat(e))}throw Error("No workspace found with name: ".concat(e))}function eb(e){var t=ed.getState(),r=t.registeredGroupsByName,n=t.registeredWindowsByName[e];if(n){var o=r[n.group];if(o)return o;throw Error("No workspace group found with name: ".concat(n.group," for window: ").concat(e))}throw Error("No workspace window found with name: ".concat(e))}function ev(e){return ed.getState().openedWindows.findIndex(function(t){return t.openedWorkspaces.find(function(t){return t.workspaceName===e})})}function em(e,t){if(0!=t.length){var r=eh({},ed.getState().registeredGroupsByName),n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var a=s.value;if(r[a.name])throw Error("Cannot register workspace group ".concat(a.name," more than once"));r[a.name]=ep(eh({},a),{moduleName:e})}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}ed.setState({registeredGroupsByName:r})}}function e_(e,t){if(0!=t.length){var r=eh({},ed.getState().registeredWindowsByName),n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var a=s.value;if(r[a.name])throw Error("Cannot register workspace window ".concat(a.name," more than once"));var c=ep(eh({},a),{moduleName:e});r[a.name]=c}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}ed.setState({registeredWindowsByName:r})}}function eg(e,t){if(0!=t.length){var r=eh({},ed.getState().registeredWorkspacesByName),n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var a=s.value;if(r[a.name])throw Error("Cannot register workspace ".concat(a.name," more than once"));var c=ep(eh({},a),{moduleName:e});r[a.name]=c}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}ed.setState({registeredWorkspacesByName:r})}}var ew=r(8400);function eS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eO(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function ex(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ex(e,t,r[t])})}return e}function ej(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var eP=0;function eI(e,t,r,n){var o;return(o=function(e,t,r,n){var o,i,s,u,a,c,l,h,p,d,y,v,m=arguments;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(g){switch(g.label){case 0:if(o=m.length>4&&void 0!==m[4]?m[4]:function(e){return e},i=m.length>5&&void 0!==m[5]?m[5]:{},s=D(n),u=N(n),a=null,!e)return[3,3];if(!u)throw Error("Couldn't find extension '".concat(s,"' to attach to '").concat(t,"'"));if(c=u.meta,l=u.moduleName,h=u.online,p=u.offline,d=u.load,!f(h,p))return[3,2];return b(function(o){var i;return ej(eE({},o),{extensions:ej(eE({},o.extensions),ex({},s,ej(eE({},o.extensions[s]),{instances:((function(e){if(Array.isArray(e))return eS(e)})(i=o.extensions[s].instances)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e){if(e){if("string"==typeof e)return eS(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eS(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{domElement:e,id:n,slotName:t,slotModuleName:r}])})))})}),[4,d()];case 1:y=g.sent(),v=eP++,a=(0,ew.mountRootParcel)(o(ej(eE({},y),{name:"".concat(t,"/").concat(s,"-").concat(v)})),ej(eE({},i),{_meta:c,_extensionContext:{extensionId:n,extensionSlotName:t,extensionSlotModuleName:r,extensionModuleName:l},domElement:e})),g.label=2;case 2:return[3,4];case 3:console.warn("Tried to render ".concat(n," into ").concat(t," but no DOM element was available.")),g.label=4;case 4:return[2,a]}})},function(){var e=this,t=arguments;return new Promise(function(r,n){var i=o.apply(e,t);function s(e){eO(i,r,n,s,u,"next",e)}function u(e){eO(i,r,n,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}},6563(e,t,r){"use strict";let n;r.d(t,{nr:()=>k,xN:()=>np,u1:()=>nM,FO:()=>nd,Q1:()=>m,FE:()=>nI,sA:()=>n_,LM:()=>nn,ff:()=>nk,wn:()=>nR,Oj:()=>nL,lY:()=>ny,Zr:()=>nu,cy:()=>nb,WA:()=>nA,T$:()=>w,Gp:()=>nh,jU:()=>nm,Og:()=>C,iD:()=>nP,C$:()=>nf,qb:()=>nj,Iq:()=>ns,NU:()=>nT,yD:()=>nC,Wo:()=>nF,sm:()=>nV,Io:()=>na,wJ:()=>A,Oc:()=>O,e:()=>r4,xc:()=>nc,pb:()=>nl,bO:()=>ng,b1:()=>v,AO:()=>no,Td:()=>nD,QP:()=>b,Gt:()=>g});try{self["workbox:window:6.5.4"]&&_()}catch(e){}function o(e,t){return new Promise(function(r){var n=new MessageChannel;n.port1.onmessage=function(e){r(e.data)},e.postMessage(t,[n.port2])})}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var u=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})};function a(e,t){var r=location.href;return new URL(e,r).href===new URL(t,r).href}var c=function(e,t){this.type=e,Object.assign(this,t)};function l(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function f(){}var h={type:"SKIP_WAITING"};function p(e,t){if(!t)return e&&e.then?e.then(f):Promise.resolve()}var d=function(e){function t(t,r){var n,o;return void 0===r&&(r={}),(n=e.call(this)||this).nn={},n.tn=0,n.rn=new u,n.en=new u,n.on=new u,n.un=0,n.an=new Set,n.cn=function(){var e=n.fn,t=e.installing;n.tn>0||!a(t.scriptURL,n.sn.toString())||performance.now()>n.un+6e4?(n.vn=t,e.removeEventListener("updatefound",n.cn)):(n.hn=t,n.an.add(t),n.rn.resolve(t)),++n.tn,t.addEventListener("statechange",n.ln)},n.ln=function(e){var t=n.fn,r=e.target,o=r.state,i=r===n.vn,s={sw:r,isExternal:i,originalEvent:e};!i&&n.mn&&(s.isUpdate=!0),n.dispatchEvent(new c(o,s)),"installed"===o?n.wn=self.setTimeout(function(){"installed"===o&&t.waiting===r&&n.dispatchEvent(new c("waiting",s))},200):"activating"===o&&(clearTimeout(n.wn),i||n.en.resolve(r))},n.dn=function(e){var t=n.hn,r=t!==navigator.serviceWorker.controller;n.dispatchEvent(new c("controlling",{isExternal:r,originalEvent:e,sw:t,isUpdate:n.mn})),r||n.on.resolve(t)},o=function(e){var t=e.data,r=e.ports,o=e.source;return l(n.getSW(),function(){n.an.has(o)&&n.dispatchEvent(new c("message",{data:t,originalEvent:e,ports:r,sw:o}))})},n.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(o.apply(this,e))}catch(e){return Promise.reject(e)}},n.sn=t,n.nn=r,navigator.serviceWorker.addEventListener("message",n.gn),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r,n,s=t.prototype;return s.register=function(e){var t=(void 0===e?{}:e).immediate,r=void 0!==t&&t;try{var n,o,i,s=this;return n=function(){if(!r&&"complete"!==document.readyState)return p(new Promise(function(e){return window.addEventListener("load",e)}))},o=function(){return s.mn=!!navigator.serviceWorker.controller,s.yn=s.pn(),l(s.bn(),function(e){s.fn=e,s.yn&&(s.hn=s.yn,s.en.resolve(s.yn),s.on.resolve(s.yn),s.yn.addEventListener("statechange",s.ln,{once:!0}));var t=s.fn.waiting;return t&&a(t.scriptURL,s.sn.toString())&&(s.hn=t,Promise.resolve().then(function(){s.dispatchEvent(new c("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),s.hn&&(s.rn.resolve(s.hn),s.an.add(s.hn)),s.fn.addEventListener("updatefound",s.cn),navigator.serviceWorker.addEventListener("controllerchange",s.dn),s.fn})},(i=n())&&i.then?i.then(o):o(i)}catch(e){return Promise.reject(e)}},s.update=function(){try{return this.fn?p(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},s.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},s.messageSW=function(e){try{return l(this.getSW(),function(t){return o(t,e)})}catch(e){return Promise.reject(e)}},s.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&o(this.fn.waiting,h)},s.pn=function(){var e=navigator.serviceWorker.controller;return e&&a(e.scriptURL,this.sn.toString())?e:void 0},s.bn=function(){try{var e=this;return function(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}(function(){return l(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},r=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}],i(t.prototype,r),n&&i(t,n),t}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,r=function(e){var t;if("u"<typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}()),y=void 0;function b(e,t){if(void 0!==y)return console.warn("The application's Service Worker has already been registered. The new service worker at ".concat(e," will not be registered.")),y;if(!("serviceWorker"in navigator))throw Error("Registering the Service Worker is not possible due to missing browser capabilities.");var r=new d(e,t);return y=r.register().then(function(){return r.controlling.then(function(){return r})})}function v(){return null!=y?y:Promise.resolve(void 0)}var m="x-egen-offline-response-body",g="x-egen-offline-response-status",w="x-egen-offline-caching-strategy";function S(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function O(e){var t;return(t=function(){var t,r;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:return[4,v()];case 1:if(!(t=n.sent()))return[3,3];return[4,t.messageSW(e)];case 2:return r=n.sent(),[3,4];case 3:r={success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."},n.label=4;case 4:return[2,r]}})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function s(e){S(i,n,o,s,u,"next",e)}function u(e){S(i,n,o,s,u,"throw",e)}s(void 0)})})()}function x(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function E(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){x(i,n,o,s,u,"next",e)}function u(e){x(i,n,o,s,u,"throw",e)}s(void 0)})}}function j(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var P="egen3:offline-mode",I="unavailable";function A(){return{current:I,notAvailable:"unavailable"===I,active:"on"===I}}function C(e){"unavailable"!==I&&"unavailable"!==e&&(localStorage.setItem(P,"on"===e?"active":"disabled"),I=e)}function k(){return E(function(){return j(this,function(e){switch(e.label){case 0:return[4,E(function(){var e,t;return j(this,function(r){switch(r.label){case 0:return[4,E(function(){return j(this,function(e){return[2,new Promise(function(e){var t=indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}})]})})()];case 1:if(t=r.sent())return[3,3];return[4,E(function(){return j(this,function(e){return[2,!window.indexedDB]})})()];case 2:t=r.sent(),r.label=3;case 3:if(e=t)return[3,5];return[4,E(function(){var e;return j(this,function(t){e=window.sessionStorage;try{e.setItem("someKeyHere","test"),e.removeItem("someKeyHere")}catch(t){if(t.code===DOMException.QUOTA_EXCEEDED_ERR&&0===e.length)return[2,!0]}return[2,!1]})})()];case 4:e=r.sent(),r.label=5;case 5:return[2,e]}})})()];case 1:return e.sent()||(I="active"===localStorage.getItem(P)?"on":"off"),navigator.onLine,[2]}})})()}let T="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,R=Object.keys,D=Array.isArray;function M(e,t){return"object"!=typeof t||R(t).forEach(function(r){e[r]=t[r]}),e}"u"<typeof Promise||T.Promise||(T.Promise=Promise);let N=Object.getPrototypeOf,B={}.hasOwnProperty;function U(e,t){return B.call(e,t)}function V(e,t){"function"==typeof t&&(t=t(N(e))),("u"<typeof Reflect?R:Reflect.ownKeys)(t).forEach(r=>{L(e,r,t[r])})}let F=Object.defineProperty;function L(e,t,r,n){F(e,t,M(r&&U(r,"get")&&"function"==typeof r.get?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function K(e){return{from:function(t){return e.prototype=Object.create(t.prototype),L(e.prototype,"constructor",e),{extend:V.bind(null,e.prototype)}}}}let W=Object.getOwnPropertyDescriptor;function q(e,t){let r;return W(e,t)||(r=N(e))&&q(r,t)}let z=[].slice;function G(e,t,r){return z.call(e,t,r)}function H(e,t){return t(e)}function $(e){if(!e)throw Error("Assertion Failed")}function Y(e){T.setImmediate?setImmediate(e):setTimeout(e,0)}function X(e,t){return e.reduce((e,r,n)=>{var o=t(r,n);return o&&(e[o[0]]=o[1]),e},{})}function Q(e,t){if("string"==typeof t&&U(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var r=[],n=0,o=t.length;n<o;++n){var i=Q(e,t[n]);r.push(i)}return r}var s=t.indexOf(".");if(-1!==s){var u=e[t.substr(0,s)];return null==u?void 0:Q(u,t.substr(s+1))}}function J(e,t,r){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){$("string"!=typeof r&&"length"in r);for(var n=0,o=t.length;n<o;++n)J(e,t[n],r[n])}else{var i=t.indexOf(".");if(-1!==i){var s=t.substr(0,i),u=t.substr(i+1);if(""===u)void 0===r?D(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=r;else{var a=e[s];a&&U(e,s)||(a=e[s]={}),J(a,u,r)}}else void 0===r?D(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function Z(e){var t={};for(var r in e)U(e,r)&&(t[r]=e[r]);return t}let ee=[].concat;function et(e){return ee.apply([],e)}let er="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(et([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>T[e]),en=er.map(e=>T[e]);X(er,e=>[e,!0]);let eo=null;function ei(e){eo="u">typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let r=eo&&eo.get(t);if(r)return r;if(D(t)){r=[],eo&&eo.set(t,r);for(var n=0,o=t.length;n<o;++n)r.push(e(t[n]))}else if(en.indexOf(t.constructor)>=0)r=t;else{let n=N(t);for(var i in r=n===Object.prototype?{}:Object.create(n),eo&&eo.set(t,r),t)U(t,i)&&(r[i]=e(t[i]))}return r}(e);return eo=null,t}let{toString:es}={};function eu(e){return es.call(e).slice(8,-1)}let ea="u">typeof Symbol?Symbol.iterator:"@@iterator",ec="symbol"==typeof ea?function(e){var t;return null!=e&&(t=e[ea])&&t.apply(e)}:function(){return null},el={};function ef(e){var t,r,n,o;if(1==arguments.length){if(D(e))return e.slice();if(this===el&&"string"==typeof e)return[e];if(o=ec(e)){for(r=[];!(n=o.next()).done;)r.push(n.value);return r}if(null==e)return[e];if("number"==typeof(t=e.length)){for(r=Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=Array(t);t--;)r[t]=arguments[t];return r}let eh="u">typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var ep="u">typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),ed=()=>!0;let ey=!Error("").stack;function eb(){if(ey)try{throw eb.arguments,Error()}catch(e){return e}return Error()}function ev(e,t){var r=e.stack;return r?(t=t||0,0===r.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),r.split("\n").slice(t).filter(ed).map(e=>"\n"+e).join("")):""}var em=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],e_=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(em),eg={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ew(e,t){this._e=eb(),this.name=e,this.message=t}function eS(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,r)=>r.indexOf(e)===t).join("\n")}function eO(e,t,r,n){this._e=eb(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=eS(e,t)}function ex(e,t){this._e=eb(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=eS(e,t)}K(ew).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ev(this._e,2))}},toString:function(){return this.name+": "+this.message}}),K(eO).from(ew),K(ex).from(ew);var eE=e_.reduce((e,t)=>(e[t]=t+"Error",e),{}),ej=e_.reduce((e,t)=>{var r=t+"Error";function n(e,n){this._e=eb(),this.name=r,e?"string"==typeof e?(this.message=`${e}${n?"\n "+n:""}`,this.inner=n||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=eg[t]||r,this.inner=null)}return K(n).from(ew),e[t]=n,e},{});ej.Syntax=SyntaxError,ej.Type=TypeError,ej.Range=RangeError;var eP=em.reduce((e,t)=>(e[t+"Error"]=ej[t],e),{}),eI=e_.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ej[t]),e),{});function eA(){}function eC(e){return e}function ek(e,t){return null==e||e===eC?t:function(r){return t(e(r))}}function eT(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function eR(e,t){return e===eA?t:function(){var r=e.apply(this,arguments);void 0!==r&&(arguments[0]=r);var n=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?eT(n,this.onsuccess):n),o&&(this.onerror=this.onerror?eT(o,this.onerror):o),void 0!==i?i:r}}function eD(e,t){return e===eA?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?eT(r,this.onsuccess):r),n&&(this.onerror=this.onerror?eT(n,this.onerror):n)}}function eM(e,t){return e===eA?t:function(r){var n=e.apply(this,arguments);M(r,n);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?eT(o,this.onsuccess):o),i&&(this.onerror=this.onerror?eT(i,this.onerror):i),void 0===n?void 0===s?void 0:s:M(n,s)}}function eN(e,t){return e===eA?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function eB(e,t){return e===eA?t:function(){var r=e.apply(this,arguments);if(r&&"function"==typeof r.then){for(var n=this,o=arguments.length,i=Array(o);o--;)i[o]=arguments[o];return r.then(function(){return t.apply(n,i)})}return t.apply(this,arguments)}}eI.ModifyError=eO,eI.DexieError=ew,eI.BulkError=ex;var eU={};let[eV,eF,eL]="u"<typeof Promise?[]:(()=>{let e=Promise.resolve();if("u"<typeof crypto||!crypto.subtle)return[e,N(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,N(t),e]})(),eK=eF&&eF.then,eW=eV&&eV.constructor,eq=!!eL;var ez=!1,eG=eL?()=>{eL.then(tn)}:T.setImmediate?setImmediate.bind(null,tn):T.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{tn(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(tn,0)},eH=function(e,t){e2.push([e,t]),eY&&(eG(),eY=!1)},e$=!0,eY=!0,eX=[],eQ=[],eJ=null,eZ=eC,e0={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:tP,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{tP(e[0],e[1])}catch(e){}})}},e1=e0,e2=[],e7=0,e4=[];function e8(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=eA,this._lib=!1;var t=this._PSD=e1;if(ep&&(this._stackHolder=eb(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==eU)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&e9(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,r){try{r(r=>{if(null===t._state){if(r===t)throw TypeError("A promise cannot be resolved with itself.");var n=t._lib&&to();r&&"function"==typeof r.then?e(t,(e,t)=>{r instanceof e8?r._then(e,t):r.then(e,t)}):(t._state=!0,t._value=r,e5(t)),n&&ti()}},e9.bind(null,t))}catch(e){e9(t,e)}}(this,e)}let e3={get:function(){var e=e1,t=tp;function r(r,n){var o=!e.global&&(e!==e1||t!==tp);let i=o&&!tv();var s=new e8((t,s)=>{te(this,new e6(tx(r,e,o,i),tx(n,e,o,i),t,s,e))});return ep&&tr(s,this),s}return r.prototype=eU,r},set:function(e){L(this,"then",e&&e.prototype===eU?e3:{get:function(){return e},set:e3.set})}};function e6(e,t,r,n,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=r,this.reject=n,this.psd=o}function e9(e,t){if(eQ.push(t),null===e._state){var r=e._lib&&to();t=eZ(t),e._state=!1,e._value=t,ep&&null!==t&&"object"==typeof t&&!t._promise&&function(e){try{e.apply(null,void 0)}catch(e){}}(()=>{var r=q(t,"stack");t._promise=e,L(t,"stack",{get:()=>ez?r&&(r.get?r.get.apply(t):r.value):e.stack})}),eX.some(t=>t._value===e._value)||eX.push(e),e5(e),r&&ti()}}function e5(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)te(e,t[r]);var o=e._PSD;--o.ref||o.finalize(),0===e7&&(++e7,eH(()=>{0==--e7&&ts()},[]))}function te(e,t){if(null!==e._state){var r=e._state?t.onFulfilled:t.onRejected;if(null===r)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++e7,eH(tt,[r,e,t])}else e._listeners.push(t)}function tt(e,t,r){try{eJ=t;var n,o=t._value;t._state?n=e(o):(eQ.length&&(eQ=[]),n=e(o),-1===eQ.indexOf(o)&&function(e){for(var t=eX.length;t;)if(eX[--t]._value===e._value)return void eX.splice(t,1)}(t)),r.resolve(n)}catch(e){r.reject(e)}finally{eJ=null,0==--e7&&ts(),--r.psd.ref||r.psd.finalize()}}function tr(e,t){var r=t?t._numPrev+1:0;r<100&&(e._prev=t,e._numPrev=r)}function tn(){to()&&ti()}function to(){var e=e$;return e$=!1,eY=!1,e}function ti(){var e,t,r;do for(;e2.length>0;)for(e=e2,e2=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(e2.length>0);e$=!0,eY=!0}function ts(){var e=eX;eX=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=e4.slice(0),r=t.length;r;)t[--r]()}function tu(e){return new e8(eU,!1,e)}function ta(e,t){var r=e1;return function(){var n=to(),o=e1;try{return tw(r,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{tw(o,!1),n&&ti()}}}V(e8.prototype,{then:e3,_then:function(e,t){te(this,new e6(null,null,e,t,e1))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],r=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?r(e):tu(e)):this.then(null,e=>e&&e.name===t?r(e):tu(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),tu(t)))},stack:{get:function(){if(this._stack)return this._stack;try{ez=!0;var e=(function e(t,r,n){if(r.length===n)return r;var o="";if(!1===t._state){var i,s,u=t._value;null!=u?(i=u.name||"Error",s=u.message||u,o=ev(u,0)):(i=u,s=""),r.push(i+(s?": "+s:"")+o)}return ep&&((o=ev(t._stackHolder,2))&&-1===r.indexOf(o)&&r.push(o),t._prev&&e(t._prev,r,n)),r})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{ez=!1}}},timeout:function(e,t){return e<1/0?new e8((r,n)=>{var o=setTimeout(()=>n(new ej.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,o))}):this}}),"u">typeof Symbol&&Symbol.toStringTag&&L(e8.prototype,Symbol.toStringTag,"Dexie.Promise"),e0.env=tS(),V(e8,{all:function(){var e=ef.apply(null,arguments).map(tm);return new e8(function(t,r){0===e.length&&t([]);var n=e.length;e.forEach((o,i)=>e8.resolve(o).then(r=>{e[i]=r,--n||t(e)},r))})},resolve:e=>{if(e instanceof e8)return e;if(e&&"function"==typeof e.then)return new e8((t,r)=>{e.then(t,r)});var t=new e8(eU,!0,e);return tr(t,eJ),t},reject:tu,race:function(){var e=ef.apply(null,arguments).map(tm);return new e8((t,r)=>{e.map(e=>e8.resolve(e).then(t,r))})},PSD:{get:()=>e1,set:e=>e1=e},totalEchoes:{get:()=>tp},newPSD:ty,usePSD:tO,scheduler:{get:()=>eH,set:e=>{eH=e}},rejectionMapper:{get:()=>eZ,set:e=>{eZ=e}},follow:(e,t)=>new e8((r,n)=>ty((t,r)=>{var n=e1;n.unhandleds=[],n.onunhandled=r,n.finalize=eT(function(){var e;e=()=>{0===this.unhandleds.length?t():r(this.unhandleds[0])},e4.push(function t(){e(),e4.splice(e4.indexOf(t),1)}),++e7,eH(()=>{0==--e7&&ts()},[])},n.finalize),e()},t,r,n))}),eW&&(eW.allSettled&&L(e8,"allSettled",function(){let e=ef.apply(null,arguments).map(tm);return new e8(t=>{0===e.length&&t([]);let r=e.length,n=Array(r);e.forEach((e,o)=>e8.resolve(e).then(e=>n[o]={status:"fulfilled",value:e},e=>n[o]={status:"rejected",reason:e}).then(()=>--r||t(n)))})}),eW.any&&"u">typeof AggregateError&&L(e8,"any",function(){let e=ef.apply(null,arguments).map(tm);return new e8((t,r)=>{0===e.length&&r(AggregateError([]));let n=e.length,o=Array(n);e.forEach((e,i)=>e8.resolve(e).then(e=>t(e),e=>{o[i]=e,--n||r(AggregateError(o))}))})}));let tc={awaits:0,echoes:0,id:0};var tl=0,tf=[],th=0,tp=0,td=0;function ty(e,t,r,n){var o=e1,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++td;var s=e0.env;i.env=eq?{Promise:e8,PromiseProp:{value:e8,configurable:!0,writable:!0},all:e8.all,race:e8.race,allSettled:e8.allSettled,any:e8.any,resolve:e8.resolve,reject:e8.reject,nthen:tE(s.nthen,i),gthen:tE(s.gthen,i)}:{},t&&M(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=tO(i,e,r,n);return 0===i.ref&&i.finalize(),u}function tb(){return tc.id||(tc.id=++tl),++tc.awaits,tc.echoes+=100,tc.id}function tv(){return!!tc.awaits&&(0==--tc.awaits&&(tc.id=0),tc.echoes=100*tc.awaits,!0)}function tm(e){return tc.echoes&&e&&e.constructor===eW?(tb(),e.then(e=>(tv(),e),e=>(tv(),tI(e)))):e}function t_(e){++tp,tc.echoes&&0!=--tc.echoes||(tc.echoes=tc.id=0),tf.push(e1),tw(e,!0)}function tg(){var e=tf[tf.length-1];tf.pop(),tw(e,!1)}function tw(e,t){var r,n=e1;if((t?!tc.echoes||th++&&e===e1:!th||--th&&e===e1)||(r=t?t_.bind(null,e):tg,eK.call(eV,r)),e!==e1&&(e1=e,n===e0&&(e0.env=tS()),eq)){var o=e0.env.Promise,i=e.env;eF.then=i.nthen,o.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(T,"Promise",i.PromiseProp),o.all=i.all,o.race=i.race,o.resolve=i.resolve,o.reject=i.reject,i.allSettled&&(o.allSettled=i.allSettled),i.any&&(o.any=i.any))}}function tS(){var e=T.Promise;return eq?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(T,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eF.then,gthen:e.prototype.then}:{}}function tO(e,t,r,n,o){var i=e1;try{return tw(e,!0),t(r,n,o)}finally{tw(i,!1)}}function tx(e,t,r,n){return"function"!=typeof e?e:function(){var o,i=e1;r&&tb(),tw(t,!0);try{return e.apply(this,arguments)}finally{tw(i,!1),n&&(o=tv,eK.call(eV,o))}}}function tE(e,t){return function(r,n){return e.call(this,tx(r,t),tx(n,t))}}-1===(""+eK).indexOf("[native code]")&&(tb=tv=eA);let tj="unhandledrejection";function tP(e,t){var r;try{r=t.onuncatched(e)}catch(e){}if(!1!==r)try{var n,o={promise:t,reason:e};if(T.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(tj,!0,!0),M(n,o)):T.CustomEvent&&M(n=new CustomEvent(tj,{detail:o}),o),n&&T.dispatchEvent&&(dispatchEvent(n),!T.PromiseRejectionEvent&&T.onunhandledrejection))try{T.onunhandledrejection(n)}catch(e){}ep&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}var tI=e8.reject;let tA="3.2.7",tC=String.fromCharCode(65535),tk=-1/0,tT="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tR="String expected.",tD=[],tM="u">typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),tN=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),tB="__dbnames",tU="readonly",tV="readwrite";function tF(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let tL={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tK(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=ei(t))[e],t)}class tW{_trans(e,t,r){let n=this._tx||e1.trans,o=this.name;function i(e,r,n){if(!n.schema[o])throw new ej.NotFound("Table "+o+" not part of transaction");return t(n.idbtrans,n)}let s=to();try{return n&&n.db===this.db?n===e1.trans?n._promise(e,i,r):ty(()=>n._promise(e,i,r),{trans:n,transless:e1.transless||e1}):function e(t,r,n,o){if(t.idbdb&&(t._state.openComplete||e1.letThrough||t._vip)){var i=t._createTransaction(r,n,t._dbSchema);try{i.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===eE.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,r,n,o))):tI(i)}return i._promise(r,(e,t)=>ty(()=>(e1.trans=i,o(e,t,i)))).then(e=>i._completion.then(()=>e))}if(t._state.openComplete)return tI(new ej.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return tI(new ej.DatabaseClosed);t.open().catch(eA)}return t._state.dbReadyPromise.then(()=>e(t,r,n,o))}(this.db,e,[this.name],i)}finally{s&&ti()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(D(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=R(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let r=this.schema.indexes.concat(this.schema.primKey).filter(e=>{if(e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)){for(let r=0;r<t.length;++r)if(-1===t.indexOf(e.keyPath[r]))return!1;return!0}return!1}).sort((e,t)=>e.keyPath.length-t.keyPath.length)[0];if(r&&this.db._maxKey!==tC){let n=r.keyPath.slice(0,t.length);return this.where(n).equals(n.map(t=>e[t]))}!r&&ep&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:n}=this.schema,o=this.db._deps.indexedDB;function i(e,t){try{return 0===o.cmp(e,t)}catch(e){return!1}}let[s,u]=t.reduce(([t,r],o)=>{let s=n[o],u=e[o];return[t||s,t||!s?tF(r,s&&s.multi?e=>{let t=Q(e,o);return D(t)&&t.some(e=>i(u,e))}:e=>i(u,Q(e,o))):r]},[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(u):r?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,D(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let r=Object.create(e.prototype);for(var n in t)if(U(t,n))try{r[n]=t[n]}catch(e){}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){M(this,e)})}add(e,t){let{auto:r,keyPath:n}=this.schema.primKey,o=e;return n&&r&&(o=tK(n)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]})).then(e=>e.numFailures?e8.reject(e.failures[0]):e.lastResult).then(t=>{if(n)try{J(e,n,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||D(e))return this.where(":id").equals(e).modify(t);{let r=Q(e,this.schema.primKey.keyPath);if(void 0===r)return tI(new ej.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?R(t).forEach(r=>{J(e,r,t[r])}):t(e,{value:e,primKey:r})}catch(e){}return this.where(":id").equals(r).modify(t)}}put(e,t){let{auto:r,keyPath:n}=this.schema.primKey,o=e;return n&&r&&(o=tK(n)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null})).then(e=>e.numFailures?e8.reject(e.failures[0]):e.lastResult).then(t=>{if(n)try{J(e,n,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?e8.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:tL})).then(e=>e.numFailures?e8.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,r){let n=Array.isArray(t)?t:void 0,o=(r=r||(n?void 0:t))?r.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:r,keyPath:i}=this.schema.primKey;if(i&&n)throw new ej.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new ej.InvalidArgument("Arguments objects and keys must have the same length");let s=e.length,u=i&&r?e.map(tK(i)):e;return this.core.mutate({trans:t,type:"add",keys:n,values:u,wantResults:o}).then(({numFailures:e,results:t,lastResult:r,failures:n})=>{if(0===e)return o?t:r;throw new ex(`${this.name}.bulkAdd(): ${e} of ${s} operations failed`,n)})})}bulkPut(e,t,r){let n=Array.isArray(t)?t:void 0,o=(r=r||(n?void 0:t))?r.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:r,keyPath:i}=this.schema.primKey;if(i&&n)throw new ej.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new ej.InvalidArgument("Arguments objects and keys must have the same length");let s=e.length,u=i&&r?e.map(tK(i)):e;return this.core.mutate({trans:t,type:"put",keys:n,values:u,wantResults:o}).then(({numFailures:e,results:t,lastResult:r,failures:n})=>{if(0===e)return o?t:r;throw new ex(`${this.name}.bulkPut(): ${e} of ${s} operations failed`,n)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:r,failures:n})=>{if(0===e)return r;throw new ex(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,n)})}}function tq(e){var t={},r=function(r,n){if(n){for(var o=arguments.length,i=Array(o-1);--o;)i[o-1]=arguments[o];return t[r].subscribe.apply(null,i),e}if("string"==typeof r)return t[r]};r.addEventType=i;for(var n=1,o=arguments.length;n<o;++n)i(arguments[n]);return r;function i(e,n,o){if("object"!=typeof e){n||(n=eN),o||(o=eA);var s={subscribers:[],fire:o,subscribe:function(e){-1===s.subscribers.indexOf(e)&&(s.subscribers.push(e),s.fire=n(s.fire,e))},unsubscribe:function(e){s.subscribers=s.subscribers.filter(function(t){return t!==e}),s.fire=s.subscribers.reduce(n,o)}};return t[e]=r[e]=s,s}R(e).forEach(function(t){var r=e[t];if(D(r))i(t,e[t][0],e[t][1]);else{if("asap"!==r)throw new ej.InvalidArgument("Invalid event config");var n=i(t,eC,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){Y(function(){e.apply(null,t)})})})}})}}function tz(e,t){return K(t).from({prototype:e}),t}function tG(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function tH(e,t){e.filter=tF(e.filter,t)}function t$(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>tF(n(),t()):t,e.justLimit=r&&!n}function tY(e,t){if(e.isPrimKey)return t.primaryKey;let r=t.getIndexByKeyPath(e.index);if(!r)throw new ej.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function tX(e,t,r){let n=tY(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:n,range:e.range}})}function tQ(e,t,r,n){let o=e.replayFilter?tF(e.filter,e.replayFilter()):e.filter;if(e.or){let i={},s=(e,r,n)=>{if(!o||o(r,n,e=>r.stop(e),e=>r.fail(e))){var s=r.primaryKey,u=""+s;"[object ArrayBuffer]"===u&&(u=""+new Uint8Array(s)),U(i,u)||(i[u]=!0,t(e,r,n))}};return Promise.all([e.or._iterate(s,r),tJ(tX(e,n,r),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return tJ(tX(e,n,r),tF(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function tJ(e,t,r,n){var o=ta(n?(e,t,o)=>r(n(e),t,o):r);return e.then(e=>{if(e)return e.start(()=>{var r=()=>e.continue();t&&!t(e,e=>r=e,t=>{e.stop(t),r=eA},t=>{e.fail(t),r=eA})||o(e.value,e,e=>r=e),r()})})}function tZ(e,t){try{let r=t0(e),n=t0(t);if(r!==n)return"Array"===r?1:"Array"===n?-1:"binary"===r?1:"binary"===n?-1:"string"===r?1:"string"===n?-1:"Date"===r?1:"Date"!==n?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){let r=e.length,n=t.length,o=r<n?r:n;for(let r=0;r<o;++r)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return r===n?0:r<n?-1:1}(t1(e),t1(t));case"Array":return function(e,t){let r=e.length,n=t.length,o=r<n?r:n;for(let r=0;r<o;++r){let n=tZ(e[r],t[r]);if(0!==n)return n}return r===n?0:r<n?-1:1}(e,t)}}catch(e){}return NaN}function t0(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let r=eu(e);return"ArrayBuffer"===r?"binary":r}function t1(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class t2{_read(e,t){var r=this._ctx;return r.error?r.table._trans(null,tI.bind(null,r.error)):r.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,tI.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=tF(t.algorithm,e)}_iterate(e,t){return tQ(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return e&&M(r,e),t._ctx=r,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(r=>tQ(t,e,r,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,r=t.table.core;if(tG(t,!0))return r.count({trans:e,query:{index:tY(t,r.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var n=0;return tQ(t,()=>(++n,!1),e,r).then(()=>n)}).then(e)}sortBy(e,t){let r=e.split(".").reverse(),n=r[0],o=r.length-1;function i(e,t){return t?i(e[r[t]],t-1):e[n]}var s="next"===this._ctx.dir?1:-1;function u(e,t){var r=i(e,o),n=i(t,o);return r<n?-s:r>n?s:0}return this.toArray(function(e){return e.sort(u)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&tG(t,!0)&&t.limit>0){let{valueMapper:r}=t,n=tY(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:n,range:t.range}}).then(({result:e})=>r?e.map(r):e)}{let r=[];return tQ(t,e=>r.push(e),e,t.table.core).then(()=>r)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,tG(t)?t$(t,()=>{var t=e;return(e,r)=>0===t||(1===t?--t:r(()=>{e.advance(t),t=0}),!1)}):t$(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),t$(this._ctx,()=>{var t=e;return function(e,r,n){return--t<=0&&r(n),t>=0}},!0),this}until(e,t){return tH(this._ctx,function(r,n,o){return!e(r.value)||(n(o),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return tH(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=tF(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,r){e(r.key,r)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,r){e(r.primaryKey,r)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var r=[];return this.each(function(e,t){r.push(t.key)}).then(function(){return r}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&tG(t,!0)&&t.limit>0)return this._read(e=>{var r=tY(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:r,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var r=[];return this.each(function(e,t){r.push(t.primaryKey)}).then(function(){return r}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var r={};return tH(this._ctx,function(e){var t=e.primaryKey.toString(),n=U(r,t);return r[t]=!0,!n}),this}modify(e){var t=this._ctx;return this._write(r=>{var n;if("function"==typeof e)n=e;else{var o=R(e),i=o.length;n=function(t){for(var r=!1,n=0;n<i;++n){var s=o[n],u=e[s];Q(t,s)!==u&&(J(t,s,u),r=!0)}return r}}let s=t.table.core,{outbound:u,extractKey:a}=s.schema.primaryKey,c=this.db._options.modifyChunkSize||200,l=[],f=0,h=[],p=(e,t)=>{let{failures:r,numFailures:n}=t;for(let t of(f+=e-n,R(r)))l.push(r[t])};return this.clone().primaryKeys().then(o=>{let i=l=>{let f=Math.min(c,o.length-l);return s.getMany({trans:r,keys:o.slice(l,l+f),cache:"immutable"}).then(h=>{let d=[],y=[],b=u?[]:null,v=[];for(let e=0;e<f;++e){let t=h[e],r={value:ei(t),primKey:o[l+e]};!1!==n.call(r,r.value,r)&&(null==r.value?v.push(o[l+e]):u||0===tZ(a(t),a(r.value))?(y.push(r.value),u&&b.push(o[l+e])):(v.push(o[l+e]),d.push(r.value)))}let m=tG(t)&&t.limit===1/0&&("function"!=typeof e||e===t7)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&s.mutate({trans:r,type:"add",values:d}).then(e=>{for(let t in e.failures)v.splice(parseInt(t),1);p(d.length,e)})).then(()=>(y.length>0||m&&"object"==typeof e)&&s.mutate({trans:r,type:"put",keys:b,values:y,criteria:m,changeSpec:"function"!=typeof e&&e}).then(e=>p(y.length,e))).then(()=>(v.length>0||m&&e===t7)&&s.mutate({trans:r,type:"delete",keys:v,criteria:m}).then(e=>p(v.length,e))).then(()=>o.length>l+f&&i(l+c))})};return i(0).then(()=>{if(l.length>0)throw new eO("Error modifying one or more objects",l,f,h);return o.length})})})}delete(){var e=this._ctx,t=e.range;return tG(e)&&(e.isPrimKey&&!tM||3===t.type)?this._write(r=>{let{primaryKey:n}=e.table.core.schema;return e.table.core.count({trans:r,query:{index:n,range:t}}).then(n=>e.table.core.mutate({trans:r,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:r,numFailures:o})=>{if(o)throw new eO("Could not delete some values",Object.keys(e).map(t=>e[t]),n-o);return n-o}))}):this.modify(t7)}}let t7=(e,t)=>t.value=null;function t4(e,t){return e<t?-1:+(e!==t)}function t8(e,t){return e>t?-1:+(e!==t)}function t3(e,t,r){var n=e instanceof rt?new e.Collection(e):e;return n._ctx.error=r?new r(t):TypeError(t),n}function t6(e){return new e.Collection(e,()=>re("")).limit(0)}function t9(e,t,r,n){var o,i,s,u,a,c,l,f=r.length;if(!r.every(e=>"string"==typeof e))return t3(e,tR);function h(e){o="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),i="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),s="next"===e?t4:t8;var t=r.map(function(e){return{lower:i(e),upper:o(e)}}).sort(function(e,t){return s(e.lower,t.lower)});u=t.map(function(e){return e.upper}),a=t.map(function(e){return e.lower}),c=e,l="next"===e?"":n}h("next");var p=new e.Collection(e,()=>t5(u[0],a[f-1]+n));p._ondirectionchange=function(e){h(e)};var d=0;return p._addAlgorithm(function(e,r,n){var o=e.key;if("string"!=typeof o)return!1;var h=i(o);if(t(h,a,d))return!0;for(var p=null,y=d;y<f;++y){var b=function(e,t,r,n,o,i){for(var s=Math.min(e.length,n.length),u=-1,a=0;a<s;++a){var c=t[a];if(c!==n[a])return 0>o(e[a],r[a])?e.substr(0,a)+r[a]+r.substr(a+1):0>o(e[a],n[a])?e.substr(0,a)+n[a]+r.substr(a+1):u>=0?e.substr(0,u)+t[u]+r.substr(u+1):null;0>o(e[a],c)&&(u=a)}return s<n.length&&"next"===i?e+r.substr(e.length):s<e.length&&"prev"===i?e.substr(0,r.length):u<0?null:e.substr(0,u)+n[u]+r.substr(u+1)}(o,h,u[y],a[y],s,c);null===b&&null===p?d=y+1:(null===p||s(p,b)>0)&&(p=b)}return r(null!==p?function(){e.continue(p+l)}:n),!1}),p}function t5(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function re(e){return{type:1,lower:e,upper:e}}class rt{get Collection(){return this._ctx.table.db.Collection}between(e,t,r,n){r=!1!==r,n=!0===n;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(r||n)&&(!r||!n)?t6(this):new this.Collection(this,()=>t5(e,t,!r,!n))}catch(e){return t3(this,tT)}}equals(e){return null==e?t3(this,tT):new this.Collection(this,()=>re(e))}above(e){return null==e?t3(this,tT):new this.Collection(this,()=>t5(e,void 0,!0))}aboveOrEqual(e){return null==e?t3(this,tT):new this.Collection(this,()=>t5(e,void 0,!1))}below(e){return null==e?t3(this,tT):new this.Collection(this,()=>t5(void 0,e,!1,!0))}belowOrEqual(e){return null==e?t3(this,tT):new this.Collection(this,()=>t5(void 0,e))}startsWith(e){return"string"!=typeof e?t3(this,tR):this.between(e,e+tC,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):t9(this,(e,t)=>0===e.indexOf(t[0]),[e],tC)}equalsIgnoreCase(e){return t9(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=ef.apply(el,arguments);return 0===e.length?t6(this):t9(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=ef.apply(el,arguments);return 0===e.length?t6(this):t9(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tC)}anyOf(){let e=ef.apply(el,arguments),t=this._cmp;try{e.sort(t)}catch(e){return t3(this,tT)}if(0===e.length)return t6(this);let r=new this.Collection(this,()=>t5(e[0],e[e.length-1]));r._ondirectionchange=r=>{t="next"===r?this._ascending:this._descending,e.sort(t)};let n=0;return r._addAlgorithm((r,o,i)=>{let s=r.key;for(;t(s,e[n])>0;)if(++n===e.length)return o(i),!1;return 0===t(s,e[n])||(o(()=>{r.continue(e[n])}),!1)}),r}notEqual(e){return this.inAnyRange([[tk,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=ef.apply(el,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return t3(this,tT)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[tk,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let r=this._cmp,n=this._ascending,o=this._descending,i=this._min,s=this._max;if(0===e.length)return t6(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=n(e[0],e[1])))return t3(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ej.InvalidArgument);let u=!t||!1!==t.includeLowers,a=t&&!0===t.includeUppers,c,l=n;function f(e,t){return l(e[0],t[0])}try{(c=e.reduce(function(e,t){let n=0,o=e.length;for(;n<o;++n){let o=e[n];if(0>r(t[0],o[1])&&r(t[1],o[0])>0){o[0]=i(o[0],t[0]),o[1]=s(o[1],t[1]);break}}return n===o&&e.push(t),e},[])).sort(f)}catch(e){return t3(this,tT)}let h=0,p=a?e=>n(e,c[h][1])>0:e=>n(e,c[h][1])>=0,d=u?e=>o(e,c[h][0])>0:e=>o(e,c[h][0])>=0,y=p,b=new this.Collection(this,()=>t5(c[0][0],c[c.length-1][1],!u,!a));return b._ondirectionchange=e=>{"next"===e?(y=p,l=n):(y=d,l=o),c.sort(f)},b._addAlgorithm((e,t,r)=>{for(var o=e.key;y(o);)if(++h===c.length)return t(r),!1;return!!(!p(o)&&!d(o))||(0===this._cmp(o,c[h][1])||0===this._cmp(o,c[h][0])||t(()=>{l===n?e.continue(c[h][0]):e.continue(c[h][1])}),!1)}),b}startsWithAnyOf(){let e=ef.apply(el,arguments);return e.every(e=>"string"==typeof e)?0===e.length?t6(this):this.inAnyRange(e.map(e=>[e,e+tC])):t3(this,"startsWithAnyOf() only works with strings")}}function rr(e){return ta(function(t){return rn(t),e(t.target.error),!1})}function rn(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let ro="storagemutated",ri="x-storagemutated-1",rs=tq(null,ro);class ru{_lock(){return $(!e1.global),++this._reculock,1!==this._reculock||e1.global||(e1.lockOwnerFor=this),this}_unlock(){if($(!e1.global),0==--this._reculock)for(e1.global||(e1.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{tO(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&e1.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,r=this.db._state.dbOpenError;if($(!this.idbtrans),!e&&!t)switch(r&&r.name){case"DatabaseClosedError":throw new ej.DatabaseClosed(r);case"MissingAPIError":throw new ej.MissingAPI(r.message,r);default:throw new ej.OpenFailed(r)}if(!this.active)throw new ej.TransactionInactive;return $(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=ta(t=>{rn(t),this._reject(e.error)}),e.onabort=ta(t=>{rn(t),this.active&&this._reject(new ej.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=ta(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&rs.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,r){if("readwrite"===e&&"readwrite"!==this.mode)return tI(new ej.ReadOnly("Transaction is readonly"));if(!this.active)return tI(new ej.TransactionInactive);if(this._locked())return new e8((n,o)=>{this._blockedFuncs.push([()=>{this._promise(e,t,r).then(n,o)},e1])});if(r)return ty(()=>{var e=new e8((e,r)=>{this._lock();let n=t(e,r,this);n&&n.then&&n.then(e,r)});return e.finally(()=>this._unlock()),e._lib=!0,e});var n=new e8((e,r)=>{var n=t(e,r,this);n&&n.then&&n.then(e,r)});return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let r=e8.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>r);else{t._waitingFor=r,t._waitingQueue=[];var n=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(n.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new e8((e,n)=>{r.then(r=>t._waitingQueue.push(ta(e.bind(null,r))),e=>t._waitingQueue.push(ta(n.bind(null,e)))).finally(()=>{t._waitingFor===o&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ej.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(U(t,e))return t[e];let r=this.schema[e];if(!r)throw new ej.NotFound("Table "+e+" not part of transaction");let n=new this.db.Table(e,r,this);return n.core=this.db.core.table(e),t[e]=n,n}}function ra(e,t,r,n,o,i,s){return{name:e,keyPath:t,unique:r,multi:n,auto:o,compound:i,src:(r&&!s?"&":"")+(n?"*":"")+(o?"++":"")+rc(t)}}function rc(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function rl(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:X(r,e=>[e.name,e])}}let rf=e=>{try{return e.only([[]]),rf=()=>[[]],[[]]}catch(e){return rf=()=>tC,tC}};function rh(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>Q(t,e):t=>Q(t,e)}function rp(e){return[].slice.call(e)}let rd=0;function ry(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function rb({_novip:e},t){let r=t.db,n=function(e,t,{IDBKeyRange:r,indexedDB:n},o){var i;return{dbcore:(i=function(e,t,r){let n;function o(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:r,upper:n,lowerOpen:o,upperOpen:i}=e;return void 0===r?void 0===n?null:t.upperBound(n,!!i):void 0===n?t.lowerBound(r,!!o):t.bound(r,n,!!o,!!i)}let{schema:i,hasGetAll:s}=(n=rp(e.objectStoreNames),{schema:{name:e.name,tables:n.map(e=>r.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:r}=e,n=D(t),o=null==t,i={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:n,keyPath:t,autoIncrement:r,unique:!0,extractKey:rh(t)},indexes:rp(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:r,multiEntry:n,keyPath:o}=e,s={name:t,compound:D(o),keyPath:o,unique:r,multiEntry:n,extractKey:rh(o)};return i[ry(o)]=s,s}),getIndexByKeyPath:e=>i[ry(e)]};return i[":id"]=s.primaryKey,null!=t&&(i[ry(t)]=s.primaryKey),s})},hasGetAll:n.length>0&&"getAll"in r.objectStore(n[0])&&!("u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),u=i.tables.map(e=>{let t;return{name:t=e.name,schema:e,mutate:function({trans:e,type:r,keys:n,values:i,range:s}){return new Promise((u,a)=>{let c;u=ta(u);let l=e.objectStore(t),f=null==l.keyPath,h="put"===r||"add"===r;if(!h&&"delete"!==r&&"deleteRange"!==r)throw Error("Invalid operation type: "+r);let{length:p}=n||i||{length:1};if(n&&i&&n.length!==i.length)throw Error("Given keys array must have same length as given values array.");if(0===p)return u({numFailures:0,failures:{},results:[],lastResult:void 0});let d=[],y=[],b=0,v=e=>{++b,rn(e)};if("deleteRange"===r){if(4===s.type)return u({numFailures:b,failures:y,results:[],lastResult:void 0});3===s.type?d.push(c=l.clear()):d.push(c=l.delete(o(s)))}else{let[e,t]=h?f?[i,n]:[i,null]:[n,null];if(h)for(let n=0;n<p;++n)d.push(c=t&&void 0!==t[n]?l[r](e[n],t[n]):l[r](e[n])),c.onerror=v;else for(let t=0;t<p;++t)d.push(c=l[r](e[t])),c.onerror=v}let m=e=>{let t=e.target.result;d.forEach((e,t)=>null!=e.error&&(y[t]=e.error)),u({numFailures:b,failures:y,results:"delete"===r?n:d.map(e=>e.result),lastResult:t})};c.onerror=e=>{v(e),m(e)},c.onsuccess=m})},getMany:({trans:e,keys:r})=>new Promise((n,o)=>{n=ta(n);let i=e.objectStore(t),s=r.length,u=Array(s),a,c=0,l=0,f=e=>{let t=e.target;u[t._pos]=t.result,++l===c&&n(u)},h=rr(o);for(let e=0;e<s;++e)null!=r[e]&&((a=i.get(r[e]))._pos=e,a.onsuccess=f,a.onerror=h,++c);0===c&&n(u)}),get:({trans:e,key:r})=>new Promise((n,o)=>{n=ta(n);let i=e.objectStore(t).get(r);i.onsuccess=e=>n(e.target.result),i.onerror=rr(o)}),query:e=>new Promise((r,n)=>{r=ta(r);let{trans:i,values:u,limit:a,query:c}=e,l=a===1/0?void 0:a,{index:f,range:h}=c,p=i.objectStore(t),d=f.isPrimaryKey?p:p.index(f.name),y=o(h);if(0===a)return r({result:[]});if(s){let e=u?d.getAll(y,l):d.getAllKeys(y,l);e.onsuccess=e=>r({result:e.target.result}),e.onerror=rr(n)}else{let e=0,t=!u&&"openKeyCursor"in d?d.openKeyCursor(y):d.openCursor(y),o=[];t.onsuccess=n=>{let i=t.result;return i?(o.push(u?i.value:i.primaryKey),++e===a?r({result:o}):void i.continue()):r({result:o})},t.onerror=rr(n)}}),openCursor:function({trans:e,values:r,query:n,reverse:i,unique:s}){return new Promise((u,a)=>{u=ta(u);let{index:c,range:l}=n,f=e.objectStore(t),h=c.isPrimaryKey?f:f.index(c.name),p=i?s?"prevunique":"prev":s?"nextunique":"next",d=!r&&"openKeyCursor"in h?h.openKeyCursor(o(l),p):h.openCursor(o(l),p);d.onerror=rr(a),d.onsuccess=ta(t=>{let r=d.result;if(!r)return void u(null);r.___id=++rd,r.done=!1;let n=r.continue.bind(r),o=r.continuePrimaryKey;o&&(o=o.bind(r));let i=r.advance.bind(r),s=()=>{throw Error("Cursor not stopped")};r.trans=e,r.stop=r.continue=r.continuePrimaryKey=r.advance=()=>{throw Error("Cursor not started")},r.fail=ta(a),r.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},r.start=e=>{let t=new Promise((e,t)=>{e=ta(e),d.onerror=rr(t),r.fail=t,r.stop=t=>{r.stop=r.continue=r.continuePrimaryKey=r.advance=s,e(t)}}),u=()=>{if(d.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=()=>{throw Error("Cursor behind last entry")},r.stop()};return d.onsuccess=ta(e=>{d.onsuccess=u,u()}),r.continue=n,r.continuePrimaryKey=o,r.advance=i,u(),t},u(r)},a)})},count({query:e,trans:r}){let{index:n,range:i}=e;return new Promise((e,s)=>{let u=r.objectStore(t),a=n.isPrimaryKey?u:u.index(n.name),c=o(i),l=c?a.count(c):a.count();l.onsuccess=ta(t=>e(t.target.result)),l.onerror=rr(s)})}}}),a={};return u.forEach(e=>a[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!a[e])throw Error(`Table '${e}' not found`);return a[e]},MIN_KEY:-1/0,MAX_KEY:rf(t),schema:i}}(t,r,o),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),i))}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(t=>{let r=t.name;e.core.schema.tables.some(e=>e.name===r)&&(t.core=e.core.table(r),e[r]instanceof e.Table&&(e[r].core=t.core))})}function rv({_novip:e},t,r,n){r.forEach(r=>{let o=n[r];t.forEach(t=>{let n=q(t,r);(!n||"value"in n&&void 0===n.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?L(t,r,{get(){return this.table(r)},set(e){F(this,r,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[r]=new e.Table(r,o))})})}function rm({_novip:e},t){t.forEach(t=>{for(let r in t)t[r]instanceof e.Table&&delete t[r]})}function r_(e,t){return e._cfg.version-t._cfg.version}function rg(e,t){let r,n={del:[],add:[],change:[]};for(r in e)t[r]||n.del.push(r);for(r in t){let o=e[r],i=t[r];if(o){let e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")==""+(i.primKey.keyPath||"")&&(o.primKey.auto===i.primKey.auto||tM)){let t,r=o.idxByName,s=i.idxByName;for(t in r)s[t]||e.del.push(t);for(t in s){let n=r[t],o=s[t];n?n.src!==o.src&&e.change.push(o):e.add.push(o)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}else e.recreate=!0,n.change.push(e)}else n.add.push([r,i])}return n}function rw(e,t,r,n){let o=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(e=>rS(o,e)),o}function rS(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function rO(e,t,r){let n={};return G(t.objectStoreNames,0).forEach(e=>{let t=r.objectStore(e),o=t.keyPath,i=ra(rc(o),o||"",!1,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),s=[];for(let e=0;e<t.indexNames.length;++e){let r=t.index(t.indexNames[e]);o=r.keyPath;var u=ra(r.name,o,!!r.unique,!!r.multiEntry,!1,o&&"string"!=typeof o,!1);s.push(u)}n[e]=rl(e,i,s)}),n}function rx({_novip:e},t,r){let n=r.db.objectStoreNames;for(let o=0;o<n.length;++o){let i=n[o],s=r.objectStore(i);e._hasGetAll="getAll"in s;for(let e=0;e<s.indexNames.length;++e){let r=s.indexNames[e],n=s.index(r).keyPath,o="string"==typeof n?n:"["+G(n).join("+")+"]";if(t[i]){let e=t[i].idxByName[o];e&&(e.name=r,delete t[i].idxByName[o],t[i].idxByName[r]=e)}}}"u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&T.WorkerGlobalScope&&T instanceof T.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class rE{_parseStoresSpec(e,t){R(e).forEach(r=>{if(null!==e[r]){var n=e[r].split(",").map((e,t)=>{let r=(e=e.trim()).replace(/([&*]|\+\+)/g,""),n=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return ra(r,n||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),D(n),0===t)}),o=n.shift();if(o.multi)throw new ej.Schema("Primary key cannot be multi-valued");n.forEach(e=>{if(e.auto)throw new ej.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ej.Schema("Index must have a name and cannot be an empty string")}),t[r]=rl(r,o,n)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?M(this._cfg.storesSource,e):e;let r=t._versions,n={},o={};return r.forEach(e=>{M(n,e._cfg.storesSource),o=e._cfg.dbschema={},e._parseStoresSpec(n,o)}),t._dbSchema=o,rm(t,[t._allTables,t,t.Transaction.prototype]),rv(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],R(o),o),t._storeNames=R(o),this}upgrade(e){return this._cfg.contentUpgrade=eB(this._cfg.contentUpgrade||eA,e),this}}function rj(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new rz(tB,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),r.table("dbnames")}function rP(e){return e&&"function"==typeof e.databases}function rI(e){return ty(function(){return e1.letThrough=!0,e()})}function rA(e){var t=t=>e.next(t),r=o(t),n=o(t=>e.throw(t));function o(e){return t=>{var o=e(t),i=o.value;return o.done?i:i&&"function"==typeof i.then?i.then(r,n):D(i)?Promise.all(i).then(r,n):r(i)}}return o(t)()}function rC(e,t,r){var n=arguments.length;if(n<2)throw new ej.InvalidArgument("Too few arguments");for(var o=Array(n-1);--n;)o[n-1]=arguments[n];return r=o.pop(),[e,et(o),r]}function rk(e,t,r){let n=D(e)?e.slice():[e];for(let e=0;e<r;++e)n.push(t);return n}let rT={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let r=e.table(t),{schema:n}=r,o={},i=[];function s(e,t,r){let n=ry(e),u=o[n]=o[n]||[],a=null==e?0:"string"==typeof e?1:e.length,c=t>0,l={...r,isVirtual:c,keyTail:t,keyLength:a,extractKey:rh(e),unique:!c&&r.unique};return u.push(l),l.isPrimaryKey||i.push(l),a>1&&s(2===a?e[0]:e.slice(0,a-1),t+1,r),u.sort((e,t)=>e.keyTail-t.keyTail),l}let u=s(n.primaryKey.keyPath,0,n.primaryKey);for(let e of(o[":id"]=[u],n.indexes))s(e.keyPath,0,e);function a(t){var r,n;let o=t.query.index;return o.isVirtual?{...t,query:{index:o,range:(r=t.query.range,n=o.keyTail,{type:1===r.type?2:r.type,lower:rk(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,n),lowerOpen:!0,upper:rk(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,n),upperOpen:!0})}}:t}return{...r,schema:{...n,primaryKey:u,indexes:i,getIndexByKeyPath:function(e){let t=o[ry(e)];return t&&t[0]}},count:e=>r.count(a(e)),query:e=>r.query(a(e)),openCursor(t){let{keyTail:n,isVirtual:o,keyLength:i}=t.query.index;return o?r.openCursor(a(t)).then(r=>r&&Object.create(r,{continue:{value:function(o){null!=o?r.continue(rk(o,t.reverse?e.MAX_KEY:e.MIN_KEY,n)):t.unique?r.continue(r.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,n)):r.continue()}},continuePrimaryKey:{value(t,o){r.continuePrimaryKey(rk(t,e.MAX_KEY,n),o)}},primaryKey:{get:()=>r.primaryKey},key:{get(){let e=r.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>r.value}})):r.openCursor(t)}}}}}};function rR(e,t,r,n){return r=r||{},n=n||"",R(e).forEach(o=>{if(U(t,o)){var i=e[o],s=t[o];if("object"==typeof i&&"object"==typeof s&&i&&s){let e=eu(i);e!==eu(s)?r[n+o]=t[o]:"Object"===e?rR(i,s,r,n+o+"."):i!==s&&(r[n+o]=t[o])}else i!==s&&(r[n+o]=t[o])}else r[n+o]=void 0}),R(t).forEach(o=>{U(e,o)||(r[n+o]=t[o])}),r}let rD={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let r=e.table(t),{primaryKey:n}=r.schema;return{...r,mutate(e){let o=e1.trans,{deleting:i,creating:s,updating:u}=o.table(t).hook;switch(e.type){case"add":if(s.fire===eA)break;return o._promise("readwrite",()=>a(e),!0);case"put":if(s.fire===eA&&u.fire===eA)break;return o._promise("readwrite",()=>a(e),!0);case"delete":if(i.fire===eA)break;return o._promise("readwrite",()=>a(e),!0);case"deleteRange":if(i.fire===eA)break;return o._promise("readwrite",()=>(function e(t,o,i){return r.query({trans:t,values:!1,query:{index:n,range:o},limit:i}).then(({result:r})=>a({type:"delete",keys:r,trans:t}).then(n=>n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...o,lower:r[r.length-1],lowerOpen:!0},i)))})(e.trans,e.range,1e4),!0)}return r.mutate(e);function a(e){var t,o;let a=e1.trans,c=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(n.extractKey));if(!c)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:c}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(o=e).type?Promise.resolve([]):r.getMany({trans:o.trans,keys:c,cache:"immutable"})).then(t=>{let o=c.map((r,o)=>{let c=t[o],l={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(l,r,c,a);else if("add"===e.type||void 0===c){let t=s.fire.call(l,r,e.values[o],a);null==r&&null!=t&&(r=t,e.keys[o]=r,n.outbound||J(e.values[o],n.keyPath,r))}else{let t=rR(c,e.values[o]),n=u.fire.call(l,t,r,c,a);if(n){let t=e.values[o];Object.keys(n).forEach(e=>{U(t,e)?t[e]=n[e]:J(t,e,n[e])})}}return l});return r.mutate(e).then(({failures:r,results:n,numFailures:i,lastResult:s})=>{for(let i=0;i<c.length;++i){let s=n?n[i]:c[i],u=o[i];null==s?u.onerror&&u.onerror(r[i]):u.onsuccess&&u.onsuccess("put"===e.type&&t[i]?e.values[i]:s)}return{failures:r,results:n,numFailures:i,lastResult:s}}).catch(e=>(o.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function rM(e,t,r){try{if(!t||t.keys.length<e.length)return null;let n=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)0===tZ(t.keys[o],e[i])&&(n.push(r?ei(t.values[o]):t.values[o]),++i);return n.length===e.length?n:null}catch(e){return null}}let rN={stack:"dbcore",level:-1,create:e=>({table:t=>{let r=e.table(t);return{...r,getMany:e=>{if(!e.cache)return r.getMany(e);let t=rM(e.keys,e.trans._cache,"clone"===e.cache);return t?e8.resolve(t):r.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?ei(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),r.mutate(e))}}})};function rB(e){return!("from"in e)}let rU=function(e,t){if(!this){let t=new rU;return e&&"d"in e&&M(t,e),t}M(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function rV(e,t,r){let n=tZ(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(rB(e))return M(e,{from:t,to:r,d:1});let o=e.l,i=e.r;if(0>tZ(r,e.from))return o?rV(o,t,r):e.l={from:t,to:r,d:1,l:null,r:null},rK(e);if(tZ(t,e.to)>0)return i?rV(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},rK(e);0>tZ(t,e.from)&&(e.from=t,e.l=null,e.d=i?i.d+1:1),tZ(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);let s=!e.r;o&&!e.l&&rF(e,o),i&&s&&rF(e,i)}function rF(e,t){rB(t)||function e(t,{from:r,to:n,l:o,r:i}){rV(t,r,n),o&&e(t,o),i&&e(t,i)}(e,t)}function rL(e){let t=rB(e)?null:{s:0,n:e};return{next(e){let r=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&0>tZ(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||0>=tZ(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function rK(e){var t,r;let n=((null==(t=e.r)?void 0:t.d)||0)-((null==(r=e.l)?void 0:r.d)||0),o=n>1?"r":n<-1?"l":"";if(o){let t="r"===o?"l":"r",r={...e},n=e[o];e.from=n.from,e.to=n.to,e[o]=n[o],r[o]=n[t],e[t]=r,r.d=rW(r)}e.d=rW(e)}function rW({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}V(rU.prototype,{add(e){return rF(this,e),this},addKey(e){return rV(this,e,e),this},addKeys(e){return e.forEach(e=>rV(this,e,e)),this},[ea](){return rL(this)}});let rq={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,r=new rU(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{let o=e.table(n),{schema:i}=o,{primaryKey:s}=i,{extractKey:u,outbound:a}=s,c={...o,mutate:e=>{let s=e.trans,u=s.mutatedParts||(s.mutatedParts={}),a=e=>{let r=`idb://${t}/${n}/${e}`;return u[r]||(u[r]=new rU)},c=a(""),l=a(":dels"),{type:f}=e,[h,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],d=e.trans._cache;return o.mutate(e).then(e=>{if(D(h)){"delete"!==f&&(h=e.results),c.addKeys(h);let t=rM(h,d);t||"add"===f||l.addKeys(h),(t||p)&&i.indexes.forEach(function(e){let r=a(e.name||"");function n(t){return null!=t?e.extractKey(t):null}let o=t=>e.multiEntry&&D(t)?t.forEach(e=>r.addKey(e)):r.addKey(t);(t||p).forEach((e,r)=>{let i=t&&n(t[r]),s=p&&n(p[r]);0!==tZ(i,s)&&(null!=i&&o(i),null!=s&&o(s))})})}else if(h){let e={from:h.lower,to:h.upper};l.add(e),c.add(e)}else c.add(r),l.add(r),i.indexes.forEach(e=>a(e.name).add(r));return e})}},l=({query:{index:t,range:r}})=>{var n,o;return[t,new rU(null!=(n=r.lower)?n:e.MIN_KEY,null!=(o=r.upper)?o:e.MAX_KEY)]},f={get:e=>[s,new rU(e.key)],getMany:e=>[s,(new rU).addKeys(e.keys)],count:l,query:l,openCursor:l};return R(f).forEach(e=>{c[e]=function(i){let{subscr:s}=e1;if(s){let c=e=>{let r=`idb://${t}/${n}/${e}`;return s[r]||(s[r]=new rU)},l=c(""),h=c(":dels"),[p,d]=f[e](i);if(c(p.name||"").add(d),!p.isPrimaryKey){if("count"!==e){let t="query"===e&&a&&i.values&&o.query({...i,values:!1});return o[e].apply(this,arguments).then(r=>{if("query"===e){if(a&&i.values)return t.then(({result:e})=>(l.addKeys(e),r));let e=i.values?r.result.map(u):r.result;i.values?l.addKeys(e):h.addKeys(e)}else if("openCursor"===e){let e=i.values;return r&&Object.create(r,{key:{get:()=>(h.addKey(r.primaryKey),r.key)},primaryKey:{get(){let e=r.primaryKey;return h.addKey(e),e}},value:{get:()=>(e&&l.addKey(r.primaryKey),r.value)}})}return r})}h.add(r)}}return o[e].apply(this,arguments)}}),c}}}};class rz{constructor(e,t){var r;this._middlewares={},this.verno=0;const n=rz.dependencies;this._options=t={addons:rz.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:o}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:eA,dbReadyPromise:null,cancelOpen:eA,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};i.dbReadyPromise=new e8(e=>{i.dbReadyResolve=e}),i.openCanceller=new e8((e,t)=>{i.cancelOpen=t}),this._state=i,this.name=e,this.on=tq(this,"populate","blocked","versionchange","close",{ready:[eB,eA]}),this.on.ready.subscribe=H(this.on.ready.subscribe,e=>(t,r)=>{rz.vip(()=>{let n=this._state;if(n.openComplete)n.dbOpenError||e8.resolve().then(t),r&&e(t);else if(n.onReadyBeingFired)n.onReadyBeingFired.push(t),r&&e(t);else{e(t);let n=this;r||e(function e(){n.on.ready.unsubscribe(t),n.on.ready.unsubscribe(e)})}})}),this.Collection=(r=this,tz(t2.prototype,function(e,t){this.db=r;let n=tL,o=null;if(t)try{n=t()}catch(e){o=e}let i=e._ctx,s=i.table,u=s.hook.reading.fire;this._ctx={table:s,index:i.index,isPrimKey:!i.index||s.schema.primKey.keyPath&&i.index===s.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:o,or:i.or,valueMapper:u!==eC?u:null}})),this.Table=function(e){return tz(tW.prototype,function(t,r,n){this.db=e,this._tx=n,this.name=t,this.schema=r,this.hook=e._allTables[t]?e._allTables[t].hook:tq(null,{creating:[eR,eA],reading:[ek,eC],updating:[eM,eA],deleting:[eD,eA]})})}(this),this.Transaction=function(e){return tz(ru.prototype,function(t,r,n,o,i){this.db=e,this.mode=t,this.storeNames=r,this.schema=n,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=tq(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new e8((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),tI(e)})})}(this),this.Version=function(e){return tz(rE.prototype,function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(e){return tz(rt.prototype,function(t,r,n){this.db=e,this._ctx={table:t,index:":id"===r?null:r,or:n};let o=e._deps.indexedDB;if(!o)throw new ej.MissingAPI;this._cmp=this._ascending=o.cmp.bind(o),this._descending=(e,t)=>o.cmp(t,e),this._max=(e,t)=>o.cmp(e,t)>0?e:t,this._min=(e,t)=>0>o.cmp(e,t)?e:t,this._IDBKeyRange=e._deps.IDBKeyRange})}(this),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=rf(t.IDBKeyRange),this._createTransaction=(e,t,r,n)=>new this.Transaction(e,t,r,this._options.chromeTransactionDurability,n),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tD.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(rT),this.use(rD),this.use(rq),this.use(rN),this.vip=Object.create(this,{_vip:{value:!0}}),o.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new ej.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ej.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var r=t.filter(t=>t._cfg.version===e)[0];return r||(r=new this.Version(e),t.push(r),t.sort(r_),r.stores({}),this._state.autoSchema=!1,r)}_whenReady(e){return this.idbdb&&(this._state.openComplete||e1.letThrough||this._vip)?e():new e8((e,t)=>{if(this._state.openComplete)return t(new ej.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new ej.DatabaseClosed);this.open().catch(eA)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:r,name:n}){n&&this.unuse({stack:e,name:n});let o=this._middlewares[e]||(this._middlewares[e]=[]);return o.push({stack:e,create:t,level:null==r?10:r,name:n}),o.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:r}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>r?e.create!==r:!!t&&e.name!==t)),this}open(){return function(e){var t;let r=e._state,{indexedDB:n}=e._deps;if(r.isBeingOpened||e.idbdb)return r.dbReadyPromise.then(()=>r.dbOpenError?tI(r.dbOpenError):e);ep&&(r.openCanceller._stackHolder=eb()),r.isBeingOpened=!0,r.dbOpenError=null,r.openComplete=!1;let o=r.openCanceller;function i(){if(r.openCanceller!==o)throw new ej.DatabaseClosed("db.open() was cancelled")}let s=r.dbReadyResolve,u=null,a=!1,c=()=>new e8((t,o)=>{if(i(),!n)throw new ej.MissingAPI;let s=e.name,c=r.autoSchema?n.open(s):n.open(s,Math.round(10*e.verno));if(!c)throw new ej.MissingAPI;c.onerror=rr(o),c.onblocked=ta(e._fireOnBlocked),c.onupgradeneeded=ta(t=>{if(u=c.transaction,r.autoSchema&&!e._options.allowEmptyDB){c.onerror=rn,u.abort(),c.result.close();let e=n.deleteDatabase(s);e.onsuccess=e.onerror=ta(()=>{o(new ej.NoSuchDatabase(`Database ${s} doesnt exist`))})}else{let r,n,s,h;u.onerror=rr(o);var i,l,f=t.oldVersion>0x4000000000000000?0:t.oldVersion;a=f<1,e._novip.idbdb=c.result,i=f/10,l=u,r=e._dbSchema,(n=e._createTransaction("readwrite",e._storeNames,r)).create(l),n._completion.catch(o),s=n._reject.bind(n),h=e1.transless||e1,ty(()=>{e1.trans=n,e1.transless=h,0===i?(R(r).forEach(e=>{rw(l,e,r[e].primKey,r[e].indexes)}),rb(e,l),e8.follow(()=>e.on.populate.fire(n)).catch(s)):(function({_novip:e},t,r,n){let o=[],i=e._versions,s=e._dbSchema=rO(e,e.idbdb,n),u=!1;return i.filter(e=>e._cfg.version>=t).forEach(i=>{o.push(()=>{let o=s,a=i._cfg.dbschema;rx(e,o,n),rx(e,a,n),s=e._dbSchema=a;let c=rg(o,a);c.add.forEach(e=>{rw(n,e[0],e[1].primKey,e[1].indexes)}),c.change.forEach(e=>{if(e.recreate)throw new ej.Upgrade("Not yet support for changing primary key");{let t=n.objectStore(e.name);e.add.forEach(e=>rS(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),rS(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let l=i._cfg.contentUpgrade;if(l&&i._cfg.version>t){let t;rb(e,n),r._memoizedTables={},u=!0;let i=Z(a);c.del.forEach(e=>{i[e]=o[e]}),rm(e,[e.Transaction.prototype]),rv(e,[e.Transaction.prototype],R(i),i),r.schema=i;let s=eh(l);s&&tb();let f=e8.follow(()=>{if((t=l(r))&&s){var e=tv.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?e8.resolve(t):f.then(()=>t)}}),o.push(t=>{var n;u&&tM||(n=i._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==n[e]&&t.db.deleteObjectStore(e))),rm(e,[e.Transaction.prototype]),rv(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),r.schema=e._dbSchema})}),(function e(){return o.length?e8.resolve(o.shift()(r.idbtrans)).then(e):e8.resolve()})().then(()=>{var e;R(e=s).forEach(t=>{n.db.objectStoreNames.contains(t)||rw(n,t,e[t].primKey,e[t].indexes)})})})(e,i,n,l).catch(s)})}},o),c.onsuccess=ta(()=>{u=null;let n=e._novip.idbdb=c.result,o=G(n.objectStoreNames);if(o.length>0)try{let t,i=n.transaction(1===o.length?o[0]:o,"readonly");r.autoSchema?function({_novip:e},t,r){e.verno=t.version/10;let n=e._dbSchema=rO(0,t,r);e._storeNames=G(t.objectStoreNames,0),rv(e,[e._allTables],R(n),n)}(e,n,i):(rx(e,e._dbSchema,i),((t=rg(rO(0,e.idbdb,i),e._dbSchema)).add.length||t.change.some(e=>e.add.length||e.change.length))&&console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),rb(e,i)}catch(e){}tD.push(e),n.onversionchange=ta(t=>{r.vcFired=!0,e.on("versionchange").fire(t)}),n.onclose=ta(t=>{e.on("close").fire(t)}),a&&function({indexedDB:e,IDBKeyRange:t},r){rP(e)||r===tB||rj(e,t).put({name:r}).catch(eA)}(e._deps,s),t()},o)}).catch(e=>e&&"UnknownError"===e.name&&r.PR1398_maxLoop>0?(r.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),c()):e8.reject(e));return e8.race([o,("u"<typeof navigator?e8.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()).then(c)]).then(()=>(i(),r.onReadyBeingFired=[],e8.resolve(rI(()=>e.on.ready.fire(e.vip))).then(function t(){if(r.onReadyBeingFired.length>0){let n=r.onReadyBeingFired.reduce(eB,eA);return r.onReadyBeingFired=[],e8.resolve(rI(()=>n(e.vip))).then(t)}}))).finally(()=>{r.onReadyBeingFired=null,r.isBeingOpened=!1}).then(()=>e).catch(t=>{r.dbOpenError=t;try{u&&u.abort()}catch(e){}return o===r.openCanceller&&e._close(),tI(t)}).finally(()=>{r.openComplete=!0,s()})}(this)}_close(){let e=this._state,t=tD.indexOf(this);if(t>=0&&tD.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new e8(t=>{e.dbReadyResolve=t}),e.openCanceller=new e8((t,r)=>{e.cancelOpen=r})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ej.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new e8((r,n)=>{let o=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=ta(()=>{!function({indexedDB:e,IDBKeyRange:t},r){rP(e)||r===tB||rj(e,t).delete(r).catch(eA)}(this._deps,this.name),r()}),e.onerror=rr(n),e.onblocked=this._fireOnBlocked};if(e)throw new ej.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(o):o()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return R(this._allTables).map(e=>this._allTables[e])}transaction(){let e=rC.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,r){let n,o,i=e1.trans;i&&i.db===this&&-1===e.indexOf("!")||(i=null);let s=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(o=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||e===tU)n=tU;else{if("rw"!=e&&e!=tV)throw new ej.InvalidArgument("Invalid transaction mode: "+e);n=tV}if(i){if(i.mode===tU&&n===tV){if(!s)throw new ej.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&o.forEach(e=>{if(i&&-1===i.storeNames.indexOf(e)){if(!s)throw new ej.SubTransaction("Table "+e+" not included in parent transaction.");i=null}}),s&&i&&!i.active&&(i=null)}}catch(e){return i?i._promise(null,(t,r)=>{r(e)}):tI(e)}let u=(function e(t,r,n,o,i){return e8.resolve().then(()=>{let s,u=e1.transless||e1,a=t._createTransaction(r,n,t._dbSchema,o);if(o)a.idbtrans=o.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===eE.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,r,n,null,i))):tI(o)}let c=eh(i);c&&tb();let l=e8.follow(()=>{if(s=i.call(a,a))if(c){var e=tv.bind(null,null);s.then(e,e)}else"function"==typeof s.next&&"function"==typeof s.throw&&(s=rA(s))},{trans:a,transless:u});return(s&&"function"==typeof s.then?e8.resolve(s).then(e=>a.active?e:tI(new ej.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):l.then(()=>s)).then(e=>(o&&a._resolve(),a._completion.then(()=>e))).catch(e=>(a._reject(e),tI(e)))})}).bind(null,this,n,o,i,r);return i?i._promise(n,u,"lock"):e1.trans?tO(e1.transless,()=>this._whenReady(u)):this._whenReady(u)}table(e){if(!U(this._allTables,e))throw new ej.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let rG="u">typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class rH{constructor(e){this._subscribe=e}subscribe(e,t,r){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:r})}[rG](){return this}}function r$(e,t){return R(t).forEach(r=>{rF(e[r]||(e[r]=new rU),t[r])}),e}try{n={indexedDB:T.indexedDB||T.mozIndexedDB||T.webkitIndexedDB||T.msIndexedDB,IDBKeyRange:T.IDBKeyRange||T.webkitIDBKeyRange}}catch(e){n={indexedDB:null,IDBKeyRange:null}}function rY(e){let t=rX;try{rX=!0,rs.storagemutated.fire(e)}finally{rX=t}}V(rz,{...eI,delete:e=>new rz(e,{addons:[]}).delete(),exists:e=>new rz(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return rP(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>e!==tB)):rj(e,t).toCollection().primaryKeys()})(rz.dependencies).then(e)}catch(e){return tI(new ej.MissingAPI)}},defineClass:()=>function(e){M(this,e)},ignoreTransaction:e=>e1.trans?tO(e1.transless,e):e(),vip:rI,async:function(e){return function(){try{var t=rA(e.apply(this,arguments));return t&&"function"==typeof t.then?t:e8.resolve(t)}catch(e){return tI(e)}}},spawn:function(e,t,r){try{var n=rA(e.apply(r,t||[]));return n&&"function"==typeof n.then?n:e8.resolve(n)}catch(e){return tI(e)}},currentTransaction:{get:()=>e1.trans||null},waitFor:function(e,t){let r=e8.resolve("function"==typeof e?rz.ignoreTransaction(e):e).timeout(t||6e4);return e1.trans?e1.trans.waitFor(r):r},Promise:e8,debug:{get:()=>ep,set:e=>{ep=e,ed="dexie"===e?()=>!0:tN}},derive:K,extend:M,props:V,override:H,Events:tq,on:rs,liveQuery:function(e){let t,r=!1,n=new rH(n=>{let o=eh(e),i=!1,s={},u={},a={get closed(){return i},unsubscribe:()=>{i=!0,rs.storagemutated.unsubscribe(h)}};n.start&&n.start(a);let c=!1,l=!1;function f(){return R(u).some(e=>s[e]&&function(e,t){let r=rL(t),n=r.next();if(n.done)return!1;let o=n.value,i=rL(e),s=i.next(o.from),u=s.value;for(;!n.done&&!s.done;){if(0>=tZ(u.from,o.to)&&tZ(u.to,o.from)>=0)return!0;0>tZ(o.from,u.from)?o=(n=r.next(u.from)).value:u=(s=i.next(o.from)).value}return!1}(s[e],u[e]))}let h=e=>{r$(s,e),f()&&p()},p=()=>{let d,y;if(c||i)return;s={};let b={},v=(o&&tb(),d=()=>ty(e,{subscr:b,trans:null}),y=e1.trans?tO(e1.transless,d):d(),o&&y.then(tv,tv),y);l||(rs(ro,h),l=!0),c=!0,Promise.resolve(v).then(e=>{r=!0,t=e,c=!1,i||(f()?p():(s={},u=b,n.next&&n.next(e)))},e=>{c=!1,r=!1,n.error&&n.error(e),a.unsubscribe()})};return p(),a});return n.hasValue=()=>r,n.getValue=()=>t,n},extendObservabilitySet:r$,getByKeyPath:Q,setByKeyPath:J,delByKeyPath:function(e,t){"string"==typeof t?J(e,t,void 0):"length"in t&&[].map.call(t,function(t){J(e,t,void 0)})},shallowClone:Z,deepClone:ei,getObjectDiff:rR,cmp:tZ,asap:Y,minKey:tk,addons:[],connections:tD,errnames:eE,dependencies:n,semVer:tA,version:tA.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),rz.maxKey=rf(rz.dependencies.IDBKeyRange),"u">typeof dispatchEvent&&"u">typeof addEventListener&&(rs(ro,e=>{if(!rX){let t;tM?(t=document.createEvent("CustomEvent")).initCustomEvent(ri,!0,!0,e):t=new CustomEvent(ri,{detail:e}),rX=!0,dispatchEvent(t),rX=!1}}),addEventListener(ri,({detail:e})=>{rX||rY(e)}));let rX=!1;if("u">typeof BroadcastChannel){let e=new BroadcastChannel(ri);"function"==typeof e.unref&&e.unref(),rs(ro,t=>{rX||e.postMessage(t)}),e.onmessage=e=>{e.data&&rY(e.data)}}else if("u">typeof self&&"u">typeof navigator){rs(ro,e=>{try{rX||("u">typeof localStorage&&localStorage.setItem(ri,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:ri,changedParts:e})))}catch(e){}}),"u">typeof addEventListener&&addEventListener("storage",e=>{if(e.key===ri){let t=JSON.parse(e.newValue);t&&rY(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&e.type===ri&&rY(e.changedParts)})}e8.rejectionMapper=function(e,t){if(!e||e instanceof ew||e instanceof TypeError||e instanceof SyntaxError||!e.name||!eP[e.name])return e;var r=new eP[e.name](t||e.message,e);return"stack"in e&&L(r,"stack",{get:function(){return this.inner.stack}}),r},ed=tN;var rQ=r(7530),rJ=r(7988);function rZ(e){return(rZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r0(e,t){return(r0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r1=function(){return!!e})()}function r2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var r7=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,r,n;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=["EsmOffline"],r=rZ(r=t),r2(e=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,r1()?Reflect.construct(r,n||[],rZ(this).constructor):r.apply(this,n)),"syncQueue",void 0),r2(e,"dynamicOfflineData",void 0),e.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),e.syncQueue=e.table("syncQueue"),e.dynamicOfflineData=e.table("dynamicOfflineData"),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r0(t,e),t}(rz);function r4(){return new r7}function r8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r3(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function r6(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){r3(i,n,o,s,u,"next",e)}function u(e){r3(i,n,o,s,u,"throw",e)}s(void 0)})}}function r9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,u=!1;try{for(o=o.call(e);!(s=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){u=!0,n=e}finally{try{s||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r8(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r8(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r5(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var ne=new r7,nt={},nr=(0,rJ.createGlobalStore)("offline-synchronization",{});function nn(){return nr}function no(){return r6(function(){var e,t,r,n,o,i,s,u,a,c,l,f,h;return r5(this,function(p){switch(p.label){case 0:if(nr.getState().synchronization)return[2];return[4,ne.syncQueue.count()];case 1:e=p.sent(),t={},n=(r=Object.entries(nt)).length,o={},i=new AbortController,s=function(){var e,t,r=nr.getState().synchronization;nr.setState({synchronization:(e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r),t=t={pendingCount:r.pendingCount-1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)})},p.label=2;case 2:p.trys.push([2,,10,11]),nr.setState({synchronization:{totalCount:e,pendingCount:e,abortController:i}}),u=0,p.label=3;case 3:if(!(u<n&&r.length>0))return[3,8];a=r.length,p.label=4;case 4:if(!a--)return[3,7];if(l=(c=r9(r[a],2))[0],!(h=(f=c[1]).dependsOn.map(function(e){return t[e]})).every(Boolean))return[3,6];return o[l]={},[4,Promise.all(h)];case 5:p.sent(),t[l]=function(e,t,r,n){return r6(function(e,t,r,n){var o,i,s,u,a,c,l,f,h,p,d,y,b,v,m,g,w;return r5(this,function(S){switch(S.label){case 0:return o=e.type,i=e.dependsOn,s=e.process,u=[],a=[],[4,ni()];case 1:return c=S.sent(),[4,ne.syncQueue.where({type:o,userId:c}).each(function(e,t){u.push([t.primaryKey,e.content,e.descriptor]),a.push(e.content)})];case 2:S.sent(),l=0,S.label=3;case 3:if(!(l<u.length))return[3,11];h=(f=r9(u[l],3))[0],p=f[1],y=(d=f[2]).id,v=void 0===(b=d.dependencies)?[]:b,S.label=4;case 4:return S.trys.push([4,7,9,10]),[4,s(p,{abort:r,index:l,items:a,userId:c,dependencies:v.map(function(e){var r=e.id,n=e.type;return i.includes(n)?t[n][r]:void 0})})];case 5:return m=S.sent(),void 0!==y&&(t[o][y]=m),[4,ne.syncQueue.delete(h)];case 6:case 8:return S.sent(),[3,10];case 7:var O,x;return O=g=S.sent(),w=(null!=(x=Error)&&"u">typeof Symbol&&x[Symbol.hasInstance]?!!x[Symbol.hasInstance](O):O instanceof x)?g:{name:"UnknownError",message:String(g)},[4,ne.syncQueue.update(h,{lastError:{name:w.name,message:w.message}})];case 9:return n(),[7];case 10:return l++,[3,3];case 11:return[2]}})}).apply(this,arguments)}(f,o,i,s),r.splice(a,1),p.label=6;case 6:return[3,4];case 7:return u++,[3,3];case 8:return[4,Promise.allSettled(Object.values(t))];case 9:return p.sent(),[3,11];case 10:return nr.setState({synchronization:void 0}),[7];case 11:return[2]}})})()}function ni(){return r6(function(){var e;return r5(this,function(t){switch(t.label){case 0:return[4,(0,rQ.getLoggedInUser)()];case 1:return[2,(null==(e=t.sent())?void 0:e.uuid)||"*"]}})})()}function ns(e,t,r,n){return r6(function(){var o;return r5(this,function(i){switch(i.label){case 0:if(void 0===(o=n&&n.id))return[3,2];return[4,ne.syncQueue.where({type:t,userId:e}).filter(function(e){return(null==e?void 0:e.descriptor.id)===o}).delete().catch(rz.errnames.DatabaseClosed)];case 1:i.sent(),i.label=2;case 2:return[4,ne.syncQueue.add({type:t,content:r,userId:e,descriptor:n||{},createdOn:new Date}).catch(rz.errnames.DatabaseClosed,function(){return -1})];case 3:return[2,i.sent()]}})})()}function nu(e,t,r){return r6(function(){return r5(this,function(n){switch(n.label){case 0:return[4,ni()];case 1:return[4,ns(n.sent(),e,t,r)];case 2:return[2,n.sent()]}})})()}function na(e,t){return r6(function(){return r5(this,function(r){switch(r.label){case 0:return[4,nc(e,t)];case 1:return[2,r.sent().map(function(e){return e.content})]}})})()}function nc(e,t){return r6(function(){var r;return r5(this,function(n){switch(n.label){case 0:return r=t?{type:t,userId:e}:{userId:e},[4,ne.syncQueue.where(r).toArray().catch(rz.errnames.DatabaseClosed,function(){return[]})];case 1:return[2,n.sent()]}})})()}function nl(e){return r6(function(){return r5(this,function(t){switch(t.label){case 0:return[4,ni()];case 1:return[4,na(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function nf(e){return r6(function(){return r5(this,function(t){switch(t.label){case 0:return[4,ni()];case 1:return[4,nc(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function nh(e){return r6(function(){return r5(this,function(t){switch(t.label){case 0:return[4,ne.syncQueue.get(e).catch(rz.errnames.DatabaseClosed,function(){})];case 1:return[2,t.sent()]}})})()}function np(e){var t;return!!(null==(t=nt[e])?void 0:t.options.onBeginEditSyncItem)}function nd(e){return r6(function(){var t,r,n;return r5(this,function(o){switch(o.label){case 0:return[4,nh(e)];case 1:if(!(r=o.sent()))throw Error("No sync item with the ID ".concat(e," exists."));if(!(n=null==(t=nt[r.type])?void 0:t.options.onBeginEditSyncItem))throw Error("A sync item with the ID ".concat(e,' exists, but the associated handler (if one exists) doesn\'t support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "').concat(r.type,'" supports editing items.'));return n(r),[2]}})})()}function ny(e){return r6(function(){return r5(this,function(t){switch(t.label){case 0:return[4,ne.syncQueue.delete(e).catch(rz.errnames.DatabaseClosed)];case 1:return t.sent(),[2]}})})()}function nb(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};nt[e]={type:e,dependsOn:t,process:r,options:n}}var nv=r(188),nm="OFFLINE+";function n_(){return nm+(0,nv.A)()}function ng(e){return e.startsWith(nm)}function nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nS(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}function nO(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){nS(i,n,o,s,u,"next",e)}function u(e){nS(i,n,o,s,u,"throw",e)}s(void 0)})}}function nx(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var nE={};function nj(){return Object.values(nE)}function nP(e){nE[e.id]&&console.warn('[setupDynamicOfflineDataHandler] Another second handler with the ID "'.concat(e.id,'" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.')),nE[e.id]=e}function nI(e){return nO(function(){return nx(this,function(t){switch(t.label){case 0:return[4,nN()];case 1:return[4,nA(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function nA(e,t){return nO(function(){var r;return nx(this,function(n){switch(n.label){case 0:return r=t?{type:t,users:e}:{users:e},[4,new r7().dynamicOfflineData.where(r).toArray().catch(rz.errnames.DatabaseClosed,function(){return[]})];case 1:return[2,n.sent()]}})})()}function nC(e,t){return nO(function(){return nx(this,function(r){switch(r.label){case 0:return[4,nN()];case 1:return[4,nk(r.sent(),e,t)];case 2:return[2,r.sent()]}})})()}function nk(e,t,r){return nO(function(){var n,o;return nx(this,function(i){switch(i.label){case 0:return[4,(n=new r7).dynamicOfflineData.get({type:t,identifier:r}).catch(rz.errnames.DatabaseClosed,function(){})];case 1:if(o=i.sent())return[3,3];return[4,n.dynamicOfflineData.add({users:[e],type:t,identifier:r}).catch(rz.errnames.DatabaseClosed)];case 2:return i.sent(),[3,5];case 3:var s;if(o.users.includes(e))return[3,5];return[4,n.dynamicOfflineData.update(o.id,{users:((function(e){if(Array.isArray(e))return nw(e)})(s=o.users)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e){if(e){if("string"==typeof e)return nw(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return nw(e,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])}).catch(rz.errnames.DatabaseClosed)];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function nT(e,t){return nO(function(){return nx(this,function(r){switch(r.label){case 0:return[4,nN()];case 1:return[4,nR(r.sent(),e,t)];case 2:return[2,r.sent()]}})})()}function nR(e,t,r){return nO(function(){var n,o;return nx(this,function(i){switch(i.label){case 0:return[4,(n=new r7).dynamicOfflineData.get({type:t,identifier:r,users:e}).catch(rz.errnames.DatabaseClosed,function(){})];case 1:if(!(o=i.sent()))return[3,5];if(!(o.users.length>1))return[3,3];return[4,n.dynamicOfflineData.update(o.id,{users:o.users.filter(function(t){return t!==e})}).catch(rz.errnames.DatabaseClosed)];case 2:return i.sent(),[3,5];case 3:return[4,n.dynamicOfflineData.delete(o.id).catch(rz.errnames.DatabaseClosed)];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function nD(e,t){return nO(function(){return nx(this,function(r){switch(r.label){case 0:return[4,nI(e)];case 1:return[4,Promise.all(r.sent().map(function(e){return nO(function(){return nx(this,function(r){return[2,nM(e.type,e.identifier,t)]})})()}))];case 2:return r.sent(),[2]}})})()}function nM(e,t,r){return nO(function(){var n,o,i,s,u,a,c,l,f;return nx(this,function(h){switch(h.label){case 0:return[4,nC(e,t)];case 1:return h.sent(),n=new r7,[4,nN()];case 2:return o=h.sent(),[4,n.dynamicOfflineData.get({type:e,identifier:t}).catch(rz.errnames.DatabaseClosed,function(){})];case 3:if(i=h.sent(),s=nj().filter(function(t){return t.type===e}),!i)return[2];return[4,Promise.all(s.map(function(e){return nO(function(){var n,o,i;return nx(this,function(s){try{return e.sync(t,r),[2,{id:e.id,error:void 0}]}catch(t){return i=null!=(n=null==(o=t.message)?void 0:o.toString())?n:t.toString(),[2,{id:e.id,error:i}]}})})()}))];case 4:if(a=(u=h.sent()).filter(function(e){return!e.error}).map(function(e){return e.id}),c=u.filter(function(e){return e.error}).map(function(e){return e.id}),l=u.filter(function(e){return e.error}).map(function(e){return{handlerId:e.id,message:e.error}}),f={syncedOn:new Date,syncedBy:o,succeededHandlers:a,erroredHandlers:c,errors:l},!i.id)return[3,6];return[4,n.dynamicOfflineData.update(i.id,{syncState:f}).catch(rz.errnames.DatabaseClosed)];case 5:h.sent(),h.label=6;case 6:return[2]}})})()}function nN(){return nO(function(){var e;return nx(this,function(t){switch(t.label){case 0:return[4,(0,rQ.getLoggedInUser)()];case 1:if(!(e=t.sent().uuid))throw Error("Using the dynamic offline data API requires a logged in user.");return[2,e]}})})()}function nB(e,t,r,n,o,i,s){try{var u=e[i](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,o)}var nU=(0,rJ.createGlobalStore)("offline-entities",{offlineEntityDataSyncState:{},handlers:{}});function nV(){return nK(),nU}function nF(e,t){nK(),nP({type:"entity",displayName:t.displayName,id:e,isSynced:function(){return Promise.resolve(!0)},sync:function(e,r){return t.onOfflineEntityAdded({entityUuid:e,signal:null!=r?r:new AbortController().signal})}})}function nL(e){var t;return(t=function(){return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(s,"next",{value:a(0)}),u(s,"throw",{value:a(1)}),u(s,"return",{value:a(2)}),"function"==typeof Symbol&&u(s,Symbol.iterator,{value:function(){return this}}),s;function a(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return nK(),[4,nM("entity",e)];case 1:return t.sent(),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function s(e){nB(i,n,o,s,u,"next",e)}function u(e){nB(i,n,o,s,u,"throw",e)}s(void 0)})})()}function nK(){console.warn("The offline entity API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}},5565(e,t,r){"use strict";r.d(t,{V:()=>l,t:()=>c});var n,o,i=(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},{address1:"Address line 1",address2:"Address line 2",address3:"Address line 3",address4:"Address line 4",address5:"Address line 5",address6:"Address line 6",city:"City",cityVillage:"City",country:"Country",countyDistrict:"District",district:"District",postalCode:"Postal code",state:"State",stateProvince:"State"},{closeAllOpenedWorkspaces:"Discard changes in {{count}} workspaces",closingAllWorkspacesPromptBody:"There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",closingAllWorkspacesPromptTitle:"You have unsaved changes",discard:"Discard",hide:"Hide",maximize:"Maximize",minimize:"Minimize",openAnyway:"Open anyway",unsavedChangesInOpenedWorkspace:"You may have unsaved changes in the opened workspace. Do you want to discard these changes?",unsavedChangesInWorkspace:'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',unsavedChangesTitleText:"Unsaved changes",workspaceHeader:"Workspace header"},{closeWorkspaces2PromptTitle:"Close workspace(s)",closeWorkspaces2PromptBody:"You are about to close the following workspace(s), which might have unsaved changes:"}),o=o={abnormalValue:"Abnormal value",actions:"Actions",actionableNotification:"Actionable notification",address:"Address",age:"Age",batchActionItemSelected:"{{totalSelected}} item selected",batchActionsItemsSelected:"{{totalSelected}} items selected",cancel:"Cancel",change:"Change",close:"Close",closesActionableNotification:"Close actionable notification",closeSnackbar:"Close snackbar",confirm:"Confirm",contactAdministratorIfIssuePersists:"Contact your system administrator if the problem persists.",contactDetails:"Contact Details",delete:"Delete",discardChanges:"Discard changes",edit:"Edit",emptyStateText:"There are no {{displayText}} to display",entityAvatarAlt:"Avatar for {{entityName}}",entityGroups:"Entity Groups",entityIdentifierSticker:"Entity identifier sticker",entityPhotoAlt:"Profile photo of {{entityName}}",entityPhotoPlaceholder:"Photo placeholder for {{entityName}}",error:"Error",errorCopy:"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",errorLoadingLoginLocations:"Unable to load login locations. Please try again or contact support if the problem persists.",female:"Female",Framework:"Framework",groups:"Groups",leftNavigation:"Left navigation",loading:"Loading",male:"Male",noResultsToDisplay:"No results to display",notAvailable:"Not available",other:"Other",paginationItemsCount:"{{pageItemsCount}} / {{totalItems}} items",paginationOfPages:"of {{count}} pages",print:"Print",printError:"Print error",printErrorExplainer:"An error occurred in {{errorLocation}}",printIdentifierSticker:"Print identifier sticker",printing:"Printing",recordNewEntry:"Record {{displayText}}",relationships:"Relationships",resetOverrides:"Reset overrides",save:"Save",scriptLoadingFailed:"Error: Script failed to load",scriptLoadingError:"Failed to load overridden script from {{url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",searchForLocation:"Search for a location",seeAll:"See all",seeMoreGroups:"See {{count}} more groups",selectAll:"Select all",sex:"Sex",showLess:"Show less",showMore:"Show more",snackbarNotification:"Snackbar notification",toggleDevTools:"Toggle dev tools",unknown:"Unknown",yearAbbreviation:"yr",yearsAbbreviation:"yrs"},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n),s=r(4519),u=r.n(s),a=u().default||u();function c(e,t,r,n){return a.t(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ns:e,defaultValue:r},n))}function l(e,t,r){return i[e]?c("core",e,null!=t?t:i[e],r):(console.error("O3 Core Translations does not provide key '".concat(e,"'. The key itself is being rendered as text.")),e)}a.on("initialized",function(){window.i18next.loadNamespaces(["core"])})},2316(e,t,r){"use strict";function n(e){return!window.offlineEnabled||(null!=e?e:navigator.onLine)}r.d(t,{s:()=>n})}}]);