q2-tecton-platform 1.61.1 → 1.61.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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see q2-tecton-platform.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["q2-tecton-platform"]=e():t["q2-tecton-platform"]=e()}(self,()=>(()=>{var t={46:(t,e,n)=>{"use strict";n.d(e,{I:()=>o,w:()=>i});var r=n(8183),i=new r.c(function(t){return t.complete()});function o(t){return t?function(t){return new r.c(function(e){return t.schedule(function(){return e.complete()})})}(t):i}},163:(t,e,n)=>{"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,{A:()=>r})},403:(t,e,n)=>{"use strict";n.d(e,{g:()=>s,T:()=>o});var r=n(5785),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.C6(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(5389).R),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e}(n(4274).q))(i),s=o},506:(t,e,n)=>{"use strict";n.d(e,{O4:()=>c});var r=n(5785),i=n(7371),o=n(5090),s=n(7372),u=n(7779);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!(0,i.c)(t[0]))return t[0];t=t[0]}return(0,o.c)(t,void 0).lift(new a)}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.C6(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=(0,u.F)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(s.E)},568:(t,e,n)=>{"use strict";function r(t){setTimeout(function(){throw t},0)}n.d(e,{T:()=>r})},572:(t,e,n)=>{"use strict";n.d(e,{m:()=>l});var r=n(5785),i=n(2521),o=n(403),s=n(8252),u=n(1842),c=n(9776),a=n(6024),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.C6(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new c.P;if(this.isStopped||this.hasError?e=s.y.EMPTY:(this.observers.push(t),e=new a.Y(this,t)),i&&t.add(t=new u.YZ(t,i)),n)for(var l=0;l<o&&!t.closed;l++)t.next(r[l]);else for(l=0;l<o&&!t.closed;l++)t.next(r[l].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.g).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.B7),h=function(){return function(t,e){this.time=t,this.value=e}}()},659:(t,e,n)=>{"use strict";n.d(e,{c:()=>l});var r=n(8183),i=n(8252),o=n(2013),s=n(7339),u=n(7214),c=n(3155),a=n(4276);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.s]}(t))return function(t,e){return new r.c(function(n){var r=new i.y;return r.add(e.schedule(function(){var i=t[o.s]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}(t,e);if((0,c.y)(t))return function(t,e){return new r.c(function(n){var r=new i.y;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r})}(t,e);if((0,a.X)(t))return(0,s.V)(t,e);if(function(t){return t&&"function"==typeof t[u.lJ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.c(function(n){var r,o=new i.y;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[u.lJ](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),o})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},668:(t,e,n)=>{"use strict";n.d(e,{K:()=>i});var r=n(1520);function i(){return(0,r.U)(1)}},739:(t,e,n)=>{"use strict";n.d(e,{E:()=>i,b:()=>o});var r=n(5389),i=new(n(4274).q)(r.R),o=i},936:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2471),i=n(7799),o=n(3488),s=n(7566),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,u=n._parentOrParents,a=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof t)u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f)u[f].remove(this);if(o.isFunction(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(t){e=t instanceof s.UnsubscriptionError?c(t.errors):[t]}}if(r.isArray(h)){f=-1;for(var p=h.length;++f<p;){var d=h[f];if(i.isObject(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof s.UnsubscriptionError?e=e.concat(c(t.errors)):e.push(t)}}}if(e)throw new s.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce(function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)},[])}e.Subscription=u},1506:(t,e,n)=>{"use strict";n.d(e,{v:()=>r});var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},1515:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},1520:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(9377),i=n(8958);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,r.ZZ)(i.D,t)}},1571:(t,e,n)=>{"use strict";n.r(e),n.d(e,{audit:()=>o,auditTime:()=>l,buffer:()=>h,bufferCount:()=>b,bufferTime:()=>w,bufferToggle:()=>I,bufferWhen:()=>M,catchError:()=>k,combineAll:()=>q,combineLatest:()=>z,concat:()=>W,concatAll:()=>H.K,concatMap:()=>Y,concatMapTo:()=>G,count:()=>Z,debounce:()=>Q,debounceTime:()=>nt,defaultIfEmpty:()=>st.U,delay:()=>at,delayWhen:()=>dt,dematerialize:()=>gt,distinct:()=>_t,distinctUntilChanged:()=>Et.F,distinctUntilKeyChanged:()=>Nt,elementAt:()=>At,endWith:()=>Mt,every:()=>Rt,exhaust:()=>$t,exhaustMap:()=>Bt,expand:()=>Ut,filter:()=>Ot.p,finalize:()=>Jt,find:()=>Zt,findIndex:()=>Qt,first:()=>te.$,flatMap:()=>J.qI,groupBy:()=>ee.$,ignoreElements:()=>ne,isEmpty:()=>oe,last:()=>de,map:()=>qt.T,mapTo:()=>be,materialize:()=>me,max:()=>Ne,merge:()=>Oe,mergeAll:()=>Pe.U,mergeMap:()=>J.ZZ,mergeMapTo:()=>Ie,mergeScan:()=>Ae,min:()=>Re,multicast:()=>ke,observeOn:()=>Fe.QE,onErrorResumeNext:()=>De,pairwise:()=>Le.J,partition:()=>Ue,pluck:()=>We,publish:()=>Je,publishBehavior:()=>Ge,publishLast:()=>Ke,publishReplay:()=>Qe,race:()=>en,reduce:()=>Ee,refCount:()=>bn.B,repeat:()=>nn,repeatWhen:()=>sn,retry:()=>an,retryWhen:()=>fn,sample:()=>vn,sampleTime:()=>gn,scan:()=>xe,sequenceEqual:()=>Sn,share:()=>On,shareReplay:()=>Pn,single:()=>In,skip:()=>Mn,skipLast:()=>kn,skipUntil:()=>Dn,skipWhile:()=>Ln,startWith:()=>Wn,subscribeOn:()=>Gn,switchAll:()=>tr,switchMap:()=>Kn,switchMapTo:()=>er,take:()=>It.s,takeLast:()=>le,takeUntil:()=>nr,takeWhile:()=>or,tap:()=>lr,throttle:()=>dr,throttleTime:()=>yr,throwIfEmpty:()=>Pt.v,timeInterval:()=>_r,timeout:()=>Pr,timeoutWith:()=>Er,timestamp:()=>Ir,toArray:()=>Mr,window:()=>Rr,windowCount:()=>$r,windowTime:()=>qr,windowToggle:()=>Jr,windowWhen:()=>Zr,withLatestFrom:()=>Qr,zip:()=>ri,zipAll:()=>ii});var r=n(5785),i=n(4137);function o(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.C6(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=(0,i.tS)(e,new i.zA(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.gn),c=n(739),a=n(5662);function l(t,e){return void 0===e&&(e=c.b),o(function(){return(0,a.O)(t,e)})}function h(t){return function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add((0,i.tS)(n,new i.zA(r))),r}return r.C6(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.gn),d=n(8243);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new v(t,e))}}var v=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?m:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.C6(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(d.v),m=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.C6(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r===0&&i.push([]);for(var s=i.length;s--;){var u=i[s];u.push(t),u.length===n&&(i.splice(s,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(d.v),g=n(1931);function w(t){var e=arguments.length,n=c.b;(0,g.m)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new x(t,r,i,n))}}var x=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),_=function(){return function(){this.buffer=[]}}(),S=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var u=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly){var c={subscriber:s,context:u,bufferTimeSpan:n};s.add(u.closeAction=o.schedule(C,n,c))}else{var a={subscriber:s,context:u},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(u.closeAction=o.schedule(N,n,a)),s.add(o.schedule(E,r,l))}return s}return r.C6(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(C,n,r))}},e.prototype.openContext=function(){var t=new _;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(d.v);function C(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function E(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(N,n,{subscriber:r,context:o})),this.schedule(t,e))}function N(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var T=n(8252),O=n(7779),P=n(7372);function I(t,e){return function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.openings,this.closingSelector))},t}(),j=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add((0,O.F)(i,n)),i}return r.C6(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new T.y,r={buffer:[],subscription:n};e.push(r);var i=(0,O.F)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(P.E);function M(t){return function(e){return e.lift(new R(t))}}var R=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new V(t,this.closingSelector))},t}(),V=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.C6(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new T.y,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.tS)(e,new i.zA(this))),this.subscribing=!1},e}(i.gn);function k(t){return function(e){var n=new $(t),r=e.lift(n);return n.caught=r}}var $=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.selector,this.caught))},t}(),F=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.C6(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.zA(this);this.add(r);var o=(0,i.tS)(n,r);o!==r&&this.add(o)}},e}(i.gn),D=n(9489);function q(t){return function(e){return e.lift(new D.ZS(t))}}var B=n(7371),L=n(4147);function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,B.c)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,L.H)([e].concat(t)),new D.ZS(n))}}var U=n(7403);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(U.x.apply(void 0,[e].concat(t)))}}var H=n(668),J=n(9377);function Y(t,e){return(0,J.ZZ)(t,e,1)}function G(t,e){return Y(function(){return t},e)}function Z(t){return function(e){return e.lift(new K(t,e))}}var K=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.predicate,this.source))},t}(),X=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(d.v);function Q(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.C6(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,i.tS)(e,new i.zA(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.gn);function nt(t,e){return void 0===e&&(e=c.b),function(n){return n.lift(new rt(t,e))}}var rt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.dueTime,this.scheduler))},t}(),it=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.C6(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ot,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(d.v);function ot(t){t.debouncedNext()}var st=n(3620);function ut(t){return t instanceof Date&&!isNaN(+t)}var ct=n(5594);function at(t,e){void 0===e&&(e=c.b);var n=ut(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new lt(n,e))}}var lt=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ht(t,this.delay,this.scheduler))},t}(),ht=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.C6(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ft(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ct.E.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ct.E.createComplete()),this.unsubscribe()},e}(d.v),ft=function(){return function(t,e){this.time=t,this.notification=e}}(),pt=n(8183);function dt(t,e){return e?function(n){return new yt(n,e).lift(new bt(t))}:function(e){return e.lift(new bt(t))}}var bt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.delayDurationSelector))},t}(),vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=(0,O.F)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(P.E),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.C6(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new mt(t,this.source))},e}(pt.c),mt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.C6(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(d.v);function gt(){return function(t){return t.lift(new wt)}}var wt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new xt(t))},t}(),xt=function(t){function e(e){return t.call(this,e)||this}return r.C6(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(d.v);function _t(t,e){return function(n){return n.lift(new St(t,e))}}var St=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Ct(t,this.keySelector,this.flushes))},t}(),Ct=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add((0,i.tS)(r,new i.zA(o))),o}return r.C6(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.gn),Et=n(9919);function Nt(t,e){return(0,Et.F)(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}var Tt=n(1515),Ot=n(7377),Pt=n(9471),It=n(3860);function At(t,e){if(t<0)throw new Tt.k;var n=arguments.length>=2;return function(r){return r.pipe((0,Ot.p)(function(e,n){return n===t}),(0,It.s)(1),n?(0,st.U)(e):(0,Pt.v)(function(){return new Tt.k}))}}var jt=n(3550);function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return(0,U.x)(e,jt.of.apply(void 0,t))}}function Rt(t,e){return function(n){return n.lift(new Vt(t,e,n))}}var Vt=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.predicate,this.thisArg,this.source))},t}(),kt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.C6(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.v);function $t(){return function(t){return t.lift(new Ft)}}var Ft=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Dt(t))},t}(),Dt=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.C6(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add((0,i.tS)(t,new i.zA(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.gn),qt=n(5693);function Bt(t,e){return e?function(n){return n.pipe(Bt(function(n,r){return(0,L.H)(t(n,r)).pipe((0,qt.T)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Lt(t))}}var Lt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.project))},t}(),zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.zA(this),n=this.destination;n.add(e);var r=(0,i.tS)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.gn);function Ut(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Wt(t,e,n))}}var Wt=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Ht(t,this.project,this.concurrent,this.scheduler))},t}(),Ht=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.C6(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add((0,i.tS)(t,new i.zA(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.gn);function Jt(t){return function(e){return e.lift(new Yt(t))}}var Yt=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.callback))},t}(),Gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new T.y(n)),r}return r.C6(e,t),e}(d.v);function Zt(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Kt(t,n,!1,e))}}var Kt=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Xt(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Xt=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return r.C6(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(d.v);function Qt(t,e){return function(n){return n.lift(new Kt(t,n,!0,e))}}var te=n(4517),ee=n(8229);function ne(){return function(t){return t.lift(new re)}}var re=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ie(t))},t}(),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype._next=function(t){},e}(d.v);function oe(){return function(t){return t.lift(new se)}}var se=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ue(t))},t}(),ue=function(t){function e(e){return t.call(this,e)||this}return r.C6(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.v),ce=n(7649),ae=n(46);function le(t){return function(e){return 0===t?(0,ae.I)():e.lift(new he(t))}}var he=function(){function t(t){if(this.total=t,this.total<0)throw new Tt.k}return t.prototype.call=function(t,e){return e.subscribe(new fe(t,this.total))},t}(),fe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(d.v),pe=n(8958);function de(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?(0,Ot.p)(function(e,n){return t(e,n,r)}):pe.D,le(1),n?(0,st.U)(e):(0,Pt.v)(function(){return new ce.G}))}}function be(t){return function(e){return e.lift(new ve(t))}}var ve=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new ye(t,this.value))},t}(),ye=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.C6(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(d.v);function me(){return function(t){return t.lift(new ge)}}var ge=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new we(t))},t}(),we=function(t){function e(e){return t.call(this,e)||this}return r.C6(e,t),e.prototype._next=function(t){this.destination.next(ct.E.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ct.E.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ct.E.createComplete()),t.complete()},e}(d.v);function xe(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new _e(t,e,n))}}var _e=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Se(t,this.accumulator,this.seed,this.hasSeed))},t}(),Se=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.C6(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(d.v),Ce=n(5020);function Ee(t,e){return arguments.length>=2?function(n){return(0,Ce.F)(xe(t,e),le(1),(0,st.U)(e))(n)}:function(e){return(0,Ce.F)(xe(function(e,n,r){return t(e,n,r+1)}),le(1))(e)}}function Ne(t){return Ee("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Te=n(2151);function Oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Te.h.apply(void 0,[e].concat(t)))}}var Pe=n(1520);function Ie(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?(0,J.ZZ)(function(){return t},e,n):("number"==typeof e&&(n=e),(0,J.ZZ)(function(){return t},n))}function Ae(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new je(t,e,n))}}var je=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.accumulator,this.seed,this.concurrent))},t}(),Me=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.C6(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.zA(this),n=this.destination;n.add(e);var r=(0,i.tS)(t,e);r!==e&&n.add(r)},e.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()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.gn);function Re(t){return Ee("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var Ve=n(5308);function ke(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new $e(r,e));var i=Object.create(n,Ve.f);return i.source=n,i.subjectFactory=r,i}}var $e=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Fe=n(1842);function De(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&(0,B.c)(t[0])&&(t=t[0]),function(e){return e.lift(new qe(t))}}var qe=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.nextSources))},t}(),Be=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.C6(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.zA(this),n=this.destination;n.add(e);var r=(0,i.tS)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.gn),Le=n(9143),ze=n(163);function Ue(t,e){return function(n){return[(0,Ot.p)(t,e)(n),(0,Ot.p)((0,ze.A)(t,e))(n)]}}function We(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return(0,qt.T)(function(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}(t,n))(e)}}var He=n(2521);function Je(t){return t?ke(function(){return new He.B7},t):ke(new He.B7)}var Ye=n(1891);function Ge(t){return function(e){return ke(new Ye.t(t))(e)}}var Ze=n(6885);function Ke(){return function(t){return ke(new Ze.h)(t)}}var Xe=n(572);function Qe(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new Xe.m(t,e,r);return function(t){return ke(function(){return o},i)(t)}}var tn=n(506);function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&(0,B.c)(t[0])&&(t=t[0]),e.lift.call(tn.O4.apply(void 0,[e].concat(t)))}}function nn(t){return void 0===t&&(t=-1),function(e){return 0===t?(0,ae.I)():t<0?e.lift(new rn(-1,e)):e.lift(new rn(t-1,e))}}var rn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new on(t,this.count,this.source))},t}(),on=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.C6(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(d.v);function sn(t){return function(e){return e.lift(new un(t))}}var un=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new cn(t,this.notifier,e))},t}(),cn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.C6(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new He.B7;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.tS)(e,new i.zA(this))},e}(i.gn);function an(t){return void 0===t&&(t=-1),function(e){return e.lift(new ln(t,e))}}var ln=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new hn(t,this.count,this.source))},t}(),hn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.C6(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(d.v);function fn(t){return function(e){return e.lift(new pn(t,e))}}var pn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new dn(t,this.notifier,this.source))},t}(),dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.C6(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new He.B7;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=(0,i.tS)(r,new i.zA(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.gn),bn=n(6991);function vn(t){return function(e){return e.lift(new yn(t))}}var yn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new mn(t),r=e.subscribe(n);return r.add((0,i.tS)(this.notifier,new i.zA(n))),r},t}(),mn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.C6(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.gn);function gn(t,e){return void 0===e&&(e=c.b),function(n){return n.lift(new wn(t,e))}}var wn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.period,this.scheduler))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(_n,n,{subscriber:i,period:n})),i}return r.C6(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(d.v);function _n(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Sn(t,e){return function(n){return n.lift(new Cn(t,e))}}var Cn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new En(t,this.compareTo,this.comparator))},t}(),En=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Nn(e,i))),i}return r.C6(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparator;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),s=!1;try{s=r?r(i,o):i===o}catch(t){this.destination.error(t)}s||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(d.v),Nn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.C6(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(d.v);function Tn(){return new He.B7}function On(){return function(t){return(0,bn.B)()(ke(Tn)(t))}}function Pn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,a=0,l=!1,h=!1;return function(t){var r;a++,!e||l?(l=!1,e=new Xe.m(i,s,c),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}),h&&(n=void 0)):r=e.subscribe(this),this.add(function(){a--,r.unsubscribe(),r=void 0,n&&!h&&u&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)})}}(r))}}function In(t){return function(e){return e.lift(new An(t,e))}}var An=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.predicate,this.source))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.C6(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new ce.G)},e}(d.v);function Mn(t){return function(e){return e.lift(new Rn(t))}}var Rn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.total))},t}(),Vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(d.v);function kn(t){return function(e){return e.lift(new $n(t))}}var $n=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Tt.k}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new d.v(t)):e.subscribe(new Fn(t,this._skipCount))},t}(),Fn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.C6(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(d.v);function Dn(t){return function(e){return e.lift(new qn(t))}}var qn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Bn(t,this.notifier))},t}(),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.zA(r);r.add(o),r.innerSubscription=o;var s=(0,i.tS)(n,o);return s!==o&&(r.add(s),r.innerSubscription=s),r}return r.C6(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.gn);function Ln(t){return function(e){return e.lift(new zn(t))}}var zn=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Un(t,this.predicate))},t}(),Un=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(d.v);function Wn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return(0,g.m)(n)?(t.pop(),function(e){return(0,U.x)(t,e,n)}):function(e){return(0,U.x)(t,e)}}var Hn=n(7474),Jn=n(6381),Yn=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Hn.I);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!(0,Jn.k)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Hn.I),i}return r.C6(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Hn.I),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(pt.c);function Gn(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Zn(t,e))}}var Zn=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Yn(e,this.delay,this.scheduler).subscribe(t)},t}();function Kn(t,e){return"function"==typeof e?function(n){return n.pipe(Kn(function(n,r){return(0,L.H)(t(n,r)).pipe((0,qt.T)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Xn(t))}}var Xn=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Qn(t,this.project))},t}(),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.zA(this),r=this.destination;r.add(n),this.innerSubscription=(0,i.tS)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.gn);function tr(){return Kn(pe.D)}function er(t,e){return e?Kn(function(){return t},e):Kn(function(){return t})}function nr(t){return function(e){return e.lift(new rr(t))}}var rr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new ir(t),r=(0,i.tS)(this.notifier,new i.zA(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),ir=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.C6(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.gn);function or(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new sr(t,e))}}var sr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new ur(t,this.predicate,this.inclusive))},t}(),ur=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(d.v),cr=n(5980),ar=n(8764);function lr(t,e,n){return function(r){return r.lift(new hr(t,e,n))}}var hr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new fr(t,this.nextOrObserver,this.error,this.complete))},t}(),fr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=cr.l,o._tapError=cr.l,o._tapComplete=cr.l,o._tapError=r||cr.l,o._tapComplete=i||cr.l,(0,ar.T)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||cr.l,o._tapError=n.error||cr.l,o._tapComplete=n.complete||cr.l),o}return r.C6(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(d.v),pr={leading:!0,trailing:!1};function dr(t,e){return void 0===e&&(e=pr),function(n){return n.lift(new br(t,!!e.leading,!!e.trailing))}}var br=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.durationSelector,this.leading,this.trailing))},t}(),vr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.C6(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=(0,i.tS)(e,new i.zA(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.gn);function yr(t,e,n){return void 0===e&&(e=c.b),void 0===n&&(n=pr),function(r){return r.lift(new mr(t,e,n.leading,n.trailing))}}var mr=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new gr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),gr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return r.C6(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(wr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(d.v);function wr(t){t.subscriber.clearThrottle()}var xr=n(2791);function _r(t){return void 0===t&&(t=c.b),function(e){return(0,xr.v)(function(){return e.pipe(xe(function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}},{current:t.now(),value:void 0,last:void 0}),(0,qt.T)(function(t){var e=t.current,n=t.last,r=t.value;return new Sr(r,e-n)}))})}}var Sr=function(){return function(t,e){this.value=t,this.interval=e}}(),Cr=n(7103);function Er(t,e,n){return void 0===n&&(n=c.b),function(r){var i=ut(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Nr(o,i,e,n))}}var Nr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Tr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Tr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.scheduleTimeout(),s}return r.C6(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add((0,i.tS)(e,new i.zA(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(i.gn),Or=n(7517);function Pr(t,e){return void 0===e&&(e=c.b),Er(t,(0,Or.$)(new Cr.M),e)}function Ir(t){return void 0===t&&(t=c.b),(0,qt.T)(function(e){return new Ar(e,t.now())})}var Ar=function(){return function(t,e){this.value=t,this.timestamp=e}}();function jr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Mr(){return Ee(jr,[])}function Rr(t){return function(e){return e.lift(new Vr(t))}}var Vr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new kr(t),r=e.subscribe(n);return r.closed||n.add((0,i.tS)(this.windowBoundaries,new i.zA(n))),r},t}(),kr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new He.B7,e.next(n.window),n}return r.C6(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new He.B7;e.next(n)},e}(i.gn);function $r(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Fr(t,e))}}var Fr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.windowSize,this.startWindowEvery))},t}(),Dr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new He.B7],i.count=0,e.next(i.windows[0]),i}return r.C6(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var u=this.count-r+1;if(u>=0&&u%e===0&&!this.closed&&i.shift().complete(),++this.count%e===0&&!this.closed){var c=new He.B7;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(d.v);function qr(t){var e=c.b,n=null,r=Number.POSITIVE_INFINITY;return(0,g.m)(arguments[3])&&(e=arguments[3]),(0,g.m)(arguments[2])?e=arguments[2]:(0,Jn.k)(arguments[2])&&(r=Number(arguments[2])),(0,g.m)(arguments[1])?e=arguments[1]:(0,Jn.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Br(t,n,r,e))}}var Br=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new zr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Lr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.C6(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(He.B7),zr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var u=s.openWindow();if(null!==r&&r>=0){var c={subscriber:s,window:u,context:null},a={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(Hr,n,c)),s.add(o.schedule(Wr,r,a))}else{var l={subscriber:s,window:u,windowTimeSpan:n};s.add(o.schedule(Ur,n,l))}return s}return r.C6(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Lr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(d.v);function Ur(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function Wr(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s=this,u={action:s,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(Hr,e,c),s.add(u.subscription),s.schedule(t,i)}function Hr(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function Jr(t,e){return function(n){return n.lift(new Yr(t,e))}}var Yr=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Gr(t,this.openings,this.closingSelector))},t}(),Gr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,O.F)(i,n,n)),i}return r.C6(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new He.B7,u=new T.y,c={window:s,subscription:u};this.contexts.push(c);var a=(0,O.F)(this,o,c);a.closed?this.closeWindow(this.contexts.length-1):(a.context=c,u.add(a)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(P.E);function Zr(t){return function(e){return e.lift(new Kr(t))}}var Kr=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Xr(t,this.closingSelector))},t}(),Xr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new He.B7;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=(0,O.F)(this,n))},e}(P.E);function Qr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new ti(r,n))}}var ti=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.observables,this.project))},t}(),ei=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var u=n[s];i.add((0,O.F)(i,u,void 0,s))}return i}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(P.E),ni=n(8272);function ri(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ni.yU.apply(void 0,[e].concat(t)))}}function ii(t){return function(e){return e.lift(new ni.ee(t))}}},1604:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(8575);e.skip=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},1842:(t,e,n)=>{"use strict";n.d(e,{QE:()=>s,YZ:()=>c});var r=n(5785),i=n(8243),o=n(5594);function s(t,e){return void 0===e&&(e=0),function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.C6(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.E.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.E.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.E.createComplete()),this.unsubscribe()},e}(i.v),a=function(){return function(t,e){this.notification=t,this.destination=e}}()},1891:(t,e,n)=>{"use strict";n.d(e,{t:()=>s});var r=n(5785),i=n(2521),o=n(9776),s=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.C6(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.P;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.B7)},1908:(t,e,n)=>{"use strict";n.d(e,{_:()=>r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},1931:(t,e,n)=>{"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,{m:()=>r})},2013:(t,e,n)=>{"use strict";n.d(e,{s:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},2151:(t,e,n)=>{"use strict";n.d(e,{h:()=>u});var r=n(8183),i=n(1931),o=n(1520),s=n(5090);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,u=null,c=t[t.length-1];return(0,i.m)(c)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.c?t[0]:(0,o.U)(n)((0,s.c)(t,u))}},2347:(t,e,n)=>{"use strict";n.d(e,{$:()=>i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},2450:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},2471:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},2521:(t,e,n)=>{"use strict";n.d(e,{B7:()=>h,PJ:()=>l});var r=n(5785),i=n(8183),o=n(8243),s=n(8252),u=n(9776),c=n(6024),a=n(3992),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.C6(e,t),e}(o.v),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.C6(e,t),e.prototype[a.D]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.P;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.P;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.P;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.P;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.P;return this.hasError?(t.error(this.thrownError),s.y.EMPTY):this.isStopped?(t.complete(),s.y.EMPTY):(this.observers.push(t),new c.Y(this,t))},e.prototype.asObservable=function(){var t=new i.c;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.c),f=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.C6(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.y.EMPTY},e}(h)},2791:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});var r=n(8183),i=n(4147),o=n(46);function s(t){return new r.c(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?(0,i.H)(n):(0,o.I)()).subscribe(e)})}},3155:(t,e,n)=>{"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{y:()=>r})},3163:(t,e,n)=>{"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,{G:()=>r})},3488:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"==typeof t}},3550:(t,e,n)=>{"use strict";n.d(e,{of:()=>s});var r=n(1931),i=n(5090),o=n(7339);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return(0,r.m)(n)?(t.pop(),(0,o.V)(t,n)):(0,i.c)(t)}},3585:(t,e,n)=>{"use strict";n.d(e,{i:()=>l});var r=n(1506),i=n(568),o=n(7214),s=n(2013),u=n(4276),c=n(3155),a=n(3163),l=function(t){if(t&&"function"==typeof t[s.s])return l=t,function(t){var e=l[s.s]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,u.X)(t))return(0,r.v)(t);if((0,c.y)(t))return n=t,function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.T),t};if(t&&"function"==typeof t[o.lJ])return e=t,function(t){for(var n=e[o.lJ]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};var e,n,l,h=(0,a.G)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+h+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},3620:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(5785),i=n(8243);function o(t){return void 0===t&&(t=null),function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.defaultValue))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.C6(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.v)},3860:(t,e,n)=>{"use strict";n.d(e,{s:()=>u});var r=n(5785),i=n(8243),o=n(1515),s=n(46);function u(t){return function(e){return 0===t?(0,s.I)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new o.k}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.v)},3992:(t,e,n)=>{"use strict";n.d(e,{D:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},4137:(t,e,n)=>{"use strict";n.d(e,{gn:()=>c,tS:()=>a,zA:()=>u});var r=n(5785),i=n(8243),o=n(8183),s=n(3585),u=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.v),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.v);function a(t,e){if(!e.closed){if(t instanceof o.c)return t.subscribe(e);var n;try{n=(0,s.i)(t)(e)}catch(t){e.error(t)}return n}}},4147:(t,e,n)=>{"use strict";n.d(e,{H:()=>s});var r=n(8183),i=n(3585),o=n(659);function s(t,e){return e?(0,o.c)(t,e):t instanceof r.c?t:new r.c((0,i.i)(t))}},4274:(t,e,n)=>{"use strict";n.d(e,{q:()=>o});var r=n(5785),i=n(1908),o=function(t){function e(n,r){void 0===r&&(r=i._.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.C6(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i._)},4276:(t,e,n)=>{"use strict";n.d(e,{X:()=>r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},4517:(t,e,n)=>{"use strict";n.d(e,{$:()=>a});var r=n(7649),i=n(7377),o=n(3860),s=n(3620),u=n(9471),c=n(8958);function a(t,e){var n=arguments.length>=2;return function(a){return a.pipe(t?(0,i.p)(function(e,n){return t(e,n,a)}):c.D,(0,o.s)(1),n?(0,s.U)(e):(0,u.v)(function(){return new r.G}))}}},5020:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,m:()=>o});var r=n(8958);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.D:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},5090:(t,e,n)=>{"use strict";n.d(e,{c:()=>s});var r=n(8183),i=n(1506),o=n(7339);function s(t,e){return e?(0,o.V)(t,e):new r.c((0,i.v)(t))}},5255:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},5308:(t,e,n)=>{"use strict";n.d(e,{G:()=>c,f:()=>a});var r=n(5785),i=n(2521),o=n(8183),s=n(8252),u=n(6991),c=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.C6(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.y).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.y.EMPTY)),t},e.prototype.refCount=function(){return(0,u.B)()(this)},e}(o.c),a=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.C6(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.PJ)},5350:(t,e,n)=>{"use strict";n.d(e,{H:()=>i});var r=n(8243);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.v?i:null}return!0}},5389:(t,e,n)=>{"use strict";n.d(e,{R:()=>i});var r=n(5785),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.C6(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.C6(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(8252).y))},5594:(t,e,n)=>{"use strict";n.d(e,{E:()=>u,I:()=>r});var r,i=n(46),o=n(3550),s=n(7517);r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,s.$)(this.error);case"C":return(0,i.I)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},5662:(t,e,n)=>{"use strict";n.d(e,{O:()=>u});var r=n(8183),i=n(739),o=n(6381),s=n(1931);function u(t,e,n){void 0===t&&(t=0);var u=-1;return(0,o.k)(e)?u=Number(e)<1?1:Number(e):(0,s.m)(e)&&(n=e),(0,s.m)(n)||(n=i.b),new r.c(function(e){var r=(0,o.k)(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:u,subscriber:e})})}function c(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},5693:(t,e,n)=>{"use strict";n.d(e,{T:()=>o});var r=n(5785),i=n(8243);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.v)},5785:(t,e,n)=>{"use strict";n.d(e,{C6:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},5980:(t,e,n)=>{"use strict";function r(){}n.d(e,{l:()=>r})},5987:(t,e,n)=>{"use strict";n.d(e,{I:()=>o});var r=n(2347),i=n(568),o={closed:!0,next:function(t){},error:function(t){if(r.$.useDeprecatedSynchronousErrorHandling)throw t;(0,i.T)(t)},complete:function(){}}},6024:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i});var r=n(5785),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.C6(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(8252).y)},6381:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});var r=n(7371);function i(t){return!(0,r.c)(t)&&t-parseFloat(t)+1>=0}},6885:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var r=n(5785),i=n(2521),o=n(8252),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.C6(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.y.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.y.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.B7)},6991:(t,e,n)=>{"use strict";n.d(e,{B:()=>o});var r=n(5785),i=n(8243);function o(){return function(t){return t.lift(new s(t))}}var s=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new u(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.C6(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.v)},7103:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},7214:(t,e,n)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,{lJ:()=>i});var i=r()},7339:(t,e,n)=>{"use strict";n.d(e,{V:()=>o});var r=n(8183),i=n(8252);function o(t,e){return new r.c(function(n){var r=new i.y,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},7371:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},7372:(t,e,n)=>{"use strict";n.d(e,{E:()=>i});var r=n(5785),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(8243).v)},7377:(t,e,n)=>{"use strict";n.d(e,{p:()=>o});var r=n(5785),i=n(8243);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.v)},7403:(t,e,n)=>{"use strict";n.d(e,{x:()=>o});var r=n(3550),i=n(668);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.K)()(r.of.apply(void 0,t))}},7474:(t,e,n)=>{"use strict";n.d(e,{I:()=>l,$:()=>a});var r=n(5785),i=1,o=function(){return Promise.resolve()}(),s={};function u(t){return t in s&&(delete s[t],!0)}var c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(c=e.flush.bind(e,null),a=i++,s[a]=!0,o.then(function(){return u(a)&&c()}),a)));var c,a},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(u(n),e.scheduled=void 0)},e}(n(5389).R),a=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(4274).q))(c),l=a},7517:(t,e,n)=>{"use strict";n.d(e,{$:()=>i});var r=n(8183);function i(t,e){return e?new r.c(function(n){return e.schedule(o,0,{error:t,subscriber:n})}):new r.c(function(e){return e.error(t)})}function o(t){var e=t.error;t.subscriber.error(e)}},7566:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();e.UnsubscriptionError=n},7649:(t,e,n)=>{"use strict";n.d(e,{G:()=>r});var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},7758:(t,e,n)=>{var r;self,r=()=>(()=>{"use strict";var t={466:()=>{!function(t){function e(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof t.CustomEvent&&(e.prototype=t.Event.prototype,t.CustomEvent=e)}(window)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};function o(t){return(t.charAt(0)+t.slice(1).replace(/([A-Z])/g,"-$&")).toLowerCase()}r.r(i),r.d(i,{createSetupElement:()=>f,generateCustomElementWrapper:()=>h,makeGenericEffectsDriver:()=>d});var s=1e3;const u=n(7828),c=n(8256);function a(t,e,n,r,i){var o=e.replace(/-([a-z])/gi,function(t,e){return e.toUpperCase()});t[o]=r.map(function(t){var e=t.get(o),r=n;return e&&e.reflectAs&&n&&(r=e.reflectAs(n)),e&&e.reflectAs===Boolean&&(r=""===n),i&&(i[o]=r),r}).withDefault(n)}const l=n(1571);function h(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{useShadowDOM:!0},l=i.useShadowDOM?c.Maybe.just(function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!!window.HTMLTemplateElement;return e=r?function(t){var e=document.createElement("template");return e.innerHTML="<style>".concat(t,'</style><div class="root"></div>'),e.content}(n):function(t){var e=document.createDocumentFragment(),n=document.createElement("style");n.appendChild(document.createTextNode(t));var r=document.createElement("div");return r.className="root",e.appendChild(n),e.appendChild(r),e}(n),function(t){if(t.shadowRoot)return t.shadowRoot.querySelector("div");t.attachShadow?t.attachShadow({mode:"open"}):Object.assign(t,{shadowRoot:t});var i=document.importNode(e,!0);r||(i.querySelector("style").sheet.cssText=n);var o=t.shadowRoot;return o.appendChild(i),o.querySelector("div")}}(t,i.css)):c.Maybe.nothing(),h=Array.isArray(i.props)?c.Maybe.just((n=i.props,{fnHashByName:r=n.reduce(function(t,e){return t.set(e.name,e),t},new Map),hooks:{init:function(t){t.__innerProps$=new u.BehaviorSubject({})},connectedCallback:function(t){var e,n,i,o,s,u=t.__innerProps$.getValue(),l=Object.assign({},u);t.constructor.observedAttributes.forEach(function(e){null!==t.getAttribute(e)&&a(t,e,t.getAttribute(e),c.Maybe.just(r),l)}),e=u,n=l,i=!0,o=Object.keys(e),s=Object.keys(n),o.length===s.length&&(o.forEach(function(t){n.hasOwnProperty(t)&&e[t]===n[t]||(i=!1)}),i)||t.__innerProps$.next(l)},classSetup:function(t){Object.assign(t,{observedAttributes:n.filter(function(t){return t.reflectAs}).map(function(t){return t.name}).map(o)}),n.forEach(function(e){Object.defineProperty(t.prototype,e.name,{get:function(){return this.__innerProps$.getValue()[e.name]},set:function(n){if(this.__innerProps$.getValue()[e.name]!==n){var r=o(e.name),i=t.observedAttributes.includes(r);i&&(!0===n?this.setAttribute(r,""):n||0===n||""===n?this.setAttribute(r,String(n)):this.removeAttribute(r)),!this.__attached&&i&&!1!==n||(this.__innerProps$.getValue()[e.name]=n,this.__innerProps$.next(this.__innerProps$.getValue()))}}})})}}})):c.Maybe.nothing(),f=function(){var t=Reflect.construct(HTMLElement,[],f);return i.prototypeExtensions&&Object.keys(i.prototypeExtensions).forEach(function(e){t[e]||(t[e]=i.prototypeExtensions[e])}),t.__onTeardown=[],t.__onAttached=[],t.__guid=s++,h.map(function(e){return(0,e.hooks.init)(t)}),l.map(function(e){return e(t)}).map(function(n){var r=c.Maybe.maybe(t.__innerProps$).map(function(n){return e(t,n)}).withDefaultFn(function(){return e(t)});p(t,n,r),t.__shadowAppBooted=!0}),t};return function(t){try{Object.defineProperty(t,"is",{value:name,writable:!1}),Object.defineProperty(t,"localName",{value:name,writable:!1})}catch(t){}}(f),f.prototype=Object.create(HTMLElement.prototype,{component:{writable:!0,enumerable:!0},constructor:{value:f},connectedCallback:{writable:!0,value:function(){var t=this;this.dataset.guid="".concat(this.__guid),i.useShadowDOM&&this.__shadowAppBooted||(l.map(function(e){return e(t)}).alt(c.Maybe.just(this)).map(function(n){var r=c.Maybe.maybe(t.__innerProps$).map(function(n){return e(t,n)}).withDefaultFn(function(){return e(t)});p(t,n,r)}),this.__shadowAppBooted=!0),h.map(function(e){(0,e.hooks.connectedCallback)(t)}),this.__attached=!0,this.__onAttached.forEach(function(e){return e.call(t)})}},disconnectedCallback:{writable:!0,value:function(){var t=this;this.__onTeardown.reverse().forEach(function(e){return e.call(t)}),this.__onTeardown=[],this.__onAttached=[],this.__attached=!1,this.__shadowAppBooted=!1}},attributeChangedCallback:{writable:!0,value:function(t,e,n){e!==n&&this.__attached&&a(this,t,n,h.map(function(t){return t.fnHashByName}))}}}),h.map(function(t){return(0,t.hooks.classSetup)(f)}),f}function f(t){return function(e){return function(n){var r=function(){window.customElements.get(n)||window.customElements.define(n,t(n,e))};window.customElements?r():(0,u.interval)(5).pipe((0,l.filter)(function(){return!!window.customElements}),(0,l.take)(1)).toPromise().then(function(){r()})}}}function p(t,e,n){var r=document.createElement("div");e.appendChild(r);var i=n.DOM$.subscribe(function(t){e.replaceChild(t,e.firstChild)}),o=n.settled$.subscribe(function(e){t.settled=e,e&&t.dispatchEvent(new CustomEvent("settled"))}),s=n.teardown$.subscribe(function(e){t.__onTeardown.push(e)});t.__onTeardown.push(function(){[i,o,s].forEach(function(t){return t.unsubscribe()})})}function d(t){return function(e){e.subscribe({next:function(e){e(t)},error:function(){},complete:function(){}})}}return r(466),i})(),t.exports=r()},7779:(t,e,n)=>{"use strict";n.d(e,{F:()=>u});var r=n(5785),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(8243).v),o=n(3585),s=n(8183);function u(t,e,n,r,u){if(void 0===u&&(u=new i(t,n,r)),!u.closed)return e instanceof s.c?e.subscribe(u):(0,o.i)(e)(u)}},7799:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return null!==t&&"object"==typeof t}},7828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ArgumentOutOfRangeError:()=>I.k,AsyncSubject:()=>l.h,BehaviorSubject:()=>c.t,ConnectableObservable:()=>i.G,EMPTY:()=>G.w,EmptyError:()=>A.G,GroupedObservable:()=>o.k,NEVER:()=>lt,Notification:()=>E.E,NotificationKind:()=>E.I,ObjectUnsubscribedError:()=>j.P,Observable:()=>r.c,ReplaySubject:()=>a.m,Scheduler:()=>_._,Subject:()=>u.B7,Subscriber:()=>C.v,Subscription:()=>S.y,TimeoutError:()=>R.M,UnsubscriptionError:()=>M.Z,VirtualAction:()=>x,VirtualTimeScheduler:()=>w,animationFrame:()=>g,animationFrameScheduler:()=>m,asap:()=>h.I,asapScheduler:()=>h.$,async:()=>f.b,asyncScheduler:()=>f.E,bindCallback:()=>D,bindNodeCallback:()=>L,combineLatest:()=>H.zV,concat:()=>J.x,config:()=>Ot.$,defer:()=>Y.v,empty:()=>G.I,forkJoin:()=>X,from:()=>K.H,fromEvent:()=>tt.R,fromEventPattern:()=>nt,generate:()=>rt,identity:()=>O.D,iif:()=>ot,interval:()=>ut,isObservable:()=>P,merge:()=>at.h,never:()=>ht,noop:()=>T.l,observable:()=>s.s,of:()=>ft.of,onErrorResumeNext:()=>pt,pairs:()=>dt,partition:()=>gt,pipe:()=>N.F,queue:()=>p.g,queueScheduler:()=>p.T,race:()=>wt.O4,range:()=>xt,scheduled:()=>Tt.c,throwError:()=>St.$,timer:()=>Ct.O,using:()=>Et,zip:()=>Nt.yU});var r=n(8183),i=n(5308),o=n(8229),s=n(2013),u=n(2521),c=n(1891),a=n(572),l=n(6885),h=n(7474),f=n(739),p=n(403),d=n(5785),b=n(5389),v=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return d.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(b.R),y=n(4274),m=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(y.q))(v),g=m,w=function(t){function e(e,n){void 0===e&&(e=x),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return d.C6(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.q),x=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return d.C6(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(b.R),_=n(1908),S=n(8252),C=n(8243),E=n(5594),N=n(5020),T=n(5980),O=n(8958);function P(t){return!!t&&(t instanceof r.c||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var I=n(1515),A=n(7649),j=n(9776),M=n(2450),R=n(7103),V=n(5693),k=n(5350),$=n(7371),F=n(1931);function D(t,e,n){if(e){if(!(0,F.m)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return D(t,n).apply(void 0,r).pipe((0,V.T)(function(t){return(0,$.c)(t)?e.apply(void 0,t):e(t)}))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,s=this,u={context:s,subject:o,callbackFunc:t,scheduler:n};return new r.c(function(r){if(n){var i={args:e,subscriber:r,params:u};return n.schedule(q,0,i)}if(!o){o=new l.h;try{t.apply(s,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){(0,k.H)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)})}}function q(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new l.h;try{o.apply(s,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(u.schedule(B,0,{value:r,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(r))}function B(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function L(t,e,n){if(e){if(!(0,F.m)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return L(t,n).apply(void 0,r).pipe((0,V.T)(function(t){return(0,$.c)(t)?e.apply(void 0,t):e(t)}))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.c(function(r){var i=o.context,s=o.subject;if(n)return n.schedule(z,0,{params:o,subscriber:r,context:i});if(!s){s=o.subject=new l.h;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?s.error(n):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){(0,k.H)(s)?s.error(t):console.warn(t)}}return s.subscribe(r)})}}function z(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,s=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new l.h;try{o.apply(i,s.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(u.schedule(W,0,{err:r,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(U,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(W,0,{err:t,subject:c}))}}this.add(c.subscribe(r))}function U(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function W(t){var e=t.err;t.subject.error(e)}var H=n(9489),J=n(7403),Y=n(2791),G=n(46),Z=n(3163),K=n(4147);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if((0,$.c)(n))return Q(n,null);if((0,Z.G)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Q(r.map(function(t){return n[t]}),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Q(t=1===t.length&&(0,$.c)(t[0])?t[0]:t,null).pipe((0,V.T)(function(t){return i.apply(void 0,t)}))}return Q(t,null)}function Q(t,e){return new r.c(function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,s=0,u=function(u){var c=(0,K.H)(t[u]),a=!1;n.add(c.subscribe({next:function(t){a||(a=!0,s++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&a||(s===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},c=0;c<r;c++)u(c);else n.complete()})}var tt=n(9883),et=n(8764);function nt(t,e,n){return n?nt(t,e).pipe((0,V.T)(function(t){return(0,$.c)(t)?n.apply(void 0,t):n(t)})):new r.c(function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if((0,et.T)(e))return function(){return e(i,r)}})}function rt(t,e,n,i,o){var s,u;if(1==arguments.length){var c=t;u=c.initialState,e=c.condition,n=c.iterate,s=c.resultSelector||O.D,o=c.scheduler}else void 0===i||(0,F.m)(i)?(u=t,s=O.D,o=i):(u=t,s=i);return new r.c(function(t){var r=u;if(o)return o.schedule(it,0,{subscriber:t,iterate:n,condition:e,resultSelector:s,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){return void t.error(e)}if(!i){t.complete();break}}var c=void 0;try{c=s(r)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}})}function it(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ot(t,e,n){return void 0===e&&(e=G.w),void 0===n&&(n=G.w),(0,Y.v)(function(){return t()?e:n})}var st=n(6381);function ut(t,e){return void 0===t&&(t=0),void 0===e&&(e=f.b),(!(0,st.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=f.b),new r.c(function(n){return n.add(e.schedule(ct,t,{subscriber:n,counter:0,period:t})),n})}function ct(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var at=n(2151),lt=new r.c(T.l);function ht(){return lt}var ft=n(3550);function pt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return G.w;var n=t[0],i=t.slice(1);return 1===t.length&&(0,$.c)(n)?pt.apply(void 0,n):new r.c(function(t){var e=function(){return t.add(pt.apply(void 0,i).subscribe(t))};return(0,K.H)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function dt(t,e){return e?new r.c(function(n){var r=Object.keys(t),i=new S.y;return i.add(e.schedule(bt,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i}):new r.c(function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function bt(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var vt=n(163),yt=n(3585),mt=n(7377);function gt(t,e,n){return[(0,mt.p)(e,n)(new r.c((0,yt.i)(t))),(0,mt.p)((0,vt.A)(e,n))(new r.c((0,yt.i)(t)))]}var wt=n(506);function xt(t,e,n){return void 0===t&&(t=0),new r.c(function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(_t,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}})}function _t(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var St=n(7517),Ct=n(5662);function Et(t,e){return new r.c(function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?(0,K.H)(i):G.w).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var Nt=n(8272),Tt=n(659),Ot=n(2347)},8183:(t,e,n)=>{"use strict";n.d(e,{c:()=>l});var r=n(5350),i=n(8243),o=n(3992),s=n(5987),u=n(2013),c=n(5020),a=n(2347),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,u=function(t,e,n){if(t){if(t instanceof i.v)return t;if(t[o.D])return t[o.D]()}return t||e||n?new i.v(t,e,n):new i.v(s.I)}(t,e,n);if(r?u.add(r.call(u,this.source)):u.add(this.source||a.$.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),a.$.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.$.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,r.H)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=h(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[u.s]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0,c.m)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=h(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function h(t){if(t||(t=a.$.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},8229:(t,e,n)=>{"use strict";n.d(e,{$:()=>c,k:()=>f});var r=n(5785),i=n(8243),o=n(8252),s=n(8183),u=n(2521);function c(t,e,n,r){return function(i){return i.lift(new a(t,e,n,r))}}var a=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.B7,n.set(e,i);var o=new f(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new f(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.v),h=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.C6(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.v),f=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.C6(e,t),e.prototype._subscribe=function(t){var e=new o.y,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new p(n)),e.add(r.subscribe(t)),e},e}(s.c),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.C6(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.y)},8243:(t,e,n)=>{"use strict";n.d(e,{v:()=>l});var r=n(5785),i=n(8764),o=n(5987),s=n(8252),u=n(3992),c=n(2347),a=n(568),l=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.I;break;case 1:if(!n){s.destination=o.I;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,n,r,i)}return s}return r.C6(e,t),e.prototype[u.D]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.y),h=function(t){function e(e,n,r,s){var u,c=t.call(this)||this;c._parentSubscriber=e;var a=c;return(0,i.T)(n)?u=n:n&&(u=n.next,r=n.error,s=n.complete,n!==o.I&&(a=Object.create(n),(0,i.T)(a.unsubscribe)&&c.add(a.unsubscribe.bind(a)),a.unsubscribe=c.unsubscribe.bind(c))),c._context=a,c._next=u,c._error=r,c._complete=s,c}return r.C6(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.$.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.$.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,a.T)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,a.T)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.$.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.$.useDeprecatedSynchronousErrorHandling)throw t;(0,a.T)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.$.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,a.T)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},8252:(t,e,n)=>{"use strict";n.d(e,{y:()=>u});var r=n(7371),i=n(3163),o=n(8764),s=n(2450),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,u=n._parentOrParents,a=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof t)u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f)u[f].remove(this);if((0,o.T)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(t){e=t instanceof s.Z?c(t.errors):[t]}}if((0,r.c)(h)){f=-1;for(var p=h.length;++f<p;){var d=h[f];if((0,i.G)(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof s.Z?e=e.concat(c(t.errors)):e.push(t)}}}if(e)throw new s.Z(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce(function(t,e){return t.concat(e instanceof s.Z?e.errors:e)},[])}},8256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Maybe:()=>r});class r{constructor(t){this.value=t}static just(t){if(null==t)throw new TypeError("Value passed to just must exist!");return new r(t)}static nothing(){return new r}static maybe(t){return null==t?r.nothing():r.just(t)}static join(t){return t.withDefault(r.nothing())}static sequence(t){return t.reduce((t,e)=>t.bind(t=>e.map(e=>t.concat(e))),r.just([]))}static traverse(t,e){return r.sequence(e).map(e=>e.map(t))}static justMap(t,e){return e.reduce((e,n)=>{const r=t(n);return void 0!==r.value?e.concat(r.value):e},[])}static filterSomethings(t){return t.reduce((t,e)=>(e.value&&t.push(e.value),t),[])}static lift(t){return e=>e.map(t)}static lift2(t){return(e,n)=>r.sequence([e,n]).map(e=>t(e[0],e[1]))}static lift3(t){return(e,n,i)=>r.sequence([e,n,i]).map(e=>t(e[0],e[1],e[2]))}static toPromise(t){return t.hasSomething?Promise.resolve(t.value):Promise.reject()}map(t){return void 0!==this.value?r.maybe(t(this.value)):r.nothing()}asyncMap(t){return void 0!==this.value?t(this.value).then(t=>{if(null==t)throw"Promise Conversion from a Maybe.Nothing";return t}):Promise.reject()}alt(t){return void 0!==this.value?this:t}altMap(t){return void 0!==this.value?this:t()}ap(t){return t.bind(t=>this.map(t))}bind(t){return r.join(this.map(t))}withDefault(t){return void 0!==this.value?this.value:t}withDefaultFn(t){return void 0!==this.value?this.value:t()}get hasNothing(){return void 0===this.value}get hasSomething(){return!this.hasNothing}unsafeElse(t){this.hasNothing&&t()}}r.of=r.maybe},8272:(t,e,n)=>{"use strict";n.d(e,{ee:()=>l,yU:()=>a});var r=n(5785),i=n(5090),o=n(7371),s=n(8243),u=n(7214),c=n(4137);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),(0,i.c)(t,void 0).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.C6(e,t),e.prototype._next=function(t){var e=this.iterators;(0,o.c)(t)?e.push(new p(t)):"function"==typeof t[u.lJ]?e.push(new f(t[u.lJ]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,u=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),u.done)return void n.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.v),f=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),p=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[u.lJ]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),d=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.C6(e,t),e.prototype[u.lJ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,c.tS)(this.observable,new c.zA(this))},e}(c.gn)},8527:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5255),i=n(9212);e.empty={closed:!0,next:function(t){},error:function(t){if(r.config.useDeprecatedSynchronousErrorHandling)throw t;i.hostReportError(t)},complete:function(){}}},8575:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3488),s=n(8527),u=n(936),c=n(9132),a=n(5255),l=n(9212),h=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.empty;break;case 1:if(!n){o.destination=s.empty;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new f(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new f(o,n,r,i)}return o}return i(e,t),e.prototype[c.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(u.Subscription);e.Subscriber=h;var f=function(t){function e(e,n,r,i){var u,c=t.call(this)||this;c._parentSubscriber=e;var a=c;return o.isFunction(n)?u=n:n&&(u=n.next,r=n.error,i=n.complete,n!==s.empty&&(a=Object.create(n),o.isFunction(a.unsubscribe)&&c.add(a.unsubscribe.bind(a)),a.unsubscribe=c.unsubscribe.bind(c))),c._context=a,c._next=u,c._error=r,c._complete=i,c}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;a.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=a.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):l.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;l.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};a.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),a.config.useDeprecatedSynchronousErrorHandling)throw t;l.hostReportError(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!a.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return a.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(l.hostReportError(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(h);e.SafeSubscriber=f},8764:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}n.d(e,{T:()=>r})},8958:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{D:()=>r})},9132:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.$$rxSubscriber=e.rxSubscriber},9143:(t,e,n)=>{"use strict";n.d(e,{J:()=>o});var r=n(5785),i=n(8243);function o(){return function(t){return t.lift(new s)}}var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.C6(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(i.v)},9212:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hostReportError=function(t){setTimeout(function(){throw t},0)}},9377:(t,e,n)=>{"use strict";n.d(e,{ZZ:()=>u,qI:()=>l});var r=n(5785),i=n(5693),o=n(4147),s=n(4137);function u(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(u(function(n,r){return(0,o.H)(t(n,r)).pipe((0,i.T)(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.concurrent))},t}(),a=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.zA(this),n=this.destination;n.add(e);var r=(0,s.tS)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.gn),l=u},9471:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});var r=n(5785),i=n(7649),o=n(8243);function s(t){return void 0===t&&(t=a),function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.errorFactory))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.C6(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.v);function a(){return new i.G}},9489:(t,e,n)=>{"use strict";n.d(e,{ZS:()=>h,zV:()=>l});var r=n(5785),i=n(1931),o=n(7371),s=n(7372),u=n(7779),c=n(5090),a={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return(0,i.m)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,o.c)(t[0])&&(t=t[0]),(0,c.c)(t,r).lift(new h(n))}var h=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.resultSelector))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.C6(e,t),e.prototype._next=function(t){this.values.push(a),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add((0,u.F)(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===a?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.E)},9776:(t,e,n)=>{"use strict";n.d(e,{P:()=>r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},9883:(t,e,n)=>{"use strict";n.d(e,{R:()=>u});var r=n(8183),i=n(7371),o=n(8764),s=n(5693);function u(t,e,n,a){return(0,o.T)(n)&&(a=n,n=void 0),a?u(t,e,n).pipe((0,s.T)(function(t){return(0,i.c)(t)?a.apply(void 0,t):a(t)})):new r.c(function(r){c(t,e,function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}function c(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,n,i),o=function(){return s.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,n),o=function(){return u.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var a=t;t.addListener(e,n),o=function(){return a.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l<h;l++)c(t[l],e,n,r,i)}r.add(o)}},9919:(t,e,n)=>{"use strict";n.d(e,{F:()=>o});var r=n(5785),i=n(8243);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.C6(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.v)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(e,n){Object.keys(n).forEach(r=>{if(!Array.isArray(n[r])&&!Array.isArray(e[r])&&e.hasOwnProperty(r)&&"object"==typeof n[r])return t(e[r],n[r]);e[r]=n[r]})}n.r(r),n.d(r,{init:()=>rt});var e=n(9883),i=n(7377),o=n(5693),s=n(3860),u=n(8256);function c(t,e,n,r,i=null,o="success"){const s=window.isTestingTecton?window:t;null==s||s.postMessage({tectonic:!0,value:r.withDefault(""),status:o,type:e,protocol:n,guid:i},"*")}function a(t,e){c(window.parent,t,"MESSAGE",e)}function l(t,e){c(window,t,"BROADCAST",e),window.isTestingTecton||Array.prototype.slice.call(document.querySelectorAll("tecton-platform-outlet, tecton-outlet, tecton-tab-pane")).forEach(n=>{const r=n.shadowRoot&&n.shadowRoot.querySelector("iframe");if(null==r?void 0:r.contentWindow)switch(t){case"platformScrollChanged":case"platformSizeChanged":let{value:i}=Object.assign({},e);i=Object.assign(JSON.parse(i),{outletOffset:n.getBoundingClientRect().top}),c(r.contentWindow,t,"BROADCAST",new u.Maybe(JSON.stringify(i)));break;default:c(r.contentWindow,t,"BROADCAST",e)}})}class h{constructor(){this.messageNum=0,this.firehose$=(0,e.R)(window,"message").pipe((0,i.p)(t=>t.data.tectonic))}onMessage(t,e="MESSAGE",n=null){return function(t,e,n,r=null){return e.pipe((0,i.p)(e=>e.data.type===t&&(!r||e.data.guid===r)&&e.data.protocol===n),(0,o.T)(e=>{const n=e.data.value&&JSON.parse(e.data.value),r=e.source||(window.parent.location.origin===e.origin?window.parent:window.location.origin===e.origin?window:null);return"success"===e.data.status?{status:"success",value:n,sender:r,type:t,guid:e.data.guid}:{status:"error",message:n.message,sender:r,type:t,guid:e.data.guid}}))}(t,this.firehose$,e,n).pipe((0,o.T)(f))}sendRequest(t,e,n){const r=this.getNextMessageNumber();c(window.isTectonPlatform?window:window.parent,t,"REQUEST",e,r,"success");const i=[];return i.push(this.onMessage(t,"RESPONSE",r).pipe((0,s.s)(1)).toPromise()),n&&n.timeout&&i.push(new Promise((i,o)=>{setTimeout(()=>{o({status:"error",message:`The request ${e} has timed out`,sender:window,type:t,guid:r})},n.timeout)})),Promise.race(i)}sendResponse(t,e){return this.onMessage(t,"REQUEST").subscribe(t=>Promise.resolve().then(()=>{if("success"===t.status)return e(t.value,t.sender);throw Error("Don't send Error Message as Request!")}).then(e=>{if(null!==e)return p(t.sender,t.type,e,t.guid,"success")}).catch(e=>p(t.sender,t.type,{message:e.message},t.guid,"error")))}getNextMessageNumber(){const t=this.messageNum+1;return this.messageNum=t,t}}function f(t){if("success"===t.status)return t;throw t}function p(t,e,n,r=null,i){c(t,e,"RESPONSE",u.Maybe.maybe(n).map(JSON.stringify),r,i)}class d extends h{constructor(t,e){super(),this.domains=new Set,this.configSubscription=t.subscribe(this.getConfigDomains.bind(this)),this.firehose$=this.firehose$.pipe((0,i.p)(t=>e||this.domains.has(t.origin)))}teardown(){this.configSubscription.unsubscribe()}getConfigDomains(t){let e=Array(window.location.origin.toString());const n=Object.keys(t.features).map(n=>{const r=t.features[n].additionalDomains;return r&&r.length>0&&(e=e.concat(r)),Object.keys(t.features[n].modules).map(e=>{const r=t.features[n].modules[e].url;try{return new URL(r,window.location.href).origin}catch(t){return""}})}),r=e.concat(...n);this.domains=function(t){return new Set(t.filter(t=>""!==t))}(r)}}var b=n(1891);function v(t,e={}){return Object.keys(e).filter(e=>{const n=e.lastIndexOf(".");return e.slice(0,n).startsWith(t)}).reduce((t,n)=>{const r=n.lastIndexOf(".");return t[n.substring(r+1)]=e[n],t},Object.create({}))}function y(t,e,n=[]){for(const[r,i]of Object.entries(e)){const e=[...n,r];if(r===t)return e.reverse();if("object"==typeof i&&Object.keys(i).length>0){const n=y(t,i,e);if(n.length>0)return n}}return[]}function m(t,e){if(!t||"string"!=typeof t)return[];const[n,r]=t.split("::");if(!n||!r)return[];const i=e[n];return i?y(r,i).map(t=>`${n}::${t}`):[]}function g(t,e,n,r,i,o,s,c,a,l,h,f={}){return function(t,e,n){return u.Maybe.sequence([t,e]).map(()=>{const t=n.withDefault("");return""!==t?Promise.resolve(u.Maybe.just(t)):Promise.resolve(u.Maybe.nothing())}).withDefaultFn(()=>Promise.resolve(u.Maybe.nothing()))}(r,i,s).then(async e=>{const n=await function(t,e){return Promise.all(e.map(async e=>{const n=await t(e.featureName),r=n.modules[e.moduleName],i=n.additionalDomains,o=n.allowDirectives;return Object.assign(Object.assign(Object.assign({},e),r),{additionalDomains:i,allowDirectives:o})}))}(t.dynamicConfigFetch,o),r=e.map(t=>m(t,f)).bind(t=>w(n,t,c)),i=u.Maybe.maybe(n[0]);return e.map(()=>r).altMap(()=>u.Maybe.just(i)).bind(t=>t)}).then(async t=>t.map(t=>{var r,i,o,s;const u=`${n}.${t.featureName}.${t.moduleName}`,c=(null===(i=null===(r=a.features[l])||void 0===r?void 0:r.modules[h])||void 0===i?void 0:i.requiredUserCapabilities)||[],f=(null===(s=null===(o=a.features[t.featureName])||void 0===o?void 0:o.modules[t.moduleName])||void 0===s?void 0:s.requiredUserCapabilities)||[],p=[...new Set([...c,...f])];return{moduleId:u,initialParams:v(u,e.getValue().currentParams),featureName:t.featureName,url:t.url,minHeight:t.meta.type.minHeight||"",tabLabelOverride:t.tabLabelOverride,formPostAuth:!!t.formPostAuth,loadingOptions:t.loadingOptions,additionalDomains:t.additionalDomains,allowDirectives:t.allowDirectives,requiredUserCapabilities:p,rightsEnabled:t.rightsEnabled}}))}function w(t,e,n){return u.Maybe.maybe(t.find(t=>{const r=n.map(e=>{var n;return null===(n=t.additionalContextRequirements)||void 0===n?void 0:n.includes(e)}).withDefault(!0);return t.meta.type.context===e[0]&&r})).altMap(()=>0===e.length&&u.Maybe.nothing()||w(t,e.slice(1),n))}async function x(t,e){const n=t.length%3==1?"outlet":"module",r=t[0],i=t.length<5;let o,s,u,c,a;if("tectonOverpanel"===r)o=_({path:t.slice(2),outletModuloVal:2}),s=(await e(t[1])).configuredOverpanels[t[2]];else{const r="outlet"===n?t.slice(-3,-2)[0]:t.slice(-2,-1)[0],i="outlet"===n?t.slice(-2,-1)[0]:t.slice(-1)[0],u="outlet"===n?-1:3;o=_({path:t.slice(u),outletModuloVal:0}),s=await e(r,i)}return"outlet"===n?(i?(u=s.featureName,c=s.moduleName):(u=t[t.length-3],c=t[t.length-2]),a=t[t.length-1],o=o.slice(0,-2),{pathType:n,featureName:u,moduleName:c,outletName:a,configPath:o,pathOrigin:r,treeFromRoot:s}):(i?(u=s.featureName,c=s.moduleName):(u=t[t.length-2],c=t[t.length-1]),{pathType:n,featureName:u,moduleName:c,configPath:o,pathOrigin:r,treeFromRoot:s})}function _({path:t,outletModuloVal:e}){const n=e+2;return t.reduce((t,r,i)=>{if(i%3===e)return t.concat(["configuredOutlets",r]);if(i%3===n&&2!==i){const e=t[t.length-1];return t[t.length-1]=`${e}-${r}`,t}return t.concat(r)},[])}function S(t,e){return t.reduce((t,e)=>{if(Array.isArray(t)){const[n,r]=e.split("-");return t[0].hasOwnProperty("tabLabel")||t[0].hasOwnProperty("menuItemLabel")?function(t,e){let n=-1;const r=t.find(t=>(n=t.modules.findIndex(e),-1!==n));if(r)return r.modules[n]}(t,C(n,r)):t.find(C(n,r))}return t[e]},e)}function C(t,e){return n=>n.featureName===t&&n.moduleName===e}function E(t,e,n){const r=t.getValue();return u.Maybe.maybe(r.features[e]).map(t=>{const r=Object.keys(t.modules).find(e=>t.modules[e].primary),i=t.modules[n]||t.modules[r],o=`${e}.${i.meta.moduleName}`;return{navigable:!!i.navigable,legacy:!!t.legacy,key:t.legacy?t.legacyRouteName:o}})}function N(t,e,n,r,i){!function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("actionRequired");const i=t.onMessage("actionRequired").subscribe(t=>{e.actionRequired(t.value.uuid,t.value.title,t.value.message)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.authorizeTransactionWithMfa){n.add("authorizeTransactionWithMfa");const i=t.sendResponse("authorizeTransactionWithMfa",async t=>e.authorizeTransactionWithMfa(t));r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.clearCacheByPrefix){n.add("clearCache"),n.add("cacheCleared");const i=t.sendResponse("clearCache",function(t){return t.routePrefixes.forEach(function(t){e.clearCacheByPrefix(t),l("cacheCleared",u.Maybe.just(JSON.stringify({cleared:t})))}),Promise.resolve()});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.clearParams){n.add("clearParams");const i=t.onMessage("clearParams").subscribe(t=>{e.clearParams(t.value.moduleId)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.closeOverpanel){n.add("closeOverpanel");const i=t.onMessage("closeOverpanel").pipe((0,o.T)(t=>t.value)).subscribe(e.closeOverpanel);r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.keepAlive){n.add("keepAlive");const i=t.onMessage("keepAlive").subscribe(e.keepAlive);r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.showLoadingModal){n.add("showLoadingModal");const i=t.onMessage("showLoadingModal").subscribe(t=>{e.showLoadingModal(t.value.title)});r.push(()=>i.unsubscribe())}if(e.clearLoadingModal){n.add("clearLoadingModal");const i=t.onMessage("clearLoadingModal").subscribe(()=>{e.clearLoadingModal()});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r,i){if(n.logToServer){r.add("logToServer");const e=t.onMessage("logToServer").subscribe(async t=>{const e=await x(t.value.moduleId.split("."),n.dynamicConfigFetch).then(t=>t.featureName);n.logToServer(e,t.value.message,t.value.level||"info")});i.push(()=>e.unsubscribe())}}(t,0,n,r,i),function(t,e,n,r){if(e.manageChanges){n.add("manageChanges");const i=t.sendResponse("manageChanges",t=>e.manageChanges(t.changeData));r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r,i){if(n.navigateTo){r.add("navigateTo");const o=t.onMessage("navigateTo").subscribe(async t=>{const{moduleName:r,urlParams:i,queryParams:o,moduleId:s}=t.value;let{featureName:u}=t.value;!u&&s&&(u=await x(s.split("."),n.dynamicConfigFetch).then(t=>t.featureName));const c=E(e,u,r);c.map(t=>{if(t.navigable)if(t.legacy)n.navigateTo(!0,t.key,i,o);else{const r=e.getValue().features[u],i=`tectonRoute.${t.key}`;o&&n.updateParams&&n.updateParams(i,o,r.modules[t.key.split(".")[1]].meta.params),n.navigateTo(!1,t.key)}}),c.hasNothing&&n.navigateTo(!0,u,i,o)});i.push(()=>o.unsubscribe())}}(t,e,n,r,i),function(t,e,n,r){if(e.openURL){n.add("openURL");const i=t.onMessage("openURL").subscribe(t=>{const{url:n,options:r}=t.value;e.openURL(n,r)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e){const n=t.onMessage("printWindow").subscribe(()=>{var t;!0===(null===(t=window.Tecton)||void 0===t?void 0:t.inMobileApp)?console.info("printWindow does not support e-banking mobile app environment."):(document.body.focus(),window.print())});e.push(()=>n.unsubscribe())}(t,i),function(t,e,n,r){if(e.refetchAccountsNotification&&e.clearCacheByPrefix&&e.clearTransferCache){n.add("refetchAccountsNotification");const i=t.onMessage("refetchAccountsNotification").subscribe(()=>{e.clearCacheByPrefix("mobilews/account"),e.clearTransferCache(),e.refetchAccountsNotification()});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("removeActionRequired");const i=t.onMessage("removeActionRequired").subscribe(t=>{e.removeActionRequired(t.value.uuid)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){n.add("scrollTo");const i=t.onMessage("scrollTo").subscribe(t=>{var n,r;const i=(null===(r=null===(n=null==e?void 0:e.getSurroundingOffsets)||void 0===n?void 0:n.call(e))||void 0===r?void 0:r.top)||0,o=t.value;o.behavior=o.behavior||"smooth",!0===o.initialize?l("platformScrollChanged",u.Maybe.just(JSON.stringify({scrollY:0,innerHeight:window.innerHeight,innerWidth:window.innerWidth,outletOffset:i,top:i}))):window.scrollTo(o)});r.push(()=>i.unsubscribe())}(t,n,r,i),function(t,e,n){e.add("scrollToTop");const r=t.onMessage("scrollToTop").subscribe(()=>{window.scrollTo(0,0)});n.push(()=>r.unsubscribe())}(t,r,i),function(t,e,n,r){if(e.sendAlert||e.showAlert){n.add("sendAlert"),n.add("sendAlertWithResponse");const i=t.sendResponse("sendAlert",t=>(e.sendAlert||e.showAlert)(t).then(t=>({actionName:t}))),o=t.onMessage("sendAlert").subscribe(t=>{(e.sendAlert||e.showAlert)(t.value)});r.push(()=>{i.unsubscribe(),o.unsubscribe()})}}(t,n,r,i),function(t,e,n,r,i){if(n.updateParams){r.add("setParams");const e=t.onMessage("setParams").subscribe(async t=>{const{moduleId:e,params:r}=t.value,i=await x(e.split("."),n.dynamicConfigFetch),o=await n.dynamicConfigFetch(i.featureName).then(t=>t.modules[i.moduleName].meta.params);n.updateParams(e,r,o)});i.push(()=>e.unsubscribe())}}(t,0,n,r,i),function(t,e,n,r,i){if(e.setOverpanelTitle||e.setPageTitle){e.setOverpanelTitle&&r.add("setOverpanelTitle"),e.setPageTitle&&r.add("setPageTitle");const n=t.onMessage("setTitle").subscribe(async t=>{"tectonOverpanel"===await x(t.value.moduleId.split("."),e.dynamicConfigFetch).then(t=>t.pathOrigin)&&e.setOverpanelTitle?e.setOverpanelTitle(t.value.title):e.setPageTitle&&e.setPageTitle(t.value.title)});i.push(()=>n.unsubscribe())}}(t,n,0,r,i),function(t,e,n,r){const i=e.getCurrentLanguage(),o=new b.t(i);e.languageChanged&&(n.add("languageChanged"),e.languageChanged(t=>{o.next(t)}));const s=o.subscribe((t="en-US")=>{l("streamLanguage",u.Maybe.just(JSON.stringify({langKey:t})))}),c=t.sendResponse("getCurrentLanguage",()=>Promise.resolve({langKey:o.getValue()}));r.push(()=>{[s,c].forEach(t=>t.unsubscribe())})}(t,n,r,i),function(t,e,n,r,i){if(n.showActionSheet){r.add("showActionSheet");const e=t.sendResponse("showActionSheet",t=>n.showActionSheet(t).then(t=>t));i.push(()=>e.unsubscribe())}}(t,0,n,r,i),function(t,e,n,r){if(e.showModal){n.add("sendModal");const i=t.sendResponse("sendModal",t=>e.showModal(t).then(t=>({actionName:t})));r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r,i){if(n.showOverpanel){r.add("showOverpanel");const o=t.sendResponse("showOverpanel",async t=>{var r,i,o,s,u,c,a,l,h;try{let f,p,d,b=[];if(n.getPlatformOverpanels&&(b=await n.getPlatformOverpanels()),t.useRouteConfig){const[e,r]=t.overpanelPath.split(".");p=await n.dynamicConfigFetch(e,r),d=t.overpanelPath,f=await n.dynamicConfigFetch(p.featureName)}else if(b.includes(t.overpanelPath))p={moduleName:t.overpanelPath},d=t.overpanelPath,f={legacyOverpanelName:t.overpanelPath,legacy:!0};else{const r=(h=e.value,Object.entries(h.features).reduce((t,[e,n])=>{const r=n.configuredOverpanels;return r&&Object.entries(r).filter(([t,e])=>!0===e.public).forEach(([n,r])=>{r.featureName||(r.featureName=e),t[n]=r}),t},{}))[t.overpanelPath];let i;r?(p=r,d=`${r.featureName}.${t.overpanelPath}`,f=await n.dynamicConfigFetch(r.featureName)):(i=await x(t.moduleId.split("."),n.dynamicConfigFetch),p=await n.dynamicConfigFetch(i.featureName).then(e=>{var n;const r=null===(n=e.configuredOverpanels)||void 0===n?void 0:n[t.overpanelPath];if(!r)throw new Error(`Overpanel ${t.overpanelPath} not found.`);return r}),d=`${i.featureName}.${t.overpanelPath}`,f=await n.dynamicConfigFetch(p.featureName))}if(f.legacy&&!f.legacyOverpanelName)throw new Error("Tried to call a legacy overpanel, but config is missing a legacyOverpanelName");if(t.params&&n.updateParams&&!f.legacy){const e=null===(o=null===(i=null===(r=f.modules)||void 0===r?void 0:r[p.moduleName])||void 0===i?void 0:i.meta)||void 0===o?void 0:o.params;e&&(function(t,e){if(null==t||"{}"===JSON.stringify(t))return!0;if(void 0===e)throw new Error(`params for action are not configured, yet ${JSON.stringify(t)} was passed to action`);const n=[];if(Object.keys(t).forEach(t=>{e[t]||n.push(t)}),n.length>0)throw new Error(`The following parameter(s) passed to action is/are not configured for the action: [${n.join(", ")}]`)}(t.params,e),n.updateParams(`tectonOverpanel.${d}`,t.params,e))}const v=f.legacy?t.params?JSON.stringify(t.params):"":d,y=f.legacy?f.legacyOverpanelName:void 0,m="options"in p&&p.options||{},g=(null===(s=t.options)||void 0===s?void 0:s.size)||m.size,w=(null===(u=t.options)||void 0===u?void 0:u.height)||m.height,_=(null===(c=t.options)||void 0===c?void 0:c.fullWidth)||m.fullWidth,S=(null===(a=t.options)||void 0===a?void 0:a.isBlocking)||m.isBlocking,[,,C]=t.moduleId.split("."),E=(null===(l=t.options)||void 0===l?void 0:l.testId)||m.testId||C;return n.showOverpanel(v,!!_,y,g,w,E,!!S)}catch(t){return Promise.reject(t)}});i.push(()=>o.unsubscribe())}}(t,e,n,r,i),function(t,e,n,r){if(e.verifyMFA){n.add("verifyMFA");const i=t.sendResponse("verifyMFA",async t=>e.verifyMFA(t));r.push(()=>i.unsubscribe())}}(t,n,r,i)}const T={scrollY:0,innerHeight:0,innerWidth:0};function O(t,e){var n,r,i,o,s,u,c,a;if(!e)return console.warn("No platform root found. Returning zeroed dimensions."),T;const l=e instanceof HTMLElement;return l&&!e.isConnected?(console.warn("Platform root is no longer connected to the DOM. Returning zeroed dimensions."),T):Object.assign({scrollY:null!==(n=l?e.scrollTop:e.scrollY)&&void 0!==n?n:0,innerHeight:null!==(r=l?e.offsetHeight:e.innerHeight)&&void 0!==r?r:0,innerWidth:null!==(i=l?e.offsetWidth:e.innerWidth)&&void 0!==i?i:0,orientationType:null!==(s=null===(o=null===screen||void 0===screen?void 0:screen.orientation)||void 0===o?void 0:o.type)&&void 0!==s?s:"landscape-primary",orientationAngle:null!==(c=null===(u=null===screen||void 0===screen?void 0:screen.orientation)||void 0===u?void 0:u.angle)&&void 0!==c?c:0},null===(a=null==t?void 0:t.getSurroundingOffsets)||void 0===a?void 0:a.call(t))}function P(t,e){const n=function(t){return!!t.dataType}(e)?function(t,e,n,r={}){const[i,o="default"]=e.split("::");if(!i)throw new Error(`Invalid dataType format: '${e}'. Expected 'category::type'.`);const s=t.getRequestURLMap?t.getRequestURLMap():{};if(!s[i])throw new Error(`No URL map found for category '${i}'.`);const u=s[i][o]||s[i].default;if(!u)throw new Error(`No URL resolver found for category '${i}' and type '${o}'.`);return("string"==typeof u?Promise.resolve(u):u).then(t=>`${t}${n.map(t=>`/${t}`).withDefault("")}${function(t){const e=Object.keys(t).map(e=>`${e}=${t[e]}`).join("&");return e&&"?".concat(e)||""}(r)}`)}(t,e.dataType,u.Maybe.maybe(e.dataId),e.params):Promise.resolve(e.route);return n.then(n=>e.body&&e.isFormData?t.sendFormDataRequest(n,e.method,function(t){if("object"!=typeof t||null===t)throw new Error("Invalid parameter. Expected JSON.");return Object.keys(t).reduce((e,n)=>(e.append(n,t[n]),e),new FormData)}(JSON.parse(e.body))):(t.sendRequest||t.requestPlatformData)(n,e.method,e.body))}const I="q2.tectonCache";function A(t,e){return`${t}.${e}`}var j;!function(t){t.PlatformCssPropertiesChanged="platformCssPropertiesChanged",t.CallMethod="callMethod"}(j||(j={}));const M=j;var R;!function(t){t.streamCssProperties="streamCssProperties",t.streamPlatformDimensions="platformSizeChanged"}(R||(R={}));const V=R;var k=n(1604);function $(t,e,n,r,i,o){!function(t,e,n){e.refetchRequired&&(n.add("cacheCleared"),e.refetchRequired(t=>{l("cacheCleared",u.Maybe.just(JSON.stringify({cleared:t})))}))}(0,e,i),function(t,e,n,r){if(e.getCapabilities){n.add("canUser");const i=t.sendResponse("canUser",({capabilities:t})=>Promise.resolve({allowed:Object.values(e.getCapabilities(...t)).every(Boolean)}));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r,i){if(n.getFeatureConfig){r.add("getFeatureConfig");const e=t.sendResponse("getFeatureConfig",async({moduleId:t})=>{const e=await x(t.split("."),n.dynamicConfigFetch),r=await n.dynamicConfigFetch(e.featureName).then(t=>t.configuredSystemVariables||[]);return r.length?n.getFeatureConfig(r).then(t=>({config:t})):Promise.resolve({config:{}})});i.push(()=>e.unsubscribe())}}(t,0,e,i,o),function(t,e,n,r){if(e.getPendoInfo){n.add("getPendoInfo");const i=t.sendResponse("getPendoInfo",()=>Promise.resolve(e.getPendoInfo()));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){if(e.getPlatformInfo){n.add("platformInfo");const i=t.sendResponse("platformInfo",t=>e.getPlatformInfo(t));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){n.add("getPlatformDimensions");const i=t.sendResponse("getPlatformDimensions",t=>{var n,r,i,o,s;let c;const a=null==t?void 0:t.selector;if(a){const t=document.querySelector(a);t?c=t.getBoundingClientRect():(console.warn(`No platform element found matching the selector "${a}". Returning zeroed dimensions.`),c={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,orientationType:null!==(r=null===(n=null===screen||void 0===screen?void 0:screen.orientation)||void 0===n?void 0:n.type)&&void 0!==r?r:"landscape-primary",orientationAngle:null!==(o=null===(i=null===screen||void 0===screen?void 0:screen.orientation)||void 0===i?void 0:i.angle)&&void 0!==o?o:0})}else{const t=null===(s=e.getPlatformRootSelector)||void 0===s?void 0:s.call(e),n=t?document.querySelector(t):window;c=O(e,n)}return l("platformScrollChanged",u.Maybe.just(JSON.stringify(c))),Promise.resolve(c)});r.push(()=>i.unsubscribe())}(t,e,i,o),function(t,e,n,r){if(e.getVersionInfo){n.add("getPlatformInfo");const i=t.sendResponse("getPlatformInfo",()=>{const t=e.getVersionInfo();return Promise.resolve(Object.assign(Object.assign({},t),{TECTON_PLATFORM_VERSION:"1.61.1"}))});r.push(()=>{i.unsubscribe()})}}(t,e,i,o),function(t,e,n,r){if(e.getAuthToken){n.add("authToken");const i=t.sendResponse("authToken",()=>e.getAuthToken());r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){if(e.getGlobalScripts){n.add("getGlobalScripts");const i=t.sendResponse("getGlobalScripts",()=>e.getGlobalScripts());r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r,i){if(n.isUUXPath&&n.navigateTo){r.add("isNavigable");const o=t.sendResponse("isNavigable",({featureName:t,moduleName:r})=>{const i=E(e,t,r).map(t=>t.navigable).withDefaultFn(()=>n.isUUXPath(t));return Promise.resolve({navigable:i})});i.push(()=>o.unsubscribe())}}(t,r,e,i,o),function(t,e,n,r){var i;function o(){l("platformScrollChanged",u.Maybe.just(JSON.stringify(O(e,p))))}function s(){l("platformSizeChanged",u.Maybe.just(JSON.stringify(O(e,p))))}let c;n.add("platformScrollChanged");const a=()=>{if(c=t.sendResponse("getPlatformScroll",()=>Promise.resolve(O(e,p))),null==p||p.addEventListener("scroll",o),p instanceof HTMLElement){const t=new ResizeObserver(s);t.observe(p),r.push(()=>t.disconnect())}else null==p||p.addEventListener("resize",s)},h=null===(i=e.getPlatformRootSelector)||void 0===i?void 0:i.call(e);let f,p=h?document.querySelector(h):window;p?a():h&&(f=new MutationObserver(()=>{p=document.querySelector(h),p&&(a(),f.disconnect())}),f.observe(document.body,{childList:!0,subtree:!0})),r.push(()=>{null==f||f.disconnect(),null==c||c.unsubscribe(),null==p||p.removeEventListener("scroll",o),null==p||p.removeEventListener("resize",s)})}(t,e,i,o),function(t,e,n,r){if(e.promptForMFA){n.add("promptForMFA");const i=t.sendResponse("promptForMFA",async t=>{const n=await x(t.moduleId.split("."),e.dynamicConfigFetch).then(t=>t.featureName);return e.promptForMFA(n,t)});r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n){e.refetchRequired&&(n.add("refetchRequired"),e.refetchRequired(t=>{l(`refetchRequired::${t}`,u.Maybe.nothing())}))}(0,e,i),function(t,e,n,r,i){if("function"!=typeof n.requestExtensionData)return;r.add("requestExtensionData");const o=t.sendResponse("requestExtensionData",async t=>{const{moduleId:e,route:r,body:i}=t;let{featureName:o}=t;return!o&&e&&(o=await x(e.split("."),n.dynamicConfigFetch).then(t=>t.featureName)),n.requestExtensionData(o,{route:r,body:i||{}})});i.push(()=>o.unsubscribe())}(t,0,e,i,o),function(t,e,n,r){if(e.sendRequest||e.requestPlatformData){n.add("requestPlatformData"),n.add("requestPlatformData-v2"),e.sendFormDataRequest&&n.add("requestPlatformData-formdata");const i=t.sendResponse("requestPlatformData",t=>P(e,t).then(function(e){return 200<=e.status&&e.status<300?{data:"GET"===t.method?e.response.data:e.response,status:"success"}:{data:{message:e.statusText},status:"error"}})),o=t.sendResponse("requestPlatformData-v2",t=>P(e,t));r.push(()=>{i.unsubscribe(),o.unsubscribe()})}}(t,e,i,o),function(t,e){const n=t.subscribe(t=>{var e;(e=Object.assign(Object.assign({},t.changedParams),t.currentParams),Object.keys(e).reduce((t,e)=>{const n=e.split(".").slice(0,-1).join(".");return-1===t.indexOf(n)&&t.push(n),t},[])).forEach(e=>{const n=v(e,t.changedParams),r=v(e,t.currentParams);l("streamParams::"+e,u.Maybe.just(JSON.stringify({changedParams:n,currentParams:r})))})});e.push(()=>n.unsubscribe())}(n,o),function(t,e,n,r){if(e.takePicture){n.add("takePicture");const i=t.sendResponse("takePicture",({overlayText:t,helpText:n})=>e.takePicture({overlayText:t,helpText:n}).then(t=>({picture:t})));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){if(!e.registerLogoffHook||!function(){const t=!!sessionStorage.getItem,e=!!sessionStorage.setItem,n=!!sessionStorage.removeItem;return t&&e&&n}())return;n.add("tectonCache"),e.registerLogoffHook(()=>{sessionStorage.removeItem(I)});const i=t.sendResponse("getCache",t=>{const e=A(t.moduleId,t.key),n=JSON.parse(sessionStorage.getItem(I)||"{}")[e]||{};return Promise.resolve(n)});r.push(()=>i.unsubscribe());const o=t.sendResponse("setCache",t=>{const e=A(t.moduleId,t.key);let n={};return"string"==typeof sessionStorage.getItem(I)&&(n=JSON.parse(sessionStorage.getItem(I))),n[e]=t.data,sessionStorage.setItem(I,JSON.stringify(n)),Promise.resolve()});r.push(()=>o.unsubscribe())}(t,e,i,o),function(t,e,n){if(!t.cssPropertiesChanged)return;e.add(M.PlatformCssPropertiesChanged);const r=new b.t([]),i=r.pipe((0,k.skip)(1)).subscribe(t=>{l(V.streamCssProperties,u.Maybe.just(JSON.stringify(t)))});t.cssPropertiesChanged(t=>{r.next(t)}),n.push(()=>{i.unsubscribe()})}(e,i,o),function(t,e){t.platformEventNotification&&(e.add("platformEventNotification"),t.platformEventNotification(t=>{l(`platformEventNotification::${t.name}`,u.Maybe.maybe(t.data).map(JSON.stringify))}))}(e,i)}var F=n(7758),D=n(2151),q=n(9919),B=n(4517);const L="[iFrameSizer]",z=[{name:"name",reflectAs:String},{name:"minHeight",reflectAs:String},{name:"overpanel",reflectAs:Boolean},{name:"baseClass",reflectAs:String}],U=(0,F.createSetupElement)(function(t,{messageBus:e,props:n,moduleId:r,tectonOutletAdaptor:s,resize:u}){return(0,F.generateCustomElementWrapper)(t,(t,n)=>{const c=new b.t(document.createElement("div")),a=new b.t(!1),l=n.pipe((0,o.T)(t=>t.name),(0,i.p)(t=>!!t),(0,o.T)(t=>`${r?`${r}.`:""}${t}`),(0,q.F)(),(0,B.$)()).subscribe(r=>{const i=s(e,r,t,n,u),o=i.DOM$.subscribe(c),l=i.settled$.subscribe(a),f=i.teardown$.subscribe(h),p=i.effect$.subscribe(e=>{t.__attached?e():t.__onAttached.push(e)});i.teardown$.next(()=>{o.unsubscribe(),l.unsubscribe(),f.unsubscribe(),p.unsubscribe()})}),h=new b.t(()=>{l.unsubscribe(),c.complete(),c.next(null)});return{DOM$:c,settled$:a,teardown$:h}},{useShadowDOM:!0,props:z.concat(n),css:`\n .root {\n height: 100%;\n width: 100%;\n }\n .outlet-wrapper {\n line-height: 0;\n font-size: 0;\n }\n .outlet-wrapper.scrollable {\n height: 100%;\n }\n .loading-wrapper {\n height: 44px;\n width: 100%;\n align-items: center;\n justify-content: center;\n }\n .loading-wrapper:not([hidden]) {\n display: flex;\n }\n .loading-wrapper,\n .outlet-wrapper.scrollable iframe {\n height: 100%;\n }\n .outlet-wrapper iframe {\n width: 100%;\n height: auto;\n border: none;\n }\n .outlet-wrapper iframe:not([hidden]) {\n display: inline-block;\n }\n ${"tecton-platform-outlet"===t?'\n :host {\n position: relative;\n display: block;\n height: 100%;\n }\n .loading-wrapper:not([hidden]) {\n align-items: flex-start;\n overflow: hidden;\n }\n .loading-wrapper.spinner-loader:not([hidden]) {\n align-items: center;\n }\n .loading-wrapper .q2-row {\n flex: 1;\n text-align: center;\n }\n q2-loading[type="spinner"] {\n display: inline-block;\n margin-top: 20px;\n }\n ':""}\n `})});function W(t){const e=[];if(t&&t.loaders){const n=t.loaders.reduce((t,e)=>e.row>t?e.row:t,0);for(let t=0;t<n;t++)e.push([]);for(const n of t.loaders){const t=document.createElement("q2-loading");t.setAttribute("shape",n.shape),t.setAttribute("type",n.type),t.className="q2-col",n.classList&&t.classList.add(...n.classList),n.style&&t.setAttribute("style",n.style),n.modifiers&&t.setAttribute("modifiers",n.modifiers),n.counts&&t.setAttribute("counts",n.counts),n.ariaLabel&&t.setAttribute("ariaLabel",n.ariaLabel),e[n.row-1].push(t)}}else{const t=document.createElement("q2-loading");e.push([]),t.classList.add("mrg(a)"),e[0].push(t)}return e}function H(t){const e=t.getAttribute("base-class");return e?null==e?void 0:e.replace(/\s/g,"%7C"):""}var J=n(9489),Y=n(9143);function G(t,e){const n=new URL(t,window.location.toString()),r=Object.keys(e).map(t=>`${t}=${e[t]}`).join("&"),i=n.search?`${n.search}&${r}`:`?${r}`;return n.search=i,n.href}const Z=[{name:"additionalContext",reflectAs:String},{name:"configTree"},{name:"context",reflectAs:String},{name:"contextId",reflectAs:String},{name:"contextValue",reflectAs:String},{name:"resolvedType",reflectAs:String},{name:"routeName"}];function K(t,n,r,s){return function(c,l,h,f){const p=document.createElement("div"),d=new b.t(p),y=new b.t(!1),g=new b.t(()=>{}),w=function(){return{loaderWrapper:h.shadowRoot.querySelector("div[slot='loading-wrapper']"),iframeEl:h.shadowRoot.querySelector("iframe"),minHeight:f.getValue().minHeight}};let x;const _=function(){return x},S=function(t,e,n){return t.onMessage("setFetching").pipe((0,i.p)(t=>t.value.moduleId===e())).subscribe(t=>{const{loaderWrapper:e,iframeEl:r,minHeight:i="0px"}=n();if(e&&r){const{fetching:n}=t.value;e.hidden=!n,r.hidden=n,e.style.minHeight=n?i:"0px"}})}(c,_,w),C=function(t,e,n){return t.sendResponse("requestOutletInfo",({moduleId:t})=>{if(t!==e())return null;const{iframeEl:r}=n(),i=null==r?void 0:r.getBoundingClientRect();return i&&Object.values(i.toJSON()).find(t=>0!==t)?Promise.resolve(i):null})}(c,_,w),E=new b.t(()=>{S.unsubscribe(),C.unsubscribe(),d.complete(),d.next(null)}),N=f.pipe((0,o.T)(t=>t.configTree),(0,i.p)(t=>!!t),(0,q.F)()),T=new b.t(!1),O=f.pipe((0,o.T)(t=>t.overpanel),(0,i.p)(t=>"boolean"==typeof t),(0,q.F)()).subscribe(T),P=f.pipe((0,o.T)(t=>t.routeName),(0,i.p)(t=>!!t),(0,q.F)()),I=P.pipe((0,o.T)(t=>`${l}.${t}`),(0,Y.J)()).subscribe(([t])=>{a("clearParams",u.Maybe.just(JSON.stringify({moduleId:t})))}),A=(0,J.zV)(N,T,P).subscribe(([p,b,S])=>{const C=t.getValue(),N=C.features[p.featureName];if(!N)throw new Error(`Could not find the config for this feature=${p.featureName}`);const T=N.modules[p.moduleName],P=f.getValue();if(function(t,e,n,r){var i,o,s,u;const c=e.isMFA,a=!1!==t.rightsEnabled,l="Application::Unauthenticated"===(null===(o=null===(i=t.meta)||void 0===i?void 0:i.type)||void 0===o?void 0:o.context);return!(!c&&!l)||!!a&&function(t,e){const{outletContext:n,moduleContext:r,resolvedContext:i,additionalContext:o,additionalContextRequirements:s}=t;if((null==s?void 0:s.length)&&o&&!s.includes(o.toString()))return!1;if("None"===r||"None"===n)return!0;const u=m(r,e);return 0!==u.length&&u.includes(i||n)}({additionalContext:n.additionalContext,additionalContextRequirements:t.additionalContextRequirements,contextValue:n.contextValue,moduleContext:(null===(u=null===(s=t.meta)||void 0===s?void 0:s.type)||void 0===u?void 0:u.context)||"None",outletContext:n.context||"None",resolvedContext:n.resolvedType},r)}(T,N,P,s)){x=`${l}.${S}`;const t=P.minHeight,s=C.features[p.featureName],f=!!s.modules[p.moduleName].formPostAuth,m=s.modules[p.moduleName].url,N=s.additionalDomains,j=s.allowDirectives,M=function(t,e,n,r,i,o,s){let u=G(o&&s.buildIframeURL?s.buildIframeURL(t):t,Object.assign(Object.assign({"tct-id":e,"tct-ctxid":n.contextValue||"","tct-ctxname":n.contextId||""},v(e,i.currentParams)),{"tct-maxHeight":r.style.maxHeight,"tct-maxWidth":r.style.maxWidth,"tct-baseClass":H(r),"tct-outlet-name":r.name||""}));return function(t){const e=t.getAttribute("beta");return""===e||"true"===e}(r)&&(u=G(u,{"tct-beta":"true"})),u}(m,x,P,h,n.getValue(),f,r);if(!b){const t=function(t,n,r){const s=(0,e.R)(window,"message").pipe((0,i.p)(t=>"string"==typeof t.data&&t.data.includes("iFrameSizer")),(0,o.T)(t=>{const e=t.data.substr(L.length).split(":"),[n,r]=e;return{value:{moduleId:n,height:r}}})),u=t.onMessage("resizeIframe");return(0,D.h)(s,u).pipe((0,i.p)(t=>t.value.moduleId===n()),(0,q.F)((t,e)=>t.value.height===e.value.height)).subscribe(t=>{const{height:e}=t.value,{iframeEl:n}=r();n&&n.style.setProperty("height",`${e}px`)})}(c,_,w);E.next(()=>{t.unsubscribe()})}const R=function(t,e,n){return t.onMessage("setTitle").pipe((0,i.p)(t=>t.value.moduleId===e())).subscribe(t=>{const{iframeEl:e}=n();e.title=t.value.title})}(c,_,w);E.next(()=>{R.unsubscribe()});const V=function(t,e,n,r,i,o,s,u,c,a){const l=document.createElement("div");l.className="outlet-wrapper";const h=document.createElement("slot");h.name="loading-wrapper";const f=[],p=document.createElement("iframe");if(u){const r=document.createElement("form");n.forEach(function(t){const e=document.createElement("input");e.name=t.key,e.setAttribute("value",t.value),r.appendChild(e)}),r.hidden=!0,r.method="post",r.action=t,r.target=e,r.enctype="multipart/form-data",p.name=e,l.appendChild(r),f.push(function(){r.submit(),l.removeChild(r)})}else p.src=t;return p.title=r,p.dataset.moduleId=e,p.style.maxHeight=i,p.style.maxWidth=o,p.setAttribute("test-id","outletIframe"),p.allow=function(t=[],e=["geolocation","camera"],n){let r=["'self'",`${new URL(n).origin}`];return t&&t.length>0&&(r=[...r,...t]),e.reduce(function(t,e){return t+`${e} ${r.join(" ")}; `},"")}(c,a,t),l.appendChild(p),f.push(()=>{p.contentWindow&&p.contentWindow.postMessage(`${L}${e}:0:false:false:32:true:true:null:documentElementOffset`,"*")}),p.onload=function(){f.forEach(t=>{t()}),p.onload=function(){}},s?l.classList.add("scrollable"):(p.style.setProperty("overflow-y","hidden"),p.scrolling="no"),p.hidden=!0,l.appendChild(h),l}(M,x,r.getAuthPayload?r.getAuthPayload():[],`${p.featureName}-${p.moduleName}`,h.style.maxHeight,h.style.maxWidth,b,f,N,j),k=function(t,e){var n,r,i;const o=document.createElement("div");o.style.minHeight=e||"0px",o.slot="loading-wrapper",o.classList.add("loading-wrapper"),o.setAttribute("data-tecton-module","");const s=t.loadingOptions?W(t.loadingOptions):W();if(null===(n=t.loadingOptions)||void 0===n?void 0:n.outlet){const e=t.loadingOptions.outlet;e.style&&o.setAttribute("style",e.style),e.classList&&o.classList.add(...e.classList)}const u=null===(i=null===(r=s[0])||void 0===r?void 0:r[0])||void 0===i?void 0:i.getAttribute("type");null!==u&&"spinner"!==u||o.classList.add("spinner-loader");for(const t of s){const e=document.createElement("div");e.className="q2-row";for(const n of t)e.appendChild(n);o.appendChild(e)}return o}(T,t);d.next(V),g.next(()=>{const t=h.shadowRoot.querySelector(".loading-wrapper");t?h.shadowRoot.replaceChild(k,t):h.shadowRoot.appendChild(k),y.next(!0)}),E.next(()=>{O.unsubscribe(),A.unsubscribe(),I.unsubscribe(),a("clearParams",u.Maybe.just(JSON.stringify({moduleId:x})))})}});return{DOM$:d,settled$:y,teardown$:E,effect$:g}}}const X=`${window.location.origin}${window.location.pathname.replace(/\/uux\.aspx/i,"")}`;function Q(t){return/^http/.test(t)?t:`${window.location.origin}/${t}`}function tt(t,e,n,r,i,o,s={}){!function(t,e,n,r){if(e.getMobileSDKCapabilities){n.add("getMobileSDKCapabilities");const i=t.sendResponse("getMobileSDKCapabilities",()=>Promise.resolve(e.getMobileSDKCapabilities()));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n){const r=t.sendResponse("getInitialParams",t=>Promise.resolve({params:v(t.moduleId,e.getValue().currentParams)}));n.push(()=>r.unsubscribe())}(t,n,o),function(t,e,n,r,i){let o;const s=t.sendResponse("getCustomerAssetPath",({subPath:t})=>Promise.resolve({path:Q(n.getCustomerSpecificAssetPath(t))}));n.getCustomLanguageURL&&(e.add("getCustomLanguageURL"),o=t.sendResponse("getCustomLanguageURL",async({moduleId:t,langKey:e})=>{const r=await x(t.split("."),n.dynamicConfigFetch);return Promise.resolve({path:Q(n.getCustomLanguageURL(`${e}_${r.featureName}.json`))})}));const u=t.sendResponse("getBaseAssetPath",({subPath:t})=>Promise.resolve({path:Q(n.getBaseAssetPath(t))})),c=t.sendResponse("getNgamBaseUrl",()=>Promise.resolve({ngamBase:X}));i.push(()=>{s.unsubscribe(),u.unsubscribe(),c.unsubscribe(),o&&o.unsubscribe()})}(t,i,e,0,o),function(t,e,n,r,i,o){const s=e.sendResponse("resolveFeature",async e=>{const i=await x(e.outletPath.split("."),t.dynamicConfigFetch),s=S(i.configPath,i.treeFromRoot),c=(await t.dynamicConfigFetch(i.featureName)).modules[i.moduleName].meta.outlets[i.outletName],a="None"===c.context?u.Maybe.nothing():u.Maybe.just(c.context),l=e.contextValue?u.Maybe.just(e.contextValue):u.Maybe.nothing(),h=e.resolvedType?u.Maybe.just(e.resolvedType):u.Maybe.nothing(),f=e.additionalContext?u.Maybe.just(e.additionalContext):u.Maybe.nothing(),p=s.configuredOutlets[i.outletName],d=n.getValue();return g(t,r,e.outletPath,a,l,p,h,f,d,i.featureName,i.moduleName,o).then(t=>t.withDefault({moduleId:"",featureName:"",initialParams:{},url:"",minHeight:"",formPostAuth:!1,loadingOptions:{loaders:[{type:"spinner",shape:"half-circle",row:1}]}}))});i.push(()=>s.unsubscribe())}(e,t,r,n,o,s),function(t,e,n,r,i,o){const s=e.sendResponse("resolveTabs",async e=>{const i=await x(e.outletPath.split("."),t.dynamicConfigFetch),s=S(i.configPath,i.treeFromRoot),c=t.dynamicConfigFetch(i.featureName),a=await c,l=(await c.then(t=>t.modules[i.moduleName])).meta.outlets[i.outletName],h="None"===l.context?u.Maybe.nothing():u.Maybe.just(l.context),f=e.contextValue?u.Maybe.just(e.contextValue):u.Maybe.nothing(),p=e.resolvedType?u.Maybe.just(e.resolvedType):u.Maybe.nothing(),d=e.additionalContext?u.Maybe.just(e.additionalContext):u.Maybe.nothing(),b=s.configuredOutlets[i.outletName],v=n.getValue();return function(t,e,n,r,i,o,s,c,a,l,h,f,p,d){return Promise.all(c.map(c=>g(t,e,n,r,i,c.modules||[],o,s,a,l,h,f).then(t=>t.map(t=>({tabLabel:c.tabLabel,tab:t}))).catch(()=>u.Maybe.nothing()))).then(t=>u.Maybe.filterSomethings(t)).then(t=>t.map(t=>({tabLabel:t.tabLabel,tabLabelOverride:t.tab.tabLabelOverride,moduleId:t.tab.moduleId,initialParams:t.tab.initialParams,url:t.tab.url,minHeight:t.tab.minHeight,formPostAuth:t.tab.formPostAuth,loadingOptions:t.tab.loadingOptions,additionalDomains:p,allowDirectives:d,requiredUserCapabilities:t.tab.requiredUserCapabilities,rightsEnabled:t.tab.rightsEnabled})))}(t,r,e.outletPath,h,f,p,d,b,v,i.featureName,i.moduleName,o,a.additionalDomains,a.allowDirectives).then(t=>({resolvedTabs:t}))});i.push(()=>s.unsubscribe())}(e,t,r,n,o,s),function(t,e,n,r,i,o){const s=e.sendResponse("resolveMenu",async e=>{const i=await x(e.outletPath.split("."),t.dynamicConfigFetch),s=S(i.configPath,i.treeFromRoot),c=(await t.dynamicConfigFetch(i.featureName).then(t=>t.modules[i.moduleName])).meta.outlets[i.outletName];if(!c)throw new Error(`${i.outletName} contextual menu outlet not found in config`);const a="None"===c.context?u.Maybe.nothing():u.Maybe.just(c.context),l=e.contextValue?u.Maybe.just(e.contextValue):u.Maybe.nothing(),h=e.resolvedType?u.Maybe.just(e.resolvedType):u.Maybe.nothing(),f=e.additionalContext?u.Maybe.just(e.additionalContext):u.Maybe.nothing(),p=s.configuredOutlets[i.outletName],d=n.getValue();return!1===d.features[i.featureName].modules[i.moduleName].rightsEnabled?new Promise(t=>{t({resolvedMenuItems:[]})}):function(t,e,n,r,i,o,s,c,a,l,h,f){return Promise.all(c.map(c=>g(t,e,n,r,i,c.modules||[],o,s,a,l,h,f).then(e=>e.asyncMap(async e=>{const n=await x(e.moduleId.split("."),t.dynamicConfigFetch),r=i.withDefault("-1"),o={itemLabel:c.itemLabel,action:c.action,featureName:n.featureName,moduleName:n.moduleName,contextIdParamName:c.contextIdParamName};return"-1"!==r&&(o["tct-ctxid"]=r),o})).then(u.Maybe.just).catch(()=>u.Maybe.nothing()))).then(t=>u.Maybe.filterSomethings(t))}(t,r,e.outletPath,a,l,h,f,p,d,i.featureName,i.moduleName,o).then(t=>({resolvedMenuItems:t}))});i.push(()=>s.unsubscribe())}(e,t,r,n,o,s),function(t,e,n){const r=t.sendResponse("getPlatformCapabilities",()=>{const t=Array.from(e);return Promise.resolve({capabilities:t})});n.push(()=>r.unsubscribe())}(t,i,o),function(t,e,n){const r=t.sendResponse("getAuthPayload",()=>Promise.resolve(e.getAuthPayload()));n.push(()=>r.unsubscribe())}(t,e,o),function(t,e,n,r){if(e.cdnOverride){n.add("cdnOverride");const i=t.sendResponse("cdnOverride",()=>e.cdnOverride().then(t=>({path:t})));r.push(()=>i.unsubscribe())}}(t,e,i,o)}const et="Authenticated",nt="Unauthenticated";function rt(e,n,r={},i){window.isTectonPlatform=!0;const o=new b.t({changedParams:{},currentParams:{}});let s;it(e),window.isTestingTecton||(null==i?void 0:i.testing)?(s=window.tectonConfig$||new b.t(null),s.next(e),window.tectonConfig$=s):s=new b.t(e);const c=new d(s,window.isTestingTecton),a=new Set,h=[c.teardown.bind(c)];function f(t){const[r,i]=t.split(".");try{return Promise.resolve(e.features[r].configuredOverpanels[i])}catch(t){return n.dynamicConfigFetch(r,i)}}return function(t){t.add("resizeIframe"),t.add("requestOutletInfo")}(a),function(t,e,n,r){if(e.setupDynamicPlatformAPI){e.setupDynamicPlatformAPI().forEach(t=>n.add(t));const i=t.sendResponse("executeDynamicPlatformAPI",({functionName:t,args:n})=>e.executeDynamicPlatformAPI(t,n));r.push(()=>i.unsubscribe())}}(c,n,a,h),N(c,s,n,a,h),$(c,n,o,s,a,h),function(t,e,n,r){if(!e.getCurrentTheme)return void n.add("ThemesNotSupported");n.add("getCurrentTheme");const i=new b.t({path:Q(e.getCustomerSpecificAssetPath(`${e.getCurrentTheme()}-props.css`))});e.themeChanged&&(n.add("themeChanged"),e.themeChanged(t=>{i.next({path:Q(e.getCustomerSpecificAssetPath(`${t}-props.css`))})}));const o=i.subscribe(t=>{l("themeChanged",u.Maybe.maybe(t).map(JSON.stringify))}),s=t.sendResponse("getCurrentTheme",()=>Promise.resolve(i.getValue()));r.push(()=>{o.unsubscribe(),s.unsubscribe()})}(c,n,a,h),tt(c,n,o,s,a,h,r),function(t,e,n,r,i={}){U({messageBus:t,moduleId:"",props:Z,tectonOutletAdaptor:K(e,n,r,i)})("tecton-platform-outlet")}(c,s,o,n,r),{tectonParamsChanged(t){o.next(t)},updateConfig(e){const n=s.getValue();t(n,e),it(n),s.next(n)},replaceConfig(t){it(t),s.next(t)},verifyConfig(){if(!n.getCapabilities)return void console.error("getCapabilities must be implemented on platform to verify config.");const t=t=>{var e,r;return!(null==t?void 0:t.length)||Object.values(null!==(r=null===(e=n.getCapabilities)||void 0===e?void 0:e.call(n,...null!=t?t:[]))&&void 0!==r?r:{}).every(Boolean)},e=s.getValue(),r=e.features;for(const e in r){if(!r.hasOwnProperty(e))continue;const n=r[e];n.rightsEnabled=t(n.requiredUserCapabilities);for(const e in n.modules){if(!n.modules||!n.modules.hasOwnProperty(e))continue;const r=n.modules[e];r.rightsEnabled=n.rightsEnabled&&t(r.requiredUserCapabilities)}}it(e),s.next(e)},configLookup:function(t,e){const n=s.getValue();if(!e){const e=n.features[t];if(!e)throw new Error(`No config found, please check if the extension(${t}) is running correctly.`);return e}if(!n.features[t])throw new Error(`Please check if the extension(${t}) is running correctly.`);const r=n.features[t].modules[e].routeConfig||{featureName:t,moduleName:e},i=n.features[t].modules[e].rightsEnabled;return void 0!==i&&(r.rightsEnabled=i),r},configForRoute(t){const[e,n]=t.split(".");return s.getValue().features[e].modules[n].routeConfig||{featureName:e,moduleName:n}},configForOverpanel:f,overpanelOverrideLookup(t){var e,n,r,i,o,u,c,a,l;const h=s.getValue(),p=(h.overpanelOverrides||[]).find(e=>e.overpanelName===t),{featureName:d="",overpanelName:b=""}=null!==(e=null==p?void 0:p.override)&&void 0!==e?e:{},v=`${d}.${b}`,y=null===(n=h.features)||void 0===n?void 0:n[d],m=[{condition:!p,message:`No overpanel override found for ${t}.`},{condition:!d||!b,message:`Invalid overpanel override configuration for ${t}.`},{condition:!y,message:`Feature ${d} not found in config.`},{condition:!1===(null==y?void 0:y.rightsEnabled),message:`Feature ${d} is not enabled for this user.`},{condition:!(null===(r=null==y?void 0:y.configuredOverpanels)||void 0===r?void 0:r[b]),message:`Override overpanel ${b} not found in config.`},{condition:!1===(null===(c=null===(i=null==y?void 0:y.modules)||void 0===i?void 0:i[null===(u=null===(o=null==y?void 0:y.configuredOverpanels)||void 0===o?void 0:o[b])||void 0===u?void 0:u.moduleName])||void 0===c?void 0:c.rightsEnabled),message:`The module ${null===(l=null===(a=null==y?void 0:y.configuredOverpanels)||void 0===a?void 0:a[b])||void 0===l?void 0:l.moduleName} for feature ${d} is not enabled for this user.`}];for(const{condition:t,message:e}of m)if(t)return Promise.resolve({override:!1,message:e});return f(v).then(t=>{const e={override:!0,overpanelId:v,overpanelConfig:t};return(null==p?void 0:p.contextInfo)&&(e.contextInfo=p.contextInfo),Promise.resolve(e)})},updateApplicationModules(t){!function(t,e=!1){const n=function(t){var e,n,r;const i={};for(const[o,s]of Object.entries(t.features))for(const[t,u]of Object.entries(s.modules)){const s=null!==(r=null===(n=null===(e=null==u?void 0:u.meta)||void 0===e?void 0:e.type)||void 0===n?void 0:n.context)&&void 0!==r?r:void 0;if(s&&s.toLowerCase().startsWith("Application::".toLowerCase())){const e=s.split("::")[1].toLowerCase(),n={featureName:o,moduleName:t,rightsEnabled:u.rightsEnabled};i[e]?i[e].push(n):i[e]=[n]}}return i}(t),r=e?et:nt,i=n[r.toLowerCase()];null==i||i.forEach(t=>{const{featureName:e,moduleName:n,rightsEnabled:i}=t,o=`${e}.${n}`,s=`TectonApplicationModule.${o}`;document.getElementById(s)||!1===i||function({authContext:t,outletId:e,modulePath:n,featureName:r,moduleName:i}){const o=window.isTestingTecton?document.createElement("object"):document.createElement("tecton-platform-outlet");o.name=`Tecton${t}ApplicationModule`,o.id=e,o.routeName=n,o.configTree={featureName:r,moduleName:i},o.tabIndex=-1,o.setAttribute("style","width:0; height:0; visibility: hidden; overflow: hidden;"),document.body.appendChild(o)}({authContext:r,outletId:s,modulePath:o,featureName:e,moduleName:n})}),e||function(t){const e=document.getElementsByName(`Tecton${t}ApplicationModule`);null==e||e.forEach(function(t){var e;null===(e=t.parentNode)||void 0===e||e.removeChild(t)})}(et)}(e,t)},teardown(){h.forEach(t=>t())}}}function it(t){Object.keys(t.features).forEach(function(e){const n=t.features[e],r=n.configuredOverpanels;r&&Object.keys(r).forEach(function(t){r[t].featureName||(r[t].featureName=e)});try{Object.keys(n.modules).forEach(function(t){n.modules[t].routeConfig||(n.modules[t].routeConfig={featureName:e,moduleName:t,configuredOutlets:{}}),Object.assign(n.modules[t].meta,{featureName:e,moduleName:t});let r=n.modules[t].url;if(r){if(r.startsWith("./")){const t=window.location.pathname.split("/").filter(t=>t),e=t[t.length-1];e&&e.includes(".")&&t.pop();const n=t.length>0?t.join("/"):"";r=r.replace("./",`${window.location.origin}/${n?`${n}/`:""}`)}r=r.replace("{featureName}",e),r=r.replace("{moduleName}",t),n.modules[t].url=r}})}catch(r){n.modules?console.error(`Config for ${n.routeName} is malformed. It returned ${r}.`):console.error(`Config for ${n.routeName} contains no modules`),console.error(`Removing ${n.routeName} from config.`),delete t.features[e]}})}})(),r})());
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["q2-tecton-platform"]=e():t["q2-tecton-platform"]=e()}(self,()=>(()=>{var t={46:(t,e,n)=>{"use strict";n.d(e,{I:()=>o,w:()=>i});var r=n(8183),i=new r.c(function(t){return t.complete()});function o(t){return t?function(t){return new r.c(function(e){return t.schedule(function(){return e.complete()})})}(t):i}},163:(t,e,n)=>{"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,{A:()=>r})},403:(t,e,n)=>{"use strict";n.d(e,{g:()=>s,T:()=>o});var r=n(5785),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.C6(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(5389).R),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e}(n(4274).q))(i),s=o},506:(t,e,n)=>{"use strict";n.d(e,{O4:()=>c});var r=n(5785),i=n(7371),o=n(5090),s=n(7372),u=n(7779);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!(0,i.c)(t[0]))return t[0];t=t[0]}return(0,o.c)(t,void 0).lift(new a)}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.C6(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=(0,u.F)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(s.E)},568:(t,e,n)=>{"use strict";function r(t){setTimeout(function(){throw t},0)}n.d(e,{T:()=>r})},572:(t,e,n)=>{"use strict";n.d(e,{m:()=>l});var r=n(5785),i=n(2521),o=n(403),s=n(8252),u=n(1842),c=n(9776),a=n(6024),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.C6(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new c.P;if(this.isStopped||this.hasError?e=s.y.EMPTY:(this.observers.push(t),e=new a.Y(this,t)),i&&t.add(t=new u.YZ(t,i)),n)for(var l=0;l<o&&!t.closed;l++)t.next(r[l]);else for(l=0;l<o&&!t.closed;l++)t.next(r[l].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.g).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.B7),h=function(){return function(t,e){this.time=t,this.value=e}}()},659:(t,e,n)=>{"use strict";n.d(e,{c:()=>l});var r=n(8183),i=n(8252),o=n(2013),s=n(7339),u=n(7214),c=n(3155),a=n(4276);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.s]}(t))return function(t,e){return new r.c(function(n){var r=new i.y;return r.add(e.schedule(function(){var i=t[o.s]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}(t,e);if((0,c.y)(t))return function(t,e){return new r.c(function(n){var r=new i.y;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r})}(t,e);if((0,a.X)(t))return(0,s.V)(t,e);if(function(t){return t&&"function"==typeof t[u.lJ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.c(function(n){var r,o=new i.y;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[u.lJ](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),o})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},668:(t,e,n)=>{"use strict";n.d(e,{K:()=>i});var r=n(1520);function i(){return(0,r.U)(1)}},739:(t,e,n)=>{"use strict";n.d(e,{E:()=>i,b:()=>o});var r=n(5389),i=new(n(4274).q)(r.R),o=i},936:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2471),i=n(7799),o=n(3488),s=n(7566),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,u=n._parentOrParents,a=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof t)u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f)u[f].remove(this);if(o.isFunction(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(t){e=t instanceof s.UnsubscriptionError?c(t.errors):[t]}}if(r.isArray(h)){f=-1;for(var p=h.length;++f<p;){var d=h[f];if(i.isObject(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof s.UnsubscriptionError?e=e.concat(c(t.errors)):e.push(t)}}}if(e)throw new s.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce(function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)},[])}e.Subscription=u},1506:(t,e,n)=>{"use strict";n.d(e,{v:()=>r});var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},1515:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},1520:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(9377),i=n(8958);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,r.ZZ)(i.D,t)}},1571:(t,e,n)=>{"use strict";n.r(e),n.d(e,{audit:()=>o,auditTime:()=>l,buffer:()=>h,bufferCount:()=>b,bufferTime:()=>w,bufferToggle:()=>I,bufferWhen:()=>M,catchError:()=>k,combineAll:()=>q,combineLatest:()=>z,concat:()=>W,concatAll:()=>H.K,concatMap:()=>Y,concatMapTo:()=>G,count:()=>Z,debounce:()=>Q,debounceTime:()=>nt,defaultIfEmpty:()=>st.U,delay:()=>at,delayWhen:()=>dt,dematerialize:()=>gt,distinct:()=>_t,distinctUntilChanged:()=>Et.F,distinctUntilKeyChanged:()=>Nt,elementAt:()=>At,endWith:()=>Mt,every:()=>Rt,exhaust:()=>$t,exhaustMap:()=>Bt,expand:()=>Ut,filter:()=>Ot.p,finalize:()=>Jt,find:()=>Zt,findIndex:()=>Qt,first:()=>te.$,flatMap:()=>J.qI,groupBy:()=>ee.$,ignoreElements:()=>ne,isEmpty:()=>oe,last:()=>de,map:()=>qt.T,mapTo:()=>be,materialize:()=>me,max:()=>Ne,merge:()=>Oe,mergeAll:()=>Pe.U,mergeMap:()=>J.ZZ,mergeMapTo:()=>Ie,mergeScan:()=>Ae,min:()=>Re,multicast:()=>ke,observeOn:()=>Fe.QE,onErrorResumeNext:()=>De,pairwise:()=>Le.J,partition:()=>Ue,pluck:()=>We,publish:()=>Je,publishBehavior:()=>Ge,publishLast:()=>Ke,publishReplay:()=>Qe,race:()=>en,reduce:()=>Ee,refCount:()=>bn.B,repeat:()=>nn,repeatWhen:()=>sn,retry:()=>an,retryWhen:()=>fn,sample:()=>vn,sampleTime:()=>gn,scan:()=>xe,sequenceEqual:()=>Sn,share:()=>On,shareReplay:()=>Pn,single:()=>In,skip:()=>Mn,skipLast:()=>kn,skipUntil:()=>Dn,skipWhile:()=>Ln,startWith:()=>Wn,subscribeOn:()=>Gn,switchAll:()=>tr,switchMap:()=>Kn,switchMapTo:()=>er,take:()=>It.s,takeLast:()=>le,takeUntil:()=>nr,takeWhile:()=>or,tap:()=>lr,throttle:()=>dr,throttleTime:()=>yr,throwIfEmpty:()=>Pt.v,timeInterval:()=>_r,timeout:()=>Pr,timeoutWith:()=>Er,timestamp:()=>Ir,toArray:()=>Mr,window:()=>Rr,windowCount:()=>$r,windowTime:()=>qr,windowToggle:()=>Jr,windowWhen:()=>Zr,withLatestFrom:()=>Qr,zip:()=>ri,zipAll:()=>ii});var r=n(5785),i=n(4137);function o(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.C6(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=(0,i.tS)(e,new i.zA(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.gn),c=n(739),a=n(5662);function l(t,e){return void 0===e&&(e=c.b),o(function(){return(0,a.O)(t,e)})}function h(t){return function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add((0,i.tS)(n,new i.zA(r))),r}return r.C6(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.gn),d=n(8243);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new v(t,e))}}var v=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?m:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.C6(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(d.v),m=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.C6(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r===0&&i.push([]);for(var s=i.length;s--;){var u=i[s];u.push(t),u.length===n&&(i.splice(s,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(d.v),g=n(1931);function w(t){var e=arguments.length,n=c.b;(0,g.m)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new x(t,r,i,n))}}var x=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),_=function(){return function(){this.buffer=[]}}(),S=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var u=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly){var c={subscriber:s,context:u,bufferTimeSpan:n};s.add(u.closeAction=o.schedule(C,n,c))}else{var a={subscriber:s,context:u},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(u.closeAction=o.schedule(N,n,a)),s.add(o.schedule(E,r,l))}return s}return r.C6(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(C,n,r))}},e.prototype.openContext=function(){var t=new _;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(d.v);function C(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function E(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(N,n,{subscriber:r,context:o})),this.schedule(t,e))}function N(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var T=n(8252),O=n(7779),P=n(7372);function I(t,e){return function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.openings,this.closingSelector))},t}(),j=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add((0,O.F)(i,n)),i}return r.C6(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new T.y,r={buffer:[],subscription:n};e.push(r);var i=(0,O.F)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(P.E);function M(t){return function(e){return e.lift(new R(t))}}var R=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new V(t,this.closingSelector))},t}(),V=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.C6(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new T.y,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.tS)(e,new i.zA(this))),this.subscribing=!1},e}(i.gn);function k(t){return function(e){var n=new $(t),r=e.lift(n);return n.caught=r}}var $=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.selector,this.caught))},t}(),F=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.C6(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.zA(this);this.add(r);var o=(0,i.tS)(n,r);o!==r&&this.add(o)}},e}(i.gn),D=n(9489);function q(t){return function(e){return e.lift(new D.ZS(t))}}var B=n(7371),L=n(4147);function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,B.c)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,L.H)([e].concat(t)),new D.ZS(n))}}var U=n(7403);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(U.x.apply(void 0,[e].concat(t)))}}var H=n(668),J=n(9377);function Y(t,e){return(0,J.ZZ)(t,e,1)}function G(t,e){return Y(function(){return t},e)}function Z(t){return function(e){return e.lift(new K(t,e))}}var K=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.predicate,this.source))},t}(),X=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(d.v);function Q(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.C6(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,i.tS)(e,new i.zA(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.gn);function nt(t,e){return void 0===e&&(e=c.b),function(n){return n.lift(new rt(t,e))}}var rt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.dueTime,this.scheduler))},t}(),it=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.C6(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ot,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(d.v);function ot(t){t.debouncedNext()}var st=n(3620);function ut(t){return t instanceof Date&&!isNaN(+t)}var ct=n(5594);function at(t,e){void 0===e&&(e=c.b);var n=ut(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new lt(n,e))}}var lt=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ht(t,this.delay,this.scheduler))},t}(),ht=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.C6(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ft(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ct.E.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ct.E.createComplete()),this.unsubscribe()},e}(d.v),ft=function(){return function(t,e){this.time=t,this.notification=e}}(),pt=n(8183);function dt(t,e){return e?function(n){return new yt(n,e).lift(new bt(t))}:function(e){return e.lift(new bt(t))}}var bt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.delayDurationSelector))},t}(),vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=(0,O.F)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(P.E),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.C6(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new mt(t,this.source))},e}(pt.c),mt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.C6(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(d.v);function gt(){return function(t){return t.lift(new wt)}}var wt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new xt(t))},t}(),xt=function(t){function e(e){return t.call(this,e)||this}return r.C6(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(d.v);function _t(t,e){return function(n){return n.lift(new St(t,e))}}var St=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Ct(t,this.keySelector,this.flushes))},t}(),Ct=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add((0,i.tS)(r,new i.zA(o))),o}return r.C6(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.gn),Et=n(9919);function Nt(t,e){return(0,Et.F)(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}var Tt=n(1515),Ot=n(7377),Pt=n(9471),It=n(3860);function At(t,e){if(t<0)throw new Tt.k;var n=arguments.length>=2;return function(r){return r.pipe((0,Ot.p)(function(e,n){return n===t}),(0,It.s)(1),n?(0,st.U)(e):(0,Pt.v)(function(){return new Tt.k}))}}var jt=n(3550);function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return(0,U.x)(e,jt.of.apply(void 0,t))}}function Rt(t,e){return function(n){return n.lift(new Vt(t,e,n))}}var Vt=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.predicate,this.thisArg,this.source))},t}(),kt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.C6(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.v);function $t(){return function(t){return t.lift(new Ft)}}var Ft=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Dt(t))},t}(),Dt=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.C6(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add((0,i.tS)(t,new i.zA(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.gn),qt=n(5693);function Bt(t,e){return e?function(n){return n.pipe(Bt(function(n,r){return(0,L.H)(t(n,r)).pipe((0,qt.T)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Lt(t))}}var Lt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.project))},t}(),zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.zA(this),n=this.destination;n.add(e);var r=(0,i.tS)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.gn);function Ut(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Wt(t,e,n))}}var Wt=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Ht(t,this.project,this.concurrent,this.scheduler))},t}(),Ht=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.C6(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add((0,i.tS)(t,new i.zA(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.gn);function Jt(t){return function(e){return e.lift(new Yt(t))}}var Yt=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.callback))},t}(),Gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new T.y(n)),r}return r.C6(e,t),e}(d.v);function Zt(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Kt(t,n,!1,e))}}var Kt=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Xt(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Xt=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return r.C6(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(d.v);function Qt(t,e){return function(n){return n.lift(new Kt(t,n,!0,e))}}var te=n(4517),ee=n(8229);function ne(){return function(t){return t.lift(new re)}}var re=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ie(t))},t}(),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype._next=function(t){},e}(d.v);function oe(){return function(t){return t.lift(new se)}}var se=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ue(t))},t}(),ue=function(t){function e(e){return t.call(this,e)||this}return r.C6(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.v),ce=n(7649),ae=n(46);function le(t){return function(e){return 0===t?(0,ae.I)():e.lift(new he(t))}}var he=function(){function t(t){if(this.total=t,this.total<0)throw new Tt.k}return t.prototype.call=function(t,e){return e.subscribe(new fe(t,this.total))},t}(),fe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(d.v),pe=n(8958);function de(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?(0,Ot.p)(function(e,n){return t(e,n,r)}):pe.D,le(1),n?(0,st.U)(e):(0,Pt.v)(function(){return new ce.G}))}}function be(t){return function(e){return e.lift(new ve(t))}}var ve=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new ye(t,this.value))},t}(),ye=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.C6(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(d.v);function me(){return function(t){return t.lift(new ge)}}var ge=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new we(t))},t}(),we=function(t){function e(e){return t.call(this,e)||this}return r.C6(e,t),e.prototype._next=function(t){this.destination.next(ct.E.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ct.E.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ct.E.createComplete()),t.complete()},e}(d.v);function xe(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new _e(t,e,n))}}var _e=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Se(t,this.accumulator,this.seed,this.hasSeed))},t}(),Se=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.C6(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(d.v),Ce=n(5020);function Ee(t,e){return arguments.length>=2?function(n){return(0,Ce.F)(xe(t,e),le(1),(0,st.U)(e))(n)}:function(e){return(0,Ce.F)(xe(function(e,n,r){return t(e,n,r+1)}),le(1))(e)}}function Ne(t){return Ee("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Te=n(2151);function Oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Te.h.apply(void 0,[e].concat(t)))}}var Pe=n(1520);function Ie(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?(0,J.ZZ)(function(){return t},e,n):("number"==typeof e&&(n=e),(0,J.ZZ)(function(){return t},n))}function Ae(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new je(t,e,n))}}var je=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.accumulator,this.seed,this.concurrent))},t}(),Me=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.C6(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.zA(this),n=this.destination;n.add(e);var r=(0,i.tS)(t,e);r!==e&&n.add(r)},e.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()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.gn);function Re(t){return Ee("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var Ve=n(5308);function ke(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new $e(r,e));var i=Object.create(n,Ve.f);return i.source=n,i.subjectFactory=r,i}}var $e=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Fe=n(1842);function De(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&(0,B.c)(t[0])&&(t=t[0]),function(e){return e.lift(new qe(t))}}var qe=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.nextSources))},t}(),Be=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.C6(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.zA(this),n=this.destination;n.add(e);var r=(0,i.tS)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.gn),Le=n(9143),ze=n(163);function Ue(t,e){return function(n){return[(0,Ot.p)(t,e)(n),(0,Ot.p)((0,ze.A)(t,e))(n)]}}function We(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return(0,qt.T)(function(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}(t,n))(e)}}var He=n(2521);function Je(t){return t?ke(function(){return new He.B7},t):ke(new He.B7)}var Ye=n(1891);function Ge(t){return function(e){return ke(new Ye.t(t))(e)}}var Ze=n(6885);function Ke(){return function(t){return ke(new Ze.h)(t)}}var Xe=n(572);function Qe(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new Xe.m(t,e,r);return function(t){return ke(function(){return o},i)(t)}}var tn=n(506);function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&(0,B.c)(t[0])&&(t=t[0]),e.lift.call(tn.O4.apply(void 0,[e].concat(t)))}}function nn(t){return void 0===t&&(t=-1),function(e){return 0===t?(0,ae.I)():t<0?e.lift(new rn(-1,e)):e.lift(new rn(t-1,e))}}var rn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new on(t,this.count,this.source))},t}(),on=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.C6(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(d.v);function sn(t){return function(e){return e.lift(new un(t))}}var un=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new cn(t,this.notifier,e))},t}(),cn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.C6(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new He.B7;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.tS)(e,new i.zA(this))},e}(i.gn);function an(t){return void 0===t&&(t=-1),function(e){return e.lift(new ln(t,e))}}var ln=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new hn(t,this.count,this.source))},t}(),hn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.C6(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(d.v);function fn(t){return function(e){return e.lift(new pn(t,e))}}var pn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new dn(t,this.notifier,this.source))},t}(),dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.C6(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new He.B7;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=(0,i.tS)(r,new i.zA(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.gn),bn=n(6991);function vn(t){return function(e){return e.lift(new yn(t))}}var yn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new mn(t),r=e.subscribe(n);return r.add((0,i.tS)(this.notifier,new i.zA(n))),r},t}(),mn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.C6(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.gn);function gn(t,e){return void 0===e&&(e=c.b),function(n){return n.lift(new wn(t,e))}}var wn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.period,this.scheduler))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(_n,n,{subscriber:i,period:n})),i}return r.C6(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(d.v);function _n(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Sn(t,e){return function(n){return n.lift(new Cn(t,e))}}var Cn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new En(t,this.compareTo,this.comparator))},t}(),En=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Nn(e,i))),i}return r.C6(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparator;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),s=!1;try{s=r?r(i,o):i===o}catch(t){this.destination.error(t)}s||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(d.v),Nn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.C6(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(d.v);function Tn(){return new He.B7}function On(){return function(t){return(0,bn.B)()(ke(Tn)(t))}}function Pn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,a=0,l=!1,h=!1;return function(t){var r;a++,!e||l?(l=!1,e=new Xe.m(i,s,c),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}),h&&(n=void 0)):r=e.subscribe(this),this.add(function(){a--,r.unsubscribe(),r=void 0,n&&!h&&u&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)})}}(r))}}function In(t){return function(e){return e.lift(new An(t,e))}}var An=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.predicate,this.source))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.C6(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new ce.G)},e}(d.v);function Mn(t){return function(e){return e.lift(new Rn(t))}}var Rn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.total))},t}(),Vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(d.v);function kn(t){return function(e){return e.lift(new $n(t))}}var $n=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Tt.k}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new d.v(t)):e.subscribe(new Fn(t,this._skipCount))},t}(),Fn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.C6(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(d.v);function Dn(t){return function(e){return e.lift(new qn(t))}}var qn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Bn(t,this.notifier))},t}(),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.zA(r);r.add(o),r.innerSubscription=o;var s=(0,i.tS)(n,o);return s!==o&&(r.add(s),r.innerSubscription=s),r}return r.C6(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.gn);function Ln(t){return function(e){return e.lift(new zn(t))}}var zn=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Un(t,this.predicate))},t}(),Un=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(d.v);function Wn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return(0,g.m)(n)?(t.pop(),function(e){return(0,U.x)(t,e,n)}):function(e){return(0,U.x)(t,e)}}var Hn=n(7474),Jn=n(6381),Yn=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Hn.I);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!(0,Jn.k)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Hn.I),i}return r.C6(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Hn.I),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(pt.c);function Gn(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Zn(t,e))}}var Zn=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Yn(e,this.delay,this.scheduler).subscribe(t)},t}();function Kn(t,e){return"function"==typeof e?function(n){return n.pipe(Kn(function(n,r){return(0,L.H)(t(n,r)).pipe((0,qt.T)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Xn(t))}}var Xn=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Qn(t,this.project))},t}(),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.zA(this),r=this.destination;r.add(n),this.innerSubscription=(0,i.tS)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.gn);function tr(){return Kn(pe.D)}function er(t,e){return e?Kn(function(){return t},e):Kn(function(){return t})}function nr(t){return function(e){return e.lift(new rr(t))}}var rr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new ir(t),r=(0,i.tS)(this.notifier,new i.zA(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),ir=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.C6(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.gn);function or(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new sr(t,e))}}var sr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new ur(t,this.predicate,this.inclusive))},t}(),ur=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(d.v),cr=n(5980),ar=n(8764);function lr(t,e,n){return function(r){return r.lift(new hr(t,e,n))}}var hr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new fr(t,this.nextOrObserver,this.error,this.complete))},t}(),fr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=cr.l,o._tapError=cr.l,o._tapComplete=cr.l,o._tapError=r||cr.l,o._tapComplete=i||cr.l,(0,ar.T)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||cr.l,o._tapError=n.error||cr.l,o._tapComplete=n.complete||cr.l),o}return r.C6(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(d.v),pr={leading:!0,trailing:!1};function dr(t,e){return void 0===e&&(e=pr),function(n){return n.lift(new br(t,!!e.leading,!!e.trailing))}}var br=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.durationSelector,this.leading,this.trailing))},t}(),vr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.C6(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=(0,i.tS)(e,new i.zA(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.gn);function yr(t,e,n){return void 0===e&&(e=c.b),void 0===n&&(n=pr),function(r){return r.lift(new mr(t,e,n.leading,n.trailing))}}var mr=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new gr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),gr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return r.C6(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(wr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(d.v);function wr(t){t.subscriber.clearThrottle()}var xr=n(2791);function _r(t){return void 0===t&&(t=c.b),function(e){return(0,xr.v)(function(){return e.pipe(xe(function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}},{current:t.now(),value:void 0,last:void 0}),(0,qt.T)(function(t){var e=t.current,n=t.last,r=t.value;return new Sr(r,e-n)}))})}}var Sr=function(){return function(t,e){this.value=t,this.interval=e}}(),Cr=n(7103);function Er(t,e,n){return void 0===n&&(n=c.b),function(r){var i=ut(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Nr(o,i,e,n))}}var Nr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Tr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Tr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.scheduleTimeout(),s}return r.C6(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add((0,i.tS)(e,new i.zA(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(i.gn),Or=n(7517);function Pr(t,e){return void 0===e&&(e=c.b),Er(t,(0,Or.$)(new Cr.M),e)}function Ir(t){return void 0===t&&(t=c.b),(0,qt.T)(function(e){return new Ar(e,t.now())})}var Ar=function(){return function(t,e){this.value=t,this.timestamp=e}}();function jr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Mr(){return Ee(jr,[])}function Rr(t){return function(e){return e.lift(new Vr(t))}}var Vr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new kr(t),r=e.subscribe(n);return r.closed||n.add((0,i.tS)(this.windowBoundaries,new i.zA(n))),r},t}(),kr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new He.B7,e.next(n.window),n}return r.C6(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new He.B7;e.next(n)},e}(i.gn);function $r(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Fr(t,e))}}var Fr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.windowSize,this.startWindowEvery))},t}(),Dr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new He.B7],i.count=0,e.next(i.windows[0]),i}return r.C6(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var u=this.count-r+1;if(u>=0&&u%e===0&&!this.closed&&i.shift().complete(),++this.count%e===0&&!this.closed){var c=new He.B7;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(d.v);function qr(t){var e=c.b,n=null,r=Number.POSITIVE_INFINITY;return(0,g.m)(arguments[3])&&(e=arguments[3]),(0,g.m)(arguments[2])?e=arguments[2]:(0,Jn.k)(arguments[2])&&(r=Number(arguments[2])),(0,g.m)(arguments[1])?e=arguments[1]:(0,Jn.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Br(t,n,r,e))}}var Br=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new zr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Lr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.C6(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(He.B7),zr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var u=s.openWindow();if(null!==r&&r>=0){var c={subscriber:s,window:u,context:null},a={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(Hr,n,c)),s.add(o.schedule(Wr,r,a))}else{var l={subscriber:s,window:u,windowTimeSpan:n};s.add(o.schedule(Ur,n,l))}return s}return r.C6(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Lr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(d.v);function Ur(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function Wr(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s=this,u={action:s,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(Hr,e,c),s.add(u.subscription),s.schedule(t,i)}function Hr(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function Jr(t,e){return function(n){return n.lift(new Yr(t,e))}}var Yr=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Gr(t,this.openings,this.closingSelector))},t}(),Gr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,O.F)(i,n,n)),i}return r.C6(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new He.B7,u=new T.y,c={window:s,subscription:u};this.contexts.push(c);var a=(0,O.F)(this,o,c);a.closed?this.closeWindow(this.contexts.length-1):(a.context=c,u.add(a)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(P.E);function Zr(t){return function(e){return e.lift(new Kr(t))}}var Kr=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Xr(t,this.closingSelector))},t}(),Xr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new He.B7;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=(0,O.F)(this,n))},e}(P.E);function Qr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new ti(r,n))}}var ti=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.observables,this.project))},t}(),ei=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var u=n[s];i.add((0,O.F)(i,u,void 0,s))}return i}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(P.E),ni=n(8272);function ri(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ni.yU.apply(void 0,[e].concat(t)))}}function ii(t){return function(e){return e.lift(new ni.ee(t))}}},1604:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(8575);e.skip=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},1842:(t,e,n)=>{"use strict";n.d(e,{QE:()=>s,YZ:()=>c});var r=n(5785),i=n(8243),o=n(5594);function s(t,e){return void 0===e&&(e=0),function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.C6(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.E.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.E.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.E.createComplete()),this.unsubscribe()},e}(i.v),a=function(){return function(t,e){this.notification=t,this.destination=e}}()},1891:(t,e,n)=>{"use strict";n.d(e,{t:()=>s});var r=n(5785),i=n(2521),o=n(9776),s=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.C6(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.P;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.B7)},1908:(t,e,n)=>{"use strict";n.d(e,{_:()=>r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},1931:(t,e,n)=>{"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,{m:()=>r})},2013:(t,e,n)=>{"use strict";n.d(e,{s:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},2151:(t,e,n)=>{"use strict";n.d(e,{h:()=>u});var r=n(8183),i=n(1931),o=n(1520),s=n(5090);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,u=null,c=t[t.length-1];return(0,i.m)(c)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.c?t[0]:(0,o.U)(n)((0,s.c)(t,u))}},2347:(t,e,n)=>{"use strict";n.d(e,{$:()=>i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},2450:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},2471:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},2521:(t,e,n)=>{"use strict";n.d(e,{B7:()=>h,PJ:()=>l});var r=n(5785),i=n(8183),o=n(8243),s=n(8252),u=n(9776),c=n(6024),a=n(3992),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.C6(e,t),e}(o.v),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.C6(e,t),e.prototype[a.D]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.P;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.P;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.P;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.P;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.P;return this.hasError?(t.error(this.thrownError),s.y.EMPTY):this.isStopped?(t.complete(),s.y.EMPTY):(this.observers.push(t),new c.Y(this,t))},e.prototype.asObservable=function(){var t=new i.c;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.c),f=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.C6(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.y.EMPTY},e}(h)},2791:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});var r=n(8183),i=n(4147),o=n(46);function s(t){return new r.c(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?(0,i.H)(n):(0,o.I)()).subscribe(e)})}},3155:(t,e,n)=>{"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{y:()=>r})},3163:(t,e,n)=>{"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,{G:()=>r})},3488:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"==typeof t}},3550:(t,e,n)=>{"use strict";n.d(e,{of:()=>s});var r=n(1931),i=n(5090),o=n(7339);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return(0,r.m)(n)?(t.pop(),(0,o.V)(t,n)):(0,i.c)(t)}},3585:(t,e,n)=>{"use strict";n.d(e,{i:()=>l});var r=n(1506),i=n(568),o=n(7214),s=n(2013),u=n(4276),c=n(3155),a=n(3163),l=function(t){if(t&&"function"==typeof t[s.s])return l=t,function(t){var e=l[s.s]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,u.X)(t))return(0,r.v)(t);if((0,c.y)(t))return n=t,function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.T),t};if(t&&"function"==typeof t[o.lJ])return e=t,function(t){for(var n=e[o.lJ]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};var e,n,l,h=(0,a.G)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+h+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},3620:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(5785),i=n(8243);function o(t){return void 0===t&&(t=null),function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.defaultValue))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.C6(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.v)},3860:(t,e,n)=>{"use strict";n.d(e,{s:()=>u});var r=n(5785),i=n(8243),o=n(1515),s=n(46);function u(t){return function(e){return 0===t?(0,s.I)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new o.k}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.v)},3992:(t,e,n)=>{"use strict";n.d(e,{D:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},4137:(t,e,n)=>{"use strict";n.d(e,{gn:()=>c,tS:()=>a,zA:()=>u});var r=n(5785),i=n(8243),o=n(8183),s=n(3585),u=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.v),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.v);function a(t,e){if(!e.closed){if(t instanceof o.c)return t.subscribe(e);var n;try{n=(0,s.i)(t)(e)}catch(t){e.error(t)}return n}}},4147:(t,e,n)=>{"use strict";n.d(e,{H:()=>s});var r=n(8183),i=n(3585),o=n(659);function s(t,e){return e?(0,o.c)(t,e):t instanceof r.c?t:new r.c((0,i.i)(t))}},4274:(t,e,n)=>{"use strict";n.d(e,{q:()=>o});var r=n(5785),i=n(1908),o=function(t){function e(n,r){void 0===r&&(r=i._.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.C6(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i._)},4276:(t,e,n)=>{"use strict";n.d(e,{X:()=>r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},4517:(t,e,n)=>{"use strict";n.d(e,{$:()=>a});var r=n(7649),i=n(7377),o=n(3860),s=n(3620),u=n(9471),c=n(8958);function a(t,e){var n=arguments.length>=2;return function(a){return a.pipe(t?(0,i.p)(function(e,n){return t(e,n,a)}):c.D,(0,o.s)(1),n?(0,s.U)(e):(0,u.v)(function(){return new r.G}))}}},5020:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,m:()=>o});var r=n(8958);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.D:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},5090:(t,e,n)=>{"use strict";n.d(e,{c:()=>s});var r=n(8183),i=n(1506),o=n(7339);function s(t,e){return e?(0,o.V)(t,e):new r.c((0,i.v)(t))}},5255:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},5308:(t,e,n)=>{"use strict";n.d(e,{G:()=>c,f:()=>a});var r=n(5785),i=n(2521),o=n(8183),s=n(8252),u=n(6991),c=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.C6(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.y).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.y.EMPTY)),t},e.prototype.refCount=function(){return(0,u.B)()(this)},e}(o.c),a=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.C6(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.PJ)},5350:(t,e,n)=>{"use strict";n.d(e,{H:()=>i});var r=n(8243);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.v?i:null}return!0}},5389:(t,e,n)=>{"use strict";n.d(e,{R:()=>i});var r=n(5785),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.C6(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.C6(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(8252).y))},5594:(t,e,n)=>{"use strict";n.d(e,{E:()=>u,I:()=>r});var r,i=n(46),o=n(3550),s=n(7517);r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,s.$)(this.error);case"C":return(0,i.I)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},5662:(t,e,n)=>{"use strict";n.d(e,{O:()=>u});var r=n(8183),i=n(739),o=n(6381),s=n(1931);function u(t,e,n){void 0===t&&(t=0);var u=-1;return(0,o.k)(e)?u=Number(e)<1?1:Number(e):(0,s.m)(e)&&(n=e),(0,s.m)(n)||(n=i.b),new r.c(function(e){var r=(0,o.k)(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:u,subscriber:e})})}function c(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},5693:(t,e,n)=>{"use strict";n.d(e,{T:()=>o});var r=n(5785),i=n(8243);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.v)},5785:(t,e,n)=>{"use strict";n.d(e,{C6:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},5980:(t,e,n)=>{"use strict";function r(){}n.d(e,{l:()=>r})},5987:(t,e,n)=>{"use strict";n.d(e,{I:()=>o});var r=n(2347),i=n(568),o={closed:!0,next:function(t){},error:function(t){if(r.$.useDeprecatedSynchronousErrorHandling)throw t;(0,i.T)(t)},complete:function(){}}},6024:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i});var r=n(5785),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.C6(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(8252).y)},6381:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});var r=n(7371);function i(t){return!(0,r.c)(t)&&t-parseFloat(t)+1>=0}},6885:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var r=n(5785),i=n(2521),o=n(8252),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.C6(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.y.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.y.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.B7)},6991:(t,e,n)=>{"use strict";n.d(e,{B:()=>o});var r=n(5785),i=n(8243);function o(){return function(t){return t.lift(new s(t))}}var s=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new u(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.C6(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.v)},7103:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},7214:(t,e,n)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,{lJ:()=>i});var i=r()},7339:(t,e,n)=>{"use strict";n.d(e,{V:()=>o});var r=n(8183),i=n(8252);function o(t,e){return new r.c(function(n){var r=new i.y,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},7371:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},7372:(t,e,n)=>{"use strict";n.d(e,{E:()=>i});var r=n(5785),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(8243).v)},7377:(t,e,n)=>{"use strict";n.d(e,{p:()=>o});var r=n(5785),i=n(8243);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.v)},7403:(t,e,n)=>{"use strict";n.d(e,{x:()=>o});var r=n(3550),i=n(668);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.K)()(r.of.apply(void 0,t))}},7474:(t,e,n)=>{"use strict";n.d(e,{I:()=>l,$:()=>a});var r=n(5785),i=1,o=function(){return Promise.resolve()}(),s={};function u(t){return t in s&&(delete s[t],!0)}var c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(c=e.flush.bind(e,null),a=i++,s[a]=!0,o.then(function(){return u(a)&&c()}),a)));var c,a},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(u(n),e.scheduled=void 0)},e}(n(5389).R),a=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(4274).q))(c),l=a},7517:(t,e,n)=>{"use strict";n.d(e,{$:()=>i});var r=n(8183);function i(t,e){return e?new r.c(function(n){return e.schedule(o,0,{error:t,subscriber:n})}):new r.c(function(e){return e.error(t)})}function o(t){var e=t.error;t.subscriber.error(e)}},7566:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();e.UnsubscriptionError=n},7649:(t,e,n)=>{"use strict";n.d(e,{G:()=>r});var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},7758:(t,e,n)=>{var r;self,r=()=>(()=>{"use strict";var t={466:()=>{!function(t){function e(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof t.CustomEvent&&(e.prototype=t.Event.prototype,t.CustomEvent=e)}(window)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};function o(t){return(t.charAt(0)+t.slice(1).replace(/([A-Z])/g,"-$&")).toLowerCase()}r.r(i),r.d(i,{createSetupElement:()=>f,generateCustomElementWrapper:()=>h,makeGenericEffectsDriver:()=>d});var s=1e3;const u=n(7828),c=n(8256);function a(t,e,n,r,i){var o=e.replace(/-([a-z])/gi,function(t,e){return e.toUpperCase()});t[o]=r.map(function(t){var e=t.get(o),r=n;return e&&e.reflectAs&&n&&(r=e.reflectAs(n)),e&&e.reflectAs===Boolean&&(r=""===n),i&&(i[o]=r),r}).withDefault(n)}const l=n(1571);function h(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{useShadowDOM:!0},l=i.useShadowDOM?c.Maybe.just(function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!!window.HTMLTemplateElement;return e=r?function(t){var e=document.createElement("template");return e.innerHTML="<style>".concat(t,'</style><div class="root"></div>'),e.content}(n):function(t){var e=document.createDocumentFragment(),n=document.createElement("style");n.appendChild(document.createTextNode(t));var r=document.createElement("div");return r.className="root",e.appendChild(n),e.appendChild(r),e}(n),function(t){if(t.shadowRoot)return t.shadowRoot.querySelector("div");t.attachShadow?t.attachShadow({mode:"open"}):Object.assign(t,{shadowRoot:t});var i=document.importNode(e,!0);r||(i.querySelector("style").sheet.cssText=n);var o=t.shadowRoot;return o.appendChild(i),o.querySelector("div")}}(t,i.css)):c.Maybe.nothing(),h=Array.isArray(i.props)?c.Maybe.just((n=i.props,{fnHashByName:r=n.reduce(function(t,e){return t.set(e.name,e),t},new Map),hooks:{init:function(t){t.__innerProps$=new u.BehaviorSubject({})},connectedCallback:function(t){var e,n,i,o,s,u=t.__innerProps$.getValue(),l=Object.assign({},u);t.constructor.observedAttributes.forEach(function(e){null!==t.getAttribute(e)&&a(t,e,t.getAttribute(e),c.Maybe.just(r),l)}),e=u,n=l,i=!0,o=Object.keys(e),s=Object.keys(n),o.length===s.length&&(o.forEach(function(t){n.hasOwnProperty(t)&&e[t]===n[t]||(i=!1)}),i)||t.__innerProps$.next(l)},classSetup:function(t){Object.assign(t,{observedAttributes:n.filter(function(t){return t.reflectAs}).map(function(t){return t.name}).map(o)}),n.forEach(function(e){Object.defineProperty(t.prototype,e.name,{get:function(){return this.__innerProps$.getValue()[e.name]},set:function(n){if(this.__innerProps$.getValue()[e.name]!==n){var r=o(e.name),i=t.observedAttributes.includes(r);i&&(!0===n?this.setAttribute(r,""):n||0===n||""===n?this.setAttribute(r,String(n)):this.removeAttribute(r)),!this.__attached&&i&&!1!==n||(this.__innerProps$.getValue()[e.name]=n,this.__innerProps$.next(this.__innerProps$.getValue()))}}})})}}})):c.Maybe.nothing(),f=function(){var t=Reflect.construct(HTMLElement,[],f);return i.prototypeExtensions&&Object.keys(i.prototypeExtensions).forEach(function(e){t[e]||(t[e]=i.prototypeExtensions[e])}),t.__onTeardown=[],t.__onAttached=[],t.__guid=s++,h.map(function(e){return(0,e.hooks.init)(t)}),l.map(function(e){return e(t)}).map(function(n){var r=c.Maybe.maybe(t.__innerProps$).map(function(n){return e(t,n)}).withDefaultFn(function(){return e(t)});p(t,n,r),t.__shadowAppBooted=!0}),t};return function(t){try{Object.defineProperty(t,"is",{value:name,writable:!1}),Object.defineProperty(t,"localName",{value:name,writable:!1})}catch(t){}}(f),f.prototype=Object.create(HTMLElement.prototype,{component:{writable:!0,enumerable:!0},constructor:{value:f},connectedCallback:{writable:!0,value:function(){var t=this;this.dataset.guid="".concat(this.__guid),i.useShadowDOM&&this.__shadowAppBooted||(l.map(function(e){return e(t)}).alt(c.Maybe.just(this)).map(function(n){var r=c.Maybe.maybe(t.__innerProps$).map(function(n){return e(t,n)}).withDefaultFn(function(){return e(t)});p(t,n,r)}),this.__shadowAppBooted=!0),h.map(function(e){(0,e.hooks.connectedCallback)(t)}),this.__attached=!0,this.__onAttached.forEach(function(e){return e.call(t)})}},disconnectedCallback:{writable:!0,value:function(){var t=this;this.__onTeardown.reverse().forEach(function(e){return e.call(t)}),this.__onTeardown=[],this.__onAttached=[],this.__attached=!1,this.__shadowAppBooted=!1}},attributeChangedCallback:{writable:!0,value:function(t,e,n){e!==n&&this.__attached&&a(this,t,n,h.map(function(t){return t.fnHashByName}))}}}),h.map(function(t){return(0,t.hooks.classSetup)(f)}),f}function f(t){return function(e){return function(n){var r=function(){window.customElements.get(n)||window.customElements.define(n,t(n,e))};window.customElements?r():(0,u.interval)(5).pipe((0,l.filter)(function(){return!!window.customElements}),(0,l.take)(1)).toPromise().then(function(){r()})}}}function p(t,e,n){var r=document.createElement("div");e.appendChild(r);var i=n.DOM$.subscribe(function(t){e.replaceChild(t,e.firstChild)}),o=n.settled$.subscribe(function(e){t.settled=e,e&&t.dispatchEvent(new CustomEvent("settled"))}),s=n.teardown$.subscribe(function(e){t.__onTeardown.push(e)});t.__onTeardown.push(function(){[i,o,s].forEach(function(t){return t.unsubscribe()})})}function d(t){return function(e){e.subscribe({next:function(e){e(t)},error:function(){},complete:function(){}})}}return r(466),i})(),t.exports=r()},7779:(t,e,n)=>{"use strict";n.d(e,{F:()=>u});var r=n(5785),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(8243).v),o=n(3585),s=n(8183);function u(t,e,n,r,u){if(void 0===u&&(u=new i(t,n,r)),!u.closed)return e instanceof s.c?e.subscribe(u):(0,o.i)(e)(u)}},7799:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return null!==t&&"object"==typeof t}},7828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ArgumentOutOfRangeError:()=>I.k,AsyncSubject:()=>l.h,BehaviorSubject:()=>c.t,ConnectableObservable:()=>i.G,EMPTY:()=>G.w,EmptyError:()=>A.G,GroupedObservable:()=>o.k,NEVER:()=>lt,Notification:()=>E.E,NotificationKind:()=>E.I,ObjectUnsubscribedError:()=>j.P,Observable:()=>r.c,ReplaySubject:()=>a.m,Scheduler:()=>_._,Subject:()=>u.B7,Subscriber:()=>C.v,Subscription:()=>S.y,TimeoutError:()=>R.M,UnsubscriptionError:()=>M.Z,VirtualAction:()=>x,VirtualTimeScheduler:()=>w,animationFrame:()=>g,animationFrameScheduler:()=>m,asap:()=>h.I,asapScheduler:()=>h.$,async:()=>f.b,asyncScheduler:()=>f.E,bindCallback:()=>D,bindNodeCallback:()=>L,combineLatest:()=>H.zV,concat:()=>J.x,config:()=>Ot.$,defer:()=>Y.v,empty:()=>G.I,forkJoin:()=>X,from:()=>K.H,fromEvent:()=>tt.R,fromEventPattern:()=>nt,generate:()=>rt,identity:()=>O.D,iif:()=>ot,interval:()=>ut,isObservable:()=>P,merge:()=>at.h,never:()=>ht,noop:()=>T.l,observable:()=>s.s,of:()=>ft.of,onErrorResumeNext:()=>pt,pairs:()=>dt,partition:()=>gt,pipe:()=>N.F,queue:()=>p.g,queueScheduler:()=>p.T,race:()=>wt.O4,range:()=>xt,scheduled:()=>Tt.c,throwError:()=>St.$,timer:()=>Ct.O,using:()=>Et,zip:()=>Nt.yU});var r=n(8183),i=n(5308),o=n(8229),s=n(2013),u=n(2521),c=n(1891),a=n(572),l=n(6885),h=n(7474),f=n(739),p=n(403),d=n(5785),b=n(5389),v=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return d.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(b.R),y=n(4274),m=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(y.q))(v),g=m,w=function(t){function e(e,n){void 0===e&&(e=x),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return d.C6(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.q),x=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return d.C6(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(b.R),_=n(1908),S=n(8252),C=n(8243),E=n(5594),N=n(5020),T=n(5980),O=n(8958);function P(t){return!!t&&(t instanceof r.c||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var I=n(1515),A=n(7649),j=n(9776),M=n(2450),R=n(7103),V=n(5693),k=n(5350),$=n(7371),F=n(1931);function D(t,e,n){if(e){if(!(0,F.m)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return D(t,n).apply(void 0,r).pipe((0,V.T)(function(t){return(0,$.c)(t)?e.apply(void 0,t):e(t)}))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,s=this,u={context:s,subject:o,callbackFunc:t,scheduler:n};return new r.c(function(r){if(n){var i={args:e,subscriber:r,params:u};return n.schedule(q,0,i)}if(!o){o=new l.h;try{t.apply(s,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){(0,k.H)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)})}}function q(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new l.h;try{o.apply(s,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(u.schedule(B,0,{value:r,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(r))}function B(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function L(t,e,n){if(e){if(!(0,F.m)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return L(t,n).apply(void 0,r).pipe((0,V.T)(function(t){return(0,$.c)(t)?e.apply(void 0,t):e(t)}))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.c(function(r){var i=o.context,s=o.subject;if(n)return n.schedule(z,0,{params:o,subscriber:r,context:i});if(!s){s=o.subject=new l.h;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?s.error(n):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){(0,k.H)(s)?s.error(t):console.warn(t)}}return s.subscribe(r)})}}function z(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,s=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new l.h;try{o.apply(i,s.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(u.schedule(W,0,{err:r,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(U,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(W,0,{err:t,subject:c}))}}this.add(c.subscribe(r))}function U(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function W(t){var e=t.err;t.subject.error(e)}var H=n(9489),J=n(7403),Y=n(2791),G=n(46),Z=n(3163),K=n(4147);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if((0,$.c)(n))return Q(n,null);if((0,Z.G)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Q(r.map(function(t){return n[t]}),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Q(t=1===t.length&&(0,$.c)(t[0])?t[0]:t,null).pipe((0,V.T)(function(t){return i.apply(void 0,t)}))}return Q(t,null)}function Q(t,e){return new r.c(function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,s=0,u=function(u){var c=(0,K.H)(t[u]),a=!1;n.add(c.subscribe({next:function(t){a||(a=!0,s++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&a||(s===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},c=0;c<r;c++)u(c);else n.complete()})}var tt=n(9883),et=n(8764);function nt(t,e,n){return n?nt(t,e).pipe((0,V.T)(function(t){return(0,$.c)(t)?n.apply(void 0,t):n(t)})):new r.c(function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if((0,et.T)(e))return function(){return e(i,r)}})}function rt(t,e,n,i,o){var s,u;if(1==arguments.length){var c=t;u=c.initialState,e=c.condition,n=c.iterate,s=c.resultSelector||O.D,o=c.scheduler}else void 0===i||(0,F.m)(i)?(u=t,s=O.D,o=i):(u=t,s=i);return new r.c(function(t){var r=u;if(o)return o.schedule(it,0,{subscriber:t,iterate:n,condition:e,resultSelector:s,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){return void t.error(e)}if(!i){t.complete();break}}var c=void 0;try{c=s(r)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}})}function it(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ot(t,e,n){return void 0===e&&(e=G.w),void 0===n&&(n=G.w),(0,Y.v)(function(){return t()?e:n})}var st=n(6381);function ut(t,e){return void 0===t&&(t=0),void 0===e&&(e=f.b),(!(0,st.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=f.b),new r.c(function(n){return n.add(e.schedule(ct,t,{subscriber:n,counter:0,period:t})),n})}function ct(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var at=n(2151),lt=new r.c(T.l);function ht(){return lt}var ft=n(3550);function pt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return G.w;var n=t[0],i=t.slice(1);return 1===t.length&&(0,$.c)(n)?pt.apply(void 0,n):new r.c(function(t){var e=function(){return t.add(pt.apply(void 0,i).subscribe(t))};return(0,K.H)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function dt(t,e){return e?new r.c(function(n){var r=Object.keys(t),i=new S.y;return i.add(e.schedule(bt,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i}):new r.c(function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function bt(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var vt=n(163),yt=n(3585),mt=n(7377);function gt(t,e,n){return[(0,mt.p)(e,n)(new r.c((0,yt.i)(t))),(0,mt.p)((0,vt.A)(e,n))(new r.c((0,yt.i)(t)))]}var wt=n(506);function xt(t,e,n){return void 0===t&&(t=0),new r.c(function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(_t,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}})}function _t(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var St=n(7517),Ct=n(5662);function Et(t,e){return new r.c(function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?(0,K.H)(i):G.w).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var Nt=n(8272),Tt=n(659),Ot=n(2347)},8183:(t,e,n)=>{"use strict";n.d(e,{c:()=>l});var r=n(5350),i=n(8243),o=n(3992),s=n(5987),u=n(2013),c=n(5020),a=n(2347),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,u=function(t,e,n){if(t){if(t instanceof i.v)return t;if(t[o.D])return t[o.D]()}return t||e||n?new i.v(t,e,n):new i.v(s.I)}(t,e,n);if(r?u.add(r.call(u,this.source)):u.add(this.source||a.$.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),a.$.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.$.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,r.H)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=h(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[u.s]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0,c.m)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=h(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function h(t){if(t||(t=a.$.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},8229:(t,e,n)=>{"use strict";n.d(e,{$:()=>c,k:()=>f});var r=n(5785),i=n(8243),o=n(8252),s=n(8183),u=n(2521);function c(t,e,n,r){return function(i){return i.lift(new a(t,e,n,r))}}var a=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.B7,n.set(e,i);var o=new f(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new f(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.v),h=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.C6(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.v),f=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.C6(e,t),e.prototype._subscribe=function(t){var e=new o.y,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new p(n)),e.add(r.subscribe(t)),e},e}(s.c),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.C6(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.y)},8243:(t,e,n)=>{"use strict";n.d(e,{v:()=>l});var r=n(5785),i=n(8764),o=n(5987),s=n(8252),u=n(3992),c=n(2347),a=n(568),l=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.I;break;case 1:if(!n){s.destination=o.I;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,n,r,i)}return s}return r.C6(e,t),e.prototype[u.D]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.y),h=function(t){function e(e,n,r,s){var u,c=t.call(this)||this;c._parentSubscriber=e;var a=c;return(0,i.T)(n)?u=n:n&&(u=n.next,r=n.error,s=n.complete,n!==o.I&&(a=Object.create(n),(0,i.T)(a.unsubscribe)&&c.add(a.unsubscribe.bind(a)),a.unsubscribe=c.unsubscribe.bind(c))),c._context=a,c._next=u,c._error=r,c._complete=s,c}return r.C6(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.$.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.$.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,a.T)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,a.T)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.$.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.$.useDeprecatedSynchronousErrorHandling)throw t;(0,a.T)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.$.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,a.T)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},8252:(t,e,n)=>{"use strict";n.d(e,{y:()=>u});var r=n(7371),i=n(3163),o=n(8764),s=n(2450),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,u=n._parentOrParents,a=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof t)u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f)u[f].remove(this);if((0,o.T)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(t){e=t instanceof s.Z?c(t.errors):[t]}}if((0,r.c)(h)){f=-1;for(var p=h.length;++f<p;){var d=h[f];if((0,i.G)(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof s.Z?e=e.concat(c(t.errors)):e.push(t)}}}if(e)throw new s.Z(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce(function(t,e){return t.concat(e instanceof s.Z?e.errors:e)},[])}},8256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Maybe:()=>r});class r{constructor(t){this.value=t}static just(t){if(null==t)throw new TypeError("Value passed to just must exist!");return new r(t)}static nothing(){return new r}static maybe(t){return null==t?r.nothing():r.just(t)}static join(t){return t.withDefault(r.nothing())}static sequence(t){return t.reduce((t,e)=>t.bind(t=>e.map(e=>t.concat(e))),r.just([]))}static traverse(t,e){return r.sequence(e).map(e=>e.map(t))}static justMap(t,e){return e.reduce((e,n)=>{const r=t(n);return void 0!==r.value?e.concat(r.value):e},[])}static filterSomethings(t){return t.reduce((t,e)=>(e.value&&t.push(e.value),t),[])}static lift(t){return e=>e.map(t)}static lift2(t){return(e,n)=>r.sequence([e,n]).map(e=>t(e[0],e[1]))}static lift3(t){return(e,n,i)=>r.sequence([e,n,i]).map(e=>t(e[0],e[1],e[2]))}static toPromise(t){return t.hasSomething?Promise.resolve(t.value):Promise.reject()}map(t){return void 0!==this.value?r.maybe(t(this.value)):r.nothing()}asyncMap(t){return void 0!==this.value?t(this.value).then(t=>{if(null==t)throw"Promise Conversion from a Maybe.Nothing";return t}):Promise.reject()}alt(t){return void 0!==this.value?this:t}altMap(t){return void 0!==this.value?this:t()}ap(t){return t.bind(t=>this.map(t))}bind(t){return r.join(this.map(t))}withDefault(t){return void 0!==this.value?this.value:t}withDefaultFn(t){return void 0!==this.value?this.value:t()}get hasNothing(){return void 0===this.value}get hasSomething(){return!this.hasNothing}unsafeElse(t){this.hasNothing&&t()}}r.of=r.maybe},8272:(t,e,n)=>{"use strict";n.d(e,{ee:()=>l,yU:()=>a});var r=n(5785),i=n(5090),o=n(7371),s=n(8243),u=n(7214),c=n(4137);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),(0,i.c)(t,void 0).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.C6(e,t),e.prototype._next=function(t){var e=this.iterators;(0,o.c)(t)?e.push(new p(t)):"function"==typeof t[u.lJ]?e.push(new f(t[u.lJ]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,u=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),u.done)return void n.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.v),f=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),p=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[u.lJ]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),d=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.C6(e,t),e.prototype[u.lJ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,c.tS)(this.observable,new c.zA(this))},e}(c.gn)},8527:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5255),i=n(9212);e.empty={closed:!0,next:function(t){},error:function(t){if(r.config.useDeprecatedSynchronousErrorHandling)throw t;i.hostReportError(t)},complete:function(){}}},8575:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3488),s=n(8527),u=n(936),c=n(9132),a=n(5255),l=n(9212),h=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.empty;break;case 1:if(!n){o.destination=s.empty;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new f(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new f(o,n,r,i)}return o}return i(e,t),e.prototype[c.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(u.Subscription);e.Subscriber=h;var f=function(t){function e(e,n,r,i){var u,c=t.call(this)||this;c._parentSubscriber=e;var a=c;return o.isFunction(n)?u=n:n&&(u=n.next,r=n.error,i=n.complete,n!==s.empty&&(a=Object.create(n),o.isFunction(a.unsubscribe)&&c.add(a.unsubscribe.bind(a)),a.unsubscribe=c.unsubscribe.bind(c))),c._context=a,c._next=u,c._error=r,c._complete=i,c}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;a.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=a.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):l.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;l.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};a.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),a.config.useDeprecatedSynchronousErrorHandling)throw t;l.hostReportError(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!a.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return a.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(l.hostReportError(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(h);e.SafeSubscriber=f},8764:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}n.d(e,{T:()=>r})},8958:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{D:()=>r})},9132:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.$$rxSubscriber=e.rxSubscriber},9143:(t,e,n)=>{"use strict";n.d(e,{J:()=>o});var r=n(5785),i=n(8243);function o(){return function(t){return t.lift(new s)}}var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.C6(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(i.v)},9212:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hostReportError=function(t){setTimeout(function(){throw t},0)}},9377:(t,e,n)=>{"use strict";n.d(e,{ZZ:()=>u,qI:()=>l});var r=n(5785),i=n(5693),o=n(4147),s=n(4137);function u(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(u(function(n,r){return(0,o.H)(t(n,r)).pipe((0,i.T)(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.concurrent))},t}(),a=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.zA(this),n=this.destination;n.add(e);var r=(0,s.tS)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.gn),l=u},9471:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});var r=n(5785),i=n(7649),o=n(8243);function s(t){return void 0===t&&(t=a),function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.errorFactory))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.C6(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.v);function a(){return new i.G}},9489:(t,e,n)=>{"use strict";n.d(e,{ZS:()=>h,zV:()=>l});var r=n(5785),i=n(1931),o=n(7371),s=n(7372),u=n(7779),c=n(5090),a={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return(0,i.m)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,o.c)(t[0])&&(t=t[0]),(0,c.c)(t,r).lift(new h(n))}var h=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.resultSelector))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.C6(e,t),e.prototype._next=function(t){this.values.push(a),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add((0,u.F)(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===a?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.E)},9776:(t,e,n)=>{"use strict";n.d(e,{P:()=>r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},9883:(t,e,n)=>{"use strict";n.d(e,{R:()=>u});var r=n(8183),i=n(7371),o=n(8764),s=n(5693);function u(t,e,n,a){return(0,o.T)(n)&&(a=n,n=void 0),a?u(t,e,n).pipe((0,s.T)(function(t){return(0,i.c)(t)?a.apply(void 0,t):a(t)})):new r.c(function(r){c(t,e,function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}function c(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,n,i),o=function(){return s.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,n),o=function(){return u.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var a=t;t.addListener(e,n),o=function(){return a.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l<h;l++)c(t[l],e,n,r,i)}r.add(o)}},9919:(t,e,n)=>{"use strict";n.d(e,{F:()=>o});var r=n(5785),i=n(8243);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.C6(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.v)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(e,n){Object.keys(n).forEach(r=>{if(!Array.isArray(n[r])&&!Array.isArray(e[r])&&e.hasOwnProperty(r)&&"object"==typeof n[r])return t(e[r],n[r]);e[r]=n[r]})}n.r(r),n.d(r,{init:()=>rt});var e=n(9883),i=n(7377),o=n(5693),s=n(3860),u=n(8256);function c(t,e,n,r,i=null,o="success"){const s=window.isTestingTecton?window:t;null==s||s.postMessage({tectonic:!0,value:r.withDefault(""),status:o,type:e,protocol:n,guid:i},"*")}function a(t,e){c(window.parent,t,"MESSAGE",e)}function l(t,e){c(window,t,"BROADCAST",e),window.isTestingTecton||Array.prototype.slice.call(document.querySelectorAll("tecton-platform-outlet, tecton-outlet, tecton-tab-pane")).forEach(n=>{const r=n.shadowRoot&&n.shadowRoot.querySelector("iframe");if(null==r?void 0:r.contentWindow)switch(t){case"platformScrollChanged":case"platformSizeChanged":let{value:i}=Object.assign({},e);i=Object.assign(JSON.parse(i),{outletOffset:n.getBoundingClientRect().top}),c(r.contentWindow,t,"BROADCAST",new u.Maybe(JSON.stringify(i)));break;default:c(r.contentWindow,t,"BROADCAST",e)}})}class h{constructor(){this.messageNum=0,this.firehose$=(0,e.R)(window,"message").pipe((0,i.p)(t=>t.data.tectonic))}onMessage(t,e="MESSAGE",n=null){return function(t,e,n,r=null){return e.pipe((0,i.p)(e=>e.data.type===t&&(!r||e.data.guid===r)&&e.data.protocol===n),(0,o.T)(e=>{const n=e.data.value&&JSON.parse(e.data.value),r=e.source||(window.parent.location.origin===e.origin?window.parent:window.location.origin===e.origin?window:null);return"success"===e.data.status?{status:"success",value:n,sender:r,type:t,guid:e.data.guid}:{status:"error",message:n.message,sender:r,type:t,guid:e.data.guid}}))}(t,this.firehose$,e,n).pipe((0,o.T)(f))}sendRequest(t,e,n){const r=this.getNextMessageNumber();c(window.isTectonPlatform?window:window.parent,t,"REQUEST",e,r,"success");const i=[];return i.push(this.onMessage(t,"RESPONSE",r).pipe((0,s.s)(1)).toPromise()),n&&n.timeout&&i.push(new Promise((i,o)=>{setTimeout(()=>{o({status:"error",message:`The request ${e} has timed out`,sender:window,type:t,guid:r})},n.timeout)})),Promise.race(i)}sendResponse(t,e){return this.onMessage(t,"REQUEST").subscribe(t=>Promise.resolve().then(()=>{if("success"===t.status)return e(t.value,t.sender);throw Error("Don't send Error Message as Request!")}).then(e=>{if(null!==e)return p(t.sender,t.type,e,t.guid,"success")}).catch(e=>p(t.sender,t.type,{message:e.message},t.guid,"error")))}getNextMessageNumber(){const t=this.messageNum+1;return this.messageNum=t,t}}function f(t){if("success"===t.status)return t;throw t}function p(t,e,n,r=null,i){c(t,e,"RESPONSE",u.Maybe.maybe(n).map(JSON.stringify),r,i)}class d extends h{constructor(t,e){super(),this.domains=new Set,this.configSubscription=t.subscribe(this.getConfigDomains.bind(this)),this.firehose$=this.firehose$.pipe((0,i.p)(t=>e||this.domains.has(t.origin)))}teardown(){this.configSubscription.unsubscribe()}getConfigDomains(t){let e=Array(window.location.origin.toString());const n=Object.keys(t.features).map(n=>{const r=t.features[n].additionalDomains;return r&&r.length>0&&(e=e.concat(r)),Object.keys(t.features[n].modules).map(e=>{const r=t.features[n].modules[e].url;try{return new URL(r,window.location.href).origin}catch(t){return""}})}),r=e.concat(...n);this.domains=function(t){return new Set(t.filter(t=>""!==t))}(r)}}var b=n(1891);function v(t,e={}){return Object.keys(e).filter(e=>{const n=e.lastIndexOf(".");return e.slice(0,n).startsWith(t)}).reduce((t,n)=>{const r=n.lastIndexOf(".");return t[n.substring(r+1)]=e[n],t},Object.create({}))}function y(t,e,n=[]){for(const[r,i]of Object.entries(e)){const e=[...n,r];if(r===t)return e.reverse();if("object"==typeof i&&Object.keys(i).length>0){const n=y(t,i,e);if(n.length>0)return n}}return[]}function m(t,e){if(!t||"string"!=typeof t)return[];const[n,r]=t.split("::");if(!n||!r)return[];const i=e[n];return i?y(r,i).map(t=>`${n}::${t}`):[]}function g(t,e,n,r,i,o,s,c,a,l,h,f={}){return function(t,e,n){return u.Maybe.sequence([t,e]).map(()=>{const t=n.withDefault("");return""!==t?Promise.resolve(u.Maybe.just(t)):Promise.resolve(u.Maybe.nothing())}).withDefaultFn(()=>Promise.resolve(u.Maybe.nothing()))}(r,i,s).then(async e=>{const n=await function(t,e){return Promise.all(e.map(async e=>{const n=await t(e.featureName),r=n.modules[e.moduleName],i=n.additionalDomains,o=n.allowDirectives;return Object.assign(Object.assign(Object.assign({},e),r),{additionalDomains:i,allowDirectives:o})}))}(t.dynamicConfigFetch,o),r=e.map(t=>m(t,f)).bind(t=>w(n,t,c)),i=u.Maybe.maybe(n[0]);return e.map(()=>r).altMap(()=>u.Maybe.just(i)).bind(t=>t)}).then(async t=>t.map(t=>{var r,i,o,s;const u=`${n}.${t.featureName}.${t.moduleName}`,c=(null===(i=null===(r=a.features[l])||void 0===r?void 0:r.modules[h])||void 0===i?void 0:i.requiredUserCapabilities)||[],f=(null===(s=null===(o=a.features[t.featureName])||void 0===o?void 0:o.modules[t.moduleName])||void 0===s?void 0:s.requiredUserCapabilities)||[],p=[...new Set([...c,...f])];return{moduleId:u,initialParams:v(u,e.getValue().currentParams),featureName:t.featureName,url:t.url,minHeight:t.meta.type.minHeight||"",tabLabelOverride:t.tabLabelOverride,formPostAuth:!!t.formPostAuth,loadingOptions:t.loadingOptions,additionalDomains:t.additionalDomains,allowDirectives:t.allowDirectives,requiredUserCapabilities:p,rightsEnabled:t.rightsEnabled}}))}function w(t,e,n){return u.Maybe.maybe(t.find(t=>{const r=n.map(e=>{var n;return null===(n=t.additionalContextRequirements)||void 0===n?void 0:n.includes(e)}).withDefault(!0);return t.meta.type.context===e[0]&&r})).altMap(()=>0===e.length&&u.Maybe.nothing()||w(t,e.slice(1),n))}async function x(t,e){const n=t.length%3==1?"outlet":"module",r=t[0],i=t.length<5;let o,s,u,c,a;if("tectonOverpanel"===r)o=_({path:t.slice(2),outletModuloVal:2}),s=(await e(t[1])).configuredOverpanels[t[2]];else{const r="outlet"===n?t.slice(-3,-2)[0]:t.slice(-2,-1)[0],i="outlet"===n?t.slice(-2,-1)[0]:t.slice(-1)[0],u="outlet"===n?-1:3;o=_({path:t.slice(u),outletModuloVal:0}),s=await e(r,i)}return"outlet"===n?(i?(u=s.featureName,c=s.moduleName):(u=t[t.length-3],c=t[t.length-2]),a=t[t.length-1],o=o.slice(0,-2),{pathType:n,featureName:u,moduleName:c,outletName:a,configPath:o,pathOrigin:r,treeFromRoot:s}):(i?(u=s.featureName,c=s.moduleName):(u=t[t.length-2],c=t[t.length-1]),{pathType:n,featureName:u,moduleName:c,configPath:o,pathOrigin:r,treeFromRoot:s})}function _({path:t,outletModuloVal:e}){const n=e+2;return t.reduce((t,r,i)=>{if(i%3===e)return t.concat(["configuredOutlets",r]);if(i%3===n&&2!==i){const e=t[t.length-1];return t[t.length-1]=`${e}-${r}`,t}return t.concat(r)},[])}function S(t,e){return t.reduce((t,e)=>{if(Array.isArray(t)){const[n,r]=e.split("-");return t[0].hasOwnProperty("tabLabel")||t[0].hasOwnProperty("menuItemLabel")?function(t,e){let n=-1;const r=t.find(t=>(n=t.modules.findIndex(e),-1!==n));if(r)return r.modules[n]}(t,C(n,r)):t.find(C(n,r))}return t[e]},e)}function C(t,e){return n=>n.featureName===t&&n.moduleName===e}function E(t,e,n){const r=t.getValue();return u.Maybe.maybe(r.features[e]).map(t=>{const r=Object.keys(t.modules).find(e=>t.modules[e].primary),i=t.modules[n]||t.modules[r],o=`${e}.${i.meta.moduleName}`;return{navigable:!!i.navigable,legacy:!!t.legacy,key:t.legacy?t.legacyRouteName:o}})}function N(t,e,n,r,i){!function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("actionRequired");const i=t.onMessage("actionRequired").subscribe(t=>{e.actionRequired(t.value.uuid,t.value.title,t.value.message)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.authorizeTransactionWithMfa){n.add("authorizeTransactionWithMfa");const i=t.sendResponse("authorizeTransactionWithMfa",async t=>e.authorizeTransactionWithMfa(t));r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.clearCacheByPrefix){n.add("clearCache"),n.add("cacheCleared");const i=t.sendResponse("clearCache",function(t){return t.routePrefixes.forEach(function(t){e.clearCacheByPrefix(t),l("cacheCleared",u.Maybe.just(JSON.stringify({cleared:t})))}),Promise.resolve()});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.clearParams){n.add("clearParams");const i=t.onMessage("clearParams").subscribe(t=>{e.clearParams(t.value.moduleId)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.closeOverpanel){n.add("closeOverpanel");const i=t.onMessage("closeOverpanel").pipe((0,o.T)(t=>t.value)).subscribe(e.closeOverpanel);r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.keepAlive){n.add("keepAlive");const i=t.onMessage("keepAlive").subscribe(e.keepAlive);r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.showLoadingModal){n.add("showLoadingModal");const i=t.onMessage("showLoadingModal").subscribe(t=>{e.showLoadingModal(t.value.title)});r.push(()=>i.unsubscribe())}if(e.clearLoadingModal){n.add("clearLoadingModal");const i=t.onMessage("clearLoadingModal").subscribe(()=>{e.clearLoadingModal()});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r,i){if(n.logToServer){r.add("logToServer");const e=t.onMessage("logToServer").subscribe(async t=>{const e=await x(t.value.moduleId.split("."),n.dynamicConfigFetch).then(t=>t.featureName);n.logToServer(e,t.value.message,t.value.level||"info")});i.push(()=>e.unsubscribe())}}(t,0,n,r,i),function(t,e,n,r){if(e.manageChanges){n.add("manageChanges");const i=t.sendResponse("manageChanges",t=>e.manageChanges(t.changeData));r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r,i){if(n.navigateTo){r.add("navigateTo");const o=t.onMessage("navigateTo").subscribe(async t=>{const{moduleName:r,urlParams:i,queryParams:o,moduleId:s}=t.value;let{featureName:u}=t.value;!u&&s&&(u=await x(s.split("."),n.dynamicConfigFetch).then(t=>t.featureName));const c=E(e,u,r);c.map(t=>{if(t.navigable)if(t.legacy)n.navigateTo(!0,t.key,i,o);else{const r=e.getValue().features[u],i=`tectonRoute.${t.key}`;o&&n.updateParams&&n.updateParams(i,o,r.modules[t.key.split(".")[1]].meta.params),n.navigateTo(!1,t.key)}}),c.hasNothing&&n.navigateTo(!0,u,i,o)});i.push(()=>o.unsubscribe())}}(t,e,n,r,i),function(t,e,n,r){if(e.openURL){n.add("openURL");const i=t.onMessage("openURL").subscribe(t=>{const{url:n,options:r}=t.value;e.openURL(n,r)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e){const n=t.onMessage("printWindow").subscribe(()=>{var t;!0===(null===(t=window.Tecton)||void 0===t?void 0:t.inMobileApp)?console.info("printWindow does not support e-banking mobile app environment."):(document.body.focus(),window.print())});e.push(()=>n.unsubscribe())}(t,i),function(t,e,n,r){if(e.refetchAccountsNotification&&e.clearCacheByPrefix&&e.clearTransferCache){n.add("refetchAccountsNotification");const i=t.onMessage("refetchAccountsNotification").subscribe(()=>{e.clearCacheByPrefix("mobilews/account"),e.clearTransferCache(),e.refetchAccountsNotification()});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("removeActionRequired");const i=t.onMessage("removeActionRequired").subscribe(t=>{e.removeActionRequired(t.value.uuid)});r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r){n.add("scrollTo");const i=t.onMessage("scrollTo").subscribe(t=>{var n,r;const i=(null===(r=null===(n=null==e?void 0:e.getSurroundingOffsets)||void 0===n?void 0:n.call(e))||void 0===r?void 0:r.top)||0,o=t.value;o.behavior=o.behavior||"smooth",!0===o.initialize?l("platformScrollChanged",u.Maybe.just(JSON.stringify({scrollY:0,innerHeight:window.innerHeight,innerWidth:window.innerWidth,outletOffset:i,top:i}))):window.scrollTo(o)});r.push(()=>i.unsubscribe())}(t,n,r,i),function(t,e,n){e.add("scrollToTop");const r=t.onMessage("scrollToTop").subscribe(()=>{window.scrollTo(0,0)});n.push(()=>r.unsubscribe())}(t,r,i),function(t,e,n,r){if(e.sendAlert||e.showAlert){n.add("sendAlert"),n.add("sendAlertWithResponse");const i=t.sendResponse("sendAlert",t=>(e.sendAlert||e.showAlert)(t).then(t=>({actionName:t}))),o=t.onMessage("sendAlert").subscribe(t=>{(e.sendAlert||e.showAlert)(t.value)});r.push(()=>{i.unsubscribe(),o.unsubscribe()})}}(t,n,r,i),function(t,e,n,r,i){if(n.updateParams){r.add("setParams");const e=t.onMessage("setParams").subscribe(async t=>{const{moduleId:e,params:r}=t.value,i=await x(e.split("."),n.dynamicConfigFetch),o=await n.dynamicConfigFetch(i.featureName).then(t=>t.modules[i.moduleName].meta.params);n.updateParams(e,r,o)});i.push(()=>e.unsubscribe())}}(t,0,n,r,i),function(t,e,n,r,i){if(e.setOverpanelTitle||e.setPageTitle){e.setOverpanelTitle&&r.add("setOverpanelTitle"),e.setPageTitle&&r.add("setPageTitle");const n=t.onMessage("setTitle").subscribe(async t=>{"tectonOverpanel"===await x(t.value.moduleId.split("."),e.dynamicConfigFetch).then(t=>t.pathOrigin)&&e.setOverpanelTitle?e.setOverpanelTitle(t.value.title):e.setPageTitle&&e.setPageTitle(t.value.title)});i.push(()=>n.unsubscribe())}}(t,n,0,r,i),function(t,e,n,r){const i=e.getCurrentLanguage(),o=new b.t(i);e.languageChanged&&(n.add("languageChanged"),e.languageChanged(t=>{o.next(t)}));const s=o.subscribe((t="en-US")=>{l("streamLanguage",u.Maybe.just(JSON.stringify({langKey:t})))}),c=t.sendResponse("getCurrentLanguage",()=>Promise.resolve({langKey:o.getValue()}));r.push(()=>{[s,c].forEach(t=>t.unsubscribe())})}(t,n,r,i),function(t,e,n,r,i){if(n.showActionSheet){r.add("showActionSheet");const e=t.sendResponse("showActionSheet",t=>n.showActionSheet(t).then(t=>t));i.push(()=>e.unsubscribe())}}(t,0,n,r,i),function(t,e,n,r){if(e.showModal){n.add("sendModal");const i=t.sendResponse("sendModal",t=>e.showModal(t).then(t=>({actionName:t})));r.push(()=>i.unsubscribe())}}(t,n,r,i),function(t,e,n,r,i){if(n.showOverpanel){r.add("showOverpanel");const o=t.sendResponse("showOverpanel",async t=>{var r,i,o,s,u,c,a,l,h;try{let f,p,d,b=[];if(n.getPlatformOverpanels&&(b=await n.getPlatformOverpanels()),t.useRouteConfig){const[e,r]=t.overpanelPath.split(".");p=await n.dynamicConfigFetch(e,r),d=t.overpanelPath,f=await n.dynamicConfigFetch(p.featureName)}else if(b.includes(t.overpanelPath))p={moduleName:t.overpanelPath},d=t.overpanelPath,f={legacyOverpanelName:t.overpanelPath,legacy:!0};else{const r=(h=e.value,Object.entries(h.features).reduce((t,[e,n])=>{const r=n.configuredOverpanels;return r&&Object.entries(r).filter(([t,e])=>!0===e.public).forEach(([n,r])=>{r.featureName||(r.featureName=e),t[n]=r}),t},{}))[t.overpanelPath];let i;r?(p=r,d=`${r.featureName}.${t.overpanelPath}`,f=await n.dynamicConfigFetch(r.featureName)):(i=await x(t.moduleId.split("."),n.dynamicConfigFetch),p=await n.dynamicConfigFetch(i.featureName).then(e=>{var n;const r=null===(n=e.configuredOverpanels)||void 0===n?void 0:n[t.overpanelPath];if(!r)throw new Error(`Overpanel ${t.overpanelPath} not found.`);return r}),d=`${i.featureName}.${t.overpanelPath}`,f=await n.dynamicConfigFetch(p.featureName))}if(f.legacy&&!f.legacyOverpanelName)throw new Error("Tried to call a legacy overpanel, but config is missing a legacyOverpanelName");if(t.params&&n.updateParams&&!f.legacy){const e=null===(o=null===(i=null===(r=f.modules)||void 0===r?void 0:r[p.moduleName])||void 0===i?void 0:i.meta)||void 0===o?void 0:o.params;e&&(function(t,e){if(null==t||"{}"===JSON.stringify(t))return!0;if(void 0===e)throw new Error(`params for action are not configured, yet ${JSON.stringify(t)} was passed to action`);const n=[];if(Object.keys(t).forEach(t=>{e[t]||n.push(t)}),n.length>0)throw new Error(`The following parameter(s) passed to action is/are not configured for the action: [${n.join(", ")}]`)}(t.params,e),n.updateParams(`tectonOverpanel.${d}`,t.params,e))}const v=f.legacy?t.params?JSON.stringify(t.params):"":d,y=f.legacy?f.legacyOverpanelName:void 0,m="options"in p&&p.options||{},g=(null===(s=t.options)||void 0===s?void 0:s.size)||m.size,w=(null===(u=t.options)||void 0===u?void 0:u.height)||m.height,_=(null===(c=t.options)||void 0===c?void 0:c.fullWidth)||m.fullWidth,S=(null===(a=t.options)||void 0===a?void 0:a.isBlocking)||m.isBlocking,[,,C]=t.moduleId.split("."),E=(null===(l=t.options)||void 0===l?void 0:l.testId)||m.testId||C;return n.showOverpanel(v,!!_,y,g,w,E,!!S)}catch(t){return Promise.reject(t)}});i.push(()=>o.unsubscribe())}}(t,e,n,r,i),function(t,e,n,r){if(e.verifyMFA){n.add("verifyMFA");const i=t.sendResponse("verifyMFA",async t=>e.verifyMFA(t));r.push(()=>i.unsubscribe())}}(t,n,r,i)}const T={scrollY:0,innerHeight:0,innerWidth:0};function O(t,e){var n,r,i,o,s,u,c,a;if(!e)return console.warn("No platform root found. Returning zeroed dimensions."),T;const l=e instanceof HTMLElement;return l&&!e.isConnected?(console.warn("Platform root is no longer connected to the DOM. Returning zeroed dimensions."),T):Object.assign({scrollY:null!==(n=l?e.scrollTop:e.scrollY)&&void 0!==n?n:0,innerHeight:null!==(r=l?e.offsetHeight:e.innerHeight)&&void 0!==r?r:0,innerWidth:null!==(i=l?e.offsetWidth:e.innerWidth)&&void 0!==i?i:0,orientationType:null!==(s=null===(o=null===screen||void 0===screen?void 0:screen.orientation)||void 0===o?void 0:o.type)&&void 0!==s?s:"landscape-primary",orientationAngle:null!==(c=null===(u=null===screen||void 0===screen?void 0:screen.orientation)||void 0===u?void 0:u.angle)&&void 0!==c?c:0},null===(a=null==t?void 0:t.getSurroundingOffsets)||void 0===a?void 0:a.call(t))}function P(t,e){const n=function(t){return!!t.dataType}(e)?function(t,e,n,r={}){const[i,o="default"]=e.split("::");if(!i)throw new Error(`Invalid dataType format: '${e}'. Expected 'category::type'.`);const s=t.getRequestURLMap?t.getRequestURLMap():{};if(!s[i])throw new Error(`No URL map found for category '${i}'.`);const u=s[i][o]||s[i].default;if(!u)throw new Error(`No URL resolver found for category '${i}' and type '${o}'.`);return("string"==typeof u?Promise.resolve(u):u).then(t=>`${t}${n.map(t=>`/${t}`).withDefault("")}${function(t){const e=Object.keys(t).map(e=>`${e}=${t[e]}`).join("&");return e&&"?".concat(e)||""}(r)}`)}(t,e.dataType,u.Maybe.maybe(e.dataId),e.params):Promise.resolve(e.route);return n.then(n=>e.body&&e.isFormData?t.sendFormDataRequest(n,e.method,function(t){if("object"!=typeof t||null===t)throw new Error("Invalid parameter. Expected JSON.");return Object.keys(t).reduce((e,n)=>(e.append(n,t[n]),e),new FormData)}(JSON.parse(e.body))):(t.sendRequest||t.requestPlatformData)(n,e.method,e.body))}const I="q2.tectonCache";function A(t,e){return`${t}.${e}`}var j;!function(t){t.PlatformCssPropertiesChanged="platformCssPropertiesChanged",t.CallMethod="callMethod"}(j||(j={}));const M=j;var R;!function(t){t.streamCssProperties="streamCssProperties",t.streamPlatformDimensions="platformSizeChanged"}(R||(R={}));const V=R;var k=n(1604);function $(t,e,n,r,i,o){!function(t,e,n){e.refetchRequired&&(n.add("cacheCleared"),e.refetchRequired(t=>{l("cacheCleared",u.Maybe.just(JSON.stringify({cleared:t})))}))}(0,e,i),function(t,e,n,r){if(e.getCapabilities){n.add("canUser");const i=t.sendResponse("canUser",({capabilities:t})=>Promise.resolve({allowed:Object.values(e.getCapabilities(...t)).every(Boolean)}));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r,i){if(n.getFeatureConfig){r.add("getFeatureConfig");const e=t.sendResponse("getFeatureConfig",async({moduleId:t})=>{const e=await x(t.split("."),n.dynamicConfigFetch),r=await n.dynamicConfigFetch(e.featureName).then(t=>t.configuredSystemVariables||[]);return r.length?n.getFeatureConfig(r).then(t=>({config:t})):Promise.resolve({config:{}})});i.push(()=>e.unsubscribe())}}(t,0,e,i,o),function(t,e,n,r){if(e.getPendoInfo){n.add("getPendoInfo");const i=t.sendResponse("getPendoInfo",()=>Promise.resolve(e.getPendoInfo()));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){if(e.getPlatformInfo){n.add("platformInfo");const i=t.sendResponse("platformInfo",t=>e.getPlatformInfo(t));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){n.add("getPlatformDimensions");const i=t.sendResponse("getPlatformDimensions",t=>{var n,r,i,o,s;let c;const a=null==t?void 0:t.selector;if(a){const t=document.querySelector(a);t?c=t.getBoundingClientRect():(console.warn(`No platform element found matching the selector "${a}". Returning zeroed dimensions.`),c={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,orientationType:null!==(r=null===(n=null===screen||void 0===screen?void 0:screen.orientation)||void 0===n?void 0:n.type)&&void 0!==r?r:"landscape-primary",orientationAngle:null!==(o=null===(i=null===screen||void 0===screen?void 0:screen.orientation)||void 0===i?void 0:i.angle)&&void 0!==o?o:0})}else{const t=null===(s=e.getPlatformRootSelector)||void 0===s?void 0:s.call(e),n=t?document.querySelector(t):window;c=O(e,n)}return l("platformScrollChanged",u.Maybe.just(JSON.stringify(c))),Promise.resolve(c)});r.push(()=>i.unsubscribe())}(t,e,i,o),function(t,e,n,r){if(e.getVersionInfo){n.add("getPlatformInfo");const i=t.sendResponse("getPlatformInfo",()=>{const t=e.getVersionInfo();return Promise.resolve(Object.assign(Object.assign({},t),{TECTON_PLATFORM_VERSION:"1.61.2"}))});r.push(()=>{i.unsubscribe()})}}(t,e,i,o),function(t,e,n,r){if(e.getAuthToken){n.add("authToken");const i=t.sendResponse("authToken",()=>e.getAuthToken());r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){if(e.getGlobalScripts){n.add("getGlobalScripts");const i=t.sendResponse("getGlobalScripts",()=>e.getGlobalScripts());r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r,i){if(n.isUUXPath&&n.navigateTo){r.add("isNavigable");const o=t.sendResponse("isNavigable",({featureName:t,moduleName:r})=>{const i=E(e,t,r).map(t=>t.navigable).withDefaultFn(()=>n.isUUXPath(t));return Promise.resolve({navigable:i})});i.push(()=>o.unsubscribe())}}(t,r,e,i,o),function(t,e,n,r){var i;function o(){l("platformScrollChanged",u.Maybe.just(JSON.stringify(O(e,p))))}function s(){l("platformSizeChanged",u.Maybe.just(JSON.stringify(O(e,p))))}let c;n.add("platformScrollChanged");const a=()=>{if(c=t.sendResponse("getPlatformScroll",()=>Promise.resolve(O(e,p))),null==p||p.addEventListener("scroll",o),p instanceof HTMLElement){const t=new ResizeObserver(s);t.observe(p),r.push(()=>t.disconnect())}else null==p||p.addEventListener("resize",s)},h=null===(i=e.getPlatformRootSelector)||void 0===i?void 0:i.call(e);let f,p=h?document.querySelector(h):window;p?a():h&&(f=new MutationObserver(()=>{p=document.querySelector(h),p&&(a(),f.disconnect())}),f.observe(document.body,{childList:!0,subtree:!0})),r.push(()=>{null==f||f.disconnect(),null==c||c.unsubscribe(),null==p||p.removeEventListener("scroll",o),null==p||p.removeEventListener("resize",s)})}(t,e,i,o),function(t,e,n,r){if(e.promptForMFA){n.add("promptForMFA");const i=t.sendResponse("promptForMFA",async t=>{const n=await x(t.moduleId.split("."),e.dynamicConfigFetch).then(t=>t.featureName);return e.promptForMFA(n,t)});r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n){e.refetchRequired&&(n.add("refetchRequired"),e.refetchRequired(t=>{l(`refetchRequired::${t}`,u.Maybe.nothing())}))}(0,e,i),function(t,e,n,r,i){if("function"!=typeof n.requestExtensionData)return;r.add("requestExtensionData");const o=t.sendResponse("requestExtensionData",async t=>{const{moduleId:e,route:r,body:i}=t;let{featureName:o}=t;return!o&&e&&(o=await x(e.split("."),n.dynamicConfigFetch).then(t=>t.featureName)),n.requestExtensionData(o,{route:r,body:i||{}})});i.push(()=>o.unsubscribe())}(t,0,e,i,o),function(t,e,n,r){if(e.sendRequest||e.requestPlatformData){n.add("requestPlatformData"),n.add("requestPlatformData-v2"),e.sendFormDataRequest&&n.add("requestPlatformData-formdata");const i=t.sendResponse("requestPlatformData",t=>P(e,t).then(function(e){return 200<=e.status&&e.status<300?{data:"GET"===t.method?e.response.data:e.response,status:"success"}:{data:{message:e.statusText},status:"error"}})),o=t.sendResponse("requestPlatformData-v2",t=>P(e,t));r.push(()=>{i.unsubscribe(),o.unsubscribe()})}}(t,e,i,o),function(t,e){const n=t.subscribe(t=>{var e;(e=Object.assign(Object.assign({},t.changedParams),t.currentParams),Object.keys(e).reduce((t,e)=>{const n=e.split(".").slice(0,-1).join(".");return-1===t.indexOf(n)&&t.push(n),t},[])).forEach(e=>{const n=v(e,t.changedParams),r=v(e,t.currentParams);l("streamParams::"+e,u.Maybe.just(JSON.stringify({changedParams:n,currentParams:r})))})});e.push(()=>n.unsubscribe())}(n,o),function(t,e,n,r){if(e.takePicture){n.add("takePicture");const i=t.sendResponse("takePicture",({overlayText:t,helpText:n})=>e.takePicture({overlayText:t,helpText:n}).then(t=>({picture:t})));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n,r){if(!e.registerLogoffHook||!function(){const t=!!sessionStorage.getItem,e=!!sessionStorage.setItem,n=!!sessionStorage.removeItem;return t&&e&&n}())return;n.add("tectonCache"),e.registerLogoffHook(()=>{sessionStorage.removeItem(I)});const i=t.sendResponse("getCache",t=>{const e=A(t.moduleId,t.key),n=JSON.parse(sessionStorage.getItem(I)||"{}")[e]||{};return Promise.resolve(n)});r.push(()=>i.unsubscribe());const o=t.sendResponse("setCache",t=>{const e=A(t.moduleId,t.key);let n={};return"string"==typeof sessionStorage.getItem(I)&&(n=JSON.parse(sessionStorage.getItem(I))),n[e]=t.data,sessionStorage.setItem(I,JSON.stringify(n)),Promise.resolve()});r.push(()=>o.unsubscribe())}(t,e,i,o),function(t,e,n){if(!t.cssPropertiesChanged)return;e.add(M.PlatformCssPropertiesChanged);const r=new b.t([]),i=r.pipe((0,k.skip)(1)).subscribe(t=>{l(V.streamCssProperties,u.Maybe.just(JSON.stringify(t)))});t.cssPropertiesChanged(t=>{r.next(t)}),n.push(()=>{i.unsubscribe()})}(e,i,o),function(t,e){t.platformEventNotification&&(e.add("platformEventNotification"),t.platformEventNotification(t=>{l(`platformEventNotification::${t.name}`,u.Maybe.maybe(t.data).map(JSON.stringify))}))}(e,i)}var F=n(7758),D=n(2151),q=n(9919),B=n(4517);const L="[iFrameSizer]",z=[{name:"name",reflectAs:String},{name:"minHeight",reflectAs:String},{name:"overpanel",reflectAs:Boolean},{name:"baseClass",reflectAs:String}],U=(0,F.createSetupElement)(function(t,{messageBus:e,props:n,moduleId:r,tectonOutletAdaptor:s,resize:u}){return(0,F.generateCustomElementWrapper)(t,(t,n)=>{const c=new b.t(document.createElement("div")),a=new b.t(!1),l=n.pipe((0,o.T)(t=>t.name),(0,i.p)(t=>!!t),(0,o.T)(t=>`${r?`${r}.`:""}${t}`),(0,q.F)(),(0,B.$)()).subscribe(r=>{const i=s(e,r,t,n,u),o=i.DOM$.subscribe(c),l=i.settled$.subscribe(a),f=i.teardown$.subscribe(h),p=i.effect$.subscribe(e=>{t.__attached?e():t.__onAttached.push(e)});i.teardown$.next(()=>{o.unsubscribe(),l.unsubscribe(),f.unsubscribe(),p.unsubscribe()})}),h=new b.t(()=>{l.unsubscribe(),c.complete(),c.next(null)});return{DOM$:c,settled$:a,teardown$:h}},{useShadowDOM:!0,props:z.concat(n),css:`\n .root {\n height: 100%;\n width: 100%;\n }\n .outlet-wrapper {\n line-height: 0;\n font-size: 0;\n }\n .outlet-wrapper.scrollable {\n height: 100%;\n }\n .loading-wrapper {\n height: 44px;\n width: 100%;\n align-items: center;\n justify-content: center;\n }\n .loading-wrapper:not([hidden]) {\n display: flex;\n }\n .loading-wrapper,\n .outlet-wrapper.scrollable iframe {\n height: 100%;\n }\n .outlet-wrapper iframe {\n width: 100%;\n height: auto;\n border: none;\n }\n .outlet-wrapper iframe:not([hidden]) {\n display: inline-block;\n }\n ${"tecton-platform-outlet"===t?'\n :host {\n position: relative;\n display: block;\n height: 100%;\n }\n .loading-wrapper:not([hidden]) {\n align-items: flex-start;\n overflow: hidden;\n }\n .loading-wrapper.spinner-loader:not([hidden]) {\n align-items: center;\n }\n .loading-wrapper .q2-row {\n flex: 1;\n text-align: center;\n }\n q2-loading[type="spinner"] {\n display: inline-block;\n margin-top: 20px;\n }\n ':""}\n `})});function W(t){const e=[];if(t&&t.loaders){const n=t.loaders.reduce((t,e)=>e.row>t?e.row:t,0);for(let t=0;t<n;t++)e.push([]);for(const n of t.loaders){const t=document.createElement("q2-loading");t.setAttribute("shape",n.shape),t.setAttribute("type",n.type),t.className="q2-col",n.classList&&t.classList.add(...n.classList),n.style&&t.setAttribute("style",n.style),n.modifiers&&t.setAttribute("modifiers",n.modifiers),n.counts&&t.setAttribute("counts",n.counts),n.ariaLabel&&t.setAttribute("ariaLabel",n.ariaLabel),e[n.row-1].push(t)}}else{const t=document.createElement("q2-loading");e.push([]),t.classList.add("mrg(a)"),e[0].push(t)}return e}function H(t){const e=t.getAttribute("base-class");return e?null==e?void 0:e.replace(/\s/g,"%7C"):""}var J=n(9489),Y=n(9143);function G(t,e){const n=new URL(t,window.location.toString()),r=Object.keys(e).map(t=>`${t}=${e[t]}`).join("&"),i=n.search?`${n.search}&${r}`:`?${r}`;return n.search=i,n.href}const Z=[{name:"additionalContext",reflectAs:String},{name:"configTree"},{name:"context",reflectAs:String},{name:"contextId",reflectAs:String},{name:"contextValue",reflectAs:String},{name:"resolvedType",reflectAs:String},{name:"routeName"}];function K(t,n,r,s){return function(c,l,h,f){const p=document.createElement("div"),d=new b.t(p),y=new b.t(!1),g=new b.t(()=>{}),w=function(){return{loaderWrapper:h.shadowRoot.querySelector("div[slot='loading-wrapper']"),iframeEl:h.shadowRoot.querySelector("iframe"),minHeight:f.getValue().minHeight}};let x;const _=function(){return x},S=function(t,e,n){return t.onMessage("setFetching").pipe((0,i.p)(t=>t.value.moduleId===e())).subscribe(t=>{const{loaderWrapper:e,iframeEl:r,minHeight:i="0px"}=n();if(e&&r){const{fetching:n}=t.value;e.hidden=!n,r.hidden=n,e.style.minHeight=n?i:"0px"}})}(c,_,w),C=function(t,e,n){return t.sendResponse("requestOutletInfo",({moduleId:t})=>{if(t!==e())return null;const{iframeEl:r}=n(),i=null==r?void 0:r.getBoundingClientRect();return i&&Object.values(i.toJSON()).find(t=>0!==t)?Promise.resolve(i):null})}(c,_,w),E=new b.t(()=>{S.unsubscribe(),C.unsubscribe(),d.complete(),d.next(null)}),N=f.pipe((0,o.T)(t=>t.configTree),(0,i.p)(t=>!!t),(0,q.F)()),T=new b.t(!1),O=f.pipe((0,o.T)(t=>t.overpanel),(0,i.p)(t=>"boolean"==typeof t),(0,q.F)()).subscribe(T),P=f.pipe((0,o.T)(t=>t.routeName),(0,i.p)(t=>!!t),(0,q.F)()),I=P.pipe((0,o.T)(t=>`${l}.${t}`),(0,Y.J)()).subscribe(([t])=>{a("clearParams",u.Maybe.just(JSON.stringify({moduleId:t})))}),A=(0,J.zV)(N,T,P).subscribe(([p,b,S])=>{const C=t.getValue(),N=C.features[p.featureName];if(!N)throw new Error(`Could not find the config for this feature=${p.featureName}`);const T=N.modules[p.moduleName],P=f.getValue();if(function(t,e,n,r){var i,o,s,u;const c=e.isMFA,a=!1!==t.rightsEnabled,l="Application::Unauthenticated"===(null===(o=null===(i=t.meta)||void 0===i?void 0:i.type)||void 0===o?void 0:o.context);return!(!c&&!l)||!!a&&function(t,e){const{outletContext:n,moduleContext:r,resolvedContext:i,additionalContext:o,additionalContextRequirements:s}=t;if((null==s?void 0:s.length)&&o&&!s.includes(o.toString()))return!1;if("None"===r||"None"===n)return!0;const u=m(r,e);return 0!==u.length&&u.includes(i||n)}({additionalContext:n.additionalContext,additionalContextRequirements:t.additionalContextRequirements,contextValue:n.contextValue,moduleContext:(null===(u=null===(s=t.meta)||void 0===s?void 0:s.type)||void 0===u?void 0:u.context)||"None",outletContext:n.context||"None",resolvedContext:n.resolvedType},r)}(T,N,P,s)){x=`${l}.${S}`;const t=P.minHeight,s=C.features[p.featureName],f=!!s.modules[p.moduleName].formPostAuth,m=s.modules[p.moduleName].url,N=s.additionalDomains,j=s.allowDirectives,M=function(t,e,n,r,i,o,s){let u=G(o&&s.buildIframeURL?s.buildIframeURL(t):t,Object.assign(Object.assign({"tct-id":e,"tct-ctxid":n.contextValue||"","tct-ctxname":n.contextId||""},v(e,i.currentParams)),{"tct-maxHeight":r.style.maxHeight,"tct-maxWidth":r.style.maxWidth,"tct-baseClass":H(r),"tct-outlet-name":r.name||""}));return function(t){const e=t.getAttribute("beta");return""===e||"true"===e}(r)&&(u=G(u,{"tct-beta":"true"})),u}(m,x,P,h,n.getValue(),f,r);if(!b){const t=function(t,n,r){const s=(0,e.R)(window,"message").pipe((0,i.p)(t=>"string"==typeof t.data&&t.data.includes("iFrameSizer")),(0,o.T)(t=>{const e=t.data.substr(L.length).split(":"),[n,r]=e;return{value:{moduleId:n,height:r}}})),u=t.onMessage("resizeIframe");return(0,D.h)(s,u).pipe((0,i.p)(t=>t.value.moduleId===n()),(0,q.F)((t,e)=>t.value.height===e.value.height)).subscribe(t=>{const{height:e}=t.value,{iframeEl:n}=r();n&&n.style.setProperty("height",`${e}px`)})}(c,_,w);E.next(()=>{t.unsubscribe()})}const R=function(t,e,n){return t.onMessage("setTitle").pipe((0,i.p)(t=>t.value.moduleId===e())).subscribe(t=>{const{iframeEl:e}=n();e.title=t.value.title})}(c,_,w);E.next(()=>{R.unsubscribe()});const V=function(t,e,n,r,i,o,s,u,c,a){const l=document.createElement("div");l.className="outlet-wrapper";const h=document.createElement("slot");h.name="loading-wrapper";const f=[],p=document.createElement("iframe");if(u){const r=document.createElement("form");n.forEach(function(t){const e=document.createElement("input");e.name=t.key,e.setAttribute("value",t.value),r.appendChild(e)}),r.hidden=!0,r.method="post",r.action=t,r.target=e,r.enctype="multipart/form-data",p.name=e,l.appendChild(r),f.push(function(){r.submit(),l.removeChild(r)})}else p.src=t;return p.title=r,p.dataset.moduleId=e,p.style.maxHeight=i,p.style.maxWidth=o,p.setAttribute("test-id","outletIframe"),p.allow=function(t=[],e=["geolocation","camera"],n){let r=["'self'",`${new URL(n).origin}`];return t&&t.length>0&&(r=[...r,...t]),e.reduce(function(t,e){return t+`${e} ${r.join(" ")}; `},"")}(c,a,t),l.appendChild(p),f.push(()=>{p.contentWindow&&p.contentWindow.postMessage(`${L}${e}:0:false:false:32:true:true:null:documentElementOffset`,"*")}),p.onload=function(){f.forEach(t=>{t()}),p.onload=function(){}},s?l.classList.add("scrollable"):(p.style.setProperty("overflow-y","hidden"),p.scrolling="no"),p.hidden=!0,l.appendChild(h),l}(M,x,r.getAuthPayload?r.getAuthPayload():[],`${p.featureName}-${p.moduleName}`,h.style.maxHeight,h.style.maxWidth,b,f,N,j),k=function(t,e){var n,r,i;const o=document.createElement("div");o.style.minHeight=e||"0px",o.slot="loading-wrapper",o.classList.add("loading-wrapper"),o.setAttribute("data-tecton-module","");const s=t.loadingOptions?W(t.loadingOptions):W();if(null===(n=t.loadingOptions)||void 0===n?void 0:n.outlet){const e=t.loadingOptions.outlet;e.style&&o.setAttribute("style",e.style),e.classList&&o.classList.add(...e.classList)}const u=null===(i=null===(r=s[0])||void 0===r?void 0:r[0])||void 0===i?void 0:i.getAttribute("type");null!==u&&"spinner"!==u||o.classList.add("spinner-loader");for(const t of s){const e=document.createElement("div");e.className="q2-row";for(const n of t)e.appendChild(n);o.appendChild(e)}return o}(T,t);d.next(V),g.next(()=>{const t=h.shadowRoot.querySelector(".loading-wrapper");t?h.shadowRoot.replaceChild(k,t):h.shadowRoot.appendChild(k),y.next(!0)}),E.next(()=>{O.unsubscribe(),A.unsubscribe(),I.unsubscribe(),a("clearParams",u.Maybe.just(JSON.stringify({moduleId:x})))})}});return{DOM$:d,settled$:y,teardown$:E,effect$:g}}}const X=`${window.location.origin}${window.location.pathname.replace(/\/uux\.aspx/i,"")}`;function Q(t){return/^http/.test(t)?t:`${window.location.origin}/${t}`}function tt(t,e,n,r,i,o,s={}){!function(t,e,n,r){if(e.getMobileSDKCapabilities){n.add("getMobileSDKCapabilities");const i=t.sendResponse("getMobileSDKCapabilities",()=>Promise.resolve(e.getMobileSDKCapabilities()));r.push(()=>i.unsubscribe())}}(t,e,i,o),function(t,e,n){const r=t.sendResponse("getInitialParams",t=>Promise.resolve({params:v(t.moduleId,e.getValue().currentParams)}));n.push(()=>r.unsubscribe())}(t,n,o),function(t,e,n,r,i){let o;const s=t.sendResponse("getCustomerAssetPath",({subPath:t})=>Promise.resolve({path:Q(n.getCustomerSpecificAssetPath(t))}));n.getCustomLanguageURL&&(e.add("getCustomLanguageURL"),o=t.sendResponse("getCustomLanguageURL",async({moduleId:t,langKey:e})=>{const r=await x(t.split("."),n.dynamicConfigFetch);return Promise.resolve({path:Q(n.getCustomLanguageURL(`${e}_${r.featureName}.json`))})}));const u=t.sendResponse("getBaseAssetPath",({subPath:t})=>Promise.resolve({path:Q(n.getBaseAssetPath(t))})),c=t.sendResponse("getNgamBaseUrl",()=>Promise.resolve({ngamBase:X}));i.push(()=>{s.unsubscribe(),u.unsubscribe(),c.unsubscribe(),o&&o.unsubscribe()})}(t,i,e,0,o),function(t,e,n,r,i,o){const s=e.sendResponse("resolveFeature",async e=>{const i=await x(e.outletPath.split("."),t.dynamicConfigFetch),s=S(i.configPath,i.treeFromRoot),c=(await t.dynamicConfigFetch(i.featureName)).modules[i.moduleName].meta.outlets[i.outletName],a="None"===c.context?u.Maybe.nothing():u.Maybe.just(c.context),l=e.contextValue?u.Maybe.just(e.contextValue):u.Maybe.nothing(),h=e.resolvedType?u.Maybe.just(e.resolvedType):u.Maybe.nothing(),f=e.additionalContext?u.Maybe.just(e.additionalContext):u.Maybe.nothing(),p=s.configuredOutlets[i.outletName],d=n.getValue();return g(t,r,e.outletPath,a,l,p,h,f,d,i.featureName,i.moduleName,o).then(t=>t.withDefault({moduleId:"",featureName:"",initialParams:{},url:"",minHeight:"",formPostAuth:!1,loadingOptions:{loaders:[{type:"spinner",shape:"half-circle",row:1}]}}))});i.push(()=>s.unsubscribe())}(e,t,r,n,o,s),function(t,e,n,r,i,o){const s=e.sendResponse("resolveTabs",async e=>{const i=await x(e.outletPath.split("."),t.dynamicConfigFetch),s=S(i.configPath,i.treeFromRoot),c=t.dynamicConfigFetch(i.featureName),a=await c,l=(await c.then(t=>t.modules[i.moduleName])).meta.outlets[i.outletName],h="None"===l.context?u.Maybe.nothing():u.Maybe.just(l.context),f=e.contextValue?u.Maybe.just(e.contextValue):u.Maybe.nothing(),p=e.resolvedType?u.Maybe.just(e.resolvedType):u.Maybe.nothing(),d=e.additionalContext?u.Maybe.just(e.additionalContext):u.Maybe.nothing(),b=s.configuredOutlets[i.outletName],v=n.getValue();return function(t,e,n,r,i,o,s,c,a,l,h,f,p,d){return Promise.all(c.map(c=>g(t,e,n,r,i,c.modules||[],o,s,a,l,h,f).then(t=>t.map(t=>({tabLabel:c.tabLabel,tab:t}))).catch(()=>u.Maybe.nothing()))).then(t=>u.Maybe.filterSomethings(t)).then(t=>t.map(t=>({tabLabel:t.tabLabel,tabLabelOverride:t.tab.tabLabelOverride,moduleId:t.tab.moduleId,initialParams:t.tab.initialParams,url:t.tab.url,minHeight:t.tab.minHeight,formPostAuth:t.tab.formPostAuth,loadingOptions:t.tab.loadingOptions,additionalDomains:p,allowDirectives:d,requiredUserCapabilities:t.tab.requiredUserCapabilities,rightsEnabled:t.tab.rightsEnabled})))}(t,r,e.outletPath,h,f,p,d,b,v,i.featureName,i.moduleName,o,a.additionalDomains,a.allowDirectives).then(t=>({resolvedTabs:t}))});i.push(()=>s.unsubscribe())}(e,t,r,n,o,s),function(t,e,n,r,i,o){const s=e.sendResponse("resolveMenu",async e=>{const i=await x(e.outletPath.split("."),t.dynamicConfigFetch),s=S(i.configPath,i.treeFromRoot),c=(await t.dynamicConfigFetch(i.featureName).then(t=>t.modules[i.moduleName])).meta.outlets[i.outletName];if(!c)throw new Error(`${i.outletName} contextual menu outlet not found in config`);const a="None"===c.context?u.Maybe.nothing():u.Maybe.just(c.context),l=e.contextValue?u.Maybe.just(e.contextValue):u.Maybe.nothing(),h=e.resolvedType?u.Maybe.just(e.resolvedType):u.Maybe.nothing(),f=e.additionalContext?u.Maybe.just(e.additionalContext):u.Maybe.nothing(),p=s.configuredOutlets[i.outletName],d=n.getValue();return!1===d.features[i.featureName].modules[i.moduleName].rightsEnabled?new Promise(t=>{t({resolvedMenuItems:[]})}):function(t,e,n,r,i,o,s,c,a,l,h,f){return Promise.all(c.map(c=>g(t,e,n,r,i,c.modules||[],o,s,a,l,h,f).then(e=>e.asyncMap(async e=>{const n=await x(e.moduleId.split("."),t.dynamicConfigFetch),r=i.withDefault("-1"),o={itemLabel:c.itemLabel,action:c.action,featureName:n.featureName,moduleName:n.moduleName,contextIdParamName:c.contextIdParamName};return"-1"!==r&&(o["tct-ctxid"]=r),o})).then(u.Maybe.just).catch(()=>u.Maybe.nothing()))).then(t=>u.Maybe.filterSomethings(t))}(t,r,e.outletPath,a,l,h,f,p,d,i.featureName,i.moduleName,o).then(t=>({resolvedMenuItems:t}))});i.push(()=>s.unsubscribe())}(e,t,r,n,o,s),function(t,e,n){const r=t.sendResponse("getPlatformCapabilities",()=>{const t=Array.from(e);return Promise.resolve({capabilities:t})});n.push(()=>r.unsubscribe())}(t,i,o),function(t,e,n){const r=t.sendResponse("getAuthPayload",()=>Promise.resolve(e.getAuthPayload()));n.push(()=>r.unsubscribe())}(t,e,o),function(t,e,n,r){if(e.cdnOverride){n.add("cdnOverride");const i=t.sendResponse("cdnOverride",()=>e.cdnOverride().then(t=>({path:t})));r.push(()=>i.unsubscribe())}}(t,e,i,o)}const et="Authenticated",nt="Unauthenticated";function rt(e,n,r={},i){window.isTectonPlatform=!0;const o=new b.t({changedParams:{},currentParams:{}});let s;it(e),window.isTestingTecton||(null==i?void 0:i.testing)?(s=window.tectonConfig$||new b.t(null),s.next(e),window.tectonConfig$=s):s=new b.t(e);const c=new d(s,window.isTestingTecton),a=new Set,h=[c.teardown.bind(c)];function f(t){const[r,i]=t.split(".");try{return Promise.resolve(e.features[r].configuredOverpanels[i])}catch(t){return n.dynamicConfigFetch(r,i)}}return function(t){t.add("resizeIframe"),t.add("requestOutletInfo")}(a),function(t,e,n,r){if(e.setupDynamicPlatformAPI){e.setupDynamicPlatformAPI().forEach(t=>n.add(t));const i=t.sendResponse("executeDynamicPlatformAPI",({functionName:t,args:n})=>e.executeDynamicPlatformAPI(t,n));r.push(()=>i.unsubscribe())}}(c,n,a,h),N(c,s,n,a,h),$(c,n,o,s,a,h),function(t,e,n,r){if(!e.getCurrentTheme)return void n.add("ThemesNotSupported");n.add("getCurrentTheme");const i=new b.t({path:Q(e.getCustomerSpecificAssetPath(`${e.getCurrentTheme()}-props.css`))});e.themeChanged&&(n.add("themeChanged"),e.themeChanged(t=>{i.next({path:Q(e.getCustomerSpecificAssetPath(`${t}-props.css`))})}));const o=i.subscribe(t=>{l("themeChanged",u.Maybe.maybe(t).map(JSON.stringify))}),s=t.sendResponse("getCurrentTheme",()=>Promise.resolve(i.getValue()));r.push(()=>{o.unsubscribe(),s.unsubscribe()})}(c,n,a,h),tt(c,n,o,s,a,h,r),function(t,e,n,r,i={}){U({messageBus:t,moduleId:"",props:Z,tectonOutletAdaptor:K(e,n,r,i)})("tecton-platform-outlet")}(c,s,o,n,r),{tectonParamsChanged(t){o.next(t)},updateConfig(e){const n=s.getValue();t(n,e),it(n),s.next(n)},replaceConfig(t){it(t),s.next(t)},verifyConfig(){if(!n.getCapabilities)return void console.error("getCapabilities must be implemented on platform to verify config.");const t=t=>{var e,r;return!(null==t?void 0:t.length)||Object.values(null!==(r=null===(e=n.getCapabilities)||void 0===e?void 0:e.call(n,...null!=t?t:[]))&&void 0!==r?r:{}).every(Boolean)},e=s.getValue(),r=e.features;for(const e in r){if(!r.hasOwnProperty(e))continue;const n=r[e];n.rightsEnabled=t(n.requiredUserCapabilities);for(const e in n.modules){if(!n.modules||!n.modules.hasOwnProperty(e))continue;const r=n.modules[e];r.rightsEnabled=n.rightsEnabled&&t(r.requiredUserCapabilities)}}it(e),s.next(e)},configLookup:function(t,e){const n=s.getValue();if(!e){const e=n.features[t];if(!e)throw new Error(`No config found, please check if the extension(${t}) is running correctly.`);return e}if(!n.features[t])throw new Error(`Please check if the extension(${t}) is running correctly.`);const r=n.features[t].modules[e].routeConfig||{featureName:t,moduleName:e},i=n.features[t].modules[e].rightsEnabled;return void 0!==i&&(r.rightsEnabled=i),r},configForRoute(t){const[e,n]=t.split(".");return s.getValue().features[e].modules[n].routeConfig||{featureName:e,moduleName:n}},configForOverpanel:f,overpanelOverrideLookup(t){var e,n,r,i,o,u,c,a,l;const h=s.getValue(),p=(h.overpanelOverrides||[]).find(e=>e.overpanelName===t),{featureName:d="",overpanelName:b=""}=null!==(e=null==p?void 0:p.override)&&void 0!==e?e:{},v=`${d}.${b}`,y=null===(n=h.features)||void 0===n?void 0:n[d],m=[{condition:!p,message:`No overpanel override found for ${t}.`},{condition:!d||!b,message:`Invalid overpanel override configuration for ${t}.`},{condition:!y,message:`Feature ${d} not found in config.`},{condition:!1===(null==y?void 0:y.rightsEnabled),message:`Feature ${d} is not enabled for this user.`},{condition:!(null===(r=null==y?void 0:y.configuredOverpanels)||void 0===r?void 0:r[b]),message:`Override overpanel ${b} not found in config.`},{condition:!1===(null===(c=null===(i=null==y?void 0:y.modules)||void 0===i?void 0:i[null===(u=null===(o=null==y?void 0:y.configuredOverpanels)||void 0===o?void 0:o[b])||void 0===u?void 0:u.moduleName])||void 0===c?void 0:c.rightsEnabled),message:`The module ${null===(l=null===(a=null==y?void 0:y.configuredOverpanels)||void 0===a?void 0:a[b])||void 0===l?void 0:l.moduleName} for feature ${d} is not enabled for this user.`}];for(const{condition:t,message:e}of m)if(t)return Promise.resolve({override:!1,message:e});return f(v).then(t=>{const e={override:!0,overpanelId:v,overpanelConfig:t};return(null==p?void 0:p.contextInfo)&&(e.contextInfo=p.contextInfo),Promise.resolve(e)})},updateApplicationModules(t){!function(t,e=!1){const n=function(t){var e,n,r;const i={};for(const[o,s]of Object.entries(t.features))for(const[t,u]of Object.entries(s.modules)){const s=null!==(r=null===(n=null===(e=null==u?void 0:u.meta)||void 0===e?void 0:e.type)||void 0===n?void 0:n.context)&&void 0!==r?r:void 0;if(s&&s.toLowerCase().startsWith("Application::".toLowerCase())){const e=s.split("::")[1].toLowerCase(),n={featureName:o,moduleName:t,rightsEnabled:u.rightsEnabled};i[e]?i[e].push(n):i[e]=[n]}}return i}(t),r=e?et:nt,i=n[r.toLowerCase()];null==i||i.forEach(t=>{const{featureName:e,moduleName:n,rightsEnabled:i}=t,o=`${e}.${n}`,s=`TectonApplicationModule.${o}`;document.getElementById(s)||!1===i||function({authContext:t,outletId:e,modulePath:n,featureName:r,moduleName:i}){const o=window.isTestingTecton?document.createElement("object"):document.createElement("tecton-platform-outlet");o.name=`Tecton${t}ApplicationModule`,o.id=e,o.routeName=n,o.configTree={featureName:r,moduleName:i},o.tabIndex=-1,o.setAttribute("style","width:0; height:0; visibility: hidden; overflow: hidden;"),document.body.appendChild(o)}({authContext:r,outletId:s,modulePath:o,featureName:e,moduleName:n})}),e||function(t){const e=document.getElementsByName(`Tecton${t}ApplicationModule`);null==e||e.forEach(function(t){var e;null===(e=t.parentNode)||void 0===e||e.removeChild(t)})}(et)}(e,t)},teardown(){h.forEach(t=>t())}}}function it(t){Object.keys(t.features).forEach(function(e){const n=t.features[e],r=n.configuredOverpanels;r&&Object.keys(r).forEach(function(t){r[t].featureName||(r[t].featureName=e)});try{Object.keys(n.modules).forEach(function(t){n.modules[t].routeConfig||(n.modules[t].routeConfig={featureName:e,moduleName:t,configuredOutlets:{}}),Object.assign(n.modules[t].meta,{featureName:e,moduleName:t});let r=n.modules[t].url;if(r){if(r.startsWith("./")){const t=window.location.pathname.split("/").filter(t=>t),e=t[t.length-1];e&&e.includes(".")&&t.pop();const n=t.length>0?t.join("/"):"";r=r.replace("./",`${window.location.origin}/${n?`${n}/`:""}`)}r=r.replace("{featureName}",e),r=r.replace("{moduleName}",t),n.modules[t].url=r}})}catch(r){n.modules?console.error(`Config for ${n.routeName} is malformed. It returned ${r}.`):console.error(`Config for ${n.routeName} contains no modules`),console.error(`Removing ${n.routeName} from config.`),delete t.features[e]}})}})(),r})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q2-tecton-platform",
3
- "version": "1.61.1",
3
+ "version": "1.61.2",
4
4
  "description": "This library is the \"server\" in the \"client/server\" pair of the SDK and Platform. Responsible for booting modules and responding to requests from the SDK.",
5
5
  "license": "MIT",
6
6
  "author": "Q2 Tecton Team",
@@ -30,14 +30,14 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "copy-webpack-plugin": "^13.0.0",
33
- "dry-suite": "1.61.1",
33
+ "dry-suite": "1.61.2",
34
34
  "maybe-not": "~1.3.3",
35
- "q2-tecton-common": "1.61.1",
35
+ "q2-tecton-common": "1.61.2",
36
36
  "resolve-tspaths": "^0.8.3",
37
37
  "rxjs-tslint": "^0.1.8",
38
38
  "sinon": "^9.0.1",
39
39
  "webpack-bundle-analyzer": "4.10.2",
40
40
  "webpack-dev-server": "5.2.1"
41
41
  },
42
- "gitHead": "0f0e6a4e7f1a917319737b2076f7fb85e0ebb464"
42
+ "gitHead": "85b579ebfafadade98a6d2c2eb94840147d3a66f"
43
43
  }