(window.webpackJsonp=window.webpackJsonp||[]).push([[4],[function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createPlatform",function(){return un}),n.d(t,"assertPlatform",function(){return ln}),n.d(t,"destroyPlatform",function(){return fn}),n.d(t,"getPlatform",function(){return pn}),n.d(t,"PlatformRef",function(){return hn}),n.d(t,"ApplicationRef",function(){return gn}),n.d(t,"enableProdMode",function(){return on}),n.d(t,"isDevMode",function(){return an}),n.d(t,"createPlatformFactory",function(){return cn}),n.d(t,"NgProbeToken",function(){return sn}),n.d(t,"APP_ID",function(){return ot}),n.d(t,"PACKAGE_ROOT_URL",function(){return pt}),n.d(t,"PLATFORM_INITIALIZER",function(){return ct}),n.d(t,"PLATFORM_ID",function(){return lt}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return ft}),n.d(t,"APP_INITIALIZER",function(){return rt}),n.d(t,"ApplicationInitStatus",function(){return it}),n.d(t,"DebugElement",function(){return Fn}),n.d(t,"DebugNode",function(){return Vn}),n.d(t,"asNativeElements",function(){return Hn}),n.d(t,"getDebugNode",function(){return Wn}),n.d(t,"Testability",function(){return $t}),n.d(t,"TestabilityRegistry",function(){return Zt}),n.d(t,"setTestabilityGetter",function(){return Xt}),n.d(t,"TRANSLATIONS",function(){return vr}),n.d(t,"TRANSLATIONS_FORMAT",function(){return br}),n.d(t,"LOCALE_ID",function(){return mr}),n.d(t,"MissingTranslationStrategy",function(){return _r}),n.d(t,"ApplicationModule",function(){return Sr}),n.d(t,"wtfCreateScope",function(){return jt}),n.d(t,"wtfLeave",function(){return Ut}),n.d(t,"wtfStartTimeRange",function(){return Vt}),n.d(t,"wtfEndTimeRange",function(){return Ft}),n.d(t,"Type",function(){return Me}),n.d(t,"EventEmitter",function(){return Ht}),n.d(t,"ErrorHandler",function(){return Ie}),n.d(t,"Sanitizer",function(){return Ar}),n.d(t,"SecurityContext",function(){return Tr}),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return y}),n.d(t,"Attribute",function(){return m}),n.d(t,"ContentChild",function(){return _}),n.d(t,"ContentChildren",function(){return b}),n.d(t,"Query",function(){return v}),n.d(t,"ViewChild",function(){return C}),n.d(t,"ViewChildren",function(){return w}),n.d(t,"Component",function(){return I}),n.d(t,"Directive",function(){return A}),n.d(t,"HostBinding",function(){return N}),n.d(t,"HostListener",function(){return R}),n.d(t,"Input",function(){return k}),n.d(t,"Output",function(){return x}),n.d(t,"Pipe",function(){return O}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return P}),n.d(t,"NO_ERRORS_SCHEMA",function(){return D}),n.d(t,"NgModule",function(){return M}),n.d(t,"ViewEncapsulation",function(){return L}),n.d(t,"Version",function(){return B}),n.d(t,"VERSION",function(){return j}),n.d(t,"forwardRef",function(){return J}),n.d(t,"resolveForwardRef",function(){return ee}),n.d(t,"Injector",function(){return oe}),n.d(t,"ReflectiveInjector",function(){return Je}),n.d(t,"ResolvedReflectiveFactory",function(){return Ke}),n.d(t,"ReflectiveKey",function(){return Pe}),n.d(t,"InjectionToken",function(){return u}),n.d(t,"Inject",function(){return U}),n.d(t,"Optional",function(){return V}),n.d(t,"Injectable",function(){return F}),n.d(t,"Self",function(){return H}),n.d(t,"SkipSelf",function(){return q}),n.d(t,"Host",function(){return z}),n.d(t,"NgZone",function(){return qt}),n.d(t,"RenderComponentType",function(){return mn}),n.d(t,"Renderer",function(){return bn}),n.d(t,"Renderer2",function(){return En}),n.d(t,"RendererFactory2",function(){return wn}),n.d(t,"RendererStyleFlags2",function(){return Cn}),n.d(t,"RootRenderer",function(){return _n}),n.d(t,"COMPILER_OPTIONS",function(){return mt}),n.d(t,"Compiler",function(){return yt}),n.d(t,"CompilerFactory",function(){return vt}),n.d(t,"ModuleWithComponentFactories",function(){return dt}),n.d(t,"ComponentFactory",function(){return _t}),n.d(t,"ComponentRef",function(){return bt}),n.d(t,"ComponentFactoryResolver",function(){return At}),n.d(t,"ElementRef",function(){return Sn}),n.d(t,"NgModuleFactory",function(){return xt}),n.d(t,"NgModuleRef",function(){return kt}),n.d(t,"NgModuleFactoryLoader",function(){return Tn}),n.d(t,"getModuleFactory",function(){return On}),n.d(t,"QueryList",function(){return kn}),n.d(t,"SystemJsNgModuleLoader",function(){return Rn}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return xn}),n.d(t,"TemplateRef",function(){return Dn}),n.d(t,"ViewContainerRef",function(){return Mn}),n.d(t,"EmbeddedViewRef",function(){return jn}),n.d(t,"ViewRef",function(){return Bn}),n.d(t,"ChangeDetectionStrategy",function(){return E}),n.d(t,"ChangeDetectorRef",function(){return Ln}),n.d(t,"DefaultIterableDiffer",function(){return nr}),n.d(t,"IterableDiffers",function(){return lr}),n.d(t,"KeyValueDiffers",function(){return fr}),n.d(t,"SimpleChange",function(){return Zn}),n.d(t,"WrappedValue",function(){return Yn}),n.d(t,"platformCore",function(){return yr}),n.d(t,"ɵALLOW_MULTIPLE_PLATFORMS",function(){return rn}),n.d(t,"ɵAPP_ID_RANDOM_PROVIDER",function(){return st}),n.d(t,"ɵValueUnwrapper",function(){return $n}),n.d(t,"ɵdevModeEqual",function(){return Qn}),n.d(t,"ɵisListLikeIterable",function(){return Xn}),n.d(t,"ɵChangeDetectorStatus",function(){return S}),n.d(t,"ɵisDefaultChangeDetectionStrategy",function(){return T}),n.d(t,"ɵConsole",function(){return ht}),n.d(t,"ɵComponentFactory",function(){return _t}),n.d(t,"ɵCodegenComponentFactoryResolver",function(){return It}),n.d(t,"ɵReflectionCapabilities",function(){return je}),n.d(t,"ɵRenderDebugInfo",function(){return vn}),n.d(t,"ɵglobal",function(){return G}),n.d(t,"ɵlooseIdentical",function(){return Z}),n.d(t,"ɵstringify",function(){return X}),n.d(t,"ɵmakeDecorator",function(){return p}),n.d(t,"ɵisObservable",function(){return nt}),n.d(t,"ɵisPromise",function(){return tt}),n.d(t,"ɵclearOverrides",function(){return rs}),n.d(t,"ɵoverrideComponentView",function(){return ns}),n.d(t,"ɵoverrideProvider",function(){return ts}),n.d(t,"ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return Ao}),n.d(t,"ɵdefineComponent",function(){return fu}),n.d(t,"ɵdetectChanges",function(){return lu}),n.d(t,"ɵrenderComponent",function(){return cu}),n.d(t,"ɵC",function(){return $s}),n.d(t,"ɵD",function(){return Ys}),n.d(t,"ɵE",function(){return js}),n.d(t,"ɵT",function(){return Gs}),n.d(t,"ɵV",function(){return eu}),n.d(t,"ɵb",function(){return ou}),n.d(t,"ɵb1",function(){return au}),n.d(t,"ɵc",function(){return Zs}),n.d(t,"ɵcR",function(){return Xs}),n.d(t,"ɵcr",function(){return Js}),n.d(t,"ɵe",function(){return qs}),n.d(t,"ɵp",function(){return zs}),n.d(t,"ɵs",function(){return Ws}),n.d(t,"ɵt",function(){return Qs}),n.d(t,"ɵv",function(){return tu}),n.d(t,"ɵregisterModuleFactory",function(){return In}),n.d(t,"ɵEMPTY_ARRAY",function(){return Ei}),n.d(t,"ɵEMPTY_MAP",function(){return Si}),n.d(t,"ɵand",function(){return Ti}),n.d(t,"ɵccf",function(){return Ki}),n.d(t,"ɵcmf",function(){return is}),n.d(t,"ɵcrt",function(){return Kr}),n.d(t,"ɵdid",function(){return yo}),n.d(t,"ɵeld",function(){return Ai}),n.d(t,"ɵelementEventFullName",function(){return ri}),n.d(t,"ɵgetComponentViewDefinitionFactory",function(){return Wi}),n.d(t,"ɵinlineInterpolate",function(){return wi}),n.d(t,"ɵinterpolate",function(){return _i}),n.d(t,"ɵmod",function(){return Mi}),n.d(t,"ɵmpd",function(){return Di}),n.d(t,"ɵncd",function(){return jo}),n.d(t,"ɵnov",function(){return ro}),n.d(t,"ɵpid",function(){return mo}),n.d(t,"ɵprd",function(){return vo}),n.d(t,"ɵpad",function(){return Fo}),n.d(t,"ɵpod",function(){return Ho}),n.d(t,"ɵppd",function(){return Vo}),n.d(t,"ɵqud",function(){return Po}),n.d(t,"ɵted",function(){return zo}),n.d(t,"ɵunv",function(){return Hr}),n.d(t,"ɵvid",function(){return Go}),n.d(t,"AUTO_STYLE",function(){return Eu}),n.d(t,"trigger",function(){return Su}),n.d(t,"animate",function(){return Tu}),n.d(t,"group",function(){return Au}),n.d(t,"sequence",function(){return Iu}),n.d(t,"style",function(){return Ou}),n.d(t,"state",function(){return ku}),n.d(t,"keyframes",function(){return xu}),n.d(t,"transition",function(){return Nu}),n.d(t,"ɵbe",function(){return yu}),n.d(t,"ɵbf",function(){return mu}),n.d(t,"ɵbj",function(){return wu}),n.d(t,"ɵbg",function(){return vu}),n.d(t,"ɵbi",function(){return _u}),n.d(t,"ɵbh",function(){return bu}),n.d(t,"ɵbk",function(){return Cu}),n.d(t,"ɵbd",function(){return gu}),n.d(t,"ɵm",function(){return wr}),n.d(t,"ɵn",function(){return Cr}),n.d(t,"ɵo",function(){return Er}),n.d(t,"ɵh",function(){return at}),n.d(t,"ɵi",function(){return dr}),n.d(t,"ɵj",function(){return gr}),n.d(t,"ɵk",function(){return er}),n.d(t,"ɵl",function(){return sr}),n.d(t,"ɵd",function(){return et}),n.d(t,"ɵf",function(){return He}),n.d(t,"ɵg",function(){return Qe}),n.d(t,"ɵq",function(){return Lt}),n.d(t,"ɵu",function(){return Rt}),n.d(t,"ɵr",function(){return Nt}),n.d(t,"ɵy",function(){return Mt}),n.d(t,"ɵw",function(){return Pt}),n.d(t,"ɵx",function(){return Dt}),n.d(t,"ɵbb",function(){return bs}),n.d(t,"ɵa",function(){return d}),n.d(t,"ɵz",function(){return bo}),n.d(t,"ɵba",function(){return Dr});var r=n(4),i=n(45),o=n(627),a=n(473),s=n(102),u=function(){function e(e){this._desc=e,this.ngMetadataName="InjectionToken"}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),c="__annotations__",l="__paramaters__",f="__prop__metadata__";function p(e,t,n,r){var i=h(t);function o(e){if(this instanceof o)return i.call(this,e),this;var t=new o(e),n=function(e){return(e.hasOwnProperty(c)?e[c]:Object.defineProperty(e,c,{value:[]})[c]).push(t),e};return r&&r(n),n}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}function h(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var a=t[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):X(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(de,"\n ")}function _e(e,t){return new Error(be(e,t))}var we="ngDebugContext",Ce="ngOriginalError",Ee="ngErrorLogger";function Se(e){return e[we]}function Te(e){return e[Ce]}function Ae(e){for(var t=[],n=1;n1?" ("+ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return X(e.token)}).join(" -> ")+")":""}function ke(e,t,n,r){var i=[t],o=n(i),a=r?function(e,t){var n=e+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[Ce]=t,r}(o,r):Error(o);return a.addKey=xe,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a[Ce]=r,a}function xe(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Ne(e,t){for(var n=[],r=0,i=t.length;r=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return ke(e,t,function(e){return"Cannot instantiate cyclic dependency!"+Oe(e)})}(this,e.key);return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+X(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.decorators=[{type:F}],e.ctorParameters=function(){return[{type:oe}]},e}();function dn(e,t){return e=Array.isArray(t)?t.reduce(dn,e):Object(r.a)({},e,t)}var gn=function(){function e(e,t,n,r,s,u){var c=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=an(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new i.Observable(function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){e.next(c._stable),e.complete()})}),f=new i.Observable(function(e){var t;c._zone.runOutsideAngular(function(){t=c._zone.onStable.subscribe(function(){qt.assertNotInAngularZone(),$(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){qt.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.merge)(l,a.share.call(f))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof _t?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof Ot?null:this._injector.get(kt),o=t||n.selector,a=n.create(oe.NULL,[],o,i);a.onDestroy(function(){r._unloadComponent(a)});var s=a.injector.get($t,null);return s&&a.injector.get(Zt).registerApplication(a.location.nativeElement,s),this._loadComponent(a),an()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Ut(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;yn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ft,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),yn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=jt("ApplicationRef#tick()"),e.decorators=[{type:F}],e.ctorParameters=function(){return[{type:qt},{type:ht},{type:oe},{type:Ie},{type:At},{type:it}]},e}();function yn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var mn=function(){return function(e,t,n,r,i,o){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),vn=function(){return function(){}}(),bn=function(){return function(){}}(),_n=(new u("Renderer2Interceptor"),function(){return function(){}}()),wn=function(){return function(){}}(),Cn={Important:1,DashCase:2};Cn[Cn.Important]="Important",Cn[Cn.DashCase]="DashCase";var En=function(){return function(){}}(),Sn=function(){return function(e){this.nativeElement=e}}(),Tn=function(){return function(){}}(),An=new Map; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function In(e,t){var n=An.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);An.set(e,t)}function On(e){var t=An.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var kn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Ht}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[Y()]=function(){return this._results[Y()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}();var xn=function(){return function(){}}(),Nn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Rn=function(){function e(e,t){this._compiler=e,this._config=t||Nn}return e.prototype.load=function(e){return this._compiler instanceof yt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=e.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n(489)(i).then(function(e){return e[o]}).then(function(e){return Pn(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n(489)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return Pn(e,r,i)})},e.decorators=[{type:F}],e.ctorParameters=function(){return[{type:yt},{type:xn,decorators:[{type:V}]}]},e}();function Pn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Dn=function(){return function(){}}(),Mn=function(){return function(){}}(),Ln=function(){return function(){}}(),Bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(Ln),jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(Bn),Un=function(){return function(e,t){this.name=e,this.callback=t}}(),Vn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fn=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(r.c)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return qn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return zn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Vn); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Hn(e){return e.map(function(e){return e.nativeElement})}function qn(e,t,n){e.childNodes.forEach(function(e){e instanceof Fn&&(t(e)&&n.push(e),qn(e,t,n))})}function zn(e,t,n){e instanceof Fn&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fn&&zn(e,t,n)})}var Kn=new Map;function Wn(e){return Kn.get(e)||null}function Gn(e){Kn.set(e.nativeNode,e)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Qn(e,t){var n=Xn(e),r=Xn(t);return n&&r?function(e,t,n){var r=e[Y()](),i=t[Y()]();for(;;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(e,t,Qn):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||Z(e,t)}var Yn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),$n=function(){function e(){this.hasWrappedValue=!1}return e.prototype.unwrap=function(e){return e instanceof Yn?(this.hasWrappedValue=!0,e.wrapped):e},e.prototype.reset=function(){this.hasWrappedValue=!1},e}(),Zn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Xn(e){return!!Jn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Y()in e)}function Jn(e){return null!==e&&("function"==typeof e||"object"==typeof e)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var er=function(){function e(){}return e.prototype.supports=function(e){return Xn(e)},e.prototype.create=function(e){return new nr(e)},e}(),tr=function(e,t){return t},nr=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||tr}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0?i[n-1]:null,r)}function Ui(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qi(n,t),Mr.dirtyParentQueries(r),Fi(r),r}function Vi(e,t,n){var r=t?ni(t,t.def.lastRenderRootNode):e.renderElement;pi(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Fi(e){pi(e,3,null,null,void 0)}function Hi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qi(e,t){t>=e.length-1?e.pop():e.splice(t,1)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var zi=new Object;function Ki(e,t,n,r,i,o){return new Gi(e,t,n,r,i,o)}function Wi(e){return e.viewDefFactory}var Gi=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.selector=t,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t){var r=t[n];e.push({propName:n,templateName:r})}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs){var n=this._outputs[t];e.push({propName:t,templateName:n})}return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=fi(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Mr.createRootView(e,t||[],n,i,r,zi),s=Nr(a,o).instance;return n&&a.renderer.setAttribute(xr(a,0).renderElement,"ng-version",j.full),new Qi(a,new Xi(a),s)},t}(_t),Qi=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Sn(xr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new no(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(bt);function Yi(e,t,n){return new $i(e,t,n)}var $i=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Sn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new no(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ti(e),e=e.parent;return e?new no(e,t):new no(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ui(this._data,e);Mr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Xi(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Ot||(i=o.get(kt));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e,r=n._view;return ji(this._view,this._data,t,r),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function(e,t,n){var r=e.viewContainer._embeddedViews,i=r[t];qi(r,t),null==n&&(n=r.length),Hi(r,n,i),Mr.dirtyParentQueries(i),Fi(i),Vi(e,n>0?r[n-1]:null,i)}(this._data,n,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ui(this._data,e);t&&Mr.destroyView(t)},e.prototype.detach=function(e){var t=Ui(this._data,e);return t?new Xi(t):null},e}();function Zi(e){return new Xi(e)}var Xi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return function(e){var t=[];return pi(e,0,void 0,void 0,t),t}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Zr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Mr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Mr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Mr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Fi(this._view),Mr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Ji(e,t){return new eo(e,t)}var eo=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.c)(t,e),t.prototype.createEmbeddedView=function(e){return new Xi(Mr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Sn(xr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function to(e,t){return new no(e,t)}var no=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=oe.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Mr.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:Fr(e)},t)},e}();function ro(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=xr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return kr(e,n.nodeIndex).renderText;if(20240&n.flags)return Nr(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function io(e){return new oo(e.renderer)}var oo=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=vi(t),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,r=To(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,r=t.provider;switch(201347067&t.flags){case 512:return To(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Io(e,t,n,i[0]));case 2:return r(Io(e,t,n,i[0]),Io(e,t,n,i[1]));case 3:return r(Io(e,t,n,i[0]),Io(e,t,n,i[1]),Io(e,t,n,i[2]));default:for(var a=Array(o),s=0;s0)c=g,Qo(g)||(l=g);else for(;c&&d===c.nodeIndex+c.childCount;){var b=c.parent;b&&(b.childFlags|=c.childFlags,b.childMatchedQueries|=c.childMatchedQueries),l=(c=b)&&Qo(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Ur,updateRenderer:r||Ur,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Qo(e){return 0!=(1&e.flags)&&null===e.element.name}function Yo(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function $o(e,t,n,r){var i=Jo(e.root,e.renderer,e,t,n);return ea(i,e.component,r),ta(i),i}function Zo(e,t,n){var r=Jo(e,e.renderer,null,null,t);return ea(r,n,n),ta(r),r}function Xo(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Jo(e.root,i,e,t.element.componentProvider,n)}function Jo(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function ea(e,t,n){e.component=t,e.context=n}function ta(e){var t;if(ii(e)){var n=e.parentNodeDef;t=xr(e.parent,n.parent.nodeIndex).renderElement}for(var r=e.def,i=e.nodes,o=0;o0&&xi(e,t,0,n)&&(h=!0),p>1&&xi(e,t,1,r)&&(h=!0),p>2&&xi(e,t,2,i)&&(h=!0),p>3&&xi(e,t,3,o)&&(h=!0),p>4&&xi(e,t,4,a)&&(h=!0),p>5&&xi(e,t,5,s)&&(h=!0),p>6&&xi(e,t,6,u)&&(h=!0),p>7&&xi(e,t,7,c)&&(h=!0),p>8&&xi(e,t,8,l)&&(h=!0),p>9&&xi(e,t,9,f)&&(h=!0),h}(e,t,n,r,i,o,a,s,u,c,l,f);case 2:return function(e,t,n,r,i,o,a,s,u,c,l,f){var p=!1,h=t.bindings,d=h.length;if(d>0&&Yr(e,t,0,n)&&(p=!0),d>1&&Yr(e,t,1,r)&&(p=!0),d>2&&Yr(e,t,2,i)&&(p=!0),d>3&&Yr(e,t,3,o)&&(p=!0),d>4&&Yr(e,t,4,a)&&(p=!0),d>5&&Yr(e,t,5,s)&&(p=!0),d>6&&Yr(e,t,6,u)&&(p=!0),d>7&&Yr(e,t,7,c)&&(p=!0),d>8&&Yr(e,t,8,l)&&(p=!0),d>9&&Yr(e,t,9,f)&&(p=!0),p){var g=t.text.prefix;d>0&&(g+=Wo(n,h[0])),d>1&&(g+=Wo(r,h[1])),d>2&&(g+=Wo(i,h[2])),d>3&&(g+=Wo(o,h[3])),d>4&&(g+=Wo(a,h[4])),d>5&&(g+=Wo(s,h[5])),d>6&&(g+=Wo(u,h[6])),d>7&&(g+=Wo(c,h[7])),d>8&&(g+=Wo(l,h[8])),d>9&&(g+=Wo(f,h[9]));var y=kr(e,t.nodeIndex).renderText;e.renderer.setValue(y,g)}return p}(e,t,n,r,i,o,a,s,u,c,l,f);case 16384:return function(e,t,n,r,i,o,a,s,u,c,l,f){var p=Nr(e,t.nodeIndex),h=p.instance,d=!1,g=void 0,y=t.bindings.length;return y>0&&Qr(e,t,0,n)&&(d=!0,g=ko(e,p,t,0,n,g)),y>1&&Qr(e,t,1,r)&&(d=!0,g=ko(e,p,t,1,r,g)),y>2&&Qr(e,t,2,i)&&(d=!0,g=ko(e,p,t,2,i,g)),y>3&&Qr(e,t,3,o)&&(d=!0,g=ko(e,p,t,3,o,g)),y>4&&Qr(e,t,4,a)&&(d=!0,g=ko(e,p,t,4,a,g)),y>5&&Qr(e,t,5,s)&&(d=!0,g=ko(e,p,t,5,s,g)),y>6&&Qr(e,t,6,u)&&(d=!0,g=ko(e,p,t,6,u,g)),y>7&&Qr(e,t,7,c)&&(d=!0,g=ko(e,p,t,7,c,g)),y>8&&Qr(e,t,8,l)&&(d=!0,g=ko(e,p,t,8,l,g)),y>9&&Qr(e,t,9,f)&&(d=!0,g=ko(e,p,t,9,f,g)),g&&h.ngOnChanges(g),65536&t.flags&&Or(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),d}(e,t,n,r,i,o,a,s,u,c,l,f);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,s,u,c,l,f){var p=t.bindings,h=!1,d=p.length;if(d>0&&Yr(e,t,0,n)&&(h=!0),d>1&&Yr(e,t,1,r)&&(h=!0),d>2&&Yr(e,t,2,i)&&(h=!0),d>3&&Yr(e,t,3,o)&&(h=!0),d>4&&Yr(e,t,4,a)&&(h=!0),d>5&&Yr(e,t,5,s)&&(h=!0),d>6&&Yr(e,t,6,u)&&(h=!0),d>7&&Yr(e,t,7,c)&&(h=!0),d>8&&Yr(e,t,8,l)&&(h=!0),d>9&&Yr(e,t,9,f)&&(h=!0),h){var g=Rr(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(p.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=a),d>5&&(y[5]=s),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=f);break;case 64:y={},d>0&&(y[p[0].name]=n),d>1&&(y[p[1].name]=r),d>2&&(y[p[2].name]=i),d>3&&(y[p[3].name]=o),d>4&&(y[p[4].name]=a),d>5&&(y[p[5].name]=s),d>6&&(y[p[6].name]=u),d>7&&(y[p[7].name]=c),d>8&&(y[p[8].name]=l),d>9&&(y[p[9].name]=f);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,a);break;case 6:y=m.transform(r,i,o,a,s);break;case 7:y=m.transform(r,i,o,a,s,u);break;case 8:y=m.transform(r,i,o,a,s,u,c);break;case 9:y=m.transform(r,i,o,a,s,u,c,l);break;case 10:y=m.transform(r,i,o,a,s,u,c,l,f)}}g.value=y}return h}(e,t,n,r,i,o,a,s,u,c,l,f);default:throw"unreachable"}}(e,t,r,i,o,a,s,u,c,l,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&$r(e,t,0,n);p>1&&$r(e,t,1,r);p>2&&$r(e,t,2,i);p>3&&$r(e,t,3,o);p>4&&$r(e,t,4,a);p>5&&$r(e,t,5,s);p>6&&$r(e,t,6,u);p>7&&$r(e,t,7,c);p>8&&$r(e,t,8,l);p>9&&$r(e,t,9,f)}(e,t,r,i,o,a,s,u,c,l,f,p):function(e,t,n){for(var r=0;r0&&gs(n[t-1],r.next),n.splice(t,1),function(e){for(var t=e;t;){var n=null;if(t.views&&t.views.length?n=t.views[0].data:t.child?n=t.child:t.next&&(ms(t),n=t.next),null==n){for(;t&&!t.next;)ms(t),t=ys(t,e);ms(t||e),n=t&&t.next}t=n}}(r.data),hs(e,r,!1),e.query&&e.query.removeView(e,r,t),r}function gs(e,t){e.next=t,e.data.next=t?t.data:null}function ys(e,t){var n;return(n=e.node)&&2==(3&n.flags)?n.parent.data:e.parent===t?null:e.parent}function ms(e){if(e.cleanup){for(var t=e.cleanup,n=0;n=Ts.length?Ts[e]=null:s.staticData=Ts[e],Ss?(Is=null,Es.view!==As&&2!=(3&Es.flags)||(ngDevMode&&ss(Es.child,null,"previousNode.child"),Es.child=s)):Es&&(ngDevMode&&ss(Es.next,null,"previousNode.next"),Es.next=s)),Es=s,Ss=!0,s}function js(e,t,n,r){var i,o;if(null==t){var a=ks[e];o=a&&a.native}else{ngDevMode&&ss(As.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof t,u=s?t.tag:t;if(null===u)throw"for now name is required";o=ws.createElement(u);var c=null;if(s){var l=Us(t.template);c=ru(Ls(-1,Cs.createRenderer(o,t.rendererType),l))}null==(i=Bs(e,3,o,c)).staticData&&(ngDevMode&&uu(e-1),i.staticData=Ts[e]=Ks(u,n||null,null,r||null)),n&&function(e,t){ngDevMode&&ss(t.length%2,0,"attrs.length % 2");for(var n=ws.setAttribute,r=0;r>12,i=r,o=r+((4092&e)>>2);i=Ts.length&&(Ts[e]=n,r)){ngDevMode&&us(Es.staticData,"previousOrParentNode.staticData");var a=Es.staticData;(a.localNames||(a.localNames=[])).push(r,e)}var s=n.diPublic;s&&s(n);var u=Es.staticData;u&&u.attrs&&function(e,t,n){var r=((4092&Es.flags)>>2)-1,i=n.initialInputs;(void 0===i||r>=i.length)&&(i=function(e,t,n){var r=n.initialInputs||(n.initialInputs=[]);r[e]=null;for(var i=n.attrs,o=0;o=n.length||null==n[e])&&(n[e]=[]);return n[e]}(e,t));Ds(a,Bs(null,2,null,a)),n.nextIndex++}return!o}function tu(){Ss=!1;var e=Es=As.node,t=Es.parent;ngDevMode&&fs(e,2),ngDevMode&&fs(t,0);var n=t.data,r=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==r||r.data.id!==e.data.id)&&(!function(e,t,n){var r=e.data,i=r.views;n>0&&gs(i[n-1],t),n=i.length&&i.push(t),r.nextIndex<=n&&r.nextIndex++,null!==e.data.renderParent&&hs(e,t,!0,function(e,t,n){var r=t.views;return e+1")}(t?t.length:0,e,"data.length")} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function cu(e,t){void 0===t&&(t={});var n,r=t.rendererFactory||Rs,i=e.ngComponentDef,o=Fs(r,t.host||i.tag),a=Ds(Ls(-1,r.createRenderer(o,i.rendererType),[]),null);try{Hs(o,i),n=Ys(1,i.n(),i)}finally{Ms(a)}return t.features&&t.features.forEach(function(e){return e(n,i)}),lu(n),n}function lu(e){ngDevMode&&us(e,"component");var t=e[Ps];ngDevMode&&!t&&Vs("Not a directive instance",e),ngDevMode&&us(t.data,"hostNode.data"),function(e,t,n,r){var i=Ds(t,e);try{Cs.begin&&Cs.begin(),r?(Ts=r.ngStaticData||(r.ngStaticData=[]),r(n,Os)):n.constructor.ngComponentDef.r(1,0)}finally{Cs.end&&Cs.end(),t.creationMode=!1,Ms(i)}}(t,t.view,e),!1} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function fu(e){var t={type:e.type,diPublic:null,n:e.factory,tag:e.tag||null,template:e.template||null,r:e.refresh||function(t,n){nu(t,n,e.template)},h:e.hostBindings||hu,inputs:du(e.inputs),outputs:du(e.outputs),methods:du(e.methods),rendererType:Gr(e.rendererType)||null},n=e.features;return n&&n.forEach(function(e){return e(t)}),t}var pu={};function hu(){}function du(e){if(null==e)return pu;var t={};for(var n in e)t[e[n]]=n;return t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license * @record */function gu(e,t){return{type:7,name:e,definitions:t,options:{}}}function yu(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function mu(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function vu(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function bu(e){return{type:6,styles:e,offset:null}}function _u(e,t,n){return{type:0,name:e,styles:t,options:n}}function wu(e){return{type:5,steps:e}}function Cu(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}var Eu="*";function Su(e,t){return gu(e,t)}function Tu(e,t){return yu(e,t)}function Au(e){return mu(e)}function Iu(e){return vu(e)}function Ou(e){return bu(e)}function ku(e,t){return _u(e,t)}function xu(e){return wu(e)}function Nu(e,t){return Cu(e,t)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}.call(this,n(78))},function(e,t,n){var r=n(17),i=n(53),o=n(46),a=n(43),s=n(60),u=function(e,t,n){var c,l,f,p,h=e&u.F,d=e&u.G,g=e&u.S,y=e&u.P,m=e&u.B,v=d?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,b=d?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in d&&(n=t),n)f=((l=!h&&v&&void 0!==v[c])?v:n)[c],p=m&&l?s(f,r):y&&"function"==typeof f?s(Function.call,f):f,v&&a(v,c,f,e&u.U),b[c]!=f&&o(b,c,p),y&&_[c]!=f&&(_[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},,function(e,t,n){!function(e,t,n,r,i,o,a,s,u){"use strict";var c=function(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={}},l=new t.InjectionToken("ANGULARTICS2"),f=function(){function e(){}return e.prototype.trackLocation=function(e){return new n.BehaviorSubject({url:"/"})},e.prototype.prepareExternalUrl=function(e){return e},e}(),p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=c.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:o},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[u]}]}]},t}(s),p=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(i.c)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return c.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+c.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:o},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[u]}]}]},t}(s),h={AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"৳"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"р."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN¥","¥"],COP:[,"$"],CRC:[,"₡"],CUC:[,"$"],CUP:[,"$"],CZK:[,"Kč"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E£"],ESP:[,"₧"],EUR:["€"],FJD:[,"$"],FKP:[,"£"],GBP:["£"],GEL:[,"₾"],GIP:[,"£"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["₪"],INR:["₹"],ISK:[,"kr"],JMD:[,"$"],JPY:["¥"],KHR:[,"៛"],KMF:[,"CF"],KPW:[,"₩"],KRW:["₩"],KYD:[,"$"],KZT:[,"₸"],LAK:[,"₭"],LBP:[,"L£"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"₮"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"₦"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"₱"],PKR:[,"Rs"],PLN:[,"zł"],PYG:[,"₲"],RON:[,"lei"],RUB:[,"₽"],RUR:[,"р."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"£"],SRD:[,"$"],SSP:[,"£"],STD:[,"Db"],SYP:[,"£"],THB:[,"฿"],TOP:[,"T$"],TRY:[,"₺"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"₴"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["₫"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var d=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"$","US Dollar", /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],g={}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function y(e,t,n){"string"!=typeof t&&(n=t,t=e[0]),t=t.toLowerCase().replace(/_/g,"-"),g[t]=e,n&&(g[t][18]=n)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var m={Decimal:0,Percent:1,Currency:2,Scientific:3};m[m.Decimal]="Decimal",m[m.Percent]="Percent",m[m.Currency]="Currency",m[m.Scientific]="Scientific";var v={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};v[v.Zero]="Zero",v[v.One]="One",v[v.Two]="Two",v[v.Few]="Few",v[v.Many]="Many",v[v.Other]="Other";var b={Format:0,Standalone:1};b[b.Format]="Format",b[b.Standalone]="Standalone";var _={Narrow:0,Abbreviated:1,Wide:2,Short:3};_[_.Narrow]="Narrow",_[_.Abbreviated]="Abbreviated",_[_.Wide]="Wide",_[_.Short]="Short";var w={Short:0,Medium:1,Long:2,Full:3};w[w.Short]="Short",w[w.Medium]="Medium",w[w.Long]="Long",w[w.Full]="Full";var C={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};C[C.Decimal]="Decimal",C[C.Group]="Group",C[C.List]="List",C[C.PercentSign]="PercentSign",C[C.PlusSign]="PlusSign",C[C.MinusSign]="MinusSign",C[C.Exponential]="Exponential",C[C.SuperscriptingExponent]="SuperscriptingExponent",C[C.PerMille]="PerMille",C[C.Infinity]="Infinity",C[C.NaN]="NaN",C[C.TimeSeparator]="TimeSeparator",C[C.CurrencyDecimal]="CurrencyDecimal",C[C.CurrencyGroup]="CurrencyGroup";var E={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};function S(e){return z(e)[0]}function T(e,t,n){var r=z(e);return H(H([r[1],r[2]],t),n)}function A(e,t,n){var r=z(e);return H(H([r[3],r[4]],t),n)}function I(e,t,n){var r=z(e);return H(H([r[5],r[6]],t),n)}function O(e,t){return H(z(e)[7],t)}function k(e){return z(e)[8]}function x(e){return z(e)[9]}function N(e,t){return z(e)[10][t]}function R(e,t){return z(e)[11][t]}function P(e,t){return H(z(e)[12],t)}function D(e,t){var n=z(e),r=n[13][t];if(void 0===r){if(t===C.CurrencyDecimal)return n[13][C.Decimal];if(t===C.CurrencyGroup)return n[13][C.Group]}return r}function M(e,t){return z(e)[14][t]}function L(e){return z(e)[15]||null}function B(e){return z(e)[16]||null}function j(e){return z(e)[17]}function U(e){if(!e[18])throw new Error('Missing extra locale data for the locale "'+e[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function V(e){var t=z(e);return U(t),(t[18][2]||[]).map(function(e){return"string"==typeof e?q(e):[q(e[0]),q(e[1])]})}function F(e,t,n){var r=z(e);return U(r),H(H([r[18][0],r[18][1]],t)||[],n)||[]}function H(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function q(e){var t=e.split(":");return{hours:+t[0],minutes:+t[1]}}function z(e){var t=e.toLowerCase().replace(/_/g,"-"),n=g[t];if(n)return n;var r=t.split("-")[0];if(n=g[r])return n;if("en"===r)return d;throw new Error('Missing locale data for the locale "'+e+'".')}function K(e,t){var n=h[e]||[],r=n[1];return"narrow"===t&&"string"==typeof r?r:n[0]||e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */E[E.Sunday]="Sunday",E[E.Monday]="Monday",E[E.Tuesday]="Tuesday",E[E.Wednesday]="Wednesday",E[E.Thursday]="Thursday",E[E.Friday]="Friday",E[E.Saturday]="Saturday";var W=new r.InjectionToken("UseV4Plurals"),G=function(){return function(){}}();function Q(e,t,n,r){var i="="+e;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var Y=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(i.c)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):j(t||this.locale)(e)){case v.Zero:return"zero";case v.One:return"one";case v.Two:return"two";case v.Few:return"few";case v.Many:return"many";default:return"other"}},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[W]}]}]},t}(G);function $(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?v.One:v.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?v.One:v.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?v.One:v.Other;case"ar":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?v.Many:v.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?v.One:v.Other;case"be":return n%10==1&&n%100!=11?v.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?v.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?v.Many:v.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?v.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?v.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?v.Few:0!==n&&n%1e6==0?v.Many:v.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?v.Few:v.Other;case"cs":case"sk":return 1===i&&0===o?v.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?v.Few:0!==o?v.Many:v.Other;case"cy":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:3===n?v.Few:6===n?v.Many:v.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?v.One:v.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?v.One:0===o&&i%100==2||a%100==2?v.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?v.Few:v.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?v.One:v.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?v.One:v.Other;case"ga":return 1===n?v.One:2===n?v.Two:n===Math.floor(n)&&n>=3&&n<=6?v.Few:n===Math.floor(n)&&n>=7&&n<=10?v.Many:v.Other;case"gd":return 1===n||11===n?v.One:2===n||12===n?v.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?v.Few:v.Other;case"gv":return 0===o&&i%10==1?v.One:0===o&&i%10==2?v.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?v.Many:v.Other:v.Few;case"he":return 1===i&&0===o?v.One:2===i&&0===o?v.Two:0!==o||n>=0&&n<=10||n%10!=0?v.Other:v.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?v.One:v.Other;case"ksh":return 0===n?v.Zero:1===n?v.One:v.Other;case"kw":case"naq":case"se":case"smn":return 1===n?v.One:2===n?v.Two:v.Other;case"lag":return 0===n?v.Zero:0!==i&&1!==i||0===n?v.Other:v.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?v.Few:0!==a?v.Many:v.Other:v.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?v.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?v.One:v.Other;case"mk":return 0===o&&i%10==1||a%10==1?v.One:v.Other;case"mt":return 1===n?v.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?v.Many:v.Other;case"pl":return 1===i&&0===o?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?v.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?v.Many:v.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?v.One:v.Other;case"ro":return 1===i&&0===o?v.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?v.Few:v.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?v.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?v.Many:v.Other;case"shi":return 0===i||1===n?v.One:n===Math.floor(n)&&n>=2&&n<=10?v.Few:v.Other;case"si":return 0===n||1===n||0===i&&1===a?v.One:v.Other;case"sl":return 0===o&&i%100==1?v.One:0===o&&i%100==2?v.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?v.Few:v.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?v.One:v.Other;default:return v.Other}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Z(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n0||s>-n)&&(s+=n),e===me.Hours&&0===s&&-12===n&&(s=12),we(s,t,D(a,C.MinusSign),r,i)}}function Ee(e,t,n,r){return void 0===n&&(n=b.Format),void 0===r&&(r=!1),function(i,o){return function(e,t,n,r,i,o){switch(n){case ve.Months:return I(t,i,r)[e.getMonth()];case ve.Days:return A(t,i,r)[e.getDay()];case ve.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var u,c=V(t),l=F(t,i,r);if(c.forEach(function(e,t){if(Array.isArray(e)){var n=e[0],r=n.hours,i=n.minutes,o=e[1],c=o.hours,f=o.minutes;a>=r&&s>=i&&(a0?Math.floor(i/60):Math.ceil(i/60);switch(e){case ye.Short:return(i>=0?"+":"")+we(a,2,o)+we(Math.abs(i%60),2,o);case ye.ShortGMT:return"GMT"+(i>=0?"+":"")+we(a,1,o);case ye.Long:return"GMT"+(i>=0?"+":"")+we(a,2,o)+":"+we(Math.abs(i%60),2,o);case ye.Extended:return 0===r?"Z":(i>=0?"+":"")+we(a,2,o)+":"+we(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+e+'"')}}}ve[ve.DayPeriods]="DayPeriods",ve[ve.Days]="Days",ve[ve.Months]="Months",ve[ve.Eras]="Eras";var Te=0,Ae=4;function Ie(e,t){return void 0===t&&(t=!1),function(n,r){var i;if(t){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();i=1+Math.floor((a+o)/7)}else{var s=function(e){var t=new Date(e,Te,1).getDay();return new Date(e,0,1+(t<=Ae?Ae:Ae+7)-t)}(n.getFullYear()),u=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(Ae-e.getDay()))}(n).getTime()-s.getTime();i=1+Math.round(u/6048e5)}return we(i,e,D(r,C.MinusSign))}}var Oe={};function ke(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function xe(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+Object(r["ɵstringify"])(e)+"'")} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Ne=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Re=function(){function e(e){this.locale=e}return e.prototype.transform=function(t,n,r,i){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;var o;if("string"==typeof t&&(t=t.trim()),De(t))o=t;else if(isNaN(t-parseFloat(t)))if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var a=t.split("-").map(function(e){return+e}),s=a[0],u=a[1],c=a[2];o=new Date(s,u-1,c)}else o=new Date(t);else o=new Date(parseFloat(t));if(!De(o)){var l=void 0;if("string"!=typeof t||!(l=t.match(Ne)))throw xe(e,t);o=Pe(l)}return be(o,n,i||this.locale,r)},e.decorators=[{type:r.Pipe,args:[{name:"date",pure:!0}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}();function Pe(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=+(e[9]+e[10]),r=+(e[9]+e[11])),i.call(t,+e[1],+e[2]-1,+e[3]);var a=+(e[4]||"0")-n,s=+(e[5]||"0")-r,u=+(e[6]||"0"),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,c),t}function De(e){return e instanceof Date&&!isNaN(e.valueOf())}var Me=function(){function e(){}return e.format=function(e,t,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,a=r.maximumFractionDigits,s=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:a,style:m[n].toLowerCase()};return n==m.Currency&&(l.currency="string"==typeof s?s:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(t,l).format(e)},e}(),Le=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,Be={yMMMdjms:Ge(We([ze("year",1),Ke("month",3),ze("day",1),ze("hour",1),ze("minute",1),ze("second",1)])),yMdjm:Ge(We([ze("year",1),ze("month",1),ze("day",1),ze("hour",1),ze("minute",1)])),yMMMMEEEEd:Ge(We([ze("year",1),Ke("month",4),Ke("weekday",4),ze("day",1)])),yMMMMd:Ge(We([ze("year",1),Ke("month",4),ze("day",1)])),yMMMd:Ge(We([ze("year",1),Ke("month",3),ze("day",1)])),yMd:Ge(We([ze("year",1),ze("month",1),ze("day",1)])),jms:Ge(We([ze("hour",1),ze("second",1),ze("minute",1)])),jm:Ge(We([ze("hour",1),ze("minute",1)]))},je={yyyy:Ge(ze("year",4)),yy:Ge(ze("year",2)),y:Ge(ze("year",1)),MMMM:Ge(Ke("month",4)),MMM:Ge(Ke("month",3)),MM:Ge(ze("month",2)),M:Ge(ze("month",1)),LLLL:Ge(Ke("month",4)),L:Ge(Ke("month",1)),dd:Ge(ze("day",2)),d:Ge(ze("day",1)),HH:Ue(Ve(Ge(qe(ze("hour",2),!1)))),H:Ve(Ge(qe(ze("hour",1),!1))),hh:Ue(Ve(Ge(qe(ze("hour",2),!0)))),h:Ve(Ge(qe(ze("hour",1),!0))),jj:Ge(ze("hour",2)),j:Ge(ze("hour",1)),mm:Ue(Ge(ze("minute",2))),m:Ge(ze("minute",1)),ss:Ue(Ge(ze("second",2))),s:Ge(ze("second",1)),sss:Ge(ze("second",3)),EEEE:Ge(Ke("weekday",4)),EEE:Ge(Ke("weekday",3)),EE:Ge(Ke("weekday",2)),E:Ge(Ke("weekday",1)),a:function(e){return function(t,n){return e(t,n).split(" ")[1]}}(Ge(qe(ze("hour",1),!0))),Z:He("short"),z:He("long"),ww:Ge({}),w:Ge({}),G:Ge(Ke("era",1)),GG:Ge(Ke("era",2)),GGG:Ge(Ke("era",3)),GGGG:Ge(Ke("era",4))};function Ue(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function Ve(e){return function(t,n){return e(t,n).split(" ")[0]}}function Fe(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function He(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=Fe(e,n,t);return r?r.substring(3):""}}function qe(e,t){return e.hour12=t,e}function ze(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function Ke(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function We(e){return e.reduce(function(e,t){return Object(i.a)({},e,t)},{})}function Ge(e){return function(t,n){return Fe(t,n,e)}}var Qe=new Map;var Ye=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=Be[e];if(r)return r(t,n);var i=e,o=Qe.get(i);if(!o){o=[];var a=void 0;Le.exec(e);for(var s=e;s;)(a=Le.exec(s))?s=(o=o.concat(a.slice(1))).pop():(o.push(s),s=null);Qe.set(i,o)}return o.reduce(function(e,r){var i=je[r];return e+(i?i(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),$e=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;var r;if("string"==typeof t&&(t=t.trim()),Ze(t))r=t;else if(isNaN(t-parseFloat(t)))if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=t.split("-").map(function(e){return parseInt(e,10)}),o=i[0],a=i[1],s=i[2];r=new Date(o,a-1,s)}else r=new Date(t);else r=new Date(parseFloat(t));if(!Ze(r)){var u=void 0;if("string"!=typeof t||!(u=t.match(Ne)))throw xe(e,t);r=Pe(u)}return Ye.format(r,this._locale,e._ALIASES[n]||n)},e._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},e.decorators=[{type:r.Pipe,args:[{name:"date",pure:!0}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ze(e){return e instanceof Date&&!isNaN(e.valueOf())} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Xe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Je=22,et=".",tt="0",nt=";",rt=",",it="#",ot="¤",at="%";function st(e,t,n,r,i){void 0===i&&(i=null);var o,a={str:null},s=M(t,n);if("string"!=typeof e||isNaN(+e-parseFloat(e))){if("number"!=typeof e)return a.error=e+" is not a number",a;o=e}else o=+e;var u=function(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(nt),i=r[0],o=r[1],a=-1!==i.indexOf(et)?i.split(et):[i.substring(0,i.lastIndexOf(tt)+1),i.substring(i.lastIndexOf(tt)+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf(it));for(var c=0;c-1&&(a=a.replace(et,""));(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length);for(r=0;a.charAt(r)===tt;r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;a.charAt(o)===tt;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+a.charAt(r)}n>Je&&(t=t.splice(0,Je-1),s=n-1,n=1);return{digits:t,exponent:s,integerLen:n}}(o);n===m.Percent&&(f=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2);return e}(f));var p=u.minInt,h=u.minFrac,d=u.maxFrac;if(r){var g=r.match(Xe);if(null===g)return a.error=r+" is not a valid digit info",a;var y=g[1],v=g[3],b=g[5];null!=y&&(p=ut(y)),null!=v&&(h=ut(v)),null!=b?d=ut(b):null!=v&&h>d&&(d=h)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,s=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=p?r.pop():f=!1),t>=10?1:0},0);h&&(r.unshift(h),e.integerLen++)}(f,h,d);var _=f.digits,w=f.integerLen,E=f.exponent,S=[];for(l=_.every(function(e){return!e});w0?S=_.splice(w,_.length):(S=_,_=[0]);var T=[];for(_.length>=u.lgSize&&T.unshift(_.splice(-u.lgSize,_.length).join(""));_.length>u.gSize;)T.unshift(_.splice(-u.gSize,_.length).join(""));_.length&&T.unshift(_.join(""));var A=i?C.CurrencyGroup:C.Group;if(c=T.join(D(t,A)),S.length)c+=D(t,i?C.CurrencyDecimal:C.Decimal)+S.join("");E&&(c+=D(t,C.Exponential)+"+"+E)}else c=D(t,C.Infinity);return c=o<0&&!l?u.negPre+c+u.negSuf:u.posPre+c+u.posSuf,n===m.Currency&&null!==i?(a.str=c.replace(ot,i).replace(ot,""),a):n===m.Percent?(a.str=c.replace(new RegExp(at,"g"),D(t,C.PercentSign)),a):(a.str=c,a)}function ut(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ct(e,t,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw xe(e,n);var s,u,c;if(r!==m.Currency&&(s=1,u=0,c=3),i){var l=i.match(Xe);if(null===l)throw new Error(i+" is not a valid digit info for number pipes");null!=l[1]&&(s=ut(l[1])),null!=l[3]&&(u=ut(l[3])),null!=l[5]&&(c=ut(l[5]))}return Me.format(n,t,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:a})}var lt=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return ct(e,this._locale,t,m.Decimal,n)},e.decorators=[{type:r.Pipe,args:[{name:"number"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}(),ft=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return ct(e,this._locale,t,m.Percent,n)},e.decorators=[{type:r.Pipe,args:[{name:"percent"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}(),pt=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),ct(e,this._locale,t,m.Currency,i,n,r)},e.decorators=[{type:r.Pipe,args:[{name:"currency"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}(),ht=[lt,ft,pt,$e],dt=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),gt=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),yt=new dt,mt=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(t){if(Object(r["ɵisPromise"])(t))return gt;if(Object(r["ɵisObservable"])(t))return yt;throw xe(e,t)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e.decorators=[{type:r.Pipe,args:[{name:"async",pure:!1}]}],e.ctorParameters=function(){return[{type:r.ChangeDetectorRef}]},e}(),vt=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw xe(e,t);return t.toLowerCase()},e.decorators=[{type:r.Pipe,args:[{name:"lowercase"}]}],e.ctorParameters=function(){return[]},e}();var bt=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw xe(e,t);return t.split(/\b/g).map(function(e){return function(e){return e?e[0].toUpperCase()+e.substr(1).toLowerCase():e}(e)}).join("")},e.decorators=[{type:r.Pipe,args:[{name:"titlecase"}]}],e.ctorParameters=function(){return[]},e}(),_t=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw xe(e,t);return t.toUpperCase()},e.decorators=[{type:r.Pipe,args:[{name:"uppercase"}]}],e.ctorParameters=function(){return[]},e}(),wt=/#/g,Ct=function(){function e(e){this._localization=e}return e.prototype.transform=function(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw xe(e,n);return n[Q(t,Object.keys(n),this._localization,r)].replace(wt,t.toString())},e.decorators=[{type:r.Pipe,args:[{name:"i18nPlural",pure:!0}]}],e.ctorParameters=function(){return[{type:G}]},e}(),Et=function(){function e(){}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw xe(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""},e.decorators=[{type:r.Pipe,args:[{name:"i18nSelect",pure:!0}]}],e.ctorParameters=function(){return[]},e}(),St=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e.decorators=[{type:r.Pipe,args:[{name:"json",pure:!1}]}],e.ctorParameters=function(){return[]},e}(),Tt=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r){if(Ot(t))return null;var i=st(t,r=r||this._locale,m.Decimal,n),o=i.str,a=i.error;if(a)throw xe(e,a);return o},e.decorators=[{type:r.Pipe,args:[{name:"number"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}(),At=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r){if(Ot(t))return null;var i=st(t,r=r||this._locale,m.Percent,n),o=i.str,a=i.error;if(a)throw xe(e,a);return o},e.decorators=[{type:r.Pipe,args:[{name:"percent"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}(),It=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,i,o){if(void 0===r&&(r="symbol"),Ot(t))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var a=n||"USD";"code"!==r&&(a=K(a,"symbol"===r?"wide":"narrow"));var s=st(t,o,m.Currency,i,a),u=s.str,c=s.error;if(c)throw xe(e,c);return u},e.decorators=[{type:r.Pipe,args:[{name:"currency"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]},e}();function Ot(e){return null==e||""===e||e!=e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var kt=function(){function e(){}return e.prototype.transform=function(t,n,r){if(null==t)return t;if(!this.supports(t))throw xe(e,t);return t.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e.decorators=[{type:r.Pipe,args:[{name:"slice",pure:!1}]}],e.ctorParameters=function(){return[]},e}(),xt=[mt,_t,vt,St,kt,Tt,At,bt,It,Re,Ct,Et],Nt=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[he,xt],exports:[he,xt],providers:[{provide:G,useClass:Y}]}]}],e.ctorParameters=function(){return[]},e}(),Rt=$,Pt=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[ht],exports:[ht],providers:[{provide:W,useValue:Rt}]}]}],e.ctorParameters=function(){return[]},e}(),Dt=new r.InjectionToken("DocumentToken"),Mt="browser",Lt="server",Bt="browserWorkerApp",jt="browserWorkerUi"; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ut(e){return e===Mt}function Vt(e){return e===Lt}function Ft(e){return e===Bt}function Ht(e){return e===jt} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var qt=new r.Version("5.2.0"); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */},,,function(e,t,n){"use strict";n.r(t),n.d(t,"RouterLink",function(){return kt}),n.d(t,"RouterLinkWithHref",function(){return xt}),n.d(t,"RouterLinkActive",function(){return Rt}),n.d(t,"RouterOutlet",function(){return Mt}),n.d(t,"ActivationEnd",function(){return V}),n.d(t,"ActivationStart",function(){return U}),n.d(t,"ChildActivationEnd",function(){return j}),n.d(t,"ChildActivationStart",function(){return B}),n.d(t,"GuardsCheckEnd",function(){return R}),n.d(t,"GuardsCheckStart",function(){return N}),n.d(t,"NavigationCancel",function(){return O}),n.d(t,"NavigationEnd",function(){return I}),n.d(t,"NavigationError",function(){return k}),n.d(t,"NavigationStart",function(){return A}),n.d(t,"ResolveEnd",function(){return D}),n.d(t,"ResolveStart",function(){return P}),n.d(t,"RouteConfigLoadEnd",function(){return L}),n.d(t,"RouteConfigLoadStart",function(){return M}),n.d(t,"RouterEvent",function(){return T}),n.d(t,"RoutesRecognized",function(){return x}),n.d(t,"RouteReuseStrategy",function(){return vt}),n.d(t,"Router",function(){return At}),n.d(t,"ROUTES",function(){return _t}),n.d(t,"ROUTER_CONFIGURATION",function(){return Ht}),n.d(t,"ROUTER_INITIALIZER",function(){return tn}),n.d(t,"RouterModule",function(){return Wt}),n.d(t,"provideRoutes",function(){return Yt}),n.d(t,"ChildrenOutletContexts",function(){return Dt}),n.d(t,"OutletContext",function(){return Pt}),n.d(t,"NoPreloading",function(){return Ut}),n.d(t,"PreloadAllModules",function(){return jt}),n.d(t,"PreloadingStrategy",function(){return Bt}),n.d(t,"RouterPreloader",function(){return Vt}),n.d(t,"ActivatedRoute",function(){return Ue}),n.d(t,"ActivatedRouteSnapshot",function(){return Fe}),n.d(t,"RouterState",function(){return Be}),n.d(t,"RouterStateSnapshot",function(){return He}),n.d(t,"PRIMARY_OUTLET",function(){return F}),n.d(t,"convertToParamMap",function(){return q}),n.d(t,"UrlHandlingStrategy",function(){return Ct}),n.d(t,"DefaultUrlSerializer",function(){return le}),n.d(t,"UrlSegment",function(){return ae}),n.d(t,"UrlSegmentGroup",function(){return oe}),n.d(t,"UrlSerializer",function(){return ce}),n.d(t,"UrlTree",function(){return ie}),n.d(t,"VERSION",function(){return rn}),n.d(t,"ɵROUTER_PROVIDERS",function(){return zt}),n.d(t,"ɵflatten",function(){return Z}),n.d(t,"ɵa",function(){return qt}),n.d(t,"ɵg",function(){return Xt}),n.d(t,"ɵh",function(){return Jt}),n.d(t,"ɵi",function(){return en}),n.d(t,"ɵd",function(){return Qt}),n.d(t,"ɵc",function(){return Gt}),n.d(t,"ɵj",function(){return nn}),n.d(t,"ɵf",function(){return Zt}),n.d(t,"ɵb",function(){return Kt}),n.d(t,"ɵe",function(){return $t}),n.d(t,"ɵk",function(){return Re}),n.d(t,"ɵl",function(){return Me});var r=n(6),i=n(0),o=n(4),a=n(89),s=n(102),u=n(28),c=n(219),l=n(33),f=n(73),p=n(45),h=n(93),d=n(179),g=n(474),y=n(220),m=n(243),v=n(178),b=n(221),_=n(475),w=n(476),C=n(628),E=n(42),S=n(629),T=function(){return function(e,t){this.id=e,this.url=t}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(T),I=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return Object(o.c)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(T),O=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return Object(o.c)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(T),k=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return Object(o.c)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(T),x=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.c)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(T),N=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.c)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(T),R=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return Object(o.c)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(T),P=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.c)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(T),D=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.c)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(T),M=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),L=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),B=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),j=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),U=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),V=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),F="primary",H=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function q(e){return new H(e)}var z="ngNavigationCancelingError";function K(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function J(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ee(e){var t=w.mergeAll.call(e);return b.every.call(t,function(e){return!0===e})}function te(e){return Object(i["ɵisObservable"])(e)?e:Object(i["ɵisPromise"])(e)?Object(v.fromPromise)(Promise.resolve(e)):Object(u.of)(e)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ne(e,t,n){return n?function(e,t){return $(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!se(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&re(e.root,t.root)}function re(e,t){return function e(t,n,r){if(t.segments.length>r.length){var i=t.segments.slice(0,r.length);return!!se(i,r)&&!n.hasChildren()}if(t.segments.length===r.length){if(!se(t.segments,r))return!1;for(var o in n.children){if(!t.children[o])return!1;if(!re(t.children[o],n.children[o]))return!1}return!0}var i=r.slice(0,t.segments.length),a=r.slice(t.segments.length);return!!se(t.segments,i)&&(!!t.children[F]&&e(t.children[F],n,a))}(e,t,t.segments)}var ie=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=q(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return fe.serialize(this)},e}(),oe=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,J(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return pe(this)},e}(),ae=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=q(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ge(this)},e}();function se(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function ue(e,t){var n=[];return J(e.children,function(e,r){r===F&&(n=n.concat(t(e,r)))}),J(e.children,function(e,r){r!==F&&(n=n.concat(t(e,r)))}),n}var ce=function(){return function(){}}(),le=function(){function e(){}return e.prototype.parse=function(e){var t=new _e(e);return new ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){return""+("/"+function e(t,n){if(!t.hasChildren())return pe(t);if(n){var r=t.children[F]?e(t.children[F],!1):"",i=[];return J(t.children,function(t,n){n!==F&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=ue(t,function(n,r){return r===F?[e(t.children[F],!1)]:[r+":"+e(n,!1)]});return pe(t)+"/("+o.join("//")+")"}(e.root,!0))+function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return he(t)+"="+he(e)}).join("&"):he(t)+"="+he(n)});return t.length?"?"+t.join("&"):""}(e.queryParams)+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),fe=new le;function pe(e){return e.segments.map(function(e){return ge(e)}).join("/")}function he(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function de(e){return decodeURIComponent(e)}function ge(e){return""+he(e.path)+function(e){return Object.keys(e).map(function(t){return";"+he(t)+"="+he(e[t])}).join("")}(e.parameters)}var ye=/^[^\/()?;=&#]+/;function me(e){var t=e.match(ye);return t?t[0]:""}var ve=/^[^=?&#]+/;var be=/^[^?&#]+/;var _e=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[F]=new oe(e,t)),n},e.prototype.parseSegment=function(){var e=me(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new ae(de(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=me(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=me(this.remaining);r&&(n=r,this.capture(n))}e[de(t)]=de(n)}},e.prototype.parseQueryParam=function(e){var t=function(e){var t=e.match(ve);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(be);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=de(t),o=de(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=me(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=F);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[F]:new oe([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),we=function(){return function(e){this.segmentGroup=e||null}}(),Ce=function(){return function(e){this.urlTree=e}}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ee(e){return new p.Observable(function(t){return t.error(new we(e))})}function Se(e){return new p.Observable(function(t){return t.error(new Ce(e))})}function Te(e){return new p.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}function Ae(e){return new p.Observable(function(t){return t.error(function(e){var t=Error("NavigationCancelingError: "+e);return t[z]=!0,t}("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}var Ie=function(){function e(e,t,n,r,o){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(i.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,F),n=l.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return d._catch.call(n,function(t){if(t instanceof Ce)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof we)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,F),r=l.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return d._catch.call(r,function(e){if(e instanceof we)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new oe([],((r={})[F]=e,r)):e;return new ie(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(e,t,n),function(e){return new oe([],e)}):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(e,t){if(0===Object.keys(e).length)return Object(u.of)({});var n=[],r=[],i={};J(e,function(e,o){var a=l.map.call(t(o,e),function(e){return i[o]=e});o===F?n.push(a):r.push(a)});var o=g.concatAll.call(u.of.apply(void 0,n.concat(r))),a=_.last.call(o);return l.map.call(a,function(){return i})}(n.children,function(n,i){return r.expandSegmentGroup(e,t,i,n)})},e.prototype.expandSegment=function(e,t,n,r,i,o){var a=this,s=u.of.apply(void 0,n),c=l.map.call(s,function(s){var c=a.expandSegmentAgainstRoute(e,t,n,s,r,i,o);return d._catch.call(c,function(e){if(e instanceof we)return Object(u.of)(null);throw e})}),f=g.concatAll.call(c),p=y.first.call(f,function(e){return!!e});return d._catch.call(p,function(e,n){if(e instanceof m.EmptyError||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,r,i))return Object(u.of)(new oe([],{}));throw new we(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,a){return Ne(r)!==o?Ee(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Ee(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Se(o):f.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new oe(n,{});return i.expandSegment(e,o,t,n,r,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var a=this,s=Oe(t,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,p=s.positionalParamSegments;if(!u)return Ee(t);var h=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?Se(h):f.mergeMap.call(this.lineralizeSegments(r,h),function(r){return a.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new oe(r,{})}):Object(u.of)(new oe(r,{}));var a=Oe(t,n,r),s=a.matched,c=a.consumedSegments,p=a.lastChild;if(!s)return Ee(t);var h=r.slice(p),d=this.getChildConfig(e,n);return f.mergeMap.call(d,function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some(function(n){return xe(e,t,n)&&Ne(n)!==F})}(e,n,r)){var i=new oe(t,function(e,t){var n={};n[F]=t;for(var r=0,i=e;r1||!r.children[F])return Te(e.redirectTo);r=r.children[F]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new ie(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return J(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return J(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new oe(o,a)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){for(var n=0,r=0,i=t;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||K)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ke(e){if(1===e.numberOfChildren&&e.children[F]){var t=e.children[F];return new oe(e.segments.concat(t.segments),t.children)}return e}function xe(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Ne(e){return e.outlet||F} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Re=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Pe(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Pe(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=De(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return De(e,this._root).map(function(e){return e.value})},e}();function Pe(e,t){if(e===t.value)return t;for(var n=0,r=t.children;n=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return function(e){return e.reduce(function(e,t){var n=Object(o.a)({},e.params,t.params),r=Object(o.a)({},e.data,t.data),i=Object(o.a)({},e.resolve,t._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Fe=function(){function e(e,t,n,r,i,o,a,s,u,c,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=q(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=q(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),He=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,qe(r,n),r}return Object(o.c)(t,e),t.prototype.toString=function(){return ze(this._root)},t}(Re);function qe(e,t){t.value._routerState=e,t.children.forEach(function(t){return qe(e,t)})}function ze(e){var t=e.children.length>0?" { "+e.children.map(ze).join(", ")+" } ":"";return""+e.value+t}function Ke(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,$(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),$(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;ni;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Xe(r,!1,i-o)}(n.snapshot._urlSegment,i,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?tt(a.segmentGroup,a.index,o.commands):et(a.segmentGroup,a.index,o.commands);return $e(a.segmentGroup,s,t,r,i)}function Ye(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function $e(e,t,n,r,i){var o={};return r&&J(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),n.root===e?new ie(t,o,i):new ie(function e(t,n,r){var i={};J(t.children,function(t,o){i[o]=t===n?r:e(t,n,r)});return new oe(t.segments,i)}(n.root,e,t),o,i)}var Ze=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ye(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==X(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}();var Xe=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function Je(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[F]:""+e}function et(e,t,n){if(e||(e=new oe([],{})),0===e.segments.length&&e.hasChildren())return tt(e,t,n);var r=function(e,t,n){var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;var a=e.segments[i],s=Je(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!ot(s,u,a))return o;r+=2}else{if(!ot(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?X(n).parameters:{};i=new Fe(n,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),r,e.component,e,ft(t),pt(t)+n.length,mt(e))}else{var c=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new ct;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||K)(n,e,t);if(!r)throw new ct;var i={};J(r.posParams,function(e,t){i[t]=e.path});var a=r.consumed.length>0?Object(o.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(t,e,n);a=c.consumedSegments,s=n.slice(c.lastChild),i=new Fe(a,c.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),r,e.component,e,ft(t),pt(t)+a.length,mt(e))}var l=function(e){if(e.children)return e.children;if(e.loadChildren)return e._loadedConfig.routes;return[]}(e),f=ht(t,a,s,l),p=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(l,p);return[new Me(i,d)]}if(0===l.length&&0===h.length)return[new Me(i,[])];var g=this.processSegment(l,p,h,F);return[new Me(i,g)]},e}();function ft(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function pt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function ht(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some(function(n){return dt(e,t,n)&>(n)!==F})}(e,n,r)){var i=new oe(t,function(e,t,n,r){var i={};i[F]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(var o=0,a=n;o0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function gt(e){return e.outlet||F}function yt(e){return e.data||{}}function mt(e){return e.resolve||{}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var vt=function(){return function(){}}(),bt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),_t=new i.InjectionToken("ROUTES"),wt=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new W(Z(i.injector.get(_t)),i)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(v.fromPromise)(this.loader.load(e)):f.mergeMap.call(te(e()),function(e){return e instanceof i.NgModuleFactory?Object(u.of)(e):Object(v.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),Ct=function(){return function(){}}(),Et=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function St(e){throw e}function Tt(e){return Object(u.of)(null)}var At=function(){function e(e,t,n,r,o,u,c,l){var f=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.navigations=new a.BehaviorSubject(null),this.navigationId=0,this.events=new s.Subject,this.errorHandler=St,this.navigated=!1,this.hooks={beforePreactivation:Tt,afterPreactivation:Tt},this.urlHandlingStrategy=new Et,this.routeReuseStrategy=new bt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly";this.ngModule=o.get(i.NgModuleRef),this.resetConfig(l),this.currentUrlTree=new ie(new oe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new wt(u,c,function(e){return f.triggerEvent(new M(e))},function(e){return f.triggerEvent(new L(e))}),this.routerState=je(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(t){var n=e.urlSerializer.parse(t.url),r="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){G(e),this.config=e,this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,r=t.queryParams,a=t.fragment,s=t.preserveQueryParams,u=t.queryParamsHandling,c=t.preserveFragment;Object(i.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,f=c?this.currentUrlTree.fragment:a,p=null;if(u)switch(u){case"merge":p=Object(o.a)({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=s?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),Qe(l,this.currentUrlTree,e,p,f)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof ie?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;te?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return f(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return d.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(f(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(f(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(y);return 0==t.length?null:function(e){return v(function(e,t){return t.map(function(t){return t(e)})}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(y);return 0==t.length?null:function(e){var n=function(e,t){return t.map(function(t){return t(e)})}(e,t).map(m);return s.map.call(Object(o.forkJoin)(n),v)}},e}();function y(e){return null!=e}function m(e){var t=Object(i["ɵisPromise"])(e)?Object(a.fromPromise)(e):e;if(!Object(i["ɵisObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(r.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var b=new i.InjectionToken("NgValueAccessor"),_={provide:b,useExisting:Object(i.forwardRef)(function(){return w}),multi:!0},w=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:i.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[_]}]}],e.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]},e}(),C={provide:b,useExisting:Object(i.forwardRef)(function(){return S}),multi:!0}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var E=new i.InjectionToken("CompositionEventMode"),S=function(){function e(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){var e=Object(u["ɵgetDOM"])()?Object(u["ɵgetDOM"])().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e.decorators=[{type:i.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[C]}]}],e.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[E]}]}]},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function T(e){return e.validate?function(t){return e.validate(t)}:e}function A(e){return e.validate?function(t){return e.validate(t)}:e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var I={provide:b,useExisting:Object(i.forwardRef)(function(){return O}),multi:!0},O=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:i.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[I]}]}],e.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function k(){throw new Error("unimplemented")}var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return k()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return k()},enumerable:!0,configurable:!0}),t}(c),N={provide:b,useExisting:Object(i.forwardRef)(function(){return P}),multi:!0},R=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[]},e}(),P=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(x),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e.decorators=[{type:i.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[N]}]}],e.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef},{type:R},{type:i.Injector}]},e.propDecorators={name:[{type:i.Input}],formControlName:[{type:i.Input}],value:[{type:i.Input}]},e}(),D={provide:b,useExisting:Object(i.forwardRef)(function(){return M}),multi:!0},M=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:i.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[D]}]}],e.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]},e}(),L={provide:b,useExisting:Object(i.forwardRef)(function(){return j}),multi:!0}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function B(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var j=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=B(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function $(e){return null!=e?g.compose(e.map(T)):null}function Z(e){return null!=e?g.composeAsync(e.map(A)):null}function X(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i["ɵlooseIdentical"])(t,n.currentValue)}var J=[w,M,O,j,H,P];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){t.constructor===S?n=t:!function(e){return J.some(function(t){return e.constructor===t})}(t)?(i&&Y(e,"More than one custom value accessor matches form control with"),i=t):(r&&Y(e,"More than one built-in value accessor matches form control with"),r=t)}),i||(r||(n||(Y(e,"No valid value accessor for form control with"),null)))}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return z(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return $(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Z(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(l),ie=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),oe={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},ae=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),t.decorators=[{type:i.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:oe}]}],t.ctorParameters=function(){return[{type:x,decorators:[{type:i.Self}]}]},t}(ie),se=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),t.decorators=[{type:i.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:oe}]}],t.ctorParameters=function(){return[{type:l,decorators:[{type:i.Self}]}]},t}(ie); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ue(e){var t=le(e)?e.validators:e;return Array.isArray(t)?$(t):t||null}function ce(e,t){var n=le(t)?t.asyncValidators:e;return Array.isArray(n)?Z(n):n||null}function le(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var fe=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ue(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ce(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable({onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(e){e.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=m(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof he?e.controls[t]||null:e instanceof de&&e.at(t)||null},e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){le(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,ue(n),ce(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.c)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(fe),he=function(e){function t(t,n,r){var i=e.call(this,ue(n),ce(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(fe),de=function(e){function t(t,n,r){var i=e.call(this,ue(n),ce(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(fe),ge={provide:l,useExisting:Object(i.forwardRef)(function(){return me})},ye=Promise.resolve(null),me=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new he({},$(t),Z(n)),r}return Object(r.c)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;ye.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),K(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;ye.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;ye.then(function(){var n=t._findContainer(e.path),r=new he({});G(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;ye.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;ye.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t.decorators=[{type:i.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[ge],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]}]},t.propDecorators={options:[{type:i.Input,args:["ngFormOptions"]}]},t}(l),ve='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',_e='\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',we='\n
\n
\n \n
\n
',Ce='\n
\n \n \n
\n ',Ee=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+Ce)},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+we)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+we)},e}(),Se={provide:l,useExisting:Object(i.forwardRef)(function(){return Te})},Te=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.c)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof me||Ee.modelGroupParentException()},t.decorators=[{type:i.Directive,args:[{selector:"[ngModelGroup]",providers:[Se],exportAs:"ngModelGroup"}]}],t.ctorParameters=function(){return[{type:l,decorators:[{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]}]},t.propDecorators={name:[{type:i.Input,args:["ngModelGroup"]}]},t}(re),Ae={provide:x,useExisting:Object(i.forwardRef)(function(){return Oe})},Ie=Promise.resolve(null),Oe=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.control=new pe,a._registered=!1,a.update=new i.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=te(a,o),a}return Object(r.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),X(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?z(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return $(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Z(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){K(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Te)&&this._parent instanceof re?Ee.formGroupNameException():this._parent instanceof Te||this._parent instanceof me||Ee.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ee.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ie.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Ie.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t.decorators=[{type:i.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ae],exportAs:"ngModel"}]}],t.ctorParameters=function(){return[{type:l,decorators:[{type:i.Optional},{type:i.Host}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[b]}]}]},t.propDecorators={name:[{type:i.Input}],isDisabled:[{type:i.Input,args:["disabled"]}],model:[{type:i.Input,args:["ngModel"]}],options:[{type:i.Input,args:["ngModelOptions"]}],update:[{type:i.Output,args:["ngModelChange"]}]},t}(x),ke=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ve)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+we)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+_e)},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),xe={provide:x,useExisting:Object(i.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,r){var o=e.call(this)||this;return o.update=new i.EventEmitter,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=te(o,r),o}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){ke.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(K(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),X(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return $(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Z(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t.decorators=[{type:i.Directive,args:[{selector:"[formControl]",providers:[xe],exportAs:"ngForm"}]}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[b]}]}]},t.propDecorators={form:[{type:i.Input,args:["formControl"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}],isDisabled:[{type:i.Input,args:["disabled"]}]},t}(x),Re={provide:l,useExisting:Object(i.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.EventEmitter,r}return Object(r.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return K(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);G(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);G(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(!function(e,t){t.valueAccessor.registerOnChange(function(){return Q(t)}),t.valueAccessor.registerOnTouched(function(){return Q(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&K(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=$(this._validators);this.form.validator=g.compose([this.form.validator,e]);var t=Z(this._asyncValidators);this.form.asyncValidator=g.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||ke.missingFormException()},t.decorators=[{type:i.Directive,args:[{selector:"[formGroup]",providers:[Re],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]}]},t.propDecorators={form:[{type:i.Input,args:["formGroup"]}],ngSubmit:[{type:i.Output}]},t}(l),De={provide:l,useExisting:Object(i.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.c)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&ke.groupParentException()},t.decorators=[{type:i.Directive,args:[{selector:"[formGroupName]",providers:[De]}]}],t.ctorParameters=function(){return[{type:l,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]}]},t.propDecorators={name:[{type:i.Input,args:["formGroupName"]}]},t}(re),Le={provide:l,useExisting:Object(i.forwardRef)(function(){return Be})},Be=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return z(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return $(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Z(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&ke.arrayParentException()},t.decorators=[{type:i.Directive,args:[{selector:"[formArrayName]",providers:[Le]}]}],t.ctorParameters=function(){return[{type:l,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]}]},t.propDecorators={name:[{type:i.Input,args:["formArrayName"]}]},t}(l);function je(e){return!(e instanceof Me||e instanceof Pe||e instanceof Be)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Ue={provide:x,useExisting:Object(i.forwardRef)(function(){return Ve})},Ve=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a._added=!1,a.update=new i.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=te(a,o),a}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){ke.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),X(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return z(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return $(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Z(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Me)&&this._parent instanceof re?ke.ngModelGroupException():this._parent instanceof Me||this._parent instanceof Pe||this._parent instanceof Be||ke.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t.decorators=[{type:i.Directive,args:[{selector:"[formControlName]",providers:[Ue]}]}],t.ctorParameters=function(){return[{type:l,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[b]}]}]},t.propDecorators={name:[{type:i.Input,args:["formControlName"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}],isDisabled:[{type:i.Input,args:["disabled"]}]},t}(x),Fe={provide:p,useExisting:Object(i.forwardRef)(function(){return qe}),multi:!0},He={provide:p,useExisting:Object(i.forwardRef)(function(){return ze}),multi:!0},qe=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?g.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.decorators=[{type:i.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Fe],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e.propDecorators={required:[{type:i.Input}]},e}(),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.validate=function(e){return this.required?g.requiredTrue(e):null},t.decorators=[{type:i.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[He],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t}(qe),Ke={provide:p,useExisting:Object(i.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?g.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.decorators=[{type:i.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Ke]}]}],e.ctorParameters=function(){return[]},e.propDecorators={email:[{type:i.Input}]},e}(),Ge={provide:p,useExisting:Object(i.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=g.minLength(parseInt(this.minlength,10))},e.decorators=[{type:i.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Ge],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],e.ctorParameters=function(){return[]},e.propDecorators={minlength:[{type:i.Input}]},e}(),Ye={provide:p,useExisting:Object(i.forwardRef)(function(){return $e}),multi:!0},$e=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=g.maxLength(parseInt(this.maxlength,10))},e.decorators=[{type:i.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Ye],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],e.ctorParameters=function(){return[]},e.propDecorators={maxlength:[{type:i.Input}]},e}(),Ze={provide:p,useExisting:Object(i.forwardRef)(function(){return Xe}),multi:!0},Xe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=g.pattern(this.pattern)},e.decorators=[{type:i.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Ze],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],e.ctorParameters=function(){return[]},e.propDecorators={pattern:[{type:i.Input}]},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=null!=t?t.validator:null,i=null!=t?t.asyncValidator:null;return new he(n,r,i)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new de(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){if(e instanceof pe||e instanceof he||e instanceof de)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[]},e}(),et=new i.Version("5.2.0"),tt=function(){function e(){}return e.decorators=[{type:i.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],e.ctorParameters=function(){return[]},e}(),nt=[tt,U,q,S,O,M,w,j,H,P,ae,se,qe,Qe,$e,Xe,ze,We],rt=[Oe,Te,me],it=[Ne,Pe,Ve,Me,Be],ot=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{declarations:nt,exports:nt}]}],e.ctorParameters=function(){return[]},e}(),at=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{declarations:rt,providers:[R],exports:[ot,rt]}]}],e.ctorParameters=function(){return[]},e}(),st=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{declarations:[it],providers:[Je,R],exports:[ot,it]}]}],e.ctorParameters=function(){return[]},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"AnimationBuilder",function(){return r}),n.d(t,"AnimationFactory",function(){return i}),n.d(t,"AUTO_STYLE",function(){return o}),n.d(t,"animate",function(){return s}),n.d(t,"animateChild",function(){return g}),n.d(t,"animation",function(){return d}),n.d(t,"group",function(){return u}),n.d(t,"keyframes",function(){return p}),n.d(t,"query",function(){return m}),n.d(t,"sequence",function(){return c}),n.d(t,"stagger",function(){return v}),n.d(t,"state",function(){return f}),n.d(t,"style",function(){return l}),n.d(t,"transition",function(){return h}),n.d(t,"trigger",function(){return a}),n.d(t,"useAnimation",function(){return y}),n.d(t,"NoopAnimationPlayer",function(){return _}),n.d(t,"ɵAnimationGroupPlayer",function(){return w}),n.d(t,"ɵPRE_STYLE",function(){return C}); /** * @license Angular v5.2.0 * (c) 2010-2018 Google, Inc. https://angular.io/ * License: MIT */ var r=function(){return function(){}}(),i=function(){return function(){}}(),o="*";function a(e,t){return{type:7,name:e,definitions:t,options:{}}}function s(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function u(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function c(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function f(e,t,n){return{type:0,name:e,styles:t,options:n}}function p(e){return{type:5,steps:e}}function h(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}function d(e,t){return void 0===t&&(t=null),{type:8,animation:e,options:t}}function g(e){return void 0===e&&(e=null),{type:9,options:e}}function y(e,t){return void 0===t&&(t=null),{type:10,animation:e,options:t}}function m(e,t,n){return void 0===n&&(n=null),{type:11,selector:e,animation:t,options:n}}function v(e,t){return{type:12,timings:e,animation:t}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license * @param {?} cb * @return {?} */function b(e){Promise.resolve(null).then(e)}var _=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;b(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),w=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,i=0,o=this.players.length;0==o?b(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==o&&t._onFinish()}),e.onDestroy(function(){++r==o&&t._onDestroy()}),e.onStart(function(){++i==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),C="!"; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},,function(e,t,n){var r=n(108)("wks"),i=n(74),o=n(17).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},,function(e,t,n){var r=n(11),i=n(180),o=n(61),a=Object.defineProperty;t.f=n(24)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports={options:{usePureJavaScript:!1}}},function(e,t,n){var r=n(68),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},,function(e,t,n){"use strict";var r=n(393);t.of=r.ArrayObservable.of},,,function(e,t,n){(function(t,r){var i=n(25),o=e.exports=i.util=i.util||{};function a(e){if(8!==e&&16!==e&&24!==e&&32!==e)throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}function s(e){if(this.data="",this.read=0,"string"==typeof e)this.data=e;else if(o.isArrayBuffer(e)||o.isArrayBufferView(e)){var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(e){for(var n=0;n15?(i=Date.now(),u(e)):(n.push(e),1===n.length&&s.setAttribute("a",a=!a))}}o.nextTick=o.setImmediate}(),o.isNodejs=void 0!==t&&t.versions&&t.versions.node,o.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},o.isArrayBufferView=function(e){return e&&o.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},o.ByteBuffer=s,o.ByteStringBuffer=s;o.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},o.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},o.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},o.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},o.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var n=this.data;t>0;)1&t&&(n+=e),(t>>>=1)>0&&(e+=e);return this.data=n,this._optimizeConstructedString(t),this},o.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},o.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(o.encodeUtf8(e))},o.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},o.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},o.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},o.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},o.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},o.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},o.ByteStringBuffer.prototype.putInt=function(e,t){a(t);var n="";do{t-=8,n+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(n)},o.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<0);return t},o.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<=n&&(t-=n<<1),t},o.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},o.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},o.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},o.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},o.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},o.ByteStringBuffer.prototype.copy=function(){var e=o.createBuffer(this.data);return e.read=this.read,e},o.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},o.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},o.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},o.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t=e)return this;t=Math.max(t||this.growSize,e);var n=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),r=new Uint8Array(this.length()+t);return r.set(n),this.data=new DataView(r.buffer),this},o.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},o.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var n=0;n>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},o.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},o.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},o.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},o.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},o.DataBuffer.prototype.putInt=function(e,t){a(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},o.DataBuffer.prototype.putSignedInt=function(e,t){return a(t),this.accommodate(t/8),e<0&&(e+=2<0);return t},o.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<=n&&(t-=n<<1),t},o.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},o.DataBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},o.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},o.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},o.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},o.DataBuffer.prototype.copy=function(){return new o.DataBuffer(this)},o.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},o.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},o.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},o.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t0;)1&t&&(n+=e),(t>>>=1)>0&&(e+=e);return n},o.xorBytes=function(e,t,n){for(var r="",i="",o="",a=0,s=0;n>0;--n,++a)i=e.charCodeAt(a)^t.charCodeAt(a),s>=10&&(r+=o,o="",s=0),o+=String.fromCharCode(i),++s;return r+=o},o.hexToBytes=function(e){var t="",n=0;for(!0&e.length&&(n=1,t+=String.fromCharCode(parseInt(e[0],16)));n>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];o.encode64=function(e,t){for(var n,r,i,o="",a="",s=0;s>2),o+=u.charAt((3&n)<<4|r>>4),isNaN(r)?o+="==":(o+=u.charAt((15&r)<<2|i>>6),o+=isNaN(i)?"=":u.charAt(63&i)),t&&o.length>t&&(a+=o.substr(0,t)+"\r\n",o=o.substr(t));return a+=o},o.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,n,r,i,o="",a=0;a>4),64!==r&&(o+=String.fromCharCode((15&n)<<4|r>>2),64!==i&&(o+=String.fromCharCode((3&r)<<6|i)));return o},o.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},o.decodeUtf8=function(e){return decodeURIComponent(escape(e))},o.binary={raw:{},hex:{},base64:{}},o.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},o.binary.raw.decode=function(e,t,n){var r=t;r||(r=new Uint8Array(e.length));for(var i=n=n||0,o=0;o>2),o+=u.charAt((3&n)<<4|r>>4),isNaN(r)?o+="==":(o+=u.charAt((15&r)<<2|i>>6),o+=isNaN(i)?"=":u.charAt(63&i)),t&&o.length>t&&(a+=o.substr(0,t)+"\r\n",o=o.substr(t));return a+=o},o.binary.base64.decode=function(e,t,n){var r,i,o,a,s=t;s||(s=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0,l=n=n||0;u>4,64!==o&&(s[l++]=(15&i)<<4|o>>2,64!==a&&(s[l++]=(3&o)<<6|a));return t?l-n:s.subarray(0,l)},o.text={utf8:{},utf16:{}},o.text.utf8.encode=function(e,t,n){e=o.encodeUtf8(e);var r=t;r||(r=new Uint8Array(e.length));for(var i=n=n||0,a=0;a0?(i=n[r].substring(0,a),o=n[r].substring(a+1)):(i=n[r],o=null),i in t||(t[i]=[]),i in Object.prototype||null===o||t[i].push(unescape(o))}return t};return void 0===e?(null===m&&(m="undefined"!=typeof window&&window.location&&window.location.search?n(window.location.search.substring(1)):{}),t=m):t=n(e),t},o.parseFragment=function(e){var t=e,n="",r=e.indexOf("?");r>0&&(t=e.substring(0,r),n=e.substring(r+1));var i=t.split("/");return i.length>0&&""===i[0]&&i.shift(),{pathString:t,queryString:n,path:i,query:""===n?{}:o.getQueryVariables(n)}},o.makeRequest=function(e){var t=o.parseFragment(e),n={path:t.pathString,query:t.queryString,getPath:function(e){return void 0===e?t.path:t.path[e]},getQuery:function(e,n){var r;return void 0===e?r=t.query:(r=t.query[e])&&void 0!==n&&(r=r[n]),r},getQueryLast:function(e,t){var r=n.getQuery(e);return r?r[r.length-1]:t}};return n},o.makeLink=function(e,t,n){e=jQuery.isArray(e)?e.join("/"):e;var r=jQuery.param(t||{});return n=n||"",e+(r.length>0?"?"+r:"")+(n.length>0?"#"+n:"")},o.setPath=function(e,t,n){if("object"==typeof e&&null!==e)for(var r=0,i=t.length;r0&&o.push(n),a=r.lastIndex;var s=t[0][1];switch(s){case"s":case"o":i");break;case"%":o.push("%");break;default:o.push("<%"+s+"?>")}}return o.push(e.substring(a)),o.join("")},o.formatNumber=function(e,t,n,r){var i=e,o=isNaN(t=Math.abs(t))?2:t,a=void 0===n?",":n,s=void 0===r?".":r,u=i<0?"-":"",c=parseInt(i=Math.abs(+i||0).toFixed(o),10)+"",l=c.length>3?c.length%3:0;return u+(l?c.substr(0,l)+s:"")+c.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+s)+(o?a+Math.abs(i-c).toFixed(o).slice(2):"")},o.formatSize=function(e){return e=e>=1073741824?o.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?o.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?o.formatNumber(e/1024,0)+" KiB":o.formatNumber(e,0)+" bytes"},o.bytesFromIP=function(e){return-1!==e.indexOf(".")?o.bytesFromIPv4(e):-1!==e.indexOf(":")?o.bytesFromIPv6(e):null},o.bytesFromIPv4=function(e){if(4!==(e=e.split(".")).length)return null;for(var t=o.createBuffer(),n=0;nn[r].end-n[r].start&&(r=n.length-1)):n.push({start:u,end:u})}t.push(a)}if(n.length>0){var c=n[r];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),0===c.start&&t.unshift(""),7===c.end&&t.push(""))}return t.join(":")},o.estimateCores=function(e,t){if("function"==typeof e&&(t=e,e={}),e=e||{},"cores"in o&&!e.update)return t(null,o.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return o.cores=navigator.hardwareConcurrency,t(null,o.cores);if("undefined"==typeof Worker)return o.cores=1,t(null,o.cores);if("undefined"==typeof Blob)return o.cores=2,t(null,o.cores);var n=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){for(var t=Date.now(),n=t+4;Date.now()s.st&&i.sti.st&&s.st"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},,function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserModule",function(){return rt}),n.d(t,"platformBrowser",function(){return Je}),n.d(t,"Meta",function(){return w}),n.d(t,"Title",function(){return A}),n.d(t,"disableDebugTools",function(){return ct}),n.d(t,"enableDebugTools",function(){return ut}),n.d(t,"BrowserTransferStateModule",function(){return dt}),n.d(t,"TransferState",function(){return pt}),n.d(t,"makeStateKey",function(){return ft}),n.d(t,"By",function(){return gt}),n.d(t,"DOCUMENT",function(){return v}),n.d(t,"EVENT_MANAGER_PLUGINS",function(){return D}),n.d(t,"EventManager",function(){return M}),n.d(t,"HAMMER_GESTURE_CONFIG",function(){return le}),n.d(t,"HammerGestureConfig",function(){return fe}),n.d(t,"DomSanitizer",function(){return qe}),n.d(t,"VERSION",function(){return yt}),n.d(t,"ɵBROWSER_SANITIZATION_PROVIDERS",function(){return Xe}),n.d(t,"ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS",function(){return Ze}),n.d(t,"ɵinitDomAdapter",function(){return et}),n.d(t,"ɵBrowserDomAdapter",function(){return y}),n.d(t,"ɵBrowserPlatformLocation",function(){return _}),n.d(t,"ɵTRANSITION_ID",function(){return C}),n.d(t,"ɵBrowserGetTestability",function(){return T}),n.d(t,"ɵescapeHtml",function(){return lt}),n.d(t,"ɵELEMENT_PROBE_PROVIDERS",function(){return P}),n.d(t,"ɵDomAdapter",function(){return l}),n.d(t,"ɵgetDOM",function(){return s}),n.d(t,"ɵsetRootDomAdapter",function(){return u}),n.d(t,"ɵDomRendererFactory2",function(){return G}),n.d(t,"ɵNAMESPACE_URIS",function(){return U}),n.d(t,"ɵflattenStyles",function(){return K}),n.d(t,"ɵshimContentAttribute",function(){return q}),n.d(t,"ɵshimHostAttribute",function(){return z}),n.d(t,"ɵDomEventsPlugin",function(){return ue}),n.d(t,"ɵHammerGesturesPlugin",function(){return pe}),n.d(t,"ɵKeyEventsPlugin",function(){return ge}),n.d(t,"ɵDomSharedStylesHost",function(){return j}),n.d(t,"ɵSharedStylesHost",function(){return B}),n.d(t,"ɵb",function(){return nt}),n.d(t,"ɵa",function(){return tt}),n.d(t,"ɵi",function(){return f}),n.d(t,"ɵg",function(){return S}),n.d(t,"ɵf",function(){return E}),n.d(t,"ɵc",function(){return ht}),n.d(t,"ɵh",function(){return R}),n.d(t,"ɵd",function(){return L}),n.d(t,"ɵe",function(){return ze});var r=n(6),i=n(0),o=n(4),a=null;function s(){return a}function u(e){a||(a=e)}var c,l=function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}(),f=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;s||(s=e[a]=[]);var c=ae(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:c,handler:o});else{for(var l=!1,f=0;f-1},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[v]}]},{type:fe,decorators:[{type:i.Inject,args:[le]}]}]},t}(L),he=["alt","control","meta","shift"],de={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},ge=function(e){function t(t){return e.call(this,t)||this}return Object(o.c)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(he.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),he.forEach(function(r){r!=n&&((0,de[r])(e)&&(t+=r+"."))}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[v]}]}]},t}(L),ye=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,me=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ve(e){return(e=String(e)).match(ye)||e.match(me)?e:(Object(i.isDevMode)()&&s().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var be=null,_e=null;function we(e){for(var t={},n=0,r=e.split(",");n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=_e.nodeName(e).toLowerCase();ke.hasOwnProperty(t)&&!Ee.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(je(e))},e}();function Me(e,t){if(t&&_e.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+_e.getOuterHTML(e));return t}var Le=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Be=/([^\#-~ |!])/g;function je(e){return e.replace(/&/g,"&").replace(Le,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Be,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ue(e){_e.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||_e.removeAttribute(e,n)});for(var t=0,n=_e.childNodesAsList(e);t":"&g;"};return e.replace(/[&"'<>]/g,function(e){return t[e]})}function ft(e){return e}var pt=function(){function e(){this.store={},this.onSerializeCallbacks={}}return e.init=function(t){var n=new e;return n.store=t,n},e.prototype.get=function(e,t){return this.store[e]||t},e.prototype.set=function(e,t){this.store[e]=t},e.prototype.remove=function(e){delete this.store[e]},e.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},e.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},e.prototype.toJson=function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[]},e}();function ht(e,t){var n=e.getElementById(t+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(function(e){var t={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,function(e){return t[e]})}(n.textContent))}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return pt.init(r)}var dt=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{providers:[{provide:pt,useFactory:ht,deps:[v,i.APP_ID]}]}]}],e.ctorParameters=function(){return[]},e}(),gt=function(){function e(){}return e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&s().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),yt=new i.Version("5.2.0"); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */},function(e,t,n){var r=n(17),i=n(46),o=n(34),a=n(74)("src"),s=Function.toString,u=(""+s).split("toString");n(53).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},,function(e,t,n){"use strict";var r=n(122),i=n(638),o=n(392),a=n(482),s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=i.toSubscriber(e,t,n);if(r?r.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var i;i=n.subscribe(function(t){if(i)try{e(t)}catch(e){r(e),i.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t=200&&s.status<300?n(new u(s.status,s.statusText,s.response||s.responseText)):i(new o(s.statusText,s.status))},s.onerror=function(){t.logger.log(r.Warning,"Error from HTTP request. "+s.status+": "+s.statusText),i(new o(s.statusText,s.status))},s.ontimeout=function(){t.logger.log(r.Warning,"Timeout from HTTP request."),i(new a)},s.send(e.content||"")})},t}(c),f=function(){function e(){}return e.write=function(t){return""+t+e.RecordSeparator},e.parse=function(t){if(t[t.length-1]!==e.RecordSeparator)throw new Error("Message is incomplete.");var n=t.split(e.RecordSeparator);return n.pop(),n},e.RecordSeparatorCode=30,e.RecordSeparator=String.fromCharCode(e.RecordSeparatorCode),e}(),p=function(){function e(){}return e.prototype.writeHandshakeRequest=function(e){return f.write(JSON.stringify(e))},e.prototype.parseHandshakeResponse=function(e){var t,n;if(e instanceof ArrayBuffer){var r=new Uint8Array(e);if(-1===(o=r.indexOf(f.RecordSeparatorCode)))throw new Error("Message is incomplete.");var i=o+1;t=String.fromCharCode.apply(null,r.slice(0,i)),n=r.byteLength>i?r.slice(i).buffer:null}else{var o,a=e;if(-1===(o=a.indexOf(f.RecordSeparator)))throw new Error("Message is incomplete.");i=o+1;t=a.substring(0,i),n=a.length>i?a.substring(i):null}var s=f.parse(t);return[n,JSON.parse(s[0])]},e}();!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(s||(s={}));var h=function(){function e(){}return e.prototype.log=function(e,t){},e.instance=new e,e}(),d=function(){function e(){}return e.isRequired=function(e,t){if(null===e||void 0===e)throw new Error("The '"+t+"' argument is required.")},e.isIn=function(e,t,n){if(!(e in t))throw new Error("Unknown "+n+" value: "+e+".")},e}();function g(e,t){var n=null;return e instanceof ArrayBuffer?(n="Binary data of length "+e.byteLength,t&&(n+=". Content: '"+function(e){var t="";return new Uint8Array(e).forEach(function(e){t+="0x"+(e<16?"0":"")+e.toString(16)+" "}),t.substr(0,t.length-1)}(e)+"'")):"string"==typeof e&&(n="String data of length "+e.length,t&&(n+=". Content: '"+e+"'.")),n}function y(e,t,n,o,a,s,u){return i.b(this,void 0,void 0,function(){var c,l,f,p;return i.d(this,function(i){switch(i.label){case 0:return[4,a()];case 1:return(l=i.sent())&&((p={}).Authorization="Bearer "+l,c=p),e.log(r.Trace,"("+t+" transport) sending data. "+g(s,u)+"."),[4,n.post(o,{content:s,headers:c})];case 2:return f=i.sent(),e.log(r.Trace,"("+t+" transport) request complete. Response status: "+f.statusCode+"."),[2]}})})}var m,v,b=function(){function e(e){this.observers=[],this.cancelCallback=e}return e.prototype.next=function(e){for(var t=0,n=this.observers;t-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback().catch(function(e){})},e}(),w=function(){function e(e){this.minimumLogLevel=e}return e.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case r.Critical:case r.Error:console.error(r[e]+": "+t);break;case r.Warning:console.warn(r[e]+": "+t);break;case r.Information:console.info(r[e]+": "+t);break;default:console.log(r[e]+": "+t)}},e}(),C=3e4,E=function(){function e(e,t,n){var r=this;d.isRequired(e,"connection"),d.isRequired(t,"logger"),d.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=C,this.logger=t,this.protocol=n,this.connection=e,this.handshakeProtocol=new p,this.connection.onreceive=function(e){return r.processIncomingData(e)},this.connection.onclose=function(e){return r.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.id=0}return e.create=function(t,n,r){return new e(t,n,r)},e.prototype.start=function(){return i.b(this,void 0,void 0,function(){var e;return i.d(this,function(t){switch(t.label){case 0:return e={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(r.Debug,"Starting HubConnection."),this.receivedHandshakeResponse=!1,[4,this.connection.start(this.protocol.transferFormat)];case 1:return t.sent(),this.logger.log(r.Debug,"Sending handshake request."),[4,this.connection.send(this.handshakeProtocol.writeHandshakeRequest(e))];case 2:return t.sent(),this.logger.log(r.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.configureTimeout(),[2]}})})},e.prototype.stop=function(){return this.logger.log(r.Debug,"Stopping HubConnection."),this.cleanupTimeout(),this.connection.stop()},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r")),this.onclose(n)),this.logger.log(r.Trace,"(LongPolling transport) Transport finished."),[7];case 9:return[2]}})})},e.prototype.send=function(e){return i.b(this,void 0,void 0,function(){return i.d(this,function(t){return this.running?[2,y(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},e.prototype.stop=function(){return i.b(this,void 0,void 0,function(){var e,t,n=this;return i.d(this,function(i){switch(i.label){case 0:return i.trys.push([0,,3,4]),this.running=!1,this.logger.log(r.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.accessTokenFactory()];case 1:return t=i.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 2:return i.sent(),this.logger.log(r.Trace,"(LongPolling transport) DELETE request accepted."),[3,4];case 3:return this.stopped||(this.shutdownTimer=setTimeout(function(){n.logger.log(r.Warning,"(LongPolling transport) server did not terminate after DELETE request, canceling poll."),n.pollAbort.abort()},this.shutdownTimeout)),[7];case 4:return[2]}})})},e}(),I=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t||function(){return null},this.logger=n,this.logMessageContent=r}return e.prototype.connect=function(e,t){return i.b(this,void 0,void 0,function(){var n,o=this;return i.d(this,function(i){switch(i.label){case 0:if(d.isRequired(e,"url"),d.isRequired(t,"transferFormat"),d.isIn(t,v,"transferFormat"),"undefined"==typeof EventSource)throw new Error("'EventSource' is not supported in your environment.");return this.logger.log(r.Trace,"(SSE transport) Connecting"),[4,this.accessTokenFactory()];case 1:return(n=i.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),this.url=e,[2,new Promise(function(n,i){var a=!1;t!==v.Text&&i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));var s=new EventSource(e,{withCredentials:!0});try{s.onmessage=function(e){if(o.onreceive)try{o.logger.log(r.Trace,"(SSE transport) data received. "+g(e.data,o.logMessageContent)+"."),o.onreceive(e.data)}catch(e){return void(o.onclose&&o.onclose(e))}},s.onerror=function(e){var t=new Error(e.message||"Error occurred");a?o.close(t):i(t)},s.onopen=function(){o.logger.log(r.Information,"SSE connected to "+o.url),o.eventSource=s,a=!0,n()}}catch(e){return Promise.reject(e)}})]}})})},e.prototype.send=function(e){return i.b(this,void 0,void 0,function(){return i.d(this,function(t){return this.eventSource?[2,y(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=null,this.onclose&&this.onclose(e))},e}(),O=function(){function e(e,t,n){this.logger=t,this.accessTokenFactory=e||function(){return null},this.logMessageContent=n}return e.prototype.connect=function(e,t){return i.b(this,void 0,void 0,function(){var n,o=this;return i.d(this,function(i){switch(i.label){case 0:if(d.isRequired(e,"url"),d.isRequired(t,"transferFormat"),d.isIn(t,v,"transferFormat"),"undefined"==typeof WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return this.logger.log(r.Trace,"(WebSockets transport) Connecting"),[4,this.accessTokenFactory()];case 1:return(n=i.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),[2,new Promise(function(n,i){e=e.replace(/^http/,"ws");var a=new WebSocket(e);t===v.Binary&&(a.binaryType="arraybuffer"),a.onopen=function(t){o.logger.log(r.Information,"WebSocket connected to "+e),o.webSocket=a,n()},a.onerror=function(e){i(e.error)},a.onmessage=function(e){o.logger.log(r.Trace,"(WebSockets transport) data received. "+g(e.data,o.logMessageContent)+"."),o.onreceive&&o.onreceive(e.data)},a.onclose=function(e){o.logger.log(r.Trace,"(WebSockets transport) socket closed."),o.onclose&&(!1===e.wasClean||1e3!==e.code?o.onclose(new Error("Websocket closed with status code: "+e.code+" ("+e.reason+")")):o.onclose())}})]}})})},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===WebSocket.OPEN?(this.logger.log(r.Trace,"(WebSockets transport) sending data. "+g(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&(this.webSocket.close(),this.webSocket=null),Promise.resolve()},e}(),k=function(){function e(e,t){void 0===t&&(t={}),this.features={},d.isRequired(e,"url"),this.logger=function(e){return void 0===e?new w(r.Information):null===e?h.instance:e.log?e:new w(e)}(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).accessTokenFactory=t.accessTokenFactory||function(){return null},t.logMessageContent=t.logMessageContent||!1,this.httpClient=t.httpClient||new l(this.logger),this.connectionState=2,this.options=t}return e.prototype.start=function(e){return e=e||v.Binary,d.isIn(e,v,"transferFormat"),this.logger.log(r.Debug,"Starting connection with transfer format '"+v[e]+"'."),2!==this.connectionState?Promise.reject(new Error("Cannot start a connection that is not in the 'Disconnected' state.")):(this.connectionState=0,this.startPromise=this.startInternal(e),this.startPromise)},e.prototype.send=function(e){if(1!==this.connectionState)throw new Error("Cannot send data if the connection is not in the 'Connected' State.");return this.transport.send(e)},e.prototype.stop=function(e){return i.b(this,void 0,void 0,function(){return i.d(this,function(t){switch(t.label){case 0:this.connectionState=2,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startPromise];case 2:return t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return this.transport?(this.stopError=e,[4,this.transport.stop()]):[3,6];case 5:t.sent(),this.transport=null,t.label=6;case 6:return[2]}})})},e.prototype.startInternal=function(e){return i.b(this,void 0,void 0,function(){var t,n,o,a,s,u,c,l=this;return i.d(this,function(f){switch(f.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,f.label=1;case 1:return f.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==m.WebSockets?[3,3]:(this.transport=this.constructTransport(m.WebSockets),[4,this.transport.connect(t,e)]):[3,5];case 2:return f.sent(),[3,4];case 3:throw Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,o=0,a=function(){var e;return i.d(this,function(r){switch(r.label){case 0:return[4,s.getNegotiationResponse(t)];case 1:return n=r.sent(),2===s.connectionState?[2,{value:void 0}]:(n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,s.accessTokenFactory=function(){return e}),o++,[2])}})},s=this,f.label=6;case 6:return[5,a()];case 7:if("object"==typeof(u=f.sent()))return[2,u.value];f.label=8;case 8:if(n.url&&o<100)return[3,6];f.label=9;case 9:if(100===o&&n.url)throw Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:f.sent(),f.label=11;case 11:return this.transport instanceof A&&(this.features.inherentKeepAlive=!0),this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return l.stopConnection(e)},this.changeState(0,1),[3,13];case 12:throw c=f.sent(),this.logger.log(r.Error,"Failed to start the connection: "+c),this.connectionState=2,this.transport=null,c;case 13:return[2]}})})},e.prototype.getNegotiationResponse=function(e){return i.b(this,void 0,void 0,function(){var t,n,o,a,s,u;return i.d(this,function(i){switch(i.label){case 0:return[4,this.accessTokenFactory()];case 1:(t=i.sent())&&((u={}).Authorization="Bearer "+t,n=u),o=this.resolveNegotiateUrl(e),this.logger.log(r.Debug,"Sending negotiation request: "+o),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.httpClient.post(o,{content:"",headers:n})];case 3:if(200!==(a=i.sent()).statusCode)throw Error("Unexpected status code returned from negotiate "+a.statusCode);return[2,JSON.parse(a.content)];case 4:throw s=i.sent(),this.logger.log(r.Error,"Failed to complete negotiation with the server: "+s),s;case 5:return[2]}})})},e.prototype.createConnectUrl=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+"id="+t},e.prototype.createTransport=function(e,t,n,o){return i.b(this,void 0,void 0,function(){var a,s,u,c,l,f,p;return i.d(this,function(i){switch(i.label){case 0:return a=this.createConnectUrl(e,n.connectionId),this.isITransport(t)?(this.logger.log(r.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.transport.connect(a,o)]):[3,2];case 1:return i.sent(),this.changeState(0,1),[2];case 2:s=n.availableTransports,u=0,c=s,i.label=3;case 3:return u=0){if(!(i===m.WebSockets&&"undefined"==typeof WebSocket||i===m.ServerSentEvents&&"undefined"==typeof EventSource))return this.logger.log(r.Debug,"Selecting transport '"+m[i]+"'"),i;this.logger.log(r.Debug,"Skipping transport '"+m[i]+"' because it is not supported in your environment.'")}else this.logger.log(r.Debug,"Skipping transport '"+m[i]+"' because it does not support the requested transfer format '"+v[n]+"'.");else this.logger.log(r.Debug,"Skipping transport '"+m[i]+"' because it was disabled by the client.")}return null},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.changeState=function(e,t){return this.connectionState===e&&(this.connectionState=t,!0)},e.prototype.stopConnection=function(e){return i.b(this,void 0,void 0,function(){return i.d(this,function(t){return this.transport=null,(e=this.stopError||e)?this.logger.log(r.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(r.Information,"Connection disconnected."),this.connectionState=2,this.onclose&&this.onclose(e),[2]})})},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if("undefined"==typeof window||!window||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(r.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",n+=-1===t?"":e.substring(t)},e}();var x="json",N=function(){function e(){this.name=x,this.version=1,this.transferFormat=v.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=h.instance);for(var n=[],i=0,o=f.parse(e);iw;w++)if((p||w in v)&&(y=b(g=v[w],w,m),e))if(n)C[w]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:C.push(g)}else if(l)return!1;return f?-1:c||l?l:C}}},function(e,t,n){var r=n(47);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";if(n(24)){var r=n(80),i=n(17),o=n(15),a=n(1),s=n(114),u=n(145),c=n(60),l=n(82),f=n(66),p=n(46),h=n(83),d=n(68),g=n(26),y=n(76),m=n(61),v=n(34),b=n(186),_=n(90),w=n(19),C=n(35),E=n(142),S=n(69),T=n(48),A=n(77).f,I=n(110),O=n(74),k=n(21),x=n(59),N=n(118),R=n(144),P=n(165),D=n(85),M=n(111),L=n(81),B=n(143),j=n(195),U=n(23),V=n(50),F=U.f,H=V.f,q=i.RangeError,z=i.TypeError,K=i.Uint8Array,W=Array.prototype,G=u.ArrayBuffer,Q=u.DataView,Y=x(0),$=x(2),Z=x(3),X=x(4),J=x(5),ee=x(6),te=N(!0),ne=N(!1),re=P.values,ie=P.keys,oe=P.entries,ae=W.lastIndexOf,se=W.reduce,ue=W.reduceRight,ce=W.join,le=W.sort,fe=W.slice,pe=W.toString,he=W.toLocaleString,de=k("iterator"),ge=k("toStringTag"),ye=O("typed_constructor"),me=O("def_constructor"),ve=s.CONSTR,be=s.TYPED,_e=s.VIEW,we=x(1,function(e,t){return Ie(R(e,e[me]),t)}),Ce=o(function(){return 1===new K(new Uint16Array([1]).buffer)[0]}),Ee=!!K&&!!K.prototype.set&&o(function(){new K(1).set({})}),Se=function(e,t){if(void 0===e)throw z("Wrong length!");var n=+e,r=g(e);if(t&&!b(n,r))throw q("Wrong length!");return r},Te=function(e,t){var n=d(e);if(n<0||n%t)throw q("Wrong offset!");return n},Ae=function(e){if(w(e)&&be in e)return e;throw z(e+" is not a typed array!")},Ie=function(e,t){if(!(w(e)&&ye in e))throw z("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return ke(R(e,e[me]),t)},ke=function(e,t){for(var n=0,r=t.length,i=Ie(e,r);r>n;)i[n]=t[n++];return i},xe=function(e,t,n){F(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,r,i,o,a,s=C(e),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,p=I(s);if(void 0!=p&&!E(p)){for(a=p.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),t=0,n=g(s.length),i=Ie(this,n);n>t;t++)i[t]=f?l(s[t],t):s[t];return i},Re=function(){for(var e=0,t=arguments.length,n=Ie(this,t);t>e;)n[e]=arguments[e++];return n},Pe=!!K&&o(function(){he.call(new K(1))}),De=function(){return he.apply(Pe?fe.call(Ae(this)):Ae(this),arguments)},Me={copyWithin:function(e,t){return j.call(Ae(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return X(Ae(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Ae(this),arguments)},filter:function(e){return Oe(this,$(Ae(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Ae(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ae(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Y(Ae(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ae(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ae(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Ae(this),arguments)},lastIndexOf:function(e){return ae.apply(Ae(this),arguments)},map:function(e){return we(Ae(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ae(this),arguments)},reduceRight:function(e){return ue.apply(Ae(this),arguments)},reverse:function(){for(var e,t=Ae(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return le.call(Ae(this),e)},subarray:function(e,t){var n=Ae(this),r=n.length,i=y(e,r);return new(R(n,n[me]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-i))}},Le=function(e,t){return Oe(this,fe.call(Ae(this),e,t))},Be=function(e){Ae(this);var t=Te(arguments[1],1),n=this.length,r=C(e),i=g(r.length),o=0;if(i+t>n)throw q("Wrong length!");for(;o255?255:255&r),i.v[d](n*t+i.o,r,Ce)}(this,n,e)},enumerable:!0})};b?(y=n(function(e,n,r,i){l(e,y,c,"_d");var o,a,s,u,f=0,h=0;if(w(n)){if(!(n instanceof G||"ArrayBuffer"==(u=_(n))||"SharedArrayBuffer"==u))return be in n?ke(y,n):Ne.call(y,n);o=n,h=Te(r,t);var d=n.byteLength;if(void 0===i){if(d%t)throw q("Wrong length!");if((a=d-h)<0)throw q("Wrong length!")}else if((a=g(i)*t)+h>d)throw q("Wrong length!");s=a/t}else s=Se(n,!0),o=new G(a=s*t);for(p(e,"_d",{b:o,o:h,l:a,e:s,v:new Q(o)});f0?r:n)(e)}},function(e,t,n){var r=n(11),i=n(184),o=n(130),a=n(129)("IE_PROTO"),s=function(){},u=function(){var e,t=n(128)("iframe"),r=o.length;for(t.style.display="none",n(132).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("