(window.webpackJsonpNVIV=window.webpackJsonpNVIV||[]).push([[14],{1686:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1974),o=i(1699),s=i(1976),u=i(1917),c=function(t){function e(e,i,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!e){this.destination=s.empty;break}if("object"==typeof e){if(l(e)){var r=e[u.rxSubscriber]();this.syncErrorThrowable=r.syncErrorThrowable,this.destination=r,r.add(this)}else this.syncErrorThrowable=!0,this.destination=new a(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new a(this,e,i,n)}}return n(e,t),e.prototype[u.rxSubscriber]=function(){return this},e.create=function(t,i,n){var r=new e(t,i,n);return r.syncErrorThrowable=!1,r},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._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.Subscription);e.Subscriber=c;var a=function(t){function e(e,i,n,o){var u;t.call(this),this._parentSubscriber=e;var c=this;r.isFunction(i)?u=i:i&&(u=i.next,n=i.error,o=i.complete,i!==s.empty&&(c=Object.create(i),r.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=u,this._error=n,this._complete=o}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;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;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,i){try{e.call(this._context,i)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c);function l(t){return t instanceof c||"syncErrorThrowable"in t&&t[u.rxSubscriber]}},1690:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i(1686).Subscriber);e.OuterSubscriber=r},1691:function(t,e,i){"use strict";var n=i(1710),r=i(1981),o=i(1982),s=i(1975),u=i(1695),c=i(1878),a=i(2112),l=i(1918);e.subscribeToResult=function(t,e,i,h){var p=new a.InnerSubscriber(t,i,h);if(p.closed)return null;if(e instanceof u.Observable)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(r.isArrayLike(e)){for(var f=0,d=e.length;f1?new e(t,n):1===r?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,i=t.index,n=t.count,r=t.subscriber;i>=n?r.complete():(r.next(e[i]),r.closed||(t.index=i+1,this.schedule(t)))},e.prototype._subscribe=function(t){var i=this.array,n=i.length,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{array:i,index:0,count:n,subscriber:t});for(var o=0;o0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapSubscriber=u},1881:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.ArgumentOutOfRangeError=r},1882:function(t,e,i){"use strict";var n=i(1995),r=i(1996),o=i(1991),s=i(1977);e.reduce=function(t,e){return arguments.length>=2?function(i){return s.pipe(n.scan(t,e),r.takeLast(1),o.defaultIfEmpty(e))(i)}:function(e){return s.pipe(n.scan((function(e,i,n){return t(e,i,n+1)})),r.takeLast(1))(e)}}},1917:function(t,e,i){"use strict";var n=i(1710).root.Symbol;e.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},1918:function(t,e,i){"use strict";var n=i(1710);function r(t){var e,i=t.Symbol;return"function"==typeof i?i.observable?e=i.observable:(e=i("observable"),i.observable=e):e="@@observable",e}e.getSymbolObservable=r,e.observable=r(n.root),e.$$observable=e.observable},1919:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.ObjectUnsubscribedError=r},1920:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i){t.call(this),this.value=e,this.scheduler=i,this._isScalar=!0,i&&(this._isScalar=!1)}return n(e,t),e.create=function(t,i){return new e(t,i)},e.dispatch=function(t){var e=t.done,i=t.value,n=t.subscriber;e?n.complete():(n.next(i),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var i=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:i,subscriber:t});t.next(i),t.closed||t.complete()},e}(i(1695).Observable);e.ScalarObservable=r},1921:function(t,e,i){"use strict";var n=i(1853),r=i(2126),o=i(2127),s=i(1988);e.concat=function(){for(var t=[],e=0;e1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null},e}(r.Subscriber)},1973:function(t,e,i){"use strict";i.r(e),i.d(e,"Ng5SliderModule",(function(){return J})),i.d(e,"ChangeContext",(function(){return I})),i.d(e,"PointerType",(function(){return N})),i.d(e,"LabelType",(function(){return H})),i.d(e,"Options",(function(){return M})),i.d(e,"ɵb",(function(){return F})),i.d(e,"ɵc",(function(){return z})),i.d(e,"ɵd",(function(){return W})),i.d(e,"ɵa",(function(){return $})),i.d(e,"ɵe",(function(){return X}));var n=i(1),r=i(1694),o=(i(1699),i(0)),s=i(2111),u=i(2215),c=i.n(u),a=i(624),l=i(3),h=["tooltipTemplate"],p=["leftOuterSelectionBar"],f=["rightOuterSelectionBar"],d=["fullBar"],b=["selectionBar"],v=["minHandle"],y=["maxHandle"],m=["floorLabel"],w=["ceilLabel"],g=["minHandleLabel"],O=["maxHandleLabel"],x=["combinedLabel"],S=["ticksElement"];function _(t,e){if(1&t&&o["ɵɵelement"](0,"ng5-slider-tooltip-wrapper",31),2&t){var i=o["ɵɵnextContext"]().$implicit,n=o["ɵɵnextContext"]();o["ɵɵproperty"]("template",n.tooltipTemplate)("tooltip",i.valueTooltip)("placement",i.valueTooltipPlacement)("content",i.value)}}function E(t,e){if(1&t&&o["ɵɵelement"](0,"span",32),2&t){var i=o["ɵɵnextContext"]().$implicit;o["ɵɵproperty"]("innerHTML",i.legend,o["ɵɵsanitizeHtml"])}}var T=function(t){return{"ng5-slider-selected":t}};function V(t,e){if(1&t&&(o["ɵɵelementStart"](0,"span",27),o["ɵɵelement"](1,"ng5-slider-tooltip-wrapper",28),o["ɵɵtemplate"](2,_,1,4,"ng5-slider-tooltip-wrapper",29),o["ɵɵtemplate"](3,E,1,1,"span",30),o["ɵɵelementEnd"]()),2&t){var i=e.$implicit,n=o["ɵɵnextContext"]();o["ɵɵproperty"]("ngClass",o["ɵɵpureFunction1"](7,T,i.selected))("ngStyle",i.style),o["ɵɵadvance"](1),o["ɵɵproperty"]("template",n.tooltipTemplate)("tooltip",i.tooltip)("placement",i.tooltipPlacement),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",null!=i.value),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",null!=i.legend)}}function C(t,e){}function L(t,e){1&t&&o["ɵɵtemplate"](0,C,0,0,"ng-template")}var P=function(t,e,i){return{tooltip:t,placement:e,content:i}};function j(t,e){if(1&t&&(o["ɵɵelementContainerStart"](0),o["ɵɵtemplate"](1,L,1,0,void 0,1),o["ɵɵelementContainerEnd"]()),2&t){var i=o["ɵɵnextContext"]();o["ɵɵadvance"](1),o["ɵɵproperty"]("ngTemplateOutlet",i.template)("ngTemplateOutletContext",o["ɵɵpureFunction3"](2,P,i.tooltip,i.placement,i.content))}}function k(t,e){if(1&t&&(o["ɵɵelementContainerStart"](0),o["ɵɵelementStart"](1,"div",2),o["ɵɵtext"](2),o["ɵɵelementEnd"](),o["ɵɵelementContainerEnd"]()),2&t){var i=o["ɵɵnextContext"]();o["ɵɵadvance"](1),o["ɵɵattribute"]("title",i.tooltip)("data-tooltip-placement",i.placement),o["ɵɵadvance"](1),o["ɵɵtextInterpolate1"](" ",i.content," ")}}var N={Min:0,Max:1};N[N.Min]="Min",N[N.Max]="Max";var H={Low:0,High:1,Floor:2,Ceil:3,TickValue:4};H[H.Low]="Low",H[H.High]="High",H[H.Floor]="Floor",H[H.Ceil]="Ceil",H[H.TickValue]="TickValue";var M=function(){this.floor=0,this.ceil=null,this.step=1,this.minRange=null,this.maxRange=null,this.pushRange=!1,this.minLimit=null,this.maxLimit=null,this.translate=null,this.combineLabels=null,this.getLegend=null,this.stepsArray=null,this.bindIndexForStepsArray=!1,this.draggableRange=!1,this.draggableRangeOnly=!1,this.showSelectionBar=!1,this.showSelectionBarEnd=!1,this.showSelectionBarFromValue=null,this.showOuterSelectionBars=!1,this.hidePointerLabels=!1,this.hideLimitLabels=!1,this.autoHideLimitLabels=!0,this.readOnly=!1,this.disabled=!1,this.mouseEventsInterval=50,this.touchEventsInterval=50,this.inputEventsInterval=100,this.outputEventsInterval=100,this.showTicks=!1,this.showTicksValues=!1,this.tickStep=null,this.tickValueStep=1,this.ticksArray=null,this.ticksTooltip=null,this.ticksValuesTooltip=null,this.vertical=!1,this.getSelectionBarColor=null,this.getTickColor=null,this.getPointerColor=null,this.keyboardSupport=!0,this.scale=1,this.enforceStep=!0,this.enforceRange=!0,this.noSwitching=!1,this.onlyBindHandles=!1,this.rightToLeft=!1,this.reversedControls=!1,this.boundPointerLabels=!0,this.logScale=!1,this.customValueToPosition=null,this.customPositionToValue=null,this.precisionLimit=12,this.selectionBarGradient=null,this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaLabelHigh=null,this.ariaLabelledByHigh=null,this.handleDimension=null,this.barDimension=null,this.animate=!0},I=function(){},R=function(){function t(){}return t.isNullOrUndefined=function(t){return null==t},t.linearValueToPosition=function(t,e,i){return(t-e)/(i-e)},t.logValueToPosition=function(t,e,i){return((t=Math.log(t))-(e=Math.log(e)))/((i=Math.log(i))-e)},t.linearPositionToValue=function(t,e,i){return t*(i-e)+e},t.logPositionToValue=function(t,e,i){e=Math.log(e);var n=t*((i=Math.log(i))-e)+e;return Math.exp(n)},t.findStepIndex=function(t,e){for(var i=e.map((function(e){return Math.abs(t-e.value)})),n=0,r=0;r0&&0===this.dimension)&&(e=!0),this._value=t,this.elemRef.nativeElement.innerHTML=t,e&&this.calculateDimension()},e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.Renderer2))},e.ɵdir=o["ɵɵdefineDirective"]({type:e,selectors:[["","ng5SliderLabel",""]],features:[o["ɵɵInheritDefinitionFeature"]]}),e}(F);W.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]};var q=function(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null},Y=function(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0},Q=function(){function t(){}return t.compare=function(t,e){return(!R.isNullOrUndefined(t)||!R.isNullOrUndefined(e))&&(R.isNullOrUndefined(t)===R.isNullOrUndefined(e)&&(t.value===e.value&&t.highValue===e.highValue))},t}(),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(n.c)(e,t),e.compare=function(t,e){return(!R.isNullOrUndefined(t)||!R.isNullOrUndefined(e))&&(R.isNullOrUndefined(t)===R.isNullOrUndefined(e)&&(t.value===e.value&&t.highValue===e.highValue&&t.forceChange===e.forceChange))},e}(Q),K={provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return $})),multi:!0},$=function(){function t(t,e,i,n){this.renderer=t,this.elementRef=e,this.changeDetectionRef=i,this.zone=n,this.value=null,this.valueChange=new o.EventEmitter,this.highValue=null,this.highValueChange=new o.EventEmitter,this.options=new M,this.userChangeStart=new o.EventEmitter,this.userChange=new o.EventEmitter,this.userChangeEnd=new o.EventEmitter,this.initHasRun=!1,this.inputModelChangeSubject=new r.Subject,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new r.Subject,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new M,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new Y,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementDisabledAttr=null,this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new D(this.renderer)}return Object.defineProperty(t.prototype,"manualRefresh",{set:function(t){var e=this;this.unsubscribeManualRefresh(),this.manualRefreshSubscription=t.subscribe((function(){setTimeout((function(){return e.calculateViewDimensionsAndDetectChanges()}))}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerFocus",{set:function(t){var e=this;this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=t.subscribe((function(t){e.focusPointer(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return!R.isNullOrUndefined(this.value)&&!R.isNullOrUndefined(this.highValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTicks",{get:function(){return this.viewOptions.showTicks},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.viewOptions=new M,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState()},t.prototype.ngAfterViewInit=function(){this.applyOptions(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval),this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.subscribeResizeObserver(),this.initHasRun=!0,this.changeDetectionRef.detectChanges()},t.prototype.ngOnChanges=function(t){R.isNullOrUndefined(t.options)||this.onChangeOptions(),R.isNullOrUndefined(t.value)&&R.isNullOrUndefined(t.highValue)||this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()},t.prototype.writeValue=function(t){t instanceof Array?(this.value=t[0],this.highValue=t[1]):this.value=t,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})},t.prototype.registerOnChange=function(t){this.onChangeCallback=t},t.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},t.prototype.setDisabledState=function(t){this.viewOptions.disabled=t,this.updateDisabledState()},t.prototype.onResize=function(t){this.calculateViewDimensionsAndDetectChanges()},t.prototype.subscribeInputModelChangeSubject=function(t){var e=this;this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe(Object(s.distinctUntilChanged)(G.compare),Object(s.filter)((function(t){return!t.forceChange&&!t.internalChange})),R.isNullOrUndefined(t)?Object(s.tap)((function(){})):Object(s.throttleTime)(t,void 0,{leading:!0,trailing:!0})).subscribe((function(t){return e.applyInputModelChange(t)}))},t.prototype.subscribeOutputModelChangeSubject=function(t){var e=this;this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe(Object(s.distinctUntilChanged)(G.compare),R.isNullOrUndefined(t)?Object(s.tap)((function(){})):Object(s.throttleTime)(t,void 0,{leading:!0,trailing:!0})).subscribe((function(t){return e.publishOutputModelChange(t)}))},t.prototype.subscribeResizeObserver=function(){var t=this;A.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver((function(){return t.calculateViewDimensionsAndDetectChanges()})),this.resizeObserver.observe(this.elementRef.nativeElement))},t.prototype.unsubscribeResizeObserver=function(){A.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},t.prototype.unsubscribeOnMove=function(){R.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)},t.prototype.unsubscribeOnEnd=function(){R.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)},t.prototype.unsubscribeInputModelChangeSubject=function(){R.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)},t.prototype.unsubscribeOutputModelChangeSubject=function(){R.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)},t.prototype.unsubscribeManualRefresh=function(){R.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)},t.prototype.unsubscribeTriggerFocus=function(){R.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)},t.prototype.getPointerElement=function(t){return t===N.Min?this.minHandleElement:t===N.Max?this.maxHandleElement:null},t.prototype.getCurrentTrackingValue=function(){return this.currentTrackingPointer===N.Min?this.viewLowValue:this.currentTrackingPointer===N.Max?this.viewHighValue:null},t.prototype.modelValueToViewValue=function(t){return R.isNullOrUndefined(t)?NaN:R.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+t:R.findStepIndex(+t,this.viewOptions.stepsArray)},t.prototype.viewValueToModelValue=function(t){return R.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?t:this.getStepValue(t)},t.prototype.getStepValue=function(t){var e=this.viewOptions.stepsArray[t];return R.isNullOrUndefined(e)?NaN:e.value},t.prototype.applyViewChange=function(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})},t.prototype.applyInputModelChange=function(t){var e=this.normaliseModelValues(t),i=!Q.compare(t,e);i&&(this.value=e.value,this.highValue=e.highValue),this.viewLowValue=this.modelValueToViewValue(e.value),this.range?this.viewHighValue=this.modelValueToViewValue(e.highValue):this.viewHighValue=null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:e.value,highValue:e.highValue,forceChange:i,userEventInitiated:!1})},t.prototype.publishOutputModelChange=function(t){var e=this,i=function(){e.valueChange.emit(t.value),e.range&&e.highValueChange.emit(t.highValue),R.isNullOrUndefined(e.onChangeCallback)||(e.range?e.onChangeCallback([t.value,t.highValue]):e.onChangeCallback(t.value)),R.isNullOrUndefined(e.onTouchedCallback)||(e.range?e.onTouchedCallback([t.value,t.highValue]):e.onTouchedCallback(t.value))};t.userEventInitiated?(i(),this.userChange.emit(this.getChangeContext())):setTimeout((function(){i()}))},t.prototype.normaliseModelValues=function(t){var e=new Q;if(e.value=t.value,e.highValue=t.highValue,this.viewOptions.enforceStep&&(e.value=this.roundStep(e.value),this.range&&(e.highValue=this.roundStep(e.highValue))),!R.isNullOrUndefined(this.viewOptions.stepsArray)||!this.viewOptions.enforceRange)return e;if(e.value=B.clampToRange(e.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(e.highValue=B.clampToRange(e.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&t.value>t.highValue)if(this.viewOptions.noSwitching)e.value=e.highValue;else{var i=t.value;e.value=t.highValue,e.highValue=i}return e},t.prototype.renormaliseModelValues=function(){var t={value:this.value,highValue:this.highValue},e=this.normaliseModelValues(t);Q.compare(e,t)||(this.value=e.value,this.highValue=e.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))},t.prototype.onChangeOptions=function(){if(this.initHasRun){var t=this.viewOptions.inputEventsInterval,e=this.viewOptions.outputEventsInterval;this.applyOptions(),t!==this.viewOptions.inputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval)),e!==this.viewOptions.outputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval)),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.resetSlider()}},t.prototype.applyOptions=function(){if(this.viewOptions=new M,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!R.isNullOrUndefined(this.viewOptions.ticksArray),!this.viewOptions.showTicks||R.isNullOrUndefined(this.viewOptions.tickStep)&&R.isNullOrUndefined(this.viewOptions.ticksArray)||(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),R.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),R.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=function(t,e){return t+" - "+e}),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")},t.prototype.applyStepsArrayOptions=function(){var t=this;this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,R.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=function(e){return t.viewOptions.bindIndexForStepsArray?String(t.getStepValue(e)):String(e)}),this.viewOptions.getLegend=function(e){return t.viewOptions.stepsArray[e].legend}},t.prototype.applyFloorCeilOptions=function(){if(R.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),R.isNullOrUndefined(this.viewOptions.ceil)||R.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,R.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=function(t){return String(t)})},t.prototype.resetSlider=function(){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.unbindEvents(),this.manageEventsBindings(),this.updateDisabledState(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()},t.prototype.focusPointer=function(t){t!==N.Min&&t!==N.Max&&(t=N.Min),t===N.Min?this.minHandleElement.focus():this.range&&t===N.Max&&this.maxHandleElement.focus()},t.prototype.refocusPointerIfNeeded=function(){R.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())},t.prototype.manageElementsStyle=function(){var t=this;this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);var e=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(e||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(e||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(e||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout((function(){t.resetSlider()}))),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout((function(){t.sliderElementAnimateClass=t.viewOptions.animate}))},t.prototype.manageEventsBindings=function(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()},t.prototype.updateDisabledState=function(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null},t.prototype.updateVerticalState=function(){this.sliderElementVerticalClass=this.viewOptions.vertical;try{for(var t=Object(n.j)(this.getAllSliderElements()),e=t.next();!e.done;e=t.next()){var i=e.value;R.isNullOrUndefined(i)||i.setVertical(this.viewOptions.vertical)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=t.return)&&o.call(t)}finally{if(r)throw r.error}}var r,o},t.prototype.updateScale=function(){try{for(var t=Object(n.j)(this.getAllSliderElements()),e=t.next();!e.done;e=t.next()){e.value.setScale(this.viewOptions.scale)}}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error}}var i,r},t.prototype.getAllSliderElements=function(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]},t.prototype.initHandles=function(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()},t.prototype.addAccessibility=function(){this.updateAriaAttributes(),this.minHandleElement.role="slider",!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?this.minHandleElement.tabindex="":this.minHandleElement.tabindex="0",this.viewOptions.vertical&&(this.minHandleElement.ariaOrientation="vertical"),R.isNullOrUndefined(this.viewOptions.ariaLabel)?R.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?this.maxHandleElement.tabindex="":this.maxHandleElement.tabindex="0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",R.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?R.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)},t.prototype.updateAriaAttributes=function(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,H.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,H.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())},t.prototype.calculateViewDimensions=function(){R.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);var t=this.minHandleElement.dimension;this.handleHalfDimension=t/2,R.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-t,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())},t.prototype.calculateViewDimensionsAndDetectChanges=function(){this.calculateViewDimensions(),this.changeDetectionRef.detectChanges()},t.prototype.updateTicksScale=function(){var t=this;if(this.viewOptions.showTicks){var e=R.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,i=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&e.reverse();var n=e.map((function(e){var n=t.valueToPosition(e);t.viewOptions.vertical&&(n=t.maxHandlePosition-n);var r=i+"("+Math.round(n)+"px)",o=new q;if(o.selected=t.isTickSelected(e),o.style={"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r},o.selected&&!R.isNullOrUndefined(t.viewOptions.getSelectionBarColor)&&(o.style["background-color"]=t.getSelectionBarColor()),o.selected||R.isNullOrUndefined(t.viewOptions.getTickColor)||(o.style["background-color"]=t.getTickColor(e)),R.isNullOrUndefined(t.viewOptions.ticksTooltip)||(o.tooltip=t.viewOptions.ticksTooltip(e),o.tooltipPlacement=t.viewOptions.vertical?"right":"top"),t.viewOptions.showTicksValues&&e%t.viewOptions.tickValueStep==0&&(o.value=t.getDisplayValue(e,H.TickValue),R.isNullOrUndefined(t.viewOptions.ticksValuesTooltip)||(o.valueTooltip=t.viewOptions.ticksValuesTooltip(e),o.valueTooltipPlacement=t.viewOptions.vertical?"right":"top")),!R.isNullOrUndefined(t.viewOptions.getLegend)){var s=t.viewOptions.getLegend(e);R.isNullOrUndefined(s)||(o.legend=s)}return o}));if(R.isNullOrUndefined(this.ticks)||this.ticks.length!==n.length)this.ticks=n;else for(var r=0;r=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&t<=this.viewLowValue)return!0}else{var e=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>e&&t>=e&&t<=this.viewLowValue)return!0;if(this.viewLowValue=this.viewLowValue)return!0}return!!(this.range&&t>=this.viewLowValue&&t<=this.viewHighValue)},t.prototype.updateFloorLabel=function(){if(!this.floorLabelElement.alwaysHide){this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,H.Floor)),this.floorLabelElement.calculateDimension();var t=this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0;this.floorLabelElement.setPosition(t)}},t.prototype.updateCeilLabel=function(){if(!this.ceilLabelElement.alwaysHide){this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,H.Ceil)),this.ceilLabelElement.calculateDimension();var t=this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension;this.ceilLabelElement.setPosition(t)}},t.prototype.updateHandles=function(t,e){t===N.Min?this.updateLowHandle(e):t===N.Max&&this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()},t.prototype.getHandleLabelPos=function(t,e){var i=t===N.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,n=e-i/2+this.handleHalfDimension,r=this.fullBarElement.dimension-i;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&t===N.Min||!this.viewOptions.rightToLeft&&t===N.Max?Math.min(n,r):Math.min(Math.max(n,0),r):n},t.prototype.updateLowHandle=function(t){this.minHandleElement.setPosition(t),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,H.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(N.Min,t)),R.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(N.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},t.prototype.updateHighHandle=function(t){this.maxHandleElement.setPosition(t),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,H.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(N.Max,t)),R.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(N.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},t.prototype.updateFloorAndCeilLabelsVisibility=function(){if(!this.viewOptions.hidePointerLabels){var t=!1,e=!1,i=this.isLabelBelowFloorLabel(this.minHandleLabelElement),n=this.isLabelAboveCeilLabel(this.minHandleLabelElement),r=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),o=this.isLabelBelowFloorLabel(this.combinedLabelElement),s=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(i?(t=!0,this.floorLabelElement.hide()):(t=!1,this.floorLabelElement.show()),n?(e=!0,this.ceilLabelElement.hide()):(e=!1,this.ceilLabelElement.show()),this.range){var u=this.combinedLabelElement.isVisible()?s:r,c=this.combinedLabelElement.isVisible()?o:i;u?this.ceilLabelElement.hide():e||this.ceilLabelElement.show(),c?this.floorLabelElement.hide():t||this.floorLabelElement.show()}}},t.prototype.isLabelBelowFloorLabel=function(t){var e=t.position,i=t.dimension,n=this.floorLabelElement.position,r=this.floorLabelElement.dimension;return this.viewOptions.rightToLeft?e+i>=n-2:e<=n+r+2},t.prototype.isLabelAboveCeilLabel=function(t){var e=t.position,i=t.dimension,n=this.ceilLabelElement.position,r=this.ceilLabelElement.dimension;return this.viewOptions.rightToLeft?e<=n+r+2:e+i>=n-2},t.prototype.updateSelectionBar=function(){var t=0,e=0,i=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,n=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)e=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),t=n;else if(R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))i?(e=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),t=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(e=this.minHandleElement.position+this.handleHalfDimension,t=0);else{var r=this.viewOptions.showSelectionBarFromValue,o=this.valueToPosition(r);(this.viewOptions.rightToLeft?this.viewLowValue<=r:this.viewLowValue>r)?(e=this.minHandleElement.position-o,t=o+this.handleHalfDimension):(e=o-this.minHandleElement.position,t=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(e),this.selectionBarElement.setPosition(t),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(t),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+e)),this.leftOuterSelectionBarElement.setPosition(t+e)):(this.leftOuterSelectionBarElement.setDimension(t),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+e)),this.rightOuterSelectionBarElement.setPosition(t+e))),R.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!R.isNullOrUndefined(this.viewOptions.selectionBarGradient)){var s=R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),u=s-t>0&&!i||s-t<=0&&i,c=this.viewOptions.vertical?u?"bottom":"top":u?"left":"right";this.barStyle={backgroundImage:"linear-gradient(to "+c+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(s+e+t+(u?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=s-t+(u?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{var a=this.getSelectionBarColor();this.barStyle={backgroundColor:a}}},t.prototype.getSelectionBarColor=function(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)},t.prototype.getPointerColor=function(t){return t===N.Max?this.viewOptions.getPointerColor(this.highValue,t):this.viewOptions.getPointerColor(this.value,t)},t.prototype.getTickColor=function(t){return this.viewOptions.getTickColor(t)},t.prototype.updateCombinedLabel=function(){if(this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position){var t=this.getDisplayValue(this.viewLowValue,H.Low),e=this.getDisplayValue(this.viewHighValue,H.High),i=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(e,t):this.viewOptions.combineLabels(t,e);this.combinedLabelElement.setValue(i);var n=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(n),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},t.prototype.getDisplayValue=function(t,e){return R.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray||(t=this.getStepValue(t)),this.viewOptions.translate(t,e)},t.prototype.roundStep=function(t,e){var i=R.isNullOrUndefined(e)?this.viewOptions.step:e,n=B.roundToPrecisionLimit((t-this.viewOptions.floor)/i,this.viewOptions.precisionLimit);return n=Math.round(n)*i,B.roundToPrecisionLimit(this.viewOptions.floor+n,this.viewOptions.precisionLimit)},t.prototype.valueToPosition=function(t){var e=R.linearValueToPosition;R.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(e=R.logValueToPosition):e=this.viewOptions.customValueToPosition;var i=e(t=B.clampToRange(t,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return R.isNullOrUndefined(i)&&(i=0),this.viewOptions.rightToLeft&&(i=1-i),i*this.maxHandlePosition},t.prototype.positionToValue=function(t){var e=t/this.maxHandlePosition;this.viewOptions.rightToLeft&&(e=1-e);var i=R.linearPositionToValue;R.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(i=R.logPositionToValue):i=this.viewOptions.customPositionToValue;var n=i(e,this.viewOptions.floor,this.viewOptions.ceil);return R.isNullOrUndefined(n)?0:n},t.prototype.getEventXY=function(t,e){if(t instanceof MouseEvent)return this.viewOptions.vertical?t.clientY:t.clientX;var i=0,n=t.touches;if(!R.isNullOrUndefined(e))for(var r=0;rn?N.Max:this.viewOptions.rightToLeft?e>this.minHandleElement.position?N.Min:N.Max:e=this.maxHandlePosition?o=u:(o=this.positionToValue(s),o=e&&!R.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(o,this.viewOptions.tickStep):this.roundStep(o)),this.positionTrackingHandle(o)},t.prototype.onEnd=function(t){if(A.isTouchEvent(t)&&t.changedTouches[0].identifier!==this.touchId)return;this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext())},t.prototype.onPointerFocus=function(t){var e=this,i=this.getPointerElement(t);i.on("blur",(function(){return e.onPointerBlur(i)})),i.on("keydown",(function(t){return e.onKeyboardEvent(t)})),i.on("keyup",(function(){return e.onKeyUp()})),i.active=!0,this.currentTrackingPointer=t,this.currentFocusPointer=t,this.firstKeyDown=!0},t.prototype.onKeyUp=function(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())},t.prototype.onPointerBlur=function(t){t.off("blur"),t.off("keydown"),t.off("keyup"),t.active=!1,R.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)},t.prototype.getKeyActions=function(t){var e=this.viewOptions.ceil-this.viewOptions.floor,i=t+this.viewOptions.step,n=t-this.viewOptions.step,r=t+e/10,o=t-e/10;this.viewOptions.reversedControls&&(i=t-this.viewOptions.step,n=t+this.viewOptions.step,r=t-e/10,o=t+e/10);var s={UP:i,DOWN:n,LEFT:n,RIGHT:i,PAGEUP:r,PAGEDOWN:o,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(s.LEFT=i,s.RIGHT=n,this.viewOptions.vertical&&(s.UP=n,s.DOWN=i)),s},t.prototype.onKeyboardEvent=function(t){var e=this.getCurrentTrackingValue(),i=R.isNullOrUndefined(t.keyCode)?t.which:t.keyCode,n=this.getKeyActions(e)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(!R.isNullOrUndefined(n)&&!R.isNullOrUndefined(this.currentTrackingPointer)){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));var r=B.clampToRange(n,this.viewOptions.floor,this.viewOptions.ceil),o=this.roundStep(r);if(this.viewOptions.draggableRangeOnly){var s=this.viewHighValue-this.viewLowValue,u=void 0,c=void 0;this.currentTrackingPointer===N.Min?(u=o,(c=o+s)>this.viewOptions.ceil&&(u=(c=this.viewOptions.ceil)-s)):this.currentTrackingPointer===N.Max&&(c=o,(u=o-s)=this.maxHandlePosition-e;if(c){if(0===n.position)return;s=this.getMinValue(o,!0,!1),u=this.getMaxValue(o,!0,!1)}else if(a){if(r.position===this.maxHandlePosition)return;u=this.getMaxValue(o,!0,!0),s=this.getMinValue(o,!0,!0)}else s=this.getMinValue(o,!1,!1),u=this.getMaxValue(o,!1,!1);this.positionTrackingBar(s,u)},t.prototype.positionTrackingBar=function(t,e){!R.isNullOrUndefined(this.viewOptions.minLimit)&&tthis.viewOptions.maxLimit&&(e=this.viewOptions.maxLimit,t=B.roundToPrecisionLimit(e-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=t,this.viewHighValue=e,this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(t)),this.updateHandles(N.Max,this.valueToPosition(e))},t.prototype.positionTrackingHandle=function(t){t=this.applyMinMaxLimit(t),this.range&&(this.viewOptions.pushRange?t=this.applyPushRange(t):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===N.Min&&t>this.viewHighValue?t=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===N.Max&&tthis.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(N.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=N.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===N.Max&&tthis.viewOptions.maxLimit?this.viewOptions.maxLimit:t},t.prototype.applyMinMaxRange=function(t){var e=this.currentTrackingPointer===N.Min?this.viewHighValue:this.viewLowValue,i=Math.abs(t-e);if(!R.isNullOrUndefined(this.viewOptions.minRange)&&ithis.viewOptions.maxRange){if(this.currentTrackingPointer===N.Min)return B.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===N.Max)return B.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return t},t.prototype.applyPushRange=function(t){var e=this.currentTrackingPointer===N.Min?this.viewHighValue-t:t-this.viewLowValue,i=R.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,n=this.viewOptions.maxRange;return en&&(this.currentTrackingPointer===N.Min?(this.viewHighValue=B.roundToPrecisionLimit(t+n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===N.Max&&(this.viewLowValue=B.roundToPrecisionLimit(t-n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),t},t.prototype.getChangeContext=function(){var t=new I;return t.pointerType=this.currentTrackingPointer,t.value=+this.value,this.range&&(t.highValue=+this.highValue),t},t.ɵfac=function(e){return new(e||t)(o["ɵɵdirectiveInject"](o.Renderer2),o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.ChangeDetectorRef),o["ɵɵdirectiveInject"](o.NgZone))},t.ɵcmp=o["ɵɵdefineComponent"]({type:t,selectors:[["ng5-slider"]],contentQueries:function(t,e,i){var n;(1&t&&o["ɵɵcontentQuery"](i,h,!0),2&t)&&(o["ɵɵqueryRefresh"](n=o["ɵɵloadQuery"]())&&(e.tooltipTemplate=n.first))},viewQuery:function(t,e){var i;(1&t&&(o["ɵɵviewQuery"](p,!0,F),o["ɵɵviewQuery"](f,!0,F),o["ɵɵviewQuery"](d,!0,F),o["ɵɵviewQuery"](b,!0,F),o["ɵɵviewQuery"](v,!0,z),o["ɵɵviewQuery"](y,!0,z),o["ɵɵviewQuery"](m,!0,W),o["ɵɵviewQuery"](w,!0,W),o["ɵɵviewQuery"](g,!0,W),o["ɵɵviewQuery"](O,!0,W),o["ɵɵviewQuery"](x,!0,W),o["ɵɵviewQuery"](S,!0,F)),2&t)&&(o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.leftOuterSelectionBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.rightOuterSelectionBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.fullBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.selectionBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.minHandleElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.maxHandleElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.floorLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.ceilLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.minHandleLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.maxHandleLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.combinedLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.ticksElement=i.first))},hostAttrs:[1,"ng5-slider"],hostVars:5,hostBindings:function(t,e){1&t&&o["ɵɵlistener"]("resize",(function(t){return e.onResize(t)}),!1,o["ɵɵresolveWindow"]),2&t&&(o["ɵɵattribute"]("disabled",e.sliderElementDisabledAttr),o["ɵɵclassProp"]("vertical",e.sliderElementVerticalClass)("animate",e.sliderElementAnimateClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[o["ɵɵProvidersFeature"]([K]),o["ɵɵNgOnChangesFeature"]],decls:29,vars:13,consts:[["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-left-out-selection"],["leftOuterSelectionBar",""],[1,"ng5-slider-span","ng5-slider-bar"],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-right-out-selection"],["rightOuterSelectionBar",""],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-full-bar"],["fullBar",""],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-selection-bar"],["selectionBar",""],[1,"ng5-slider-span","ng5-slider-bar","ng5-slider-selection",3,"ngStyle"],["ng5SliderHandle","",1,"ng5-slider-span","ng5-slider-pointer","ng5-slider-pointer-min",3,"ngStyle"],["minHandle",""],["ng5SliderHandle","",1,"ng5-slider-span","ng5-slider-pointer","ng5-slider-pointer-max",3,"ngStyle"],["maxHandle",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-limit","ng5-slider-floor"],["floorLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-limit","ng5-slider-ceil"],["ceilLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-model-value"],["minHandleLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-model-high"],["maxHandleLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-combined"],["combinedLabel",""],["ng5SliderElement","",1,"ng5-slider-ticks",3,"hidden"],["ticksElement",""],["class","ng5-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ng5-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ng5-slider-span ng5-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ng5-slider-span ng5-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ng5-slider-span","ng5-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ng5-slider-span","ng5-slider-tick-legend",3,"innerHTML"]],template:function(t,e){1&t&&(o["ɵɵelementStart"](0,"span",0,1),o["ɵɵelement"](2,"span",2),o["ɵɵelementEnd"](),o["ɵɵelementStart"](3,"span",3,4),o["ɵɵelement"](5,"span",2),o["ɵɵelementEnd"](),o["ɵɵelementStart"](6,"span",5,6),o["ɵɵelement"](8,"span",2),o["ɵɵelementEnd"](),o["ɵɵelementStart"](9,"span",7,8),o["ɵɵelement"](11,"span",9),o["ɵɵelementEnd"](),o["ɵɵelement"](12,"span",10,11),o["ɵɵelement"](14,"span",12,13),o["ɵɵelement"](16,"span",14,15),o["ɵɵelement"](18,"span",16,17),o["ɵɵelement"](20,"span",18,19),o["ɵɵelement"](22,"span",20,21),o["ɵɵelement"](24,"span",22,23),o["ɵɵelementStart"](26,"span",24,25),o["ɵɵtemplate"](28,V,4,9,"span",26),o["ɵɵelementEnd"]()),2&t&&(o["ɵɵadvance"](6),o["ɵɵclassProp"]("ng5-slider-transparent",e.fullBarTransparentClass),o["ɵɵadvance"](3),o["ɵɵclassProp"]("ng5-slider-draggable",e.selectionBarDraggableClass),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngStyle",e.barStyle),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngStyle",e.minPointerStyle),o["ɵɵadvance"](2),o["ɵɵstyleProp"]("display",e.range?"inherit":"none"),o["ɵɵproperty"]("ngStyle",e.maxPointerStyle),o["ɵɵadvance"](12),o["ɵɵclassProp"]("ng5-slider-ticks-values-under",e.ticksUnderValuesClass),o["ɵɵproperty"]("hidden",!e.showTicks),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngForOf",e.ticks))},directives:function(){return[F,l.NgStyle,z,W,l.NgForOf,l.NgClass,X,l.NgIf]},styles:[".ng5-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y} .ng5-slider.with-legend{margin-bottom:40px} .ng5-slider[disabled]{cursor:not-allowed} .ng5-slider[disabled] .ng5-slider-pointer{cursor:not-allowed;background-color:#d8e0f3} .ng5-slider[disabled] .ng5-slider-draggable{cursor:not-allowed} .ng5-slider[disabled] .ng5-slider-selection{background:#8b91a2} .ng5-slider[disabled] .ng5-slider-tick{cursor:not-allowed} .ng5-slider[disabled] .ng5-slider-tick.ng5-slider-selected{background:#8b91a2} .ng5-slider .ng5-slider-span{white-space:nowrap;position:absolute;display:inline-block} .ng5-slider .ng5-slider-base{width:100%;height:100%;padding:0} .ng5-slider .ng5-slider-bar-wrapper{left:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1} .ng5-slider .ng5-slider-draggable{cursor:move} .ng5-slider .ng5-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px} .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-transparent .ng5-slider-bar{background:0 0} .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-left-out-selection .ng5-slider-bar{background:#df002d} .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-right-out-selection .ng5-slider-bar{background:#03a688} .ng5-slider .ng5-slider-selection{z-index:2;background:#0db9f0;border-radius:2px} .ng5-slider .ng5-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px} .ng5-slider .ng5-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff} .ng5-slider .ng5-slider-pointer:hover:after{background-color:#fff} .ng5-slider .ng5-slider-pointer.ng5-slider-active{z-index:4} .ng5-slider .ng5-slider-pointer.ng5-slider-active:after{background-color:#451aff} .ng5-slider .ng5-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px} .ng5-slider .ng5-slider-bubble.ng5-slider-limit{color:#55637d} .ng5-slider .ng5-slider-ticks{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none} .ng5-slider .ng5-slider-ticks-values-under .ng5-slider-tick-value{top:auto;bottom:-36px} .ng5-slider .ng5-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px} .ng5-slider .ng5-slider-tick.ng5-slider-selected{background:#0db9f0} .ng5-slider .ng5-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)} .ng5-slider .ng5-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal} .ng5-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;-ms-touch-action:pan-x;touch-action:pan-x} .ng5-slider.vertical .ng5-slider-base{width:100%;height:100%;padding:0} .ng5-slider.vertical .ng5-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px} .ng5-slider.vertical .ng5-slider-bar{bottom:0;left:auto;width:4px;height:100%} .ng5-slider.vertical .ng5-slider-pointer{left:-14px!important;top:auto;bottom:0} .ng5-slider.vertical .ng5-slider-bubble{left:16px!important;bottom:0} .ng5-slider.vertical .ng5-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1} .ng5-slider.vertical .ng5-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px} .ng5-slider.vertical .ng5-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)} .ng5-slider.vertical .ng5-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap} .ng5-slider.vertical .ng5-slider-ticks-values-under .ng5-slider-tick-value{bottom:auto;left:auto;right:24px} .ng5-slider *{-webkit-transition:none;transition:none} .ng5-slider.animate .ng5-slider-bar-wrapper{-webkit-transition:all linear .3s;transition:all linear .3s} .ng5-slider.animate .ng5-slider-selection{-webkit-transition:background-color linear .3s;transition:background-color linear .3s} .ng5-slider.animate .ng5-slider-pointer{-webkit-transition:all linear .3s;transition:all linear .3s} .ng5-slider.animate .ng5-slider-bubble{-webkit-transition:all linear .3s;transition:all linear .3s} .ng5-slider.animate .ng5-slider-bubble.ng5-slider-limit{-webkit-transition:opacity linear .3s;transition:opacity linear .3s} .ng5-slider.animate .ng5-slider-bubble.ng5-slider-combined{-webkit-transition:opacity linear .3s;transition:opacity linear .3s} .ng5-slider.animate .ng5-slider-tick{-webkit-transition:background-color linear .3s;transition:background-color linear .3s}"]}),t}();$.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:o.NgZone}]},$.propDecorators={value:[{type:o.Input}],valueChange:[{type:o.Output}],highValue:[{type:o.Input}],highValueChange:[{type:o.Output}],options:[{type:o.Input}],userChangeStart:[{type:o.Output}],userChange:[{type:o.Output}],userChangeEnd:[{type:o.Output}],manualRefresh:[{type:o.Input}],triggerFocus:[{type:o.Input}],leftOuterSelectionBarElement:[{type:o.ViewChild,args:["leftOuterSelectionBar",{read:F}]}],rightOuterSelectionBarElement:[{type:o.ViewChild,args:["rightOuterSelectionBar",{read:F}]}],fullBarElement:[{type:o.ViewChild,args:["fullBar",{read:F}]}],selectionBarElement:[{type:o.ViewChild,args:["selectionBar",{read:F}]}],minHandleElement:[{type:o.ViewChild,args:["minHandle",{read:z}]}],maxHandleElement:[{type:o.ViewChild,args:["maxHandle",{read:z}]}],floorLabelElement:[{type:o.ViewChild,args:["floorLabel",{read:W}]}],ceilLabelElement:[{type:o.ViewChild,args:["ceilLabel",{read:W}]}],minHandleLabelElement:[{type:o.ViewChild,args:["minHandleLabel",{read:W}]}],maxHandleLabelElement:[{type:o.ViewChild,args:["maxHandleLabel",{read:W}]}],combinedLabelElement:[{type:o.ViewChild,args:["combinedLabel",{read:W}]}],ticksElement:[{type:o.ViewChild,args:["ticksElement",{read:F}]}],tooltipTemplate:[{type:o.ContentChild,args:["tooltipTemplate"]}],sliderElementVerticalClass:[{type:o.HostBinding,args:["class.vertical"]}],sliderElementAnimateClass:[{type:o.HostBinding,args:["class.animate"]}],sliderElementDisabledAttr:[{type:o.HostBinding,args:["attr.disabled"]}],onResize:[{type:o.HostListener,args:["window:resize",["$event"]]}]};var X=function(){function t(){}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o["ɵɵdefineComponent"]({type:t,selectors:[["ng5-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng5-slider-inner-tooltip"]],template:function(t,e){1&t&&(o["ɵɵtemplate"](0,j,2,6,"ng-container",0),o["ɵɵtemplate"](1,k,3,3,"ng-container",0)),2&t&&(o["ɵɵproperty"]("ngIf",e.template),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",!e.template))},directives:[l.NgIf,l.NgTemplateOutlet],styles:[".ng5-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]}),t}();X.ctorParameters=function(){return[]},X.propDecorators={template:[{type:o.Input}],tooltip:[{type:o.Input}],placement:[{type:o.Input}],content:[{type:o.Input}]};var J=function(){function t(){}return t.ɵmod=o["ɵɵdefineNgModule"]({type:t}),t.ɵinj=o["ɵɵdefineInjector"]({factory:function(e){return new(e||t)},imports:[[l.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&o["ɵɵsetNgModuleScope"](t,{declarations:function(){return[$,F,z,W,X]},imports:function(){return[l.CommonModule]},exports:function(){return[$]}}),t}();J.ctorParameters=function(){return[]}},1974:function(t,e,i){"use strict";e.isFunction=function(t){return"function"==typeof t}},1975:function(t,e,i){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},1976:function(t,e,i){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},1977:function(t,e,i){"use strict";var n=i(1978);function r(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:n.noop}e.pipe=function(){for(var t=[],e=0;e=0}},1986:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1854),o=i(1847),s=i(1690),u=i(1691),c={};e.combineLatest=function(){for(var t=[],e=0;e=2&&(i=!0),function(n){return n.lift(new o(t,e,i))}};var o=function(){function t(t,e,i){void 0===i&&(i=!1),this.accumulator=t,this.seed=e,this.hasSeed=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,i,n,r){t.call(this,e),this.accumulator=i,this._seed=n,this.hasSeed=r,this.index=0}return n(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,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(r.Subscriber)},1996:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881),s=i(1857);e.takeLast=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new u(t))}};var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,i){t.call(this,e),this.total=i,this.ring=new Array,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof c&&(i=t.pop()),null===u&&1===t.length&&t[0]instanceof n.Observable?t[0]:s.mergeAll(i)(new r.ArrayObservable(t,u))}},1998:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(2175),s=i(1699),u=i(1922),c=i(1919),a=i(1979),l=function(t){function e(e,i,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=n,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=i<1?1:i}return n(e,t),e.prototype.next=function(e){var i=this._getNow();this._events.push(new h(i,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,i=this._trimBufferThenGetEvents(),n=this.scheduler;if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError||this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new a.SubjectSubscription(this,t)),n&&t.add(t=new u.ObserveOnSubscriber(t,n));for(var r=i.length,o=0;oe&&(o=Math.max(o,r-e)),o>0&&n.splice(0,o),n},e}(r.Subject);e.ReplaySubject=l;var h=function(t,e){this.time=t,this.value=e}},1999:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.switchMap=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.project=i,this.resultSelector=n,this.index=0}return n(e,t),e.prototype._next=function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,i)},e.prototype._innerSub=function(t,e,i){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,i))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,i,n,r){this.resultSelector?this._tryNotifyNext(t,e,i,n):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,i,n){var r;try{r=this.resultSelector(t,e,i,n)}catch(t){return void this.destination.error(t)}this.destination.next(r)},e}(r.OuterSubscriber)},2e3:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(t,i){return void 0===i&&(i=e.defaultThrottleConfig),function(e){return e.lift(new s(t,i.leading,i.trailing))}};var s=function(){function t(t,e,i){this.durationSelector=t,this.leading=e,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector,this.leading,this.trailing))},t}(),u=function(t){function e(e,i,n,r){t.call(this,e),this.destination=e,this.durationSelector=i,this._leading=n,this._trailing=r,this._hasTrailingValue=!1}return n(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=o.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this.throttled;this._trailingValue,this._hasTrailingValue,this._trailing;this._trailingValue=null,this._hasTrailingValue=!1,t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype._sendTrailing=function(){var t=this,e=t.destination,i=t.throttled,n=t._trailing,r=t._trailingValue,o=t._hasTrailingValue;i&&n&&o&&(e.next(r),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,i,n,r){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(r.OuterSubscriber)},2001:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1854),o=i(1847),s=i(1686),u=i(1690),c=i(1691),a=i(1878);function l(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),b=function(t){function e(e,i,n){t.call(this,e),this.parent=i,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return n(e,t),e.prototype[a.iterator]=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,e,i,n,r){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return c.subscribeToResult(this,this.observable,this,e)},e}(u.OuterSubscriber)},2109:function(t,e,i){"use strict";var n=i(1686),r=i(1917),o=i(1976);e.toSubscriber=function(t,e,i){if(t){if(t instanceof n.Subscriber)return t;if(t[r.rxSubscriber])return t[r.rxSubscriber]()}return t||e||i?new n.Subscriber(t,e,i):new n.Subscriber(o.empty)}},2110:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this),this.errors=e;var i=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"");this.name=i.name="UnsubscriptionError",this.stack=i.stack,this.message=i.message}return n(e,t),e}(Error);e.UnsubscriptionError=r},2111:function(t,e,i){"use strict";var n=i(1980);e.audit=n.audit;var r=i(2113);e.auditTime=r.auditTime;var o=i(2118);e.buffer=o.buffer;var s=i(2119);e.bufferCount=s.bufferCount;var u=i(2120);e.bufferTime=u.bufferTime;var c=i(2121);e.bufferToggle=c.bufferToggle;var a=i(2122);e.bufferWhen=a.bufferWhen;var l=i(2123);e.catchError=l.catchError;var h=i(2124);e.combineAll=h.combineAll;var p=i(1986);e.combineLatest=p.combineLatest;var f=i(2125);e.concat=f.concat;var d=i(1988);e.concatAll=d.concatAll;var b=i(1990);e.concatMap=b.concatMap;var v=i(2131);e.concatMapTo=v.concatMapTo;var y=i(2132);e.count=y.count;var m=i(2133);e.debounce=m.debounce;var w=i(2134);e.debounceTime=w.debounceTime;var g=i(1991);e.defaultIfEmpty=g.defaultIfEmpty;var O=i(2135);e.delay=O.delay;var x=i(2136);e.delayWhen=x.delayWhen;var S=i(2137);e.dematerialize=S.dematerialize;var _=i(2138);e.distinct=_.distinct;var E=i(1992);e.distinctUntilChanged=E.distinctUntilChanged;var T=i(2140);e.distinctUntilKeyChanged=T.distinctUntilKeyChanged;var V=i(2141);e.elementAt=V.elementAt;var C=i(2142);e.every=C.every;var L=i(2143);e.exhaust=L.exhaust;var P=i(2144);e.exhaustMap=P.exhaustMap;var j=i(2145);e.expand=j.expand;var k=i(1993);e.filter=k.filter;var N=i(2146);e.finalize=N.finalize;var H=i(1994);e.find=H.find;var M=i(2147);e.findIndex=M.findIndex;var I=i(2148);e.first=I.first;var R=i(2149);e.groupBy=R.groupBy;var A=i(2153);e.ignoreElements=A.ignoreElements;var B=i(2154);e.isEmpty=B.isEmpty;var U=i(2155);e.last=U.last;var D=i(1926);e.map=D.map;var F=i(2156);e.mapTo=F.mapTo;var z=i(2157);e.materialize=z.materialize;var W=i(2158);e.max=W.max;var q=i(2159);e.merge=q.merge;var Y=i(1924);e.mergeAll=Y.mergeAll;var Q=i(1880);e.mergeMap=Q.mergeMap;var G=i(1880);e.flatMap=G.mergeMap;var K=i(2160);e.mergeMapTo=K.mergeMapTo;var $=i(2161);e.mergeScan=$.mergeScan;var X=i(2162);e.min=X.min;var J=i(1858);e.multicast=J.multicast;var Z=i(1922);e.observeOn=Z.observeOn;var tt=i(2164);e.onErrorResumeNext=tt.onErrorResumeNext;var et=i(2165);e.pairwise=et.pairwise;var it=i(2166);e.partition=it.partition;var nt=i(2168);e.pluck=nt.pluck;var rt=i(2169);e.publish=rt.publish;var ot=i(2170);e.publishBehavior=ot.publishBehavior;var st=i(2172);e.publishLast=st.publishLast;var ut=i(2174);e.publishReplay=ut.publishReplay;var ct=i(2178);e.race=ct.race;var at=i(1882);e.reduce=at.reduce;var lt=i(2180);e.repeat=lt.repeat;var ht=i(2181);e.repeatWhen=ht.repeatWhen;var pt=i(2182);e.retry=pt.retry;var ft=i(2183);e.retryWhen=ft.retryWhen;var dt=i(1927);e.refCount=dt.refCount;var bt=i(2184);e.sample=bt.sample;var vt=i(2185);e.sampleTime=vt.sampleTime;var yt=i(1995);e.scan=yt.scan;var mt=i(2186);e.sequenceEqual=mt.sequenceEqual;var wt=i(2187);e.share=wt.share;var gt=i(2188);e.shareReplay=gt.shareReplay;var Ot=i(2189);e.single=Ot.single;var xt=i(2190);e.skip=xt.skip;var St=i(2191);e.skipLast=St.skipLast;var _t=i(2192);e.skipUntil=_t.skipUntil;var Et=i(2193);e.skipWhile=Et.skipWhile;var Tt=i(2194);e.startWith=Tt.startWith;var Vt=i(2195);e.switchAll=Vt.switchAll;var Ct=i(1999);e.switchMap=Ct.switchMap;var Lt=i(2196);e.switchMapTo=Lt.switchMapTo;var Pt=i(2197);e.take=Pt.take;var jt=i(1996);e.takeLast=jt.takeLast;var kt=i(2198);e.takeUntil=kt.takeUntil;var Nt=i(2199);e.takeWhile=Nt.takeWhile;var Ht=i(2200);e.tap=Ht.tap;var Mt=i(2e3);e.throttle=Mt.throttle;var It=i(2201);e.throttleTime=It.throttleTime;var Rt=i(2202);e.timeInterval=Rt.timeInterval;var At=i(2203);e.timeout=At.timeout;var Bt=i(2205);e.timeoutWith=Bt.timeoutWith;var Ut=i(2206);e.timestamp=Ut.timestamp;var Dt=i(2207);e.toArray=Dt.toArray;var Ft=i(2208);e.window=Ft.window;var zt=i(2209);e.windowCount=zt.windowCount;var Wt=i(2210);e.windowTime=Wt.windowTime;var qt=i(2211);e.windowToggle=qt.windowToggle;var Yt=i(2212);e.windowWhen=Yt.windowWhen;var Qt=i(2213);e.withLatestFrom=Qt.withLatestFrom;var Gt=i(2001);e.zip=Gt.zip;var Kt=i(2214);e.zipAll=Kt.zipAll},2112:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i,n){t.call(this),this.parent=e,this.outerValue=i,this.outerIndex=n,this.index=0}return n(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}(i(1686).Subscriber);e.InnerSubscriber=r},2113:function(t,e,i){"use strict";var n=i(1703),r=i(1980),o=i(2116);e.auditTime=function(t,e){return void 0===e&&(e=n.async),r.audit((function(){return o.timer(t,e)}))}},2114:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i(1699).Subscription);e.Action=r},2115:function(t,e,i){"use strict";var n=function(){function t(e,i){void 0===i&&(i=t.now),this.SchedulerAction=e,this.now=i}return t.prototype.schedule=function(t,e,i){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(i,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=n},2116:function(t,e,i){"use strict";var n=i(2117);e.timer=n.TimerObservable.create},2117:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1985),o=i(1695),s=i(1703),u=i(1853),c=i(1879),a=function(t){function e(e,i,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,r.isNumeric(i)?this.period=Number(i)<1?1:Number(i):u.isScheduler(i)&&(n=i),u.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=c.isDate(e)?+e-this.scheduler.now():e}return n(e,t),e.create=function(t,i,n){return void 0===t&&(t=0),new e(t,i,n)},e.dispatch=function(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}},e.prototype._subscribe=function(t){var i=this.period,n=this.dueTime;return this.scheduler.schedule(e.dispatch,n,{index:0,period:i,subscriber:t})},e}(o.Observable);e.TimerObservable=a},2118:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.buffer=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,i){t.call(this,e),this.buffer=[],this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(r.OuterSubscriber)},2119:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.bufferCount=function(t,e){return void 0===e&&(e=null),function(i){return i.lift(new o(t,e))}};var o=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?u:s}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),s=function(t){function e(e,i){t.call(this,e),this.bufferSize=i,this.buffer=[]}return n(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}(r.Subscriber),u=function(t){function e(e,i,n){t.call(this,e),this.bufferSize=i,this.startBufferEvery=n,this.buffers=[],this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.bufferSize,i=this.startBufferEvery,n=this.buffers,r=this.count;this.count++,r%i==0&&n.push([]);for(var o=n.length;o--;){var s=n[o];s.push(t),s.length===e&&(n.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,i=this.destination;e.length>0;){var n=e.shift();n.length>0&&i.next(n)}t.prototype._complete.call(this)},e}(r.Subscriber)},2120:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1686),s=i(1853);e.bufferTime=function(t){var e=arguments.length,i=r.async;s.isScheduler(arguments[arguments.length-1])&&(i=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new u(t,n,o,i))}};var u=function(){function t(t,e,i,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),c=function(){this.buffer=[]},a=function(t){function e(e,i,n,r,o){t.call(this,e),this.bufferTimeSpan=i,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];var s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly){var u={subscriber:this,context:s,bufferTimeSpan:i};this.add(s.closeAction=o.schedule(l,i,u))}else{var c={subscriber:this,context:s},a={bufferTimeSpan:i,bufferCreationInterval:n,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(p,i,c)),this.add(o.schedule(h,n,a))}}return n(e,t),e.prototype._next=function(t){for(var e,i=this.contexts,n=i.length,r=0;r0;){var n=e.shift();i.next(n.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 i=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:i};this.add(t.closeAction=this.scheduler.schedule(l,i,n))}},e.prototype.openContext=function(){var t=new c;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}(o.Subscriber);function l(t){var e=t.subscriber,i=t.context;i&&e.closeContext(i),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function h(t){var e=t.bufferCreationInterval,i=t.bufferTimeSpan,n=t.subscriber,r=t.scheduler,o=n.openContext();n.closed||(n.add(o.closeAction=r.schedule(p,i,{subscriber:n,context:o})),this.schedule(t,e))}function p(t){var e=t.subscriber,i=t.context;e.closeContext(i)}},2121:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1699),o=i(1691),s=i(1690);e.bufferToggle=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,i,n){t.call(this,e),this.openings=i,this.closingSelector=n,this.contexts=[],this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype._next=function(t){for(var e=this.contexts,i=e.length,n=0;n0;){var n=i.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var i=e.shift();this.destination.next(i.buffer),i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,i,n,r){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 i=t.buffer,n=t.subscription;this.destination.next(i),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,i=new r.Subscription,n={buffer:[],subscription:i};e.push(n);var s=o.subscribeToResult(this,t,n);!s||s.closed?this.closeBuffer(n):(s.context=n,this.add(s),i.add(s))},e}(s.OuterSubscriber)},2122:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1699),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.bufferWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,i){t.call(this,e),this.closingSelector=i,this.subscribing=!1,this.openBuffer()}return n(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=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,i,n,r){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=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var i=o.tryCatch(this.closingSelector)();i===s.errorObject?this.error(s.errorObject.e):(t=new r.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(c.subscribeToResult(this,i)),this.subscribing=!1)},e}(u.OuterSubscriber)},2123:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.catchError=function(t){return function(e){var i=new s(t),n=e.lift(i);return i.caught=n}};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.selector=i,this.caught=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var i=void 0;try{i=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,i))}},e}(r.OuterSubscriber)},2124:function(t,e,i){"use strict";var n=i(1986);e.combineAll=function(t){return function(e){return e.lift(new n.CombineLatestOperator(t))}}},2125:function(t,e,i){"use strict";var n=i(1921),r=i(1921);e.concatStatic=r.concat,e.concat=function(){for(var t=[],e=0;el)return l;return e}(t)),this.arr=t,this.idx=e,this.len=i}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx=n?r.complete():(r.next(e[i]),t.index=i+1,this.schedule(t)))},e.prototype._subscribe=function(t){var i=this.arrayLike,n=this.scheduler,r=i.length;if(n)return n.schedule(e.dispatch,0,{arrayLike:i,index:0,length:r,subscriber:t});for(var o=0;o0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.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,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(u.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},e}(s.Subscriber),l=function(t,e){this.time=t,this.notification=e}},2136:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1695),s=i(1690),u=i(1691);e.delayWhen=function(t,e){return e?function(i){return new l(i,e).lift(new c(t))}:function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.delayDurationSelector))},t}(),a=function(t){function e(e,i){t.call(this,e),this.delayDurationSelector=i,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.destination.next(t),this.removeSubscription(r),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){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),i=null;return-1!==e&&(i=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),i},e.prototype.tryDelay=function(t,e){var i=u.subscribeToResult(this,t,e);i&&!i.closed&&(this.add(i),this.delayNotifierSubscriptions.push(i)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(s.OuterSubscriber),l=function(t){function e(e,i){t.call(this),this.source=e,this.subscriptionDelay=i}return n(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new h(t,this.source))},e}(o.Observable),h=function(t){function e(e,i){t.call(this),this.parent=e,this.source=i,this.sourceSubscribed=!1}return n(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.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(r.Subscriber)},2137:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.dematerialize=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e)}return n(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(r.Subscriber)},2138:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691),s=i(2139);e.distinct=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},t}(),c=function(t){function e(e,i,n){t.call(this,e),this.keySelector=i,this.values=new s.Set,n&&this.add(o.subscribeToResult(this,n))}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,i=this.destination;try{e=this.keySelector(t)}catch(t){return void i.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var i=this.values;i.has(t)||(i.add(t),this.destination.next(e))},e}(r.OuterSubscriber);e.DistinctSubscriber=c},2139:function(t,e,i){"use strict";var n=i(1710);function r(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}e.minimalSetImpl=r,e.Set=n.root.Set||r()},2140:function(t,e,i){"use strict";var n=i(1992);e.distinctUntilKeyChanged=function(t,e){return n.distinctUntilChanged((function(i,n){return e?e(i[t],n[t]):i[t]===n[t]}))}},2141:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881);e.elementAt=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.index,this.defaultValue))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.index=i,this.defaultValue=n}return n(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new o.ArgumentOutOfRangeError)),t.complete()},e}(r.Subscriber)},2142:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.every=function(t,e){return function(i){return i.lift(new o(t,e,i))}};var o=function(){function t(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))},t}(),s=function(t){function e(e,i,n,r){t.call(this,e),this.predicate=i,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}return n(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}(r.Subscriber)},2143:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.exhaust=function(){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){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return n(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(o.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(r.OuterSubscriber)},2144:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.exhaustMap=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.project=i,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return n(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,i=this.destination;try{var n=this.project(t,e);this.hasSubscription=!0,this.add(o.subscribeToResult(this,n,t,e))}catch(t){i.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.resultSelector,s=this.destination;o?this.trySelectResult(t,e,i,n):s.next(e)},e.prototype.trySelectResult=function(t,e,i,n){var r=this.resultSelector,o=this.destination;try{var s=r(t,e,i,n);o.next(s)}catch(t){o.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(r.OuterSubscriber)},2145:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1706),o=i(1702),s=i(1690),u=i(1691);e.expand=function(t,e,i){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===i&&(i=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new c(t,e,i))}};var c=function(){function t(t,e,i){this.project=t,this.concurrent=e,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=c;var a=function(t){function e(e,i,n,r){t.call(this,e),this.project=i,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(s.OuterSubscriber);e.ExpandSubscriber=a},2146:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1699);e.finalize=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,i){t.call(this,e),this.add(new o.Subscription(i))}return n(e,t),e}(r.Subscriber)},2147:function(t,e,i){"use strict";var n=i(1994);e.findIndex=function(t,e){return function(i){return i.lift(new n.FindValueOperator(t,i,!0,e))}}},2148:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1925);e.first=function(t,e,i){return function(n){return n.lift(new s(t,e,i,n))}};var s=function(){function t(t,e,i,n){this.predicate=t,this.resultSelector=e,this.defaultValue=i,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,i,n,r,o){t.call(this,e),this.predicate=i,this.resultSelector=n,this.defaultValue=r,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return n(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var i;try{i=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}i&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var i;try{i=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(i)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new o.EmptyError):(t.next(this.defaultValue),t.complete())},e}(r.Subscriber)},2149:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1699),s=i(1695),u=i(1694),c=i(2150),a=i(2152);e.groupBy=function(t,e,i,n){return function(r){return r.lift(new l(t,e,i,n))}};var l=function(){function t(t,e,i,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=i,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),h=function(t){function e(e,i,n,r,o){t.call(this,e),this.keySelector=i,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return n(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 i=this.groups;i||(i=this.groups="string"==typeof e?new a.FastMap:new c.Map);var n,r=i.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(t){this.error(t)}else n=t;if(!r){r=this.subjectSelector?this.subjectSelector():new u.Subject,i.set(e,r);var o=new f(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new f(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new p(e,r,this)))}}r.closed||r.next(n)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,i){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}(r.Subscriber),p=function(t){function e(e,i,n){t.call(this,i),this.key=e,this.group=i,this.parent=n}return n(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}(r.Subscriber),f=function(t){function e(e,i,n){t.call(this),this.key=e,this.groupSubject=i,this.refCountSubscription=n}return n(e,t),e.prototype._subscribe=function(t){var e=new o.Subscription,i=this.refCountSubscription,n=this.groupSubject;return i&&!i.closed&&e.add(new d(i)),e.add(n.subscribe(t)),e},e}(s.Observable);e.GroupedObservable=f;var d=function(t){function e(e){t.call(this),this.parent=e,e.count++}return n(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.Subscription)},2150:function(t,e,i){"use strict";var n=i(1710),r=i(2151);e.Map=n.root.Map||r.MapPolyfill},2151:function(t,e,i){"use strict";var n=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var i=this._keys.indexOf(t);return-1===i?(this._keys.push(t),this._values.push(e),this.size++):this._values[i]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var i=0;i0?e:i}:function(t,e){return t>e?t:e};return n.reduce(e)}},2159:function(t,e,i){"use strict";var n=i(1997),r=i(1997);e.mergeStatic=r.merge,e.merge=function(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(r.OuterSubscriber);e.MergeMapToSubscriber=u},2161:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1706),o=i(1702),s=i(1691),u=i(1690);e.mergeScan=function(t,e,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),function(n){return n.lift(new c(t,e,i))}};var c=function(){function t(t,e,i){this.accumulator=t,this.seed=e,this.concurrent=i}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=c;var a=function(t){function e(e,i,n,r){t.call(this,e),this.accumulator=i,this.acc=n,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(u.OuterSubscriber);e.MergeScanSubscriber=a},2162:function(t,e,i){"use strict";var n=i(1882);e.min=function(t){var e="function"==typeof t?function(e,i){return t(e,i)<0?e:i}:function(t,e){return t1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber))},2164:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1987),o=i(1847),s=i(1690),u=i(1691);e.onErrorResumeNext=function(){for(var t=[],e=0;e0?t.prototype.schedule.call(this,e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,i){return i>0||this.closed?t.prototype.execute.call(this,e,i):this._execute(e,i)},e.prototype.requestAsyncId=function(e,i,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,i,n):e.flush(this)},e}(i(1983).AsyncAction);e.QueueAction=r},2177:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(i(1984).AsyncScheduler);e.QueueScheduler=r},2178:function(t,e,i){"use strict";var n=i(1847),r=i(2179);e.race=function(){for(var t=[],e=0;e-1&&(this.count=i-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(r.Subscriber)},2181:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.repeatWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,e))},t}(),l=function(t){function e(e,i,n){t.call(this,e),this.notifier=i,this.source=n,this.sourceIsBeingSubscribedTo=!0}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){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()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this.notifications,i=this.retries,n=this.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=e,this.retries=i,this.retriesSubscription=n,this},e.prototype.subscribeToRetries=function(){this.notifications=new r.Subject;var e=o.tryCatch(this.notifier)(this.notifications);if(e===s.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=c.subscribeToResult(this,e)},e}(u.OuterSubscriber)},2182:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.retry=function(t){return void 0===t&&(t=-1),function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},t}(),s=function(t){function e(e,i,n){t.call(this,e),this.count=i,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var i=this.source,n=this.count;if(0===n)return t.prototype.error.call(this,e);n>-1&&(this.count=n-1),i.subscribe(this._unsubscribeAndRecycle())}},e}(r.Subscriber)},2183:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.retryWhen=function(t){return function(e){return e.lift(new a(t,e))}};var a=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,i,n){t.call(this,e),this.notifier=i,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var i=this.errors,n=this.retries,u=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(i=new r.Subject,(n=o.tryCatch(this.notifier)(i))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);u=c.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=i,this.retries=n,this.retriesSubscription=u,i.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.errors,s=this.retries,u=this.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=o,this.retries=s,this.retriesSubscription=u,this.source.subscribe(this)},e}(u.OuterSubscriber)},2184:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.sample=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var i=new u(t),n=e.subscribe(i);return n.add(o.subscribeToResult(i,this.notifier)),n},t}(),u=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return n(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,i,n,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(r.OuterSubscriber)},2185:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703);e.sampleTime=function(t,e){return void 0===e&&(e=o.async),function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.period,this.scheduler))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.period=i,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(c,i,{subscriber:this,period:i}))}return n(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}(r.Subscriber);function c(t){var e=t.subscriber,i=t.period;e.notifyNext(),this.schedule(t,i)}},2186:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1706),s=i(1702);e.sequenceEqual=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=u;var c=function(t){function e(e,i,n){t.call(this,e),this.compareTo=i,this.comparor=n,this._a=[],this._b=[],this._oneComplete=!1,this.add(i.subscribe(new a(e,this)))}return n(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},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,i=this.comparor;t.length>0&&e.length>0;){var n=t.shift(),r=e.shift(),u=!1;i?(u=o.tryCatch(i)(n,r))===s.errorObject&&this.destination.error(s.errorObject.e):u=n===r,u||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}(r.Subscriber);e.SequenceEqualSubscriber=c;var a=function(t){function e(e,i){t.call(this,e),this.parent=i}return n(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(r.Subscriber)},2187:function(t,e,i){"use strict";var n=i(1858),r=i(1927),o=i(1694);function s(){return new o.Subject}e.share=function(){return function(t){return r.refCount()(n.multicast(s)(t))}}},2188:function(t,e,i){"use strict";var n=i(1998);e.shareReplay=function(t,e,i){return function(r){return r.lift(function(t,e,i){var r,o,s=0,u=!1,c=!1;return function(a){s++,r&&!u||(u=!1,r=new n.ReplaySubject(t,e,i),o=a.subscribe({next:function(t){r.next(t)},error:function(t){u=!0,r.error(t)},complete:function(){c=!0,r.complete()}}));var l=r.subscribe(this);return function(){s--,l.unsubscribe(),o&&0===s&&c&&o.unsubscribe()}}}(t,e,i))}}},2189:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1925);e.single=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.source))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.predicate=i,this.source=n,this.seenValue=!1,this.index=0}return n(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 o.EmptyError)},e}(r.Subscriber)},2190:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.skip=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,i){t.call(this,e),this.total=i,this.count=0}return n(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(r.Subscriber)},2191:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881);e.skipLast=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new r.Subscriber(t)):e.subscribe(new u(t,this._skipCount))},t}(),u=function(t){function e(e,i){t.call(this,e),this._skipCount=i,this._count=0,this._ring=new Array(i)}return n(e,t),e.prototype._next=function(t){var e=this._skipCount,i=this._count++;if(i1?s.concat(new n.ArrayObservable(t,i),e):s.concat(new o.EmptyObservable(i),e)}}},2195:function(t,e,i){"use strict";var n=i(1999),r=i(1989);e.switchAll=function(){return n.switchMap(r.identity)}},2196:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.switchMapTo=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observable,this.resultSelector))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.inner=i,this.resultSelector=n,this.index=0}return n(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.resultSelector,s=this.destination;o?this.tryResultSelector(t,e,i,n):s.next(e)},e.prototype.tryResultSelector=function(t,e,i,n){var r,o=this.resultSelector,s=this.destination;try{r=o(t,e,i,n)}catch(t){return void s.error(t)}s.next(r)},e}(r.OuterSubscriber)},2197:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881),s=i(1857);e.take=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new u(t))}};var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,i){t.call(this,e),this.total=i,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))},e}(r.Subscriber)},2198:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.takeUntil=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,i){t.call(this,e),this.notifier=i,this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.complete()},e.prototype.notifyComplete=function(){},e}(r.OuterSubscriber)},2199:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.takeWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,i){t.call(this,e),this.predicate=i,this.index=0}return n(e,t),e.prototype._next=function(t){var e,i=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void i.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var i=this.destination;Boolean(e)?i.next(t):i.complete()},e}(r.Subscriber)},2200:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.tap=function(t,e,i){return function(n){return n.lift(new o(t,e,i))}};var o=function(){function t(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,i,n,o){t.call(this,e);var s=new r.Subscriber(i,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(r.Subscriber)},2201:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703),s=i(2e3);e.throttleTime=function(t,e,i){return void 0===e&&(e=o.async),void 0===i&&(i=s.defaultThrottleConfig),function(n){return n.lift(new u(t,e,i.leading,i.trailing))}};var u=function(){function t(t,e,i,n){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),c=function(t){function e(e,i,n,r,o){t.call(this,e),this.duration=i,this.scheduler=n,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return n(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(a,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},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}(r.Subscriber);function a(t){t.subscriber.clearThrottle()}},2202:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703);e.timeInterval=function(t){return void 0===t&&(t=o.async),function(e){return e.lift(new u(t))}};var s=function(t,e){this.value=t,this.interval=e};e.TimeInterval=s;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,i){t.call(this,e),this.scheduler=i,this.lastTime=0,this.lastTime=i.now()}return n(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),i=e-this.lastTime;this.lastTime=e,this.destination.next(new s(t,i))},e}(r.Subscriber)},2203:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1879),s=i(1686),u=i(2204);e.timeout=function(t,e){void 0===e&&(e=r.async);var i=o.isDate(t),n=i?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,i,e,new u.TimeoutError))}};var c=function(){function t(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=i,this.errorInstance=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),a=function(t){function e(e,i,n,r,o){t.call(this,e),this.absoluteTimeout=i,this.waitFor=n,this.scheduler=r,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return n(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},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=null,this.scheduler=null,this.errorInstance=null},e}(s.Subscriber)},2204:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.TimeoutError=r},2205:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1879),s=i(1690),u=i(1691);e.timeoutWith=function(t,e,i){return void 0===i&&(i=r.async),function(n){var r=o.isDate(t),s=r?+t-i.now():Math.abs(t);return n.lift(new c(s,r,e,i))}};var c=function(){function t(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),a=function(t){function e(e,i,n,r,o){t.call(this,e),this.absoluteTimeout=i,this.waitFor=n,this.withObservable=r,this.scheduler=o,this.action=null,this.scheduleTimeout()}return n(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(u.subscribeToResult(t,e))},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=null,this.scheduler=null,this.withObservable=null},e}(s.OuterSubscriber)},2206:function(t,e,i){"use strict";var n=i(1703),r=i(1926);e.timestamp=function(t){return void 0===t&&(t=n.async),r.map((function(e){return new o(e,t.now())}))};var o=function(t,e){this.value=t,this.timestamp=e};e.Timestamp=o},2207:function(t,e,i){"use strict";var n=i(1882);function r(t,e,i){return 0===i?[e]:(t.push(e),t)}e.toArray=function(){return n.reduce(r,[])}},2208:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1690),s=i(1691);e.window=function(t){return function(e){return e.lift(new u(t))}};var u=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var i=new c(t),n=e.subscribe(i);return n.closed||i.add(s.subscribeToResult(i,this.windowBoundaries)),n},t}(),c=function(t){function e(e){t.call(this,e),this.window=new r.Subject,e.next(this.window)}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){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,i=this.window=new r.Subject;e.next(i)},e}(o.OuterSubscriber)},2209:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1694);e.windowCount=function(t,e){return void 0===e&&(e=0),function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowSize,this.startWindowEvery))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.destination=e,this.windowSize=i,this.startWindowEvery=n,this.windows=[new o.Subject],this.count=0,e.next(this.windows[0])}return n(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,i=this.destination,n=this.windowSize,r=this.windows,s=r.length,u=0;u=0&&c%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var a=new o.Subject;r.push(a),i.next(a)}},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}(r.Subscriber)},2210:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1703),s=i(1686),u=i(1985),c=i(1853);e.windowTime=function(t){var e=o.async,i=null,n=Number.POSITIVE_INFINITY;return c.isScheduler(arguments[3])&&(e=arguments[3]),c.isScheduler(arguments[2])?e=arguments[2]:u.isNumeric(arguments[2])&&(n=arguments[2]),c.isScheduler(arguments[1])?e=arguments[1]:u.isNumeric(arguments[1])&&(i=arguments[1]),function(r){return r.lift(new a(t,i,n,e))}};var a=function(){function t(t,e,i,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=i,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),l=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return n(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}(r.Subject),h=function(t){function e(e,i,n,r,o){t.call(this,e),this.destination=e,this.windowTimeSpan=i,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=o,this.windows=[];var s=this.openWindow();if(null!==n&&n>=0){var u={subscriber:this,window:s,context:null},c={windowTimeSpan:i,windowCreationInterval:n,subscriber:this,scheduler:o};this.add(o.schedule(d,i,u)),this.add(o.schedule(f,n,c))}else{var a={subscriber:this,window:s,windowTimeSpan:i};this.add(o.schedule(p,i,a))}}return n(e,t),e.prototype._next=function(t){for(var e=this.windows,i=e.length,n=0;n=this.maxWindowSize&&this.closeWindow(r))}},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 l;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}(s.Subscriber);function p(t){var e=t.subscriber,i=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,i)}function f(t){var e=t.windowTimeSpan,i=t.subscriber,n=t.scheduler,r=t.windowCreationInterval,o=i.openWindow(),s={action:this,subscription:null},u={subscriber:i,window:o,context:s};s.subscription=n.schedule(d,e,u),this.add(s.subscription),this.schedule(t,r)}function d(t){var e=t.subscriber,i=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(i)}},2211:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1699),s=i(1706),u=i(1702),c=i(1690),a=i(1691);e.windowToggle=function(t,e){return function(i){return i.lift(new l(t,e))}};var l=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.openings,this.closingSelector))},t}(),h=function(t){function e(e,i,n){t.call(this,e),this.openings=i,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=a.subscribeToResult(this,i,i))}return n(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var i=e.length,n=0;n0){var s=o.indexOf(i);-1!==s&&o.splice(s,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}(r.OuterSubscriber)},2214:function(t,e,i){"use strict";var n=i(2001);e.zipAll=function(t){return function(e){return e.lift(new n.ZipOperator(t))}}},2215:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),i=function(){};window.addEventListener("testPassiveEventSupport",i,e),window.removeEventListener("testPassiveEventSupport",i,e),n.hasSupport=t}}};n.update(),e.default=n}}]);