From 011a17d40b7fda59cf8fca226aab5f7ec5ab83aa Mon Sep 17 00:00:00 2001 From: Andry Bintoro Date: Wed, 25 Apr 2018 02:24:13 -0400 Subject: [PATCH 1/8] adding working version of login and registration --- FlashCourse-web/src/app/_guards/index.ts | 1 - FlashCourse-web/src/app/_models/index.ts | 1 - .../src/app/_services/alert.service.ts | 39 +++++++++++ .../app/_services/authentication.service.ts | 2 +- FlashCourse-web/src/app/_services/index.ts | 2 - .../src/app/_services/user.service.ts | 14 ++-- FlashCourse-web/src/app/app-routing.module.ts | 65 +++++-------------- FlashCourse-web/src/app/app.component.html | 6 +- FlashCourse-web/src/app/app.component.ts | 2 + FlashCourse-web/src/app/app.module.ts | 18 ++++- .../src/app/login/login.component.html | 38 +++++++---- .../src/app/login/login.component.ts | 30 +++++++-- .../registration/registration.component.html | 38 ++++++++++- .../registration/registration.component.ts | 27 ++++++-- 14 files changed, 193 insertions(+), 90 deletions(-) delete mode 100755 FlashCourse-web/src/app/_guards/index.ts delete mode 100755 FlashCourse-web/src/app/_models/index.ts create mode 100644 FlashCourse-web/src/app/_services/alert.service.ts delete mode 100755 FlashCourse-web/src/app/_services/index.ts diff --git a/FlashCourse-web/src/app/_guards/index.ts b/FlashCourse-web/src/app/_guards/index.ts deleted file mode 100755 index 3e48800..0000000 --- a/FlashCourse-web/src/app/_guards/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './auth.guard'; \ No newline at end of file diff --git a/FlashCourse-web/src/app/_models/index.ts b/FlashCourse-web/src/app/_models/index.ts deleted file mode 100755 index 4d8c0a6..0000000 --- a/FlashCourse-web/src/app/_models/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './user'; \ No newline at end of file diff --git a/FlashCourse-web/src/app/_services/alert.service.ts b/FlashCourse-web/src/app/_services/alert.service.ts new file mode 100644 index 0000000..5486d8c --- /dev/null +++ b/FlashCourse-web/src/app/_services/alert.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Router, NavigationStart } from '@angular/router'; +import { Observable } from 'rxjs'; +import { Subject } from 'rxjs/Subject'; + +@Injectable() +export class AlertService { + private subject = new Subject(); + private keepAfterNavigationChange = false; + + constructor(private router: Router) { + // clear alert message on route change + router.events.subscribe(event => { + if (event instanceof NavigationStart) { + if (this.keepAfterNavigationChange) { + // only keep for a single location change + this.keepAfterNavigationChange = false; + } else { + // clear alert + this.subject.next(); + } + } + }); + } + + success(message: string, keepAfterNavigationChange = false) { + this.keepAfterNavigationChange = keepAfterNavigationChange; + this.subject.next({ type: 'success', text: message }); + } + + error(message: string, keepAfterNavigationChange = false) { + this.keepAfterNavigationChange = keepAfterNavigationChange; + this.subject.next({ type: 'error', text: message }); + } + + getMessage(): Observable { + return this.subject.asObservable(); + } +} \ No newline at end of file diff --git a/FlashCourse-web/src/app/_services/authentication.service.ts b/FlashCourse-web/src/app/_services/authentication.service.ts index d028cd0..fc0d9b6 100755 --- a/FlashCourse-web/src/app/_services/authentication.service.ts +++ b/FlashCourse-web/src/app/_services/authentication.service.ts @@ -14,7 +14,7 @@ export class AuthenticationService { } login(username: string, password: string): Observable { - return this.http.post('http://127.0.0.1:8000/api/token', { username: username, password: password }) + return this.http.post('http://159.65.236.42/api/token/', { username: username, password: password }) .map((response: Response) => { // login successful if there's a jwt token in the response let token = response.json() && response.json().access; diff --git a/FlashCourse-web/src/app/_services/index.ts b/FlashCourse-web/src/app/_services/index.ts deleted file mode 100755 index 3df393c..0000000 --- a/FlashCourse-web/src/app/_services/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './authentication.service'; -export * from './user.service'; \ No newline at end of file diff --git a/FlashCourse-web/src/app/_services/user.service.ts b/FlashCourse-web/src/app/_services/user.service.ts index 0d06b54..6ce707f 100755 --- a/FlashCourse-web/src/app/_services/user.service.ts +++ b/FlashCourse-web/src/app/_services/user.service.ts @@ -4,8 +4,8 @@ import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import 'rxjs/add/operator/map' -import { AuthenticationService } from '../_services/index'; -import { User } from '../_models/index'; +import { AuthenticationService } from '../_services/authentication.service'; +import { User } from '../_models/user'; @Injectable() export class UserService { @@ -20,11 +20,15 @@ export class UserService { let options = new RequestOptions({ headers: headers }); // get users from api - return this.http.get('http://127.0.0.1:8000/api/token', options) + return this.http.get('http://159.65.236.42/api/token/', options) .map((response: Response) => response.json()); } + create(user: User) { + return this.http.put('http://159.65.236.42/accounts/api/registration', user); + } + // getAll() { // return this.http.get('/api/users'); // } @@ -33,10 +37,6 @@ export class UserService { // return this.http.get('/api/users/' + id); // } - // create(user: User) { - // return this.http.post('/api/users', user); - // } - // update(user: User) { // return this.http.put('/api/users/' + user.id, user); // } diff --git a/FlashCourse-web/src/app/app-routing.module.ts b/FlashCourse-web/src/app/app-routing.module.ts index c7812c0..8d284f7 100644 --- a/FlashCourse-web/src/app/app-routing.module.ts +++ b/FlashCourse-web/src/app/app-routing.module.ts @@ -16,7 +16,7 @@ import { PrivacyComponent } from './privacy/privacy.component'; import { RegistrationComponent } from './registration/registration.component'; import { TermsComponent } from './terms/terms.component'; import { ActivatedRoute } from '@angular/router'; - +import { AuthGuard } from './_guards/auth.guard'; const routes: Routes = [ // { @@ -24,53 +24,22 @@ const routes: Routes = [ // redirectTo: 'home', // pathMatch: 'full' // }, -{ - path: 'about', - component: AboutComponent -}, -{ - path: 'contact', - component: ContactComponent -}, -{ - path: 'coursedetails', - component: CourseDetailsComponent -}, -{ - path: 'courses', - component: CoursesComponent -}, -{path: 'flashcards', -component: FlashcardsComponent -}, -{ - path: 'home', - component: HomeComponent -}, -{ - path: 'home/:id', - component: HomeComponent -}, -{ - path: 'institutions', - component: InstitutionsComponent -}, -{ - path: 'login', - component: LoginComponent -}, -{ - path: 'privacy', - component: PrivacyComponent -}, -{ - path: 'registration', - component: RegistrationComponent -}, -{ - path: 'terms', - component: TermsComponent -}, +{ path: '', component: HomeComponent, canActivate: [AuthGuard] }, +{ path: 'about', component: AboutComponent }, +{ path: 'contact', component: ContactComponent }, +{ path: 'coursedetails', component: CourseDetailsComponent }, +{ path: 'courses', component: CoursesComponent }, +{ path: 'flashcards', component: FlashcardsComponent }, +{ path: 'home', component: HomeComponent, canActivate: [AuthGuard] }, +{ path: 'home/:id', component: HomeComponent }, +{ path: 'institutions', component: InstitutionsComponent }, +{ path: 'login', component: LoginComponent }, +{ path: 'privacy', component: PrivacyComponent }, +{ path: 'registration', component: RegistrationComponent }, +{ path: 'terms', component: TermsComponent }, + +// otherwise redirect to home +{ path: '**', redirectTo: '' } ]; diff --git a/FlashCourse-web/src/app/app.component.html b/FlashCourse-web/src/app/app.component.html index aaebc20..f2410c8 100644 --- a/FlashCourse-web/src/app/app.component.html +++ b/FlashCourse-web/src/app/app.component.html @@ -1,9 +1,10 @@ - flashcourses + +
+
- +
diff --git a/FlashCourse-web/src/app/app.component.ts b/FlashCourse-web/src/app/app.component.ts index ea85093..6d1793d 100644 --- a/FlashCourse-web/src/app/app.component.ts +++ b/FlashCourse-web/src/app/app.component.ts @@ -1,10 +1,12 @@ import { Component } from '@angular/core'; @Component({ + moduleId: module.id, selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) + export class AppComponent { title = 'Home'; } diff --git a/FlashCourse-web/src/app/app.module.ts b/FlashCourse-web/src/app/app.module.ts index c0e496c..62f26e5 100644 --- a/FlashCourse-web/src/app/app.module.ts +++ b/FlashCourse-web/src/app/app.module.ts @@ -1,7 +1,9 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; +import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; -import {HttpClientModule} from '@angular/common/http'; +import { HttpClient } from '@angular/common/http'; +import { FormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; import { AppComponent } from './app.component'; @@ -16,9 +18,12 @@ import { InstitutionsComponent } from './institutions/institutions.component'; import { CoursesComponent } from './courses/courses.component'; import { CourseDetailsComponent } from './course-details/course-details.component'; import { FlashcardsComponent } from './flashcards/flashcards.component'; -import { HttpClient } from '@angular/common/http'; import { routing } from './app-routing.module'; +import { AuthGuard } from './_guards/auth.guard'; +import { AuthenticationService} from './_services/authentication.service'; +import { UserService } from './_services/user.service'; +import { AlertService } from './_services/alert.service'; @NgModule({ declarations: [ @@ -37,11 +42,18 @@ import { routing } from './app-routing.module'; ], imports: [ BrowserModule, + FormsModule, HttpClientModule, HttpModule, routing ], - providers: [HttpClientModule], + providers: [ + HttpClientModule, + AuthGuard, + AuthenticationService, + UserService, + AlertService + ], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/FlashCourse-web/src/app/login/login.component.html b/FlashCourse-web/src/app/login/login.component.html index 0dbfc57..8320fc8 100644 --- a/FlashCourse-web/src/app/login/login.component.html +++ b/FlashCourse-web/src/app/login/login.component.html @@ -1,14 +1,24 @@ -{{name}} - - -
-

Welcome to Flash Courses

-

- - -
- - -
- -
+
+
+ Welcome to Flash Courses!
+ Please log in.
+
+

Login

+
+
+ + +
Username is required
+
+
+ + +
Password is required
+
+
+ + +
+
{{error}}
+
+
\ No newline at end of file diff --git a/FlashCourse-web/src/app/login/login.component.ts b/FlashCourse-web/src/app/login/login.component.ts index d78874e..e4548fc 100644 --- a/FlashCourse-web/src/app/login/login.component.ts +++ b/FlashCourse-web/src/app/login/login.component.ts @@ -1,16 +1,38 @@ import { Component, OnInit } from '@angular/core'; +import { Router, ActivatedRoute } from '@angular/router'; +import { AuthenticationService } from '../_services/authentication.service'; @Component({ selector: 'app-login', + moduleId: module.id, templateUrl: './login.component.html', styleUrls: ['./login.component.css'] }) + export class LoginComponent implements OnInit { + model: any = {}; + loading = false; + error = ''; - constructor() { } + constructor( + private router: Router, + private authenticationService: AuthenticationService) { } ngOnInit() { + // reset login status + this.authenticationService.logout(); + } + + login() { + this.loading = true; + this.authenticationService.login(this.model.username, this.model.password) + .subscribe(result => { + if (result === true) { + this.router.navigate(['../home/home.component']); + } else { + this.error = 'Username or password is incorrect'; + this.loading = false; + } + }); } - name = 'Good thing I renamed this cause otherwise this would have been super awkward. '; - -} +} \ No newline at end of file diff --git a/FlashCourse-web/src/app/registration/registration.component.html b/FlashCourse-web/src/app/registration/registration.component.html index 5f7a86b..0fe2bea 100644 --- a/FlashCourse-web/src/app/registration/registration.component.html +++ b/FlashCourse-web/src/app/registration/registration.component.html @@ -1,3 +1,35 @@ -

- registration works! -

+
+

Registration

+
+
+ + +
First Name is required
+
+
+ + +
Last Name is required
+
+
+ + +
Email is required
+
+
+ + +
Username is required
+
+
+ + +
Password is required
+
+
+ + + Cancel +
+
+
\ No newline at end of file diff --git a/FlashCourse-web/src/app/registration/registration.component.ts b/FlashCourse-web/src/app/registration/registration.component.ts index b18baee..984a3a7 100644 --- a/FlashCourse-web/src/app/registration/registration.component.ts +++ b/FlashCourse-web/src/app/registration/registration.component.ts @@ -1,15 +1,34 @@ import { Component, OnInit } from '@angular/core'; +import { Router, ActivatedRoute } from '@angular/router'; +import { UserService } from '../_services/user.service'; +import { AlertService } from '../_services/alert.service'; @Component({ selector: 'app-registration', templateUrl: './registration.component.html', styleUrls: ['./registration.component.css'] }) -export class RegistrationComponent implements OnInit { +export class RegistrationComponent{ - constructor() { } + model: any = {}; + loading = false; - ngOnInit() { - } + constructor( + private router: Router, + private userService: UserService, + private alertService: AlertService) { } + register() { + this.loading = true; + this.userService.create(this.model) + .subscribe( + data => { + this.alertService.success('Registration successful', true); + this.router.navigate(['login']); + }, + error => { + this.alertService.error(error); + this.loading = false; + }); + } } From 52e42b3aae8b451401070e07c623db09868e9fd2 Mon Sep 17 00:00:00 2001 From: Andry Bintoro Date: Sat, 28 Apr 2018 14:31:43 -0400 Subject: [PATCH 2/8] services fixes and registration component --- FlashCourse-web/dist/3rdpartylicenses.txt | 139 ------------------ FlashCourse-web/dist/favicon.ico | Bin 5430 -> 0 bytes FlashCourse-web/dist/index.html | 1 - .../inline.318b50c57b4eba3d437b.bundle.js | 1 - .../dist/main.702ec5bf5eed87b88742.bundle.js | 1 - .../polyfills.b6b2cd0d4c472ac3ac12.bundle.js | 1 - .../styles.ac89bfdd6de82636b768.bundle.css | 0 .../app/_services/authentication.service.ts | 4 +- .../src/app/_services/user.service.ts | 2 +- .../registration/registration.component.html | 26 ++-- 10 files changed, 20 insertions(+), 155 deletions(-) delete mode 100644 FlashCourse-web/dist/3rdpartylicenses.txt delete mode 100644 FlashCourse-web/dist/favicon.ico delete mode 100644 FlashCourse-web/dist/index.html delete mode 100644 FlashCourse-web/dist/inline.318b50c57b4eba3d437b.bundle.js delete mode 100644 FlashCourse-web/dist/main.702ec5bf5eed87b88742.bundle.js delete mode 100644 FlashCourse-web/dist/polyfills.b6b2cd0d4c472ac3ac12.bundle.js delete mode 100644 FlashCourse-web/dist/styles.ac89bfdd6de82636b768.bundle.css diff --git a/FlashCourse-web/dist/3rdpartylicenses.txt b/FlashCourse-web/dist/3rdpartylicenses.txt deleted file mode 100644 index 508ed86..0000000 --- a/FlashCourse-web/dist/3rdpartylicenses.txt +++ /dev/null @@ -1,139 +0,0 @@ -core-js@2.5.5 -MIT -Copyright (c) 2014-2018 Denis Pushkarev - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -zone.js@0.8.26 -MIT -The MIT License - -Copyright (c) 2016-2018 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -cache-loader@1.2.2 -MIT -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -@angular-devkit/build-optimizer@0.3.2 -MIT -The MIT License - -Copyright (c) 2017 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -webpack@3.11.0 -MIT -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -@angular/core@5.2.9 -MIT -MIT - -@angular/platform-browser@5.2.9 -MIT -MIT - -@angular/http@5.2.9 -MIT -MIT - -@angular/common@5.2.9 -MIT -MIT - -@angular/router@5.2.9 -MIT -MIT - -@angular/platform-browser-dynamic@5.2.9 -MIT -MIT \ No newline at end of file diff --git a/FlashCourse-web/dist/favicon.ico b/FlashCourse-web/dist/favicon.ico deleted file mode 100644 index 8081c7ceaf2be08bf59010158c586170d9d2d517..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5430 zcmc(je{54#6vvCoAI3i*G5%$U7!sA3wtMZ$fH6V9C`=eXGJb@R1%(I_{vnZtpD{6n z5Pl{DmxzBDbrB>}`90e12m8T*36WoeDLA&SD_hw{H^wM!cl_RWcVA!I+x87ee975; z@4kD^=bYPn&pmG@(+JZ`rqQEKxW<}RzhW}I!|ulN=fmjVi@x{p$cC`)5$a!)X&U+blKNvN5tg=uLvuLnuqRM;Yc*swiexsoh#XPNu{9F#c`G zQLe{yWA(Y6(;>y|-efAy11k<09(@Oo1B2@0`PtZSkqK&${ zgEY}`W@t{%?9u5rF?}Y7OL{338l*JY#P!%MVQY@oqnItpZ}?s z!r?*kwuR{A@jg2Chlf0^{q*>8n5Ir~YWf*wmsh7B5&EpHfd5@xVaj&gqsdui^spyL zB|kUoblGoO7G(MuKTfa9?pGH0@QP^b#!lM1yHWLh*2iq#`C1TdrnO-d#?Oh@XV2HK zKA{`eo{--^K&MW66Lgsktfvn#cCAc*(}qsfhrvOjMGLE?`dHVipu1J3Kgr%g?cNa8 z)pkmC8DGH~fG+dlrp(5^-QBeEvkOvv#q7MBVLtm2oD^$lJZx--_=K&Ttd=-krx(Bb zcEoKJda@S!%%@`P-##$>*u%T*mh+QjV@)Qa=Mk1?#zLk+M4tIt%}wagT{5J%!tXAE;r{@=bb%nNVxvI+C+$t?!VJ@0d@HIyMJTI{vEw0Ul ze(ha!e&qANbTL1ZneNl45t=#Ot??C0MHjjgY8%*mGisN|S6%g3;Hlx#fMNcL<87MW zZ>6moo1YD?P!fJ#Jb(4)_cc50X5n0KoDYfdPoL^iV`k&o{LPyaoqMqk92wVM#_O0l z09$(A-D+gVIlq4TA&{1T@BsUH`Bm=r#l$Z51J-U&F32+hfUP-iLo=jg7Xmy+WLq6_tWv&`wDlz#`&)Jp~iQf zZP)tu>}pIIJKuw+$&t}GQuqMd%Z>0?t%&BM&Wo^4P^Y z)c6h^f2R>X8*}q|bblAF?@;%?2>$y+cMQbN{X$)^R>vtNq_5AB|0N5U*d^T?X9{xQnJYeU{ zoZL#obI;~Pp95f1`%X3D$Mh*4^?O?IT~7HqlWguezmg?Ybq|7>qQ(@pPHbE9V?f|( z+0xo!#m@Np9PljsyxBY-UA*{U*la#8Wz2sO|48_-5t8%_!n?S$zlGe+NA%?vmxjS- zHE5O3ZarU=X}$7>;Okp(UWXJxI%G_J-@IH;%5#Rt$(WUX?6*Ux!IRd$dLP6+SmPn= z8zjm4jGjN772R{FGkXwcNv8GBcZI#@Y2m{RNF_w8(Z%^A*!bS*!}s6sh*NnURytky humW;*g7R+&|Ledvc-FlashCourseWeb \ No newline at end of file diff --git a/FlashCourse-web/dist/inline.318b50c57b4eba3d437b.bundle.js b/FlashCourse-web/dist/inline.318b50c57b4eba3d437b.bundle.js deleted file mode 100644 index 1e8af07..0000000 --- a/FlashCourse-web/dist/inline.318b50c57b4eba3d437b.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof s&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.a?t[0]:Object(a.a)(n)(new o.a(t,u))};var r=n("YaPU"),o=n("Veqx"),i=n("1Q68"),a=n("8D5t")},0:function(t,e,n){t.exports=n("x35b")},"1Q68":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"8D5t":function(t,e,n){"use strict";var r=n("Qnch");function o(t){return t}e.a=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(o,null,t)}},AMGY:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||"undefined"!=typeof t&&t||o}).call(e,n("DuR2"))},BX3T:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},Jnfr:function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="Jnfr"},N4j0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length}},OVmG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("TToO"),o=n("/iUD"),i=n("VwZZ"),a=n("t7NR"),u=n("tLDX"),s=function(t){function e(e,n,r){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.a;break;case 1:if(!e){this.destination=a.a;break}if("object"==typeof e){if(c(e)){var o=e[u.a]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new l(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new l(this,e,n,r)}}return Object(r.b)(e,t),e.prototype[u.a]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(i.a),l=function(t){function e(e,n,r,i){var u;t.call(this),this._parentSubscriber=e;var s=this;Object(o.a)(n)?u=n:n&&(u=n.next,r=n.error,i=n.complete,n!==a.a&&(s=Object.create(n),Object(o.a)(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=u,this._error=r,this._complete=i}return Object(r.b)(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(s);function c(t){return t instanceof s||"syncErrorThrowable"in t&&t[u.a]}},PIsA:function(t,e,n){"use strict";var r=n("AMGY"),o=n("N4j0"),i=n("cQXm"),a=n("dgOU"),u=n("YaPU"),s=n("etqZ"),l=n("TToO"),c=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return Object(l.b)(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("OVmG").a),h=n("+CnV");e.a=function(t,e,n,l){var p=new c(t,n,l);if(p.closed)return null;if(e instanceof u.a)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(Object(o.a)(e)){for(var f=0,d=e.length;f0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},Rf9G:function(t,e,n){"use strict";var r=n("TToO"),o=n("g5jc"),i=n("YaPU"),a=n("OVmG"),u=n("VwZZ");function s(){return function(t){return t.lift(new l(t))}}var l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new c(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),h=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new f(this.getSubject(),this))),t.closed?(this._connection=null,t=u.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return s()(this)},e}(i.a).prototype,p={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:h._subscribe},_isComplete:{value:h._isComplete,writable:!0},getSubject:{value:h.getSubject},connect:{value:h.connect},refCount:{value:h.refCount}},f=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function d(){return new o.a}e.a=function(){return this,s()((t=d,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,p);return r.source=e,r.subjectFactory=n,r})(this));var t}},TILf:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("TToO"),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.value,n=t.subscriber;t.done?n.complete():(n.next(e),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(n("YaPU").a)},TToO:function(t,e,n){"use strict";e.b=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1?new e(t,r):1===o?new i.a(t[0],r):new a.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.subscriber;n>=t.count?r.complete():(r.next(e[n]),r.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):k(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(z,"\n ")}function W(t,e){return new Error(G(t,e))}var Z="ngDebugContext",K="ngOriginalError",Q="ngErrorLogger";function X(t){return t[Z]}function J(t){return t[K]}function $(t){for(var e=[],n=1;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+k(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Jt(t,e){return Array.isArray(e)?e.reduce(Jt,t):Object(r.a)({},t,e)}var $t=function(){function t(t,e,n,r,u,s){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=u,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Wt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var c=new o.a(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),h=new o.a(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Pt.assertNotInAngularZone(),T(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Pt.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(c,a.a.call(h))}return t.prototype.bootstrap=function(t,e){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=t instanceof vt?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof xt?null:this._injector.get(Et),i=n.create(I.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(Ut,null);return a&&i.injector.get(Vt).registerApplication(i.location.nativeElement,a),this._loadComponent(i),Wt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,At(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;te(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ct,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),te(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=kt("ApplicationRef#tick()"),t}();function te(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ee=function(){},ne=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),re=function(t){this.nativeElement=t},oe=function(){},ie=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Rt,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[S()]=function(){return this._results[S()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),ae=function(){},ue={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},se=function(){function t(t,e){this._compiler=t,this._config=e||ue}return t.prototype.load=function(t){return this._compiler instanceof ft?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n("Jnfr")(o).then(function(t){return t[i]}).then(function(t){return le(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("Jnfr")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return le(t,r,o)})},t}();function le(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var ce=function(){},he=function(){},pe=function(){},fe=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof de?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),de=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Object(r.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return ve(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return ye(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(fe);function ve(t,e,n){t.childNodes.forEach(function(t){t instanceof de&&(e(t)&&n.push(t),ve(t,e,n))})}function ye(t,e,n){t instanceof de&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof de&&ye(t,e,n)})}var ge=new Map;function me(t){return ge.get(t)||null}function be(t){ge.set(t.nativeNode,t)}function _e(t,e){var n=xe(t),r=xe(e);return n&&r?function(t,e,n){for(var r=t[S()](),o=e[S()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(t,e,_e):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||O(t,e)}var we=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Ce=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function xe(t){return!!Ee(t)&&(Array.isArray(t)||!(t instanceof Map)&&S()in t)}function Ee(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Se=function(){function t(){}return t.prototype.supports=function(t){return xe(t)},t.prototype.create=function(t){return new Oe(t)},t}(),Te=function(t,e){return e},Oe=function(){function t(t){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=t||Te}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,$n(n,e),en.dirtyParentQueries(r),Xn(r),r}function Qn(t,e,n){var r=e?wn(e,e.def.lastRenderRootNode):t.renderElement;An(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Xn(t){An(t,3,null,null,void 0)}function Jn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function $n(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var tr=new Object;function er(t,e,n,r,o,i){return new nr(t,e,n,r,o,i)}var nr=function(t){function e(e,n,r,o,i,a){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=a,u.viewDefFactory=r,u}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=kn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=en.createRootView(t,e||[],n,o,r,tr),u=Je(a,i).instance;return n&&a.renderer.setAttribute(Xe(a,0).renderElement,"ng-version",v.full),new rr(a,new ur(a),u)},e}(vt),rr=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new re(Xe(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new hr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function or(t,e,n){return new ir(t,e,n)}var ir=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new re(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new hr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=_n(t),t=t.parent;return t?new hr(t,e):new hr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Kn(this._data,t);en.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ur(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof xt||(o=i.get(Et));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return o=a._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Jn(i,r,o),function(t,e){var n=bn(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),en.dirtyParentQueries(o),Qn(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,u=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=u],$n(i,r),null==o&&(o=i.length),Jn(i,o,a),en.dirtyParentQueries(a),Xn(a),Qn(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Kn(this._data,t);e&&en.destroyView(e)},t.prototype.detach=function(t){var e=Kn(this._data,t);return e?new ur(e):null},t}();function ar(t){return new ur(t)}var ur=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return An(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){yn(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{en.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){en.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),en.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Xn(this._view),en.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function sr(t,e){return new lr(t,e)}var lr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.b)(e,t),e.prototype.createEmbeddedView=function(t){return new ur(en.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new re(Xe(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(ce);function cr(t,e){return new hr(t,e)}var hr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=I.THROW_IF_NOT_FOUND),en.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:sn(t)},e)},t}();function pr(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Xe(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Qe(t,n.nodeIndex).renderText;if(20240&n.flags)return Je(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function fr(t){return new dr(t.renderer)}var dr=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Mn(e),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Rr(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Nr(t,e,n,o[0]));case 2:return r(Nr(t,e,n,o[0]),Nr(t,e,n,o[1]));case 3:return r(Nr(t,e,n,o[0]),Nr(t,e,n,o[1]),Nr(t,e,n,o[2]));default:for(var a=Array(i),u=0;u0)l=v,Wr(v)||(c=v);else for(;l&&d===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&Wr(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:t,nodes:e,updateDirectives:n||an,updateRenderer:r||an,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Wr(t){return 0!=(1&t.flags)&&null===t.element.name}function Zr(t,e,n){var r=e.element&&e.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 "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Kr(t,e,n,r){var o=Jr(t.root,t.renderer,t,e,n);return $r(o,t.component,r),to(o),o}function Qr(t,e,n){var r=Jr(t,t.renderer,null,null,e);return $r(r,n,n),to(r),r}function Xr(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Jr(t.root,o,t,e.element.componentProvider,n)}function Jr(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function $r(t,e,n){t.component=e,t.context=n}function to(t){var e;Cn(t)&&(e=Xe(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Fn(t,e,0,n)&&(f=!0),p>1&&Fn(t,e,1,r)&&(f=!0),p>2&&Fn(t,e,2,o)&&(f=!0),p>3&&Fn(t,e,3,i)&&(f=!0),p>4&&Fn(t,e,4,a)&&(f=!0),p>5&&Fn(t,e,5,u)&&(f=!0),p>6&&Fn(t,e,6,s)&&(f=!0),p>7&&Fn(t,e,7,l)&&(f=!0),p>8&&Fn(t,e,8,c)&&(f=!0),p>9&&Fn(t,e,9,h)&&(f=!0),f}(t,e,n,r,o,i,a,u,s,l,c,h);case 2:return function(t,e,n,r,o,i,a,u,s,l,c,h){var p=!1,f=e.bindings,d=f.length;if(d>0&&dn(t,e,0,n)&&(p=!0),d>1&&dn(t,e,1,r)&&(p=!0),d>2&&dn(t,e,2,o)&&(p=!0),d>3&&dn(t,e,3,i)&&(p=!0),d>4&&dn(t,e,4,a)&&(p=!0),d>5&&dn(t,e,5,u)&&(p=!0),d>6&&dn(t,e,6,s)&&(p=!0),d>7&&dn(t,e,7,l)&&(p=!0),d>8&&dn(t,e,8,c)&&(p=!0),d>9&&dn(t,e,9,h)&&(p=!0),p){var v=e.text.prefix;d>0&&(v+=Yr(n,f[0])),d>1&&(v+=Yr(r,f[1])),d>2&&(v+=Yr(o,f[2])),d>3&&(v+=Yr(i,f[3])),d>4&&(v+=Yr(a,f[4])),d>5&&(v+=Yr(u,f[5])),d>6&&(v+=Yr(s,f[6])),d>7&&(v+=Yr(l,f[7])),d>8&&(v+=Yr(c,f[8])),d>9&&(v+=Yr(h,f[9]));var y=Qe(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return p}(t,e,n,r,o,i,a,u,s,l,c,h);case 16384:return function(t,e,n,r,o,i,a,u,s,l,c,h){var p=Je(t,e.nodeIndex),f=p.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&fn(t,e,0,n)&&(d=!0,v=Ir(t,p,e,0,n,v)),y>1&&fn(t,e,1,r)&&(d=!0,v=Ir(t,p,e,1,r,v)),y>2&&fn(t,e,2,o)&&(d=!0,v=Ir(t,p,e,2,o,v)),y>3&&fn(t,e,3,i)&&(d=!0,v=Ir(t,p,e,3,i,v)),y>4&&fn(t,e,4,a)&&(d=!0,v=Ir(t,p,e,4,a,v)),y>5&&fn(t,e,5,u)&&(d=!0,v=Ir(t,p,e,5,u,v)),y>6&&fn(t,e,6,s)&&(d=!0,v=Ir(t,p,e,6,s,v)),y>7&&fn(t,e,7,l)&&(d=!0,v=Ir(t,p,e,7,l,v)),y>8&&fn(t,e,8,c)&&(d=!0,v=Ir(t,p,e,8,c,v)),y>9&&fn(t,e,9,h)&&(d=!0,v=Ir(t,p,e,9,h,v)),v&&f.ngOnChanges(v),65536&e.flags&&Ke(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,a,u,s,l,c,h);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,u,s,l,c,h){var p=e.bindings,f=!1,d=p.length;if(d>0&&dn(t,e,0,n)&&(f=!0),d>1&&dn(t,e,1,r)&&(f=!0),d>2&&dn(t,e,2,o)&&(f=!0),d>3&&dn(t,e,3,i)&&(f=!0),d>4&&dn(t,e,4,a)&&(f=!0),d>5&&dn(t,e,5,u)&&(f=!0),d>6&&dn(t,e,6,s)&&(f=!0),d>7&&dn(t,e,7,l)&&(f=!0),d>8&&dn(t,e,8,c)&&(f=!0),d>9&&dn(t,e,9,h)&&(f=!0),f){var v=$e(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(p.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=a),d>5&&(y[5]=u),d>6&&(y[6]=s),d>7&&(y[7]=l),d>8&&(y[8]=c),d>9&&(y[9]=h);break;case 64:y={},d>0&&(y[p[0].name]=n),d>1&&(y[p[1].name]=r),d>2&&(y[p[2].name]=o),d>3&&(y[p[3].name]=i),d>4&&(y[p[4].name]=a),d>5&&(y[p[5].name]=u),d>6&&(y[p[6].name]=s),d>7&&(y[p[7].name]=l),d>8&&(y[p[8].name]=c),d>9&&(y[p[9].name]=h);break;case 128:var g=n;switch(d){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,a);break;case 6:y=g.transform(r,o,i,a,u);break;case 7:y=g.transform(r,o,i,a,u,s);break;case 8:y=g.transform(r,o,i,a,u,s,l);break;case 9:y=g.transform(r,o,i,a,u,s,l,c);break;case 10:y=g.transform(r,o,i,a,u,s,l,c,h)}}v.value=y}return f}(t,e,n,r,o,i,a,u,s,l,c,h);default:throw"unreachable"}}(t,e,r,o,i,a,u,s,l,c,h,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&vn(t,e,0,n),p>1&&vn(t,e,1,r),p>2&&vn(t,e,2,o),p>3&&vn(t,e,3,i),p>4&&vn(t,e,4,a),p>5&&vn(t,e,5,u),p>6&&vn(t,e,6,s),p>7&&vn(t,e,7,l),p>8&&vn(t,e,8,c),p>9&&vn(t,e,9,h)}(t,e,r,o,i,a,u,s,l,c,h,p):function(t,e,n){for(var r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=et.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+et.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+et.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}($),ot=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,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(Q.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return et.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+et.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+et.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+et.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}($),it=["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","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],at={},ut=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),st=new r.n("UseV4Plurals"),lt=function(){},ct=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(Q.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=at[e];if(n)return n;var r=e.split("-")[0];if(n=at[r])return n;if("en"===r)return it;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[17]}(e||this.locale)(t)){case ut.Zero:return"zero";case ut.One:return"one";case ut.Two:return"two";case ut.Few:return"few";case ut.Many:return"many";default:return"other"}},e}(lt);function ht(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");nVt?Vt:o:o}()),this.arr=t,this.idx=e,this.len=n}return t.prototype[It.a]=function(){return this},t.prototype.next=function(){return this.idx=t.length?r.complete():(r.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:t});for(var i=0;i=2&&(n=!0),function(r){return r.lift(new de(t,e,n))}}var de=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new ve(t,this.accumulator,this.seed,this.hasSeed))},t}(),ve=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}return Object(Q.b)(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(wt.a),ye=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return Object(Q.b)(e,t),e}(Error);function ge(t){return function(e){return 0===t?new Ft.a:e.lift(new me(t))}}var me=function(){function t(t){if(this.total=t,this.total<0)throw new ye}return t.prototype.call=function(t,e){return e.subscribe(new be(t,this.total))},t}(),be=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return Object(Q.b)(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2?function(n){return Object(Ce.a)(fe(t,e),ge(1),(void 0===(r=e)&&(r=null),function(t){return t.lift(new _e(r))}))(n);var r}:function(e){return Object(Ce.a)(fe(function(e,n,r){return t(e,n,r+1)}),ge(1))(e)}}var Ee=null;function Se(){return Ee}var Te,Oe={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},ke={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ae={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};r.Z.Node&&(Te=r.Z.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Re,Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Q.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Ee||(Ee=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Oe},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Te.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;u||(u=t[a]=[]);var l=dn(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:l,handler:i});else{for(var c=!1,h=0;h-1},e}(Ge),wn=["alt","control","meta","shift"],Cn={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},xn=function(t){function e(e){return t.call(this,e)||this}return Object(Q.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Se().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(wn.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=Se().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),wn.forEach(function(r){r!=n&&(0,Cn[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Ge),En=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();Mn.hasOwnProperty(e)&&!Pn.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(zn(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),Hn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fn=/([^\#-~ |!])/g;function zn(t){return t.replace(/&/g,"&").replace(Hn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Fn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Bn=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),qn=/^url\(([^)]+)\)$/,Yn=function(){},Gn=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(Q.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.D.NONE:return e;case r.D.HTML:return e instanceof Zn?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=Se(),o=null;try{Rn=Rn||new En(t,n);var i=e?String(e):"";o=Rn.getInertBodyElement(i);var a=5,u=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=u,u=n.getInnerHTML(o),o=Rn.getInertBodyElement(i)}while(i!==u);var s=new Vn,l=s.sanitizeChildren(n.getTemplateContent(o)||o);return Object(r.P)()&&s.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}finally{if(o)for(var c=n.getTemplateContent(o)||o,h=0,p=n.childNodesAsList(c);ht.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Ir(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Mr(t){var e=pe.call(t);return se.call(e,function(t){return!0===t})}function Dr(t){return Object(r._2)(t)?t:Object(r._3)(t)?ie(Promise.resolve(t)):mt(t)}function Lr(t,e,n){return n?function(t,e){return Pr(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Fr(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Fr(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Fr(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!Fr(n.segments,a)&&!!n.children[Cr]&&e(n.children[Cr],r,u)}(e,n,n.segments)}(t.root,e.root)}var Ur=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Er(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Yr.serialize(this)},t}(),Vr=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Ir(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Gr(this)},t}(),Hr=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Er(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Jr(this)},t}();function Fr(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function zr(t,e){var n=[];return Ir(t.children,function(t,r){r===Cr&&(n=n.concat(e(t,r)))}),Ir(t.children,function(t,r){r!==Cr&&(n=n.concat(e(t,r)))}),n}var Br=function(){},qr=function(){function t(){}return t.prototype.parse=function(t){var e=new ro(t);return new Ur(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Gr(e);if(n){var r=e.children[Cr]?t(e.children[Cr],!1):"",o=[];return Ir(e.children,function(e,n){n!==Cr&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=zr(e,function(n,r){return r===Cr?[t(e.children[Cr],!1)]:[r+":"+t(n,!1)]});return Gr(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Zr(t)+"="+Zr(e)}).join("&"):Zr(t)+"="+Zr(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Yr=new qr;function Gr(t){return t.segments.map(function(t){return Jr(t)}).join("/")}function Wr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zr(t){return Wr(t).replace(/%3B/gi,";")}function Kr(t){return Wr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qr(t){return decodeURIComponent(t)}function Xr(t){return Qr(t.replace(/\+/g,"%20"))}function Jr(t){return""+Kr(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Kr(t)+"="+Kr(e[t])}).join(""));var e}var $r=/^[^\/()?;=&#]+/;function to(t){var e=t.match($r);return e?e[0]:""}var eo=/^[^=?&#]+/,no=/^[^?&#]+/,ro=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vr([],{}):new Vr([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Cr]=new Vr(t,e)),n},t.prototype.parseSegment=function(){var t=to(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Hr(Qr(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=to(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=to(this.remaining);r&&this.capture(n=r)}t[Qr(e)]=Qr(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(eo))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(no);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Xr(n),a=Xr(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=to(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Cr);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Cr]:new Vr([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),oo=function(t){this.segmentGroup=t||null},io=function(t){this.urlTree=t};function ao(t){return new Tt.a(function(e){return e.error(new oo(t))})}function uo(t){return new Tt.a(function(e){return e.error(new io(t))})}function so(t){return new Tt.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var lo=function(){function t(t,e,n,o,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.u)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Cr),n=Et.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return Jt.call(n,function(e){if(e instanceof io)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof oo)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Cr),r=Et.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return Jt.call(r,function(t){if(t instanceof oo)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new Vr([],((r={})[Cr]=t,r)):t;return new Ur(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?Et.call(this.expandChildren(t,e,n),function(t){return new Vr([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return mt({});var i=[],a=[],u={};Ir(n,function(n,o){var s=Et.call(r.expandSegmentGroup(t,e,n,o),function(t){return u[o]=t});o===Cr?i.push(s):a.push(s)});var s=te.call(mt.apply(void 0,i.concat(a))),l=he.call(s);return Et.call(l,function(){return u})}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this,u=mt.apply(void 0,n),s=Et.call(u,function(u){var s=a.expandSegmentAgainstRoute(t,e,n,u,r,o,i);return Jt.call(s,function(t){if(t instanceof oo)return mt(null);throw t})}),l=te.call(s),c=oe.call(l,function(t){return!!t});return Jt.call(c,function(t,n){if(t instanceof ee||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,o))return mt(new Vr([],{}));throw new oo(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return fo(r)!==i?ao(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):ao(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?uo(i):St.call(this.lineralizeSegments(n,i),function(n){var i=new Vr(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,u=co(e,r,o),s=u.consumedSegments,l=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return ao(e);var h=this.applyRedirectCommands(s,r.redirectTo,c);return r.redirectTo.startsWith("/")?uo(h):St.call(this.lineralizeSegments(r,h),function(r){return a.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?Et.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Vr(r,{})}):mt(new Vr(r,{}));var i=co(e,n,r),a=i.consumedSegments,u=i.lastChild;if(!i.matched)return ao(e);var s=r.slice(u),l=this.getChildConfig(t,n);return St.call(l,function(t){var n=t.module,r=t.routes,i=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return po(t,e,n)&&fo(n)!==Cr})}(t,n)?{segmentGroup:ho(new Vr(e,function(t,e){var n={};n[Cr]=e;for(var r=0,o=t;r1||!r.children[Cr])return so(t.redirectTo);r=r.children[Cr]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Ur(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Ir(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return Ir(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new Vr(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,o=e;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Sr)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ho(t){if(1===t.numberOfChildren&&t.children[Cr]){var e=t.children[Cr];return new Vr(t.segments.concat(e.segments),e.children)}return t}function po(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function fo(t){return t.outlet||Cr}var vo=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=yo(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=yo(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=go(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return go(t,this._root).map(function(t){return t.value})},t}();function yo(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n=1;){var o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object(Q.a)({},t.params,e.params),data:Object(Q.a)({},t.data,e.data),resolve:Object(Q.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Eo=function(){function t(t,e,n,r,o,i,a,u,s,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Er(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Er(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),So=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,To(r,n),r}return Object(Q.b)(e,t),e.prototype.toString=function(){return Oo(this._root)},e}(vo);function To(t,e){e.value._routerState=t,e.children.forEach(function(e){return To(t,e)})}function Oo(t){var e=t.children.length>0?" { "+t.children.map(Oo).join(", ")+" } ":"";return""+t.value+e}function ko(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Pr(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Pr(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Ro(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==jr(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),jo=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Io(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Cr]:""+t}function Mo(t,e,n){if(t||(t=new Vr([],{})),0===t.segments.length&&t.hasChildren())return Do(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=t.segments[o],u=Io(n[r]),s=r0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!Ho(u,s,a))return i;r+=2}else{if(!Ho(u,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?xe(t,e)(this):xe(t)(this)}).call(r,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=bo(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Ir(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var u=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);u?this.canActivateChecks.push(new Fo(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?a?a.children:null:n,r),u&&this.canDeactivateChecks.push(new zo(a.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new Fo(r)),this.setupChildRouteGuards(t,null,o.component?a?a.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Ao(t,e)||!Pr(t.queryParams,e.queryParams);case"paramsChange":default:return!Ao(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=bo(t),o=t.value;Ir(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new zo(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=Wt(this.canDeactivateChecks),n=St.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return se.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=Wt(this.canActivateChecks),n=_t.call(e,function(e){return Mr(Wt([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return se.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new _r(t)),mt(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new mr(t)),mt(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Mr(Et.call(Wt(n),function(n){var r,o=e.getToken(n,t);return r=Dr(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),oe.call(r)})):mt(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return Mr(Et.call(Wt(r),function(t){return Mr(Et.call(Wt(t.guards),function(r){var o,i=e.getToken(r,t.node);return o=Dr(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)),oe.call(o)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return mt(!0);var o=St.call(Wt(r),function(r){var o,i=n.getToken(r,e);return o=Dr(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)),oe.call(o)});return se.call(o,function(t){return!0===t})},t.prototype.runResolve=function(t,e){return Et.call(this.resolveNode(t._resolve,t),function(n){return t._resolvedData=n,t.data=Object(Q.a)({},t.data,xo(t,e).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return mt({});if(1===r.length){var o=r[0];return Et.call(this.getResolver(t[o],e),function(t){return(e={})[o]=t,e;var e})}var i={},a=St.call(Wt(r),function(r){return Et.call(n.getResolver(t[r],e),function(t){return i[r]=t,t})});return Et.call(he.call(a),function(){return i})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Dr(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),qo=function(){},Yo=function(){function t(t,e,n,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o}return t.prototype.recognize=function(){try{var t=Zo(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Cr),n=new Eo([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Cr,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new mo(n,e),o=new So(this.url,r);return this.inheritParamsAndData(o._root),mt(o)}catch(t){return new Tt.a(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=xo(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=zr(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===Cr?-1:e.value.outlet===Cr?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){for(var o=0,i=t;o0?jr(n).parameters:{};o=new Eo(n,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Xo(t),r,t.component,t,Go(e),Wo(e)+n.length,Jo(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new qo;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Sr)(n,t,e);if(!r)throw new qo;var o={};Ir(r.posParams,function(t,e){o[e]=t.path});var i=r.consumed.length>0?Object(Q.a)({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=s.consumedSegments,a=n.slice(s.lastChild),o=new Eo(i,s.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Xo(t),r,t.component,t,Go(e),Wo(e)+i.length,Jo(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=Zo(e,i,a,l),h=c.segmentGroup,p=c.slicedSegments;if(0===p.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new mo(o,f)]}if(0===l.length&&0===p.length)return[new mo(o,[])];var d=this.processSegment(l,h,p,Cr);return[new mo(o,d)]},t}();function Go(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Wo(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Zo(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return Ko(t,e,n)&&Qo(n)!==Cr})}(t,n)){var o=new Vr(e,function(t,e,n,r){var o={};o[Cr]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var i=0,a=n;i0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Qo(t){return t.outlet||Cr}function Xo(t){return t.data||{}}function Jo(t){return t.resolve||{}}var $o=function(){},ti=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),ei=new r.n("ROUTES"),ni=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return Et.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Tr(Nr(o.injector.get(ei)).map(Rr),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?ie(this.loader.load(t)):St.call(Dr(t()),function(t){return t instanceof r.s?mt(t):ie(e.compiler.compileModuleAsync(t))})},t}(),ri=function(){},oi=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function ii(t){throw t}function ai(t){return mt(null)}var ui=function(){function t(t,e,n,o,i,a,u,s){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=o,this.config=s,this.navigations=new yt(null),this.navigationId=0,this.events=new dt.a,this.errorHandler=ii,this.navigated=!1,this.hooks={beforePreactivation:ai,afterPreactivation:ai},this.urlHandlingStrategy=new oi,this.routeReuseStrategy=new ti,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=i.get(r.u),this.resetConfig(s),this.currentUrlTree=new Ur(new Vr([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ni(a,u,function(t){return l.triggerEvent(new yr(t))},function(t){return l.triggerEvent(new gr(t))}),this.routerState=wo(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Or(t),this.config=t.map(Rr),this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,o=e.queryParams,i=e.fragment,a=e.preserveQueryParams,u=e.queryParamsHandling,s=e.preserveFragment;Object(r.P)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,c=s?this.currentUrlTree.fragment:i,h=null;if(u)switch(u){case"merge":h=Object(Q.a)({},this.currentUrlTree.queryParams,o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}else h=a?this.currentUrlTree.queryParams:o||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return Po(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new No(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Ir(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new No(n,e,r)}(n);if(i.toRoot())return Po(e.root,new Vr([],{}),e,r,o);var a=function(t,n,r){if(t.isAbsolute)return new jo(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new jo(r.snapshot._urlSegment,!0,0);var o=Ro(t.commands[0])?0:1;return function(e,n,i){for(var a=r.snapshot._urlSegment,u=r.snapshot._lastPathIndex+o,s=t.numberOfDoubleDots;s>u;){if(s-=u,!(a=a.parent))throw new Error("Invalid number of '../'");u=a.segments.length}return new jo(a,!1,u-s)}()}(i,0,t),u=a.processChildren?Do(a.segmentGroup,a.index,i.commands):Mo(a.segmentGroup,a.index,i.commands);return Po(a.segmentGroup,u,e,r,o)}(l,this.currentUrlTree,t,h,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Ur?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Hi=function(){function t(){}return t.prototype.encodeKey=function(t){return Fi(t)},t.prototype.encodeValue=function(t){return Fi(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Fi(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var zi=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Hi,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],i=o[0],a=o[1],u=r.get(i)||[];u.push(a),r.set(i,u)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function Bi(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qi(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Yi(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Gi=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vi),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),Ki=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Wi.ResponseHeader,n}return Object(Q.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Zi),Qi=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Wi.Response,n.body=void 0!==e.body?e.body:null,n}return Object(Q.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Zi),Xi=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(Q.b)(e,t),e}(Zi);function Ji(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var $i=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof Gi)r=t;else{var i;i=n.headers instanceof Vi?n.headers:new Vi(n.headers);var a=void 0;n.params&&(a=n.params instanceof zi?n.params:new zi({fromObject:n.params})),r=new Gi(t,e,void 0!==n.body?n.body:null,{headers:i,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=_t.call(mt(r),function(t){return o.handler.handle(t)});if(t instanceof Gi||"events"===n.observe)return u;var s=ir.call(u,function(t){return t instanceof Qi});switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return Et.call(s,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return Et.call(s,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return Et.call(s,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return Et.call(s,function(t){return t.body})}case"response":return s;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new zi).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Ji(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Ji(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Ji(n,e))},t}(),ta=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),ea=new r.n("HTTP_INTERCEPTORS"),na=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),ra=/^\)\]\}',?\n/,oa=function(){},ia=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),aa=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new Tt.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),u=null,s=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new Vi(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new Ki({headers:o,status:e,statusText:n,url:i})},l=function(){var e=s(),o=e.headers,i=e.status,a=e.statusText,u=e.url,l=null;204!==i&&(l="undefined"==typeof r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(ra,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=h,c&&(c=!1,l={error:t,text:l})}}c?(n.next(new Qi({body:l,headers:o,status:i,statusText:a,url:u||void 0})),n.complete()):n.error(new Xi({error:l,headers:o,status:i,statusText:a,url:u||void 0}))},c=function(t){var e=new Xi({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},h=!1,p=function(e){h||(n.next(s()),h=!0);var o={type:Wi.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:Wi.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:Wi.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",p),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),ua=new r.n("XSRF_COOKIE_NAME"),sa=new r.n("XSRF_HEADER_NAME"),la=function(){},ca=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ht(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),ha=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),pa=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(ea,[]);this.chain=e.reduceRight(function(t,e){return new ta(t,e)},this.backend)}return this.chain.handle(t)},t}(),fa=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:ha,useClass:na}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:ua,useValue:e.cookieName}:[],e.headerName?{provide:sa,useValue:e.headerName}:[]]}},t}(),da=function(){},va=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),ya=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),ga=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),ma=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),ba=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}(),_a=function(){function t(e){var n=this;this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})}))}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),wa=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,o=t.statusText,i=t.type,a=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),Ca=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:ga.Default,headers:new _a})||this}return Object(Q.b)(e,t),e}(wa),xa=function(){};function Ea(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return ya.Get;case"POST":return ya.Post;case"PUT":return ya.Put;case"DELETE":return ya.Delete;case"OPTIONS":return ya.Options;case"HEAD":return ya.Head;case"PATCH":return ya.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var Sa=function(t){return t>=200&&t<300},Ta=function(){function t(){}return t.prototype.encodeKey=function(t){return Oa(t)},t.prototype.encodeValue=function(t){return Oa(t)},t}();function Oa(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var ka=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new Ta),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],a=e.get(o)||[];a.push(i),e.set(o,a)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return Object(Q.b)(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(Aa),Pa=/^\)\]\}',?\n/,Na=function(){function t(t,e,n){var r=this;this.request=t,this.response=new Tt.a(function(o){var i=e.build();i.open(ya[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(i.withCredentials=t.withCredentials);var a=function(){var e=1223===i.status?204:i.status,r=null;204!==e&&"string"==typeof(r="undefined"==typeof i.response?i.responseText:i.response)&&(r=r.replace(Pa,"")),0===e&&(e=r?200:0);var a,u=_a.fromResponseHeaderString(i.getAllResponseHeaders()),s=("responseURL"in(a=i)?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null)||t.url,l=new wa({body:r,status:e,headers:u,statusText:i.statusText||"OK",url:s});null!=n&&(l=n.merge(l));var c=new Ra(l);if(c.ok=Sa(e),c.ok)return o.next(c),void o.complete();o.error(c)},u=function(t){var e=new wa({body:t,type:ga.Error,status:i.status,statusText:i.statusText});null!=n&&(e=n.merge(e)),o.error(new Ra(e))};if(r.setDetectedContentType(t,i),null==t.headers&&(t.headers=new _a),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return i.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=i.responseType)switch(t.responseType){case ba.ArrayBuffer:i.responseType="arraybuffer";break;case ba.Json:i.responseType="json";break;case ba.Text:i.responseType="text";break;case ba.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",a),i.addEventListener("error",u),i.send(r.request.getBody()),function(){i.removeEventListener("load",a),i.removeEventListener("error",u),i.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case ma.NONE:break;case ma.JSON:e.setRequestHeader("content-type","application/json");break;case ma.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case ma.TEXT:e.setRequestHeader("content-type","text/plain");break;case ma.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),ja=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Se().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Ia=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new Na(t,this._browserXHR,this._baseResponseOptions)},t}(),Ma=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,o=t.url,i=t.search,a=t.params,u=t.withCredentials,s=t.responseType;this.method=null!=e?Ea(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||i),this.withCredentials=null!=u?u:null,this.responseType=null!=s?s:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new _a(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof ka?t.clone():"string"==typeof t?new ka(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new ka;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Da=function(t){function e(){return t.call(this,{method:ya.Get,headers:new _a})||this}return Object(Q.b)(e,t),e}(Ma),La=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var o,i=e.params||e.search;if(i&&(o="object"!=typeof i||i instanceof ka?i.toString():function(t){var e=new ka;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(i).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+o}return n._body=e.body,n.method=Ea(e.method),n.headers=new _a(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return Object(Q.b)(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return ma.JSON;case"application/x-www-form-urlencoded":return ma.FORM;case"multipart/form-data":return ma.FORM_DATA;case"text/plain":case"text/html":return ma.TEXT;case"application/octet-stream":return this._body instanceof za?ma.ARRAY_BUFFER:ma.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?ma.NONE:this._body instanceof ka?ma.FORM:this._body instanceof Ha?ma.FORM_DATA:this._body instanceof Fa?ma.BLOB:this._body instanceof za?ma.ARRAY_BUFFER:this._body&&"object"==typeof this._body?ma.JSON:ma.TEXT},e.prototype.getBody=function(){switch(this.contentType){case ma.JSON:case ma.FORM:return this.text();case ma.FORM_DATA:return this._body;case ma.TEXT:return this.text();case ma.BLOB:return this.blob();case ma.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(Aa),Ua=function(){},Va="object"==typeof window?window:Ua,Ha=Va.FormData||Ua,Fa=Va.Blob||Ua,za=Va.ArrayBuffer||Ua;function Ba(t,e){return t.createConnection(e).response}function qa(t,e,n,r){return t.merge(new Ma(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var Ya=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=Ba(this._backend,new La(qa(this._defaultOptions,e,ya.Get,t)));else{if(!(t instanceof La))throw new Error("First argument must be a url string or Request instance.");n=Ba(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new La(qa(this._defaultOptions,e,ya.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new La(qa(this._defaultOptions.merge(new Ma({body:e})),n,ya.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new La(qa(this._defaultOptions.merge(new Ma({body:e})),n,ya.Put,t)))},t.prototype.delete=function(t,e){return this.request(new La(qa(this._defaultOptions,e,ya.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new La(qa(this._defaultOptions.merge(new Ma({body:e})),n,ya.Patch,t)))},t.prototype.head=function(t,e){return this.request(new La(qa(this._defaultOptions,e,ya.Head,t)))},t.prototype.options=function(t,e){return this.request(new La(qa(this._defaultOptions,e,ya.Options,t)))},t}();function Ga(){return new ja}function Wa(t,e){return new Ya(t,e)}var Za=function(){},Ka=r.V(o,[i],function(t){return r._4([r._5(512,r.j,r.S,[[8,[l,f,g,w,S,A,j,L,F,Y,K,Di]],[3,r.j],r.u]),r._5(5120,r.r,r._9,[[3,r.r]]),r._5(4608,lt,ct,[r.r,[2,st]]),r._5(5120,r.c,r._0,[]),r._5(5120,r.p,r._6,[]),r._5(5120,r.q,r._8,[]),r._5(4608,Yn,Gn,[ft]),r._5(6144,r.C,null,[Yn]),r._5(4608,mn,bn,[]),r._5(5120,qe,function(t,e,n,r,o){return[new yn(t,e),new xn(n),new _n(r,o)]},[ft,r.w,ft,ft,mn]),r._5(4608,Ye,Ye,[qe,r.w]),r._5(135680,Ze,Ze,[ft]),r._5(4608,en,en,[Ye,Ze]),r._5(6144,r.A,null,[en]),r._5(6144,We,null,[Ze]),r._5(4608,r.H,r.H,[r.w]),r._5(4608,De,De,[ft]),r._5(4608,He,He,[ft]),r._5(4608,la,ca,[ft,r.y,ua]),r._5(4608,ha,ha,[la,sa]),r._5(5120,ea,function(t){return[t]},[ha]),r._5(4608,ia,ia,[]),r._5(6144,oa,null,[ia]),r._5(4608,aa,aa,[oa]),r._5(6144,Ui,null,[aa]),r._5(4608,Li,pa,[Ui,r.o]),r._5(4608,$i,$i,[Li]),r._5(4608,va,va,[]),r._5(4608,wa,Ca,[]),r._5(5120,xa,Ga,[]),r._5(4608,Ia,Ia,[va,wa,xa]),r._5(4608,Ma,Da,[]),r._5(5120,Ya,Wa,[Ia,Ma]),r._5(5120,Co,Ai,[ui]),r._5(4608,mi,mi,[]),r._5(6144,yi,null,[mi]),r._5(135680,bi,bi,[ui,r.t,r.i,r.o,yi]),r._5(4608,gi,gi,[]),r._5(5120,ji,Ni,[Ri]),r._5(5120,r.b,function(t){return[t]},[ji]),r._5(512,pt,pt,[]),r._5(1024,r.k,er,[]),r._5(1024,r.v,function(){return[xi()]},[]),r._5(512,Ri,Ri,[r.o]),r._5(1024,r.d,function(t,e){return[(n=t,Fe("probe",Be),Fe("coreTokens",Object(Q.a)({},ze,(n||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return Be}),Pi(e)];var n},[[2,r.v],Ri]),r._5(512,r.e,r.e,[[2,r.d]]),r._5(131584,r.g,r.g,[r.w,r.T,r.o,r.k,r.j,r.e]),r._5(512,r.f,r.f,[r.g]),r._5(512,nr,nr,[[3,nr]]),r._5(512,fa,fa,[]),r._5(512,da,da,[]),r._5(512,Za,Za,[]),r._5(1024,wi,Ti,[[3,ui]]),r._5(512,Br,qr,[]),r._5(512,fi,fi,[]),r._5(256,_i,{},[]),r._5(1024,$,Si,[X,[2,tt],_i]),r._5(512,et,et,[$]),r._5(512,r.i,r.i,[]),r._5(512,r.t,r.F,[r.i,[2,r.G]]),r._5(1024,ei,function(){return[[{path:"about",component:a},{path:"contact",component:c},{path:"coursedetails",component:d},{path:"courses",component:m},{path:"flashcards",component:C},{path:"home",component:T},{path:"home/:id",component:T},{path:"institutions",component:R},{path:"login",component:I},{path:"privacy",component:U},{path:"registration",component:z},{path:"terms",component:G}]]},[]),r._5(1024,ui,ki,[r.g,Br,fi,et,r.o,r.t,r.i,ei,_i,[2,ri],[2,$o]]),r._5(512,Ei,Ei,[[2,wi],[2,ui]]),r._5(512,o,o,[]),r._5(256,ua,"XSRF-TOKEN",[]),r._5(256,sa,"X-XSRF-TOKEN",[])])});Object(r.N)(),tr().bootstrapModuleFactory(Ka).catch(function(t){return console.log(t)})},x6VL:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("TToO"),o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return Object(r.b)(e,t),e}(Error)}},[0]); \ No newline at end of file diff --git a/FlashCourse-web/dist/polyfills.b6b2cd0d4c472ac3ac12.bundle.js b/FlashCourse-web/dist/polyfills.b6b2cd0d4c472ac3ac12.bundle.js deleted file mode 100644 index b58a35a..0000000 --- a/FlashCourse-web/dist/polyfills.b6b2cd0d4c472ac3ac12.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{"/whu":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"0Rih":function(t,e,n){"use strict";var r=n("OzIq"),o=n("Ds5P"),i=n("R3AP"),a=n("A16L"),u=n("1aA0"),c=n("vmSO"),s=n("9GpA"),f=n("UKM+"),l=n("zgIt"),p=n("qkyc"),h=n("yYvK"),v=n("kic5");t.exports=function(t,e,n,d,y,g){var k=r[t],_=k,m=y?"set":"add",b=_&&_.prototype,w={},T=function(t){var e=b[t];i(b,t,"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(g||b.forEach&&!l(function(){(new _).entries().next()}))){var E=new _,O=E[m](g?{}:-0,1)!=E,S=l(function(){E.has(1)}),D=p(function(t){new _(t)}),x=!g&&l(function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)});D||((_=e(function(e,n){s(e,_,t);var r=v(new k,e,_);return void 0!=n&&c(n,y,r[m],r),r})).prototype=b,b.constructor=_),(S||x)&&(T("delete"),T("has"),y&&T("get")),(x||O)&&T(m),g&&b.clear&&delete b.clear}else _=d.getConstructor(e,t,y,m),a(_.prototype,n),u.NEED=!0;return h(_,t),w[t]=_,o(o.G+o.W+o.F*(_!=k),w),g||d.setStrong(_,t,y),_}},1:function(t,e,n){t.exports=n("XS25")},"1aA0":function(t,e,n){var r=n("ulTY")("meta"),o=n("UKM+"),i=n("WBcL"),a=n("lDLk").f,u=0,c=Object.isExtensible||function(){return!0},s=!n("zgIt")(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,r)&&f(t),t}}},"2p1q":function(t,e,n){var r=n("lDLk"),o=n("fU25");t.exports=n("bUqO")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"3q4u":function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.key,a=r.map,u=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var c=u.get(e);return c.delete(n),!!c.size||u.delete(e)}})},"7gX0":function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},"7ylX":function(t,e,n){var r=n("DIVP"),o=n("twxM"),i=n("QKXm"),a=n("mZON")("IE_PROTO"),u=function(){},c=function(){var t,e=n("jhxf")("iframe"),r=i.length;for(e.style.display="none",n("d075").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("